This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/54303] -fdata-sections -ffunction-sections and -fmerge-constants do not work well together
- From: "tom.rini at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 01 Oct 2012 18:01:37 +0000
- Subject: [Bug c/54303] -fdata-sections -ffunction-sections and -fmerge-constants do not work well together
- Auto-submitted: auto-generated
- References: <bug-54303-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54303
--- Comment #8 from Tom Rini <tom.rini at gmail dot com> 2012-10-01 18:01:37 UTC ---
I could be confused, but how is this a linker issue when gcc puts all of the
strings into a single section? To reiterate, if you have N functions each with
one string in it, on some platforms (ARM) you get one .rodata.str1.4 section
and on others you get N .rodata.str.somethings sections.