This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Dead easy question - if you already know...
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Dave Korn <dave dot korn at artimi dot com>
- Cc: binutils at sourceware dot org
- Date: Tue, 22 Apr 2008 10:56:32 +0930
- Subject: Re: Dead easy question - if you already know...
- References: <049e01c8a3d3$03d84070$2708a8c0@CAM.ARTIMI.COM>
On Mon, Apr 21, 2008 at 06:13:27PM +0100, Dave Korn wrote:
> The standard idiom in bfd to find out if you're doing a relocatable or final
> link is to test if the output bfd pointer is NULL; if so, you're doing a final
> link, else you're doing a relocatable one.
This true of the relocation howto functions, but it is certainly not
true in general. The output bfd is passed in many other function.
I don't know why the relocation howto functions were written that
way.
--
Alan Modra
Australia Development Lab, IBM