From 9c5403e1e6269bd47a4c383cfeaf1a4f29db121f Mon Sep 17 00:00:00 2001 From: Callum Farmer Date: Sun, 30 Apr 2023 13:51:32 +0100 Subject: Copy marker names from binutils for init/fini Signed-off-by: Callum Farmer --- gnuefi/elf_aarch64_efi.lds | 8 ++++---- gnuefi/elf_arm_efi.lds | 8 ++++---- gnuefi/elf_ia32_efi.lds | 8 ++++---- gnuefi/elf_ia32_fbsd_efi.lds | 8 ++++---- gnuefi/elf_ia64_efi.lds | 8 ++++---- gnuefi/elf_mips64el_efi.lds | 8 ++++---- gnuefi/elf_x86_64_efi.lds | 8 ++++---- gnuefi/elf_x86_64_fbsd_efi.lds | 8 ++++---- 8 files changed, 32 insertions(+), 32 deletions(-) (limited to 'gnuefi') diff --git a/gnuefi/elf_aarch64_efi.lds b/gnuefi/elf_aarch64_efi.lds index 7657bb3..48d5106 100644 --- a/gnuefi/elf_aarch64_efi.lds +++ b/gnuefi/elf_aarch64_efi.lds @@ -48,10 +48,10 @@ SECTIONS * have NULLs which aren't guaranteed to be at the end. */ . = ALIGN(16); - _init_array = .; + __init_array_start = .; *(SORT(.init_array.*)) *(.init_array) - _init_array_end = .; + __init_array_end = .; __CTOR_LIST__ = .; *(SORT(.ctors.*)) *(.ctors) @@ -60,10 +60,10 @@ SECTIONS *(SORT(.dtors.*)) *(.dtors) __DTOR_END__ = .; - _fini_array = .; + __fini_array_start = .; *(SORT(.fini_array.*)) *(.fini_array) - _fini_array_end = .; + __fini_array_end = .; /* the EFI loader doesn't seem to like a .bss section, so we stick it all into .data: */ diff --git a/gnuefi/elf_arm_efi.lds b/gnuefi/elf_arm_efi.lds index 3c9f919..0964d35 100644 --- a/gnuefi/elf_arm_efi.lds +++ b/gnuefi/elf_arm_efi.lds @@ -35,10 +35,10 @@ SECTIONS * have NULLs which aren't guaranteed to be at the end. */ . = ALIGN(16); - _init_array = .; + __init_array_start = .; *(SORT(.init_array.*)) *(.init_array) - _init_array_end = .; + __init_array_end = .; __CTOR_LIST__ = .; *(SORT(.ctors.*)) *(.ctors) @@ -47,10 +47,10 @@ SECTIONS *(SORT(.dtors.*)) *(.dtors) __DTOR_END__ = .; - _fini_array = .; + __fini_array_start = .; *(SORT(.fini_array.*)) *(.fini_array) - _fini_array_end = .; + __fini_array_end = .; /* the EFI loader doesn't seem to like a .bss section, so we stick it all into .data: */ diff --git a/gnuefi/elf_ia32_efi.lds b/gnuefi/elf_ia32_efi.lds index 964530c..0c1f2a7 100644 --- a/gnuefi/elf_ia32_efi.lds +++ b/gnuefi/elf_ia32_efi.lds @@ -39,10 +39,10 @@ SECTIONS * have NULLs which aren't guaranteed to be at the end. */ . = ALIGN(16); - _init_array = .; + __init_array_start = .; *(SORT(.init_array.*)) *(.init_array) - _init_array_end = .; + __init_array_end = .; __CTOR_LIST__ = .; *(SORT(.ctors.*)) *(.ctors) @@ -51,10 +51,10 @@ SECTIONS *(SORT(.dtors.*)) *(.dtors) __DTOR_END__ = .; - _fini_array = .; + __fini_array_start = .; *(SORT(.fini_array.*)) *(.fini_array) - _fini_array_end = .; + __fini_array_end = .; /* the EFI loader doesn't seem to like a .bss section, so we stick it all into .data: */ diff --git a/gnuefi/elf_ia32_fbsd_efi.lds b/gnuefi/elf_ia32_fbsd_efi.lds index c5c5dae..0377d4f 100644 --- a/gnuefi/elf_ia32_fbsd_efi.lds +++ b/gnuefi/elf_ia32_fbsd_efi.lds @@ -48,10 +48,10 @@ SECTIONS * have NULLs which aren't guaranteed to be at the end. */ . = ALIGN(16); - _init_array = .; + __init_array_start = .; *(SORT(.init_array.*)) *(.init_array) - _init_array_end = .; + __init_array_end = .; __CTOR_LIST__ = .; *(SORT(.ctors.*)) *(.ctors) @@ -60,10 +60,10 @@ SECTIONS *(SORT(.dtors.*)) *(.dtors) __DTOR_END__ = .; - _fini_array = .; + __fini_array_start = .; *(SORT(.fini_array.*)) *(.fini_array) - _fini_array_end = .; + __fini_array_end = .; /* the EFI loader doesn't seem to like a .bss section, so we stick it all into .data: */ diff --git a/gnuefi/elf_ia64_efi.lds b/gnuefi/elf_ia64_efi.lds index f85cb91..46aee72 100644 --- a/gnuefi/elf_ia64_efi.lds +++ b/gnuefi/elf_ia64_efi.lds @@ -49,10 +49,10 @@ SECTIONS * have NULLs which aren't guaranteed to be at the end. */ . = ALIGN(16); - _init_array = .; + __init_array_start = .; *(SORT(.init_array.*)) *(.init_array) - _init_array_end = .; + __init_array_end = .; __CTOR_LIST__ = .; *(SORT(.ctors.*)) *(.ctors) @@ -61,10 +61,10 @@ SECTIONS *(SORT(.dtors.*)) *(.dtors) __DTOR_END__ = .; - _fini_array = .; + __fini_array_start = .; *(SORT(.fini_array.*)) *(.fini_array) - _fini_array_end = .; + __fini_array_end = .; /* the EFI loader doesn't seem to like a .bss section, so we stick it all into .data: */ diff --git a/gnuefi/elf_mips64el_efi.lds b/gnuefi/elf_mips64el_efi.lds index 80312bf..3721c56 100644 --- a/gnuefi/elf_mips64el_efi.lds +++ b/gnuefi/elf_mips64el_efi.lds @@ -36,10 +36,10 @@ SECTIONS * have NULLs which aren't guaranteed to be at the end. */ . = ALIGN(16); - _init_array = .; + __init_array_start = .; *(SORT(.init_array.*)) *(.init_array) - _init_array_end = .; + __init_array_end = .; __CTOR_LIST__ = .; *(SORT(.ctors.*)) *(.ctors) @@ -48,10 +48,10 @@ SECTIONS *(SORT(.dtors.*)) *(.dtors) __DTOR_END__ = .; - _fini_array = .; + __fini_array_start = .; *(SORT(.fini_array.*)) *(.fini_array) - _fini_array_end = .; + __fini_array_end = .; /* the EFI loader doesn't seem to like a .bss section, so we stick it all into .data: */ diff --git a/gnuefi/elf_x86_64_efi.lds b/gnuefi/elf_x86_64_efi.lds index c9564a2..22409de 100644 --- a/gnuefi/elf_x86_64_efi.lds +++ b/gnuefi/elf_x86_64_efi.lds @@ -46,10 +46,10 @@ SECTIONS * have NULLs which aren't guaranteed to be at the end. */ . = ALIGN(16); - _init_array = .; + __init_array_start = .; *(SORT(.init_array.*)) *(.init_array) - _init_array_end = .; + __init_array_end = .; __CTOR_LIST__ = .; *(SORT(.ctors.*)) *(.ctors) @@ -58,10 +58,10 @@ SECTIONS *(SORT(.dtors.*)) *(.dtors) __DTOR_END__ = .; - _fini_array = .; + __fini_array_start = .; *(SORT(.fini_array.*)) *(.fini_array) - _fini_array_end = .; + __fini_array_end = .; /* the EFI loader doesn't seem to like a .bss section, so we stick it all into .data: */ diff --git a/gnuefi/elf_x86_64_fbsd_efi.lds b/gnuefi/elf_x86_64_fbsd_efi.lds index e8a6825..55bed4a 100644 --- a/gnuefi/elf_x86_64_fbsd_efi.lds +++ b/gnuefi/elf_x86_64_fbsd_efi.lds @@ -44,10 +44,10 @@ SECTIONS * have NULLs which aren't guaranteed to be at the end. */ . = ALIGN(16); - _init_array = .; + __init_array_start = .; *(SORT(.init_array.*)) *(.init_array) - _init_array_end = .; + __init_array_end = .; __CTOR_LIST__ = .; *(SORT(.ctors.*)) *(.ctors) @@ -56,10 +56,10 @@ SECTIONS *(SORT(.dtors.*)) *(.dtors) __DTOR_END__ = .; - _fini_array = .; + __fini_array_start = .; *(SORT(.fini_array.*)) *(.fini_array) - _fini_array_end = .; + __fini_array_end = .; /* the EFI loader doesn't seem to like a .bss section, so we stick it all into .data: */ -- cgit v1.2.1