This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Question about archive search behavior vs. --defsym
On Thu, Sep 9, 2010 at 9:39 AM, Mark Mitchell <mark@codesourcery.com> wrote:
> On 9/9/2010 9:37 AM, H.J. Lu wrote:
>
>>>> OK. ?Is this a structurally hard thing to fix? ?Or just something that
>>>> would take some effort? ?And, does GOLD handle this correctly?
>
>> 1. The symbol value may not be known at the time.
>
> Yes, but this is just an implementation issue; you have to do a fixup
> later in the link process.
>
>> 2. It should override symbol defined in an object file.
>
> Of course.
>
> What point are you making? ?Are you arguing that the current behavior is
> desirable, or just that fixing it is not entirely trivial?
>
Fixing it properly isn't trivial.
--
H.J.