|
From: | cvs-commit at gcc dot gnu.org |
Subject: | [Bug ld/25617] ld should reconstruct dynamic symbol table from PT_DYNAMIC when there is no section header |
Date: | Thu, 29 Jun 2023 17:36:19 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=25617 --- Comment #45 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by H.J. Lu <hjl@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=02c1ba6c94d4bb3f53dfeeb4401c8434c7834a32 commit 02c1ba6c94d4bb3f53dfeeb4401c8434c7834a32 Author: H.J. Lu <hjl.tools@gmail.com> Date: Wed May 31 12:36:49 2023 -0700 ELF: Discard non-alloc sections without section header Discard non-alloc sections when section headers are stripped. bfd/ PR ld/25617 * elf.c (_bfd_elf_assign_file_positions_for_non_load): Skip non-load sections without section header. (_bfd_elf_write_object_contents): Don't set the sh_name field without section header. Write out the .shstrtab section only if its sh_offset field isn't -1. binutils/ PR ld/25617 * objcopy.c (is_strip_section_1): Remove non-alloc sections for --strip-section-headers. ld/ PR ld/25617 * ldlang.c (lang_discard_section_p): Discard non-alloc sections if we are stripping section headers. -- You are receiving this mail because: You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |