svn commit: r310827 - in stable/11/sys/boot/efi/loader/arch: amd64 i386

Ed Maste emaste at FreeBSD.org
Fri Dec 30 16:23:15 UTC 2016


Author: emaste
Date: Fri Dec 30 16:23:13 2016
New Revision: 310827
URL: https://svnweb.freebsd.org/changeset/base/310827

Log:
  MFC r306264: Use 32-bit value for .text padding, for linker portability
  
  GNU ld interprets the padding value as a variable-length byte string,
  while GNU gold and LLVM lld interpret it as a 32-bit value.

Modified:
  stable/11/sys/boot/efi/loader/arch/amd64/ldscript.amd64
  stable/11/sys/boot/efi/loader/arch/i386/ldscript.i386
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/boot/efi/loader/arch/amd64/ldscript.amd64
==============================================================================
--- stable/11/sys/boot/efi/loader/arch/amd64/ldscript.amd64	Fri Dec 30 16:22:24 2016	(r310826)
+++ stable/11/sys/boot/efi/loader/arch/amd64/ldscript.amd64	Fri Dec 30 16:23:13 2016	(r310827)
@@ -19,7 +19,7 @@ SECTIONS
     /* .gnu.warning sections are handled specially by elf32.em. */
     *(.gnu.warning)
     *(.plt)
-  } =0xCC
+  } =0xCCCCCCCC
   . = ALIGN(4096);
   .data		: {
     *(.rodata .rodata.* .gnu.linkonce.r.*)

Modified: stable/11/sys/boot/efi/loader/arch/i386/ldscript.i386
==============================================================================
--- stable/11/sys/boot/efi/loader/arch/i386/ldscript.i386	Fri Dec 30 16:22:24 2016	(r310826)
+++ stable/11/sys/boot/efi/loader/arch/i386/ldscript.i386	Fri Dec 30 16:23:13 2016	(r310827)
@@ -14,7 +14,7 @@ SECTIONS
     /* .gnu.warning sections are handled specially by elf32.em. */
     *(.gnu.warning)
     *(.plt)
-  } =0xCC
+  } =0xCCCCCCCC
   . = ALIGN(4096);
   .data		: {
     *(.rodata .rodata.* .gnu.linkonce.r.*)


More information about the svn-src-stable mailing list