projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56f410c
)
x86/boot: Use CROSS_COMPILE prefix for readelf
author
Rob Landley
<
[email protected]
>
Sat, 20 May 2017 20:03:29 +0000
(15:03 -0500)
committer
Thomas Gleixner
<
[email protected]
>
Sun, 21 May 2017 11:04:27 +0000
(13:04 +0200)
The boot code Makefile contains a straight 'readelf' invocation. This
causes build warnings in cross compile environments, when there is no
unprefixed readelf accessible via $PATH.
Add the missing $(CROSS_COMPILE) prefix.
[ tglx: Rewrote changelog ]
Fixes: 98f78525371b ("x86/boot: Refuse to build with data relocations")
Signed-off-by: Rob Landley <
[email protected]
>
Acked-by: Kees Cook <
[email protected]
>
Cc: Jiri Kosina <
[email protected]
>
Cc: Paul Bolle <
[email protected]
>
Cc: "H.J. Lu" <
[email protected]
>
Cc:
[email protected]
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Thomas Gleixner <
[email protected]
>
arch/x86/boot/compressed/Makefile
patch
|
blob
|
history
diff --git
a/arch/x86/boot/compressed/Makefile
b/arch/x86/boot/compressed/Makefile
index 44163e8c3868ec4dda58fed54f38411134224089..2c860ad4fe0686a9cf796cd9a5b4453b8199223f 100644
(file)
--- a/
arch/x86/boot/compressed/Makefile
+++ b/
arch/x86/boot/compressed/Makefile
@@
-94,7
+94,7
@@
vmlinux-objs-$(CONFIG_EFI_MIXED) += $(obj)/efi_thunk_$(BITS).o
quiet_cmd_check_data_rel = DATAREL $@
define cmd_check_data_rel
for obj in $(filter %.o,$^); do \
- readelf -S $$obj | grep -qF .rel.local && { \
+
${CROSS_COMPILE}
readelf -S $$obj | grep -qF .rel.local && { \
echo "error: $$obj has data relocations!" >&2; \
exit 1; \
} || true; \