diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-07-11 23:29:16 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-07-11 23:29:16 +0000 |
commit | 46a70d768a10bf2f934efad9c0d2ac0febe890b0 (patch) | |
tree | 5aaa3d04a3dbbb9a41e3a74c4bb02c1b1492b9f4 | |
parent | d7ccb05a00f8962a95382a92c35aabc7d7039514 (diff) |
Discard .text.exit, .data.exit and .exitcall.exit sections.
-rw-r--r-- | arch/mips/ld.script.big | 9 | ||||
-rw-r--r-- | arch/mips/ld.script.little | 9 | ||||
-rw-r--r-- | arch/mips64/ld.script.elf32 | 9 | ||||
-rw-r--r-- | arch/mips64/ld.script.elf64 | 9 |
4 files changed, 36 insertions, 0 deletions
diff --git a/arch/mips/ld.script.big b/arch/mips/ld.script.big index 68ac48528..27a5bade5 100644 --- a/arch/mips/ld.script.big +++ b/arch/mips/ld.script.big @@ -91,6 +91,15 @@ SECTIONS _end = . ; PROVIDE (end = .); } + + /* Sections to be discarded */ + /DISCARD/ : + { + *(.text.exit) + *(.data.exit) + *(.exitcall.exit) + } + /* These are needed for ELF backends which have not yet been converted to the new style linker. */ .stab 0 : { *(.stab) } diff --git a/arch/mips/ld.script.little b/arch/mips/ld.script.little index 5ee17215d..48f9bc5fe 100644 --- a/arch/mips/ld.script.little +++ b/arch/mips/ld.script.little @@ -91,6 +91,15 @@ SECTIONS _end = . ; PROVIDE (end = .); } + + /* Sections to be discarded */ + /DISCARD/ : + { + *(.text.exit) + *(.data.exit) + *(.exitcall.exit) + } + /* These are needed for ELF backends which have not yet been converted to the new style linker. */ .stab 0 : { *(.stab) } diff --git a/arch/mips64/ld.script.elf32 b/arch/mips64/ld.script.elf32 index 659e3761a..a67b3449a 100644 --- a/arch/mips64/ld.script.elf32 +++ b/arch/mips64/ld.script.elf32 @@ -83,6 +83,15 @@ SECTIONS *(COMMON) _end = . ; } + + /* Sections to be discarded */ + /DISCARD/ : + { + *(.text.exit) + *(.data.exit) + *(.exitcall.exit) + } + /* These are needed for ELF backends which have not yet been converted to the new style linker. */ .stab 0 : { *(.stab) } diff --git a/arch/mips64/ld.script.elf64 b/arch/mips64/ld.script.elf64 index 47f638b4a..2b3ff38c6 100644 --- a/arch/mips64/ld.script.elf64 +++ b/arch/mips64/ld.script.elf64 @@ -92,6 +92,15 @@ SECTIONS *(COMMON) _end = . ; } + + /* Sections to be discarded */ + /DISCARD/ : + { + *(.text.exit) + *(.data.exit) + *(.exitcall.exit) + } + /* These are needed for ELF backends which have not yet been converted to the new style linker. */ .stab 0 : { *(.stab) } |