MochaPayload/source/ios_mcp/link.ld

30 lines
394 B
Plaintext
Raw Normal View History

2020-04-28 15:07:52 +02:00
OUTPUT_ARCH(arm)
2023-02-11 02:22:14 +01:00
INCLUDE "imports.ld"
PROVIDE(snprintf = 0x05059010);
2020-04-28 15:07:52 +02:00
SECTIONS
{
.text 0x05116000 : {
_text_start = .;
*(.text*)
*(.rodata*)
}
_text_end = .;
.bss 0x050BD000 : {
_bss_start = .;
*(.bss*);
}
_bss_end = .;
/DISCARD/ : {
*(*);
}
}
2023-02-11 02:22:14 +01:00
ASSERT((SIZEOF(.text)) < 0x9F00, "text section is too big");
ASSERT((SIZEOF(.bss)) < 0x3000, "bss section is too big");