diff options
Diffstat (limited to 'ld')
-rw-r--r-- | ld/emultempl/pe.em | 4 | ||||
-rw-r--r-- | ld/emultempl/pep.em | 4 | ||||
-rw-r--r-- | ld/pe-dll.c | 12 |
3 files changed, 10 insertions, 10 deletions
diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em index 323724b..0413d07 100644 --- a/ld/emultempl/pe.em +++ b/ld/emultempl/pe.em @@ -1188,7 +1188,7 @@ pe_fixup_stdcalls (void) struct bfd_link_hash_entry *undef, *sym; if (pe_dll_extra_pe_debug) - printf ("%s\n", __FUNCTION__); + printf ("%s\n", __func__); for (undef = link_info.hash->undefs; undef; undef=undef->u.undef.next) if (undef->type == bfd_link_hash_undefined) @@ -1461,7 +1461,7 @@ gld${EMULATION_NAME}_after_open (void) bfd *a; struct bfd_link_hash_entry *sym; - printf ("%s()\n", __FUNCTION__); + printf ("%s()\n", __func__); for (sym = link_info.hash->undefs; sym; sym=sym->u.undef.next) printf ("-%s\n", sym->root.string); diff --git a/ld/emultempl/pep.em b/ld/emultempl/pep.em index f0e678b..0bdac8f 100644 --- a/ld/emultempl/pep.em +++ b/ld/emultempl/pep.em @@ -1122,7 +1122,7 @@ pep_fixup_stdcalls (void) struct bfd_link_hash_entry *undef, *sym; if (pep_dll_extra_pe_debug) - printf ("%s\n", __FUNCTION__); + printf ("%s\n", __func__); for (undef = link_info.hash->undefs; undef; undef=undef->u.undef.next) if (undef->type == bfd_link_hash_undefined) @@ -1466,7 +1466,7 @@ gld${EMULATION_NAME}_after_open (void) bfd *a; struct bfd_link_hash_entry *sym; - printf ("%s()\n", __FUNCTION__); + printf ("%s()\n", __func__); for (sym = link_info.hash->undefs; sym; sym=sym->u.undef.next) printf ("-%s\n", sym->root.string); diff --git a/ld/pe-dll.c b/ld/pe-dll.c index a2584c3..0248f4b 100644 --- a/ld/pe-dll.c +++ b/ld/pe-dll.c @@ -1421,7 +1421,7 @@ pe_find_data_imports (const char *symhead, char *impname; if (pe_dll_extra_pe_debug) - printf ("%s:%s\n", __FUNCTION__, undef->root.string); + printf ("%s:%s\n", __func__, undef->root.string); strcpy (name, undef->root.string); impname = name - (sizeof "__imp_" - 1); @@ -3501,7 +3501,7 @@ pe_implied_import_dll (const char *filename) if (pe_dll_extra_pe_debug) printf ("%s %s: 0x%08lx-0x%08lx (0x%08lx)\n", - __FUNCTION__, sec_name, (unsigned long) vaddr, + __func__, sec_name, (unsigned long) vaddr, (unsigned long) (vaddr + vsize), (unsigned long) flags); } else if (strcmp(sec_name,".rdata") == 0) @@ -3511,7 +3511,7 @@ pe_implied_import_dll (const char *filename) if (pe_dll_extra_pe_debug) printf ("%s %s: 0x%08lx-0x%08lx (0x%08lx)\n", - __FUNCTION__, sec_name, (unsigned long) vaddr, + __func__, sec_name, (unsigned long) vaddr, (unsigned long) (vaddr + vsize), (unsigned long) flags); } else if (strcmp (sec_name,".bss") == 0) @@ -3521,7 +3521,7 @@ pe_implied_import_dll (const char *filename) if (pe_dll_extra_pe_debug) printf ("%s %s: 0x%08lx-0x%08lx (0x%08lx)\n", - __FUNCTION__, sec_name, (unsigned long) vaddr, + __func__, sec_name, (unsigned long) vaddr, (unsigned long) (vaddr + vsize), (unsigned long) flags); } } @@ -3579,7 +3579,7 @@ pe_implied_import_dll (const char *filename) if (pe_dll_extra_pe_debug) printf ("%s dll-name: %s sym: %s addr: 0x%lx %s\n", - __FUNCTION__, dllname, erva + name_rva, + __func__, dllname, erva + name_rva, (unsigned long) func_rva, is_data ? "(data)" : ""); } @@ -3616,7 +3616,7 @@ pe_implied_import_dll (const char *filename) if (pe_dll_extra_pe_debug) printf ("%s dll-name: %s sym: %s addr: 0x%lx %s\n", - __FUNCTION__, dllname, erva + name_rva, + __func__, dllname, erva + name_rva, (unsigned long) func_rva, is_data ? "(data)" : ""); } } |