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: KEEP sections without writing a complete linker script?


On Jun 18, 2010, at 5:19 PM, Dave Korn wrote:

> On 18/06/2010 15:42, Tristan Gingold wrote:
>> On Jun 18, 2010, at 4:13 PM, Dave Korn wrote:
>>> You guys are making my head hurt!  How is that supposed to work, when -T
>>> "replaces `ld''s default linker script (rather than adding to it)"?  What is
>>> there to INSERT AFTER if you use -T?
>> 
>> See the documentation:
>> 
>> INSERT [ AFTER | BEFORE ] output_section
>> This command is typically used in a script specified by `-T' to augment the default SECTIONS with, for example, overlays. It inserts all prior linker script statements after (or before) output_section, and also causes `-T' to not override the default linker script.
> 
>  Boh!  Maybe the -T documentation should mention something about that too.

Yes, this will make things clearer.  Feel free to submit a patch :-)

Tristan.


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