/* 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.*) } }