git: ec6cbe468fb3 - main - loader/kboot: simplify linker set inclusion a little

From: Warner Losh <imp_at_FreeBSD.org>
Date: Sun, 25 Feb 2024 00:58:32 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=ec6cbe468fb364a763fdea3a2803481624702cad

commit ec6cbe468fb364a763fdea3a2803481624702cad
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-02-25 00:56:56 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-02-25 00:56:56 +0000

    loader/kboot: simplify linker set inclusion a little
    
    Linker set sections are included by default. No need to do so
    explicitly.  These were bogusly copied from the efi ldscripts. They were
    there due to a workaround introduced in 2002 by peter@ for a gcc
    upgrade, but whatever bugs necessitated it were filed by 2010 when
    rpaulo@ imported the i386 support (though they were copied even though
    the objcopy retained them correctly, the gcc bug having been
    fixed). They've never been needed.
    
    Sponsored by:           Netflix
    Reviewed by:            tsoome, kevans
    Differential Revision:  https://reviews.freebsd.org/D44060
---
 stand/kboot/kboot/arch/aarch64/aarch64.ldscript | 11 -----------
 stand/kboot/kboot/arch/amd64/amd64.ldscript     | 11 -----------
 2 files changed, 22 deletions(-)

diff --git a/stand/kboot/kboot/arch/aarch64/aarch64.ldscript b/stand/kboot/kboot/arch/aarch64/aarch64.ldscript
index 62b7d2b6be01..9460be1874bf 100644
--- a/stand/kboot/kboot/arch/aarch64/aarch64.ldscript
+++ b/stand/kboot/kboot/arch/aarch64/aarch64.ldscript
@@ -34,17 +34,6 @@ SECTIONS
     *(COMMON)
   }
   . = ALIGN(4096);
-  set_Xcommand_set	: {
-    __start_set_Xcommand_set = .;
-    *(set_Xcommand_set)
-    __stop_set_Xcommand_set = .;
-  }
-  set_Xficl_compile_set	: {
-    __start_set_Xficl_compile_set = .;
-    *(set_Xficl_compile_set)
-    __stop_set_Xficl_compile_set = .;
-  }
-  . = ALIGN(4096);
   __gp = .;
   .sdata	: {
     *(.got.plt .got)
diff --git a/stand/kboot/kboot/arch/amd64/amd64.ldscript b/stand/kboot/kboot/arch/amd64/amd64.ldscript
index 4009ba5fa81c..f8ba7b05a55a 100644
--- a/stand/kboot/kboot/arch/amd64/amd64.ldscript
+++ b/stand/kboot/kboot/arch/amd64/amd64.ldscript
@@ -34,17 +34,6 @@ SECTIONS
     *(COMMON)
   }
   . = ALIGN(4096);
-  set_Xcommand_set	: {
-    __start_set_Xcommand_set = .;
-    *(set_Xcommand_set)
-    __stop_set_Xcommand_set = .;
-  }
-  set_Xficl_compile_set	: {
-    __start_set_Xficl_compile_set = .;
-    *(set_Xficl_compile_set)
-    __stop_set_Xficl_compile_set = .;
-  }
-  . = ALIGN(4096);
   __gp = .;
   .sdata	: {
     *(.got.plt .got)