Skip to content

Commit 7d15e12

Browse files
committed
wip lrodata
1 parent 0cad7b7 commit 7d15e12

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

core/iwasm/aot/aot_loader.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3189,6 +3189,7 @@ do_text_relocation(AOTModule *module, AOTRelocationGroup *group,
31893189
symbol_addr = module->code;
31903190
}
31913191
else if (!strcmp(symbol, ".data") || !strcmp(symbol, ".sdata")
3192+
|| !strcmp(symbol, ".lrodata")
31923193
|| !strcmp(symbol, ".rdata")
31933194
|| !strcmp(symbol, ".rodata")
31943195
/* ".rodata.cst4/8/16/.." */

core/iwasm/compilation/aot_emit_aot_file.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3269,6 +3269,7 @@ is_data_section(AOTObjectData *obj_data, LLVMSectionIteratorRef sec_itr,
32693269
uint32 relocation_count = 0;
32703270

32713271
return (!strcmp(section_name, ".data") || !strcmp(section_name, ".sdata")
3272+
|| !strcmp(section_name, ".lrodata")
32723273
|| !strcmp(section_name, ".rodata")
32733274
/* ".rodata.cst4/8/16/.." */
32743275
|| !strncmp(section_name, ".rodata.cst", strlen(".rodata.cst"))

0 commit comments

Comments
 (0)