ip.lds: .text.sg.* input section references

The input section names changed from .text. to .text.sg. when the sg object
files were moved to the sg directory.
This commit is contained in:
Zack Buhman 2023-10-28 10:16:00 -07:00
parent 329ada55f1
commit 060977091d
2 changed files with 16 additions and 13 deletions

View File

@ -69,7 +69,7 @@ test.elf: test.o rgb.o vga.o
$(OBJCOPY) -O binary $< $@
ip.elf: $(IP_OBJ)
$(LD) --print-memory-usage -T $(LIB)/ip.lds $^ -o $@
$(LD) --orphan-handling=error --print-memory-usage -T $(LIB)/ip.lds $^ -o $@
audio.pcm:
sox \

27
ip.lds
View File

@ -24,33 +24,36 @@ SECTIONS
.text.sg_sec :
{
KEEP(*(.text.sg_sec))
KEEP(*(.text.*sg_sec))
} > sg_sec
.text.sg_are :
{
KEEP(*(.text.sg_arejp))
KEEP(*(.text.sg_areus))
KEEP(*(.text.sg_areec))
KEEP(*(.text.sg_are00))
KEEP(*(.text.sg_are01))
KEEP(*(.text.sg_are02))
KEEP(*(.text.sg_are03))
KEEP(*(.text.sg_are04))
KEEP(*(.text.*sg_arejp))
KEEP(*(.text.*sg_areus))
KEEP(*(.text.*sg_areec))
KEEP(*(.text.*sg_are00))
KEEP(*(.text.*sg_are01))
KEEP(*(.text.*sg_are02))
KEEP(*(.text.*sg_are03))
KEEP(*(.text.*sg_are04))
} > sg_are
.text.sg_ini :
{
KEEP(*(.text.sg_ini))
KEEP(*(.text.*sg_ini))
} > sg_ini
.text.aip :
{
KEEP(*(.text.aip))
KEEP(*(.text.*aip))
} > aip
/DISCARD/ :
{
*(*)
*(.text)
*(.data)
*(.bss)
*(.comment)
}
}