summaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makerules b/Makerules
index 0929e6e92c..d855ae344c 100644
--- a/Makerules
+++ b/Makerules
@@ -511,7 +511,7 @@ endif
ifeq (yes,$(elf))
# binutils only position loadable notes into the first page for binaries,
# not for shared objects
-$(common-objpfx)shlib.lds: $(common-objpfx)config.make
+$(common-objpfx)shlib.lds: $(common-objpfx)config.make $(..)Makerules
$(LINK.o) -shared -Wl,-O1 \
$(sysdep-LDFLAGS) $(config-LDFLAGS) $(LDFLAGS.so) \
-Wl,--verbose 2>&1 | \
@@ -519,9 +519,9 @@ $(common-objpfx)shlib.lds: $(common-objpfx)config.make
-e '/^=========/,/^=========/!d;/^=========/d' \
-e 's/^.*\.hash[ ]*:.*$$/ .note.ABI-tag : { *(.note.ABI-tag) } &/' \
-e 's/^.*\*(\.dynbss).*$$/& \
- __start___libc_freeres_ptrs = .; \
+ PROVIDE(__start___libc_freeres_ptrs = .); \
*(__libc_freeres_ptrs) \
- __stop___libc_freeres_ptrs = .;/'
+ PROVIDE(__stop___libc_freeres_ptrs = .);/'
mv -f $@T $@
common-generated += shlib.lds