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

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


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]