Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Sep 2019 01:33:18 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r352464 - head/stand/mips/uboot
Message-ID:  <201909180133.x8I1XI63098806@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevans
Date: Wed Sep 18 01:33:17 2019
New Revision: 352464
URL: https://svnweb.freebsd.org/changeset/base/352464

Log:
  mips: ubldr: use truncated load address for mips32
  
  BFD appears to silently truncate 0xffffffff80800000 when it processes the
  ldscript for 32-bit mips, but LLD chokes on it as the linker script tries to
  place elements above 32-bit range. It's unclear to me if silent truncation
  is kosher or not and whether this patch is really what we want to do, but it
  is one approach at least.
  
  Reviewed by:	imp, mizhka
  Differential Revision:	https://reviews.freebsd.org/D21487

Modified:
  head/stand/mips/uboot/Makefile

Modified: head/stand/mips/uboot/Makefile
==============================================================================
--- head/stand/mips/uboot/Makefile	Tue Sep 17 22:09:14 2019	(r352463)
+++ head/stand/mips/uboot/Makefile	Wed Sep 18 01:33:17 2019	(r352464)
@@ -19,7 +19,11 @@ INSTALLFLAGS=	-b
 WARNS?=		1
 # Address at which ubldr will be loaded.
 # This varies for different boards and SOCs.
+.if ${MACHINE_ARCH:Mmips64*}
 UBLDR_LOADADDR?=	0xffffffff80800000
+.else
+UBLDR_LOADADDR?=	0x80800000
+.endif
 
 # Architecture-specific loader code
 SRCS=		start.S conf.c vers.c



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