[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: |
hjl.tools 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 15:50:46 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=25617
--- Comment #30 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Kaylee from comment #27)
> Created attachment 12357 [details]
> testcase for objcopy breakage
>
> This .so works fine, but if put through objcopy (even without flags),
> objcopy will attempt to copy the program header, and extend the relevant
> PT_LOAD entry to cover the new location. Unfortunately, it does not take
> into account that the endpoints of a loaded region are rounded up to page
> sizes, and as a result it will cause the first page of the second segment to
> overlap the last page of the first segment.
>
> I don't know if it's trying to create a second header because the .so -> BFD
> -> .so conversion is lossy, or if it's actively trying to modify it, but
> probably it should treat the program header as fixed, since application code
> may depend both on the specific values stored in it and also that the values
> are correct.
It has nothing to do with --remove-section-header. You get the same result
without --remove-section-header using objcopy on master branch.
--
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, 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, 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, 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 <=
- [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
- [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
- [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
- [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/08
- [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/08
- [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/08
- [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/08
- [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