mirror of
https://github.com/morluto/rea
synced 2026-10-26 22:28:27 -04:00
e9fe6437a7
Admit the verified ELF32 o32 MIPS32r2 MIPS16 shared-image profile after complete source load and relocation inspection. Preserve caller-selected bytes, pin the endian-matched language, and report per-address decoder context. Refuse unverified relocation shapes with explicit reasons. Verified on Linux x64 with Ghidra 12.1.4: eight source-owned public CLI/MCP controls, original-artifact instruction/pseudocode/export replay, snapshot restore and owned cleanup. 152 integrated focused tests, static checks and documentation checks passed. Fixes #1851 Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
23 lines
692 B
Plaintext
23 lines
692 B
Plaintext
/* Build an older-style shared image from source without ABI declarations. */
|
|
PHDRS {
|
|
headers PT_PHDR PHDRS;
|
|
text PT_LOAD FILEHDR PHDRS FLAGS(5);
|
|
data PT_LOAD FLAGS(6);
|
|
dynamic PT_DYNAMIC FLAGS(6);
|
|
}
|
|
SECTIONS {
|
|
. = SIZEOF_HEADERS;
|
|
.hash : { *(.hash) } :text
|
|
.gnu.hash : { *(.gnu.hash) } :text
|
|
.dynsym : { *(.dynsym) } :text
|
|
.dynstr : { *(.dynstr) } :text
|
|
.rel.dyn : { *(.rel.*) } :text
|
|
.text : { *(.text*) } :text
|
|
. = ALIGN(0x10000);
|
|
.dynamic : { *(.dynamic) } :data :dynamic
|
|
.got : { *(.got*) } :data
|
|
.data : { *(.data*) } :data
|
|
.bss : { *(.bss*) *(COMMON) } :data
|
|
/DISCARD/ : { *(.MIPS.abiflags) *(.reginfo) *(.pdr) *(.mdebug.*) *(.comment) *(.note.*) }
|
|
}
|