Re: [tip:x86/build] x86, vdso: Error out if the vdso contains externalreferences

From: H. Peter Anvin
Date: Wed Jul 28 2010 - 01:26:10 EST


Stephen Rothwell wrote:
Hi,

On Fri, 18 Jun 2010 22:16:05 GMT "tip-bot for H. Peter Anvin" <hpa@xxxxxxxxxxxxxxx> wrote:
diff --git a/arch/x86/vdso/checkundef.sh b/arch/x86/vdso/checkundef.sh
new file mode 100755
index 0000000..490be1c
--- /dev/null
+++ b/arch/x86/vdso/checkundef.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+nm="$1"
+file="$2"
+"$nm" "$file" | grep '^ *U' > /dev/null 2>&1

Quoting $nm here doesn't work if you are building with ccache like this:

make CROSS_COMPILE="ccache ...."

Hmmm... in some ways I'm not sure if that's a feature or a bug, but I guess it's the only way currently provided. Sigh.

-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/