windows-shellcode/shellcode.ld

29 lines
430 B
Rust
Raw Normal View History

2024-08-22 02:01:00 +00:00
/* 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.*)
}
}