From 875001667b9cbb1af421ce3e84feb8ce548dc5e4 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Thu, 11 Feb 2016 20:12:14 -0800 Subject: core/layout.inc: we don't need the _lma symbols except in one case We don't need any of the _lma symbols, except for the one associated with .pm_code. Don't export them unconditionally in SECINFO, because that makes the linker request them as unknown symbols in the dynamic section. Signed-off-by: H. Peter Anvin --- core/layout.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/layout.inc b/core/layout.inc index 635df537..bb7cb333 100644 --- a/core/layout.inc +++ b/core/layout.inc @@ -101,9 +101,10 @@ RBFG_brainfuck: resb 2048 ; Bigger than an Ethernet packet... ; Symbols from linker script %macro SECINFO 1 - extern __%1_start, __%1_lma, __%1_end + extern __%1_start, __%1_end extern __%1_len, __%1_dwords %endmacro + SECINFO bss16 SECINFO uibss SECINFO config @@ -112,6 +113,7 @@ RBFG_brainfuck: resb 2048 ; Bigger than an Ethernet packet... SECINFO pm_code SECINFO high_clear + extern __pm_code_lma SECINFO bss -- cgit v1.2.3