Summary: | Gold doesn't support SHF_GNU_RETAIN | ||
---|---|---|---|
Product: | binutils | Reporter: | H.J. Lu <hjl.tools> |
Component: | gold | Assignee: | Cary Coutant <ccoutant> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ian |
Priority: | P2 | ||
Version: | 2.36 | ||
Target Milestone: | 2.36 | ||
URL: | https://sourceware.org/pipermail/binutils/2020-December/114458.html | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Attachments: | A patch |
Description
H.J. Lu
2020-12-09 13:11:24 UTC
Created attachment 13029 [details]
A patch
A patch is posted at https://sourceware.org/pipermail/binutils/2020-December/114458.html The master branch has been updated by Cary Coutant <ccoutant@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ff4bc37d77a0ca7286883a477adcb3aa145fc782 commit ff4bc37d77a0ca7286883a477adcb3aa145fc782 Author: Cary Coutant <ccoutant@gmail.com> Date: Mon Dec 14 15:46:47 2020 -0800 Keep input SHF_GNU_RETAIN sections and strip output SHF_GNU_RETAIN for GNU/FreBSD ELFOSABIs. 2020-12-14 H.J. Lu <hjl.tools@gmail.com> Cary Coutant <ccoutant@gmail.com> elfcpp/ PR gold/27039 * elfcpp.h (SHF): Add SHF_GNU_RETAIN. gold/ PR gold/27039 * layout.cc (Layout::layout): Strip SHF_GNU_RETAIN. * object.cc (Sized_relobj_file::Sized_relobj_file): Initialize osabi_. (Sized_relobj_file::do_layout): Keep SHF_GNU_RETAIN sections for GNU/FreBSD ELFOSABIs. * object.h (Osabi) New class. (Sized_relobj_file): Add osabi() and osabi_. * testsuite/Makefile.am (check_SCRIPTS): Add retain.sh. (check_DATA): Add retain_1.out retain_2.out. (MOSTLYCLEANFILES): Add retain_1 retain_2. (retain_1.out): New target. (retain_1): Likewise. (retain_1.o): Likewise. (retain_2.out): Likewise. (retain_2): Likewise. (retain_2.o): Likewise. * testsuite/Makefile.in: Regenerate. * testsuite/retain.sh: New file. * testsuite/retain_1.s: Likewise. * testsuite/retain_2.s: Likewise. Fixed for 2.36. |