This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Add FreeBSD and NetBSD ABI tags.
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: Momchil Velikov <velco at fadata dot bg>
- Cc: Nick Clifton <nickc at redhat dot com>, binutils at sources dot redhat dot com,gdb-patches at sources dot redhat dot com
- Date: Sun, 22 Jun 2003 13:43:00 -0400
- Subject: Re: Add FreeBSD and NetBSD ABI tags.
- References: <m3r85yqgct.fsf@redhat.com> <87el1yxfzc.fsf@freon.briz.fadata.bg>
Nick> Hi Guys,
Nick> I am applying this patch on behalf of Robert Millan and the
Nick> i386-netbsd-gnu project.
Nick> + #define GNU_ABI_TAG_FREEBSD 3
Nick> + #define GNU_ABI_TAG_NETBSD 4
Please, consider
Considered, and committed.
Andrew
2003-06-22 Andrew Cagney <cagney@redhat.com>
* osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
Velikov.
Index: osabi.c
===================================================================
RCS file: /cvs/src/src/gdb/osabi.c,v
retrieving revision 1.15
diff -u -r1.15 osabi.c
--- osabi.c 8 Jun 2003 18:27:14 -0000 1.15
+++ osabi.c 22 Jun 2003 17:41:27 -0000
@@ -384,6 +384,14 @@
*os_ident_ptr = GDB_OSABI_SOLARIS;
break;
+ case GNU_ABI_TAG_FREEBSD:
+ *os_ident_ptr = GDB_OSABI_FREEBSD_ELF;
+ break;
+
+ case GNU_ABI_TAG_NETBSD:
+ *os_ident_ptr = GDB_OSABI_NETBSD_ELF;
+ break;
+
default:
internal_error
(__FILE__, __LINE__,