forked from roolebo/elfutils
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
strip: Always copy over any phdrs if there are any.
Ignore the type of ELF file, just copy over any phdrs if the original file contained any. Also refuse to move around any allocated sections based on whether there are any phdrs instead of on ELF file type. Signed-off-by: Mark Wielaard <[email protected]>
- Loading branch information
Mark Wielaard
committed
Nov 6, 2018
1 parent
e574889
commit b15ee95
Showing
2 changed files
with
48 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
2018-10-24 Mark Wielaard <[email protected]> | ||
|
||
* strip.c (handle_elf): Always copy over phdrs if there are any | ||
and check phnum instead of e_type to determine whether to move | ||
allocated sections. | ||
|
||
2018-11-02 Mark Wielaard <[email protected]> | ||
|
||
* unstrip.c (copy_elf): Add ELF_CHECK to make sure gelf_getehdr () | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters