aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2009-06-16 09:19:59 -0700
committerUlrich Drepper <drepper@redhat.com>2009-06-16 09:19:59 -0700
commit435aa54b3b9c1c87498e8bb3831394fd42220fa7 (patch)
treeb5de40c20afead258bbae697c625f86330c7ec52 /elf
parent25bfbb9e0e610afaf6b67e5ee1a1a5338018c42e (diff)
downloadglibc-435aa54b3b9c1c87498e8bb3831394fd42220fa7.zip
glibc-435aa54b3b9c1c87498e8bb3831394fd42220fa7.tar.gz
glibc-435aa54b3b9c1c87498e8bb3831394fd42220fa7.tar.bz2
Consolidate PIE linking Makefile rules.
Diffstat (limited to 'elf')
-rw-r--r--elf/Makefile9
1 files changed, 1 insertions, 8 deletions
diff --git a/elf/Makefile b/elf/Makefile
index 6bcbb51..5973690 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -852,14 +852,7 @@ $(objpfx)tst-pie1.out: $(objpfx)tst-pie1
$< > $@
$(objpfx)tst-pie1: $(objpfx)tst-pie1.o $(objpfx)tst-piemod1.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 += tst-pie1 tst-pie1.out tst-pie1.o
endif