This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: a simple question about link
On Thu, Jan 10, 2013 at 10:06:54AM +0000, nick clifton wrote:
> Hi horseriver,
>
> > if gcc do not specify a ld-script file for ld , which ld-script ld will use ?
>
> The one that is built into the linker.
Thanks!
After installing ld , there is a folder named "ldscripts" under ld's home directory , which can be set by --prefix configure option .
Under /usr/lib folder , there is also a folder named "ldscripts" .
what is the difference between them ? ld will use which ?
> You can see this script by
> running the linker directly with the --verbose command line option
> specified. Note - slightly different variations of this default
> linker script are used when other command line options are also
> passed to the linker, eg -N and -r. See the source file
> ld/genscripts.sh for more details on this.
>
> Cheers
> Nick
>
>
>