http://sourceware.org/bugzilla/show_bug.cgi?id=15178
Bug #: 15178
Summary: Target "elf32-sparc-freebsd" appears to be fiction.
Product: binutils
Version: 2.23
Status: NEW
Severity: minor
Priority: P2
Component: gas
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
./gas/config/tc-sparc.h contains
> #ifdef TE_FreeBSD
> #define ELF_TARGET_FORMAT "elf32-sparc-freebsd"
> #define ELF64_TARGET_FORMAT "elf64-sparc-freebsd"
> #endif
But this is the only mention of "elf32-sparc-freebsd" in the entire tree.
Whereas ./bfd/elf64-sparc.c contains special handling that defines
"elf64-sparc-freebsd", there appears to be no similar handling in
"bfd/elf32-sparc.c".
The net result is that invoking "as -32" yields
> Fatal error: selected target format 'elf32-sparc-freebsd' unknown
"objdump -H" lists many supported targets, but elf32-sparc-freebsd is not among
them.
This is OK -- I do not think anybody seriously attempts to build 32-bit ELFs on
FreeBSD on sparc (except by accident, as in
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55308 which brought this to my
attention), so I am not sure if the #define of "ELF_TARGET_FORMAT" should be
removed or if the current behavior is intentional, in which case, can I please
have a better error message?
Thanks!
--nwf;
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils