mirror of
https://github.com/apache/nuttx.git
synced 2026-09-27 18:58:27 +08:00
modlib: Implement sh_addralign handling
I've seen a module with 16 bytes .rodata alignment for xmm operations. It was getting SEGV on sim/Linux because of the alignment issue. The same module binary seems working fine after applying this patch. Also, tested on sim/macOS and esp32 on qemu, using a module with an artificially large alignment. (64 bytes)
This commit is contained in:
committed by
Xiang Xiao
parent
7813b4f88a
commit
51490bad55
@@ -64,6 +64,8 @@ static void mod_dumploadinfo(FAR struct mod_loadinfo_s *loadinfo)
|
||||
binfo(" datastart: %08lx\n", (long)loadinfo->datastart);
|
||||
binfo(" textsize: %ld\n", (long)loadinfo->textsize);
|
||||
binfo(" datasize: %ld\n", (long)loadinfo->datasize);
|
||||
binfo(" textalign: %zu\n", loadinfo->textalign);
|
||||
binfo(" dataalign: %zu\n", loadinfo->dataalign);
|
||||
binfo(" filelen: %ld\n", (long)loadinfo->filelen);
|
||||
binfo(" filfd: %d\n", loadinfo->filfd);
|
||||
binfo(" symtabidx: %d\n", loadinfo->symtabidx);
|
||||
|
||||
Reference in New Issue
Block a user