diff options
author | H. Peter Anvin <hpa@zytor.com> | 2016-02-11 20:12:14 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2016-02-11 20:12:14 -0800 |
commit | 875001667b9cbb1af421ce3e84feb8ce548dc5e4 (patch) | |
tree | 691b81266edd6eb84f2763434131a3abe835b328 | |
parent | ff859050fa4e6535cae098dc35d88a265466448d (diff) | |
download | syslinux-875001667b9cbb1af421ce3e84feb8ce548dc5e4.tar.gz |
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 <hpa@zytor.com>
-rw-r--r-- | core/layout.inc | 4 |
1 files changed, 3 insertions, 1 deletions
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 |