Fwd: Compiling with -fdata-sections doesn't put the constant in the section expected
Andrew Haley
aph@redhat.com
Wed Oct 1 10:02:00 GMT 2014
On 01/10/14 10:48, Clément Péron wrote:
> After the link my string used will stay in my ELF :S
I am quite baffled. Maybe there is some reason this doesn't work, but
right now I can't think of what it might be. Unused strings are removed
from static functions, as you'd expect.
I can't think of any reason that each string should not be put into a
unique section. It's need a unique name for each string, but that isn't
hard.
Andrew.
More information about the Gcc-help
mailing list