diff options
Diffstat (limited to 'elf/Makefile')
-rw-r--r-- | elf/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/elf/Makefile b/elf/Makefile index 85dba53f99..5fe73e7171 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -103,11 +103,13 @@ $(objpfx)rtld-ldscript: $(rtld-ldscript-in) $(rtld-parms) $(objpfx)ld.so: $(objpfx)librtld.os $(objpfx)rtld-ldscript $(rtld-link) -Wl,-soname=$(rtld-installed-name) +RTLD-VERSIONS=$(addprefix -Wl,--version-script=,$(libc-map)) + define rtld-link $(LINK.o) -nostdlib -nostartfiles -shared -o $@ \ -Wl,-rpath=$(default-rpath) $(LDFLAGS-rtld) \ $(filter-out $(objpfx)rtld-ldscript,$^) \ - -Wl,--version-script=$(libc-map) + $(RTLD-VERSIONS) endef else $(objpfx)ld.so: $(objpfx)librtld.os @@ -115,8 +117,7 @@ $(objpfx)ld.so: $(objpfx)librtld.os define rtld-link $(LINK.o) -nostdlib -nostartfiles -shared -o $@ \ - -Wl,-rpath=$(default-rpath) $^ \ - -Wl,--version-script=$(libc-map) + -Wl,-rpath=$(default-rpath) $^ $(RTLD-VERSIONS) endef endif |