https://sourceware.org/bugzilla/show_bug.cgi?id=19662

            Bug ID: 19662
           Summary: elf_link_sort_relocs is insufficient
           Product: binutils
           Version: 2.27 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

elf_link_sort_relocs is called by

 if (dynamic && info->combreloc && dynobj != NULL)
    relativecount = elf_link_sort_relocs (abfd, info, &reldyn);

There are cases where relocations aren't sorted:

1. When -z nocombreloc is used.
2. Some targets, like x86, have:

  [ 8] .rel.dyn          REL             080494b0 0014b0 000038 08   A  4   0 
4
  [ 9] .rel.plt          REL             080494e8 0014e8 0003d0 08  AI  4  21 
4

with z combreloc.  .rel.plt aren't get sorted.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to