This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc -r
- From: Ian Lance Taylor <iant at google dot com>
- To: Ralf Corsepius <ralf dot corsepius at rtems dot org>
- Cc: GCC List <gcc at gcc dot gnu dot org>
- Date: Tue, 09 Dec 2008 07:19:10 -0800
- Subject: Re: gcc -r
- References: <1228806424.30957.11051.camel@beck.corsepiu.local>
Ralf Corsepius <ralf.corsepius@rtems.org> writes:
> 1) Is "gcc -r" officially supported by gcc?
>
> It apparently works, but I can't find it documented anywhere in GCC's
> documentation.
When invoking the linker, a -r option on the command line will be
passed to the linker. The same is true of -A, -d, -eSYM, -m, -N, -n,
-s, -t, -uSYM, -x, -z, -Z. This is not well documented.
> 2) Is "gcc -r" any different from using "gcc -Wl,-r"?
No.
Ian