Re: llvm/sparc64: match BFD -N alignment

Kirill A. Korinsky <[email protected]>
Newsgroups gmane.os.openbsd.tech
Message-ID <[email protected]>
On Tue, 18 Aug 2026 23:01:35 +0200,
"Theo de Raadt" <[email protected]> wrote:
> 
> Does that work in the existing toolchain, and the new toolchain(s)?
> 

Seems that bfd doesn't support --image-base:

ld.bfd -N --image-base=0x100000 -e _start -o ofwboot -nopie -znorelro  srt0.o Locore.o alloc.o boot.o elf64_exec.o arc4.o net.o netif_of.o ofdev.o vers.o diskprobe.o softraid_sparc64.o strlcpy.o strcmp.o strlcat.o strlen.o ffs.o aes_xts.o bcrypt_pbkdf.o blowfish.o explicit_bzero.o hmac_sha1.o pkcs5_pbkdf2.o rijndael.o sha1.o sha2.o softraid.o -L/usr/src/sys/arch/sparc64/stand/ofwboot/../libsa /usr/src/sys/arch/sparc64/stand/ofwboot/../libsa/obj/libsa.a  -L/usr/src/sys/arch/sparc64/stand/ofwboot/../libz /usr/src/sys/arch/sparc64/stand/ofwboot/../libz/obj/libz.a
ld.bfd: unrecognized option '--image-base=0x100000'
ld.bfd: use the --help option for usage information


-- 
wbr, Kirill
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.