From 1c413972833ee2547579c9d4a7acc1db612abb14 Mon Sep 17 00:00:00 2001 From: Peter O'Gorman Date: Tue, 21 Sep 2010 11:32:22 -0500 Subject: [PATCH 1/6] Do not use __FUNCTION__ Helps gdb to build with non-gcc compilers. --- bfd/elf32-i386.c | 4 ++-- bfd/elf64-x86-64.c | 4 ++-- bfd/elfxx-sparc.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c index 7a426d5..ef1f849 100644 --- a/bfd/elf32-i386.c +++ b/bfd/elf32-i386.c @@ -1408,7 +1408,7 @@ elf_i386_check_relocs (bfd *abfd, (_("%B: relocation %s against STT_GNU_IFUNC " "symbol `%s' isn't handled by %s"), abfd, elf_howto_table[r_type].name, - name, __FUNCTION__); + name, "elf_i386_check_relocs"); bfd_set_error (bfd_error_bad_value); return FALSE; @@ -3056,7 +3056,7 @@ elf_i386_relocate_section (bfd *output_bfd, (_("%B: relocation %s against STT_GNU_IFUNC " "symbol `%s' isn't handled by %s"), input_bfd, elf_howto_table[r_type].name, - name, __FUNCTION__); + name, "elf_i386_relocate_section"); bfd_set_error (bfd_error_bad_value); return FALSE; diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c index 9da73a1..76520a1 100644 --- a/bfd/elf64-x86-64.c +++ b/bfd/elf64-x86-64.c @@ -1194,7 +1194,7 @@ elf64_x86_64_check_relocs (bfd *abfd, struct bfd_link_info *info, (_("%B: relocation %s against STT_GNU_IFUNC " "symbol `%s' isn't handled by %s"), abfd, x86_64_elf_howto_table[r_type].name, - name, __FUNCTION__); + name, "elf_x86_64_check_relocs"); bfd_set_error (bfd_error_bad_value); return FALSE; @@ -2768,7 +2768,7 @@ elf64_x86_64_relocate_section (bfd *output_bfd, struct bfd_link_info *info, (_("%B: relocation %s against STT_GNU_IFUNC " "symbol `%s' isn't handled by %s"), input_bfd, x86_64_elf_howto_table[r_type].name, - name, __FUNCTION__); + name, "elf_x86_64_relocate_section"); bfd_set_error (bfd_error_bad_value); return FALSE; diff --git a/bfd/elfxx-sparc.c b/bfd/elfxx-sparc.c index 58b1890..db7f511 100644 --- a/bfd/elfxx-sparc.c +++ b/bfd/elfxx-sparc.c @@ -3079,7 +3079,7 @@ _bfd_sparc_elf_relocate_section (bfd *output_bfd, (_("%B: relocation %s against STT_GNU_IFUNC " "symbol `%s' isn't handled by %s"), input_bfd, _bfd_sparc_elf_howto_table[r_type].name, - name, __FUNCTION__); + name, "_bfd_sparc_elf_relocate_section"); bfd_set_error (bfd_error_bad_value); return FALSE; } -- 1.7.0.1