This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question about archive search behavior vs. --defsym


On 9/9/2010 9:17 AM, Ian Lance Taylor wrote:

>>>> $ gcc main.c -Wl,--defsym=f=4 -L. -lf
>>>>
>>>> pulls in f.o from libf.a even though the symbol is already defined.

> I think it would be fairly easy to fix.  Basically as soon as a --defsym
> or symbol assignment in a linker script is read, the linker would have
> to make a symbol table entry for the defined symbol.  It would then have
> to fill in the values later.

I've filed this as PR #12001 in Binutils Bugzilla.

Thank you,

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]