This is the mail archive of the gcc@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]

gcc rodata regression


Hi,

I have been fighting with a strange problem on ARM where gcc puts all
the .rodata from a number of files lumped into a single .rodata
section even when -fdata-sections is used.

I searched and found a bug report here:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54303

which exactly describes the problem I see.

According to the bug report this does not happen on x86_64, and there
is a test case provided.

Does anyone have any clues as to how to fix this bug? I am willing to
give it a try with a few pointers. I currently have to add loads of
#ifdefs in the C code to work around this bug and remove the unwanted
and unreferenced data.

Thanks,
Simon


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