diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-08-04 12:58:01 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-08-04 12:58:13 -0700 |
commit | e13daad7ac81968e9aaa4a87497f898bb15f4ef8 (patch) | |
tree | 6d9689deeb49de94e5d4d999986cfd7445980602 /elf/Makefile | |
parent | 627c69c838e75d69f46a7cc7dd2bafca03adbf60 (diff) | |
download | glibc-e13daad7ac81968e9aaa4a87497f898bb15f4ef8.zip glibc-e13daad7ac81968e9aaa4a87497f898bb15f4ef8.tar.gz glibc-e13daad7ac81968e9aaa4a87497f898bb15f4ef8.tar.bz2 |
Compile tst-prelink.c without PIE [BZ #21815]
tst-prelink.c checks for conflict with GLOB_DAT relocation against stdio.
On i386, there is no GLOB_DAT relocation against stdio with PIE. We
should compile tst-prelink.c without PIE.
[BZ #21815]
* elf/Makefile (CFLAGS-tst-prelink.c): New.
(LDFLAGS-tst-prelink): Likewise.
Diffstat (limited to 'elf/Makefile')
-rw-r--r-- | elf/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/elf/Makefile b/elf/Makefile index 2956445..828daaa 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -358,6 +358,9 @@ update-all-abi: update-all-abi-ld ifeq ($(have-glob-dat-reloc),yes) tests += tst-prelink +# Don't compile tst-prelink.c with PIE for GLOB_DAT relocation. +CFLAGS-tst-prelink.c += -fno-pie +LDFLAGS-tst-prelink = $(no-pie-ldflag) ifeq ($(run-built-tests),yes) tests-special += $(objpfx)tst-prelink-cmp.out endif |