fix linker.ld - wamr subsections have to be declared before the .text* wildcard
This commit is contained in:
@ -45,12 +45,21 @@ SECTIONS {
|
||||
/* . += 16; /\* padding after data, workaround for import-trace *\/ */
|
||||
|
||||
KEEP (*(".text.startup"))
|
||||
|
||||
. = ALIGN(4096);
|
||||
_wamr_aot_start = .;
|
||||
*(".text.wamr_aot")
|
||||
*(".text*")
|
||||
_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 */
|
||||
*(".text*")
|
||||
|
||||
*(".rodata*")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user