about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2019-06-18 16:42:10 +0200
committerFlorian Weimer <fweimer@redhat.com>2019-06-18 16:42:10 +0200
commit2c75b545de6fe3c44138799c68217a94bc669a88 (patch)
treefa8cd3f23ec090151bfac600ee394757634cfa05 /include
parent02d8b5ab1c89bcef2627d2b621bfb35b573852c2 (diff)
downloadglibc-2c75b545de6fe3c44138799c68217a94bc669a88.tar.gz
glibc-2c75b545de6fe3c44138799c68217a94bc669a88.tar.xz
glibc-2c75b545de6fe3c44138799c68217a94bc669a88.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.
Diffstat (limited to 'include')
-rw-r--r--include/elf.h2
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 */