svn commit: r306264 - in head/sys/boot/efi/loader/arch: amd64 i386
Ed Maste
emaste at FreeBSD.org
Fri Sep 23 13:19:01 UTC 2016
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.*)
More information about the svn-src-all
mailing list