This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/35895] gcc puts code in rodata section with -Os -g -funit-at-a-time
- From: "rostedt at goodmis dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Apr 2008 22:20:29 -0000
- Subject: [Bug c/35895] gcc puts code in rodata section with -Os -g -funit-at-a-time
- References: <bug-35895-16040@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from rostedt at goodmis dot org 2008-04-09 22:20 -------
Created an attachment (id=15461)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15461&action=view)
alternative.c file compiled with -E and with some stipping
This is a gzipped version that shows the problem.
Do the following:
gcc -fno-strict-aliasing -Os -m64 -funit-at-a-time -g -c -o alt.o alt.c
And examine the alt.o to see that several functions are in the .rodata section.
use: objdump -Dra alt.o | less
and search for 'Disassembly of section .rodata:'
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35895