remove .size from startup.s, so linker.ld doesn't need gap-bridge symbols
This commit is contained in:
@ -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*")
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user