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

[Bug c/35895] gcc puts code in rodata section with -Os -g -funit-at-a-time



------- 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


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