aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2011-12-15 11:37:03 +0000
committerNick Clifton <nickc@redhat.com>2011-12-15 11:37:03 +0000
commit83c257caead076ef27f229968ad2c3173141c503 (patch)
tree660897f423b45c749ccee9c1a486b86d73b8b62c /gas
parent2011-12-15 Shinichiro Hamaji <shinichiro.hamaji@gmail.com> (diff)
downloadbinutils-gdb-83c257caead076ef27f229968ad2c3173141c503.tar.gz
binutils-gdb-83c257caead076ef27f229968ad2c3173141c503.tar.bz2
binutils-gdb-83c257caead076ef27f229968ad2c3173141c503.zip
* readelf.c (get_symbol_type): Add ELFOSABI_FREEBSD to the
supported abi's. * config/obj-elf.c (obj_elf_type): Add ELFOSABI_FREEBSD to the supported abi's.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/obj-elf.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 2a996c24f8d..90134497c2a 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2011-12-15 Konstantin Belousov <kib@FreeBSD.org>
+
+ * config/obj-elf.c (obj_elf_type): Add ELFOSABI_FREEBSD to the
+ supported abi's.
+
2011-12-15 Iain Sandoe <iains@gcc.gnu.org>
* config/obj-macho.c (obj_mach_o_subsections_by_symbols): New global.
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c
index 6e16a62629b..287de6a4e2b 100644
--- a/gas/config/obj-elf.c
+++ b/gas/config/obj-elf.c
@@ -1702,9 +1702,10 @@ obj_elf_type (int ignore ATTRIBUTE_UNUSED)
bed = get_elf_backend_data (stdoutput);
if (!(bed->elf_osabi == ELFOSABI_GNU
+ || bed->elf_osabi == ELFOSABI_FREEBSD
/* GNU is still using the default value 0. */
|| bed->elf_osabi == ELFOSABI_NONE))
- as_bad (_("symbol type \"%s\" is supported only by GNU targets"),
+ as_bad (_("symbol type \"%s\" is supported only by GNU and FreeBSD targets"),
type_name);
type = BSF_FUNCTION | BSF_GNU_INDIRECT_FUNCTION;
}