Lines 1704-1711
obj_elf_type (int ignore ATTRIBUTE_UNUSE
Link Here
|
1704 |
const struct elf_backend_data *bed; |
1704 |
const struct elf_backend_data *bed; |
1705 |
|
1705 |
|
1706 |
bed = get_elf_backend_data (stdoutput); |
1706 |
bed = get_elf_backend_data (stdoutput); |
1707 |
if (!(bed->elf_osabi == ELFOSABI_LINUX |
1707 |
if (!(bed->elf_osabi == ELFOSABI_GNU |
1708 |
/* GNU/Linux is still using the default value 0. */ |
1708 |
/* GNU is still using the default value 0. */ |
1709 |
|| bed->elf_osabi == ELFOSABI_NONE)) |
1709 |
|| bed->elf_osabi == ELFOSABI_NONE)) |
1710 |
as_bad (_("symbol type \"%s\" is supported only by GNU targets"), |
1710 |
as_bad (_("symbol type \"%s\" is supported only by GNU targets"), |
1711 |
type_name); |
1711 |
type_name); |
Lines 1716-1729
obj_elf_type (int ignore ATTRIBUTE_UNUSE
Link Here
|
1716 |
struct elf_backend_data *bed; |
1716 |
struct elf_backend_data *bed; |
1717 |
|
1717 |
|
1718 |
bed = (struct elf_backend_data *) get_elf_backend_data (stdoutput); |
1718 |
bed = (struct elf_backend_data *) get_elf_backend_data (stdoutput); |
1719 |
if (!(bed->elf_osabi == ELFOSABI_LINUX |
1719 |
if (!(bed->elf_osabi == ELFOSABI_GNU |
1720 |
/* GNU/Linux is still using the default value 0. */ |
1720 |
/* GNU is still using the default value 0. */ |
1721 |
|| bed->elf_osabi == ELFOSABI_NONE)) |
1721 |
|| bed->elf_osabi == ELFOSABI_NONE)) |
1722 |
as_bad (_("symbol type \"%s\" is supported only by GNU targets"), |
1722 |
as_bad (_("symbol type \"%s\" is supported only by GNU targets"), |
1723 |
type_name); |
1723 |
type_name); |
1724 |
type = BSF_OBJECT | BSF_GNU_UNIQUE; |
1724 |
type = BSF_OBJECT | BSF_GNU_UNIQUE; |
1725 |
/* PR 10549: Always set OSABI field to LINUX for objects containing unique symbols. */ |
1725 |
/* PR 10549: Always set OSABI field to GNU for objects containing unique symbols. */ |
1726 |
bed->elf_osabi = ELFOSABI_LINUX; |
1726 |
bed->elf_osabi = ELFOSABI_GNU; |
1727 |
} |
1727 |
} |
1728 |
#ifdef md_elf_symbol_type |
1728 |
#ifdef md_elf_symbol_type |
1729 |
else if ((type = md_elf_symbol_type (type_name, sym, elfsym)) != -1) |
1729 |
else if ((type = md_elf_symbol_type (type_name, sym, elfsym)) != -1) |