mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 08:44:21 +08:00
Merge branch 'x86-build-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'x86-build-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86, vdso: Don't quote $nm in the script for checking vdso references x86, vdso: Error out if the vdso contains external references
This commit is contained in:
commit
b304441c6f
@ -120,7 +120,8 @@ $(obj)/vdso32-syms.lds: $(vdso32.so-y:%=$(obj)/vdso32-%-syms.lds) FORCE
|
|||||||
quiet_cmd_vdso = VDSO $@
|
quiet_cmd_vdso = VDSO $@
|
||||||
cmd_vdso = $(CC) -nostdlib -o $@ \
|
cmd_vdso = $(CC) -nostdlib -o $@ \
|
||||||
$(VDSO_LDFLAGS) $(VDSO_LDFLAGS_$(filter %.lds,$(^F))) \
|
$(VDSO_LDFLAGS) $(VDSO_LDFLAGS_$(filter %.lds,$(^F))) \
|
||||||
-Wl,-T,$(filter %.lds,$^) $(filter %.o,$^)
|
-Wl,-T,$(filter %.lds,$^) $(filter %.o,$^) && \
|
||||||
|
sh $(srctree)/$(src)/checkundef.sh '$(NM)' '$@'
|
||||||
|
|
||||||
VDSO_LDFLAGS = -fPIC -shared $(call cc-ldoption, -Wl$(comma)--hash-style=sysv)
|
VDSO_LDFLAGS = -fPIC -shared $(call cc-ldoption, -Wl$(comma)--hash-style=sysv)
|
||||||
GCOV_PROFILE := n
|
GCOV_PROFILE := n
|
||||||
|
10
arch/x86/vdso/checkundef.sh
Executable file
10
arch/x86/vdso/checkundef.sh
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
nm="$1"
|
||||||
|
file="$2"
|
||||||
|
$nm "$file" | grep '^ *U' > /dev/null 2>&1
|
||||||
|
if [ $? -eq 1 ]; then
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
echo "$file: undefined symbols found" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user