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
This commit is contained in:
parent
ebcb81079e
commit
8b2195605b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=352464
@ -19,7 +19,11 @@ INSTALLFLAGS= -b
|
|||||||
WARNS?= 1
|
WARNS?= 1
|
||||||
# Address at which ubldr will be loaded.
|
# Address at which ubldr will be loaded.
|
||||||
# This varies for different boards and SOCs.
|
# This varies for different boards and SOCs.
|
||||||
|
.if ${MACHINE_ARCH:Mmips64*}
|
||||||
UBLDR_LOADADDR?= 0xffffffff80800000
|
UBLDR_LOADADDR?= 0xffffffff80800000
|
||||||
|
.else
|
||||||
|
UBLDR_LOADADDR?= 0x80800000
|
||||||
|
.endif
|
||||||
|
|
||||||
# Architecture-specific loader code
|
# Architecture-specific loader code
|
||||||
SRCS= start.S conf.c vers.c
|
SRCS= start.S conf.c vers.c
|
||||||
|
Loading…
Reference in New Issue
Block a user