portable method to add a new output section?
Nick Clifton
nickc@redhat.com
Fri Feb 1 10:43:00 GMT 2008
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
More information about the Binutils
mailing list