This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch hjl/pr21815/master created. glibc-2.25-775-ga875730
- From: hjl at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 21 Jul 2017 20:40:11 -0000
- Subject: GNU C Library master sources branch hjl/pr21815/master created. glibc-2.25-775-ga875730
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, hjl/pr21815/master has been created
at a8757308cbf5a869f06b656c0b443b453aec9135 (commit)
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a8757308cbf5a869f06b656c0b443b453aec9135
commit a8757308cbf5a869f06b656c0b443b453aec9135
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Jul 19 12:04:14 2017 -0700
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.
diff --git a/elf/Makefile b/elf/Makefile
index e758a4c..d39f4c5 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -356,6 +356,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
-----------------------------------------------------------------------
hooks/post-receive
--
GNU C Library master sources