Skip to content

Commit

Permalink
Revert -r -> -Wl,-r change.
Browse files Browse the repository at this point in the history
  • Loading branch information
frobtech committed Jun 10, 2011
1 parent 2836860 commit b350afa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
2011-06-10 Roland McGrath <roland@hack.frob.com>

* Makerules: Revert last change.
* elf/Makefile: Likewise.

2011-06-09 Roland McGrath <roland@hack.frob.com>

* Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
Expand Down
2 changes: 1 addition & 1 deletion Makerules
Expand Up @@ -610,7 +610,7 @@ endif
# between libc.so and ld.so, which can make it impossible to upgrade.
ifeq ($(elf),yes)
$(common-objpfx)libc_pic.os: $(common-objpfx)libc_pic.a
$(LINK.o) -nostdlib -nostartfiles -Wl,-r -o $@ \
$(LINK.o) -nostdlib -nostartfiles -r -o $@ \
$(LDFLAGS-c_pic.os) -Wl,-d -Wl,--whole-archive $^
# Use our own special initializer and finalizer files for libc.so.
$(common-objpfx)libc.so: $(elfobjdir)/soinit.os \
Expand Down
5 changes: 2 additions & 3 deletions elf/Makefile
Expand Up @@ -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 -Wl,-r
reloc-link = $(LINK.o) -nostdlib -nostartfiles -r

$(objpfx)dl-allobjs.os: $(all-rtld-routines:%=$(objpfx)%.os)
$(reloc-link) -o $@ $^
Expand Down Expand Up @@ -398,8 +398,7 @@ $(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 -Wl,-r -o $@ \
'-Wl,-(' $^ -lgcc '-Wl,-)' \
$(LINK.o) -nostdlib -nostartfiles -r -o $@ '-Wl,-(' $^ -lgcc '-Wl,-)' \
-Wl,-Map,$@.map

generated += librtld.map librtld.mk rtld-libc.a librtld.os.map
Expand Down

0 comments on commit b350afa

Please sign in to comment.