gcc -nostdlib -Wl,--script=xxx but "ld: this linker was not configured to use sysroots"
Nick Clifton
nickc@redhat.com
Tue May 24 13:59:00 GMT 2011
Hi Steffen,
> when linking without stdlib but a custom linker script, why does ld
> needs to know anything about a sysroot used to compile gcc?
>
> Is it just because gcc passed unneeded "--sysroot=..." option that
> leads to this error, although not needed in case of -nostdlib?
Possibly. Please could you open a bug report for this using the
bugzilla system:
http://sourceware.org/bugzilla/
It will really help if you can include a small testcase to reproduce the
problem, and if you mention the target architecture for whioch you are
trying to create an executable.
Cheers
Nick
More information about the Binutils
mailing list