[Patch,AVR]: Fix PR13697: Wrong symbols with --gc-sections

Tristan Gingold gingold@adacore.com
Wed May 30 10:26:00 GMT 2012


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.



More information about the Binutils mailing list