From 2c75b545de6fe3c44138799c68217a94bc669a88 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 18 Jun 2019 16:42:10 +0200 Subject: 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. --- include/elf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/elf.h b/include/elf.h index ab76aaf..14ed67f 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 */ -- cgit v1.1