bug-binutils
[Top][All Lists]
Advanced

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

SPARC64 on FreeBSD semi-broken, fix proposal


From: Michael Reim
Subject: SPARC64 on FreeBSD semi-broken, fix proposal
Date: Tue, 07 Jan 2020 17:43:52 +0100
User-agent: Roundcube Webmail/1.3.8

Hello everyone,

commit c9098af41e3246586a30f4f0bdb0ee4367e9a5e7 kind of broke support for FreeBSD on SPARC64. Back then old cruft (a.out and coff support) were removed for that architecture. As no other executable formats remained, a simplification for the gas targets was made at the same time, combining the former separate targets for NetBSD and OpenBSD. However the new target (sparc-*-*bsd*) also matches FreeBSD, leading to a definition of "fmt=elf em=nbsd".

This seems to work in most cases, but there are obviously subtle differences in "em=nbsd" and "em=freebsd" which leads to an assertion when linking FreeBSD's libc during a system build from source.

The attached patch differentiates those targets. I tested it on FreeBSD and it solves the linking issue. Gas should still work on NetBSD/OpenBSD, too.

Thanks for maintaining these critical programs!

Attachment: patch-gas_configure.tgt
Description: Text Data


reply via email to

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