Date: Mon, 20 Nov 2017 22:18:15 -0800 From: Mark Millard <markmi@dsl-only.net> To: FreeBSD PowerPC ML <freebsd-ppc@freebsd.org>, FreeBSD Toolchain <freebsd-toolchain@freebsd.org>, freebsd-hackers <freebsd-hackers@freebsd.org> Subject: Alternative to using system binutils for cross builds targeting 32-bit powerpc? Message-ID: <BE5028E2-7C26-4BC9-BAA1-5D6AF2F67110@dsl-only.net>
next in thread | raw e-mail | index | archive | help
[I tend to experiment with using clang to target powerpc64 and powerpc, reporting things that I find.] [clang 5 generates R_PPC_PLTREL24 in the .o files for global symbols in places gcc 4.2.1 generates R_PPC_ADDR16_HA / R_PPC_ADDR16_LO pairs.] Trying to cross build the 32-bit powerpc kernel with the system clang 5 gets failures like: --- aha.ko.full --- ld: aha.kld(.text+0x2b8c): R_PPC_PLTREL24 reloc against local symbol aha.kld: could not read symbols: Bad value *** [aha.ko.full] Error code 1 Would an alternate binutils handle it? There is no devel/powerpc-binutils (but there is devel/powerpc64-binutils ). Does someone known a way to use an alternate binutils to target 32-bit powerpc? As stands it looks like I can only experiment with self-hosted builds and an alternate binutils ( devel/binutils ) as far as pre-existing things go. === Mark Millard markmi at dsl-only.net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BE5028E2-7C26-4BC9-BAA1-5D6AF2F67110>