This is the mail archive of the binutils@sources.redhat.com 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: ld's RPATH versus gcc's


Chris McCraw <fool@cs.utexas.edu> writes:

> can you replace it completely?  i found -nostdlib beyond my simple
> reverse engineering skills, though now that i've seen the output of
> a normal link with --verbose, i might be able to manage it.

You can replace it either with -nostdlib or by using a different linker
script.

>> It's coming from the default linker script, which is usually compiled in,
>> but also installed in $datadir/ldscripts.
>
> so does changing the script in place have any effect on compiling, or is it
> just an example which you can copy, change, and use with ld -T ?

The linker scripts for the default emulation are compiled into the linker
binary.  To change them you have to use -T and point it to a modified
copy.  For non-default emulations the scripts are read from the
filesystem.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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