about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2011-06-09 17:06:46 -0700
committerRoland McGrath <roland@hack.frob.com>2011-06-09 17:07:50 -0700
commit28368601e303e415b99ed127c5319362b1d75203 (patch)
tree90abd55c6f1d34bf189f611e49767ad680e963da /elf
parent175b70988b3a5ff8087ff810937b3599aa6aa3ca (diff)
downloadglibc-28368601e303e415b99ed127c5319362b1d75203.tar.gz
glibc-28368601e303e415b99ed127c5319362b1d75203.tar.xz
glibc-28368601e303e415b99ed127c5319362b1d75203.zip
Use -Wl,-r instead of plain -r.
Diffstat (limited to 'elf')
-rw-r--r--elf/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/elf/Makefile b/elf/Makefile
index 844c9ca56f..5b199e64ed 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -353,7 +353,7 @@ lib-noranlib: $(objpfx)$(rtld-installed-name) \
 endif
 
 # Command to link into a larger single relocatable object.
-reloc-link = $(LINK.o) -nostdlib -nostartfiles -r
+reloc-link = $(LINK.o) -nostdlib -nostartfiles -Wl,-r
 
 $(objpfx)dl-allobjs.os: $(all-rtld-routines:%=$(objpfx)%.os)
 	$(reloc-link) -o $@ $^
@@ -398,7 +398,8 @@ $(objpfx)rtld-libc.a: $(objpfx)librtld.mk FORCE
 	$(MAKE) -f $< -f rtld-Rules
 
 $(objpfx)librtld.os: $(objpfx)dl-allobjs.os $(objpfx)rtld-libc.a
-	$(LINK.o) -nostdlib -nostartfiles -r -o $@ '-Wl,-(' $^ -lgcc '-Wl,-)' \
+	$(LINK.o) -nostdlib -nostartfiles -Wl,-r -o $@ \
+		  '-Wl,-(' $^ -lgcc '-Wl,-)' \
 		  -Wl,-Map,$@.map
 
 generated += librtld.map librtld.mk rtld-libc.a librtld.os.map