diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index 6e16a62..2b7aa29 100644 --- a/gas/config/obj-elf.c +++ b/gas/config/obj-elf.c @@ -1703,8 +1703,9 @@ obj_elf_type (int ignore ATTRIBUTE_UNUSED) bed = get_elf_backend_data (stdoutput); if (!(bed->elf_osabi == ELFOSABI_GNU /* GNU is still using the default value 0. */ - || bed->elf_osabi == ELFOSABI_NONE)) - as_bad (_("symbol type \"%s\" is supported only by GNU targets"), + || bed->elf_osabi == ELFOSABI_NONE + || bed->elf_osabi == ELFOSABI_FREEBSD)) + as_bad (_("symbol type \"%s\" is supported only by GNU and FreeBSD targets"), type_name); type = BSF_FUNCTION | BSF_GNU_INDIRECT_FUNCTION; }