------- Additional Comments From hjl dot tools at gmail dot com  2009-07-30 
16:50 -------
If all relocations against an IFUNC symbol are in the same file
where it is defined, the ref_regular field may not be set. I
changed the x86 linker to set it properly for IFUNC symbols. We
need to do it. Otherwise we will run into this bug. If not all
backends need it, we can change elflink.c from

 if ((h->type == STT_GNU_IFUNC
       && h->def_regular
       && !finfo->info->relocatable)

to

 if ((h->type == STT_GNU_IFUNC
      && !finfo->info->relocatable
      && bed->need_finish_dynamic_ifunc_symbol (h))

It will be default to h->def_regular. I can provide a patch if it is
OK.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|SUSPENDED                   |NEW


http://sourceware.org/bugzilla/show_bug.cgi?id=10433

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to