aboutsummaryrefslogtreecommitdiff
path: root/bfd/vms-hdr.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2009-11-24 13:13:43 +0000
committerTristan Gingold <gingold@adacore.com>2009-11-24 13:13:43 +0000
commite4d2e6658e104829003a91249ffe27ae1afb0b34 (patch)
tree001b104912a7ca8a09015887cc5de7b5808eb7be /bfd/vms-hdr.c
parent58ed7dcdd06f61ecc94bb4959a5523b4dd8fe8a9 (diff)
downloadfsf-binutils-gdb-e4d2e6658e104829003a91249ffe27ae1afb0b34.zip
fsf-binutils-gdb-e4d2e6658e104829003a91249ffe27ae1afb0b34.tar.gz
fsf-binutils-gdb-e4d2e6658e104829003a91249ffe27ae1afb0b34.tar.bz2
2009-11-24 Tristan Gingold <gingold@adacore.com>
* vms-hdr.c (_bfd_vms_write_hdr): Strip any suffix to create module name. * vms.h (vms_debug2): Add vms_debug2. * vms.c (vms_archive_p): Remove (vms_bfd_free_cached_info): Remove the function, use libbfd.h macro instead. (vms_get_section_contents_in_window): Ditto. (vms_bfd_copy_private_bfd_data): Ditto. (vms_bfd_copy_private_section_data): Ditto. (vms_bfd_copy_private_symbol_data): Ditto. (vms_bfd_print_private_bfd_data): Ditto. (vms_bfd_set_private_flags): Ditto. (vms_bfd_merge_private_bfd_data): Ditto. (vms_read_minisymbols): Ditto. (vms_minisymbol_to_symbol): Ditto. (vms_get_lineno): Ditto. (vms_find_nearest_line): Ditto. (vms_bfd_make_debug_symbol): Ditto. (vms_core_file_failing_command): Remove. (vms_core_file_failing_signal): Remove. (vms_core_file_matches_executable_p): Remove. (vms_slurp_armap): Remove. (vms_slurp_extended_name_table): Remove. (vms_construct_extended_name_table): Remove. (vms_truncate_arname): Remove. (vms_write_armap): Remove. (vms_read_ar_hdr): Remove. (vms_get_elt_at_index): Remove. (vms_openr_next_archived_file): Remove. (vms_update_armap_timestamp): Remove. (vms_generic_stat_arch_elt): Remove. (vms_get_symtab_upper_bound): Remove. (vms_sizeof_headers): Remove. (vms_bfd_get_relocated_section_contents): Remove. (vms_bfd_relax_section): Remove. (vms_bfd_gc_sections): Remove. (vms_bfd_merge_sections): Remove. (vms_bfd_link_hash_table_create): Remove. (vms_bfd_link_hash_table_free): Remove. (vms_bfd_link_add_symbols): Remove. (vms_bfd_final_link): Remove. (vms_bfd_link_split_section): Remove. (vms_get_dynamic_symtab_upper_bound): Remove. (vms_canonicalize_dynamic_symtab): Remove. (vms_get_dynamic_reloc_upper_bound): Remove. (vms_canonicalize_dynamic_reloc): Remove. (fill_section_ptr): Use vms_debug2 instead of vms_debug. (_bfd_vms_slurp_object_records): Ditto. (vms_object_p): Ditto. (vms_mkobject): Ditto. (vms_write_object_contents): Ditto. (vms_close_and_cleanup): Ditto. (vms_new_section_hook): Ditto. (vms_get_section_contents): Ditto. (vms_get_symtab_upper_bound): Ditto. (vms_canonicalize_symtab): Ditto. (vms_print_symbol): Ditto. (vms_get_symbol_info): Ditto. (vms_bfd_is_local_label_name): Ditto. (vms_find_nearest_line): Ditto. (vms_slurp_reloc_table): Ditto. (vms_bfd_reloc_type_lookup): Ditto. (vms_set_arch_mach): Ditto. (vms_alpha_vec, vms_vax_vec): Use _bfd_nocore, _bfd_noarchive, _bfd_nolink and _bfd_nodynamic methods instead of vms stubs.
Diffstat (limited to 'bfd/vms-hdr.c')
-rw-r--r--bfd/vms-hdr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/vms-hdr.c b/bfd/vms-hdr.c
index 8c10df6..407fa7f 100644
--- a/bfd/vms-hdr.c
+++ b/bfd/vms-hdr.c
@@ -234,6 +234,7 @@ _bfd_vms_write_hdr (bfd *abfd, int objtype)
_bfd_vms_output_long (abfd, MAX_OUTREC_SIZE);
}
+ /* Create module name from filename. */
if (bfd_get_filename (abfd) != 0)
{
/* Strip path and suffix information. */
@@ -256,9 +257,9 @@ _bfd_vms_write_hdr (bfd *abfd, int objtype)
if (fptr != NULL)
fout = fptr + 1;
- /* Strip .obj suffix. */
+ /* Strip suffix. */
fptr = strrchr (fout, '.');
- if (fptr != 0 && strcasecmp (fptr, ".OBJ") == 0)
+ if (fptr != 0)
*fptr = 0;
/* Convert to upper case and truncate at 31 characters.