Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-8]: src/sys/arch/macppc/stand/fixcoff Pull up following revision(...



details:   https://anonhg.NetBSD.org/src/rev/037cfa45eefd
branches:  netbsd-8
changeset: 435040:037cfa45eefd
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Jun 09 14:47:37 2018 +0000

description:
Pull up following revision(s) (requested by uwe in ticket #863):

        sys/arch/macppc/stand/fixcoff/elf32_powerpc_merge.x: revision 1.6,1.7 (patch)

PR port-macppc/52564

  . = (. + 0x0FFF) & 0xFFFFF000;

now seems to cause binutils to pad the preceding section, and when
that happens to be .text the powermac ofw is unhappy for whatever
reason.

For now provide .pad section that absorbs the padding as a workaround.
The binutils problem still needs to be looked into.

diffstat:

 sys/arch/macppc/stand/fixcoff/elf32_powerpc_merge.x |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (16 lines):

diff -r 681a393a5d59 -r 037cfa45eefd sys/arch/macppc/stand/fixcoff/elf32_powerpc_merge.x
--- a/sys/arch/macppc/stand/fixcoff/elf32_powerpc_merge.x       Sat Jun 09 14:44:33 2018 +0000
+++ b/sys/arch/macppc/stand/fixcoff/elf32_powerpc_merge.x       Sat Jun 09 14:47:37 2018 +0000
@@ -1,3 +1,4 @@
+/*     $NetBSD: elf32_powerpc_merge.x,v 1.4.4.1 2018/06/09 14:47:37 martin Exp $ */
 OUTPUT_ARCH(powerpc)
 SECTIONS
 {
@@ -40,6 +41,7 @@
   .dtors     : { *(.dtors)   }
   _etext = .;
   PROVIDE (etext = .);
+  .pad       : { LONG(0) }
   /* Read-write section, merged into data segment: */
   . = (. + 0x0FFF) & 0xFFFFF000;
   .data    :



Home | Main Index | Thread Index | Old Index