[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/31208] strip with no arguments sometimes breaks ELF alignm
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug binutils/31208] strip with no arguments sometimes breaks ELF alignment requirements |
Date: |
Thu, 08 Feb 2024 20:54:31 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=31208
--- Comment #5 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Alan Modra <amodra@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7f26d260ef76a4cb2873a7815bef187005528c19
commit 7f26d260ef76a4cb2873a7815bef187005528c19
Author: Alan Modra <amodra@gmail.com>
Date: Fri Feb 9 07:04:22 2024 +1030
PR31208, strip can break ELF alignment requirements
In https://sourceware.org/pipermail/binutils/2007-August/053261.html
(git commit 3dea8fca8b86) I disabled a then new linker feature that
removed empty PT_LOAD headers in cases where a user specified program
headers, and for objcopy. This can be a problem for objcopy/strip and
since objcopy operates on sections, any part of a PT_LOAD loading file
contents not covered by a section will be omitted anyway.
PR 31208
* elf.c (_bfd_elf_map_sections_to_segments): Pass remove_empty_load
as true to elf_modify_segment_map for objcopy/strip.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/31208] strip with no arguments sometimes breaks ELF alignment requirements,
cvs-commit at gcc dot gnu.org <=