Port-powerpc archive

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

powerpc64 rescue/rescue link failures



Since the January 2 fix to the powerpc64 loader to properly
complain about this the macppc64 build has been failing
while linking rescue/rescue, this way:

#      link  rescue/rescue
[...]
/build/macppc64/obj/tooldir.NetBSD-7.99.3-amd64/lib/gcc/powerpc64--netbsd/4.8.4/../../../../powerpc64--netbsd/bin/ld: /build/macppc64/obj/destdir.macppc/usr/lib/libc.a(writev.o): In function `._sys_writev':
(.text+0xc): call to `.__cerror' lacks nop, can't restore toc; (-mcmodel=small toc adjust stub)/build/macppc64/obj/tooldir.NetBSD-7.99.3-amd64/lib/gcc/powerpc64--netbsd/4.8.4/../../../../powerpc64--netbsd/bin/ld: final link failed: Bad value

The problem is with the tail call to __cerror() which each
system call stub does (despite what the error message says).

I can fix this by brute force with the attached patch, which
inlines __cerror() everywhere it is used, but I was wondering
if there was a better way.  I see .hidden sometimes being used
for this but I have no idea if, or how, that might help this
case.

Dennis Ferguson

Attachment: SYS.h.patch
Description: Binary data



Home | Main Index | Thread Index | Old Index