bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/10433] Latest ld fails to link ldconfig properly


From: hjl dot tools at gmail dot com
Subject: [Bug ld/10433] Latest ld fails to link ldconfig properly
Date: 30 Jul 2009 16:50:27 -0000

------- 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]