This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] update include/plugin-api.h to add hooks for section alignment + size


Hello,

I would like to update the gcc plugin API to include interfaces for
querying section size and alignment. The intent is to make it easier
for plugins to do link-time reordering of .bss/.data/.rodata sections
to reduce padding and/or improve cache utilization.

I've posted a patch to binutils that includes changes to the gold
linker to implement these hooks, you can find details at
http://sourceware.org/ml/binutils/2016-02/msg00400.html.

The attached patch is to make sure that the gcc plugin-api.h is in
sync with the corresponding header in binutils.

Questions + comments welcome.

Thanks, Than

Attachment: gcc.patch.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]