diff options
author | Alan Modra <amodra@gmail.com> | 2001-09-20 23:30:37 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2001-09-20 23:30:37 +0000 |
commit | 8f615d07046056cd62e6916b1af80223df8641e8 (patch) | |
tree | b70137733b0ade8677ac13ec8b19b39d28babf23 /bfd/elf32-hppa.c | |
parent | 1c4dcb577190b1b205381f74ac29eb0102811af6 (diff) | |
download | gdb-8f615d07046056cd62e6916b1af80223df8641e8.zip gdb-8f615d07046056cd62e6916b1af80223df8641e8.tar.gz gdb-8f615d07046056cd62e6916b1af80223df8641e8.tar.bz2 |
* bfd.c (bfd_archive_filename): New function.
* bfd-in2.h: Regenerate.
* aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename
in error messages where the bfd is an input bfd.
* aout-cris.c: Likewise.
* coff-arm.c: Likewise.
* coff-mcore.c: Likewise.
* coff-ppc.c: Likewise.
* coff-rs6000.c: Likewise.
* coff-sh.c: Likewise.
* coff-tic54x.c: Likewise.
* coff-tic80.c: Likewise.
* coff64-rs6000.c: Likewise.
* coffcode.h: Likewise.
* coffgen.c: Likewise.
* cofflink.c: Likewise.
* ecofflink.c: Likewise.
* elf-hppa.h: Likewise.
* elf.c: Likewise.
* elf32-arm.h: Likewise.
* elf32-cris.c: Likewise.
* elf32-gen.c: Likewise.
* elf32-hppa.c: Likewise.
* elf32-i370.c: Likewise.
* elf32-i386.c: Likewise.
* elf32-m32r.c: Likewise.
* elf32-mcore.c: Likewise.
* elf32-mips.c: Likewise.
* elf32-ppc.c: Likewise.
* elf32-s390.c: Likewise.
* elf32-sh.c: Likewise.
* elf32-sparc.c: Likewise.
* elf32-v850.c: Likewise.
* elf64-alpha.c: Likewise.
* elf64-gen.c: Likewise.
* elf64-ppc.c: Likewise.
* elf64-s390.c: Likewise.
* elf64-sparc.c: Likewise.
* elf64-x86-64.c: Likewise.
* elflink.h: Likewise.
* elfxx-ia64.c: Likewise.
* ieee.c: Likewise.
* ihex.c: Likewise.
* libbfd.c: Likewise.
* pdp11.c: Likewise.
* pe-mips.c: Likewise.
* peicode.h: Likewise.
* srec.c: Likewise.
* xcofflink.c: Likewise.
* elf32-arm.h: Make _bfd_error_handler calls K&R compatible.
* elflink.c (_bfd_elf_create_linker_section): Better grammar for
error message.
* coff-mcore.c (coff_mcore_relocate_section): Internalionalise
error message.
* elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types.
Consolidate error messages, and split long messages to two lines.
Diffstat (limited to 'bfd/elf32-hppa.c')
-rw-r--r-- | bfd/elf32-hppa.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/bfd/elf32-hppa.c b/bfd/elf32-hppa.c index a774782..e2a7cc3 100644 --- a/bfd/elf32-hppa.c +++ b/bfd/elf32-hppa.c @@ -623,7 +623,7 @@ hppa_get_stub_entry (input_section, sym_sec, hash, rel, hplink) { if (hash == NULL || hash->elf.root.type != bfd_link_hash_undefweak) (*_bfd_error_handler) (_("%s(%s+0x%lx): cannot find stub entry %s"), - bfd_get_filename (input_section->owner), + bfd_archive_filename (input_section->owner), input_section->name, (long) rel->r_offset, stub_name); @@ -684,7 +684,7 @@ hppa_add_stub (stub_name, section, hplink) if (stub_entry == NULL) { (*_bfd_error_handler) (_("%s: cannot create stub entry %s"), - bfd_get_filename (section->owner), + bfd_archive_filename (section->owner), stub_name); return NULL; } @@ -878,7 +878,7 @@ hppa_build_one_stub (gen_entry, in_arg) { (*_bfd_error_handler) (_("%s(%s+0x%lx): cannot relocate %s, recompile with -ffunction-sections"), - bfd_get_filename (stub_entry->target_section->owner), + bfd_archive_filename (stub_entry->target_section->owner), stub_sec->name, (long) stub_entry->stub_offset, stub_entry->root.string); @@ -1036,7 +1036,7 @@ hppa_build_one_stub (gen_entry, in_arg) { (*_bfd_error_handler) (_("%s(%s+0x%lx): cannot reach %s, recompile with -ffunction-sections"), - bfd_get_filename (stub_entry->target_section->owner), + bfd_archive_filename (stub_entry->target_section->owner), stub_sec->name, (long) stub_entry->stub_offset, stub_entry->root.string); @@ -1376,7 +1376,7 @@ elf32_hppa_check_relocs (abfd, info, sec, relocs) { (*_bfd_error_handler) (_("%s: relocation %s can not be used when making a shared object; recompile with -fPIC"), - bfd_get_filename (abfd), + bfd_archive_filename (abfd), elf_hppa_howto_table[r_type].name); bfd_set_error (bfd_error_bad_value); return false; @@ -1396,7 +1396,7 @@ elf32_hppa_check_relocs (abfd, info, sec, relocs) { (*_bfd_error_handler) (_("%s: relocation %s should not be used when making a shared object; recompile with -fPIC"), - bfd_get_filename (abfd), + bfd_archive_filename (abfd), elf_hppa_howto_table[r_type].name); } /* Fall through. */ @@ -2826,8 +2826,8 @@ elf32_hppa_size_stubs (output_bfd, stub_bfd, info, multi_subspace, group_size, else { (*_bfd_error_handler) (_("%s: duplicate export stub %s"), - bfd_get_filename (input_bfd), - stub_name); + bfd_archive_filename (input_bfd), + stub_name); } } } @@ -3408,7 +3408,7 @@ final_link_relocate (input_section, contents, rel, value, hplink, sym_sec, h) #if 1 /* debug them. */ (*_bfd_error_handler) (_("%s(%s+0x%lx): fixing %s"), - bfd_get_filename (input_bfd), + bfd_archive_filename (input_bfd), input_section->name, (long) rel->r_offset, howto->name); @@ -3524,7 +3524,7 @@ final_link_relocate (input_section, contents, rel, value, hplink, sym_sec, h) { (*_bfd_error_handler) (_("%s(%s+0x%lx): cannot reach %s, recompile with -ffunction-sections"), - bfd_get_filename (input_bfd), + bfd_archive_filename (input_bfd), input_section->name, (long) rel->r_offset, stub_entry->root.string); @@ -4062,11 +4062,13 @@ elf32_hppa_relocate_section (output_bfd, info, input_bfd, input_section, { (*_bfd_error_handler) (_("%s(%s+0x%lx): cannot handle %s for %s"), - bfd_get_filename (input_bfd), + bfd_archive_filename (input_bfd), input_section->name, (long) rel->r_offset, howto->name, sym_name); + bfd_set_error (bfd_error_bad_value); + return false; } else { |