discard.ld 131 B

12345678910
  1. ENTRY(_start)
  2. SECTIONS
  3. {
  4. . = SIZEOF_HEADERS;
  5. /* Sections to be discarded */
  6. /DISCARD/ : {
  7. *(.data.exit)
  8. *(.text.exit)
  9. }
  10. }