mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 08:31:55 +00:00
ecd4c19f3d
There should be no undefined symbols in the resulting VDSO image(s). On sparc, fixed register usage can result in undefined symbols ending up in the image. To combat this, we do two things: 1) Define current_thread_info() specially when BUILD_DSO. 2) Ignore "#scratch" register undefined symbols in the output. Signed-off-by: David S. Miller <davem@davemloft.net>
11 lines
205 B
Bash
11 lines
205 B
Bash
#!/bin/sh
|
|
objdump="$1"
|
|
file="$2"
|
|
$objdump -t "$file" | grep '*UUND*' | grep -v '#scratch' > /dev/null 2>&1
|
|
if [ $? -eq 1 ]; then
|
|
exit 0
|
|
else
|
|
echo "$file: undefined symbols found" >&2
|
|
exit 1
|
|
fi
|