mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-25 20:14:25 +08:00
05d0b0889c
The vdso is a piece of userspace code which is supposed to be fully self-contained. Any external (undefined) reference is an error, and should be caught at compile time. This was giving us trouble when compiling with -Os on gcc 4.5.0, for example (failed inline). The need to do a buildtime check was pointed out by Andi Kleen. Reported-by: Andi Kleen <andi@firstfloor.org> LKML-Reference: <tip-*@vger.kernel.org> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
11 lines
171 B
Bash
Executable File
11 lines
171 B
Bash
Executable File
#!/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
|