Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sparc: Really use linker with LDFLAGS.

Rather than funneling through CC.

Also, use --hash-style=both just like other VDSO architectures and
glibc do.

Signed-off-by: David S. Miller <davem@davemloft.net>

+7 -9
+7 -9
arch/sparc/vdso/Makefile
··· 33 33 34 34 CPPFLAGS_vdso.lds += -P -C 35 35 36 - VDSO_LDFLAGS_vdso.lds = -m64 -Wl,-soname=linux-vdso.so.1 \ 37 - -Wl,--no-undefined \ 38 - -Wl,-z,max-page-size=8192 -Wl,-z,common-page-size=8192 \ 39 - $(DISABLE_LTO) 36 + VDSO_LDFLAGS_vdso.lds = -m elf64_sparc -soname linux-vdso.so.1 --no-undefined \ 37 + -z max-page-size=8192 -z common-page-size=8192 40 38 41 39 $(obj)/vdso64.so.dbg: $(obj)/vdso.lds $(vobjs) FORCE 42 40 $(call if_changed,vdso) ··· 72 74 $(call if_changed,objcopy) 73 75 74 76 CPPFLAGS_vdso32.lds = $(CPPFLAGS_vdso.lds) 75 - VDSO_LDFLAGS_vdso32.lds = -m32 -Wl,-m,elf32_sparc,-soname=linux-gate.so.1 77 + VDSO_LDFLAGS_vdso32.lds = -m elf32_sparc -soname linux-gate.so.1 76 78 77 79 #This makes sure the $(obj) subdirectory exists even though vdso32/ 78 80 #is not a kbuild sub-make subdirectory ··· 109 111 # The DSO images are built using a special linker script. 110 112 # 111 113 quiet_cmd_vdso = VDSO $@ 112 - cmd_vdso = $(CC) -nostdlib -o $@ \ 114 + cmd_vdso = $(LD) -nostdlib -o $@ \ 113 115 $(VDSO_LDFLAGS) $(VDSO_LDFLAGS_$(filter %.lds,$(^F))) \ 114 - -Wl,-T,$(filter %.lds,$^) $(filter %.o,$^) 116 + -T $(filter %.lds,$^) $(filter %.o,$^) 115 117 116 - VDSO_LDFLAGS = -fPIC -shared $(call cc-ldoption, -Wl$(comma)--hash-style=sysv) \ 117 - $(call cc-ldoption, -Wl$(comma)--build-id) -Wl,-Bsymbolic 118 + VDSO_LDFLAGS = -shared $(call ld-option, --hash-style=both) \ 119 + $(call ld-option, --build-id) -Bsymbolic 118 120 GCOV_PROFILE := n 119 121 120 122 #