From 2d09463d91e5d64a0d55dc801f024f94f9c82618 Mon Sep 17 00:00:00 2001 From: joerg Date: Mon, 25 Aug 2014 20:34:36 +0000 Subject: [PATCH] Allow creation of indirection functions on all platforms, not just GNU and FreeBSD. --- external/gpl3/binutils/dist/gas/config/obj-elf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/external/gpl3/binutils/dist/gas/config/obj-elf.c b/external/gpl3/binutils/dist/gas/config/obj-elf.c index d7c766513ccc..3fa89e8c36f7 100644 --- a/external/gpl3/binutils/dist/gas/config/obj-elf.c +++ b/external/gpl3/binutils/dist/gas/config/obj-elf.c @@ -1705,12 +1705,14 @@ obj_elf_type (int ignore ATTRIBUTE_UNUSED) const struct elf_backend_data *bed; bed = get_elf_backend_data (stdoutput); +#if 0 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 and FreeBSD targets"), type_name); +#endif type = BSF_FUNCTION | BSF_GNU_INDIRECT_FUNCTION; } else if (strcmp (type_name, "gnu_unique_object") == 0)