Question about archive search behavior vs. --defsym

Mark Mitchell mark@codesourcery.com
Thu Sep 9 16:39:00 GMT 2010


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?

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Binutils mailing list