[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/16178] New: Sort reloc_class_ifunc doesn't work
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/16178] New: Sort reloc_class_ifunc doesn't work |
Date: |
Sat, 16 Nov 2013 00:18:30 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=16178
Bug ID: 16178
Summary: Sort reloc_class_ifunc doesn't work
Product: binutils
Version: 2.25 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
CC: amodra at gmail dot com
reloc_class_ifunc is added to put the IRELATIVE relocations
at the end of dynamic relocation table. There are 2
problems:
1. elf_link_sort_relocs is called with
if (dynamic && info->combreloc && dynobj != NULL)
relativecount = elf_link_sort_relocs (abfd, info, &reldyn);
If -z comreloc isn't used, sorting is off.
2. elf_link_sort_relocs only deals with .rel.dyn and .rela.dyn.
But some backends put IRELATIVE relocations in .rel.plt or
.rela.plt, regardless if -z comreloc is used. So reloc_class_ifunc
does nothing.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/16178] New: Sort reloc_class_ifunc doesn't work,
hjl.tools at gmail dot com <=