mirror of git://sourceware.org/git/glibc.git
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.
This commit is contained in:
parent
627c69c838
commit
e13daad7ac
|
@ -1,3 +1,9 @@
|
||||||
|
2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
[BZ #21815]
|
||||||
|
* elf/Makefile (CFLAGS-tst-prelink.c): New.
|
||||||
|
(LDFLAGS-tst-prelink): Likewise.
|
||||||
|
|
||||||
2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
|
2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
|
* sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
|
||||||
|
|
|
@ -358,6 +358,9 @@ update-all-abi: update-all-abi-ld
|
||||||
|
|
||||||
ifeq ($(have-glob-dat-reloc),yes)
|
ifeq ($(have-glob-dat-reloc),yes)
|
||||||
tests += tst-prelink
|
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)
|
ifeq ($(run-built-tests),yes)
|
||||||
tests-special += $(objpfx)tst-prelink-cmp.out
|
tests-special += $(objpfx)tst-prelink-cmp.out
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue