bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/6931] COMDAT group is broken


From: hjl dot tools at gmail dot com
Subject: [Bug ld/6931] COMDAT group is broken
Date: 1 Oct 2008 23:15:36 -0000

------- Additional Comments From hjl dot tools at gmail dot com  2008-10-01 
23:15 -------
The bug is in bfd_elf_set_group_contents:

  symindx = 0; 
  if (elf_group_id (sec) != NULL)
    symindx = elf_group_id (sec)->udata.i;

  if (symindx == 0)
    {
      /* If called from the assembler, swap_out_syms will have set up
         elf_section_syms;  If called for "ld -r", use target_index.  */
      if (elf_section_syms (abfd) != NULL)
        symindx = elf_section_syms (abfd)[sec->index]->udata.i;
      else
        symindx = sec->target_index;
    }
  elf_section_data (sec)->this_hdr.sh_info = symindx;

"ld -r" is incorrect. We need to find the symbol index for
group signature which isn't the same as the section name.

-- 


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

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