about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2009-06-17 19:55:18 -0700
committerUlrich Drepper <drepper@redhat.com>2009-06-17 19:55:18 -0700
commitd8366b0970865f39e01c6dd0d0cafab31fc3c9a4 (patch)
tree2874a528b77ee3b2e22580dc22c56ca0b6bbdd4c /elf
parentf051ddfe22d3db4e77d6a545d5363be8b986cb96 (diff)
downloadglibc-d8366b0970865f39e01c6dd0d0cafab31fc3c9a4.tar.gz
glibc-d8366b0970865f39e01c6dd0d0cafab31fc3c9a4.tar.xz
glibc-d8366b0970865f39e01c6dd0d0cafab31fc3c9a4.zip
Use +link-pie Makefile rule to link PIE ifunc tests.
Diffstat (limited to 'elf')
-rw-r--r--elf/Makefile18
1 files changed, 2 insertions, 16 deletions
diff --git a/elf/Makefile b/elf/Makefile
index 5973690be9..2aa5b7118f 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -993,14 +993,7 @@ $(objpfx)ifuncmain1pie.out: $(objpfx)ifuncmain1pie
 	  $< > $@
 
 $(objpfx)ifuncmain1pie: $(objpfx)ifuncmain1pie.o $(objpfx)ifuncmod1.so
-	$(LINK.o) -pie -Wl,-O1 \
-	  $(sysdep-LDFLAGS) $(config-LDFLAGS) \
-	  $(extra-B-$(@F:lib%.so=%).so) -B$(csu-objpfx) \
-	  $(extra-B-$(@F:lib%.so=%).so) $(load-map-file) \
-	  $(LDFLAGS) $(LDFLAGS-$(@F)) \
-	  -L$(subst :, -L,$(rpath-link)) -Wl,-rpath-link=$(rpath-link) \
-	  -o $@ $(objpfx)tst-pie1.o $(objpfx)tst-piemod1.so \
-	  $(common-objpfx)libc_nonshared.a
+	$(+link-pie)
 
 generated += ifuncmain1pie ifuncmain1pie.out
 
@@ -1010,14 +1003,7 @@ $(objpfx)ifuncmain1vispie.out: $(objpfx)ifuncmain1vispie
 	  $< > $@
 
 $(objpfx)ifuncmain1vispie: $(objpfx)ifuncmain1vispie.o $(objpfx)ifuncmod1.so
-	$(LINK.o) -pie -Wl,-O1 \
-	  $(sysdep-LDFLAGS) $(config-LDFLAGS) \
-	  $(extra-B-$(@F:lib%.so=%).so) -B$(csu-objpfx) \
-	  $(extra-B-$(@F:lib%.so=%).so) $(load-map-file) \
-	  $(LDFLAGS) $(LDFLAGS-$(@F)) \
-	  -L$(subst :, -L,$(rpath-link)) -Wl,-rpath-link=$(rpath-link) \
-	  -o $@ $(objpfx)tst-pie1.o $(objpfx)tst-piemod1.so \
-	  $(common-objpfx)libc_nonshared.a
+	$(+link-pie)
 
 generated += ifuncmain1vispie ifuncmain1vispie.out
 endif