gcc -r

Ian Lance Taylor iant@google.com
Tue Dec 9 15:37:00 GMT 2008


Ralf Corsepius <ralf.corsepius@rtems.org> writes:

> So what would you recommend: To use "gcc -r" or "gcc -Wl,-r" ?

Ah, when you put the question like that, I would recommend "ld -r".
This is the one case where you get no advantage from using the gcc
driver to invoke the linker, and it can actually mess you up by adding
unexpected files to the command line.

Ian



More information about the Gcc mailing list