windows-shellcode/shellcode.ld
2024-08-21 19:01:00 -07:00

29 lines
430 B
Rust

/* has a header still? objcopy -O binary output is accurate */
/* OUTPUT_FORMAT("binary") */
ENTRY(_start);
SECTIONS
{
. = SIZEOF_HEADERS;
.text :
{
*(.text._start)
*(.text .text.*)
*(.rodata .rodata.*)
}
.data :
{
*(.got .got.*)
*(.data .data.*)
*(.bss .bss.*)
}
/DISCARD/ :
{
*(.comment)
*(.debug_frame)
*(.interp)
*(.note .note.*)
}
}