bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/26404] ld: INSERT [AFTER|BEFORE] variant for extension purposes


From: peter.smith at arm dot com
Subject: [Bug ld/26404] ld: INSERT [AFTER|BEFORE] variant for extension purposes
Date: Thu, 17 Sep 2020 10:57:58 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=26404

--- Comment #3 from Peter Smith <peter.smith at arm dot com> ---
As I understand it [*] just adding the script on the command line but without
the -T or --script will cause the linker to merge without the need for INSERT
etc.

I agree that this is not intuitive outside the use case of GROUP for files, so
I think adding a command line option is useful.

It would be good to concentrate on the semantics. I don't have a proposal right
now, although I tend towards making the scope of the first implementation as
narrow as possible. It could be expanded later on. For example just do a simple
1:1 replacement of an existing section name. If there is no-match then it can
be added via the normal orphan placement rules.

[*] I had a recent experience when a colleagues binary wasn't running and it
was caused by forgetting -T so a full linker script got merged with the
internal linker script, which unfortunately clashed enough to break the program
but not report errors.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]