Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Dec 2016 16:23:13 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r310827 - in stable/11/sys/boot/efi/loader/arch: amd64 i386
Message-ID:  <201612301623.uBUGNDVF075622@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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.*)



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