[haiku-bugs] Re: [Haiku] #6272: support for undefined weak symbols

  • From: "lucian" <trac@xxxxxxxxxxxx>
  • Date: Tue, 06 Jul 2010 16:43:06 -0000

#6272: support for undefined weak symbols
----------------------------+-----------------------------------------------
  Reporter:  lucian         |         Owner:  axeld         
      Type:  bug            |        Status:  closed        
  Priority:  normal         |     Milestone:  R1            
 Component:  System/Kernel  |       Version:  R1/Development
Resolution:  fixed          |      Keywords:                
Blocked By:                 |   Has a Patch:  1             
  Platform:  All            |      Blocking:                
----------------------------+-----------------------------------------------

Comment (by lucian):

 Yep, you are right about not returning the symbol value. I meant to put
 the '*' but forgot.

 I'm not sure how to read this binutils mailing list discussion:
 http://sourceware.org/ml/binutils/2010-03/msg00173.html

   Because undefined weak references do not cause library archive symbols
 to be pulled in to resolve them, IIRC.

 My interpretation is that the undefined weak symbol should only be
 searched inside the image in which it appears, not in other images.

 That's why I put the check before {{{elf_find_symbol}}}.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6272#comment:3>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: