diff options
author | Aaron D. Marasco <github-patchelf@marascos.net> | 2020-06-10 13:35:06 (GMT) |
---|---|---|
committer | Aaron D. Marasco <github-patchelf@marascos.net> | 2020-06-10 13:51:37 (GMT) |
commit | e522b14edc0ef742106771176f13c9a0b78818ca (patch) | |
tree | f0f41291fe468146b7813b1da858c209b64e0099 /src/patchelf.cc | |
parent | d6b2a72d9ec3bdfde4b1aacdada823ce388968bb (diff) | |
download | patchelf-e522b14edc0ef742106771176f13c9a0b78818ca.zip patchelf-e522b14edc0ef742106771176f13c9a0b78818ca.tar.gz patchelf-e522b14edc0ef742106771176f13c9a0b78818ca.tar.bz2 |
Add libasan build option and test print-needed
(cherry picked from commit 288eb61a173ce6f4cdf0be0d744c9c6b6b5598a4)
Diffstat (limited to 'src/patchelf.cc')
-rw-r--r-- | src/patchelf.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/patchelf.cc b/src/patchelf.cc index 965686a..0d0f369 100644 --- a/src/patchelf.cc +++ b/src/patchelf.cc @@ -250,7 +250,6 @@ I ElfFile<ElfFileParamNames>::rdi(I i) return r; } - /* Ugly: used to erase DT_RUNPATH when using --force-rpath. */ #define DT_IGNORE 0x00726e67 @@ -737,7 +736,7 @@ void ElfFile<ElfFileParamNames>::rewriteSectionsLibrary() ET_DYN as does LD when linking with pie. If we move PT_PHDR, it has to stay in the first PT_LOAD segment or any subsequent ones if they're continuous in memory due to linux kernel constraints - (see BUGS). Since the end of the file would be after bss, we can't + (see BUGS). Since the end of the file would be after bss, we can't move PHDR there, we therefore choose to leave PT_PHDR where it is but move enough following sections such that we can add the extra PT_LOAD section to it. This PT_LOAD segment ensures the sections at the end of |