Skip to content

Commit

Permalink
core/layout.inc: we don't need the _lma symbols except in one case
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
H. Peter Anvin committed Feb 12, 2016
1 parent ff85905 commit 8750016
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/layout.inc
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 8750016

Please sign in to comment.