Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Sep 2016 13:19:00 +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: r306264 - in head/sys/boot/efi/loader/arch: amd64 i386
Message-ID:  <201609231319.u8NDJ0Hw065220@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Fri Sep 23 13:18:59 2016
New Revision: 306264
URL: https://svnweb.freebsd.org/changeset/base/306264

Log:
  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:
  head/sys/boot/efi/loader/arch/amd64/ldscript.amd64
  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 23 13:08:15 2016	(r306263)
+++ head/sys/boot/efi/loader/arch/amd64/ldscript.amd64	Fri Sep 23 13:18:59 2016	(r306264)
@@ -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: head/sys/boot/efi/loader/arch/i386/ldscript.i386
==============================================================================
--- head/sys/boot/efi/loader/arch/i386/ldscript.i386	Fri Sep 23 13:08:15 2016	(r306263)
+++ head/sys/boot/efi/loader/arch/i386/ldscript.i386	Fri Sep 23 13:18:59 2016	(r306264)
@@ -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?201609231319.u8NDJ0Hw065220>