This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.26-26-g3093fd5


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, master has been updated
       via  3093fd5e5d418b91411aa9b061850b8773433cf7 (commit)
      from  d2cf37c0a2a375cf2fde69f1afbcc49e45368fc4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=3093fd5e5d418b91411aa9b061850b8773433cf7

commit 3093fd5e5d418b91411aa9b061850b8773433cf7
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Fri Aug 4 11:47:08 2017 -0700

    Run vismain only if linker supports protected data symbol
    
    Gold doesn't support protected data symbol:
    
    configure:5672: checking linker support for protected data symbol
    configure:5682: gcc -fuse-ld=gold -nostdlib -nostartfiles -fno-stack-protector -fPIC -shared conftest.c -o conftest.so
    configure:5685: $? = 0
    configure:5692: gcc -fuse-ld=gold -nostdlib -nostartfiles -fno-stack-protector conftest.c -o conftest conftest.so
    /usr/local/bin/ld.gold: error: /tmp/ccXWoofs.o: cannot make copy relocation for protected symbol 'bar', defined in conftest.so
    collect2: error: ld returned 1 exit status
    
    Run vismain only if linker supports protected data symbol.
    
    	* elf/Makefile (tests): Add vismain only if
    	$(have-protected-data) == yes.
    	(tests-pie): Likewise.

diff --git a/ChangeLog b/ChangeLog
index 613db92..33caac7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
 
+	* elf/Makefile (tests): Add vismain only if
+	$(have-protected-data) == yes.
+	(tests-pie): Likewise.
+
+2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
+
 	[BZ #21871]
 	* sysdeps/x86/cpu-features.c (init_cpu_features): Set
 	bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
diff --git a/elf/Makefile b/elf/Makefile
index e758a4c..2956445 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -289,10 +289,12 @@ ifeq (yesyes,$(have-fpie)$(build-shared))
 modules-names += tst-piemod1
 tests += tst-pie1 tst-pie2
 tests-pie += tst-pie1 tst-pie2
+ifeq (yes,$(have-protected-data))
 tests += vismain
 tests-pie += vismain
 CFLAGS-vismain.c = $(PIE-ccflag)
 endif
+endif
 modules-execstack-yes = tst-execstack-mod
 extra-test-objs += $(addsuffix .os,$(strip $(modules-names)))
 

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog    |    6 ++++++
 elf/Makefile |    2 ++
 2 files changed, 8 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]