diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2009-06-16 09:19:59 -0700 |
---|---|---|
committer | Andreas Schwab <schwab@redhat.com> | 2009-08-04 10:57:34 +0200 |
commit | a584fc6a6b81183ed6ce1724237c6744cdd6559e (patch) | |
tree | d15cd13afad128b10f76025750cd7779e978a5fd /elf | |
parent | c97164f05ba8fa5d2ebf30f1c2de083bc1ead1e1 (diff) |
Consolidate PIE linking Makefile rules.
(cherry picked from commit 435aa54b3b9c1c87498e8bb3831394fd42220fa7)
Diffstat (limited to 'elf')
-rw-r--r-- | elf/Makefile | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/elf/Makefile b/elf/Makefile index b2b5a6538e..208538cc8f 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -833,14 +833,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 |