This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: what's difference between "relocatable link" and "final link"?
- From: Ian Lance Taylor <ian at airs dot com>
- To: "Huang, Chunhao" <Chunhao dot Huang at sony dot com dot cn>
- Cc: <binutils at sourceware dot org>
- Date: 11 Jun 2006 21:31:15 -0700
- Subject: Re: what's difference between "relocatable link" and "final link"?
- References: <72E45C253B3AEC45B17C71D5C145B93603C2DA35@CNSCNXMS02.ap.sony.com>
"Huang, Chunhao" <Chunhao.Huang@sony.com.cn> writes:
> When I study the BFD library, I meet "relocatable link" and
> "final link" several times, but I can NOT find out the difference
> between them. My rough comprehension is that "relocatable link"
> done by assembler, which is something like parsing the local
> symbols in sections. while "final link" done by linker.
A relocateable link is what the linker does when you use the -r
option.
A final link is what the linker does when you do not use the -r
option.
Ian