This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: statically linking standard libraries


JJ <alchemistmba@gmail.com> writes:

> I also need to pass a linker script to the linker. I tried the
> following option to g++:
>
> -Xlinker "-T temp.ld"

That will pass "-T temp.ld" as a single option, which causes the
linker to look for the file " temp.ld" (with a leading space).

Use

-Xlinker -T -Xlinker temp.ld

or

-Wl,-T,temp.ld

Ian


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