Re: Fwd: Compiling with -fdata-sections doesn't put the constant in the section expected

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux