From 17b94cdfe50514fa7f5220e7555ddc03741108d9 Mon Sep 17 00:00:00 2001 From: John Reiser Date: Wed, 20 Nov 2024 14:52:22 -0800 Subject: [PATCH] Cleanup remaining *.lds linker scripts for stubs modified: stub/src/arm64-linux.elf-fold.lds modified: stub/src/mips.r3000-linux.elf-fold.lds modified: stub/src/mipsel.r3000-linux.elf-fold.lds modified: stub/src/powerpc-linux.elf-fold.lds modified: stub/src/powerpc64-linux.elf-fold.lds modified: stub/src/powerpc64le-linux.elf-fold.lds --- src/stub/src/arm64-linux.elf-fold.lds | 11 ----------- src/stub/src/mips.r3000-linux.elf-fold.lds | 11 ----------- src/stub/src/mipsel.r3000-linux.elf-fold.lds | 11 ----------- src/stub/src/powerpc-linux.elf-fold.lds | 11 ----------- src/stub/src/powerpc64-linux.elf-fold.lds | 11 ----------- src/stub/src/powerpc64le-linux.elf-fold.lds | 11 ----------- 6 files changed, 66 deletions(-) diff --git a/src/stub/src/arm64-linux.elf-fold.lds b/src/stub/src/arm64-linux.elf-fold.lds index a458bb91..5691d346 100644 --- a/src/stub/src/arm64-linux.elf-fold.lds +++ b/src/stub/src/arm64-linux.elf-fold.lds @@ -31,18 +31,7 @@ OUTPUT_FORMAT("elf64-littleaarch64", "elf64-bigaarch64", "elf64-littleaarch64") OUTPUT_ARCH(aarch64) -PHDRS -{ - text PT_LOAD FILEHDR PHDRS FLAGS ( 5 ) ; /* r-x (no -w-) */ - data PT_LOAD ; /* for setting brk(0) */ -} SECTIONS { . = SIZEOF_HEADERS; - .text : { - *(.text) - *(.data) - } : text - .data : { - } : data } diff --git a/src/stub/src/mips.r3000-linux.elf-fold.lds b/src/stub/src/mips.r3000-linux.elf-fold.lds index 03894700..01303deb 100644 --- a/src/stub/src/mips.r3000-linux.elf-fold.lds +++ b/src/stub/src/mips.r3000-linux.elf-fold.lds @@ -31,18 +31,7 @@ OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-bigmips") OUTPUT_ARCH(mips) -PHDRS -{ - text PT_LOAD FILEHDR PHDRS ; - data PT_LOAD ; /* for setting brk(0) */ -} SECTIONS { . = SIZEOF_HEADERS; - .text : { - *(.text) - *(.data) - } : text - .data : { - } : data } diff --git a/src/stub/src/mipsel.r3000-linux.elf-fold.lds b/src/stub/src/mipsel.r3000-linux.elf-fold.lds index 08d74a79..bb56c24d 100644 --- a/src/stub/src/mipsel.r3000-linux.elf-fold.lds +++ b/src/stub/src/mipsel.r3000-linux.elf-fold.lds @@ -31,18 +31,7 @@ OUTPUT_FORMAT("elf32-littlemips", "elf32-bigmips", "elf32-littlemips") OUTPUT_ARCH(mips) -PHDRS -{ - text PT_LOAD FILEHDR PHDRS ; - data PT_LOAD ; /* for setting brk(0) */ -} SECTIONS { . = SIZEOF_HEADERS; - .text : { - *(.text) - *(.data) - } : text - .data : { - } : data } diff --git a/src/stub/src/powerpc-linux.elf-fold.lds b/src/stub/src/powerpc-linux.elf-fold.lds index ea41e70a..68c7cdb1 100644 --- a/src/stub/src/powerpc-linux.elf-fold.lds +++ b/src/stub/src/powerpc-linux.elf-fold.lds @@ -31,18 +31,7 @@ OUTPUT_FORMAT("elf32-powerpc", "elf32-powerpc", "elf32-powerpc") OUTPUT_ARCH(powerpc:common) -PHDRS -{ - text PT_LOAD FILEHDR PHDRS ; - data PT_LOAD ; /* for setting brk(0) */ -} SECTIONS { . = SIZEOF_HEADERS; - .text : { - *(.text) - *(.data) - } : text - .data : { - } : data } diff --git a/src/stub/src/powerpc64-linux.elf-fold.lds b/src/stub/src/powerpc64-linux.elf-fold.lds index 93724553..d8d0047c 100644 --- a/src/stub/src/powerpc64-linux.elf-fold.lds +++ b/src/stub/src/powerpc64-linux.elf-fold.lds @@ -31,18 +31,7 @@ OUTPUT_FORMAT("elf64-powerpc", "elf64-powerpc", "elf64-powerpc") OUTPUT_ARCH(powerpc:common64) -PHDRS -{ - text PT_LOAD FILEHDR PHDRS ; - data PT_LOAD ; /* for setting brk(0) */ -} SECTIONS { . = SIZEOF_HEADERS; - .text : { - *(.text) - *(.data) - } : text - .data : { - } : data } diff --git a/src/stub/src/powerpc64le-linux.elf-fold.lds b/src/stub/src/powerpc64le-linux.elf-fold.lds index 0cbb9e4a..3b176285 100644 --- a/src/stub/src/powerpc64le-linux.elf-fold.lds +++ b/src/stub/src/powerpc64le-linux.elf-fold.lds @@ -31,18 +31,7 @@ OUTPUT_FORMAT("elf64-powerpcle", "elf64-powerpcle", "elf64-powerpcle") OUTPUT_ARCH(powerpc:common64) -PHDRS -{ - text PT_LOAD FILEHDR PHDRS ; - data PT_LOAD ; /* for setting brk(0) */ -} SECTIONS { . = SIZEOF_HEADERS; - .text : { - *(.text) - *(.data) - } : text - .data : { - } : data }