This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Dead easy question - if you already know...
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <binutils at sourceware dot org>
- Date: Mon, 21 Apr 2008 18:13:27 +0100
- Subject: Dead easy question - if you already know...
I kind of already know that the answer is "yes", but I don't understand the
logic behind it:
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.
But why? Where's the output going, if not to an output bfd?
(And if there's something I've overlooked in the docs that should have
already explained this for me, RTFM pointers gratefully accepted.)
cheers,
DaveK
--
Can't think of a witty .sigline today....