[meta-intel] [PATCH 1/2] rmc: explicitly specify hash style for linker

Jianxun Zhang jianxun.zhang at linux.intel.com
Tue Aug 30 14:03:08 PDT 2016


QA sanity checker in OE fails when an ELF binary has symbol
table without GNU hash.

There is no issue so far because rmc is statically linked
with C libraries and symbol table is stripped out in build.

But once we compile rmc with dynamic linking, the symbol table
in dynamic section stays. Thus it fails QA checker for the
default of hash style is sysv.

To have some peace of mind, we specify "both" for hash style
to linker this time.

Signed-off-by: Jianxun Zhang <jianxun.zhang at linux.intel.com>
---
 common/recipes-bsp/rmc/rmc.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/common/recipes-bsp/rmc/rmc.bb b/common/recipes-bsp/rmc/rmc.bb
index d8e538b..d77ad31 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
-- 
2.7.4



More information about the meta-intel mailing list