[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/25617] ld should reconstruct dynamic symbol table from PT_DYNAMI
From: |
klkblake at gmail dot com |
Subject: |
[Bug ld/25617] ld should reconstruct dynamic symbol table from PT_DYNAMIC when there is no section header |
Date: |
Sat, 07 Mar 2020 04:05:57 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=25617
--- Comment #23 from Kaylee <klkblake at gmail dot com> ---
I got a failure in the ld testsuite in x86-64.exp. Unfortunately, about an hour
later, my computer crashed, and I have since been unable to reproduce it. I
think the text was something like "RELATIVE RELOCATION FAULT"?. It's possible
that it was just some transient failure in my system that also lead to the
crash.
Using --remove-section-header on one of my test cases, objcopy issues a warning
"Could not find any mergeable note sections". Probably it shouldn't warn about
that unless --merge-notes was explicitly specified.
Using objcopy (even without any flags) results in a shared object that
segfaults at runtime. Looking at readelf output, it seems like objcopy is
modifying the PT_LOAD entries. In particular, it seems to be moving the program
header to the start of the file, and then modifying the PT_LOAD entry that
covers the program header to cover it's new location, without taking into
account that this makes two segments overlap, which is illegal. Though even if
it modified it correctly, as a shared object its loaded segments may contain
arbitrary cross-references from e.g. PC-relative relocations which were
resolved at link time, and so can't be safely modified at all. strip has the
same issues.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gold/25617] Gold looks up shared object information in section headers instead of the dynamic array, (continued)
- [Bug gold/25617] Gold looks up shared object information in section headers instead of the dynamic array, hjl.tools at gmail dot com, 2020/03/04
- [Bug gold/25617] Gold looks up shared object information in section headers instead of the dynamic array, klkblake at gmail dot com, 2020/03/04
- [Bug gold/25617] Gold looks up shared object information in section headers instead of the dynamic array, hjl.tools at gmail dot com, 2020/03/04
- [Bug gold/25617] Gold looks up shared object information in section headers instead of the dynamic array, klkblake at gmail dot com, 2020/03/04
- [Bug gold/25617] Gold looks up shared object information in section headers instead of the dynamic array, hjl.tools at gmail dot com, 2020/03/05
- [Bug gold/25617] Gold looks up shared object information in section headers instead of the dynamic array, klkblake at gmail dot com, 2020/03/05
- [Bug gold/25617] Gold looks up shared object information in section headers instead of the dynamic array, hjl.tools at gmail dot com, 2020/03/05
- [Bug gold/25617] Gold looks up shared object information in section headers instead of the dynamic array, klkblake at gmail dot com, 2020/03/05
- [Bug ld/25617] ld should reconstruct dynamic symbol table from PT_DYNAMIC when there is no section header, hjl.tools at gmail dot com, 2020/03/06
- [Bug ld/25617] ld should reconstruct dynamic symbol table from PT_DYNAMIC when there is no section header, hjl.tools at gmail dot com, 2020/03/06
- [Bug ld/25617] ld should reconstruct dynamic symbol table from PT_DYNAMIC when there is no section header,
klkblake at gmail dot com <=
- [Bug ld/25617] ld should reconstruct dynamic symbol table from PT_DYNAMIC when there is no section header, klkblake at gmail dot com, 2020/03/06
- [Bug ld/25617] ld should reconstruct dynamic symbol table from PT_DYNAMIC when there is no section header, hjl.tools at gmail dot com, 2020/03/07
- [Bug ld/25617] ld should reconstruct dynamic symbol table from PT_DYNAMIC when there is no section header, hjl.tools at gmail dot com, 2020/03/07
- [Bug ld/25617] ld should reconstruct dynamic symbol table from PT_DYNAMIC when there is no section header, klkblake at gmail dot com, 2020/03/07
- [Bug ld/25617] ld should reconstruct dynamic symbol table from PT_DYNAMIC when there is no section header, klkblake at gmail dot com, 2020/03/07
- [Bug ld/25617] ld should reconstruct dynamic symbol table from PT_DYNAMIC when there is no section header, hjl.tools at gmail dot com, 2020/03/07
- [Bug ld/25617] ld should reconstruct dynamic symbol table from PT_DYNAMIC when there is no section header, hjl.tools at gmail dot com, 2020/03/07
- [Bug ld/25617] ld should reconstruct dynamic symbol table from PT_DYNAMIC when there is no section header, klkblake at gmail dot com, 2020/03/07
- [Bug ld/25617] ld should reconstruct dynamic symbol table from PT_DYNAMIC when there is no section header, hjl.tools at gmail dot com, 2020/03/07
- [Bug ld/25617] ld should reconstruct dynamic symbol table from PT_DYNAMIC when there is no section header, hjl.tools at gmail dot com, 2020/03/08