From b052ea68cb25e73d7b98cc2213dfe5e3aeef070e Mon Sep 17 00:00:00 2001 From: graham sanderson Date: Wed, 20 Nov 2024 20:40:14 -0600 Subject: [PATCH] provide slightly meaningless _start symbol for boot_stage2 to make LLVM lld happy --- src/rp2040/boot_stage2/boot_stage2.ld | 1 + src/rp2350/boot_stage2/boot_stage2.ld | 1 + 2 files changed, 2 insertions(+) diff --git a/src/rp2040/boot_stage2/boot_stage2.ld b/src/rp2040/boot_stage2/boot_stage2.ld index f8669ab64..32978a16e 100644 --- a/src/rp2040/boot_stage2/boot_stage2.ld +++ b/src/rp2040/boot_stage2/boot_stage2.ld @@ -7,6 +7,7 @@ MEMORY { SECTIONS { . = ORIGIN(SRAM); .text : { + _start = .; /* make LLVM happy */ *(.entry) *(.text) } >SRAM diff --git a/src/rp2350/boot_stage2/boot_stage2.ld b/src/rp2350/boot_stage2/boot_stage2.ld index 0162414a8..ee1bce466 100644 --- a/src/rp2350/boot_stage2/boot_stage2.ld +++ b/src/rp2350/boot_stage2/boot_stage2.ld @@ -7,6 +7,7 @@ MEMORY { SECTIONS { . = ORIGIN(SRAM); .text : { + _start = .; /* make LLVM happy */ *(.entry) *(.text) } >SRAM