[Bug 239007] lang/gcc8 enable secure-plt by default for powerpc*

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jul 31 23:50:10 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239007

--- Comment #6 from Mark Millard <marklmi26-fbsd at yahoo.com> ---
(In reply to Mark Millard from comment #5)

I finally got around to trying to buildworld
buildkernel targeting powerpc64 via system-clang
(amd64 -> powerpc64 cross build).

Using lld complained about ELFv1 not being
supported, as expected if I understand the
status correctly.


It got the following trying to build lib32
materials when using devel/powerpc64-binutils
and its gnu ld instead:

--- 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_clang_altbinutils-oldunwind/powerpc.powerpc64/usr/src/powerpc.powerpc64/obj-lib32/tmp/usr/lib32/crtbeginS.o
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** [libc.so.7.full] Error code 1

(The same type of problem as when directly
targeting 32-bit powerpc.)

It also got the following shortly before the above
error:

--- Version.map ---
cpp: warning: argument unused during compilation:
'-L/usr/obj/powerpc64vtsc_clang_altbinutils-oldunwind/powerpc.powerpc64/usr/src/powerpc.powerpc64/obj-lib32/tmp/usr/lib32'
[-Wunused-command-line-argument]


As for the what stopped it: WITHOUT_LIB32= seems
to avoid the issue.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-ppc mailing list