gcc -nostdlib -Wl,--script=xxx but "ld: this linker was not configured to use sysroots"

Steffen Dettmer steffen.dettmer@googlemail.com
Fri Apr 29 15:12:00 GMT 2011


Hi,

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?

oki,

Steffen



More information about the Binutils mailing list