Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Sep 2016 01:38:23 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r305854 - in head/sys/boot/efi/loader/arch: amd64 arm64 i386
Message-ID:  <201609160138.u8G1cNsi066650@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Fri Sep 16 01:38:22 2016
New Revision: 305854
URL: https://svnweb.freebsd.org/changeset/base/305854

Log:
  Use arch-specific .text padding fill value in EFI loaders
  
  The fill pattern was previously an ia64 instruction sequence. Presumably
  ia64's linker script was copied as a starting point.
  
  MFC after:	1 week
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/boot/efi/loader/arch/amd64/ldscript.amd64
  head/sys/boot/efi/loader/arch/arm64/ldscript.arm64
  head/sys/boot/efi/loader/arch/i386/ldscript.i386

Modified: head/sys/boot/efi/loader/arch/amd64/ldscript.amd64
==============================================================================
--- head/sys/boot/efi/loader/arch/amd64/ldscript.amd64	Fri Sep 16 00:14:26 2016	(r305853)
+++ head/sys/boot/efi/loader/arch/amd64/ldscript.amd64	Fri Sep 16 01:38:22 2016	(r305854)
@@ -19,7 +19,7 @@ SECTIONS
     /* .gnu.warning sections are handled specially by elf32.em. */
     *(.gnu.warning)
     *(.plt)
-  } =0x00300000010070000002000001000400
+  } =0xCC
   . = ALIGN(4096);
   .data		: {
     *(.rodata .rodata.* .gnu.linkonce.r.*)

Modified: head/sys/boot/efi/loader/arch/arm64/ldscript.arm64
==============================================================================
--- head/sys/boot/efi/loader/arch/arm64/ldscript.arm64	Fri Sep 16 00:14:26 2016	(r305853)
+++ head/sys/boot/efi/loader/arch/arm64/ldscript.arm64	Fri Sep 16 01:38:22 2016	(r305854)
@@ -15,7 +15,7 @@ SECTIONS
     /* .gnu.warning sections are handled specially by elf32.em. */
     *(.gnu.warning)
     *(.plt)
-  } =0x00300000010070000002000001000400
+  } =0xD4200000
   . = ALIGN(16);
   .data		: {
     *(.rodata .rodata.* .gnu.linkonce.r.*)

Modified: head/sys/boot/efi/loader/arch/i386/ldscript.i386
==============================================================================
--- head/sys/boot/efi/loader/arch/i386/ldscript.i386	Fri Sep 16 00:14:26 2016	(r305853)
+++ head/sys/boot/efi/loader/arch/i386/ldscript.i386	Fri Sep 16 01:38:22 2016	(r305854)
@@ -14,7 +14,7 @@ SECTIONS
     /* .gnu.warning sections are handled specially by elf32.em. */
     *(.gnu.warning)
     *(.plt)
-  } =0x00300000010070000002000001000400
+  } =0xCC
   . = ALIGN(4096);
   .data		: {
     *(.rodata .rodata.* .gnu.linkonce.r.*)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609160138.u8G1cNsi066650>