gcc puts .data and .bss symbols in .text segment.

Jim Wilson wilson@tuliptree.org
Tue Jun 24 05:27:00 GMT 2003


Henrik Stokseth wrote:
>  is there a way to turn it off on 
> the commandline? i couldn't find anything in the manual...

No.  There is no reason why an ordinary user would need this feature.

There is the -fwritable-strings option that puts strings in data instead 
of rodata, but you will still get other stuff in rodata.

Jim



More information about the Gcc mailing list