KEEP sections without writing a complete linker script?
Tristan Gingold
gingold@adacore.com
Fri Jun 18 15:04:00 GMT 2010
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.
More information about the Binutils
mailing list