mirror of
https://github.com/memtest86plus/memtest86plus.git
synced 2025-01-04 11:46:55 -06:00
Fix LD error while linking LoongArch EFI binary (#457)
This commit is contained in:
parent
5a046291fa
commit
bdefff91ce
@ -183,7 +183,9 @@ memtest.debug: memtest_shared
|
||||
|
||||
memtest.efi: memtest_shared.bin boot/loongarch/header.o ldscripts/memtest_efi.lds
|
||||
$(eval SIZES=$(shell size -B -d memtest_shared | grep memtest_shared))
|
||||
$(LD) --defsym=_bss_size=$(word 3,$(SIZES)) -T ldscripts/memtest_efi.lds boot/loongarch/header.o -b binary memtest_shared.bin -o memtest.efi
|
||||
$(LD) --defsym=_bss_size=$(word 3,$(SIZES)) -T ldscripts/memtest_efi.lds boot/loongarch/header.o -b binary memtest_shared.bin -o memtest.elf
|
||||
$(OBJCOPY) -O binary memtest.elf memtest.efi
|
||||
rm -f memtest.elf
|
||||
|
||||
esp.img: memtest.efi
|
||||
@mkdir -p iso/EFI/BOOT
|
||||
|
@ -1,4 +1,4 @@
|
||||
OUTPUT_FORMAT("binary")
|
||||
OUTPUT_FORMAT("elf64-loongarch")
|
||||
OUTPUT_ARCH(loongarch)
|
||||
|
||||
ENTRY(head);
|
||||
|
Loading…
Reference in New Issue
Block a user