MochaPayload/source/ios_kernel/link.ld

29 lines
390 B
Plaintext
Raw Normal View History

2020-04-28 15:07:52 +02:00
OUTPUT_ARCH(arm)
SECTIONS
{
. = (0x08135000);
__KERNEL_CODE_START = .;
.text : {
build/crt0.o(.init)
*(.text*);
}
.rodata : {
*(.rodata*)
}
.data : {
*(.data*)
}
.bss : {
*(.bss*)
*(COMMON*)
}
__KERNEL_CODE_END = .;
/DISCARD/ : {
*(*);
}
}
ASSERT((SIZEOF(.text) + SIZEOF(.rodata) + SIZEOF(.data) + SIZEOF(.bss)) < 0x4200, "elf is too big");