head -r351102 amd64->powerpc64 built via devel/llvm90 (ports head -r509054) and devel/powerpc64-binutils: a sys/powerpc/aim/trap_subr64.S report

Mark Millard marklmi at yahoo.com
Fri Aug 16 08:00:47 UTC 2019


The build reported:

--- kernel.full ---
locore.o: in function `dbtrap':
/usr/src/sys/powerpc/aim/trap_subr64.S:905:(.text+0xa68): toc optimization is not supported for 0x3c210000 instruction


Line 905 turns out to be the addis line of:

        GET_TOCBASE(%r1)                        /* get new SP */
        addis   %r1,%r1,TOC_REF(trapstk)@ha
        ld      %r1,TOC_REF(trapstk)@l(%r1)
        addi    %r1,%r1,(TRAPSTKSZ-48)


Note . . .
This build has lib32 disabled because of what otherwise
stops the build:

--- libc.so.7.full ---
building shared library libc.so.7
/usr/local/powerpc64-unknown-freebsd13.0/bin/ld: bss-plt forced due to /usr/obj/powerpc64vtsc_xtoolchain-llvm-altbinutils/powerpc.powerpc64/usr/src/powerpc.powerpc64/obj-lib32/tmp/usr/lib32/crtbeginS.o
clang-9: error: linker command failed with exit code 1 (use -v to see invocation)
*** [libc.so.7.full] Error code 1



Note: The context here has ELFv1, not ELFv2.

===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)



More information about the freebsd-ppc mailing list