bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/23980] powerpc64 ld segfault when linking libc on FreeBSD


From: alfredo.junior at eldorado dot org.br
Subject: [Bug ld/23980] powerpc64 ld segfault when linking libc on FreeBSD
Date: Mon, 17 Dec 2018 13:13:01 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=23980

--- Comment #6 from Alfredo Dal'Ava JĂșnior <alfredo.junior at eldorado dot 
org.br> ---
(In reply to Alan Modra from comment #5)
> I don't reproduce the crash with a x86_64-linux to powerpc64-freebsd
> binutils configured with
> --disable-nls --enable-plugins --disable-gdb --disable-sim
> --disable-readline \
> --disable-libdecnumber --target=powerpc64-freebsd

Binutils was configured like this:
CXXFLAGS="-I/usr/local/include -g" CFLAGS="-I/usr/local/include -g" ./configure
--enable-targets=all --enable-gold

> 
> $ ld/ld-new -shared -o pr23980 write.pico writev.pico
> ld/ld-new: write.pico: in function `write':
> /usr/src/lib/libc/sys/write.c:49: undefined reference to `__libc_interposing'
> ld/ld-new: /usr/src/lib/libc/sys/write.c:49: undefined reference to
> `__libc_interposing'
> ld/ld-new: writev.pico: in function `writev':
> /usr/src/lib/libc/sys/writev.c:50: undefined reference to
> `__libc_interposing'
> ld/ld-new: /usr/src/lib/libc/sys/writev.c:50: undefined reference to
> `__libc_interposing'
> 
> $ ld/ld-new --version
> GNU ld (GNU Binutils) 2.31.51.20181216

I just updated binutils again, crashing same way. It's now: 

ld --version
GNU ld (GNU Binutils)2.31.51.20181213


> Incidentally, were you expecting write.pico and writev.pico to be big-endian
> ELFv2 object files?  On linux we generally use big-endian ELFv1 and
> little-endian ELFv2.  Not that there is any linker problem (that I'm aware
> of) with big-endian ELFv2.

yes, I'm expecting both being big-endian ELFv2, (as it should be default for
FreeBSD-PowerPC64 at some point and I'm doing some tests).

As reference, FreeBSD build system log shows the following:

clang -mabi=elfv2 -fuse-ld=/usr/local/bin/ld -target
powerpc64-unknown-freebsd13.0-elfv2
--sysroot=/usr/obj/usr/src/powerpc.powerpc64/tmp -B/usr/local  -nodefaultlibs
-Wl,--version-script=Version.map   -shared -Wl,-x -Wl,--fatal-warnings
-Wl,--warn-shared-textrel  -o libc.so.7.full -Wl,-soname,libc.so.7  `NM='nm'
NMFLAGS='' lorder

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]