mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-25 10:01:02 +01:00
loader/uboot: Move to foo.ldconfig
Move to the foo.ldconfig convention to match the rest of the boot loader. No functional change intended. Sponsored by: Netflix Reviewed by: tsoome, kevans Differential Revision: https://reviews.freebsd.org/D44059
This commit is contained in:
parent
fe4ab1fdb0
commit
3d6239d244
@ -40,7 +40,7 @@ HELP_FILENAME= loader.help.uboot
|
||||
# Always add MI sources
|
||||
.include "${BOOTSRC}/loader.mk"
|
||||
|
||||
LDSCRIPT= ${.CURDIR}/arch/${MACHINE_CPUARCH}/ldscript.${MACHINE_CPUARCH}
|
||||
LDSCRIPT= ${.CURDIR}/arch/${MACHINE_CPUARCH}/${MACHINE_CPUARCH}.ldscript
|
||||
LDFLAGS= -nostdlib -static -T ${LDSCRIPT}
|
||||
LDFLAGS+= -Wl,-znotext
|
||||
|
||||
|
@ -4,22 +4,22 @@ UBLDR_LOADADDR?= 0x1000000
|
||||
|
||||
SRCS+= start.S conf.c self_reloc.c
|
||||
|
||||
ldscript.abs:
|
||||
abs.ldscript:
|
||||
echo "UBLDR_LOADADDR = ${UBLDR_LOADADDR};" >${.TARGET}
|
||||
|
||||
ldscript.pie:
|
||||
pie.ldscript:
|
||||
echo "UBLDR_LOADADDR = 0;" >${.TARGET}
|
||||
|
||||
ubldr: ${OBJS} ldscript.abs ${LDSCRIPT} ${DPADD}
|
||||
${CC} ${CFLAGS} -T ldscript.abs ${LDFLAGS} \
|
||||
ubldr: ${OBJS} abs.ldscript ${LDSCRIPT} ${DPADD}
|
||||
${CC} ${CFLAGS} -T abs.ldscript ${LDFLAGS} \
|
||||
-o ${.TARGET} ${OBJS} ${LDADD}
|
||||
|
||||
ubldr.pie: ${OBJS} ldscript.pie ${LDSCRIPT} ${DPADD}
|
||||
${CC} ${CFLAGS} -T ldscript.pie ${LDFLAGS} -pie -Wl,-Bsymbolic \
|
||||
ubldr.pie: ${OBJS} pie.ldscript ${LDSCRIPT} ${DPADD}
|
||||
${CC} ${CFLAGS} -T pie.ldscript ${LDFLAGS} -pie -Wl,-Bsymbolic \
|
||||
-o ${.TARGET} ${OBJS} ${LDADD}
|
||||
|
||||
ubldr.bin: ubldr.pie
|
||||
${OBJCOPY} -S -O binary ubldr.pie ${.TARGET}
|
||||
|
||||
CLEANFILES+= ldscript.abs ldscript.pie ubldr ubldr.pie ubldr.bin
|
||||
CLEANFILES+= abs.ldscript pie.ldscript ubldr ubldr.pie ubldr.bin
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user