remove .size from startup.s, so linker.ld doesn't need gap-bridge symbols

This commit is contained in:
2026-05-21 11:26:47 +02:00
parent a77d0782bf
commit d0166f32a6
2 changed files with 15 additions and 11 deletions

View File

@ -46,19 +46,20 @@ SECTIONS {
KEEP (*(".text.startup"))
. = ALIGN(4096);
_wamr_aot_start = .;
*(".text.wamr_aot")
_wamr_aot_end = .;
. = ALIGN(4096);
_wamr_mmap_start = .;
*(".text.wamr_mmap")
_wamr_mmap_end = .;
/* .wamr_aot and .wamr_mmap have to be placed before .text,
* otherwise they'll be caught by the wildcard */
/* _wamr_aot_start = .; */
*(".text.wamr_aot")
/* _wamr_aot_end = .; */
/* _wamr_mmap_start = .; */
*(".text.wamr_mmap")
/* _wamr_mmap_end = .; */
/* _text_start = .; */
*(".text*")
/* _text_end = .; */
*(".rodata*")
}

View File

@ -55,4 +55,7 @@ _start:
# Set the size of the _start symbol to the current location '.' minus its start.
# This is useful when debugging or when you implement call tracing.
.size _start, . - _start
# If this is enabled, the linker.ld needs to define a symbol before the .text segment.
# Otherwise, there's a gap that prevents FAIL from disassembling the AOT.
# .size _start, . - _start