This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: KEEP sections without writing a complete linker script?
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.
cheers,
DaveK