static.ld 340 B

123456789101112131415
  1. ENTRY(_start)
  2. SECTIONS
  3. {
  4. . = 0x400000 + SIZEOF_HEADERS;
  5. .text : { *:_start.o(.text) *(.text.*) *(.rodata.*) }
  6. . = 0x800000;
  7. .data : { *(.data.*) }
  8. .bss : { *(.bss.*) }
  9. .line 0 : { *(.line) }
  10. .debug 0 : { *(.debug.*) }
  11. /DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) *(.comment) }
  12. }