This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: question about linker
- From: Eric Christopher <echristo at apple dot com>
- To: sean yang <seanatpurdue at hotmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 9 Sep 2005 11:06:17 -0700
- Subject: Re: question about linker
- References: <BAY105-F20DCB634C51D391544D64C0980@phx.gbl>
On Sep 9, 2005, at 10:28 AM, sean yang wrote:
Hi
I am looking for the source code related to linking stage--coz I am
trying to modify (very slightly) the linker. I understand that 'ld'
is the linker in Linux. My question is:
Is 'ld' a part of gcc toolchain?
--If it is, I should be able to find source file producing 'ld'.
But I haven't found the source file to be compiled to 'ld'.
--If it's not, main() of gcc.c should invoke ld if it found the '-
o' option. But I didn't find the invocation either(maybe it's not a
straightforward invocation).
The linker is ld, and is in the binutils package. http://
sourceware.org/binutils/.
To see what's really going on try adding -v and -Wl,-v to your gcc
command line.
-eric