This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: [Patch,AVR]: Fix PR13697: Wrong symbols with --gc-sections


On May 30, 2012, at 12:21 PM, Georg-Johann Lay wrote:

> Tristan Gingold wrote:
[...]
> 
>> Why not adding a KEEP attribute on sections, ie like:
>> 
>> .data : KEEP ...
>> {
>> ...
>> }
> 
> Isn't this the same like the proposed KEEP(*(.data)) from above?
> If not: what is the difference?
> And what is the right syntax?
> This always exits with a syntax error and dosc don't mention KEEP at all:
> http://sourceware.org/binutils/docs-2.22/ld/Output-Section-Attributes.html#Output-Section-Attributes

No, this was a proposal.  The KEEP attribute (on output sections) will keep the output section and its symbols even if it is empty.

Tristan.


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