From a2221d6dd18095a7e872bb194ec840467db09f52 Mon Sep 17 00:00:00 2001 From: Jianxun Zhang Date: Tue, 30 Aug 2016 14:03:08 -0700 Subject: rmc: Explicitly specify hash style for linker The QA sanity checker in OE fails when an ELF binary has a symbol table without GNU hash. There is no issue so far because rmc is statically linked with C libraries and the symbol table is stripped out in build. But once we compile rmc with dynamic linking, the symbol table in the dynamic section stays. Thus it fails the QA checker because the default hash style is sysv. To have some peace of mind, we specify "both" for the hash style to the linker. Signed-off-by: Jianxun Zhang Signed-off-by: Tom Zanussi --- common/recipes-bsp/rmc/rmc.bb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common') diff --git a/common/recipes-bsp/rmc/rmc.bb b/common/recipes-bsp/rmc/rmc.bb index d8e538b2..d77ad31a 100644 --- a/common/recipes-bsp/rmc/rmc.bb +++ b/common/recipes-bsp/rmc/rmc.bb @@ -20,6 +20,8 @@ S = "${WORKDIR}/git" DEPENDS_class-target = "gnu-efi" +EXTRA_OEMAKE='RMC_CFLAGS="-Wl,--hash-style=both"' + # from gnu-efi, we should align arch-mapping with it. def rmc_efi_arch(d): import re -- cgit v1.2.3-54-g00ecf