diff options
author | Florian Weimer <fweimer@redhat.com> | 2019-11-01 15:41:30 -0400 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2019-11-01 15:41:30 -0400 |
commit | 59991bf48a821a9b8d504b325e84d2099fa1a14e (patch) | |
tree | daa85df83584bac821efd2ef5bb945268aa5d672 /include | |
parent | cef4c840a80372fe084effec0da1177d44b40bc0 (diff) | |
download | glibc-59991bf48a821a9b8d504b325e84d2099fa1a14e.tar.gz glibc-59991bf48a821a9b8d504b325e84d2099fa1a14e.tar.xz glibc-59991bf48a821a9b8d504b325e84d2099fa1a14e.zip |
elf: Refuse to dlopen PIE objects [BZ #24323]
Another executable has already been mapped, so the dynamic linker cannot perform relocations correctly for the second executable. (cherry picked from commit 2c75b545de6fe3c44138799c68217a94bc669a88) (test omitted due to indirect dependency on test-in-container)
Diffstat (limited to 'include')
-rw-r--r-- | include/elf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/elf.h b/include/elf.h index ab76aafb1e..14ed67ff67 100644 --- a/include/elf.h +++ b/include/elf.h @@ -23,7 +23,7 @@ # endif # define DT_1_SUPPORTED_MASK \ (DF_1_NOW | DF_1_NODELETE | DF_1_INITFIRST | DF_1_NOOPEN \ - | DF_1_ORIGIN | DF_1_NODEFLIB) + | DF_1_ORIGIN | DF_1_NODEFLIB | DF_1_PIE) #endif /* !_ISOMAC */ #endif /* elf.h */ |