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: portable method to add a new output section?


Hi Gary,

The default script can be coaxed from ld using the -verbose
option, and we can likely write a perl or sed script that
edits the default script adding a directive like the one
shown above.  This script can then be passed to ld
using the -T switch.

Have you tried just adding this partial script to the linker command line ? If the linker sees a file specified on the command line in a format that it does not recognise it assumes that it is a linker script and it uses this script to augment the current linker script.


Cheers
  Nick


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