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: 23 Jul 2009 13:29:10 -0000

------- Additional Comments From hjl dot tools at gmail dot com  2009-07-23 
13:29 -------
(In reply to comment #11)
> Hi H.J.
> 
>   Will the uploaded patch work ?
> 

I am afraid it is wrong. You have to duplicate the whole
logic in elf_link_output_extsym:

  if ((h->type == STT_GNU_IFUNC
       && h->def_regular
       && !finfo->info->relocatable)
      || ((h->dynindx != -1
           || h->forced_local)
          && ((finfo->info->shared
               && (ELF_ST_VISIBILITY (h->other) == STV_DEFAULT
                   || h->root.type != bfd_link_hash_undefweak))
              || !h->forced_local)
          && elf_hash_table (finfo->info)->dynamic_sections_created))
    {

Otherwise, you will miss the || part. Like I said, the backend is
the wrong place to fix this bug.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |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]