diff --git a/gnuefi/elf_aarch64_efi.lds b/gnuefi/elf_aarch64_efi.lds index 1774d76..8c0fad0 100644 --- a/gnuefi/elf_aarch64_efi.lds +++ b/gnuefi/elf_aarch64_efi.lds @@ -55,10 +55,14 @@ SECTIONS _bss_end = .; } - .rela.dyn : { *(.rela.dyn) } - .rela.plt : { *(.rela.plt) } - .rela.got : { *(.rela.got) } - .rela.data : { *(.rela.data) *(.rela.data*) } + .rela : + { + *(.rela.text*) + *(.rela.data*) + *(.rela.got) + *(.rela.plt) + *(.rela.stab) + } . = ALIGN(512); _edata = .; _data_size = . - _data; diff --git a/gnuefi/elf_arm_efi.lds b/gnuefi/elf_arm_efi.lds index 2edc6a8..dc2f459 100644 --- a/gnuefi/elf_arm_efi.lds +++ b/gnuefi/elf_arm_efi.lds @@ -41,10 +41,14 @@ SECTIONS _bss_end = .; } - .rel.dyn : { *(.rel.dyn) } - .rel.plt : { *(.rel.plt) } - .rel.got : { *(.rel.got) } - .rel.data : { *(.rel.data) *(.rel.data*) } + .rel : + { + *(.rel.text*) + *(.rel.data*) + *(.rel.got) + *(.rel.plt) + *(.rel.stab) + } _edata = .; _data_size = . - _etext; diff --git a/gnuefi/elf_ia32_efi.lds b/gnuefi/elf_ia32_efi.lds index 0d62afb..7c3e59a 100644 --- a/gnuefi/elf_ia32_efi.lds +++ b/gnuefi/elf_ia32_efi.lds @@ -55,9 +55,11 @@ SECTIONS . = ALIGN(4096); .rel : { - *(.rel.data) - *(.rel.data.*) + *(.rel.text*) + *(.rel.sdata*) + *(.rel.data*) *(.rel.got) + *(.rel.plt) *(.rel.stab) *(.data.rel.ro.local) *(.data.rel.local) diff --git a/gnuefi/elf_ia64_efi.lds b/gnuefi/elf_ia64_efi.lds index f294464..e76d67d 100644 --- a/gnuefi/elf_ia64_efi.lds +++ b/gnuefi/elf_ia64_efi.lds @@ -52,10 +52,11 @@ SECTIONS . = ALIGN(4096); .rela : { - *(.rela.text) + *(.rela.text*) + *(.rela.sdata*) *(.rela.data*) - *(.rela.sdata) *(.rela.got) + *(.rela.plt) *(.rela.gnu.linkonce.d*) *(.rela.stab) *(.rela.ctors) diff --git a/gnuefi/elf_mips64el_efi.lds b/gnuefi/elf_mips64el_efi.lds index d8bb56d..69cb3a5 100644 --- a/gnuefi/elf_mips64el_efi.lds +++ b/gnuefi/elf_mips64el_efi.lds @@ -41,10 +41,14 @@ SECTIONS _bss_end = .; } - .rel.dyn : { *(.rel.dyn) } - .rel.plt : { *(.rel.plt) } - .rel.got : { *(.rel.got) } - .rel.data : { *(.rel.data) *(.rel.data*) } + .rel : + { + *(.rel.text*) + *(.rel.data*) + *(.rel.got) + *(.rel.plt) + *(.rel.stab) + } _edata = .; _data_size = . - _etext; diff --git a/gnuefi/elf_riscv64_efi.lds b/gnuefi/elf_riscv64_efi.lds index 1886de3..2f84758 100644 --- a/gnuefi/elf_riscv64_efi.lds +++ b/gnuefi/elf_riscv64_efi.lds @@ -44,16 +44,14 @@ SECTIONS { _bss_end = .; } -.rela.text : - { *(.rela.text) *(.rela.text*) } -.rela.dyn : - { *(.rela.dyn) } -.rela.plt : - { *(.rela.plt) } -.rela.got : - { *(.rela.got) } -.rela.data : - { *(.rela.data) *(.rela.data*) } +.rela : + { + *(.rela.text*) + *(.rela.data*) + *(.rela.got) + *(.rela.plt) + *(.rela.stab) + } . = ALIGN(512); _edata = .; _data_size = . - _data; diff --git a/gnuefi/elf_x86_64_efi.lds b/gnuefi/elf_x86_64_efi.lds index e3d32d1..b1379ee 100644 --- a/gnuefi/elf_x86_64_efi.lds +++ b/gnuefi/elf_x86_64_efi.lds @@ -57,8 +57,10 @@ SECTIONS . = ALIGN(4096); .rela : { + *(.rela.text*) *(.rela.data*) *(.rela.got) + *(.rela.plt) *(.rela.stab) } . = ALIGN(4096);