2009-06-06 06:36:52 +00:00
|
|
|
|
2009-06-06 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* elf32-spu.c (spu_elf_relocate_section): Match overlay number
|
|
|
|
|
when looking for soft-icache stubs.
|
|
|
|
|
|
2009-06-05 Tristan Gingold <gingold@adacore.com>
* mach-o.h: Update copyright year.
(bfd_mach_o_mach_header_magic): New enum.
(bfd_mach_o_cpu_subtype): Now an enum.
(BFD_MACH_O_HEADER_SIZE, BFD_MACH_O_HEADER_64_SIZE): New macros.
(BFD_MACH_O_SECTION_SIZE, BFD_MACH_O_SECTION_64_SIZE): Ditto.
(BFD_MACH_O_LC_SEGMENT_SIZE, BFD_MACH_O_LC_SEGMENT_64_SIZE): Ditto.
(bfd_mach_o_load_command): Field type_required is now a boolean.
Reindent prototypes.
(bfd_mach_o_object_p, bfd_mach_o_core_p): Remove.
(bfd_mach_o_bfd_copy_private_symbol_data): Add a prototype.
(bfd_mach_o_bfd_copy_private_section_data): Ditto.
(bfd_mach_o_bfd_copy_private_bfd_data): Ditto.
(bfd_mach_o_get_symtab_upper_bound): Ditto.
(bfd_mach_o_canonicalize_symtab): Ditto.
(bfd_mach_o_get_symbol_info): Ditto.
(bfd_mach_o_print_symbol): Ditto.
(bfd_mach_o_bfd_print_private_bfd_data): Ditto.
(bfd_mach_o_make_empty_symbol): Ditto.
(bfd_mach_o_write_contents): Ditto.
* mach-o.c (bfd_mach_o_object_p, bfd_mach_o_core_p,
bfd_mach_o_mkobject): Defines.
(bfd_mach_o_valid): Returns FALSE/TRUE instead of 0/1.
Do not check with target vector but with flavour.
(struct mach_o_section_name_xlat): New declaration.
(dwarf_section_names_xlat): Ditto.
(text_section_names_xlat): Ditto.
(data_section_names_xlat): Ditto.
(struct mach_o_segment_name_xlat): Ditto.
(segsec_names_xlat): Ditto.
(bfd_mach_o_convert_section_name_to_bfd): New function.
(bfd_mach_o_convert_section_name_to_mach_o): Ditto.
(bfd_mach_o_bfd_copy_private_symbol_data): Make it public.
(bfd_mach_o_bfd_copy_private_section_data): Ditto.
(bfd_mach_o_bfd_copy_private_bfd_data): Ditto.
Accept any input and output flavour. Do not share private data
anymore.
(bfd_mach_o_count_symbols): Add a comment.
(bfd_mach_o_get_symtab_upper_bound): Make it public.
(bfd_mach_o_canonicalize_symtab): Ditto.
(bfd_mach_o_get_symbol_info): Ditto.
(bfd_mach_o_print_symbol): Ditto.
(bfd_mach_o_write_header): Now returns a boolean instead of an int.
Use constants instead of hard-coded values.
(bfd_mach_o_scan_write_section_32): Use constants instead of hard-coded
values.
(bfd_mach_o_scan_write_section_64): Ditto.
(bfd_mach_o_scan_write_segment): Ditto.
Do not copy sections anymore.
(bfd_mach_o_write_contents): Make it public.
Remove dead code. Rewrite typeflag assignment.
(bfd_mach_o_build_commands): New function.
(bfd_mach_o_set_section_contents): Ditto.
(bfd_mach_o_make_empty_symbol): Make it public.
(bfd_mach_o_read_header): Make it static.
Convert to bfd_boolean.
Use constants instead of hard-coded values.
(bfd_mach_o_make_bfd_section): Call
bfd_mach_o_convert_section_name_to_bfd to create name.
(bfd_mach_o_scan_read_section_32): Use constants instead of hard-coded
values.
(bfd_mach_o_scan_read_section_64): Ditto.
(bfd_mach_o_scan_read_segment): Do not create a bfd section for
a segment anymore. Use constants instead of hard-coded values.
(bfd_mach_o_scan_read_command): Fix style.
(bfd_mach_o_scan): Use constants instead of hard-coded values.
Get rid of BFD_IO_FUNCS.
(bfd_mach_o_mkobject_init): Renamed from bfd_mach_o_mkobject.
(bfd_mach_o_header_p): Created from bfd_mach_o_object_p.
(bfd_mach_o_gen_object_p): New function, replaces bfd_mach_o_object_p.
(bfd_mach_o_object_p): Removed.
(bfd_mach_o_gen_core_p): New function, replaces ...
(bfd_mach_o_core_p): ... deleted.
(bfd_mach_o_bfd_print_private_bfd_data): Make it public.
* mach-o-i386.c: New file.
* config.bfd: Use mach_o_i386_vec as targ_defvec for ix86-darwin.
* configure.in (TDEFINES): Add mach_o_i386_vec.
* configure: Regenerated.
* targets.c: Add mach_o_i386_vec.
* mach-o.c: Update copyright years.
(BFD_IO_FUNCS): Remove (was not used).
(bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr, bfd_mach_o_slurp_armap
bfd_mach_o_slurp_extended_name_table,
bfd_mach_o_construct_extended_name_table,
bfd_mach_o_truncate_arname, bfd_mach_o_write_armap,
bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt,
bfd_mach_o_update_armap_timestamp, bfd_mach_o_close_and_cleanup,
bfd_mach_o_bfd_free_cached_info, bfd_mach_o_new_section_hook,
bfd_mach_o_get_section_contents_in_window,
bfd_mach_o_bfd_is_local_label_name,
bfd_mach_o_bfd_is_target_special_symbol,
bfd_mach_o_bfd_is_local_label_name, bfd_mach_o_get_lineno,
bfd_mach_o_find_nearest_line, bfd_mach_o_find_inliner_info,
bfd_mach_o_bfd_make_debug_symbol, bfd_mach_o_read_minisymbols,
bfd_mach_o_minisymbol_to_symbol,
bfd_mach_o_bfd_get_relocated_section_contents,
bfd_mach_o_bfd_relax_section, bfd_mach_o_bfd_link_hash_table_create,
bfd_mach_o_bfd_link_hash_table_free, bfd_mach_o_bfd_link_add_symbols,
bfd_mach_o_bfd_link_just_syms, bfd_mach_o_bfd_final_link,
bfd_mach_o_bfd_link_split_section, bfd_mach_o_set_arch_mach,
bfd_mach_o_bfd_merge_private_bfd_data,
bfd_mach_o_bfd_set_private_flags, bfd_mach_o_get_section_contents,
bfd_mach_o_bfd_gc_sections, bfd_mach_o_bfd_merge_sections,
bfd_mach_o_bfd_is_group_section, bfd_mach_o_bfd_discard_group,
bfd_mach_o_section_already_linked, bfd_mach_o_bfd_define_common_symbol,
bfd_mach_o_bfd_copy_private_header_data,
bfd_mach_o_core_file_matches_executable_p): Move these defines ...
* mach-o-target.c: ... here.
Update copyright years.
2009-06-05 09:19:44 +00:00
|
|
|
|
2009-06-05 Tristan Gingold <gingold@adacore.com>
|
|
|
|
|
|
|
|
|
|
* mach-o.h: Update copyright year.
|
|
|
|
|
(bfd_mach_o_mach_header_magic): New enum.
|
|
|
|
|
(bfd_mach_o_cpu_subtype): Now an enum.
|
|
|
|
|
(BFD_MACH_O_HEADER_SIZE, BFD_MACH_O_HEADER_64_SIZE): New macros.
|
|
|
|
|
(BFD_MACH_O_SECTION_SIZE, BFD_MACH_O_SECTION_64_SIZE): Ditto.
|
|
|
|
|
(BFD_MACH_O_LC_SEGMENT_SIZE, BFD_MACH_O_LC_SEGMENT_64_SIZE): Ditto.
|
|
|
|
|
(bfd_mach_o_load_command): Field type_required is now a boolean.
|
|
|
|
|
Reindent prototypes.
|
|
|
|
|
(bfd_mach_o_object_p, bfd_mach_o_core_p): Remove.
|
|
|
|
|
(bfd_mach_o_bfd_copy_private_symbol_data): Add a prototype.
|
|
|
|
|
(bfd_mach_o_bfd_copy_private_section_data): Ditto.
|
|
|
|
|
(bfd_mach_o_bfd_copy_private_bfd_data): Ditto.
|
|
|
|
|
(bfd_mach_o_get_symtab_upper_bound): Ditto.
|
|
|
|
|
(bfd_mach_o_canonicalize_symtab): Ditto.
|
|
|
|
|
(bfd_mach_o_get_symbol_info): Ditto.
|
|
|
|
|
(bfd_mach_o_print_symbol): Ditto.
|
|
|
|
|
(bfd_mach_o_bfd_print_private_bfd_data): Ditto.
|
|
|
|
|
(bfd_mach_o_make_empty_symbol): Ditto.
|
|
|
|
|
(bfd_mach_o_write_contents): Ditto.
|
|
|
|
|
|
|
|
|
|
* mach-o.c (bfd_mach_o_object_p, bfd_mach_o_core_p,
|
|
|
|
|
bfd_mach_o_mkobject): Defines.
|
|
|
|
|
(bfd_mach_o_valid): Returns FALSE/TRUE instead of 0/1.
|
|
|
|
|
Do not check with target vector but with flavour.
|
|
|
|
|
(struct mach_o_section_name_xlat): New declaration.
|
|
|
|
|
(dwarf_section_names_xlat): Ditto.
|
|
|
|
|
(text_section_names_xlat): Ditto.
|
|
|
|
|
(data_section_names_xlat): Ditto.
|
|
|
|
|
(struct mach_o_segment_name_xlat): Ditto.
|
|
|
|
|
(segsec_names_xlat): Ditto.
|
|
|
|
|
(bfd_mach_o_convert_section_name_to_bfd): New function.
|
|
|
|
|
(bfd_mach_o_convert_section_name_to_mach_o): Ditto.
|
|
|
|
|
(bfd_mach_o_bfd_copy_private_symbol_data): Make it public.
|
|
|
|
|
(bfd_mach_o_bfd_copy_private_section_data): Ditto.
|
|
|
|
|
(bfd_mach_o_bfd_copy_private_bfd_data): Ditto.
|
|
|
|
|
Accept any input and output flavour. Do not share private data
|
|
|
|
|
anymore.
|
|
|
|
|
(bfd_mach_o_count_symbols): Add a comment.
|
|
|
|
|
(bfd_mach_o_get_symtab_upper_bound): Make it public.
|
|
|
|
|
(bfd_mach_o_canonicalize_symtab): Ditto.
|
|
|
|
|
(bfd_mach_o_get_symbol_info): Ditto.
|
|
|
|
|
(bfd_mach_o_print_symbol): Ditto.
|
|
|
|
|
(bfd_mach_o_write_header): Now returns a boolean instead of an int.
|
|
|
|
|
Use constants instead of hard-coded values.
|
|
|
|
|
(bfd_mach_o_scan_write_section_32): Use constants instead of hard-coded
|
|
|
|
|
values.
|
|
|
|
|
(bfd_mach_o_scan_write_section_64): Ditto.
|
|
|
|
|
(bfd_mach_o_scan_write_segment): Ditto.
|
|
|
|
|
Do not copy sections anymore.
|
|
|
|
|
(bfd_mach_o_write_contents): Make it public.
|
|
|
|
|
Remove dead code. Rewrite typeflag assignment.
|
|
|
|
|
(bfd_mach_o_build_commands): New function.
|
|
|
|
|
(bfd_mach_o_set_section_contents): Ditto.
|
|
|
|
|
(bfd_mach_o_make_empty_symbol): Make it public.
|
|
|
|
|
(bfd_mach_o_read_header): Make it static.
|
|
|
|
|
Convert to bfd_boolean.
|
|
|
|
|
Use constants instead of hard-coded values.
|
|
|
|
|
(bfd_mach_o_make_bfd_section): Call
|
|
|
|
|
bfd_mach_o_convert_section_name_to_bfd to create name.
|
|
|
|
|
(bfd_mach_o_scan_read_section_32): Use constants instead of hard-coded
|
|
|
|
|
values.
|
|
|
|
|
(bfd_mach_o_scan_read_section_64): Ditto.
|
|
|
|
|
(bfd_mach_o_scan_read_segment): Do not create a bfd section for
|
|
|
|
|
a segment anymore. Use constants instead of hard-coded values.
|
|
|
|
|
(bfd_mach_o_scan_read_command): Fix style.
|
|
|
|
|
(bfd_mach_o_scan): Use constants instead of hard-coded values.
|
|
|
|
|
Get rid of BFD_IO_FUNCS.
|
|
|
|
|
(bfd_mach_o_mkobject_init): Renamed from bfd_mach_o_mkobject.
|
|
|
|
|
(bfd_mach_o_header_p): Created from bfd_mach_o_object_p.
|
|
|
|
|
(bfd_mach_o_gen_object_p): New function, replaces bfd_mach_o_object_p.
|
|
|
|
|
(bfd_mach_o_object_p): Removed.
|
|
|
|
|
(bfd_mach_o_gen_core_p): New function, replaces ...
|
|
|
|
|
(bfd_mach_o_core_p): ... deleted.
|
|
|
|
|
(bfd_mach_o_bfd_print_private_bfd_data): Make it public.
|
|
|
|
|
|
|
|
|
|
* mach-o-i386.c: New file.
|
|
|
|
|
* config.bfd: Use mach_o_i386_vec as targ_defvec for ix86-darwin.
|
|
|
|
|
* configure.in (TDEFINES): Add mach_o_i386_vec.
|
|
|
|
|
* configure: Regenerated.
|
|
|
|
|
* targets.c: Add mach_o_i386_vec.
|
|
|
|
|
|
|
|
|
|
* mach-o.c: Update copyright years.
|
|
|
|
|
(BFD_IO_FUNCS): Remove (was not used).
|
|
|
|
|
(bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr, bfd_mach_o_slurp_armap
|
|
|
|
|
bfd_mach_o_slurp_extended_name_table,
|
|
|
|
|
bfd_mach_o_construct_extended_name_table,
|
|
|
|
|
bfd_mach_o_truncate_arname, bfd_mach_o_write_armap,
|
|
|
|
|
bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt,
|
|
|
|
|
bfd_mach_o_update_armap_timestamp, bfd_mach_o_close_and_cleanup,
|
|
|
|
|
bfd_mach_o_bfd_free_cached_info, bfd_mach_o_new_section_hook,
|
|
|
|
|
bfd_mach_o_get_section_contents_in_window,
|
|
|
|
|
bfd_mach_o_bfd_is_local_label_name,
|
|
|
|
|
bfd_mach_o_bfd_is_target_special_symbol,
|
|
|
|
|
bfd_mach_o_bfd_is_local_label_name, bfd_mach_o_get_lineno,
|
|
|
|
|
bfd_mach_o_find_nearest_line, bfd_mach_o_find_inliner_info,
|
|
|
|
|
bfd_mach_o_bfd_make_debug_symbol, bfd_mach_o_read_minisymbols,
|
|
|
|
|
bfd_mach_o_minisymbol_to_symbol,
|
|
|
|
|
bfd_mach_o_bfd_get_relocated_section_contents,
|
|
|
|
|
bfd_mach_o_bfd_relax_section, bfd_mach_o_bfd_link_hash_table_create,
|
|
|
|
|
bfd_mach_o_bfd_link_hash_table_free, bfd_mach_o_bfd_link_add_symbols,
|
|
|
|
|
bfd_mach_o_bfd_link_just_syms, bfd_mach_o_bfd_final_link,
|
|
|
|
|
bfd_mach_o_bfd_link_split_section, bfd_mach_o_set_arch_mach,
|
|
|
|
|
bfd_mach_o_bfd_merge_private_bfd_data,
|
|
|
|
|
bfd_mach_o_bfd_set_private_flags, bfd_mach_o_get_section_contents,
|
|
|
|
|
bfd_mach_o_bfd_gc_sections, bfd_mach_o_bfd_merge_sections,
|
|
|
|
|
bfd_mach_o_bfd_is_group_section, bfd_mach_o_bfd_discard_group,
|
|
|
|
|
bfd_mach_o_section_already_linked, bfd_mach_o_bfd_define_common_symbol,
|
|
|
|
|
bfd_mach_o_bfd_copy_private_header_data,
|
|
|
|
|
bfd_mach_o_core_file_matches_executable_p): Move these defines ...
|
|
|
|
|
* mach-o-target.c: ... here.
|
|
|
|
|
Update copyright years.
|
|
|
|
|
|
2009-06-04 06:51:11 +00:00
|
|
|
|
2009-06-04 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* dep-in.sed: Don't use \n in replacement part of s command.
|
|
|
|
|
* Makefile.am (DEP1): LC_ALL for uniq.
|
|
|
|
|
Run "make dep-am".
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2009-06-03 16:58:12 +00:00
|
|
|
|
2009-06-03 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* elf32-i386.c (elf_i386_allocate_dynrelocs): Remove check of
|
|
|
|
|
h->plt.refcount > 0 on STT_GNU_IFUNC symbol.
|
|
|
|
|
* elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
|
|
|
|
|
|
2009-06-03 12:35:18 +00:00
|
|
|
|
2009-06-03 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* elf32-i386.c (elf_i386_allocate_dynrelocs): Allocate
|
|
|
|
|
GOT entry for STT_GNU_IFUNC symbol with pointer equality.
|
|
|
|
|
(elf_i386_relocate_section): Adjust R_386_GOT32 relocation
|
|
|
|
|
against STT_GNU_IFUNC symbols for static executables.
|
|
|
|
|
(elf_i386_finish_dynamic_symbol): Load GOT entry with
|
|
|
|
|
PLT entry for STT_GNU_IFUNC symbol with pointer equality.
|
|
|
|
|
|
|
|
|
|
* elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Allocate
|
|
|
|
|
GOT entry for STT_GNU_IFUNC symbol with pointer equality.
|
|
|
|
|
(elf64_x86_64_finish_dynamic_symbol): Load GOT entry with
|
|
|
|
|
PLT entry for STT_GNU_IFUNC symbol with pointer equality.
|
|
|
|
|
|
2009-06-02 18:51:34 +00:00
|
|
|
|
2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
|
|
|
|
|
|
|
|
|
|
* coff-rs6000.c (xcoff_ppc_relocate_section): Allow undefined
|
|
|
|
|
symbols to be left unimported when linking statically.
|
|
|
|
|
* xcofflink.c (xcoff_link_add_symbols): Ignore global linkage
|
|
|
|
|
code when linking statically.
|
|
|
|
|
|
2009-06-02 17:31:42 +00:00
|
|
|
|
2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* elf32-i386.c (elf_i386_check_relocs): Increment
|
|
|
|
|
got.refcount for R_386_GOT32/R_386_GOTOFF relocations
|
|
|
|
|
against STT_GNU_IFUNC symbol.
|
|
|
|
|
(elf_i386_allocate_dynrelocs): Set got.refcount to 0 if
|
|
|
|
|
local STT_GNU_IFUNC definition is used.
|
|
|
|
|
(elf_i386_relocate_section): Handle got.offset != -1 for
|
|
|
|
|
R_386_GOT32/R_386_GOTOFF relocations against STT_GNU_IFUNC
|
|
|
|
|
symbol.
|
|
|
|
|
|
|
|
|
|
* elf64-x86-64.c (elf64_x86_64_check_relocs): Increment
|
|
|
|
|
got.refcount for R_X86_64_GOTPCREL/R_X86_64_GOTPCREL64
|
|
|
|
|
relocations against STT_GNU_IFUNC symbol.
|
|
|
|
|
(elf64_x86_64_allocate_dynrelocs): Set got.refcount to 0 if
|
|
|
|
|
local STT_GNU_IFUNC definition is used.
|
|
|
|
|
(elf64_x86_64_relocate_section): Handle got.offset != -1
|
|
|
|
|
for R_X86_64_GOTPCREL/R_X86_64_GOTPCREL64 relocations against
|
|
|
|
|
STT_GNU_IFUNC symbol.
|
|
|
|
|
|
bfd/
2009-06-01 H.J. Lu <hongjiu.lu@intel.com>
PR ld/10205
* elf32-i386.c (elf_howto_table): Add R_386_IRELATIVE.
(elf_i386_reloc_type_lookup): Likewise.
(R_386_tls): Removed.
(R_386_irelative): New.
(R_386_vt_offset): Updated.
(elf_i386_rtype_to_howto): Likewise.
(elf_i386_link_hash_table): Add igotplt, iplt and irelplt.
(elf_i386_link_hash_table_create): Initialize igotplt,
iplt and irelplt.
(elf_i386_check_relocs): Handle STT_GNU_IFUNC symbol first.
(elf_i386_adjust_dynamic_symbol): Likewise.
(elf_i386_allocate_dynrelocs): Likewise.
(elf_i386_relocate_section): Likewise.
(elf_i386_size_dynamic_sections): Set up .iplt and .igot.plt
sections.
(elf_i386_finish_dynamic_symbol): When building a static
executable, use .iplt, .igot.plt and .rel.iplt sections for
STT_GNU_IFUNC symbols. Generate R_386_IRELATIVE relocation for
locally defined STT_GNU_IFUNC symbol.
* elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_IRELATIVE.
(x86_64_reloc_map): Likewise.
(R_X86_64_standard): Updated.
(elf64_x86_64_link_hash_table): Add igotplt, iplt and irelplt.
(elf64_x86_64_link_hash_table_create): Initialize igotplt,
iplt and irelplt.
(elf64_x86_64_check_relocs): Handle STT_GNU_IFUNC symbol first.
(elf64_x86_64_adjust_dynamic_symbol): Likewise.
(elf64_x86_64_allocate_dynrelocs): Likewise.
(elf64_x86_64_relocate_section): Likewise.
(elf64_x86_64_size_dynamic_sections): Set up .iplt and .igot.plt
sections.
(elf64_x86_64_finish_dynamic_symbol): When building a static
executable, use .iplt, .igot.plt and .rela.iplt sections for
STT_GNU_IFUNC symbols. Generate R_X86_64_IRELATIVE relocation
for locally defined STT_GNU_IFUNC symbol.
* reloc.c (BFD_RELOC_386_IRELATIVE): New.
(BFD_RELOC_X86_64_IRELATIVE): Likewise.
* bfd-in2.h: Regenerated.
* libbfd.h: Likewise.
include/elf/
2009-06-01 H.J. Lu <hongjiu.lu@intel.com>
PR ld/10205
* i386.h (R_386_IRELATIVE): New.
* x86-64.h (R_X86_64_IRELATIVE): Likewise.
ld/testsuite/
2009-06-01 H.J. Lu <hongjiu.lu@intel.com>
PR ld/10205
* ld-ifunc/ifunc.exp (contains_irelative_reloc): New.
Use it on executable and shared library.
Run *.d.
* ld-ifunc/lib.c: Add a hidden alias, __GI_library_func2, for
library_func2.
(library_func): New.
* ld-ifunc/ifunc-1-x86.d: New.
* ld-ifunc/ifunc-1-x86.s: Likewise.
* ld-ifunc/ifunc-2-i386.d: Likewise.
* ld-ifunc/ifunc-2-i386.s: Likewise.
* ld-ifunc/ifunc-2-x86-64.d: Likewise.
* ld-ifunc/ifunc-2-x86-64.s: Likewise.
* ld-ifunc/ifunc-3a-x86.d: Likewise.
* ld-ifunc/ifunc-3b-x86.d: Likewise.
* ld-ifunc/ifunc-3-x86.s: Likewise.
* ld-ifunc/ifunc-4-x86.d: Likewise.
* ld-ifunc/ifunc-4-x86.s: Likewise.
* ld-ifunc/ifunc-5-i386.d: Likewise.
* ld-ifunc/ifunc-5-i386.s: Likewise.
* ld-ifunc/ifunc-5-x86-64.d: Likewise.
* ld-ifunc/ifunc-5-x86-64.s: Likewise.
2009-06-01 13:11:52 +00:00
|
|
|
|
2009-06-01 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/10205
|
|
|
|
|
* elf32-i386.c (elf_howto_table): Add R_386_IRELATIVE.
|
|
|
|
|
(elf_i386_reloc_type_lookup): Likewise.
|
|
|
|
|
(R_386_tls): Removed.
|
|
|
|
|
(R_386_irelative): New.
|
|
|
|
|
(R_386_vt_offset): Updated.
|
|
|
|
|
(elf_i386_rtype_to_howto): Likewise.
|
|
|
|
|
(elf_i386_link_hash_table): Add igotplt, iplt and irelplt.
|
|
|
|
|
(elf_i386_link_hash_table_create): Initialize igotplt,
|
|
|
|
|
iplt and irelplt.
|
|
|
|
|
(elf_i386_check_relocs): Handle STT_GNU_IFUNC symbol first.
|
|
|
|
|
(elf_i386_adjust_dynamic_symbol): Likewise.
|
|
|
|
|
(elf_i386_allocate_dynrelocs): Likewise.
|
|
|
|
|
(elf_i386_relocate_section): Likewise.
|
|
|
|
|
(elf_i386_size_dynamic_sections): Set up .iplt and .igot.plt
|
|
|
|
|
sections.
|
|
|
|
|
(elf_i386_finish_dynamic_symbol): When building a static
|
|
|
|
|
executable, use .iplt, .igot.plt and .rel.iplt sections for
|
|
|
|
|
STT_GNU_IFUNC symbols. Generate R_386_IRELATIVE relocation for
|
|
|
|
|
locally defined STT_GNU_IFUNC symbol.
|
|
|
|
|
|
|
|
|
|
* elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_IRELATIVE.
|
|
|
|
|
(x86_64_reloc_map): Likewise.
|
|
|
|
|
(R_X86_64_standard): Updated.
|
|
|
|
|
(elf64_x86_64_link_hash_table): Add igotplt, iplt and irelplt.
|
|
|
|
|
(elf64_x86_64_link_hash_table_create): Initialize igotplt,
|
|
|
|
|
iplt and irelplt.
|
|
|
|
|
(elf64_x86_64_check_relocs): Handle STT_GNU_IFUNC symbol first.
|
|
|
|
|
(elf64_x86_64_adjust_dynamic_symbol): Likewise.
|
|
|
|
|
(elf64_x86_64_allocate_dynrelocs): Likewise.
|
|
|
|
|
(elf64_x86_64_relocate_section): Likewise.
|
|
|
|
|
(elf64_x86_64_size_dynamic_sections): Set up .iplt and .igot.plt
|
|
|
|
|
sections.
|
|
|
|
|
(elf64_x86_64_finish_dynamic_symbol): When building a static
|
|
|
|
|
executable, use .iplt, .igot.plt and .rela.iplt sections for
|
|
|
|
|
STT_GNU_IFUNC symbols. Generate R_X86_64_IRELATIVE relocation
|
|
|
|
|
for locally defined STT_GNU_IFUNC symbol.
|
|
|
|
|
|
|
|
|
|
* reloc.c (BFD_RELOC_386_IRELATIVE): New.
|
|
|
|
|
(BFD_RELOC_X86_64_IRELATIVE): Likewise.
|
|
|
|
|
|
|
|
|
|
* bfd-in2.h: Regenerated.
|
|
|
|
|
* libbfd.h: Likewise.
|
|
|
|
|
|
2009-06-01 12:53:00 +00:00
|
|
|
|
2009-06-01 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* elf-bfd.h (struct bfd_elf_section_data): Remove indirect_relocs.
|
|
|
|
|
(_bfd_elf_make_ifunc_reloc_section): Removed.
|
|
|
|
|
(_bfd_elf_is_ifunc_symbol): Likewise.
|
|
|
|
|
(_bfd_elf_create_static_ifunc_sections): New.
|
|
|
|
|
|
|
|
|
|
* elflink.c (_bfd_elf_adjust_dynamic_symbol): Move STT_GNU_IFUNC
|
|
|
|
|
symbol check to ...
|
|
|
|
|
(elf_link_add_object_symbols): Here.
|
|
|
|
|
(_bfd_elf_link_hash_hide_symbol): Don't clean plt on
|
|
|
|
|
STT_GNU_IFUNC symbol.
|
|
|
|
|
(elf_link_output_extsym): Call elf_backend_finish_dynamic_symbol
|
|
|
|
|
if a STT_GNU_IFUNC symbol is referenced in a non-shared object.
|
|
|
|
|
(IFUNC_INFIX): Removed.
|
|
|
|
|
(get_ifunc_reloc_section_name): Likewise.
|
|
|
|
|
(_bfd_elf_make_ifunc_reloc_section): Likewise.
|
|
|
|
|
(_bfd_elf_is_ifunc_symbol): Likewise.
|
|
|
|
|
(_bfd_elf_create_static_ifunc_sections): New.
|
|
|
|
|
|
2009-05-29 18:30:30 +00:00
|
|
|
|
2009-05-29 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* elf32-i386.c (link_hash_newfunc): Add elf_i386_ prefix.
|
|
|
|
|
(create_got_section): Likewise.
|
|
|
|
|
(allocate_dynrelocs): Likewise.
|
|
|
|
|
(readonly_dynrelocs): Likewise.
|
|
|
|
|
(set_tls_module_base): Likewise.
|
|
|
|
|
(dtpoff_base): Likewise.
|
|
|
|
|
(tpoff): Likewise.
|
|
|
|
|
(elf_i386_link_hash_table_create): Updated.
|
|
|
|
|
(elf_i386_create_dynamic_sections): Likewise.
|
|
|
|
|
(elf_i386_check_relocs): Likewise.
|
|
|
|
|
(elf_i386_size_dynamic_sections): Likewise.
|
|
|
|
|
(elf_i386_relocate_section): Likewise.
|
|
|
|
|
|
|
|
|
|
* elf64-x86-64.c (link_hash_newfunc): Add elf64_x86_64_ prefix.
|
|
|
|
|
(create_got_section): Likewise.
|
|
|
|
|
(allocate_dynrelocs): Likewise.
|
|
|
|
|
(readonly_dynrelocs): Likewise.
|
|
|
|
|
(set_tls_module_base): Likewise.
|
|
|
|
|
(dtpoff_base): Likewise.
|
|
|
|
|
(tpoff): Likewise.
|
|
|
|
|
(elf64_x86_64_link_hash_table_create): Updated.
|
|
|
|
|
(elf64_x86_64_create_dynamic_sections): Likewise.
|
|
|
|
|
(elf64_x86_64_check_relocs): Likewise.
|
|
|
|
|
(elf64_x86_64_size_dynamic_sections): Likewise.
|
|
|
|
|
(elf64_x86_64_relocate_section): Likewise.
|
|
|
|
|
|
2009-05-28 11:30:49 +00:00
|
|
|
|
2009-05-28 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* targets.c (_bfd_target_vector): Only include plugin target in
|
|
|
|
|
all-targets build if BFD_SUPPORTS_PLUGINS is non-zero.
|
|
|
|
|
|
2009-05-28 10:47:44 +00:00
|
|
|
|
2009-05-28 Ulrich Weigand <uweigand@de.ibm.com>
|
|
|
|
|
|
|
|
|
|
* elf32-spu.c (struct call_info): New member broken_cycle.
|
|
|
|
|
(remove_cycle): Instead of physically removing call_info structures
|
|
|
|
|
to break call graph cycles, mark them using the broken_cycle flag.
|
|
|
|
|
(mark_overlay_section): Respect broken_cycle flag.
|
|
|
|
|
(unmark_overlay_section): Likewise.
|
|
|
|
|
(collect_lib_sections): Likewise.
|
|
|
|
|
(collect_overlays): Likewise.
|
|
|
|
|
(sum_stack): Likewise.
|
|
|
|
|
|
2009-05-28 10:42:47 +00:00
|
|
|
|
2009-05-28 Ulrich Weigand <uweigand@de.ibm.com>
|
|
|
|
|
|
|
|
|
|
* elf32-spu.c (insert_callee): Accumulate incoming callee->count.
|
|
|
|
|
(mark_functions_via_relocs): Initialize callee->count to 1.
|
|
|
|
|
(pasted_function): Likewise.
|
|
|
|
|
(spu_elf_auto_overlay): Honor call counts when determining number
|
|
|
|
|
of stubs required in software i-cache mode.
|
|
|
|
|
|
2009-05-28 11:30:49 +00:00
|
|
|
|
2009-05-27 Rafael Avila de Espindola <espindola@google.com>
|
|
|
|
|
|
|
|
|
|
* plugin.c (program_name): Remove.
|
|
|
|
|
(plugin_program_name): New.
|
|
|
|
|
(bfd_plugin_set_program_name): New.
|
|
|
|
|
(try_load_plugin): Use plugin_program_name.
|
|
|
|
|
* plugin.h (bfd_plugin_set_program_name): New.
|
|
|
|
|
|
|
|
|
|
2009-05-27 Rafael Avila de Espindola <espindola@google.com>
|
2009-05-27 16:29:55 +00:00
|
|
|
|
|
|
|
|
|
* aclocal.m4: Include ../config/plugins.m4.
|
|
|
|
|
* configure.in: Use AC_PLUGINS.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* doc/Makefile.in: Regenerate.
|
|
|
|
|
|
2009-05-27 13:31:24 +00:00
|
|
|
|
2009-05-27 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* elf32-ppc.c (ppc_elf_relax_section): Work with a partial
|
|
|
|
|
link.
|
|
|
|
|
* bout.c (b_out_bfd_relax_section): Reject relocatable links.
|
|
|
|
|
* elf32-m10300.c (mn10300_elf_relax_section): Likewise.
|
|
|
|
|
* elf32-avr.c (elf32_avr_relax_section): Likewise.
|
|
|
|
|
* elf32-frv.c (elf32_avr_relax_section): Likewise.
|
|
|
|
|
* elf32-xtensa.c (elf_xtensa_relax_section): Likewise.
|
|
|
|
|
* elf64-mmix.c (mmix_elf_relax_section): Likewise.
|
|
|
|
|
* elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
|
|
|
|
|
* elfxx-sparc.c (_bfd_sparc_elf_relax_section): Likewise.
|
|
|
|
|
* reloc.c (bfd_generic_relax_section): Likewise.
|
|
|
|
|
* reloc16.c (bfd_coff_reloc16_relax_section): Likewise.
|
|
|
|
|
* vms.c (vms_bfd_relax_section): Likewise.
|
|
|
|
|
|
2009-05-26 22:18:22 +00:00
|
|
|
|
2009-05-26 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* elf-bfd.h (_bfd_elf_is_ifunc_symbol): New.
|
|
|
|
|
|
|
|
|
|
* elf32-i386.c (is_indirect_symbol): Renamed to ...
|
|
|
|
|
* elflink.c (_bfd_elf_is_ifunc_symbol): This.
|
|
|
|
|
|
|
|
|
|
* elf32-i386.c (allocate_dynrelocs): Updated.
|
|
|
|
|
(elf_i386_relocate_section): Likewise.
|
|
|
|
|
* elf64-x86-64.c (allocate_dynrelocs): Likewise.
|
|
|
|
|
(elf64_x86_64_relocate_section): Likewise.
|
|
|
|
|
|
|
|
|
|
* elf64-x86-64.c (is_indirect_symbol): Removed.
|
|
|
|
|
|
2009-05-26 16:49:41 +00:00
|
|
|
|
2009-05-26 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* po/id.po: Updated Indonesian translation.
|
|
|
|
|
|
2009-05-26 14:12:03 +00:00
|
|
|
|
2009-05-26 Rafael Avila de Espindola <espindola@google.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am: Run "make dep-am".
|
|
|
|
|
(AM_CPPFLAGS): New.
|
|
|
|
|
(LIBDL): New.
|
|
|
|
|
(ALL_MACHINES): Add cpu-plugin.lo.
|
|
|
|
|
(ALL_MACHINES_CFILES): Add cpu-plugin.c.
|
|
|
|
|
(BFD32_BACKENDS): Add plugin.lo.
|
|
|
|
|
(BFD32_BACKENDS_CFILES): Add plugin.c.
|
|
|
|
|
(libbfd_la_LIBADD): Add LIBDL
|
|
|
|
|
* archures.c (bfd_architecture): Add bfd_arch_plugin.
|
|
|
|
|
(bfd_plugin_arch): Declare.
|
|
|
|
|
* bfd-in.h (BFD_SUPPORTS_PLUGINS): New.
|
|
|
|
|
* bfd.c (bfd): Add plugin_data.
|
|
|
|
|
* config.bfd: Handle the plugin target.
|
|
|
|
|
* configure.in: Check for --enable-plugins.
|
|
|
|
|
(LT_INIT): Use the dlopen option.
|
|
|
|
|
* cpu-plugin.c: New.
|
|
|
|
|
* plugin.c: New.
|
|
|
|
|
* plugin.h: New.
|
|
|
|
|
* targets.c (plugin_vec): Declare.
|
|
|
|
|
(_bfd_target_vector): Add plugin_vec.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* bfd-in2.h: Regenerate.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
|
2009-05-26 03:19:28 +00:00
|
|
|
|
2009-05-26 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* dep-in.sed: Don't modify .o to .lo here. Output one filename
|
|
|
|
|
per line with all lines having continuation backslash. Prefix
|
|
|
|
|
first line with "A", following lines with "B".
|
|
|
|
|
* Makefile.am (DEP): Don't use dep.sed here.
|
|
|
|
|
(DEP1): Run $MKDEP on single files, modify .o to .lo here. Use
|
|
|
|
|
dep.sed here on dependencies, sort and uniq.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2009-05-25 12:41:46 +00:00
|
|
|
|
2009-05-25 Tristan Gingold <gingold@adacore.com>
|
|
|
|
|
|
|
|
|
|
* makefile.vms: Add verilog.obj to object list OBJS.
|
|
|
|
|
|
2009-05-24 11:47:27 +00:00
|
|
|
|
2009-05-24 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* bfdio.c (bfd_seek): Formatting. Ensure newly allocated memory
|
|
|
|
|
for BFD_IN_MEMORY is cleared.
|
|
|
|
|
(bfd_bwrite): Zero excess memory allocated.
|
|
|
|
|
|
ld/
* emultempl/armelf.em (fix_cortex_a8): New.
(arm_elf_before_allocation): Call bfd_elf32_arm_set_cortex_a8_fix.
(arm_elf_create_output_section_statements): Add fix_cortex_a8 to
bfd_elf32_arm_set_target_relocs.
(OPTION_FIX_CORTEX_A8, OPTION_NO_FIX_CORTEX_A8): New.
(PARSE_AND_LIST_LONGOPTS): Add [no-]fix-cortex-a8 options.
(PARSE_AND_LIST_OPTIONS): Add [no-]fix-cortex-a8 options.
(PARSE_AND_LIST_ARGS_CASES): Handle OPTION_[NO_]FIX_CORTEX_A8.
* ld.texinfo (--[no-]fix-cortex-a8): Briefly document new options.
bfd/
* elf32-arm.c (THUMB16_BCOND_INSN, THUMB32_INSN, THUMB32_B_INSN):
New macros.
(elf32_arm_stub_a8_veneer_b_cond, elf32_arm_stub_a8_veneer_b)
(elf32_arm_stub_a8_veneer_blx): New stub sequences.
(elf32_arm_stub_type): Add arm_stub_a8_veneer_b_cond,
arm_stub_a8_veneer_b and arm_stub_a8_veneer_blx.
(elf32_arm_stub_hash_entry): Add target_addend, orig_insn fields.
(a8_erratum_fix, a8_erratum_reloc): New structs.
(elf32_arm_link_hash_table): Add a8_erratum_fixes,
num_a8_erratum_fixes, fix_cortex_a8 fields.
(elf32_arm_link_hash_table_create): Zero fix_cortex_a8.
(elf32_arm_add_stub): Split into two parts, creating...
(elf32_arm_create_or_find_stub_sec): New function.
(elf32_arm_final_link_relocate): Add forward declaration.
(arm_build_one_stub): Add support for THUMB32_TYPE, Thumb-2
relocations, multiple relocations per stub.
(find_stub_size_and_template): New (using parts of
arm_size_one_stub).
(arm_size_one_stub): Use find_stub_size_and_template.
(a8_reloc_compare): New.
(find_thumb_glue): Add forward declaration.
(cortex_a8_erratum_scan): New.
(elf32_arm_size_stubs): Add Cortex-A8 erratum workaround support.
(bfd_elf32_arm_set_cortex_a8_fix): New.
(bfd_elf32_arm_set_target_relocs): Add fix_cortex_a8 argument.
(arm_map_one_stub): Add THUMB32_TYPE support.
(a8_branch_to_stub_data): New.
(make_branch_to_a8_stub): New.
(elf32_arm_write_section): Add Cortex-A8 erratum workaround support.
* bfd-in.h (bfd_elf32_arm_set_cortex_a8_fix): New.
(bfd_elf32_arm_set_target_relocs): Add argument for controlling
Cortex-A8 erratum workaround.
* bfd-in2.h: Regenerate.
ld/testsuite/
* ld-arm/cortex-a8-arm-target.s: New.
* ld-arm/cortex-a8-thumb-target.s: New.
* ld-arm/cortex-a8-fix-b-rel.s: New.
* ld-arm/cortex-a8-fix-b-rel-arm.d: New.
* ld-arm/cortex-a8-fix-b-rel-thumb.d: New.
* ld-arm/cortex-a8-fix-b.s: New.
* ld-arm/cortex-a8-fix-b.d: New.
* ld-arm/cortex-a8-fix-bl-rel.s: New.
* ld-arm/cortex-a8-fix-bl-rel-arm.d: New.
* ld-arm/cortex-a8-fix-bl-rel-thumb.d: New.
* ld-arm/cortex-a8-fix-bl.s: New.
* ld-arm/cortex-a8-fix-bl.d: New.
* ld-arm/cortex-a8-fix-bcc-rel.s: New.
* ld-arm/cortex-a8-fix-bcc-rel-thumb.d: New.
* ld-arm/cortex-a8-fix-bcc.s: New.
* ld-arm/cortex-a8-fix-bcc.d: New.
* ld-arm/cortex-a8-fix-blx-rel.s: New.
* ld-arm/cortex-a8-fix-blx-rel-arm.d: New.
* ld-arm/cortex-a8-fix-blx-rel-thumb.d: New.
* ld-arm/cortex-a8-fix-blx.s: New.
* ld-arm/cortex-a8-fix-blx.d: New.
* ld-arm/arm-elf.exp: Add new tests.
2009-05-22 11:58:45 +00:00
|
|
|
|
2009-05-22 Julian Brown <julian@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (THUMB16_BCOND_INSN, THUMB32_INSN, THUMB32_B_INSN): New
|
|
|
|
|
macros.
|
|
|
|
|
(elf32_arm_stub_a8_veneer_b_cond, elf32_arm_stub_a8_veneer_b)
|
|
|
|
|
(elf32_arm_stub_a8_veneer_blx): New stub sequences.
|
|
|
|
|
(elf32_arm_stub_type): Add arm_stub_a8_veneer_b_cond,
|
|
|
|
|
arm_stub_a8_veneer_b and arm_stub_a8_veneer_blx.
|
|
|
|
|
(elf32_arm_stub_hash_entry): Add target_addend, orig_insn fields.
|
|
|
|
|
(a8_erratum_fix, a8_erratum_reloc): New structs.
|
|
|
|
|
(elf32_arm_link_hash_table): Add a8_erratum_fixes,
|
|
|
|
|
num_a8_erratum_fixes, fix_cortex_a8 fields.
|
|
|
|
|
(elf32_arm_link_hash_table_create): Zero fix_cortex_a8.
|
|
|
|
|
(elf32_arm_add_stub): Split into two parts, creating...
|
|
|
|
|
(elf32_arm_create_or_find_stub_sec): New function.
|
|
|
|
|
(elf32_arm_final_link_relocate): Add forward declaration.
|
|
|
|
|
(arm_build_one_stub): Add support for THUMB32_TYPE, Thumb-2
|
|
|
|
|
relocations, multiple relocations per stub.
|
|
|
|
|
(find_stub_size_and_template): New (using parts of arm_size_one_stub).
|
|
|
|
|
(arm_size_one_stub): Use find_stub_size_and_template.
|
|
|
|
|
(a8_reloc_compare): New.
|
|
|
|
|
(find_thumb_glue): Add forward declaration.
|
|
|
|
|
(cortex_a8_erratum_scan): New.
|
|
|
|
|
(elf32_arm_size_stubs): Add Cortex-A8 erratum workaround support.
|
|
|
|
|
(bfd_elf32_arm_set_cortex_a8_fix): New.
|
|
|
|
|
(bfd_elf32_arm_set_target_relocs): Add fix_cortex_a8 argument.
|
|
|
|
|
(arm_map_one_stub): Add THUMB32_TYPE support.
|
|
|
|
|
(a8_branch_to_stub_data): New.
|
|
|
|
|
(make_branch_to_a8_stub): New.
|
|
|
|
|
(elf32_arm_write_section): Add Cortex-A8 erratum workaround support.
|
|
|
|
|
* bfd-in.h (bfd_elf32_arm_set_cortex_a8_fix): New.
|
|
|
|
|
(bfd_elf32_arm_set_target_relocs): Add argument for controlling
|
|
|
|
|
Cortex-A8 erratum workaround.
|
|
|
|
|
* bfd-in2.h: Regenerate.
|
|
|
|
|
|
2009-05-22 09:33:16 +00:00
|
|
|
|
2009-05-22 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* Makefile.am: Run "make dep-am".
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* po/SRC-POTFILES.in: Regenerate.
|
|
|
|
|
|
2009-05-21 14:32:29 +00:00
|
|
|
|
2009-05-21 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* elflink.c (elf_link_input_bfd): Correct *pindex change in last
|
|
|
|
|
commit.
|
|
|
|
|
|
2009-05-21 14:15:50 +00:00
|
|
|
|
2009-05-21 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* elf-bfd.h (struct elf_backend_data
|
|
|
|
|
<elf_backend_link_output_symbol_hook>): Return an int.
|
|
|
|
|
* elf64-ppc.c (ppc64_elf_output_symbol_hook): Return 2 to drop
|
|
|
|
|
symbols on deleted .opd entries.
|
|
|
|
|
* elflink.c (elf_link_output_sym): Return without outputting sym
|
|
|
|
|
if output_symbol_hook returns 2.
|
|
|
|
|
(elf_link_output_extsym): Don't assign h->indx when symbol discarded.
|
|
|
|
|
Abort if we must not discard sym.
|
|
|
|
|
(elf_link_input_bfd): Similarly, don't set finfo->indices for
|
|
|
|
|
local syms.
|
|
|
|
|
(bfd_elf_final_link): Adjust elf_link_output_sym calls.
|
|
|
|
|
* elf-vxworks.c (elf_vxworks_link_output_symbol_hook): Adjust for
|
|
|
|
|
elf_backend_link_output_symbol_hook return type change.
|
|
|
|
|
* elf32-arm.c (output_arch_syminfo): Likewise.
|
|
|
|
|
(elf32_arm_output_map_sym, elf32_arm_output_stub_sym): Likewise.
|
|
|
|
|
(elf32_arm_output_arch_local_syms): Likewise.
|
|
|
|
|
* elf32-cr16c.c (elf32_cr16c_link_output_symbol_hook): Likewise.
|
|
|
|
|
* elf32-score.c (s3_bfd_score_elf_link_output_symbol_hook): Likewise.
|
|
|
|
|
(bfd_score_elf_link_output_symbol_hook): Likewise.
|
|
|
|
|
* elf32-score.h (s7_bfd_score_elf_link_output_symbol_hook): Likewise.
|
|
|
|
|
* elf32-score7.c (s7_bfd_score_elf_link_output_symbol_hook): Likewise.
|
|
|
|
|
* elf32-sh64.c (sh64_elf_link_output_symbol_hook): Likewise.
|
|
|
|
|
* elf32-spu.c (spu_elf_output_symbol_hook): Likewise.
|
|
|
|
|
* elf32-v850.c (v850_elf_link_output_symbol_hook): Likewise.
|
|
|
|
|
* elf64-hppa.c (elf64_hppa_link_output_symbol_hook): Likewise.
|
|
|
|
|
* elf64-mmix.c (mmix_elf_link_output_symbol_hook): Likewise.
|
|
|
|
|
* elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Likewise.
|
|
|
|
|
* elf64-sparc.c (elf64_sparc_output_arch_syms): Likewise.
|
|
|
|
|
* elfxx-mips.c (_bfd_mips_elf_link_output_symbol_hook): Likewise.
|
|
|
|
|
* elfxx-mips.h (_bfd_mips_elf_link_output_symbol_hook): Likewise.
|
|
|
|
|
|
2009-05-21 13:49:11 +00:00
|
|
|
|
2009-05-21 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't segfault on
|
|
|
|
|
out of range .opd symbols.
|
|
|
|
|
|
2009-05-21 12:52:37 +00:00
|
|
|
|
2009-05-21 Dave Korn <dave.korn.cygwin@gmail.com>
|
|
|
|
|
|
|
|
|
|
* coffgen.c (coff_print_symbol): Use bfd_fprintf_vma, not
|
|
|
|
|
fprintf_vma directly.
|
|
|
|
|
* peXXigen.c (pe_print_edata): Likewise.
|
|
|
|
|
(pe_print_pdata): Likewise.
|
|
|
|
|
(_bfd_XX_print_ce_compressed_pdata): Likewise.
|
|
|
|
|
(_bfd_XX_print_private_bfd_data_common): Likewise.
|
|
|
|
|
|
2009-05-19 16:08:08 +00:00
|
|
|
|
2009-05-19 Dave Korn <dave.korn.cygwin@gmail.com>
|
|
|
|
|
|
|
|
|
|
* cofflink.c (process_embedded_commands): Ignore "-aligncomm".
|
|
|
|
|
|
2009-05-15 00:08:12 +00:00
|
|
|
|
2009-05-15 Andrew Stubbs <ams@codesourcery.com>
|
2009-05-20 16:03:42 +00:00
|
|
|
|
Paul Brook <paul@codesourcery.com>
|
2009-05-15 00:08:12 +00:00
|
|
|
|
|
|
|
|
|
* elf32-arm.c (elf32_arm_fix_exidx_coverage): Don't attempt to
|
|
|
|
|
fix discarded sections.
|
|
|
|
|
|
2009-05-14 17:56:56 +00:00
|
|
|
|
2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
|
|
|
|
|
|
|
|
|
|
* elf32-spu.c (mark_overlay_section): Move .init and .fini
|
|
|
|
|
sections into the software icache.
|
|
|
|
|
|
2009-05-14 16:56:09 +00:00
|
|
|
|
2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
|
|
|
|
|
|
|
|
|
|
* elf32-spu.c (build_stub): Always build "compact" sofware
|
|
|
|
|
i-cache stubs.
|
|
|
|
|
|
2009-05-14 16:04:02 +00:00
|
|
|
|
2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
|
|
|
|
|
|
|
|
|
|
* elf32-spu.c (struct spu_link_hash_table): Add fromelem_size_log2.
|
|
|
|
|
(spu_elf_setup): Initialize it.
|
|
|
|
|
(spu_elf_size_stubs): Move .ovtab into .bss for software i-cache.
|
|
|
|
|
Update to new-sytle cache manager data structures.
|
|
|
|
|
(spu_elf_build_stubs): Generate new-style cache manager data
|
|
|
|
|
structures and symbols.
|
|
|
|
|
(spu_elf_auto_overlay): Update size computation.
|
|
|
|
|
|
2009-05-14 15:26:36 +00:00
|
|
|
|
2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
|
|
|
|
|
|
|
|
|
|
* elf32-spu.c (spu_elf_modify_segment_map): Move all PF_OVERLAY
|
|
|
|
|
segments first amongst the program headers.
|
|
|
|
|
|
2009-05-14 14:42:36 +00:00
|
|
|
|
2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
|
|
|
|
|
|
|
|
|
|
* elf32-spu.c (spu_elf_relocate_section): Only encode overlay index
|
|
|
|
|
into addresses for relocation types that look at high bits. Remove
|
|
|
|
|
special handling of relocation overflow warnings.
|
|
|
|
|
|
2009-05-14 14:40:57 +00:00
|
|
|
|
2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
|
|
|
|
|
|
|
|
|
|
* elf32-spu.c (mark_functions_via_relocs): Handle cycles in the
|
|
|
|
|
control flow graph between fragments of a function.
|
|
|
|
|
|
2009-05-14 14:39:04 +00:00
|
|
|
|
2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
|
|
|
|
|
|
|
|
|
|
* elf32-spu.c (spu_elf_size_stubs): Even in software i-cache mode,
|
|
|
|
|
generate only a 16-byte .toe section.
|
|
|
|
|
(spu_elf_build_stubs, spu_elf_auto_overlay): Likewise.
|
|
|
|
|
|
2009-05-14 04:30:03 +00:00
|
|
|
|
2009-05-14 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* elf32-spu.c (spu_elf_size_stubs): Split out section placement to..
|
|
|
|
|
(spu_elf_place_overlay_data): ..here. New function.
|
|
|
|
|
* elf32-spu.h (spu_elf_place_overlay_data): Declare.
|
|
|
|
|
|
2009-05-13 16:46:42 +00:00
|
|
|
|
2009-05-13 Andrew Jenner <andrew@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c: Move sysdep.h to start of file.
|
|
|
|
|
|
2009-05-11 09:40:52 +00:00
|
|
|
|
2009-05-11 Ulrich Weigand <uweigand@de.ibm.com>
|
|
|
|
|
|
|
|
|
|
* elf32-spu.c (spu_elf_find_overlays): Don't use .ovl.init lma as
|
|
|
|
|
start of overlays.
|
|
|
|
|
(spu_elf_build_stubs): Don't define __icache_tagbase. Define
|
|
|
|
|
__icache_tag_array and __icache_tag_array_size.
|
|
|
|
|
|
2009-05-10 23:33:50 +00:00
|
|
|
|
2009-05-11 Masaki Muranaka <monaka@monami-software.com>
|
|
|
|
|
|
|
|
|
|
* elf32-bfin.c (bfin_bfd_reloc_type_lookup): Remove unnecessary
|
|
|
|
|
ATTRIBUTE_UNUSED.
|
|
|
|
|
(bfinfdpic_link_omit_section_dynsym): Likewise.
|
|
|
|
|
(elf32_bfinfdpic_finish_dynamic_sections): Likewise.
|
|
|
|
|
|
2009-05-05 14:18:30 +00:00
|
|
|
|
2009-05-05 Paul Brook <paul@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* bfd-in.h (elf32_arm_fix_exidx_coverage): Add prototype.
|
|
|
|
|
* bfd-in2.h: Regenerate.
|
|
|
|
|
* elf32-arm.c (arm_unwind_edit_type, arm_unwind_table_edit): Define.
|
|
|
|
|
(_arm_elf_section_data): Add text and exidx fields.
|
|
|
|
|
(add_unwind_table_edit, get_arm_elf_section_data, adjust_exidx_size,
|
|
|
|
|
insert_cantunwind_after, elf32_arm_fix_exidx_coverage, offset_prel31,
|
|
|
|
|
copy_exidx_entry): New functions.
|
|
|
|
|
(elf32_arm_write_section): Fixup .ARM.exidx contents.
|
|
|
|
|
|
2009-05-05 13:16:56 +00:00
|
|
|
|
2009-05-05 Christophe lyon <christophe.lyon@st.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (DEF_STUBS): New helper define.
|
|
|
|
|
(DEF_STUB): Likewise.
|
|
|
|
|
(stub_def): New type.
|
|
|
|
|
(stub_definitions): New array, containing stub template pointers
|
|
|
|
|
and sizes.
|
|
|
|
|
(arm_size_one_stub): Make use of stub_definitions.
|
|
|
|
|
|
2009-05-04 12:09:30 +00:00
|
|
|
|
2009-05-04 Dave Korn <dave.korn.cygwin@gmail.com>
|
|
|
|
|
|
|
|
|
|
* elflink.c (find_version_for_sym): Remove from here, ...
|
|
|
|
|
* linker.c (bfd_find_version_for_sym): ... rename, replace
|
|
|
|
|
here, make public and update all callers.
|
|
|
|
|
* bfd-in2.h: Regenerate.
|
|
|
|
|
|
2009-04-30 15:47:13 +00:00
|
|
|
|
2009-04-30 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* elf-bfd.h (struct bfd_elf_section_data): Add indirect_relocs
|
|
|
|
|
section pointer.
|
|
|
|
|
(struct elf_obj_data): Add has_ifunc_symbols boolean.
|
|
|
|
|
* elf.c (swap_out_syms): Convert BSF_GNU_INDIRECT_FUNCTION flags
|
|
|
|
|
into a STT_GNU_IFUNC symbol type.
|
|
|
|
|
(_bfd_elf_is_function_type): Accept STT_GNU_IFUNC as a function
|
|
|
|
|
type.
|
|
|
|
|
(_bfd_elf_set_osabi): Set the osasbi field to ELFOSABI_LINUX if
|
|
|
|
|
the binary contains ifunc symbols.
|
|
|
|
|
* elfcode.h (elf_slurp_symbol_table): Translate the STT_GNU_IFUNC
|
|
|
|
|
symbol type into a BSF_GNU_INDIRECT_FUNCTION flag.
|
|
|
|
|
* elf32-i386.c (is_indirect_function): New function.
|
|
|
|
|
(elf_i386_check_relocs): Create an ifunc output section.
|
|
|
|
|
(allocate_dynrelocs): Create dynamic relocs in the ifunc output
|
|
|
|
|
section if necessary.
|
|
|
|
|
(elf_i386_relocate_section): Emit a reloc against an ifunc symbol
|
|
|
|
|
if necessary.
|
|
|
|
|
(elf_i386_add_symbol_hook): New function. Set the
|
|
|
|
|
has_ifunc_symbols field of the elf_obj_data structure if an ifunc
|
|
|
|
|
symbol is encountered.
|
|
|
|
|
(elf_backend_post_process_headers): Define.
|
|
|
|
|
(elf_backend_add_symbol_hook): Define.
|
|
|
|
|
(elf_i386_post_process_headers): Rename to
|
|
|
|
|
elf_i388_fbsd_post_process_headers.
|
|
|
|
|
* elf64-x86_64.c (IS_X86_64_PCREL_TYPE): New macro.
|
|
|
|
|
(is_indirect_function): New function.
|
|
|
|
|
(elf64_x86_64_check_relocs): Create an ifunc output section.
|
|
|
|
|
(allocate_dynrelocs): Create dynamic relocs in the ifunc output
|
|
|
|
|
section if necessary.
|
|
|
|
|
(elf64_x86_64_relocate_section): Emit a reloc against an ifunc
|
|
|
|
|
symbol if necessary.
|
|
|
|
|
(elf_i386_add_symbol_hook): Set the has_ifunc_symbols field of the
|
|
|
|
|
elf_obj_data structure if an ifunc symbol is encountered.
|
|
|
|
|
(elf_backend_post_process_headers): Define.
|
|
|
|
|
* elflink.c (_bfd_elf_adjust_dynamic_symbol): Always create a PLT
|
|
|
|
|
if we have ifunc symbols to handle.
|
|
|
|
|
(get_ifunc_reloc_section_name): New function. Computes the name
|
|
|
|
|
for an ifunc section.
|
|
|
|
|
(_bfd_elf_make_ifunc_reloc_section): New function. Creates a
|
|
|
|
|
section to hold ifunc relocs.
|
|
|
|
|
* syms.c (BSF_GNU_INDIRECT_FUNCTION): Define.
|
|
|
|
|
(bfd_print_symbol_vandf): Handle ifunc symbols.
|
|
|
|
|
(bfd_decode_symclass): Likewise.
|
|
|
|
|
* bfd-in2.h: Regenerate.
|
|
|
|
|
|
2009-04-30 00:01:11 +00:00
|
|
|
|
2009-04-30 Joseph Myers <joseph@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (elf32_arm_check_relocs): Give errors for absolute
|
|
|
|
|
MOVW and MOVT relocations in a shared library link.
|
|
|
|
|
|
2009-04-27 14:27:36 +00:00
|
|
|
|
2009-04-27 Anthony Green <green@moxielogic.com>
|
|
|
|
|
|
|
|
|
|
* verilog.c: New file.
|
|
|
|
|
* Makefile.am (BFD32_LIBS): Add verilog.c.
|
|
|
|
|
(BFD32_LIBS_CFILES): Add verilog.c.
|
|
|
|
|
(verilog.lo): New build rule.
|
|
|
|
|
* Makefile.in: Rebuilt.
|
|
|
|
|
* targets.c: Add verilog support.
|
|
|
|
|
* bfd.c (tdata union): Add Verilog private data field.
|
|
|
|
|
* bfd-in2.h: Regenerate.
|
|
|
|
|
|
2009-04-27 13:59:43 +00:00
|
|
|
|
2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Don't
|
|
|
|
|
copy pe_opthdr.
|
|
|
|
|
|
2009-04-23 13:36:43 +00:00
|
|
|
|
2009-04-23 Matthias Klose <doko@ubuntu.com>
|
|
|
|
|
|
2009-04-24 20:28:22 +00:00
|
|
|
|
* peXXigen.c (_bfd_XXi_swap_sym_in): Initialize `name'.
|
2009-04-23 13:36:43 +00:00
|
|
|
|
|
2009-04-22 14:01:31 +00:00
|
|
|
|
2009-04-22 Christophe Lyon <christophe.lyon@st.com>
|
|
|
|
|
|
|
|
|
|
PR9743
|
|
|
|
|
* elf32-arm.c (arm_type_of_stub): Handle R_ARM_THM_JUMP24,
|
|
|
|
|
R_ARM_JUMP24 and R_ARM_PLT32 relocations.
|
|
|
|
|
(elf32_arm_size_stubs): Likewise.
|
|
|
|
|
(record_thumb_to_arm_glue): Deleted unused function.
|
|
|
|
|
(bfd_elf32_arm_process_before_allocation): No longer handle
|
|
|
|
|
R_ARM_THM_JUMP24, R_ARM_JUMP24 and R_ARM_PLT32 relocations here.
|
|
|
|
|
(elf32_arm_final_link_relocate): Handle R_ARM_THM_JUMP24,
|
|
|
|
|
R_ARM_JUMP24 and R_ARM_PLT32 relocations.
|
|
|
|
|
|
2009-04-21 22:05:04 +00:00
|
|
|
|
2009-04-21 Daniel Jacobowitz <dan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (INTERWORK_FLAG): Check BFD_LINKER_CREATED.
|
|
|
|
|
(elf32_arm_write_section): Declare early.
|
|
|
|
|
(elf32_arm_size_stubs): Skip non-stub sections in the stub BFD.
|
|
|
|
|
(arm_allocate_glue_section_space): Exclude empty sections.
|
|
|
|
|
(ARM_GLUE_SECTION_FLAGS): Add SEC_LINKER_CREATED.
|
|
|
|
|
(bfd_elf32_arm_add_glue_sections_to_bfd): Do not skip the stub
|
|
|
|
|
BFD.
|
|
|
|
|
(elf32_arm_output_glue_section, elf32_arm_final_link): New.
|
|
|
|
|
(elf32_arm_merge_eabi_attributes): Skip the stub BFD.
|
|
|
|
|
(elf32_arm_size_dynamic_sections): Allocate interworking
|
|
|
|
|
sections here.
|
|
|
|
|
(bfd_elf32_bfd_final_link): Define.
|
|
|
|
|
|
2009-04-21 17:08:20 +00:00
|
|
|
|
2009-04-21 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* coff-ia64.c (COFF_PAGE_SIZE): Changed to 8K.
|
2009-06-05 Tristan Gingold <gingold@adacore.com>
* mach-o.h: Update copyright year.
(bfd_mach_o_mach_header_magic): New enum.
(bfd_mach_o_cpu_subtype): Now an enum.
(BFD_MACH_O_HEADER_SIZE, BFD_MACH_O_HEADER_64_SIZE): New macros.
(BFD_MACH_O_SECTION_SIZE, BFD_MACH_O_SECTION_64_SIZE): Ditto.
(BFD_MACH_O_LC_SEGMENT_SIZE, BFD_MACH_O_LC_SEGMENT_64_SIZE): Ditto.
(bfd_mach_o_load_command): Field type_required is now a boolean.
Reindent prototypes.
(bfd_mach_o_object_p, bfd_mach_o_core_p): Remove.
(bfd_mach_o_bfd_copy_private_symbol_data): Add a prototype.
(bfd_mach_o_bfd_copy_private_section_data): Ditto.
(bfd_mach_o_bfd_copy_private_bfd_data): Ditto.
(bfd_mach_o_get_symtab_upper_bound): Ditto.
(bfd_mach_o_canonicalize_symtab): Ditto.
(bfd_mach_o_get_symbol_info): Ditto.
(bfd_mach_o_print_symbol): Ditto.
(bfd_mach_o_bfd_print_private_bfd_data): Ditto.
(bfd_mach_o_make_empty_symbol): Ditto.
(bfd_mach_o_write_contents): Ditto.
* mach-o.c (bfd_mach_o_object_p, bfd_mach_o_core_p,
bfd_mach_o_mkobject): Defines.
(bfd_mach_o_valid): Returns FALSE/TRUE instead of 0/1.
Do not check with target vector but with flavour.
(struct mach_o_section_name_xlat): New declaration.
(dwarf_section_names_xlat): Ditto.
(text_section_names_xlat): Ditto.
(data_section_names_xlat): Ditto.
(struct mach_o_segment_name_xlat): Ditto.
(segsec_names_xlat): Ditto.
(bfd_mach_o_convert_section_name_to_bfd): New function.
(bfd_mach_o_convert_section_name_to_mach_o): Ditto.
(bfd_mach_o_bfd_copy_private_symbol_data): Make it public.
(bfd_mach_o_bfd_copy_private_section_data): Ditto.
(bfd_mach_o_bfd_copy_private_bfd_data): Ditto.
Accept any input and output flavour. Do not share private data
anymore.
(bfd_mach_o_count_symbols): Add a comment.
(bfd_mach_o_get_symtab_upper_bound): Make it public.
(bfd_mach_o_canonicalize_symtab): Ditto.
(bfd_mach_o_get_symbol_info): Ditto.
(bfd_mach_o_print_symbol): Ditto.
(bfd_mach_o_write_header): Now returns a boolean instead of an int.
Use constants instead of hard-coded values.
(bfd_mach_o_scan_write_section_32): Use constants instead of hard-coded
values.
(bfd_mach_o_scan_write_section_64): Ditto.
(bfd_mach_o_scan_write_segment): Ditto.
Do not copy sections anymore.
(bfd_mach_o_write_contents): Make it public.
Remove dead code. Rewrite typeflag assignment.
(bfd_mach_o_build_commands): New function.
(bfd_mach_o_set_section_contents): Ditto.
(bfd_mach_o_make_empty_symbol): Make it public.
(bfd_mach_o_read_header): Make it static.
Convert to bfd_boolean.
Use constants instead of hard-coded values.
(bfd_mach_o_make_bfd_section): Call
bfd_mach_o_convert_section_name_to_bfd to create name.
(bfd_mach_o_scan_read_section_32): Use constants instead of hard-coded
values.
(bfd_mach_o_scan_read_section_64): Ditto.
(bfd_mach_o_scan_read_segment): Do not create a bfd section for
a segment anymore. Use constants instead of hard-coded values.
(bfd_mach_o_scan_read_command): Fix style.
(bfd_mach_o_scan): Use constants instead of hard-coded values.
Get rid of BFD_IO_FUNCS.
(bfd_mach_o_mkobject_init): Renamed from bfd_mach_o_mkobject.
(bfd_mach_o_header_p): Created from bfd_mach_o_object_p.
(bfd_mach_o_gen_object_p): New function, replaces bfd_mach_o_object_p.
(bfd_mach_o_object_p): Removed.
(bfd_mach_o_gen_core_p): New function, replaces ...
(bfd_mach_o_core_p): ... deleted.
(bfd_mach_o_bfd_print_private_bfd_data): Make it public.
* mach-o-i386.c: New file.
* config.bfd: Use mach_o_i386_vec as targ_defvec for ix86-darwin.
* configure.in (TDEFINES): Add mach_o_i386_vec.
* configure: Regenerated.
* targets.c: Add mach_o_i386_vec.
* mach-o.c: Update copyright years.
(BFD_IO_FUNCS): Remove (was not used).
(bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr, bfd_mach_o_slurp_armap
bfd_mach_o_slurp_extended_name_table,
bfd_mach_o_construct_extended_name_table,
bfd_mach_o_truncate_arname, bfd_mach_o_write_armap,
bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt,
bfd_mach_o_update_armap_timestamp, bfd_mach_o_close_and_cleanup,
bfd_mach_o_bfd_free_cached_info, bfd_mach_o_new_section_hook,
bfd_mach_o_get_section_contents_in_window,
bfd_mach_o_bfd_is_local_label_name,
bfd_mach_o_bfd_is_target_special_symbol,
bfd_mach_o_bfd_is_local_label_name, bfd_mach_o_get_lineno,
bfd_mach_o_find_nearest_line, bfd_mach_o_find_inliner_info,
bfd_mach_o_bfd_make_debug_symbol, bfd_mach_o_read_minisymbols,
bfd_mach_o_minisymbol_to_symbol,
bfd_mach_o_bfd_get_relocated_section_contents,
bfd_mach_o_bfd_relax_section, bfd_mach_o_bfd_link_hash_table_create,
bfd_mach_o_bfd_link_hash_table_free, bfd_mach_o_bfd_link_add_symbols,
bfd_mach_o_bfd_link_just_syms, bfd_mach_o_bfd_final_link,
bfd_mach_o_bfd_link_split_section, bfd_mach_o_set_arch_mach,
bfd_mach_o_bfd_merge_private_bfd_data,
bfd_mach_o_bfd_set_private_flags, bfd_mach_o_get_section_contents,
bfd_mach_o_bfd_gc_sections, bfd_mach_o_bfd_merge_sections,
bfd_mach_o_bfd_is_group_section, bfd_mach_o_bfd_discard_group,
bfd_mach_o_section_already_linked, bfd_mach_o_bfd_define_common_symbol,
bfd_mach_o_bfd_copy_private_header_data,
bfd_mach_o_core_file_matches_executable_p): Move these defines ...
* mach-o-target.c: ... here.
Update copyright years.
2009-06-05 09:19:44 +00:00
|
|
|
|
|
2009-04-21 17:08:20 +00:00
|
|
|
|
* coffcode.h (coff_compute_section_file_positions): Clear
|
|
|
|
|
D_PAGED if PE section alignment is smaller than COFF_PAGE_SIZE.
|
|
|
|
|
|
|
|
|
|
* libcoff-in.h (pe_tdata): Remove force_minimum_alignment and
|
|
|
|
|
force_minimum_alignment.
|
|
|
|
|
|
|
|
|
|
* libcoff.h: Regenerated.
|
|
|
|
|
|
|
|
|
|
* pei-ia64.c (PEI_TARGET_SUBSYSTEM): Removed.
|
|
|
|
|
(PEI_FORCE_MINIMUM_ALIGNMENT): Likewise.
|
|
|
|
|
|
|
|
|
|
* peicode.h (pe_mkobject): Don't set force_minimum_alignment
|
|
|
|
|
nor target_subsystem.
|
|
|
|
|
|
|
|
|
|
* peXXigen.c (_bfd_XXi_swap_aouthdr_out): Don't check
|
|
|
|
|
force_minimum_alignment nor target_subsystem.
|
|
|
|
|
|
2009-04-21 02:13:48 +00:00
|
|
|
|
2009-04-21 Kai Tietz <kai.tietz@onevision.com>
|
|
|
|
|
|
|
|
|
|
* coff-x86_64.c (PEI_HEADERS): Protect includes.
|
|
|
|
|
(bfd_pe_print_pdata): Remove #ifdef PE variation.
|
|
|
|
|
* pei-x86_64.c (PEI_HEADERS): Define to prevent double
|
|
|
|
|
include in coff-x86_64.c of headers.
|
|
|
|
|
(PDATA_ROW_SIZE): New define.
|
|
|
|
|
(pex_regs[]): New static array.
|
|
|
|
|
(pex64_get_runtime_function): New static function.
|
|
|
|
|
(pex64_get_unwind_info): Likewise.
|
|
|
|
|
(pex64_get_scope_entry): Likewise.
|
|
|
|
|
(pex64_xdata_print_uwd_codes): Likewise.
|
|
|
|
|
(pex64_get_section_by_rva): Likewise.
|
|
|
|
|
(pex64_dump_xdata): Likewise.
|
|
|
|
|
(pex64_bfd_print_pdata): Likewise.
|
|
|
|
|
(bfd_pe_print_pdata): Define as pex64_bfd_print_pdata.
|
|
|
|
|
* peXXigen.c (_bfd_pex64_print_pdata): Removed implementation.
|
|
|
|
|
* libpei.h (_bfd_pex64_print_pdata): Removed declaration.
|
|
|
|
|
|
2009-04-20 01:09:43 +00:00
|
|
|
|
2009-04-19 Peter O'Gorman <binutils@mlists.thewrittenword.com>
|
2009-04-21 17:08:20 +00:00
|
|
|
|
Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
Dave Korn <dave.korn.cygwin@gmail.com>
|
2009-04-20 01:09:43 +00:00
|
|
|
|
|
|
|
|
|
* peXXigen.c (_bfd_XXi_swap_sym_in): Fix name handling w.r.t
|
|
|
|
|
long names and non-NUL-terminated strings.
|
|
|
|
|
|
2009-04-17 22:50:18 +00:00
|
|
|
|
2009-04-17 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* bfd-in2.h: Regenerated.
|
|
|
|
|
|
2009-04-17 15:03:48 +00:00
|
|
|
|
2009-04-17 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* peXXigen.c (_bfd_XX_print_private_bfd_data_common): Replace
|
|
|
|
|
IMAGE_SUBSYSTEM_EFI_ROM with IMAGE_SUBSYSTEM_SAL_RUNTIME_DRIVER.
|
|
|
|
|
|
bfd/
2009-04-17 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/10074
* coffcode.h (bfd_pei_p): New.
* config.bfd: Remove bfd_efi_bsdrv_ia32_vec,
bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec,
bfd_efi_rtdrv_x86_64_vec, bfd_efi_bsdrv_ia64_vec and
bfd_efi_rtdrv_ia64_vec. Replace bfd_efi_app_ia32_vec,
bfd_efi_app_x86_64_vec and bfd_efi_app_ia64_vec with
i386pei_vec, x86_64pei_vec and bfd_pei_ia64_vec, respectively.
* configure.in: Remove bfd_efi_bsdrv_ia32_vec,
bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec,
bfd_efi_rtdrv_x86_64_vec,
bfd_efi_bsdrv_ia64_vec and bfd_efi_rtdrv_ia64_vec. Replace
bfd_efi_ia64_vec with bfd_pei_ia64_vec.
* targets.c: Likewise.
* configure: Regenerated.
* libcoff.h: Likewise.
* Makefile.in: Likewise.
* efi-app-ia32.c: Removed.
* efi-app-x86_64.c: Likewise.
* efi-bsdrv-ia32.c: Likewise.
* efi-bsdrv-ia64.c: Likewise.
* efi-bsdrv-x86_64.c: Likewise.
* efi-rtdrv-ia32.c: Likewise.
* efi-rtdrv-ia64.c: Likewise.
* efi-rtdrv-x86_64.c: Likewise.
* efi-rtdrv-ia32.c: Likewise.
* efi-app-ia64.c: Moved to ...
* pei-ia64.c: This.
(TARGET_SYM): Set to bfd_pei_ia64_vec.
(TARGET_NAME): Set to pei-ia64.
* libpei.h (bfd_target_pei_p): Removed.
(bfd_target_pei_arch): Likewise.
(bfd_target_efi_app_p): Likewise.
(bfd_target_efi_app_arch): Likewise.
(bfd_target_efi_bsdrv_p): Likewise.
(bfd_target_efi_bsdrv_arch): Likewise.
(bfd_target_efi_rtdrv_p): Likewise.
(bfd_target_efi_rtdrv_arch): Likewise.
(bfd_pe_executable_p): Likewise.
* Makefile.am (BFD32_BACKENDS): Remove efi-app-ia32.lo,
efi-bsdrv-ia32.lo and efi-rtdrv-ia32.lo.
(BFD32_BACKENDS_CFILES): Remove efi-app-ia32.c, efi-bsdrv-ia32.c
and efi-rtdrv-ia32.c.
(BFD64_BACKENDS): Remove efi-app-ia64.lo, efi-bsdrv-ia64.lo,
efi-rtdrv-ia64.lo, efi-app-x86_64.lo, efi-bsdrv-x86_64.lo and
efi-rtdrv-x86_64.lo. Add pei-ia64.lo.
(BFD64_BACKENDS_CFILES): Remove efi-app-ia64.c, efi-bsdrv-ia64.c,
efi-rtdrv-ia64.c, efi-app-x86_64.c, efi-bsdrv-x86_64.c and
efi-rtdrv-x86_64.c. Add pei-ia64.c.
(efi-app-ia64.lo): Removed.
(efi-bsdrv-ia32.lo): Likewise.
(efi-rtdrv-ia32.lo): Likewise.
(efi-app-ia64.lo): Likewise.
(efi-bsdrv-ia64.lo): Likewise.
(efi-rtdrv-ia64.lo): Likewise.
(efi-app-x86_64.lo): Likewise.
(efi-bsdrv-x86_64.lo): Likewise.
(efi-rtdrv-x86_64.lo): Likewise.
(pei-ia64.lo): New.
* peicode.h (coff_swap_scnhdr_in): Replace bfd_pe_executable_p
with bfd_pei_p.
(arch_type): Removed.
(pe_arch): Likewise.
(pe_bfd_object_p): Just return coff_object_p.
* peXXigen.c (_bfd_XXi_swap_scnhdr_out): Replace
bfd_pe_executable_p with bfd_pei_p.
binutils/
2009-04-17 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/10074
* objcopy.c: Include coff/i386.h and coff/pe.h.
(pe_file_alignment): New.
(pe_heap_commit): Likewise.
(pe_heap_reserve): Likewise.
(pe_image_base): Likewise.
(pe_section_alignment): Likewise.
(pe_stack_commit): Likewise.
(pe_stack_reserve): Likewise.
(pe_subsystem): Likewise.
(pe_major_subsystem_version): Likewise.
(pe_minor_subsystem_version): Likewise.
(set_pe_subsystem): Likewise.
(convert_efi_target): Likewise.
(command_line_switch): Add OPTION_FILE_ALIGNMENT,
OPTION_HEAP, OPTION_IMAGE_BASE, OPTION_SECTION_ALIGNMENT,
OPTION_STACK and OPTION_SUBSYSTEM.
(copy_options): Likewise.
(copy_usage): Add --file-alignment, --heap, --image-base,
--section-alignment, --stack and --subsystem.
(copy_object): Set up PE parameters.
(copy_main): Process Add OPTION_FILE_ALIGNMENT,
OPTION_HEAP, OPTION_IMAGE_BASE, OPTION_SECTION_ALIGNMENT,
OPTION_STACK and OPTION_SUBSYSTEM. Convert EFI target to
PEI target.
* NEWS: Mention --file-alignment, --heap, --image-base,
--section-alignment, --stack and --subsystem command line
options for objcopy.
* doc/binutils.texi: Document --file-alignment, --heap,
--image-base, --section-alignment, --stack and --subsystem
command line options for objcopy.
2009-04-17 13:46:18 +00:00
|
|
|
|
2009-04-17 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR binutils/10074
|
|
|
|
|
* coffcode.h (bfd_pei_p): New.
|
|
|
|
|
|
|
|
|
|
* config.bfd: Remove bfd_efi_bsdrv_ia32_vec,
|
|
|
|
|
bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec,
|
|
|
|
|
bfd_efi_rtdrv_x86_64_vec, bfd_efi_bsdrv_ia64_vec and
|
|
|
|
|
bfd_efi_rtdrv_ia64_vec. Replace bfd_efi_app_ia32_vec,
|
|
|
|
|
bfd_efi_app_x86_64_vec and bfd_efi_app_ia64_vec with
|
|
|
|
|
i386pei_vec, x86_64pei_vec and bfd_pei_ia64_vec, respectively.
|
|
|
|
|
|
|
|
|
|
* configure.in: Remove bfd_efi_bsdrv_ia32_vec,
|
|
|
|
|
bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec,
|
|
|
|
|
bfd_efi_rtdrv_x86_64_vec,
|
|
|
|
|
bfd_efi_bsdrv_ia64_vec and bfd_efi_rtdrv_ia64_vec. Replace
|
|
|
|
|
bfd_efi_ia64_vec with bfd_pei_ia64_vec.
|
|
|
|
|
* targets.c: Likewise.
|
|
|
|
|
|
|
|
|
|
* configure: Regenerated.
|
|
|
|
|
* libcoff.h: Likewise.
|
|
|
|
|
* Makefile.in: Likewise.
|
|
|
|
|
|
|
|
|
|
* efi-app-ia32.c: Removed.
|
|
|
|
|
* efi-app-x86_64.c: Likewise.
|
|
|
|
|
* efi-bsdrv-ia32.c: Likewise.
|
|
|
|
|
* efi-bsdrv-ia64.c: Likewise.
|
|
|
|
|
* efi-bsdrv-x86_64.c: Likewise.
|
|
|
|
|
* efi-rtdrv-ia32.c: Likewise.
|
|
|
|
|
* efi-rtdrv-ia64.c: Likewise.
|
|
|
|
|
* efi-rtdrv-x86_64.c: Likewise.
|
|
|
|
|
* efi-rtdrv-ia32.c: Likewise.
|
|
|
|
|
|
|
|
|
|
* efi-app-ia64.c: Moved to ...
|
|
|
|
|
* pei-ia64.c: This.
|
|
|
|
|
(TARGET_SYM): Set to bfd_pei_ia64_vec.
|
|
|
|
|
(TARGET_NAME): Set to pei-ia64.
|
|
|
|
|
|
|
|
|
|
* libpei.h (bfd_target_pei_p): Removed.
|
|
|
|
|
(bfd_target_pei_arch): Likewise.
|
|
|
|
|
(bfd_target_efi_app_p): Likewise.
|
|
|
|
|
(bfd_target_efi_app_arch): Likewise.
|
|
|
|
|
(bfd_target_efi_bsdrv_p): Likewise.
|
|
|
|
|
(bfd_target_efi_bsdrv_arch): Likewise.
|
|
|
|
|
(bfd_target_efi_rtdrv_p): Likewise.
|
|
|
|
|
(bfd_target_efi_rtdrv_arch): Likewise.
|
|
|
|
|
(bfd_pe_executable_p): Likewise.
|
|
|
|
|
|
|
|
|
|
* Makefile.am (BFD32_BACKENDS): Remove efi-app-ia32.lo,
|
|
|
|
|
efi-bsdrv-ia32.lo and efi-rtdrv-ia32.lo.
|
|
|
|
|
(BFD32_BACKENDS_CFILES): Remove efi-app-ia32.c, efi-bsdrv-ia32.c
|
|
|
|
|
and efi-rtdrv-ia32.c.
|
|
|
|
|
(BFD64_BACKENDS): Remove efi-app-ia64.lo, efi-bsdrv-ia64.lo,
|
|
|
|
|
efi-rtdrv-ia64.lo, efi-app-x86_64.lo, efi-bsdrv-x86_64.lo and
|
|
|
|
|
efi-rtdrv-x86_64.lo. Add pei-ia64.lo.
|
|
|
|
|
(BFD64_BACKENDS_CFILES): Remove efi-app-ia64.c, efi-bsdrv-ia64.c,
|
|
|
|
|
efi-rtdrv-ia64.c, efi-app-x86_64.c, efi-bsdrv-x86_64.c and
|
|
|
|
|
efi-rtdrv-x86_64.c. Add pei-ia64.c.
|
|
|
|
|
(efi-app-ia64.lo): Removed.
|
|
|
|
|
(efi-bsdrv-ia32.lo): Likewise.
|
|
|
|
|
(efi-rtdrv-ia32.lo): Likewise.
|
|
|
|
|
(efi-app-ia64.lo): Likewise.
|
|
|
|
|
(efi-bsdrv-ia64.lo): Likewise.
|
|
|
|
|
(efi-rtdrv-ia64.lo): Likewise.
|
|
|
|
|
(efi-app-x86_64.lo): Likewise.
|
|
|
|
|
(efi-bsdrv-x86_64.lo): Likewise.
|
|
|
|
|
(efi-rtdrv-x86_64.lo): Likewise.
|
|
|
|
|
(pei-ia64.lo): New.
|
|
|
|
|
|
|
|
|
|
* peicode.h (coff_swap_scnhdr_in): Replace bfd_pe_executable_p
|
|
|
|
|
with bfd_pei_p.
|
|
|
|
|
(arch_type): Removed.
|
|
|
|
|
(pe_arch): Likewise.
|
|
|
|
|
(pe_bfd_object_p): Just return coff_object_p.
|
|
|
|
|
|
|
|
|
|
* peXXigen.c (_bfd_XXi_swap_scnhdr_out): Replace
|
|
|
|
|
bfd_pe_executable_p with bfd_pei_p.
|
|
|
|
|
|
2009-04-17 13:04:41 +00:00
|
|
|
|
2009-04-17 Christophe Lyon <christophe.lyon@st.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (elf32_arm_size_stubs): Handle long branches through
|
|
|
|
|
PLT entries to an undefined symbol when generating a shared
|
|
|
|
|
library.
|
|
|
|
|
|
2009-04-17 12:08:10 +00:00
|
|
|
|
2009-04-17 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR 9909
|
|
|
|
|
* coffcode.h (handle_COMDAT): Allow for external COMDAT symbols.
|
|
|
|
|
|
2009-04-16 23:07:00 +00:00
|
|
|
|
2009-04-16 Richard Sandiford <r.sandiford@uk.ibm.com>
|
|
|
|
|
|
|
|
|
|
* aout-adobe.c (aout_32_bfd_define_common_symbol): Define.
|
|
|
|
|
* aout-target.h (MY_bfd_define_common_symbol): Likewise.
|
|
|
|
|
* aout-tic30.c (MY_bfd_define_common_symbol): Likewise.
|
|
|
|
|
* binary.c (binary_bfd_define_common_symbol): Likewise.
|
|
|
|
|
* bout.c (b_out_bfd_define_common_symbol): Likewise.
|
|
|
|
|
* coff-alpha.c (_bfd_ecoff_bfd_define_common_symbol): Likewise.
|
|
|
|
|
* coff-mips.c (_bfd_ecoff_bfd_define_common_symbol): Likewise.
|
|
|
|
|
* coffcode.h (coff_bfd_define_common_symbol): Likewise.
|
|
|
|
|
* elfxx-target.h (bfd_elfNN_bfd_define_common_symbol): Likewise.
|
|
|
|
|
* i386msdos.c (msdos_bfd_define_common_symbol): Likewise.
|
|
|
|
|
* i386os9k.c (os9k_bfd_define_common_symbol): Likewise.
|
|
|
|
|
* ieee.c (ieee_bfd_define_common_symbol): Likewise.
|
|
|
|
|
* ihex.c (ihex_bfd_define_common_symbol): Likewise.
|
|
|
|
|
* libbfd-in.h (_bfd_nolink_bfd_define_common_symbol): Likewise.
|
|
|
|
|
* mach-o.c (bfd_mach_o_bfd_define_common_symbol): Likewise.
|
|
|
|
|
* mmo.c (mmo_bfd_define_common_symbol): Likewise.
|
|
|
|
|
* nlm-target.h (nlm_bfd_define_common_symbol): Likewise.
|
|
|
|
|
* oasys.c (oasys_bfd_define_common_symbol): Likewise.
|
|
|
|
|
* pef.c (bfd_pef_bfd_define_common_symbol): Likewise.
|
|
|
|
|
* ppcboot.c (ppcboot_bfd_define_common_symbol): Likewise.
|
|
|
|
|
* som.c (som_bfd_define_common_symbol): Likewise.
|
|
|
|
|
* srec.c (srec_bfd_define_common_symbol): Likewise.
|
|
|
|
|
* tekhex.c (tekhex_bfd_define_common_symbol): Likewise.
|
|
|
|
|
* versados.c (versados_bfd_define_common_symbol): Likewise.
|
|
|
|
|
* vms.c (vms_bfd_define_common_symbol): Likewise.
|
|
|
|
|
* xcoff-target.h (_bfd_xcoff_bfd_define_common_symbol): Likewise.
|
|
|
|
|
* xsym.c (bfd_sym_bfd_define_common_symbol): Likewise.
|
|
|
|
|
* coff-rs6000.c (rs6000coff_vec): Add _bfd_xcoff_define_common_symbol.
|
|
|
|
|
(pmac_xcoff_vec): Likewise.
|
|
|
|
|
* coff64-rs6000.c (rs6000coff64_vec): Likewise.
|
|
|
|
|
(aix5coff64_vec): Likewise.
|
|
|
|
|
* linker.c (bfd_generic_define_common_symbol): New function.
|
|
|
|
|
* targets.c (BFD_JUMP_TABLE_LINK): Add NAME##_bfd_define_common_symbol.
|
|
|
|
|
(_bfd_define_common_symbol): New field.
|
|
|
|
|
* libcoff-in.h (_bfd_xcoff_define_common_symbol): Declare.
|
|
|
|
|
* xcofflink.c (_bfd_xcoff_define_common_symbol): New function.
|
|
|
|
|
(xcoff_build_ldsyms): Don't set XCOFF_DEF_REGULAR for common
|
|
|
|
|
symbols here.
|
|
|
|
|
* bfd-in2.h: Regenerate.
|
|
|
|
|
* libbfd.h: Likewise.
|
|
|
|
|
* libcoff.h: Likewise.
|
|
|
|
|
|
2009-04-16 15:39:48 +00:00
|
|
|
|
2009-04-15 Anthony Green <green@moxielogic.com>
|
|
|
|
|
|
|
|
|
|
* targets.c: Add moxie support.
|
|
|
|
|
* Makefile.am: Ditto.
|
|
|
|
|
* Makefile.in: Rebuilt.
|
|
|
|
|
* cpu-moxie.c, elf32-moxie.c: New files.
|
|
|
|
|
* archures.c: Add moxie support.
|
|
|
|
|
* configure.in: Add moxie support.
|
|
|
|
|
* configure: Rebuilt.
|
|
|
|
|
* config.bfd, archures.c: Add moxie support.
|
|
|
|
|
* bfd-in2.h: Rebuilt.
|
|
|
|
|
|
2009-04-15 13:49:54 +00:00
|
|
|
|
2009-04-15 Christophe Lyon <christophe.lyon@st.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (elf32_arm_final_link_relocate): Don't convert ARM
|
|
|
|
|
branch to an undef weak symbol into a jump to next instruction if
|
|
|
|
|
a PLT entry will be created.
|
|
|
|
|
|
2009-04-14 09:47:44 +00:00
|
|
|
|
2009-04-14 Dave Korn <dave.korn.cygwin@gmail.com>
|
|
|
|
|
|
|
|
|
|
* coffgen.c (make_a_section_from_file): Set the backend long
|
|
|
|
|
section names enable if long section names found on input.
|
|
|
|
|
* coffcode.h: Extend long section names documentation to match.
|
|
|
|
|
|
2009-04-08 16:04:50 +00:00
|
|
|
|
2009-04-08 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* elflink.c (elf_link_add_object_symbols): Warn alternate ELF
|
|
|
|
|
machine code.
|
|
|
|
|
|
2009-04-08 02:24:23 +00:00
|
|
|
|
2009-04-07 DJ Delorie <dj@redhat.com>
|
|
|
|
|
|
|
|
|
|
* archures.c: Add bfd_mach_mep_c5.
|
|
|
|
|
* bfd-in2.h: Likewise.
|
|
|
|
|
* cpu-mep.c: Add bfd_c5_arch.
|
|
|
|
|
* elf32-mep.c: Support it.
|
|
|
|
|
|
2009-04-07 20:04:08 +00:00
|
|
|
|
2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* elflink.c (_bfd_elf_section_already_linked): Add `\n' for
|
|
|
|
|
info->callbacks->einfo.
|
|
|
|
|
* linker.c (_bfd_generic_section_already_linked): Likewise.
|
|
|
|
|
|
2009-04-07 18:21:22 +00:00
|
|
|
|
2009-04-06 DJ Delorie <dj@redhat.com>
|
|
|
|
|
|
|
|
|
|
* elf32-h8300.c (elf32_h8_relax_section): Relax MOVA opcodes.
|
|
|
|
|
|
2009-04-06 16:48:36 +00:00
|
|
|
|
2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* coff-x86_64.c (bfd_pe_print_pdata): Defined to
|
|
|
|
|
_bfd_pex64_print_pdata only if PE is defined.
|
|
|
|
|
|
|
|
|
|
* libpei.h (_bfd_pep_print_x64_pdata): Renamed to ...
|
|
|
|
|
(_bfd_pex64_print_pdata): This.
|
|
|
|
|
|
|
|
|
|
* peXXigen.c (_bfd_pep_print_x64_pdata): Renamed to ...
|
|
|
|
|
(_bfd_pex64_print_pdata): This. Defined only if COFF_WITH_pex64
|
|
|
|
|
is defined.
|
|
|
|
|
|
2009-04-05 18:12:21 +00:00
|
|
|
|
2009-04-05 Kai Tietz <kai.tietz@onevision.com>
|
|
|
|
|
|
|
|
|
|
* coff-x86_64.c (bfd_pe_print_pdata): Define as
|
|
|
|
|
_bfd_pep_print_x64_pdata.
|
|
|
|
|
* libpei.h (_bfd_pep_print_x64_pdata): Add prototype.
|
|
|
|
|
* peXXigen.c (_bfd_pep_print_x64_pdata): New.
|
|
|
|
|
|
2009-04-03 16:06:40 +00:00
|
|
|
|
2009-04-02 Sterling Augustine <sterling@jaw.hq.tensilica.com>
|
|
|
|
|
|
2009-06-05 Tristan Gingold <gingold@adacore.com>
* mach-o.h: Update copyright year.
(bfd_mach_o_mach_header_magic): New enum.
(bfd_mach_o_cpu_subtype): Now an enum.
(BFD_MACH_O_HEADER_SIZE, BFD_MACH_O_HEADER_64_SIZE): New macros.
(BFD_MACH_O_SECTION_SIZE, BFD_MACH_O_SECTION_64_SIZE): Ditto.
(BFD_MACH_O_LC_SEGMENT_SIZE, BFD_MACH_O_LC_SEGMENT_64_SIZE): Ditto.
(bfd_mach_o_load_command): Field type_required is now a boolean.
Reindent prototypes.
(bfd_mach_o_object_p, bfd_mach_o_core_p): Remove.
(bfd_mach_o_bfd_copy_private_symbol_data): Add a prototype.
(bfd_mach_o_bfd_copy_private_section_data): Ditto.
(bfd_mach_o_bfd_copy_private_bfd_data): Ditto.
(bfd_mach_o_get_symtab_upper_bound): Ditto.
(bfd_mach_o_canonicalize_symtab): Ditto.
(bfd_mach_o_get_symbol_info): Ditto.
(bfd_mach_o_print_symbol): Ditto.
(bfd_mach_o_bfd_print_private_bfd_data): Ditto.
(bfd_mach_o_make_empty_symbol): Ditto.
(bfd_mach_o_write_contents): Ditto.
* mach-o.c (bfd_mach_o_object_p, bfd_mach_o_core_p,
bfd_mach_o_mkobject): Defines.
(bfd_mach_o_valid): Returns FALSE/TRUE instead of 0/1.
Do not check with target vector but with flavour.
(struct mach_o_section_name_xlat): New declaration.
(dwarf_section_names_xlat): Ditto.
(text_section_names_xlat): Ditto.
(data_section_names_xlat): Ditto.
(struct mach_o_segment_name_xlat): Ditto.
(segsec_names_xlat): Ditto.
(bfd_mach_o_convert_section_name_to_bfd): New function.
(bfd_mach_o_convert_section_name_to_mach_o): Ditto.
(bfd_mach_o_bfd_copy_private_symbol_data): Make it public.
(bfd_mach_o_bfd_copy_private_section_data): Ditto.
(bfd_mach_o_bfd_copy_private_bfd_data): Ditto.
Accept any input and output flavour. Do not share private data
anymore.
(bfd_mach_o_count_symbols): Add a comment.
(bfd_mach_o_get_symtab_upper_bound): Make it public.
(bfd_mach_o_canonicalize_symtab): Ditto.
(bfd_mach_o_get_symbol_info): Ditto.
(bfd_mach_o_print_symbol): Ditto.
(bfd_mach_o_write_header): Now returns a boolean instead of an int.
Use constants instead of hard-coded values.
(bfd_mach_o_scan_write_section_32): Use constants instead of hard-coded
values.
(bfd_mach_o_scan_write_section_64): Ditto.
(bfd_mach_o_scan_write_segment): Ditto.
Do not copy sections anymore.
(bfd_mach_o_write_contents): Make it public.
Remove dead code. Rewrite typeflag assignment.
(bfd_mach_o_build_commands): New function.
(bfd_mach_o_set_section_contents): Ditto.
(bfd_mach_o_make_empty_symbol): Make it public.
(bfd_mach_o_read_header): Make it static.
Convert to bfd_boolean.
Use constants instead of hard-coded values.
(bfd_mach_o_make_bfd_section): Call
bfd_mach_o_convert_section_name_to_bfd to create name.
(bfd_mach_o_scan_read_section_32): Use constants instead of hard-coded
values.
(bfd_mach_o_scan_read_section_64): Ditto.
(bfd_mach_o_scan_read_segment): Do not create a bfd section for
a segment anymore. Use constants instead of hard-coded values.
(bfd_mach_o_scan_read_command): Fix style.
(bfd_mach_o_scan): Use constants instead of hard-coded values.
Get rid of BFD_IO_FUNCS.
(bfd_mach_o_mkobject_init): Renamed from bfd_mach_o_mkobject.
(bfd_mach_o_header_p): Created from bfd_mach_o_object_p.
(bfd_mach_o_gen_object_p): New function, replaces bfd_mach_o_object_p.
(bfd_mach_o_object_p): Removed.
(bfd_mach_o_gen_core_p): New function, replaces ...
(bfd_mach_o_core_p): ... deleted.
(bfd_mach_o_bfd_print_private_bfd_data): Make it public.
* mach-o-i386.c: New file.
* config.bfd: Use mach_o_i386_vec as targ_defvec for ix86-darwin.
* configure.in (TDEFINES): Add mach_o_i386_vec.
* configure: Regenerated.
* targets.c: Add mach_o_i386_vec.
* mach-o.c: Update copyright years.
(BFD_IO_FUNCS): Remove (was not used).
(bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr, bfd_mach_o_slurp_armap
bfd_mach_o_slurp_extended_name_table,
bfd_mach_o_construct_extended_name_table,
bfd_mach_o_truncate_arname, bfd_mach_o_write_armap,
bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt,
bfd_mach_o_update_armap_timestamp, bfd_mach_o_close_and_cleanup,
bfd_mach_o_bfd_free_cached_info, bfd_mach_o_new_section_hook,
bfd_mach_o_get_section_contents_in_window,
bfd_mach_o_bfd_is_local_label_name,
bfd_mach_o_bfd_is_target_special_symbol,
bfd_mach_o_bfd_is_local_label_name, bfd_mach_o_get_lineno,
bfd_mach_o_find_nearest_line, bfd_mach_o_find_inliner_info,
bfd_mach_o_bfd_make_debug_symbol, bfd_mach_o_read_minisymbols,
bfd_mach_o_minisymbol_to_symbol,
bfd_mach_o_bfd_get_relocated_section_contents,
bfd_mach_o_bfd_relax_section, bfd_mach_o_bfd_link_hash_table_create,
bfd_mach_o_bfd_link_hash_table_free, bfd_mach_o_bfd_link_add_symbols,
bfd_mach_o_bfd_link_just_syms, bfd_mach_o_bfd_final_link,
bfd_mach_o_bfd_link_split_section, bfd_mach_o_set_arch_mach,
bfd_mach_o_bfd_merge_private_bfd_data,
bfd_mach_o_bfd_set_private_flags, bfd_mach_o_get_section_contents,
bfd_mach_o_bfd_gc_sections, bfd_mach_o_bfd_merge_sections,
bfd_mach_o_bfd_is_group_section, bfd_mach_o_bfd_discard_group,
bfd_mach_o_section_already_linked, bfd_mach_o_bfd_define_common_symbol,
bfd_mach_o_bfd_copy_private_header_data,
bfd_mach_o_core_file_matches_executable_p): Move these defines ...
* mach-o-target.c: ... here.
Update copyright years.
2009-06-05 09:19:44 +00:00
|
|
|
|
* elf32-xtensa.c (relax_property_section): Always set r_offset
|
2009-04-03 16:06:40 +00:00
|
|
|
|
to zero.
|
|
|
|
|
|
2009-04-02 14:12:46 +00:00
|
|
|
|
2009-04-02 Christophe Lyon <christophe.lyon@st.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (elf32_arm_stub_long_branch_v4t_thumb_thumb,
|
|
|
|
|
elf32_arm_stub_long_branch_v4t_thumb_thumb_pic): Two new long
|
|
|
|
|
branch stubs.
|
|
|
|
|
(elf32_arm_stub_type): New enum values for the two new stubs.
|
|
|
|
|
(arm_type_of_stub): Make use of the two new stubs.
|
|
|
|
|
(arm_size_one_stub): Handle the two new stubs.
|
|
|
|
|
|
2009-04-02 00:20:42 +00:00
|
|
|
|
2009-04-01 Matt Thomas <matt@netbsd.org>
|
|
|
|
|
|
|
|
|
|
* elf32-vax.c (elf_vax_check_relocs): Do not put relocations against
|
|
|
|
|
hidden symbols into the GOT or PLT.GOT.
|
2009-06-05 Tristan Gingold <gingold@adacore.com>
* mach-o.h: Update copyright year.
(bfd_mach_o_mach_header_magic): New enum.
(bfd_mach_o_cpu_subtype): Now an enum.
(BFD_MACH_O_HEADER_SIZE, BFD_MACH_O_HEADER_64_SIZE): New macros.
(BFD_MACH_O_SECTION_SIZE, BFD_MACH_O_SECTION_64_SIZE): Ditto.
(BFD_MACH_O_LC_SEGMENT_SIZE, BFD_MACH_O_LC_SEGMENT_64_SIZE): Ditto.
(bfd_mach_o_load_command): Field type_required is now a boolean.
Reindent prototypes.
(bfd_mach_o_object_p, bfd_mach_o_core_p): Remove.
(bfd_mach_o_bfd_copy_private_symbol_data): Add a prototype.
(bfd_mach_o_bfd_copy_private_section_data): Ditto.
(bfd_mach_o_bfd_copy_private_bfd_data): Ditto.
(bfd_mach_o_get_symtab_upper_bound): Ditto.
(bfd_mach_o_canonicalize_symtab): Ditto.
(bfd_mach_o_get_symbol_info): Ditto.
(bfd_mach_o_print_symbol): Ditto.
(bfd_mach_o_bfd_print_private_bfd_data): Ditto.
(bfd_mach_o_make_empty_symbol): Ditto.
(bfd_mach_o_write_contents): Ditto.
* mach-o.c (bfd_mach_o_object_p, bfd_mach_o_core_p,
bfd_mach_o_mkobject): Defines.
(bfd_mach_o_valid): Returns FALSE/TRUE instead of 0/1.
Do not check with target vector but with flavour.
(struct mach_o_section_name_xlat): New declaration.
(dwarf_section_names_xlat): Ditto.
(text_section_names_xlat): Ditto.
(data_section_names_xlat): Ditto.
(struct mach_o_segment_name_xlat): Ditto.
(segsec_names_xlat): Ditto.
(bfd_mach_o_convert_section_name_to_bfd): New function.
(bfd_mach_o_convert_section_name_to_mach_o): Ditto.
(bfd_mach_o_bfd_copy_private_symbol_data): Make it public.
(bfd_mach_o_bfd_copy_private_section_data): Ditto.
(bfd_mach_o_bfd_copy_private_bfd_data): Ditto.
Accept any input and output flavour. Do not share private data
anymore.
(bfd_mach_o_count_symbols): Add a comment.
(bfd_mach_o_get_symtab_upper_bound): Make it public.
(bfd_mach_o_canonicalize_symtab): Ditto.
(bfd_mach_o_get_symbol_info): Ditto.
(bfd_mach_o_print_symbol): Ditto.
(bfd_mach_o_write_header): Now returns a boolean instead of an int.
Use constants instead of hard-coded values.
(bfd_mach_o_scan_write_section_32): Use constants instead of hard-coded
values.
(bfd_mach_o_scan_write_section_64): Ditto.
(bfd_mach_o_scan_write_segment): Ditto.
Do not copy sections anymore.
(bfd_mach_o_write_contents): Make it public.
Remove dead code. Rewrite typeflag assignment.
(bfd_mach_o_build_commands): New function.
(bfd_mach_o_set_section_contents): Ditto.
(bfd_mach_o_make_empty_symbol): Make it public.
(bfd_mach_o_read_header): Make it static.
Convert to bfd_boolean.
Use constants instead of hard-coded values.
(bfd_mach_o_make_bfd_section): Call
bfd_mach_o_convert_section_name_to_bfd to create name.
(bfd_mach_o_scan_read_section_32): Use constants instead of hard-coded
values.
(bfd_mach_o_scan_read_section_64): Ditto.
(bfd_mach_o_scan_read_segment): Do not create a bfd section for
a segment anymore. Use constants instead of hard-coded values.
(bfd_mach_o_scan_read_command): Fix style.
(bfd_mach_o_scan): Use constants instead of hard-coded values.
Get rid of BFD_IO_FUNCS.
(bfd_mach_o_mkobject_init): Renamed from bfd_mach_o_mkobject.
(bfd_mach_o_header_p): Created from bfd_mach_o_object_p.
(bfd_mach_o_gen_object_p): New function, replaces bfd_mach_o_object_p.
(bfd_mach_o_object_p): Removed.
(bfd_mach_o_gen_core_p): New function, replaces ...
(bfd_mach_o_core_p): ... deleted.
(bfd_mach_o_bfd_print_private_bfd_data): Make it public.
* mach-o-i386.c: New file.
* config.bfd: Use mach_o_i386_vec as targ_defvec for ix86-darwin.
* configure.in (TDEFINES): Add mach_o_i386_vec.
* configure: Regenerated.
* targets.c: Add mach_o_i386_vec.
* mach-o.c: Update copyright years.
(BFD_IO_FUNCS): Remove (was not used).
(bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr, bfd_mach_o_slurp_armap
bfd_mach_o_slurp_extended_name_table,
bfd_mach_o_construct_extended_name_table,
bfd_mach_o_truncate_arname, bfd_mach_o_write_armap,
bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt,
bfd_mach_o_update_armap_timestamp, bfd_mach_o_close_and_cleanup,
bfd_mach_o_bfd_free_cached_info, bfd_mach_o_new_section_hook,
bfd_mach_o_get_section_contents_in_window,
bfd_mach_o_bfd_is_local_label_name,
bfd_mach_o_bfd_is_target_special_symbol,
bfd_mach_o_bfd_is_local_label_name, bfd_mach_o_get_lineno,
bfd_mach_o_find_nearest_line, bfd_mach_o_find_inliner_info,
bfd_mach_o_bfd_make_debug_symbol, bfd_mach_o_read_minisymbols,
bfd_mach_o_minisymbol_to_symbol,
bfd_mach_o_bfd_get_relocated_section_contents,
bfd_mach_o_bfd_relax_section, bfd_mach_o_bfd_link_hash_table_create,
bfd_mach_o_bfd_link_hash_table_free, bfd_mach_o_bfd_link_add_symbols,
bfd_mach_o_bfd_link_just_syms, bfd_mach_o_bfd_final_link,
bfd_mach_o_bfd_link_split_section, bfd_mach_o_set_arch_mach,
bfd_mach_o_bfd_merge_private_bfd_data,
bfd_mach_o_bfd_set_private_flags, bfd_mach_o_get_section_contents,
bfd_mach_o_bfd_gc_sections, bfd_mach_o_bfd_merge_sections,
bfd_mach_o_bfd_is_group_section, bfd_mach_o_bfd_discard_group,
bfd_mach_o_section_already_linked, bfd_mach_o_bfd_define_common_symbol,
bfd_mach_o_bfd_copy_private_header_data,
bfd_mach_o_core_file_matches_executable_p): Move these defines ...
* mach-o-target.c: ... here.
Update copyright years.
2009-06-05 09:19:44 +00:00
|
|
|
|
(elf_vax_relocate_section): Do not emit a PCREL reloc
|
2009-04-02 00:20:42 +00:00
|
|
|
|
into a shared object if it is against a hidden symbol.
|
|
|
|
|
|
2009-04-01 20:13:10 +00:00
|
|
|
|
2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
|
|
|
|
|
|
|
|
|
|
* xcofflink.c (xcoff_archive_info): Add contains_shared_object_p
|
|
|
|
|
and know_contains_shared_object_p.
|
|
|
|
|
(xcoff_archive_contains_shared_object_p): Add an "info" parameter.
|
|
|
|
|
Cache the result in the archive_info table.
|
|
|
|
|
(xcoff_auto_export_p): Add an "info" parameter and update the
|
|
|
|
|
call to xcoff_archive_contains_shared_object_p.
|
|
|
|
|
(xcoff_mark_auto_exports): Update accordingly.
|
|
|
|
|
(xcoff_post_gc_symbol): Likewise.
|
|
|
|
|
|
2009-04-01 20:09:03 +00:00
|
|
|
|
2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
|
|
|
|
|
|
|
|
|
|
* xcofflink.c (bfd_link_input_bfd): Treat __rtinit as C_HIDEXT
|
|
|
|
|
rather than C_EXT.
|
|
|
|
|
|
2009-04-01 20:04:28 +00:00
|
|
|
|
2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
|
|
|
|
|
|
|
|
|
|
* coff-rs6000.c (member_layout): New structure.
|
|
|
|
|
(archive_iterator): Likewise.
|
|
|
|
|
(member_layout_init): New function.
|
|
|
|
|
(archive_iterator_begin): Likewise.
|
|
|
|
|
(archive_iterator_next): Likewise.
|
|
|
|
|
(xcoff_write_armap_old): Use the new iterator functions.
|
|
|
|
|
(do_shared_object_padding): Delete.
|
|
|
|
|
(xcoff_write_armap_big): Use the new iterator functions. Simplify
|
|
|
|
|
handling of arch_info.
|
|
|
|
|
(xcoff_write_archive_contents_old): Allocate arelt_data in the
|
|
|
|
|
first loop rather than the second. Allocate a member header if
|
|
|
|
|
there isn't one, then work out the stat information and length
|
|
|
|
|
in the first loop too. Use the new iterators for the second loop.
|
|
|
|
|
(xcoff_write_archive_contents_big): Likewise.
|
|
|
|
|
|
2009-04-01 19:53:53 +00:00
|
|
|
|
2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
|
|
|
|
|
|
|
|
|
|
* bfd-in.h (bfd_xcoff_split_import_path): Declare.
|
|
|
|
|
(bfd_xcoff_set_archive_import_path): Likewise.
|
|
|
|
|
* bfd-in2.h: Regenerate.
|
|
|
|
|
* xcofflink.c: Include libiberty.h.
|
|
|
|
|
(xcoff_archive_info): New structure.
|
|
|
|
|
(xcoff_archive_info_hash): New function.
|
|
|
|
|
(xcoff_archive_info_eq): Likewise.
|
|
|
|
|
(xcoff_get_archive_info): Likewise.
|
|
|
|
|
(_bfd_xcoff_bfd_link_hash_table_create): Initialize archive_info.
|
|
|
|
|
(bfd_xcoff_split_import_path): New function.
|
|
|
|
|
(bfd_xcoff_set_archive_import_path): Likewise.
|
|
|
|
|
(xcoff_set_import_path): Move earlier in file.
|
|
|
|
|
(xcoff_link_add_dynamic_symbols): Set the import path of a non-archive
|
|
|
|
|
object to the the directory part of the bfd's filename. Get the
|
|
|
|
|
import path and filename of an archive object from the archive's
|
|
|
|
|
xcoff_tdata, initializing it if necessary. Update use of
|
|
|
|
|
import_file_id.
|
|
|
|
|
(bfd_link_input_bfd): Update use of import_file_id.
|
|
|
|
|
(xcoff_write_global_symbol): Likewise.
|
|
|
|
|
|
2009-04-01 19:38:11 +00:00
|
|
|
|
2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
|
|
|
|
|
|
|
|
|
|
* xcofflink.c (xcoff_link_hash_table): Moved from include/coff/xcoff.h.
|
|
|
|
|
|
|
|
|
|
2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
|
|
|
|
|
|
|
|
|
|
* xcofflink.c (xcoff_link_create_extra_sections): Don't create
|
|
|
|
|
a .loader section for relocatable links.
|
|
|
|
|
(xcoff_need_ldrel_p): New function.
|
|
|
|
|
(xcoff_mark): Use it.
|
|
|
|
|
(bfd_xcoff_link_count_reloc): Only count loader relocs if there's
|
|
|
|
|
a loader section.
|
|
|
|
|
(xcoff_build_ldsym): New function, split out from...
|
|
|
|
|
(xcoff_build_ldsyms): ...here. Rename to...
|
|
|
|
|
(xcoff_post_gc_symbol): ...this. Only export symbols, and only
|
|
|
|
|
call xcoff_build_ldsym, if there's a loader section.
|
|
|
|
|
(xcoff_build_loader_section): New function, extracted verbatim from...
|
|
|
|
|
(bfd_xcoff_size_dynamic_sections): ...here. Only call it if
|
|
|
|
|
there's a loader section. Only add an __rtinit loader symbol
|
|
|
|
|
if there's a loader section. Update after above name change.
|
|
|
|
|
(xcoff_symbol_section, xcoff_create_ldrel): New functions.
|
|
|
|
|
(bfd_link_input_bfd): Use xcoff_need_ldrel_p, xcoff_symbol_section
|
|
|
|
|
and xcoff_create_ldrel.
|
|
|
|
|
(xcoff_write_global_symbol): Use xcoff_create_ldrel.
|
|
|
|
|
(xcoff_reloc_link_order): Likewise, but only call it if there's
|
|
|
|
|
a loader section. Use xcoff_symbol_section.
|
|
|
|
|
(_bfd_xcoff_bfd_final_link): Only use fdinfo.ldrel and fdinfo.ldsym
|
|
|
|
|
if there's a loader section.
|
|
|
|
|
|
2009-04-01 19:05:53 +00:00
|
|
|
|
2009-04-01 Richard Sandiford <rdsandiford@googlemail.com>
|
|
|
|
|
|
|
|
|
|
* xcofflink.c (bfd_link_input_bfd): Fix buffer overrun.
|
|
|
|
|
|
2009-04-01 15:34:12 +00:00
|
|
|
|
2009-04-01 Christophe Lyon <christophe.lyon@st.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (group_sections): Rewrite loops for better
|
|
|
|
|
readability.
|
|
|
|
|
|
2009-03-31 01:42:29 +00:00
|
|
|
|
2009-03-30 DJ Delorie <dj@redhat.com>
|
|
|
|
|
|
|
|
|
|
* elflink.c (elf_link_input_bfd): Don't try to resolve complex
|
|
|
|
|
relocs when doing a relocatable link.
|
|
|
|
|
|
2009-03-28 23:19:00 +00:00
|
|
|
|
2009-03-28 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* coff-arm.c (coff_arm_merge_private_bfd_data): Use "error:", not
|
|
|
|
|
"ERROR:", in error messages.
|
|
|
|
|
* cpu-arm.c (bfd_arm_merge_machines): Likewise.
|
|
|
|
|
* elf-attrs.c (_bfd_elf_merge_object_attributes): Likewise.
|
|
|
|
|
* elf32-arm.c (tag_cpu_arch_combine): Likewise.
|
|
|
|
|
(elf32_arm_merge_eabi_attributes): Likewise.
|
|
|
|
|
(elf32_arm_merge_private_bfd_data): Likewise.
|
|
|
|
|
|
2009-03-27 11:38:30 +00:00
|
|
|
|
2009-03-27 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* section.c (bfd_get_section_contents): Detect and handle the case
|
|
|
|
|
where a section has the SEC_IN_MEMORY flag set but no actual
|
|
|
|
|
contents allocated.
|
|
|
|
|
|
2009-03-26 12:23:52 +00:00
|
|
|
|
2009-03-26 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
PR 6494
|
|
|
|
|
* elf.c (copy_elf_program_header): Do not check that PT_GNU_RELRO
|
|
|
|
|
p_filesz and p_memsz are equal. Use p_memsz as the segment size.
|
|
|
|
|
(assign_file_positions_for_non_load_sections): Zap PT_GNU_RELRO
|
|
|
|
|
if we don't find matching PT_LOAD when copying.
|
|
|
|
|
|
2009-03-25 08:08:36 +00:00
|
|
|
|
2009-03-25 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
|
|
|
|
|
|
|
|
|
|
* elf32-crx.c (crx_elf_howto_table): Zero the src_mask field of
|
|
|
|
|
the reloc descriptions.
|
|
|
|
|
|
2009-03-25 03:03:40 +00:00
|
|
|
|
2009-03-25 Hans-Peter Nilsson <hp@axis.com>
|
|
|
|
|
|
|
|
|
|
* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
|
|
|
|
|
<R_CRIS_16_GOT_GD, case R_CRIS_32_GOT_GD>: Handle COMMON symbols.
|
|
|
|
|
<case R_CRIS_16_TPREL, R_CRIS_32_TPREL>: Ditto.
|
|
|
|
|
|
2009-03-24 18:07:14 +00:00
|
|
|
|
2009-03-24 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* cpu-i386.c (bfd_x86_64_arch_intel_syntax): Make it static.
|
|
|
|
|
(bfd_i386_arch_intel_syntax): Likewise.
|
|
|
|
|
(i8086_arch): Likewise.
|
|
|
|
|
(bfd_x86_64_arch): Likewise.
|
|
|
|
|
|
2009-03-24 03:32:31 +00:00
|
|
|
|
2009-03-24 Hans-Peter Nilsson <hp@axis.com>
|
|
|
|
|
|
2009-03-24 07:57:21 +00:00
|
|
|
|
* elf32-cris.c (cris_elf_relocate_section): <case
|
|
|
|
|
R_CRIS_16_DTPREL, R_CRIS_32_DTPREL>: Allow use of non-local
|
|
|
|
|
symbols for non-allocated sections. Don't check whether to
|
|
|
|
|
generate R_CRIS_DTPMOD for non-allocated sections.
|
|
|
|
|
(cris_elf_gc_sweep_hook) <case R_CRIS_32_DTPREL>: Don't
|
|
|
|
|
handle relocation GC:ing if applied to non-allocated section.
|
|
|
|
|
(cris_elf_check_relocs): Similar.
|
|
|
|
|
|
2009-03-24 03:32:31 +00:00
|
|
|
|
* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
|
|
|
|
|
<R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: Don't include the TLS size
|
|
|
|
|
when emitting a known TP offset in the GOT.
|
|
|
|
|
|
2009-03-23 13:35:46 +00:00
|
|
|
|
2009-03-23 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* elf64-ppc.c (synthetic_opd): Delete.
|
|
|
|
|
(compare_symbols): Look for .opd name rather than section match.
|
|
|
|
|
(ppc64_elf_get_synthetic_symtab): Likewise.
|
|
|
|
|
|
2009-03-21 02:35:27 +00:00
|
|
|
|
2009-03-21 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* elf32-ppc.c (is_pic_glink_stub): Delete.
|
|
|
|
|
(is_nonpic_glink_stub): New function.
|
|
|
|
|
(ppc_elf_get_synthetic_symtab): Check for last non-pic stub rather
|
|
|
|
|
than first pic one.
|
|
|
|
|
(struct ppc_elf_link_hash_table <glink_pltresolve>): Comment fix.
|
|
|
|
|
|
2009-03-20 12:57:15 +00:00
|
|
|
|
2009-03-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
|
|
|
|
|
Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
|
|
|
|
|
|
|
|
|
|
* elf32-s390.c (elf_s390_check_relocs): Use the SYMBOL_*
|
2009-04-21 17:08:20 +00:00
|
|
|
|
macros for visibilty and locality checks.
|
2009-03-20 12:57:15 +00:00
|
|
|
|
(elf_s390_adjust_dynamic_symbol): Likewise.
|
|
|
|
|
(allocate_dynrelocs): Likewise.
|
|
|
|
|
(elf_s390_relocate_section): Likewise.
|
|
|
|
|
(elf_s390_finish_dynamic_symbol): Likewise.
|
|
|
|
|
* elf64-s390.c (elf_s390_check_relocs): Likewise.
|
|
|
|
|
(elf_s390_adjust_dynamic_symbol): Likewise.
|
|
|
|
|
(allocate_dynrelocs): Likewise.
|
|
|
|
|
(elf_s390_relocate_section): Likewise.
|
|
|
|
|
(elf_s390_finish_dynamic_symbol): Likewise.
|
|
|
|
|
|
2009-03-19 11:02:09 +00:00
|
|
|
|
2009-03-19 Kai Tietz <kai.tietz@onevision.com>
|
|
|
|
|
|
|
|
|
|
* bfd-in2.h: Regenerated.
|
|
|
|
|
* coffcode.h (sec_to_styp_flags): For pe-coff add SEC_READONLY
|
|
|
|
|
for debugging sections and map memory read/write dependent on
|
|
|
|
|
SEC_COFF_NOREAD.
|
|
|
|
|
(styp_to_sec_flags): Set SEC_COFF_NOREAD for sections
|
|
|
|
|
without memory read flags set.
|
|
|
|
|
* section.c: Add SEC_COFF_NOREAD to section flags.
|
|
|
|
|
|
2009-03-19 10:40:06 +00:00
|
|
|
|
2009-03-19 Andreas Schwab <schwab@linux-m68k.org>
|
|
|
|
|
|
|
|
|
|
* elf32-hppa.c (final_link_relocate): Cast bfd_vma values to long
|
|
|
|
|
for format string.
|
|
|
|
|
|
2009-03-19 07:04:12 +00:00
|
|
|
|
2009-03-19 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* elf32-spu.c (spu_elf_find_overlays): Separate error return from
|
|
|
|
|
"no overlays" return. If there are overlays, create overlay
|
|
|
|
|
manager entry symbols here, so that..
|
|
|
|
|
(spu_elf_build_stubs): ..we don't need to set them up here.
|
|
|
|
|
Simplify entry symbol tests.
|
|
|
|
|
* elf32-spu.h (spu_elf_find_overlays): Update prototype.
|
|
|
|
|
|
2009-03-18 16:26:54 +00:00
|
|
|
|
2009-03-18 Mark Kettenis <kettenis@gnu.org>
|
|
|
|
|
|
2009-03-19 10:40:06 +00:00
|
|
|
|
* elf.c (elfcore_grok_openbsd_procinfo)
|
2009-03-18 16:26:54 +00:00
|
|
|
|
(elfcore_grok_openbsd_note): New functions.
|
|
|
|
|
(elf_parse_notes): Handle notes from OpenBSD ELF core files.
|
|
|
|
|
|
2009-03-18 11:27:18 +00:00
|
|
|
|
2009-03-18 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
2009-03-18 11:47:18 +00:00
|
|
|
|
* vms-hdr.c: Don't include alloca.h.
|
2009-03-18 11:27:18 +00:00
|
|
|
|
* elf32-m68hc1x.c: Include alloca-conf.h.
|
|
|
|
|
* xsym.c: Likewise.
|
|
|
|
|
* elf64-hppa.c: Likewise. Remove existing #if's handling alloca.
|
|
|
|
|
* som.c: Likewise.
|
|
|
|
|
* Makefile.am: Run "make dep-am".
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2009-03-17 14:50:48 +00:00
|
|
|
|
2009-03-17 Daniel Jacobowitz <dan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (elf32_arm_check_relocs): Correct symbian_p test.
|
|
|
|
|
|
2009-03-17 12:46:19 +00:00
|
|
|
|
2009-03-17 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* elf32-spu.h (struct spu_elf_params): ovly_flavour now only 1 bit.
|
|
|
|
|
Add compact_stub.
|
|
|
|
|
(emum _ovly_flavour): Delete ovly_compact, ovly_none.
|
|
|
|
|
* elf32-spu.c (struct spu_link_hash_table): Replace ovly_load and
|
|
|
|
|
ovly_return fields with ovly_entry[2]. Adjust all users.
|
|
|
|
|
(spu_elf_find_overlays): Set ovly_entry[1] from __icache_call_handler
|
|
|
|
|
when soft-icache.
|
|
|
|
|
(spu_elf_build_stubs): Likewise.
|
|
|
|
|
(ovl_stub_size): Change arg to spu_elf_params pointer. Adjust for
|
|
|
|
|
ovly_flavour changes. Update all callers.
|
|
|
|
|
(ovl_stub_size_log2): New function.
|
|
|
|
|
(build_stub): Handle compact icache stubs. Use different manager
|
|
|
|
|
entry point for stubs in non-icache area.
|
|
|
|
|
(spu_elf_size_stubs): Don't allocate space for indirect branch
|
|
|
|
|
descriptors.
|
|
|
|
|
(spu_elf_build_stubs): And don't built them.
|
|
|
|
|
|
2009-03-16 12:50:42 +00:00
|
|
|
|
2009-03-16 Andrew Stubbs <ams@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* dwarf2.c (read_section): Always use rawsize, if available.
|
|
|
|
|
|
2009-03-16 00:52:37 +00:00
|
|
|
|
2009-03-16 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* simple.c (bfd_simple_get_relocated_section_contents): Use larger
|
|
|
|
|
of rawsize and size for buffer.
|
|
|
|
|
|
2009-03-15 15:15:29 +00:00
|
|
|
|
2009-03-15 Ulrich Weigand <uweigand@de.ibm.com>
|
|
|
|
|
|
|
|
|
|
* elf32-spu.c (spu_elf_check_vma): Do not reset auto_overlay
|
|
|
|
|
parameter just because fixed sections fit into local store.
|
|
|
|
|
(spu_elf_auto_overlay): Do not declare as "noreturn". Skip
|
|
|
|
|
generating overlays if fixed sections plus reserved stack
|
|
|
|
|
and heap space fit into local store.
|
|
|
|
|
|
2009-03-15 03:28:51 +00:00
|
|
|
|
2009-03-15 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* elf32-spu.c (build_stub): Correct icache set_id.
|
|
|
|
|
(spu_elf_relocate_section): Likewise.
|
|
|
|
|
|
2009-03-14 09:36:38 +00:00
|
|
|
|
2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
|
|
|
|
|
|
|
|
|
|
* xcofflink.c (xcoff_link_check_archive_element): Only free the
|
|
|
|
|
symbol table if it was created by the current call.
|
|
|
|
|
|
2009-03-14 09:36:11 +00:00
|
|
|
|
2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
|
|
|
|
|
|
|
|
|
|
* xcofflink.c (xcoff_build_ldsyms): Give imported descriptors
|
|
|
|
|
class XMC_DS rather than XMC_UA.
|
|
|
|
|
|
include/coff/
* xcoff.h (XCOFF_EXPALL, XCOFF_EXPFULL): New flags.
(xcoff_loader_info): Add auto_export_flags.
bfd/
* bfd-in.h (bfd_xcoff_size_dynamic_sections): Replace the
bfd_boolean export_defineds parameter with an unsigned int
auto_export_flags parameter.
* bfd-in2.h: Regenerate.
* xcofflink.c (xcoff_archive_contains_shared_object_p): New function,
split out from xcoff_build_ldsyms.
(xcoff_covered_by_expall_p): New function.
(xcoff_auto_export_p): New function, split out from xcoff_build_ldsyms
but with extra code to handle -bexpfull and -bexpall.
(xcoff_mark_auto_exports): New function.
(xcoff_build_ldsyms): Use xcoff_auto_export_p to decide whether
a function should be automatically exported.
(bfd_xcoff_size_dynamic_sections): Replace the export_defineds
parameter with an auto_export_flags parameter. Update ldinfo
accordingly. Use xcoff_mark_auto_exports to mark all automatically-
exported symbols.
ld/
* emultempl/aix.em (auto_export_flags): New variable.
(explicit_auto_export_flags): Likewise.
(OPTION_EXPALL, OPTION_EXPFULL): New enum values.
(OPTION_NOEXPALL, OPTION_NOEXPFULL): Likewise.
(gld${EMULATION_NAME}_add_options): Add -bexpall, -bexpfull,
-bnoexpall and -bnoexpfull.
(gld${EMULATION_NAME}_handle_option): Handle them.
(gld${EMULATION_NAME}_before_allocation): Update the call to
bfd_size_dynamic_sections.
ld/testsuite/
* ld-powerpc/aix-export-1-all.dd, ld-powerpc/aix-export-1-full.dd,
ld-powerpc/aix-export-1a.s, ld-powerpc/aix-export-1b.s: New tests.
* ld-powerpc/aix52.exp: Run them.
2009-03-14 09:35:46 +00:00
|
|
|
|
2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
|
|
|
|
|
|
|
|
|
|
* bfd-in.h (bfd_xcoff_size_dynamic_sections): Replace the
|
|
|
|
|
bfd_boolean export_defineds parameter with an unsigned int
|
|
|
|
|
auto_export_flags parameter.
|
|
|
|
|
* bfd-in2.h: Regenerate.
|
|
|
|
|
* xcofflink.c (xcoff_archive_contains_shared_object_p): New function,
|
|
|
|
|
split out from xcoff_build_ldsyms.
|
|
|
|
|
(xcoff_covered_by_expall_p): New function.
|
|
|
|
|
(xcoff_auto_export_p): New function, split out from xcoff_build_ldsyms
|
|
|
|
|
but with extra code to handle -bexpfull and -bexpall.
|
|
|
|
|
(xcoff_mark_auto_exports): New function.
|
|
|
|
|
(xcoff_build_ldsyms): Use xcoff_auto_export_p to decide whether
|
|
|
|
|
a function should be automatically exported.
|
|
|
|
|
(bfd_xcoff_size_dynamic_sections): Replace the export_defineds
|
|
|
|
|
parameter with an auto_export_flags parameter. Update ldinfo
|
|
|
|
|
accordingly. Use xcoff_mark_auto_exports to mark all automatically-
|
|
|
|
|
exported symbols.
|
|
|
|
|
|
2009-03-14 09:35:06 +00:00
|
|
|
|
2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
|
|
|
|
|
|
|
|
|
|
* xcofflink.c (xcoff_mark_symbol_by_name): New function.
|
|
|
|
|
(bfd_xcoff_size_dynamic_sections): Use it to mark the entry,
|
|
|
|
|
init and fini functions. Do garbage collection for objects
|
|
|
|
|
without an entry point too.
|
|
|
|
|
|
include/coff/
* internal.h (C_AIX_WEAKEXT): New macro.
(C_WEAKEXT): Use the GNU definition in the generic part of the file,
and conditionally reset it to C_AIX_WEAKEXT in the XCOFF part of
the file.
(CSECT_SYM_P): New macro.
* xcoff.h (L_WEAK): Define.
(EXTERN_SYM_P): New macro.
bfd/
* coffcode.h (coff_pointerize_aux_hook): Update CSECT_SYM_P to
check whether a symbol has csect information.
(coff_print_aux): Likewise.
* coff-rs6000.c (_bfd_xcoff_swap_aux_in): Handle auxillary csect
information for C_AIX_WEAKEXT too.
(_bfd_xcoff_swap_aux_out): Likewise.
(xcoff_reloc_type_br): Handle defweak symbols too.
* coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Handle auxillary csect
information for C_AIX_WEAKEXT too.
(_bfd_xcoff64_swap_aux_out): Likewise.
(xcoff64_reloc_type_br): Handle defweak symbols too.
* coffgen.c (coff_print_symbol): Handle auxillary function
information for C_AIX_WEAKEXT too.
* xcofflink.c (_bfd_xcoff_canonicalize_dynamic_symtab): Set BSF_WEAK
instead of BSF_GLOBAL if the L_WEAK flag is set.
(xcoff_dynamic_definition_p): New function.
(xcoff_link_add_dynamic_symbols): Use it to decide whether ldsym
defines h. Don't change h if ldsym isn't the definition. Otherwise,
always take the symbol class from the ldsym. Use weak bfd symbol
types for weak ldsyms.
(xcoff_link_add_symbols): Use CSECT_SYM_P and EXTERN_SYM_P.
Fix the check for whether a definition is from a shared object.
Allow redefinitions of weak symbols.
(xcoff_link_check_ar_symbols): Use EXTERN_SYM_P.
(xcoff_keep_symbol_p): Likewise.
(bfd_xcoff_size_dynamic_sections): Use CSECT_SYM_P.
(xcoff_link_input_bfd): Use CSECT_SYM_P and EXTERN_SYM_P.
Add .loader entries for C_AIX_WEAKEXT as well as C_EXT symbols,
but mark them as L_WEAK.
(xcoff_write_global_symbol): Treat weak symbols as C_AIX_WEAKEXT
instead of C_EXT if C_AIX_WEAKEXT == C_WEAKEXT.
gas/
* config/tc-ppc.c (ppc_frob_symbol): Add csect information for
C_AIX_WEAKEXT too.
ld/testsuite/
* ld-powerpc/aix-glink-2a.s, ld-powerpc/aix-glink-2a.ex,
ld-powerpc/aix-glink-2b.s, ld-powerpc/aix-glink-2c.s,
ld-powerpc/aix-glink-2c.ex, ld-powerpc/aix-glink-2d.s,
ld-powerpc/aix-glink-2-32.dd, ld-powerpc/aix-glink-2-64.dd,
ld-powerpc/aix-weak-1a.s, ld-powerpc/aix-weak-1b.s,
ld-powerpc/aix-weak-1-rel.hd, ld-powerpc/aix-weak-1-rel.nd,
ld-powerpc/aix-weak-1-dso.hd, ld-powerpc/aix-weak-1-dso.nd,
ld-powerpc/aix-weak-1-dso.dnd, ld-powerpc/aix-weak-1.ex,
ld-powerpc/aix-weak-2a.s, ld-powerpc/aix-weak-2a.ex,
ld-powerpc/aix-weak-2a.nd, ld-powerpc/aix-weak-2b.s,
ld-powerpc/aix-weak-2b.nd, ld-powerpc/aix-weak-2c.s,
ld-powerpc/aix-weak-2c.ex, ld-powerpc/aix-weak-2c.nd,
ld-powerpc/aix-weak-2c.od, ld-powerpc/aix-weak-3a.s,
ld-powerpc/aix-weak-3a.ex, ld-powerpc/aix-weak-3b.s,
ld-powerpc/aix-weak-3b.ex, ld-powerpc/aix-weak-3-32.d,
ld-powerpc/aix-weak-3-32.dd, ld-powerpc/aix-weak-3-64.d,
ld-powerpc/aix-weak-3-64.dd: New tests.
* ld-powerpc/aix52.exp: Run them. Replace tmp/aix-* with
tmp/aix64-* in 64-bit ld options.
2009-03-14 09:34:27 +00:00
|
|
|
|
2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
|
|
|
|
|
|
|
|
|
|
* coffcode.h (coff_pointerize_aux_hook): Update CSECT_SYM_P to
|
|
|
|
|
check whether a symbol has csect information.
|
|
|
|
|
(coff_print_aux): Likewise.
|
|
|
|
|
* coff-rs6000.c (_bfd_xcoff_swap_aux_in): Handle auxillary csect
|
|
|
|
|
information for C_AIX_WEAKEXT too.
|
|
|
|
|
(_bfd_xcoff_swap_aux_out): Likewise.
|
|
|
|
|
(xcoff_reloc_type_br): Handle defweak symbols too.
|
|
|
|
|
* coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Handle auxillary csect
|
|
|
|
|
information for C_AIX_WEAKEXT too.
|
|
|
|
|
(_bfd_xcoff64_swap_aux_out): Likewise.
|
|
|
|
|
(xcoff64_reloc_type_br): Handle defweak symbols too.
|
|
|
|
|
* coffgen.c (coff_print_symbol): Handle auxillary function
|
|
|
|
|
information for C_AIX_WEAKEXT too.
|
|
|
|
|
* xcofflink.c (_bfd_xcoff_canonicalize_dynamic_symtab): Set BSF_WEAK
|
|
|
|
|
instead of BSF_GLOBAL if the L_WEAK flag is set.
|
|
|
|
|
(xcoff_dynamic_definition_p): New function.
|
|
|
|
|
(xcoff_link_add_dynamic_symbols): Use it to decide whether ldsym
|
|
|
|
|
defines h. Don't change h if ldsym isn't the definition. Otherwise,
|
|
|
|
|
always take the symbol class from the ldsym. Use weak bfd symbol
|
|
|
|
|
types for weak ldsyms.
|
|
|
|
|
(xcoff_link_add_symbols): Use CSECT_SYM_P and EXTERN_SYM_P.
|
|
|
|
|
Fix the check for whether a definition is from a shared object.
|
|
|
|
|
Allow redefinitions of weak symbols.
|
|
|
|
|
(xcoff_link_check_ar_symbols): Use EXTERN_SYM_P.
|
|
|
|
|
(xcoff_keep_symbol_p): Likewise.
|
|
|
|
|
(bfd_xcoff_size_dynamic_sections): Use CSECT_SYM_P.
|
|
|
|
|
(xcoff_link_input_bfd): Use CSECT_SYM_P and EXTERN_SYM_P.
|
|
|
|
|
Add .loader entries for C_AIX_WEAKEXT as well as C_EXT symbols,
|
|
|
|
|
but mark them as L_WEAK.
|
|
|
|
|
(xcoff_write_global_symbol): Treat weak symbols as C_AIX_WEAKEXT
|
|
|
|
|
instead of C_EXT if C_AIX_WEAKEXT == C_WEAKEXT.
|
|
|
|
|
|
include/coff/
* xcoff.h (XCOFF_ALLOCATED): New flag.
bfd/
* xcofflink.c (xcoff_mark): When walking the relocations,
only mark the target symbol or the target section, not both.
(xcoff_final_definition_p): New function.
(xcoff_keep_symbol_p): Use it to check whether an external XCOFF
symbol is a valid definition of the associated output symbol.
Use XCOFF_ALLOCATED to stop the same hash table entry having
two output symbols.
(bfd_xcoff_size_dynamic_sections): Set XCOFF_ALLOCATED when
keeping a symbol.
(xcoff_link_input_bfd): Use xcoff_final_definition_p.
ld/testsuite/
* ld-powerpc/aix-no-dup-syms-1a.s, ld-powerpc/aix-no-dup-syms-1b.s,
ld-powerpc/aix-no-dup-syms-1.ex, ld-powerpc/aix-no-dup-syms-1.im,
ld-powerpc/aix-no-dup-syms-1-dso.dnd,
ld-powerpc/aix-no-dup-syms-1-dso.drd,
ld-powerpc/aix-no-dup-syms-1-dso.nd,
ld-powerpc/aix-no-dup-syms-1-dso.rd,
ld-powerpc/aix-no-dup-syms-1-rel.nd,
ld-powerpc/aix-no-dup-syms-1-rel.rd: New tests.
* ld-powerpc/aix52.exp: Run them.
2009-03-14 09:33:39 +00:00
|
|
|
|
2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
|
|
|
|
|
|
|
|
|
|
* xcofflink.c (xcoff_mark): When walking the relocations,
|
|
|
|
|
only mark the target symbol or the target section, not both.
|
|
|
|
|
(xcoff_final_definition_p): New function.
|
|
|
|
|
(xcoff_keep_symbol_p): Use it to check whether an external XCOFF
|
|
|
|
|
symbol is a valid definition of the associated output symbol.
|
|
|
|
|
Use XCOFF_ALLOCATED to stop the same hash table entry having
|
|
|
|
|
two output symbols.
|
|
|
|
|
(bfd_xcoff_size_dynamic_sections): Set XCOFF_ALLOCATED when
|
|
|
|
|
keeping a symbol.
|
|
|
|
|
(xcoff_link_input_bfd): Use xcoff_final_definition_p.
|
|
|
|
|
|
2009-03-14 09:32:56 +00:00
|
|
|
|
2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
|
|
|
|
|
|
|
|
|
|
* xcofflink.c (bfd_xcoff_import_symbol): Treat imported absolute
|
|
|
|
|
symbols as XMC_XO.
|
|
|
|
|
|
2009-03-14 09:32:33 +00:00
|
|
|
|
2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
|
|
|
|
|
|
|
|
|
|
* libcoff-in.h (xcoff_tdata): Add a lineno_counts field.
|
|
|
|
|
* libcoff.h: Regenerate.
|
|
|
|
|
* xcofflink.c (xcoff_link_add_symbols): Record per-symbol
|
|
|
|
|
line-number counts in the bfd's lineno_counts field.
|
|
|
|
|
Don't keep per-csect line-number counts.
|
|
|
|
|
(xcoff_sweep): Don't update per-csect line-number counts.
|
|
|
|
|
(bfd_xcoff_size_dynamic_sections): Count the number of line-number
|
|
|
|
|
entries in each output section.
|
|
|
|
|
(xcoff_link_input_bfd): Get the number of line numbers from
|
|
|
|
|
the bfd's lineno_counts field, rather than recalculating it
|
|
|
|
|
from scratch. Fix the range check when updating C_BINCL and
|
|
|
|
|
C_EINCL symbols.
|
|
|
|
|
(_bfd_xcoff_bfd_final_link): Don't count the output line numbers
|
|
|
|
|
here. Don't expect csects to have line-number counts.
|
|
|
|
|
|
2009-03-14 09:32:06 +00:00
|
|
|
|
2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
|
|
|
|
|
|
|
|
|
|
* libcoff-in.h (xcoff_tdata): Change debug_indices to a signed long.
|
|
|
|
|
* libcoff.h: Regenerate.
|
|
|
|
|
* xcofflink.c (xcoff_keep_symbol_p): New function, using the
|
|
|
|
|
"skip" logic from xcoff_link_input_bfd.
|
|
|
|
|
(bfd_xcoff_size_dynamic_sections): Explicitly skip dynamic
|
|
|
|
|
objects in a dynamic link, rather than checking whether csectpp
|
|
|
|
|
is null. Always allocate debug_index for other objects,
|
|
|
|
|
and always go through the loop. Update the type of debug_index
|
|
|
|
|
after the change above. Read the auxillary csect information
|
|
|
|
|
and use xcoff_keep_symbol_p to decide whether a symbol should
|
|
|
|
|
be kept. Set its debug_index to -2 if not.
|
|
|
|
|
(xcoff_link_input_bfd): Update the type of debug_index after
|
|
|
|
|
the change above and always expect it to be nonnull. Use it to
|
|
|
|
|
test whether a symbol should be stripped, rather than making the
|
|
|
|
|
decision here. Postpone all symbol creation to the second pass.
|
|
|
|
|
|
2009-03-14 09:18:22 +00:00
|
|
|
|
2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
|
|
|
|
|
|
|
|
|
|
* xcofflink.c: (xcoff_mark_symbol): Mark the TOC section when
|
|
|
|
|
creating a descriptor.
|
|
|
|
|
(xcoff_sweep): Don't mark toc_section unless it's needed.
|
|
|
|
|
(bfd_xcoff_size_dynamic_sections): Skip the toc_section
|
|
|
|
|
when marking every bfd.
|
|
|
|
|
(xcoff_link_input_bfd): Skip all TOC anchors.
|
|
|
|
|
(xcoff_toc_section_p, xcoff_find_tc0): New functions.
|
|
|
|
|
(_bfd_xcoff_bfd_final_link): Don't set the output bfd's TOC anchor
|
|
|
|
|
to -1; call xcoff_find_tc0 instead.
|
|
|
|
|
|
2009-03-14 09:17:56 +00:00
|
|
|
|
2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
|
|
|
|
|
|
|
|
|
|
* libcoff-in.h (xcoff_section_tdata): Update commentary.
|
|
|
|
|
* libcoff.h: Regenerate.
|
|
|
|
|
* xcofflink.c (xcoff_link_add_symbols): Set the csect of XTY_ER
|
|
|
|
|
symbols to bfd_und_section_ptr or bfd_abs_section_ptr, rather than
|
|
|
|
|
the previous symbol's csect. Treat last_symndx as an inclusive value
|
|
|
|
|
and simplify its handling.
|
|
|
|
|
(xcoff_mark): Treat last_symndx as an inclusive value. Only mark
|
|
|
|
|
symbols with the right csect. Don't mark rsec when processing
|
2009-03-19 10:40:06 +00:00
|
|
|
|
relocations against undefined or absolute sections.
|
2009-03-14 09:17:56 +00:00
|
|
|
|
(bfd_xcoff_size_dynamic_sections): Don't check the SEC_MARK flag
|
|
|
|
|
of bfd_und_section_ptr.
|
|
|
|
|
(xcoff_link_input_bfd): Likewise.
|
|
|
|
|
|
include/coff/
* xcoff.h (XCOFF_CALLED, XCOFF_IMPORT): Update comments.
(XCOFF_WAS_UNDEFINED): New flag.
(xcoff_link_hash_table): Add an "rtld" field.
bfd/
* coff-rs6000.c (xcoff_ppc_relocate_section): Report relocations
against undefined symbols if the symbol's XCOFF_WAS_UNDEFINED
flag is set. Assert that all undefined symbols are either
imported or defined by a dynamic object.
* coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise.
* xcofflink.c (xcoff_link_add_symbols): Extend function-symbol
handling to all relocations. Only set XCOFF_CALLED for function
symbols.
(xcoff_find_function): New function, split out from...
(bfd_xcoff_export_symbol) ...here.
(xcoff_set_import_path): New function, split out from...
(bfd_xcoff_import_symbol): ...here. Remove assertion for old
meaning of XCOFF_CALLED.
(xcoff_mark_symbol): If we mark an undefined and unimported
symbol, find some way of defining it. If the symbol is a function
descriptor, fill in its definition automatically. If the symbol
is a function, mark its descriptor and allocate room for global
linkage code. Otherwise mark the symbol as implicitly imported.
Move the code for creating function descriptors from...
(xcoff_build_ldsyms): ...here. Use XCOFF_WAS_UNDEFINED to
check for symbols that were implicitly defined.
(xcoff_mark): Don't count any dynamic relocations against
function symbols.
(bfd_xcoff_size_dynamic_sections): Save the rtld parameter
in the xcoff link info.
(xcoff_link_input_bfd): Remove handling of undefined and
unexported symbols.
ld/
* emultempl/aix.em (gld${EMULATION_NAME}_handle_option): Make
-berok and -bernotok control link_info.unresolved_syms_in_objects
and link_info.unresolved_syms_in_shared_libs instead of
force_make_executable.
ld/testsuite/
* ld-powerpc/aix-glink-1.ex, ld-powerpc/aix-glink-1.s,
ld-powerpc/aix-glink-1-32.dd, ld-powerpc/aix-glink-1-64.dd,
ld-powerpc/aix-glink-1-32.d, ld-powerpc/aix-glink-1-64.d: New tests.
* ld-powerpc/aix52.exp: Run them.
2009-03-14 09:17:32 +00:00
|
|
|
|
2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
|
|
|
|
|
|
|
|
|
|
* coff-rs6000.c (xcoff_ppc_relocate_section): Report relocations
|
|
|
|
|
against undefined symbols if the symbol's XCOFF_WAS_UNDEFINED
|
|
|
|
|
flag is set. Assert that all undefined symbols are either
|
|
|
|
|
imported or defined by a dynamic object.
|
|
|
|
|
* coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise.
|
|
|
|
|
* xcofflink.c (xcoff_link_add_symbols): Extend function-symbol
|
|
|
|
|
handling to all relocations. Only set XCOFF_CALLED for function
|
|
|
|
|
symbols.
|
|
|
|
|
(xcoff_find_function): New function, split out from...
|
|
|
|
|
(bfd_xcoff_export_symbol) ...here.
|
|
|
|
|
(xcoff_set_import_path): New function, split out from...
|
|
|
|
|
(bfd_xcoff_import_symbol): ...here. Remove assertion for old
|
|
|
|
|
meaning of XCOFF_CALLED.
|
|
|
|
|
(xcoff_mark_symbol): If we mark an undefined and unimported
|
|
|
|
|
symbol, find some way of defining it. If the symbol is a function
|
|
|
|
|
descriptor, fill in its definition automatically. If the symbol
|
|
|
|
|
is a function, mark its descriptor and allocate room for global
|
|
|
|
|
linkage code. Otherwise mark the symbol as implicitly imported.
|
|
|
|
|
Move the code for creating function descriptors from...
|
2009-03-19 10:40:06 +00:00
|
|
|
|
(xcoff_build_ldsyms): ...here. Use XCOFF_WAS_UNDEFINED to
|
include/coff/
* xcoff.h (XCOFF_CALLED, XCOFF_IMPORT): Update comments.
(XCOFF_WAS_UNDEFINED): New flag.
(xcoff_link_hash_table): Add an "rtld" field.
bfd/
* coff-rs6000.c (xcoff_ppc_relocate_section): Report relocations
against undefined symbols if the symbol's XCOFF_WAS_UNDEFINED
flag is set. Assert that all undefined symbols are either
imported or defined by a dynamic object.
* coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise.
* xcofflink.c (xcoff_link_add_symbols): Extend function-symbol
handling to all relocations. Only set XCOFF_CALLED for function
symbols.
(xcoff_find_function): New function, split out from...
(bfd_xcoff_export_symbol) ...here.
(xcoff_set_import_path): New function, split out from...
(bfd_xcoff_import_symbol): ...here. Remove assertion for old
meaning of XCOFF_CALLED.
(xcoff_mark_symbol): If we mark an undefined and unimported
symbol, find some way of defining it. If the symbol is a function
descriptor, fill in its definition automatically. If the symbol
is a function, mark its descriptor and allocate room for global
linkage code. Otherwise mark the symbol as implicitly imported.
Move the code for creating function descriptors from...
(xcoff_build_ldsyms): ...here. Use XCOFF_WAS_UNDEFINED to
check for symbols that were implicitly defined.
(xcoff_mark): Don't count any dynamic relocations against
function symbols.
(bfd_xcoff_size_dynamic_sections): Save the rtld parameter
in the xcoff link info.
(xcoff_link_input_bfd): Remove handling of undefined and
unexported symbols.
ld/
* emultempl/aix.em (gld${EMULATION_NAME}_handle_option): Make
-berok and -bernotok control link_info.unresolved_syms_in_objects
and link_info.unresolved_syms_in_shared_libs instead of
force_make_executable.
ld/testsuite/
* ld-powerpc/aix-glink-1.ex, ld-powerpc/aix-glink-1.s,
ld-powerpc/aix-glink-1-32.dd, ld-powerpc/aix-glink-1-64.dd,
ld-powerpc/aix-glink-1-32.d, ld-powerpc/aix-glink-1-64.d: New tests.
* ld-powerpc/aix52.exp: Run them.
2009-03-14 09:17:32 +00:00
|
|
|
|
check for symbols that were implicitly defined.
|
|
|
|
|
(xcoff_mark): Don't count any dynamic relocations against
|
|
|
|
|
function symbols.
|
|
|
|
|
(bfd_xcoff_size_dynamic_sections): Save the rtld parameter
|
|
|
|
|
in the xcoff link info.
|
|
|
|
|
(xcoff_link_input_bfd): Remove handling of undefined and
|
|
|
|
|
unexported symbols.
|
|
|
|
|
|
2009-03-14 09:16:01 +00:00
|
|
|
|
2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
|
|
|
|
|
|
|
|
|
|
* coff-rs6000.c (xcoff_reloc_type_br): Make the branch absolute
|
|
|
|
|
if the target is absolute. Fix comment typo.
|
|
|
|
|
(xcoff_ppc_relocate_section): Remove FIXME.
|
|
|
|
|
* coff64-rs6000.c (xcoff64_reloc_type_br): Make the branch absolute
|
|
|
|
|
if the target is absolute.
|
|
|
|
|
|
2009-03-14 09:15:34 +00:00
|
|
|
|
2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
|
|
|
|
|
|
|
|
|
|
* xcofflink.c (xcoff_mark, xcoff_link_input_bfd): Don't copy
|
|
|
|
|
R_POS and R_NEG relocations against absolute symbols to the
|
|
|
|
|
.loader section.
|
|
|
|
|
|
2009-03-14 09:14:57 +00:00
|
|
|
|
2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
|
|
|
|
|
|
|
|
|
|
* coff64-rs6000.c (xcoff64_write_object_contents): Set the cputype
|
|
|
|
|
to 2 for bfd_mach_ppc_620.
|
|
|
|
|
|
2009-03-14 09:11:38 +00:00
|
|
|
|
2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
|
|
|
|
|
|
|
|
|
|
* config.bfd: Treat AIX 6+ in the same way as AIX 5.
|
|
|
|
|
* configure.in: Likewise.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
|
2009-03-13 13:39:57 +00:00
|
|
|
|
2009-03-13 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR binutils/9945
|
|
|
|
|
* elf.c (assign_section_numbers): Generate symbol table if there
|
|
|
|
|
is any relocation in output.
|
|
|
|
|
(_bfd_elf_compute_section_file_positions): Likewise.
|
|
|
|
|
|
2009-03-13 11:34:43 +00:00
|
|
|
|
2009-03-13 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR 9934
|
|
|
|
|
* elf-bfd.h (NUM_SHDR_ENTRIES): Cope with an empty section.
|
|
|
|
|
* elflink.c (elf_link_read_relocs_from_section): Use
|
|
|
|
|
NUM_SHDR_ENTRIES. Gracefully handle the case where there are
|
|
|
|
|
relocs but no symbol table.
|
|
|
|
|
* elf32-arm.c (elf32_arm_check_relocs): Likewise.
|
|
|
|
|
|
2009-03-12 17:13:41 +00:00
|
|
|
|
2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/9938
|
|
|
|
|
* elf32-i386.c (elf_i386_check_tls_transition): Use strncmp
|
|
|
|
|
to check ___tls_get_addr.
|
|
|
|
|
|
|
|
|
|
* elf64-x86-64.c (elf64_x86_64_check_tls_transition): Use
|
|
|
|
|
strncmp to check __tls_get_addr.
|
|
|
|
|
|
2009-03-12 10:57:18 +00:00
|
|
|
|
2009-03-12 Andrew Stubbs <ams@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* dwarf2.c (read_section): Always check the offset, even when the
|
|
|
|
|
section has been read before.
|
|
|
|
|
|
2009-03-11 16:42:23 +00:00
|
|
|
|
2009-03-11 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* elf32-i386.c (elf_i386_check_tls_transition): Fix a typo in
|
|
|
|
|
comments.
|
|
|
|
|
|
2009-03-11 04:36:40 +00:00
|
|
|
|
2009-03-11 Chris Demetriou <cgd@google.com>
|
|
|
|
|
|
|
|
|
|
* bfd.c (BFD_DETERMINISTIC_OUTPUT): New flag.
|
|
|
|
|
* bfd-in2.h: Regenerate.
|
|
|
|
|
* archive.c (bfd_ar_hdr_from_filesystem): If BFD_DETERMINISTIC_OUTPUT
|
|
|
|
|
flag is set, use 0 for uid, gid, and timestamp, and use 0644 for file
|
|
|
|
|
mode.
|
|
|
|
|
(bsd_write_armap): Likewise.
|
|
|
|
|
(_bfd_archive_bsd_update_armap_timestamp): If BFD_DETERMINISTIC_OUTPUT
|
|
|
|
|
flag is set, do nothing.
|
|
|
|
|
(coff_write_armap): If BFD_DETERMINISTIC_OUTPUT flag is set, use 0
|
|
|
|
|
for timestamp.
|
|
|
|
|
|
2009-03-11 00:18:02 +00:00
|
|
|
|
2009-03-11 Ulrich Weigand <uweigand@de.ibm.com>
|
|
|
|
|
|
|
|
|
|
* elf32-spu.c (find_function_stack_adjust): Handle sf instruction
|
|
|
|
|
used to update stack pointer.
|
|
|
|
|
|
2009-03-07 23:38:13 +00:00
|
|
|
|
2009-03-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
|
|
|
|
|
|
|
|
|
|
PR binutils/9921
|
|
|
|
|
* som.c (som_bfd_derive_misc_symbol_info): Set symbol type ST_ABSOLUTE
|
|
|
|
|
for unknown symbols in absolute section.
|
|
|
|
|
|
2009-03-06 12:14:40 +00:00
|
|
|
|
2009-03-06 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* po/es.po: Updated Spanish translation.
|
|
|
|
|
|
2009-03-06 08:57:58 +00:00
|
|
|
|
2009-03-05 Christophe Lyon <christophe.lyon@st.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (group_sections): Take next section size into
|
|
|
|
|
account before accepting to group it.
|
|
|
|
|
|
2009-03-05 17:28:21 +00:00
|
|
|
|
2009-03-05 Christophe Lyon <christophe.lyon@st.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (arm_type_of_stub): Handle long branches targetting
|
|
|
|
|
PLT entries.
|
|
|
|
|
(elf32_arm_final_link_relocate): Likewise.
|
|
|
|
|
|
2009-03-05 01:04:56 +00:00
|
|
|
|
2009-03-05 Moritz Kroll <Moritz.Kroll@gmx.de>
|
|
|
|
|
|
|
|
|
|
PR 9923
|
|
|
|
|
* peXXigen.c (_bfd_XXi_final_link_postscript): Check h->root.type.
|
|
|
|
|
|
2009-03-04 05:50:50 +00:00
|
|
|
|
2009-03-04 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* reloc.c (BFD_RELOC_PPC_TLSGD, BFD_RELOC_PPC_TLSLD): New.
|
|
|
|
|
* section.c (struct bfd_section): Add has_tls_get_addr_call.
|
|
|
|
|
(BFD_FAKE_SECTION): Init new flag.
|
|
|
|
|
* ecoff.c (bfd_debug_section): Likewise.
|
|
|
|
|
* bfd-in2.h: Regenerate.
|
|
|
|
|
* libbfd.h: Regenerate.
|
|
|
|
|
* elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_TLSGD and R_PPC_TLSLD.
|
|
|
|
|
(ppc_elf_reloc_type_lookup): Handle new relocs.
|
|
|
|
|
(ppc_elf_check_relocs): Set has_tls_get_addr_call on finding such
|
|
|
|
|
without marker relocs.
|
|
|
|
|
(ppc_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
|
|
|
|
|
if section has no old-style calls.
|
|
|
|
|
(ppc_elf_relocate_section): Set tls_mask for non-tls relocs too.
|
|
|
|
|
Don't try to optimize new-style __tls_get_addr call when handling
|
|
|
|
|
arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
|
|
|
|
|
relocs.
|
|
|
|
|
* elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_TLSGD, R_PPC64_TLSLD.
|
|
|
|
|
(ppc64_elf_reloc_type_lookup): Handle new relocs.
|
|
|
|
|
(ppc64_elf_check_relocs): Set has_tls_get_addr_call on finding such
|
|
|
|
|
without marker relocs.
|
|
|
|
|
(ppc64_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
|
|
|
|
|
if section has no old-style calls. Set toc_ref for new relocs as
|
|
|
|
|
appropriate.
|
|
|
|
|
(ppc64_elf_relocate_section): Set tls_mask for non-tls relocs too.
|
|
|
|
|
Don't try to optimize new-style __tls_get_addr call when handling
|
|
|
|
|
arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
|
|
|
|
|
relocs.
|
|
|
|
|
|
2009-03-04 02:10:34 +00:00
|
|
|
|
2009-03-04 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
PR 6768
|
|
|
|
|
* configure.in: Test for ld --as-needed support. Link shared
|
|
|
|
|
libbfd against libm.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
|
2009-03-04 01:16:15 +00:00
|
|
|
|
2009-03-03 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* Makefile.am: Run "make dep-am".
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2009-03-02 10:33:08 +00:00
|
|
|
|
2009-03-02 Qinwei <qinwei@sunnorth.com.cn>
|
|
|
|
|
|
|
|
|
|
* elf32-score7.c: New file.
|
|
|
|
|
* elf32-score.h: New file.
|
|
|
|
|
* elf32-score.c: Add code to support score 7. Set score7 as the
|
|
|
|
|
default.
|
|
|
|
|
* cpu-score.c: Add score7 architecure.
|
|
|
|
|
(compatibile): New function.
|
|
|
|
|
* Makefile.am: Add rules for building elf32-score7 object.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* configure.in: Add elf32-score7 object to score vectors.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
* reloc.c: Add score7 relocs.
|
|
|
|
|
* archures.c: Add score3 and score7 machine numbers.
|
|
|
|
|
* bfd-in2.h: Regenerate.
|
|
|
|
|
* libbfd.h: Regenerate.
|
|
|
|
|
|
2009-03-01 18:57:19 +00:00
|
|
|
|
2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
|
|
|
|
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
|
2009-03-01 17:08:54 +00:00
|
|
|
|
2009-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
|
|
|
|
|
|
2009-03-01 18:15:53 +00:00
|
|
|
|
* elf32-hppa.c (hppa32_elf_local_refcounts): New function.
|
|
|
|
|
(elf32_hppa_check_relocs): Use it.
|
|
|
|
|
|
2009-03-01 17:08:54 +00:00
|
|
|
|
* elf_hppa_add_symbol_hook (elf_hppa_add_symbol_hook): Move to
|
|
|
|
|
elf64-hppa.c.
|
|
|
|
|
(elf_hppa_unmark_useless_dynamic_symbols): Likewise.
|
|
|
|
|
(elf_hppa_remark_useless_dynamic_symbols): Likewise.
|
|
|
|
|
(elf_hppa_is_dynamic_loader_symbol): Likewise.
|
|
|
|
|
(elf_hppa_record_segment_addrs): Likewise.
|
|
|
|
|
(elf_hppa_final_link): Likewise.
|
|
|
|
|
(elf_hppa_relocate_insn): Likewise.
|
|
|
|
|
(elf_hppa_final_link_relocate): Likewise.
|
|
|
|
|
(elf64_hppa_relocate_section): Likewise.
|
|
|
|
|
* elf64-hppa.c: Insert above.
|
|
|
|
|
|
* elf-hppa.h (elf_hppa_final_link): Use elf_hppa_final_link.
(elf_hppa_final_link_relocate ): Rewrite eliminating dynamic hash table.
(elf_hppa_relocate_section): Likewise.
* elf64-hppa.c (struct elf64_hppa_link_hash_entry): Change to derive
from struct elf_link_hash_entry. Add count field.
(struct elf64_hppa_dyn_hash_table): Delete.
(struct elf64_hppa_link_hash_table): Delete dyn_hash_table field.
(elf64_hppa_hash_table): Rename to hppa_link_hash_table.
(hppa_elf_hash_entry, eh_name): Define.
(elf64_hppa_new_dyn_hash_entry): Delete.
(elf64_hppa_dyn_hash_lookup): Delete.
(elf64_hppa_dyn_hash_traverse): Delete.
(get_dyn_name): Delete.
(elf64_hppa_finalize_opd): Use struct elf_link_hash_entry * instead
of struct elf64_hppa_dyn_hash_entry *.
(elf64_hppa_finalize_dlt, llocate_global_data_dlt,
allocate_global_data_plt, allocate_global_data_stub,
allocate_global_data_opd, count_dyn_reloc, allocate_dynrel_entries):
Likewise.
(hppa64_link_hash_newfunc): New.
(elf64_hppa_hash_table_create): Rework.
(count_dyn_reloc): Likewise.
(hppa64_elf_local_refcounts): New.
(elf64_hppa_check_relocs): Rework using standard technique for recording
local DLT, PLT and OPD reference counts.
(elf64_hppa_dynamic_symbol_p): Revise using "eh" for struct
elf_link_hash_entry *.
(elf64_hppa_mark_exported_functions, allocate_global_data_dlt,
allocate_global_data_plt, allocate_global_data_stub,
allocate_global_data_opd, allocate_dynrel_entries,
elf64_hppa_adjust_dynamic_symbol,
elf64_hppa_mark_milli_and_exported_functions): Likewise.
(elf64_hppa_create_dynamic_sections, elf64_hppa_size_dynamic_sections):
Use hppa_link_hash_table. Rework.
(elf64_hppa_link_output_symbol_hook): Rework.
(elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd,
elf64_hppa_finalize_dlt, elf64_hppa_finalize_dynreloc,
elf64_hppa_finish_dynamic_sections): Likewise.
2009-03-01 02:10:49 +00:00
|
|
|
|
2009-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
|
|
|
|
|
|
|
|
|
|
* elf-hppa.h (elf_hppa_final_link): Use elf_hppa_final_link.
|
|
|
|
|
(elf_hppa_final_link_relocate ): Rewrite eliminating dynamic hash table.
|
|
|
|
|
(elf_hppa_relocate_section): Likewise.
|
|
|
|
|
* elf64-hppa.c (struct elf64_hppa_link_hash_entry): Change to derive
|
|
|
|
|
from struct elf_link_hash_entry. Add count field.
|
|
|
|
|
(struct elf64_hppa_dyn_hash_table): Delete.
|
|
|
|
|
(struct elf64_hppa_link_hash_table): Delete dyn_hash_table field.
|
|
|
|
|
(elf64_hppa_hash_table): Rename to hppa_link_hash_table.
|
|
|
|
|
(hppa_elf_hash_entry, eh_name): Define.
|
|
|
|
|
(elf64_hppa_new_dyn_hash_entry): Delete.
|
|
|
|
|
(elf64_hppa_dyn_hash_lookup): Delete.
|
|
|
|
|
(elf64_hppa_dyn_hash_traverse): Delete.
|
|
|
|
|
(get_dyn_name): Delete.
|
|
|
|
|
(elf64_hppa_finalize_opd): Use struct elf_link_hash_entry * instead
|
|
|
|
|
of struct elf64_hppa_dyn_hash_entry *.
|
|
|
|
|
(elf64_hppa_finalize_dlt, llocate_global_data_dlt,
|
|
|
|
|
allocate_global_data_plt, allocate_global_data_stub,
|
|
|
|
|
allocate_global_data_opd, count_dyn_reloc, allocate_dynrel_entries):
|
|
|
|
|
Likewise.
|
|
|
|
|
(hppa64_link_hash_newfunc): New.
|
|
|
|
|
(elf64_hppa_hash_table_create): Rework.
|
|
|
|
|
(count_dyn_reloc): Likewise.
|
|
|
|
|
(hppa64_elf_local_refcounts): New.
|
|
|
|
|
(elf64_hppa_check_relocs): Rework using standard technique for recording
|
|
|
|
|
local DLT, PLT and OPD reference counts.
|
|
|
|
|
(elf64_hppa_dynamic_symbol_p): Revise using "eh" for struct
|
|
|
|
|
elf_link_hash_entry *.
|
|
|
|
|
(elf64_hppa_mark_exported_functions, allocate_global_data_dlt,
|
|
|
|
|
allocate_global_data_plt, allocate_global_data_stub,
|
|
|
|
|
allocate_global_data_opd, allocate_dynrel_entries,
|
|
|
|
|
elf64_hppa_adjust_dynamic_symbol,
|
|
|
|
|
elf64_hppa_mark_milli_and_exported_functions): Likewise.
|
|
|
|
|
(elf64_hppa_create_dynamic_sections, elf64_hppa_size_dynamic_sections):
|
|
|
|
|
Use hppa_link_hash_table. Rework.
|
|
|
|
|
(elf64_hppa_link_output_symbol_hook): Rework.
|
|
|
|
|
(elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd,
|
|
|
|
|
elf64_hppa_finalize_dlt, elf64_hppa_finalize_dynreloc,
|
|
|
|
|
elf64_hppa_finish_dynamic_sections): Likewise.
|
|
|
|
|
|
2009-02-26 15:37:53 +00:00
|
|
|
|
2009-02-26 Christophe Lyon <christophe.lyon@st.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (stub_reloc_type): Removed.
|
|
|
|
|
(insn_sequence): Renamed reloc_type field to r_type.
|
|
|
|
|
(elf32_arm_stub_long_branch_v4t_arm_thumb_pic): New stub.
|
|
|
|
|
(elf32_arm_stub_long_branch_v4t_thumb_arm_pic): Likewise.
|
|
|
|
|
(elf32_arm_stub_long_branch_thumb_only_pic): Likewise.
|
|
|
|
|
(elf32_arm_stub_type): Add new enum entries for the new stubs.
|
|
|
|
|
(arm_stub_is_thumb): Catch new stubs.
|
|
|
|
|
(arm_type_of_stub): Handle new stubs.
|
|
|
|
|
(arm_size_one_stub): Use ARRAY_SIZE. Handle new stubs.
|
|
|
|
|
(bfd_elf32_arm_process_before_allocation): Remove useless
|
|
|
|
|
condition.
|
|
|
|
|
|
2009-02-25 14:39:35 +00:00
|
|
|
|
2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* elf.c (elf_find_function): Use is_function_type to check
|
|
|
|
|
function symbol.
|
|
|
|
|
|
2009-02-24 23:26:40 +00:00
|
|
|
|
2009-02-24 Sterling Augustine <sterling@jaw.hq.tensilica.com>
|
|
|
|
|
|
|
|
|
|
* xtensa-modules.c: Revert to previous version 1.11 due
|
|
|
|
|
to inadvertant commit.
|
|
|
|
|
|
2009-02-24 22:51:10 +00:00
|
|
|
|
2009-02-24 Sterling Augustine <sterling@tensilica.com>
|
|
|
|
|
|
|
|
|
|
* elf32-xtensa.c (text_action_add): Separate test for action
|
|
|
|
|
type. Break if saved action is ta_widen_insn at same offset.
|
|
|
|
|
|
2009-02-24 22:44:18 +00:00
|
|
|
|
2009-02-24 Daniel Jacobowitz <dan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (elf32_arm_stub_long_branch_any_any_pic): Rename
|
|
|
|
|
to elf32_arm_stub_long_branch_any_arm_pic.
|
|
|
|
|
(elf32_arm_stub_long_branch_any_thumb_pic): New.
|
|
|
|
|
(enum elf32_arm_stub_type, arm_type_of_stub)
|
|
|
|
|
(arm_size_one_stub): Handle any to ARM PIC and any to Thumb PIC
|
|
|
|
|
separately.
|
|
|
|
|
|
2009-02-24 Joseph Myers <joseph@codesourcery.com>
bfd/
* elf32-arm.c (PREV_SEC): Update comment.
(group_sections): Rename argument to stubs_always_after_branch.
Reverse the list and place stubs at the end of input sections.
Undefine NEXT_SEC.
(elf32_arm_size_stubs): Update to use stubs_always_after_branch.
ld/
* ld.texinfo (ARM): Document changed meaning of --stub-group-size.
* emultempl/armelf.em (hook_in_stub): Insert after the input section.
(elf32_arm_add_stub_section): Update comment.
(PARSE_AND_LIST_OPTIONS): Update help for --stub-group-size.
2009-02-24 Daniel Jacobowitz <dan@codesourcery.com>
ld/testsuite/
* ld-arm/arm-elf.exp (armeabitests): Update duplicate test names.
Use normal output files for big-endian.
* ld-arm/farcall-arm-arm-be.d, ld-arm/farcall-thumb-arm-be.d: Delete.
* ld-arm/farcall-arm-arm-be8.d, ld-arm/farcall-arm-arm-pic-veneer.d,
ld-arm/farcall-arm-arm.d, ld-arm/farcall-arm-thumb-blx-pic-veneer.d,
ld-arm/farcall-arm-thumb-blx.d, ld-arm/farcall-arm-thumb-pic-veneer.d,
ld-arm/farcall-arm-thumb.d, ld-arm/farcall-group-size2.d,
ld-arm/farcall-group.d, ld-arm/farcall-mix.d, ld-arm/farcall-mix2.d,
ld-arm/farcall-thumb-arm-be8.d,
ld-arm/farcall-thumb-arm-blx-pic-veneer.d,
ld-arm/farcall-thumb-arm-blx.d, ld-arm/farcall-thumb-arm-short.d,
ld-arm/farcall-thumb-arm.d,
ld-arm/farcall-thumb-thumb-blx-pic-veneer.d,
ld-arm/farcall-thumb-thumb-blx.d, ld-arm/farcall-thumb-thumb-m.d,
ld-arm/farcall-thumb-thumb.d, ld-arm/thumb2-bl-as-thumb1-bad.d,
ld-arm/thumb2-bl-bad.d: Update for moved stubs.
2009-02-24 22:43:10 +00:00
|
|
|
|
2009-02-24 Joseph Myers <joseph@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (PREV_SEC): Update comment.
|
|
|
|
|
(group_sections): Rename argument to stubs_always_after_branch.
|
|
|
|
|
Reverse the list and place stubs at the end of input sections.
|
|
|
|
|
Undefine NEXT_SEC.
|
|
|
|
|
(elf32_arm_size_stubs): Update to use stubs_always_after_branch.
|
|
|
|
|
|
2009-02-24 00:26:40 +00:00
|
|
|
|
2009-02-23 Daniel Jacobowitz <dan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (arm_build_one_stub): Initialize stub_reloc_offset.
|
|
|
|
|
Fix formatting.
|
|
|
|
|
(arm_size_one_stub): Remove unnecessary break.
|
|
|
|
|
(arm_map_one_stub): Fix formatting. Return after BFD_FAIL.
|
|
|
|
|
|
|
|
|
|
2009-02-23 Christophe Lyon <christophe.lyon@st.com>
|
2009-02-23 21:48:53 +00:00
|
|
|
|
|
|
|
|
|
* elf32-arm.c (stub_insn_type): New type.
|
|
|
|
|
(stub_reloc_type): Likewise.
|
|
|
|
|
(insn_sequence): Likewise.
|
|
|
|
|
(elf32_arm_stub_long_branch_any_any): Encode using insn_sequence.
|
|
|
|
|
(elf32_arm_stub_long_branch_v4t_arm_thumb): Likewise.
|
|
|
|
|
(elf32_arm_stub_long_branch_thumb_only): Likewise.
|
|
|
|
|
(elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
|
|
|
|
|
(elf32_arm_stub_short_branch_v4t_thumb_arm): Likewise.
|
|
|
|
|
(elf32_arm_stub_long_branch_any_any_pic): Likewise.
|
|
|
|
|
(elf32_arm_stub_hash_entry): Add new helper fields.
|
|
|
|
|
(stub_hash_newfunc): Initialize these new fields.
|
|
|
|
|
(arm_build_one_stub): Encode Arm and Thumb instructions separately
|
|
|
|
|
to take endianness into account.
|
|
|
|
|
(arm_size_one_stub): Compute size of stubs using insn_sequence.
|
|
|
|
|
(arm_map_one_stub): Code is now more generic, thanks to
|
|
|
|
|
insn_sequence.
|
|
|
|
|
|
2009-02-23 10:03:47 +00:00
|
|
|
|
2009-02-23 Christophe Lyon <christophe.lyon@st.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (elf32_arm_stub_long_branch_thumb_only): Fix stub
|
|
|
|
|
code.
|
|
|
|
|
(elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
|
|
|
|
|
(arm_type_of_stub): Use Thumb-only long branch stub (non-PIC) when
|
|
|
|
|
BLX is not available. Fix typo in warning message. Add comments
|
|
|
|
|
and improve formatting.
|
|
|
|
|
(arm_build_one_stub): Adjust to new
|
|
|
|
|
elf32_arm_stub_long_branch_v4t_thumb_arm stub.
|
|
|
|
|
(arm_map_one_stub): Likewise.
|
|
|
|
|
|
2009-02-23 Tristan Gingold <gingold@adacore.com>
* vms.h: Update copyright year, fix comments, reorder declarations.
(_bfd_save_vms_section): Remove the prototype.
(EGPS_S_V_NO_SHIFT): New constant.
(bfd_vms_set_section_flags): New prototype.
(EGPS_S_B_ALIGN, EGPS_S_W_FLAGS, EGPS_S_L_ALLOC, EGPS_S_B_NAMLNG): New
constants.
(EGSY_S_W_FLAGS): Ditto.
(EGSY_S_V_QUAD_VAL): Ditto.
(ESDF_S_L_VALUE, ESDF_S_L_PSINDX, ESDF_S_B_NAMLNG): Ditto.
(EGST_S_W_FLAGS, EGST_S_Q_LP_1, EGST_S_Q_LP_2, EGST_S_L_PSINDX,
EGST_S_B_NAMLNG): Ditto.
(ESRF_S_B_NAMLNG): Ditto.
(ETIR_S_C_HEADER_SIZE): Ditto.
(EGPS_S_V_ALLOC_64BIT): Ditto.
(DST_S_C_EPILOG): Ditto.
(DST_S_C_SRC_SETLNUM_L, DST_S_C_SRC_SETLNUM_W) : Ditto.
(DST_S_C_SRC_INCRLNUM_B): Ditto.
(DST_S_B_PCLINE_UNSBYTE, DST_S_W_PCLINE_UNSWORD): Ditto.
(DST_S_L_PCLINE_UNSLONG): Ditto.
(DST_S_B_MODBEG_NAME, DST_S_L_RTNBEG_ADDRESS) : Ditto
(DST_S_B_RTNBEG_NAME, DST_S_L_RTNEND_SIZE): Ditto
(DST_S_C_SOURCE_HEADER_SIZE): Ditto.
(DST_S_B_SRC_DF_LENGTH, DST_S_W_SRC_DF_FILEID): Ditto.
(DST_S_B_SRC_DF_FILENAME, DST_S_B_SRC_UNSBYTE): Ditto.
(DST_S_B_SRC_UNSBYTE): Ditto.
(DST_S_W_SRC_UNSWORD, DST_S_L_SRC_UNSLONG): Ditto.
Add prototypes.
(vms_section, vms_reloc): Remove types.
(hdr_struc): Replaced by ...
(hdr_struct): ... new type.
(EMH_S_W_HDRTYP, EMH_S_B_STRLVL, EMH_S_L_ARCH1): New constants.
(EMH_S_L_ARCH2, EMH_S_L_RECSIZ, EMH_S_B_NAMLNG): Ditto.
(EMH_DATE_LENGTH): Ditto.
(eom_struc): Replaced by ...
(eom_struct): ... new type.
(EEOM_S_L_TOTAL_LPS, EEOM_S_W_COMCOD, EEOM_S_B_TFRFLG): New constants.
(EEOM_S_L_PSINDX, EEOM_S_L_TFRADR): Ditto.
(EIHD_S_K_MAJORID, EIHD_S_K_MINORID, EIHD_S_K_EXE): Ditto.
(EIHD_S_L_SIZE, EIHD_S_L_ISDOFF, EIHD_S_L_SYMDBGOFF): Ditto.
(EIHD_S_Q_SYMVVA, EIHD_S_L_IMGTYPE): Ditto.
(EISD_S_L_EISDSIZE, EISD_S_L_SECSIZE, EISD_S_Q_VIR_ADDR): Ditto.
(EISD_S_L_FLAGS, EISD_S_L_VBN, EISD_S_R_CONTROL): Ditto.
(EISD_S_L_IDENT, EISD_S_T_GBLNAM): Ditto.
(EISD_S_M_GBL, EISD_S_M_CRF, EISD_S_M_DZRO, EISD_S_M_WRT): Ditto.
(EISD_S_M_INITALCODE, EISD_S_M_BASED, EISD_S_M_FIXUPVEC): Ditto.
(EISD_S_M_RESIDENT, EISD_S_M_VECTOR, EISD_S_M_PROTECT): Ditto.
(EISD_S_M_LASTCLU, EISD_S_M_EXE, EISD_S_M_NONSHRADR): Ditto.
(EISD_S_M_QUAD_LENGTH, EISD_S_M_ALLOC_64BIT): Ditto.
(EIHS_S_L_DSTVBN, EIHS_S_L_DSTSIZE, EIHS_S_L_GSTVBN): Ditto.
(EIHS_S_L_GSTSIZE, EIHS_S_L_DMTVBN, EIHS_S_L_DMTBYTES): Ditto.
(DBG_S_L_DMT_MODBEG, DBG_S_L_DST_SIZE): Ditto.
(DBG_S_W_DMT_PSECT_COUNT, DBG_S_C_DMT_HEADER_SIZE): Ditto.
(DBG_S_L_DMT_PSECT_START, DBG_S_L_DMT_PSECT_LENGTH)
(DBG_S_C_DMT_PSECT_SIZE): Ditto.
(enum file_type_enum): New type.
(struct location_struct): Removed.
(struct fileinfo, struct srecinfo, struct lineinfo): New types.
(struct funcinfo, struct module): Ditto.
(struct vms_private_data_struct): Update fields.
(struct vms_section_data_struct): New type.
* vms.c: Update copyright year, fix comments,
Fix includes for DECC, add prototypes.
(vms_initialize): Use bfd_alloc instead of bfd_zalloc and remove
some initializers.
Use flavour to set is_vax, location_stack is removed.
(struct pair): Declare.
(fill_section_ptr): Initialize variables at declaration.
Add guard to set SECTION_SYM flag, handlde und section.
(vms_fixup_sections): Use struct pair for fill_section_ptr argument.
(_bfd_vms_slurp_object_records): New function, replaces previous
vms_object_p.
(vms_slurp_module): New function.
(vms_slurp_image): Ditto.
(vms_object_p): Complete rewrite.
(vms_mkobject): Use is_vax field to slect architecture.
(free_reloc_stream): New function.
(vms_convert_to_var): Ditto.
(vms_convert_to_var_1): Ditto.
(vms_convert_to_var_unix_filename): Ditto.
(vms_close_and_cleanup): Call free_reloc_stream, convert file to
VAR format on VMS.
(vms_new_section_hook): Set alignment to 0, allocate private data.
(vms_get_section_contents): Load content.
(vms_get_symbol_info): Handle undefined section.
(vms_find_nearest_line): Handle.
(alloc_reloc_stream): New function.
(vms_slurp_reloc_table): Ditto.
(vms_get_reloc_upper_bound): Make it real.
(vms_canonicalize_reloc): Do the real work.
(alpha_howto_table): Add ALPHA_R_NOP, ALPHA_R_BSR, ALPHA_R_LDA,
ALPHA_R_BOH.
(vms_bfd_reloc_type_lookup): Handle NOP, BSR, LDA and BOH.
(vms_set_arch_mach): Check arch.
(vms_set_section_contents): Copy the content after allocation.
(vms_alpha_vec): Update object flags.
* vms-tir.c: Update copyright year, fix comments,
add prototypes for new functions.
(dst_define_location): New function.
(dst_restore_location): New function.
(dst_retrieve_location): New function.
(dst_check_allocation): New function.
(image_dump): Call dst_check_allocation.
(image_write_b): Ditto.
(image_write_w): Ditto.
(image_write_l): Ditto.
(image_write_q): Ditto.
(cmd_name): Handle STA_LW, STA_QW, STO_OFF, STO_IMM, STO_IMMR, STO_LW,
STO_QW, OPR_ADD, CTL_SETRB, STC_LP_PSB, CTL_DFLOC, CTL_STLOC,
CTL_STKDL.
Call error handler instead of abort if name is not known.
(etir_sta): Add quarter_relocs argument and set it.
Fix cast.
(etir_sto): Ditto.
(etir_opr): Ditto, return FALSE in case of error.
(etir_ctl): Add quarter_relocs argument and set it, fix cast.
Fix CTL_DFLOC, CTL_STLOC, CTL_STKDL.
(etir_stc): Add quarter_relocs argument and set it, fix cast.
Fix STC_LP, STC_LP_PSB, STC_GBL and STC_CGA.
Handle STC_LP_PSB, STC_BSR_GBL, STC_LDA_GBL, STC_BOH_GBL.
Move STC_NOP_PS, STC_BSR_PS, STC_LDA_PS, STC_BOH_PS, STC_NBH_PS.
Return FALSE in case of error.
(tir_sta): Change sign of psect.
(tir_ctl): Ditto.
(tir_cmd): Fix cast. Makes tir_table static const.
(etir_cmd): Add quarter_relocs argument, makes etir_table const,
add argument to explain.
(analyze_etir): Initialize maxptr, add quarter_relocs
declaration, move some declarations into inner scopes.
Handle quarter_relocs and STO_IMM.
(_bfd_vms_slurp_tir): Use constant instead of hard-coded values.
(_bfd_vms_slurp_relocs): New function.
(_bfd_vms_decode_relocs): New function.
(sto_imm): Rewritten.
(start_first_etbt_record): New function.
(start_another_etbt_record): Ditto.
(etir_output_check): Ditto.
(defer_reloc_p): Ditto.
(_bfd_vms_write_tir): Remove nextoffset, convert a while-loop to
a for-loop. Correctly deals with contents, deals with .vmsdebug,
rewritte relocations handling.
(_bfd_vms_write_tbt): Removed.
(_bfd_vms_write_dbg): Ditto.
* vms-misc.c: Update copyright year, Fix comments.
(_bfd_vms_get_header_values): Use 'size' instead of 'length'.
(maybe_adjust_record_pointer_for_object): New function.
(_bfd_vms_get_first_record): New function, replaces ...
(_bfd_vms_get_record): .. removed.
(_bfd_vms_get_object_record): New function.
(_bfd_vms_get_object_record): New function.
(vms_get_remaining_object_record): New function, replaces ...
(_bfd_vms_get_next_record): ... removed.
(add_new_contents): Removed.
(_bfd_save_vms_section): Removed.
(_bfd_get_vms_section): Removed.
(_bfd_vms_output_flush): Write in VAR format.
(new_symbol): Don't make UND section.
* vms-hdr.c: Update copyright year, update list of record handled.
(_bfd_vms_slurp_hdr): rec_length renamed to rec_size.
(_bfd_vms_write_hdr): Strip vms and unix patches,
add comments, truncate module name at 31 characters,
use constants instead of hard-coded value,
write BFD version instead of a fixed string.
(_bfd_vms_slurp_ihd): New function.
(_bfd_vms_slurp_isd): Ditto.
(_bfd_vms_slurp_ihs): Ditto.
(new_module): Ditto.
(parse_module): Ditto
(build_module_list): Ditto.
(module_find_nearest_line): Ditto.
(_bfd_vms_find_nearest_dst_line): Ditto.
(vms_slurp_debug): Ditto.
(_bfd_vms_slurp_dbg): Ditto.
(_bfd_vms_slurp_tbt): Ditto.
(_bfd_vms_write_dbg): Ditto.
(_bfd_vms_write_tbt): Ditto.
* vms-gsd.c: Update copyright year, update list of records handled.
(EVAX_LITERALS_NAME): New macro.
(evax_section_flags): Add an entry for EVAX_LITERALS_NAME.
(gpsflagdesc, gsyflagdesc): Moved out of _bfd_vms_slurp_gsd.
(register_universal_symbol): New function and prototype.
(_bfd_vms_slurp_gsd): Fix indentations and casts,
improve debug messages,
use constants instead of hard-coded value,
fix missing endianness conversion,
handle global symbol (SYMG).
(bfd_vms_set_section_flags): New function.
(_bfd_vms_write_gsd): Don't write .vmsdebug section,
handle section literals,
fix indentation,
handle section bfd and vms flags,
don't output LIB$INITIALIZE symbol,
fix handling of weak symbols,
fix evax vs vax procedure descriptor,
handle absolute symbols.
* reloc.c (BFD_RELOC_ALPHA_NOP, BFD_RELOC_ALPHA_BSR,
BFD_RELOC_ALPHA_LDA, BFD_RELOC_ALPHA_BOH): New relocations.
* makefile.vms (DEFS): Fix flags for VMS.
* bfdio.c (real_fopen): Handle multiple VMS fopen attributes.
* bfd-in2.h: Regenerated.
* libbfd.h: Regenerated.
2009-02-23 09:28:43 +00:00
|
|
|
|
2009-02-23 Tristan Gingold <gingold@adacore.com>
|
2009-02-25 16:50:01 +00:00
|
|
|
|
Eric Botcazou <ebotcazou@adacore.com>
|
|
|
|
|
Douglas B Rupp <rupp@gnat.com>
|
2009-02-23 Tristan Gingold <gingold@adacore.com>
* vms.h: Update copyright year, fix comments, reorder declarations.
(_bfd_save_vms_section): Remove the prototype.
(EGPS_S_V_NO_SHIFT): New constant.
(bfd_vms_set_section_flags): New prototype.
(EGPS_S_B_ALIGN, EGPS_S_W_FLAGS, EGPS_S_L_ALLOC, EGPS_S_B_NAMLNG): New
constants.
(EGSY_S_W_FLAGS): Ditto.
(EGSY_S_V_QUAD_VAL): Ditto.
(ESDF_S_L_VALUE, ESDF_S_L_PSINDX, ESDF_S_B_NAMLNG): Ditto.
(EGST_S_W_FLAGS, EGST_S_Q_LP_1, EGST_S_Q_LP_2, EGST_S_L_PSINDX,
EGST_S_B_NAMLNG): Ditto.
(ESRF_S_B_NAMLNG): Ditto.
(ETIR_S_C_HEADER_SIZE): Ditto.
(EGPS_S_V_ALLOC_64BIT): Ditto.
(DST_S_C_EPILOG): Ditto.
(DST_S_C_SRC_SETLNUM_L, DST_S_C_SRC_SETLNUM_W) : Ditto.
(DST_S_C_SRC_INCRLNUM_B): Ditto.
(DST_S_B_PCLINE_UNSBYTE, DST_S_W_PCLINE_UNSWORD): Ditto.
(DST_S_L_PCLINE_UNSLONG): Ditto.
(DST_S_B_MODBEG_NAME, DST_S_L_RTNBEG_ADDRESS) : Ditto
(DST_S_B_RTNBEG_NAME, DST_S_L_RTNEND_SIZE): Ditto
(DST_S_C_SOURCE_HEADER_SIZE): Ditto.
(DST_S_B_SRC_DF_LENGTH, DST_S_W_SRC_DF_FILEID): Ditto.
(DST_S_B_SRC_DF_FILENAME, DST_S_B_SRC_UNSBYTE): Ditto.
(DST_S_B_SRC_UNSBYTE): Ditto.
(DST_S_W_SRC_UNSWORD, DST_S_L_SRC_UNSLONG): Ditto.
Add prototypes.
(vms_section, vms_reloc): Remove types.
(hdr_struc): Replaced by ...
(hdr_struct): ... new type.
(EMH_S_W_HDRTYP, EMH_S_B_STRLVL, EMH_S_L_ARCH1): New constants.
(EMH_S_L_ARCH2, EMH_S_L_RECSIZ, EMH_S_B_NAMLNG): Ditto.
(EMH_DATE_LENGTH): Ditto.
(eom_struc): Replaced by ...
(eom_struct): ... new type.
(EEOM_S_L_TOTAL_LPS, EEOM_S_W_COMCOD, EEOM_S_B_TFRFLG): New constants.
(EEOM_S_L_PSINDX, EEOM_S_L_TFRADR): Ditto.
(EIHD_S_K_MAJORID, EIHD_S_K_MINORID, EIHD_S_K_EXE): Ditto.
(EIHD_S_L_SIZE, EIHD_S_L_ISDOFF, EIHD_S_L_SYMDBGOFF): Ditto.
(EIHD_S_Q_SYMVVA, EIHD_S_L_IMGTYPE): Ditto.
(EISD_S_L_EISDSIZE, EISD_S_L_SECSIZE, EISD_S_Q_VIR_ADDR): Ditto.
(EISD_S_L_FLAGS, EISD_S_L_VBN, EISD_S_R_CONTROL): Ditto.
(EISD_S_L_IDENT, EISD_S_T_GBLNAM): Ditto.
(EISD_S_M_GBL, EISD_S_M_CRF, EISD_S_M_DZRO, EISD_S_M_WRT): Ditto.
(EISD_S_M_INITALCODE, EISD_S_M_BASED, EISD_S_M_FIXUPVEC): Ditto.
(EISD_S_M_RESIDENT, EISD_S_M_VECTOR, EISD_S_M_PROTECT): Ditto.
(EISD_S_M_LASTCLU, EISD_S_M_EXE, EISD_S_M_NONSHRADR): Ditto.
(EISD_S_M_QUAD_LENGTH, EISD_S_M_ALLOC_64BIT): Ditto.
(EIHS_S_L_DSTVBN, EIHS_S_L_DSTSIZE, EIHS_S_L_GSTVBN): Ditto.
(EIHS_S_L_GSTSIZE, EIHS_S_L_DMTVBN, EIHS_S_L_DMTBYTES): Ditto.
(DBG_S_L_DMT_MODBEG, DBG_S_L_DST_SIZE): Ditto.
(DBG_S_W_DMT_PSECT_COUNT, DBG_S_C_DMT_HEADER_SIZE): Ditto.
(DBG_S_L_DMT_PSECT_START, DBG_S_L_DMT_PSECT_LENGTH)
(DBG_S_C_DMT_PSECT_SIZE): Ditto.
(enum file_type_enum): New type.
(struct location_struct): Removed.
(struct fileinfo, struct srecinfo, struct lineinfo): New types.
(struct funcinfo, struct module): Ditto.
(struct vms_private_data_struct): Update fields.
(struct vms_section_data_struct): New type.
* vms.c: Update copyright year, fix comments,
Fix includes for DECC, add prototypes.
(vms_initialize): Use bfd_alloc instead of bfd_zalloc and remove
some initializers.
Use flavour to set is_vax, location_stack is removed.
(struct pair): Declare.
(fill_section_ptr): Initialize variables at declaration.
Add guard to set SECTION_SYM flag, handlde und section.
(vms_fixup_sections): Use struct pair for fill_section_ptr argument.
(_bfd_vms_slurp_object_records): New function, replaces previous
vms_object_p.
(vms_slurp_module): New function.
(vms_slurp_image): Ditto.
(vms_object_p): Complete rewrite.
(vms_mkobject): Use is_vax field to slect architecture.
(free_reloc_stream): New function.
(vms_convert_to_var): Ditto.
(vms_convert_to_var_1): Ditto.
(vms_convert_to_var_unix_filename): Ditto.
(vms_close_and_cleanup): Call free_reloc_stream, convert file to
VAR format on VMS.
(vms_new_section_hook): Set alignment to 0, allocate private data.
(vms_get_section_contents): Load content.
(vms_get_symbol_info): Handle undefined section.
(vms_find_nearest_line): Handle.
(alloc_reloc_stream): New function.
(vms_slurp_reloc_table): Ditto.
(vms_get_reloc_upper_bound): Make it real.
(vms_canonicalize_reloc): Do the real work.
(alpha_howto_table): Add ALPHA_R_NOP, ALPHA_R_BSR, ALPHA_R_LDA,
ALPHA_R_BOH.
(vms_bfd_reloc_type_lookup): Handle NOP, BSR, LDA and BOH.
(vms_set_arch_mach): Check arch.
(vms_set_section_contents): Copy the content after allocation.
(vms_alpha_vec): Update object flags.
* vms-tir.c: Update copyright year, fix comments,
add prototypes for new functions.
(dst_define_location): New function.
(dst_restore_location): New function.
(dst_retrieve_location): New function.
(dst_check_allocation): New function.
(image_dump): Call dst_check_allocation.
(image_write_b): Ditto.
(image_write_w): Ditto.
(image_write_l): Ditto.
(image_write_q): Ditto.
(cmd_name): Handle STA_LW, STA_QW, STO_OFF, STO_IMM, STO_IMMR, STO_LW,
STO_QW, OPR_ADD, CTL_SETRB, STC_LP_PSB, CTL_DFLOC, CTL_STLOC,
CTL_STKDL.
Call error handler instead of abort if name is not known.
(etir_sta): Add quarter_relocs argument and set it.
Fix cast.
(etir_sto): Ditto.
(etir_opr): Ditto, return FALSE in case of error.
(etir_ctl): Add quarter_relocs argument and set it, fix cast.
Fix CTL_DFLOC, CTL_STLOC, CTL_STKDL.
(etir_stc): Add quarter_relocs argument and set it, fix cast.
Fix STC_LP, STC_LP_PSB, STC_GBL and STC_CGA.
Handle STC_LP_PSB, STC_BSR_GBL, STC_LDA_GBL, STC_BOH_GBL.
Move STC_NOP_PS, STC_BSR_PS, STC_LDA_PS, STC_BOH_PS, STC_NBH_PS.
Return FALSE in case of error.
(tir_sta): Change sign of psect.
(tir_ctl): Ditto.
(tir_cmd): Fix cast. Makes tir_table static const.
(etir_cmd): Add quarter_relocs argument, makes etir_table const,
add argument to explain.
(analyze_etir): Initialize maxptr, add quarter_relocs
declaration, move some declarations into inner scopes.
Handle quarter_relocs and STO_IMM.
(_bfd_vms_slurp_tir): Use constant instead of hard-coded values.
(_bfd_vms_slurp_relocs): New function.
(_bfd_vms_decode_relocs): New function.
(sto_imm): Rewritten.
(start_first_etbt_record): New function.
(start_another_etbt_record): Ditto.
(etir_output_check): Ditto.
(defer_reloc_p): Ditto.
(_bfd_vms_write_tir): Remove nextoffset, convert a while-loop to
a for-loop. Correctly deals with contents, deals with .vmsdebug,
rewritte relocations handling.
(_bfd_vms_write_tbt): Removed.
(_bfd_vms_write_dbg): Ditto.
* vms-misc.c: Update copyright year, Fix comments.
(_bfd_vms_get_header_values): Use 'size' instead of 'length'.
(maybe_adjust_record_pointer_for_object): New function.
(_bfd_vms_get_first_record): New function, replaces ...
(_bfd_vms_get_record): .. removed.
(_bfd_vms_get_object_record): New function.
(_bfd_vms_get_object_record): New function.
(vms_get_remaining_object_record): New function, replaces ...
(_bfd_vms_get_next_record): ... removed.
(add_new_contents): Removed.
(_bfd_save_vms_section): Removed.
(_bfd_get_vms_section): Removed.
(_bfd_vms_output_flush): Write in VAR format.
(new_symbol): Don't make UND section.
* vms-hdr.c: Update copyright year, update list of record handled.
(_bfd_vms_slurp_hdr): rec_length renamed to rec_size.
(_bfd_vms_write_hdr): Strip vms and unix patches,
add comments, truncate module name at 31 characters,
use constants instead of hard-coded value,
write BFD version instead of a fixed string.
(_bfd_vms_slurp_ihd): New function.
(_bfd_vms_slurp_isd): Ditto.
(_bfd_vms_slurp_ihs): Ditto.
(new_module): Ditto.
(parse_module): Ditto
(build_module_list): Ditto.
(module_find_nearest_line): Ditto.
(_bfd_vms_find_nearest_dst_line): Ditto.
(vms_slurp_debug): Ditto.
(_bfd_vms_slurp_dbg): Ditto.
(_bfd_vms_slurp_tbt): Ditto.
(_bfd_vms_write_dbg): Ditto.
(_bfd_vms_write_tbt): Ditto.
* vms-gsd.c: Update copyright year, update list of records handled.
(EVAX_LITERALS_NAME): New macro.
(evax_section_flags): Add an entry for EVAX_LITERALS_NAME.
(gpsflagdesc, gsyflagdesc): Moved out of _bfd_vms_slurp_gsd.
(register_universal_symbol): New function and prototype.
(_bfd_vms_slurp_gsd): Fix indentations and casts,
improve debug messages,
use constants instead of hard-coded value,
fix missing endianness conversion,
handle global symbol (SYMG).
(bfd_vms_set_section_flags): New function.
(_bfd_vms_write_gsd): Don't write .vmsdebug section,
handle section literals,
fix indentation,
handle section bfd and vms flags,
don't output LIB$INITIALIZE symbol,
fix handling of weak symbols,
fix evax vs vax procedure descriptor,
handle absolute symbols.
* reloc.c (BFD_RELOC_ALPHA_NOP, BFD_RELOC_ALPHA_BSR,
BFD_RELOC_ALPHA_LDA, BFD_RELOC_ALPHA_BOH): New relocations.
* makefile.vms (DEFS): Fix flags for VMS.
* bfdio.c (real_fopen): Handle multiple VMS fopen attributes.
* bfd-in2.h: Regenerated.
* libbfd.h: Regenerated.
2009-02-23 09:28:43 +00:00
|
|
|
|
|
|
|
|
|
* vms.h: Update copyright year, fix comments, reorder declarations.
|
|
|
|
|
(_bfd_save_vms_section): Remove the prototype.
|
|
|
|
|
(EGPS_S_V_NO_SHIFT): New constant.
|
|
|
|
|
(bfd_vms_set_section_flags): New prototype.
|
|
|
|
|
(EGPS_S_B_ALIGN, EGPS_S_W_FLAGS, EGPS_S_L_ALLOC, EGPS_S_B_NAMLNG): New
|
|
|
|
|
constants.
|
|
|
|
|
(EGSY_S_W_FLAGS): Ditto.
|
|
|
|
|
(EGSY_S_V_QUAD_VAL): Ditto.
|
|
|
|
|
(ESDF_S_L_VALUE, ESDF_S_L_PSINDX, ESDF_S_B_NAMLNG): Ditto.
|
|
|
|
|
(EGST_S_W_FLAGS, EGST_S_Q_LP_1, EGST_S_Q_LP_2, EGST_S_L_PSINDX,
|
|
|
|
|
EGST_S_B_NAMLNG): Ditto.
|
|
|
|
|
(ESRF_S_B_NAMLNG): Ditto.
|
|
|
|
|
(ETIR_S_C_HEADER_SIZE): Ditto.
|
|
|
|
|
(EGPS_S_V_ALLOC_64BIT): Ditto.
|
|
|
|
|
(DST_S_C_EPILOG): Ditto.
|
|
|
|
|
(DST_S_C_SRC_SETLNUM_L, DST_S_C_SRC_SETLNUM_W) : Ditto.
|
|
|
|
|
(DST_S_C_SRC_INCRLNUM_B): Ditto.
|
|
|
|
|
(DST_S_B_PCLINE_UNSBYTE, DST_S_W_PCLINE_UNSWORD): Ditto.
|
|
|
|
|
(DST_S_L_PCLINE_UNSLONG): Ditto.
|
|
|
|
|
(DST_S_B_MODBEG_NAME, DST_S_L_RTNBEG_ADDRESS) : Ditto
|
|
|
|
|
(DST_S_B_RTNBEG_NAME, DST_S_L_RTNEND_SIZE): Ditto
|
|
|
|
|
(DST_S_C_SOURCE_HEADER_SIZE): Ditto.
|
|
|
|
|
(DST_S_B_SRC_DF_LENGTH, DST_S_W_SRC_DF_FILEID): Ditto.
|
|
|
|
|
(DST_S_B_SRC_DF_FILENAME, DST_S_B_SRC_UNSBYTE): Ditto.
|
|
|
|
|
(DST_S_B_SRC_UNSBYTE): Ditto.
|
|
|
|
|
(DST_S_W_SRC_UNSWORD, DST_S_L_SRC_UNSLONG): Ditto.
|
|
|
|
|
Add prototypes.
|
|
|
|
|
(vms_section, vms_reloc): Remove types.
|
|
|
|
|
(hdr_struc): Replaced by ...
|
|
|
|
|
(hdr_struct): ... new type.
|
|
|
|
|
(EMH_S_W_HDRTYP, EMH_S_B_STRLVL, EMH_S_L_ARCH1): New constants.
|
|
|
|
|
(EMH_S_L_ARCH2, EMH_S_L_RECSIZ, EMH_S_B_NAMLNG): Ditto.
|
|
|
|
|
(EMH_DATE_LENGTH): Ditto.
|
|
|
|
|
(eom_struc): Replaced by ...
|
|
|
|
|
(eom_struct): ... new type.
|
|
|
|
|
(EEOM_S_L_TOTAL_LPS, EEOM_S_W_COMCOD, EEOM_S_B_TFRFLG): New constants.
|
|
|
|
|
(EEOM_S_L_PSINDX, EEOM_S_L_TFRADR): Ditto.
|
|
|
|
|
(EIHD_S_K_MAJORID, EIHD_S_K_MINORID, EIHD_S_K_EXE): Ditto.
|
|
|
|
|
(EIHD_S_L_SIZE, EIHD_S_L_ISDOFF, EIHD_S_L_SYMDBGOFF): Ditto.
|
|
|
|
|
(EIHD_S_Q_SYMVVA, EIHD_S_L_IMGTYPE): Ditto.
|
|
|
|
|
(EISD_S_L_EISDSIZE, EISD_S_L_SECSIZE, EISD_S_Q_VIR_ADDR): Ditto.
|
|
|
|
|
(EISD_S_L_FLAGS, EISD_S_L_VBN, EISD_S_R_CONTROL): Ditto.
|
|
|
|
|
(EISD_S_L_IDENT, EISD_S_T_GBLNAM): Ditto.
|
|
|
|
|
(EISD_S_M_GBL, EISD_S_M_CRF, EISD_S_M_DZRO, EISD_S_M_WRT): Ditto.
|
|
|
|
|
(EISD_S_M_INITALCODE, EISD_S_M_BASED, EISD_S_M_FIXUPVEC): Ditto.
|
|
|
|
|
(EISD_S_M_RESIDENT, EISD_S_M_VECTOR, EISD_S_M_PROTECT): Ditto.
|
|
|
|
|
(EISD_S_M_LASTCLU, EISD_S_M_EXE, EISD_S_M_NONSHRADR): Ditto.
|
|
|
|
|
(EISD_S_M_QUAD_LENGTH, EISD_S_M_ALLOC_64BIT): Ditto.
|
|
|
|
|
(EIHS_S_L_DSTVBN, EIHS_S_L_DSTSIZE, EIHS_S_L_GSTVBN): Ditto.
|
|
|
|
|
(EIHS_S_L_GSTSIZE, EIHS_S_L_DMTVBN, EIHS_S_L_DMTBYTES): Ditto.
|
|
|
|
|
(DBG_S_L_DMT_MODBEG, DBG_S_L_DST_SIZE): Ditto.
|
|
|
|
|
(DBG_S_W_DMT_PSECT_COUNT, DBG_S_C_DMT_HEADER_SIZE): Ditto.
|
|
|
|
|
(DBG_S_L_DMT_PSECT_START, DBG_S_L_DMT_PSECT_LENGTH)
|
|
|
|
|
(DBG_S_C_DMT_PSECT_SIZE): Ditto.
|
|
|
|
|
(enum file_type_enum): New type.
|
|
|
|
|
(struct location_struct): Removed.
|
|
|
|
|
(struct fileinfo, struct srecinfo, struct lineinfo): New types.
|
|
|
|
|
(struct funcinfo, struct module): Ditto.
|
|
|
|
|
(struct vms_private_data_struct): Update fields.
|
|
|
|
|
(struct vms_section_data_struct): New type.
|
|
|
|
|
|
|
|
|
|
* vms.c: Update copyright year, fix comments,
|
|
|
|
|
Fix includes for DECC, add prototypes.
|
|
|
|
|
(vms_initialize): Use bfd_alloc instead of bfd_zalloc and remove
|
|
|
|
|
some initializers.
|
|
|
|
|
Use flavour to set is_vax, location_stack is removed.
|
|
|
|
|
(struct pair): Declare.
|
|
|
|
|
(fill_section_ptr): Initialize variables at declaration.
|
|
|
|
|
Add guard to set SECTION_SYM flag, handlde und section.
|
|
|
|
|
(vms_fixup_sections): Use struct pair for fill_section_ptr argument.
|
|
|
|
|
(_bfd_vms_slurp_object_records): New function, replaces previous
|
|
|
|
|
vms_object_p.
|
|
|
|
|
(vms_slurp_module): New function.
|
|
|
|
|
(vms_slurp_image): Ditto.
|
|
|
|
|
(vms_object_p): Complete rewrite.
|
|
|
|
|
(vms_mkobject): Use is_vax field to slect architecture.
|
|
|
|
|
(free_reloc_stream): New function.
|
|
|
|
|
(vms_convert_to_var): Ditto.
|
|
|
|
|
(vms_convert_to_var_1): Ditto.
|
|
|
|
|
(vms_convert_to_var_unix_filename): Ditto.
|
|
|
|
|
(vms_close_and_cleanup): Call free_reloc_stream, convert file to
|
|
|
|
|
VAR format on VMS.
|
|
|
|
|
(vms_new_section_hook): Set alignment to 0, allocate private data.
|
|
|
|
|
(vms_get_section_contents): Load content.
|
|
|
|
|
(vms_get_symbol_info): Handle undefined section.
|
|
|
|
|
(vms_find_nearest_line): Handle.
|
|
|
|
|
(alloc_reloc_stream): New function.
|
|
|
|
|
(vms_slurp_reloc_table): Ditto.
|
|
|
|
|
(vms_get_reloc_upper_bound): Make it real.
|
|
|
|
|
(vms_canonicalize_reloc): Do the real work.
|
|
|
|
|
(alpha_howto_table): Add ALPHA_R_NOP, ALPHA_R_BSR, ALPHA_R_LDA,
|
|
|
|
|
ALPHA_R_BOH.
|
|
|
|
|
(vms_bfd_reloc_type_lookup): Handle NOP, BSR, LDA and BOH.
|
|
|
|
|
(vms_set_arch_mach): Check arch.
|
|
|
|
|
(vms_set_section_contents): Copy the content after allocation.
|
|
|
|
|
(vms_alpha_vec): Update object flags.
|
|
|
|
|
|
|
|
|
|
* vms-tir.c: Update copyright year, fix comments,
|
|
|
|
|
add prototypes for new functions.
|
|
|
|
|
(dst_define_location): New function.
|
|
|
|
|
(dst_restore_location): New function.
|
|
|
|
|
(dst_retrieve_location): New function.
|
|
|
|
|
(dst_check_allocation): New function.
|
|
|
|
|
(image_dump): Call dst_check_allocation.
|
|
|
|
|
(image_write_b): Ditto.
|
|
|
|
|
(image_write_w): Ditto.
|
|
|
|
|
(image_write_l): Ditto.
|
|
|
|
|
(image_write_q): Ditto.
|
|
|
|
|
(cmd_name): Handle STA_LW, STA_QW, STO_OFF, STO_IMM, STO_IMMR, STO_LW,
|
|
|
|
|
STO_QW, OPR_ADD, CTL_SETRB, STC_LP_PSB, CTL_DFLOC, CTL_STLOC,
|
|
|
|
|
CTL_STKDL.
|
|
|
|
|
Call error handler instead of abort if name is not known.
|
|
|
|
|
(etir_sta): Add quarter_relocs argument and set it.
|
|
|
|
|
Fix cast.
|
|
|
|
|
(etir_sto): Ditto.
|
|
|
|
|
(etir_opr): Ditto, return FALSE in case of error.
|
|
|
|
|
(etir_ctl): Add quarter_relocs argument and set it, fix cast.
|
|
|
|
|
Fix CTL_DFLOC, CTL_STLOC, CTL_STKDL.
|
|
|
|
|
(etir_stc): Add quarter_relocs argument and set it, fix cast.
|
|
|
|
|
Fix STC_LP, STC_LP_PSB, STC_GBL and STC_CGA.
|
|
|
|
|
Handle STC_LP_PSB, STC_BSR_GBL, STC_LDA_GBL, STC_BOH_GBL.
|
|
|
|
|
Move STC_NOP_PS, STC_BSR_PS, STC_LDA_PS, STC_BOH_PS, STC_NBH_PS.
|
|
|
|
|
Return FALSE in case of error.
|
|
|
|
|
(tir_sta): Change sign of psect.
|
|
|
|
|
(tir_ctl): Ditto.
|
|
|
|
|
(tir_cmd): Fix cast. Makes tir_table static const.
|
|
|
|
|
(etir_cmd): Add quarter_relocs argument, makes etir_table const,
|
|
|
|
|
add argument to explain.
|
|
|
|
|
(analyze_etir): Initialize maxptr, add quarter_relocs
|
|
|
|
|
declaration, move some declarations into inner scopes.
|
|
|
|
|
Handle quarter_relocs and STO_IMM.
|
|
|
|
|
(_bfd_vms_slurp_tir): Use constant instead of hard-coded values.
|
|
|
|
|
(_bfd_vms_slurp_relocs): New function.
|
|
|
|
|
(_bfd_vms_decode_relocs): New function.
|
|
|
|
|
(sto_imm): Rewritten.
|
|
|
|
|
(start_first_etbt_record): New function.
|
|
|
|
|
(start_another_etbt_record): Ditto.
|
|
|
|
|
(etir_output_check): Ditto.
|
|
|
|
|
(defer_reloc_p): Ditto.
|
|
|
|
|
(_bfd_vms_write_tir): Remove nextoffset, convert a while-loop to
|
|
|
|
|
a for-loop. Correctly deals with contents, deals with .vmsdebug,
|
|
|
|
|
rewritte relocations handling.
|
|
|
|
|
(_bfd_vms_write_tbt): Removed.
|
|
|
|
|
(_bfd_vms_write_dbg): Ditto.
|
|
|
|
|
|
|
|
|
|
* vms-misc.c: Update copyright year, Fix comments.
|
|
|
|
|
(_bfd_vms_get_header_values): Use 'size' instead of 'length'.
|
|
|
|
|
(maybe_adjust_record_pointer_for_object): New function.
|
|
|
|
|
(_bfd_vms_get_first_record): New function, replaces ...
|
|
|
|
|
(_bfd_vms_get_record): .. removed.
|
|
|
|
|
(_bfd_vms_get_object_record): New function.
|
|
|
|
|
(_bfd_vms_get_object_record): New function.
|
|
|
|
|
(vms_get_remaining_object_record): New function, replaces ...
|
|
|
|
|
(_bfd_vms_get_next_record): ... removed.
|
|
|
|
|
(add_new_contents): Removed.
|
|
|
|
|
(_bfd_save_vms_section): Removed.
|
|
|
|
|
(_bfd_get_vms_section): Removed.
|
|
|
|
|
(_bfd_vms_output_flush): Write in VAR format.
|
|
|
|
|
(new_symbol): Don't make UND section.
|
|
|
|
|
|
|
|
|
|
* vms-hdr.c: Update copyright year, update list of record handled.
|
|
|
|
|
(_bfd_vms_slurp_hdr): rec_length renamed to rec_size.
|
|
|
|
|
(_bfd_vms_write_hdr): Strip vms and unix patches,
|
|
|
|
|
add comments, truncate module name at 31 characters,
|
|
|
|
|
use constants instead of hard-coded value,
|
|
|
|
|
write BFD version instead of a fixed string.
|
|
|
|
|
(_bfd_vms_slurp_ihd): New function.
|
|
|
|
|
(_bfd_vms_slurp_isd): Ditto.
|
|
|
|
|
(_bfd_vms_slurp_ihs): Ditto.
|
|
|
|
|
(new_module): Ditto.
|
|
|
|
|
(parse_module): Ditto
|
|
|
|
|
(build_module_list): Ditto.
|
|
|
|
|
(module_find_nearest_line): Ditto.
|
|
|
|
|
(_bfd_vms_find_nearest_dst_line): Ditto.
|
|
|
|
|
(vms_slurp_debug): Ditto.
|
|
|
|
|
(_bfd_vms_slurp_dbg): Ditto.
|
|
|
|
|
(_bfd_vms_slurp_tbt): Ditto.
|
|
|
|
|
(_bfd_vms_write_dbg): Ditto.
|
|
|
|
|
(_bfd_vms_write_tbt): Ditto.
|
|
|
|
|
|
|
|
|
|
* vms-gsd.c: Update copyright year, update list of records handled.
|
|
|
|
|
(EVAX_LITERALS_NAME): New macro.
|
|
|
|
|
(evax_section_flags): Add an entry for EVAX_LITERALS_NAME.
|
|
|
|
|
(gpsflagdesc, gsyflagdesc): Moved out of _bfd_vms_slurp_gsd.
|
|
|
|
|
(register_universal_symbol): New function and prototype.
|
|
|
|
|
(_bfd_vms_slurp_gsd): Fix indentations and casts,
|
|
|
|
|
improve debug messages,
|
|
|
|
|
use constants instead of hard-coded value,
|
|
|
|
|
fix missing endianness conversion,
|
|
|
|
|
handle global symbol (SYMG).
|
|
|
|
|
(bfd_vms_set_section_flags): New function.
|
|
|
|
|
(_bfd_vms_write_gsd): Don't write .vmsdebug section,
|
|
|
|
|
handle section literals,
|
|
|
|
|
fix indentation,
|
|
|
|
|
handle section bfd and vms flags,
|
|
|
|
|
don't output LIB$INITIALIZE symbol,
|
|
|
|
|
fix handling of weak symbols,
|
|
|
|
|
fix evax vs vax procedure descriptor,
|
|
|
|
|
handle absolute symbols.
|
|
|
|
|
|
|
|
|
|
* reloc.c (BFD_RELOC_ALPHA_NOP, BFD_RELOC_ALPHA_BSR,
|
|
|
|
|
BFD_RELOC_ALPHA_LDA, BFD_RELOC_ALPHA_BOH): New relocations.
|
|
|
|
|
|
|
|
|
|
* makefile.vms (DEFS): Fix flags for VMS.
|
|
|
|
|
|
|
|
|
|
* bfdio.c (real_fopen): Handle multiple VMS fopen attributes.
|
|
|
|
|
|
|
|
|
|
* bfd-in2.h: Regenerated.
|
|
|
|
|
* libbfd.h: Regenerated.
|
|
|
|
|
|
2009-02-20 18:53:12 +00:00
|
|
|
|
2009-02-20 Cary Coutant <ccoutant@google.com>
|
|
|
|
|
|
|
|
|
|
* vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime
|
|
|
|
|
in struct stat.
|
|
|
|
|
|
2009-02-18 18:38:06 +00:00
|
|
|
|
2009-18-02 Dave Korn <dave.korn.cygwin@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR gas/7059
|
|
|
|
|
* coffcode.h (coff_write_object_contents): Don't let the string
|
|
|
|
|
table offset overflow the s_name field when using long section names.
|
|
|
|
|
|
2009-02-18 18:23:08 +00:00
|
|
|
|
2009-18-02 Dave Korn <dave.korn.cygwin@gmail.com>
|
|
|
|
|
|
|
|
|
|
* coff-alpha.c (alpha_ecoff_backend_data): Initialise fields which
|
|
|
|
|
control long section name handling with ECOFF_NO_LONG_SECTION_NAMES.
|
|
|
|
|
* coff-mips.c (mips_ecoff_backend_data): Likewise.
|
|
|
|
|
* coff-rs6000.c (bfd_xcoff_backend_data): Initialise fields which
|
|
|
|
|
control long section name handling with XCOFF_NO_LONG_SECTION_NAMES.
|
|
|
|
|
(bfd_pmac_xcoff_backend_data): Likewise.
|
|
|
|
|
* coff64-rs6000.c (bfd_xcoff_backend_data): Likewise.
|
|
|
|
|
(bfd_xcoff_aix5_backend_data): Likewise.
|
|
|
|
|
(xcoff64_write_object_contents): Delete unused long_section_names
|
|
|
|
|
local variable.
|
|
|
|
|
* coff-sh.c (bfd_coff_small_swap_table): Initialise long section
|
|
|
|
|
name members using COFF_DEFAULT_LONG_SECTION_NAMES and make entire
|
|
|
|
|
struct non-const.
|
|
|
|
|
* coffcode.h (documentation): Update to describe long section names.
|
|
|
|
|
(COFFLONGSECTIONCATHELPER): New helper macro.
|
|
|
|
|
(BLANKOR1TOODD): Likewise.
|
|
|
|
|
(COFF_ENABLE_LONG_SECTION_NAMES): Likewise.
|
|
|
|
|
(COFF_LONG_SECTION_NAMES_SETTER): Likewise.
|
|
|
|
|
(COFF_DEFAULT_LONG_SECTION_NAMES): Likewise.
|
|
|
|
|
(bfd_coff_set_long_section_names_allowed): New function.
|
|
|
|
|
(bfd_coff_set_long_section_names_disallowed): Likewise.
|
|
|
|
|
(struct bfd_coff_backend_data): Add new backend hook function
|
|
|
|
|
pointer _bfd_coff_set_long_section_names.
|
|
|
|
|
(bfd_coff_set_long_section_names): New backend hook.
|
|
|
|
|
(coff_write_object_contents): Only generate long section names if
|
|
|
|
|
bfd_coff_long_section_names() indicates they are currently enabled.
|
|
|
|
|
(bfd_coff_std_swap_table): Make non-const, and initialise long
|
|
|
|
|
section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
|
|
|
|
|
(ticoff0_swap_table): Likewise to both.
|
|
|
|
|
(ticoff1_swap_table): Again, likewise to both.
|
|
|
|
|
* coffgen.c (make_a_section_from_file): Allow long section names
|
|
|
|
|
as inputs even if not currently allowed for outputs.
|
|
|
|
|
* ecoff.c (_bfd_ecoff_no_long_sections): New function.
|
|
|
|
|
* efi-app-ia32.c (COFF_LONG_SECTION_NAMES): Define to 0, not blank.
|
|
|
|
|
* efi-app-ia64.c (COFF_LONG_SECTION_NAMES): Likewise.
|
|
|
|
|
* efi-app-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
|
|
|
|
|
* efi-bsdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise.
|
|
|
|
|
* efi-bsdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise.
|
|
|
|
|
* efi-bsdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
|
|
|
|
|
* efi-rtdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise.
|
|
|
|
|
* efi-rtdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise.
|
|
|
|
|
* efi-rtdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
|
|
|
|
|
* pei-arm.c (COFF_LONG_SECTION_NAMES): Likewise.
|
|
|
|
|
* pei-i386.c (COFF_LONG_SECTION_NAMES): Likewise.
|
|
|
|
|
* pei-mcore.c (COFF_LONG_SECTION_NAMES): Likewise.
|
|
|
|
|
* pei-mips.c (COFF_LONG_SECTION_NAMES): Likewise.
|
|
|
|
|
* pei-ppc.c (COFF_LONG_SECTION_NAMES): Likewise.
|
|
|
|
|
* pei-sh.c (COFF_LONG_SECTION_NAMES): Likewise.
|
|
|
|
|
* pei-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
|
|
|
|
|
* libcoff-in.h: Update copyright year to cause updated copyright
|
|
|
|
|
year in generated libcoff.h, and fix typo.
|
|
|
|
|
* libcoff.h: Regenerated.
|
|
|
|
|
* libecoff.h (ECOFF_NO_LONG_SECTION_NAMES): New macro.
|
|
|
|
|
(_bfd_ecoff_no_long_sections): Add prototype.
|
|
|
|
|
* libxcoff.h (XCOFF_NO_LONG_SECTION_NAMES): New macro.
|
|
|
|
|
* pe-mips.c (COFF_LONG_SECTION_NAMES): Define empty if not already
|
|
|
|
|
defined by an including .c file.
|
|
|
|
|
* ticoff.h (ticoff0_swap_table): Make non-const, and initialise
|
|
|
|
|
long section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
|
|
|
|
|
(ticoff1_swap_table): Likewise to both.
|
|
|
|
|
|
2009-02-18 16:56:37 +00:00
|
|
|
|
2009-02-18 Christophe Lyon <christophe.lyon@st.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (arm_build_one_stub): Fix relocation target for pic
|
|
|
|
|
stub. Catch default case error.
|
|
|
|
|
(arm_map_one_stub): Add missing Thumb mapping symbol.
|
|
|
|
|
|
2009-02-18 15:28:56 +00:00
|
|
|
|
2009-02-18 Bjoern Haase <bjoern.m.haase@web.de>
|
|
|
|
|
|
|
|
|
|
PR 9841
|
|
|
|
|
* elf32-avr.c: Handle case where no local symbos exist correctly.
|
|
|
|
|
|
2009-02-16 Christophe Lyon <christophe.lyon@st.com>
bfd/
* elf32-arm.c (arm_long_branch_stub,
arm_thumb_v4t_long_branch_stub,
arm_thumb_thumb_long_branch_stub,
arm_thumb_arm_v4t_long_branch_stub,
arm_thumb_arm_v4t_short_branch_stub,
arm_pic_long_branch_stub):
Renamed to elf32_arm_stub_long_branch_any_any,
elf32_arm_stub_long_branch_v4t_arm_thumb,
elf32_arm_stub_long_branch_thumb_only,
elf32_arm_stub_long_branch_v4t_thumb_arm,
elf32_arm_stub_short_branch_v4t_thumb_arm,
elf32_arm_stub_long_branch_any_any_pic.
(arm_stub_long_branch, arm_thumb_v4t_stub_long_branch,
arm_thumb_thumb_stub_long_branch,
arm_thumb_arm_v4t_stub_long_branch,
arm_thumb_arm_v4t_stub_short_branch, arm_stub_pic_long_branch):
Renamed to arm_stub_long_branch_any_any,
arm_stub_long_branch_v4t_arm_thumb,
arm_stub_long_branch_thumb_only,
arm_stub_long_branch_v4t_thumb_arm,
arm_stub_short_branch_v4t_thumb_arm,
arm_stub_long_branch_any_any_pic.
2009-02-18 12:45:38 +00:00
|
|
|
|
2009-02-16 Christophe Lyon <christophe.lyon@st.com>
|
|
|
|
|
|
|
|
|
|
bfd/
|
|
|
|
|
* elf32-arm.c (arm_long_branch_stub,
|
|
|
|
|
arm_thumb_v4t_long_branch_stub,
|
|
|
|
|
arm_thumb_thumb_long_branch_stub,
|
|
|
|
|
arm_thumb_arm_v4t_long_branch_stub,
|
|
|
|
|
arm_thumb_arm_v4t_short_branch_stub,
|
|
|
|
|
arm_pic_long_branch_stub):
|
|
|
|
|
Renamed to elf32_arm_stub_long_branch_any_any,
|
|
|
|
|
elf32_arm_stub_long_branch_v4t_arm_thumb,
|
|
|
|
|
elf32_arm_stub_long_branch_thumb_only,
|
|
|
|
|
elf32_arm_stub_long_branch_v4t_thumb_arm,
|
|
|
|
|
elf32_arm_stub_short_branch_v4t_thumb_arm,
|
|
|
|
|
elf32_arm_stub_long_branch_any_any_pic.
|
|
|
|
|
(arm_stub_long_branch, arm_thumb_v4t_stub_long_branch,
|
|
|
|
|
arm_thumb_thumb_stub_long_branch,
|
|
|
|
|
arm_thumb_arm_v4t_stub_long_branch,
|
|
|
|
|
arm_thumb_arm_v4t_stub_short_branch, arm_stub_pic_long_branch):
|
|
|
|
|
Renamed to arm_stub_long_branch_any_any,
|
|
|
|
|
arm_stub_long_branch_v4t_arm_thumb,
|
|
|
|
|
arm_stub_long_branch_thumb_only,
|
|
|
|
|
arm_stub_long_branch_v4t_thumb_arm,
|
|
|
|
|
arm_stub_short_branch_v4t_thumb_arm,
|
|
|
|
|
arm_stub_long_branch_any_any_pic.
|
|
|
|
|
|
2009-02-15 19:39:44 +00:00
|
|
|
|
2009-02-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
|
|
|
|
|
|
|
|
|
|
* elf-hppa.h (elf_hppa_final_link_relocate): Correct addend value used
|
|
|
|
|
in branch offset check.
|
|
|
|
|
|
2009-02-15 12:14:14 +00:00
|
|
|
|
2009-02-15 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx,
|
|
|
|
|
add toc.symndx and toc.add.
|
|
|
|
|
(ppc64_elf_check_relocs): Don't set htab->tls_get_addr here.
|
|
|
|
|
Set up toc.add.
|
|
|
|
|
(get_tls_mask): Add toc_addend param, set from toc.add. Adjust all
|
|
|
|
|
callers.
|
|
|
|
|
(ppc64_elf_tls_setup): Set htab->tls_get_addr and tls_get_addr_fd.
|
|
|
|
|
(branch_reloc_hash_match): New function, extracted from..
|
|
|
|
|
(ppc64_elf_tls_optimize): ..here.
|
|
|
|
|
(ppc64_elf_relocate_section): Properly set addends when optimizing
|
|
|
|
|
tls sequences. Avoid unnecessary reading and writing of insns.
|
|
|
|
|
Only redo reloc when symbol changed. Bypass symbol checks when
|
|
|
|
|
using tlsld_got.
|
|
|
|
|
* elf32-ppc.c (ppc_elf_tls_setup): Correct comment.
|
|
|
|
|
(branch_reloc_hash_match): New function, extracted from..
|
|
|
|
|
(ppc_elf_tls_optimize): ..here.
|
|
|
|
|
(ppc_elf_relocate_section): Avoid unnecessary reading of insns.
|
|
|
|
|
Don't clear addend on zapped __tls_get_addr reloc.
|
|
|
|
|
|
2009-02-12 15:06:55 +00:00
|
|
|
|
2009-02-12 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR 9827
|
|
|
|
|
* elflink.c (bfd_elf_final_link): When counting the relocations,
|
|
|
|
|
if the header size has not been set yet then assume that it will
|
|
|
|
|
match the output section's reloc type.
|
|
|
|
|
|
2009-02-12 08:28:19 +00:00
|
|
|
|
2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for
|
|
|
|
|
relocatable link.
|
|
|
|
|
|
2009-02-09 14:24:41 +00:00
|
|
|
|
2009-02-09 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors.
|
|
|
|
|
(find_function): Likewise.
|
|
|
|
|
(pasted_function): Don't error if no prior function found.
|
|
|
|
|
(discover_functions): Revert 2008-12-10 change. Extend first
|
|
|
|
|
function range to start of section.
|
|
|
|
|
|
2009-02-08 17:08:31 +00:00
|
|
|
|
2009-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
|
|
|
|
|
|
|
|
|
|
* elf64-hppa.c: Remove PARAMS macro. Replace PTR with void *. Convert
|
|
|
|
|
functions to C90.
|
|
|
|
|
* elf64-hppa.h: Likewise.
|
|
|
|
|
|
2009-02-06 14:11:00 +00:00
|
|
|
|
2009-02-06 Joseph Myers <joseph@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* elfxx-mips.c (_bfd_mips_elf_section_processing): Remove special
|
|
|
|
|
.sbss handling.
|
|
|
|
|
|
2009-02-04 02:42:57 +00:00
|
|
|
|
2009-02-04 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* elf32-spu.c (spu_elf_build_stubs): Define __icache_neg_log2_linesize.
|
|
|
|
|
Define __icache_ptr_handler*, not __icache_ptr___icache_bi_handler*.
|
|
|
|
|
|
bfd:
2009-02-03 Sandip Matte <sandip@rmicorp.com>
* aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_mips_xlr.
* archures.c (bfd_mach_mips_xlr): Define.
* bfd-in2.h: Regenerate.
* cpu-mips.c (I_xlr): Define.
(arch_info_struct): Add XLR entry.
* elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_XLR.
(mips_set_isa_flags): Handle bfd_mach_mips_xlr
(mips_mach_extensions): Add XLR entry.
binutils:
2009-02-03 Sandip Matte <sandip@rmicorp.com>
* readelf.c (get_machine_flags): Handle E_MIPS_MACH_XLR.
gas:
2009-02-03 Sandip Matte <sandip@rmicorp.com>
* config/tc-mips.c (macro): Handle M_MSGSND, M_MSGLD, M_MSGLD_T,
M_MSGWAIT and M_MSGWAIT_T.
(mips_cpu_info_table): Add XLR entry.
* doc/c-mips.texi (-march): Document xlr.
gas/testsuite:
2009-02-03 Sandip Matte <sandip@rmicorp.com>
* gas/mips/mips.exp (xlr): New architecture.
(xlr-ext): Run test.
* gas/mips/xlr-ext.d, gas/mips/xlr-ext.s: New.
include/elf:
2009-02-03 Sandip Matte <sandip@rmicorp.com>
* mips.h (E_MIPS_MACH_XLR): Define.
include/opcode:
2009-02-03 Sandip Matte <sandip@rmicorp.com>
* mips.h (INSN_XLR): Define.
(INSN_CHIP_MASK): Update.
(CPU_XLR): Define.
(OPCODE_IS_MEMBER): Update.
(M_MSGSND, M_MSGLD, M_MSGLD_T, M_MSGWAIT, M_MSGWAIT_T): Define.
opcodes:
2009-02-03 Sandip Matte <sandip@rmicorp.com>
* mips-dis.c (mips_cp0_names_xlr, mips_cp0sel_names_xlr): Define.
(mips_arch_choices): Add XLR entry.
* mips-opc.c (XLR): Define.
(mips_builtin_opcodes): Add XLR instructions.
2009-02-03 18:16:04 +00:00
|
|
|
|
2009-02-03 Sandip Matte <sandip@rmicorp.com>
|
|
|
|
|
|
|
|
|
|
* aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_mips_xlr.
|
|
|
|
|
* archures.c (bfd_mach_mips_xlr): Define.
|
|
|
|
|
* bfd-in2.h: Regenerate.
|
|
|
|
|
* cpu-mips.c (I_xlr): Define.
|
|
|
|
|
(arch_info_struct): Add XLR entry.
|
|
|
|
|
* elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_XLR.
|
|
|
|
|
(mips_set_isa_flags): Handle bfd_mach_mips_xlr
|
|
|
|
|
(mips_mach_extensions): Add XLR entry.
|
|
|
|
|
|
2009-02-03 17:21:02 +00:00
|
|
|
|
2009-02-03 Eric B. Weddington <eric.weddington@atmel.com>
|
|
|
|
|
|
|
|
|
|
* elf32-avr.c (avr_final_link_relocate): Allow avr25 to wraparound.
|
|
|
|
|
|
2009-02-03 15:54:05 +00:00
|
|
|
|
2009-02-03 Carlos O'Donell <carlos@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* configure.in: AC_SUBST pdfdir.
|
2009-03-19 10:40:06 +00:00
|
|
|
|
* Makefile.am: Add install-pdf, install-pdf-am
|
2009-02-03 15:54:05 +00:00
|
|
|
|
and install-pdf-recursive targets. Define pdfdir.
|
|
|
|
|
* doc/Makefile.am: Define pdf__strip_dir. Add
|
|
|
|
|
install-pdf and install-pdf-am targets.
|
2009-03-19 10:40:06 +00:00
|
|
|
|
* po/Make-in: Add install-pdf target.
|
2009-02-03 15:54:05 +00:00
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
* Makefile.in: Regenerate
|
|
|
|
|
* doc/Makefile.in: Regenerate.
|
|
|
|
|
|
M68K TLS support.
ld/testsuite/
* ld-m68k/got-multigot-12-13-14-34-35-ok.d: Update.
* ld-m68k/got-multigot-14-ok.d: Update.
* ld-m68k/m68k-got.exp: Update.
* ld-m68k/got-negative-12-13-14-34-ok.d: Update.
* ld-m68k/got-negative-14-ok.d: Update.
* ld-m68k/tls-gd-1.d, ld-m68k/tls-gd-2.d: New tests.
* ld-m68k/tls-gd-ie-1.d, ld-m68k/tls-ie-1.d: New tests.
* ld-m68k/tls-ld-1.d, ld-m68k/tls-ld-2.d: New tests.
* ld-m68k/tls-ld-1.s, ld-m68k/tls-ld-2.s, ld-m68k/tls-le-1.s:
New test sources.
* ld-m68k/tls-no-1.s, ld-m68k/tls-gd-ie-1.s, ld-m68k/tls-gd-1.s:
New test sources.
* ld-m68k/tls-gd-2.s, ld-m68k/tls-ie-1.s: New test sources.
* ld-m68k/m68k.exp: Run new tests.
(merge isa-a isa-a:nodiv): Fix.
gas/testsuite/
* gas/m68k/tls-gd-3.d, gas/m68k/tls-gd-3.s: New test.
* gas/m68k/all.exp: Run it.
gas/
* config/m68k-parse.h (enum pic_relocation): Add values for TLS
relocations.
* config/m68k-parse.y (yylex): Parse TLS relocations.
* config/tc-m68k.c (m68k_elf_cons): New static function.
(md_pseudo_table): Use it.
(get_reloc_code, tc_m68k_fix_adjustable, tc_gen_reloc): Handle TLS
relocations.
(md_apply_fix): Fix to set thread local flag.
(m68k_elf_suffix): New static function; helper for m68k_elf_cons.
include/elf/
* m68k.h: Map TLS relocations to numbers.
bfd/
* bfd-in2.h: Regenerate.
* elf32-m68k.c: Handle 2-slot GOT entries. Rename variables and
fields from n_entries to n_slots where appropriate, update comments.
(HOWTO): Add TLS relocations.
(reloc_map): Map BFD_RELOC_68K_TLS_* to R_68K_TLS_*.
(enum elf_m68k_got_offset_size): New enum.
(struct elf_m68k_got_entry.type): Move field to ...
(struct elf_m68k_got_entry_key): ... here. Update all uses.
(elf_m68k_reloc_got_type, elf_m68k_reloc_got_offset_size): New static
functions.
(elf_m68k_reloc_got_n_entries, elf_m68k_reloc_tls_p): New static
functions.
(struct elf_m68k_got): merge rel_8o_n_entries and rel_8o_16o_n_entries
fields into n_entries array. Update comments.
(elf_m68k_init_got): Simplify, update all uses.
(elf_m68k_init_got_entry_key): Handle R_68K_TLS_LDM32 reloc, update.
(ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT): Adjust to handle 2-slot
GOT entries; update name, update all uses.
(ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): Ditto.
(elf_m68k_get_got_entry): Update.
(elf_m68k_update_got_entry_type): Rewrite to handle TLS GOT entries,
simplify.
(elf_m68k_remove_got_entry_type): Simplify.
(elf_m68k_add_entry_to_got, elf_m68k_can_merge_gots_1): Update.
(elf_m68k_can_merge_gots): Update.
(elf_m68k_merge_gots_1, elf_m68k_merge_gots): Update.
(struct elf_m68k_finalize_got_offsets_arg): Rewrite to handle 2-slot
GOT entries, simplify.
(elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Same.
(struct elf_m68k_partition_multi_got_arg): Add slots_relas_diff
field, remove obsoleted local_n_entries field.
(elf_m68k_partition_multi_got_2): New static function.
(elf_m68k_partition_multi_got_1, elf_m68k_partition_multi_got): Use it;
update.
(elf_m68k_remove_got_entry_type): Update.
(elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
(elf_m68k_check_relocs): Handle TLS relocations. Remove unnecessary
update of sgot->size and srelgot->size.
(elf_m68k_gc_sweep_hook): Update.
(elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
(elf_m68k_relocate_section, elf_m68k_finish_dynamic_symbol): Handle
TLS relocations.
* reloc.c (BFD_RELOC_68K_TLS_*): Declare TLS relocations.
* libbfd.h (bfd_reloc_code_real_names): Add BFD_RELOC_68K_TLS_*.
2009-02-03 14:36:47 +00:00
|
|
|
|
2009-02-03 Maxim Kuvyrkov <maxim@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* bfd-in2.h: Regenerate.
|
|
|
|
|
* elf32-m68k.c: Handle 2-slot GOT entries. Rename variables and
|
|
|
|
|
fields from n_entries to n_slots where appropriate, update comments.
|
|
|
|
|
(HOWTO): Add TLS relocations.
|
|
|
|
|
(reloc_map): Map BFD_RELOC_68K_TLS_* to R_68K_TLS_*.
|
|
|
|
|
(enum elf_m68k_got_offset_size): New enum.
|
|
|
|
|
(struct elf_m68k_got_entry.type): Move field to ...
|
|
|
|
|
(struct elf_m68k_got_entry_key): ... here. Update all uses.
|
|
|
|
|
(elf_m68k_reloc_got_type, elf_m68k_reloc_got_offset_size): New static
|
|
|
|
|
functions.
|
|
|
|
|
(elf_m68k_reloc_got_n_entries, elf_m68k_reloc_tls_p): New static
|
|
|
|
|
functions.
|
|
|
|
|
(struct elf_m68k_got): merge rel_8o_n_entries and rel_8o_16o_n_entries
|
|
|
|
|
fields into n_entries array. Update comments.
|
|
|
|
|
(elf_m68k_init_got): Simplify, update all uses.
|
|
|
|
|
(elf_m68k_init_got_entry_key): Handle R_68K_TLS_LDM32 reloc, update.
|
|
|
|
|
(ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT): Adjust to handle 2-slot
|
|
|
|
|
GOT entries; update name, update all uses.
|
|
|
|
|
(ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): Ditto.
|
|
|
|
|
(elf_m68k_get_got_entry): Update.
|
|
|
|
|
(elf_m68k_update_got_entry_type): Rewrite to handle TLS GOT entries,
|
|
|
|
|
simplify.
|
|
|
|
|
(elf_m68k_remove_got_entry_type): Simplify.
|
|
|
|
|
(elf_m68k_add_entry_to_got, elf_m68k_can_merge_gots_1): Update.
|
|
|
|
|
(elf_m68k_can_merge_gots): Update.
|
|
|
|
|
(elf_m68k_merge_gots_1, elf_m68k_merge_gots): Update.
|
|
|
|
|
(struct elf_m68k_finalize_got_offsets_arg): Rewrite to handle 2-slot
|
|
|
|
|
GOT entries, simplify.
|
|
|
|
|
(elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Same.
|
|
|
|
|
(struct elf_m68k_partition_multi_got_arg): Add slots_relas_diff
|
|
|
|
|
field, remove obsoleted local_n_entries field.
|
|
|
|
|
(elf_m68k_partition_multi_got_2): New static function.
|
|
|
|
|
(elf_m68k_partition_multi_got_1, elf_m68k_partition_multi_got): Use it;
|
|
|
|
|
update.
|
|
|
|
|
(elf_m68k_remove_got_entry_type): Update.
|
|
|
|
|
(elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
|
2009-03-19 10:40:06 +00:00
|
|
|
|
(elf_m68k_check_relocs): Handle TLS relocations. Remove unnecessary
|
M68K TLS support.
ld/testsuite/
* ld-m68k/got-multigot-12-13-14-34-35-ok.d: Update.
* ld-m68k/got-multigot-14-ok.d: Update.
* ld-m68k/m68k-got.exp: Update.
* ld-m68k/got-negative-12-13-14-34-ok.d: Update.
* ld-m68k/got-negative-14-ok.d: Update.
* ld-m68k/tls-gd-1.d, ld-m68k/tls-gd-2.d: New tests.
* ld-m68k/tls-gd-ie-1.d, ld-m68k/tls-ie-1.d: New tests.
* ld-m68k/tls-ld-1.d, ld-m68k/tls-ld-2.d: New tests.
* ld-m68k/tls-ld-1.s, ld-m68k/tls-ld-2.s, ld-m68k/tls-le-1.s:
New test sources.
* ld-m68k/tls-no-1.s, ld-m68k/tls-gd-ie-1.s, ld-m68k/tls-gd-1.s:
New test sources.
* ld-m68k/tls-gd-2.s, ld-m68k/tls-ie-1.s: New test sources.
* ld-m68k/m68k.exp: Run new tests.
(merge isa-a isa-a:nodiv): Fix.
gas/testsuite/
* gas/m68k/tls-gd-3.d, gas/m68k/tls-gd-3.s: New test.
* gas/m68k/all.exp: Run it.
gas/
* config/m68k-parse.h (enum pic_relocation): Add values for TLS
relocations.
* config/m68k-parse.y (yylex): Parse TLS relocations.
* config/tc-m68k.c (m68k_elf_cons): New static function.
(md_pseudo_table): Use it.
(get_reloc_code, tc_m68k_fix_adjustable, tc_gen_reloc): Handle TLS
relocations.
(md_apply_fix): Fix to set thread local flag.
(m68k_elf_suffix): New static function; helper for m68k_elf_cons.
include/elf/
* m68k.h: Map TLS relocations to numbers.
bfd/
* bfd-in2.h: Regenerate.
* elf32-m68k.c: Handle 2-slot GOT entries. Rename variables and
fields from n_entries to n_slots where appropriate, update comments.
(HOWTO): Add TLS relocations.
(reloc_map): Map BFD_RELOC_68K_TLS_* to R_68K_TLS_*.
(enum elf_m68k_got_offset_size): New enum.
(struct elf_m68k_got_entry.type): Move field to ...
(struct elf_m68k_got_entry_key): ... here. Update all uses.
(elf_m68k_reloc_got_type, elf_m68k_reloc_got_offset_size): New static
functions.
(elf_m68k_reloc_got_n_entries, elf_m68k_reloc_tls_p): New static
functions.
(struct elf_m68k_got): merge rel_8o_n_entries and rel_8o_16o_n_entries
fields into n_entries array. Update comments.
(elf_m68k_init_got): Simplify, update all uses.
(elf_m68k_init_got_entry_key): Handle R_68K_TLS_LDM32 reloc, update.
(ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT): Adjust to handle 2-slot
GOT entries; update name, update all uses.
(ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): Ditto.
(elf_m68k_get_got_entry): Update.
(elf_m68k_update_got_entry_type): Rewrite to handle TLS GOT entries,
simplify.
(elf_m68k_remove_got_entry_type): Simplify.
(elf_m68k_add_entry_to_got, elf_m68k_can_merge_gots_1): Update.
(elf_m68k_can_merge_gots): Update.
(elf_m68k_merge_gots_1, elf_m68k_merge_gots): Update.
(struct elf_m68k_finalize_got_offsets_arg): Rewrite to handle 2-slot
GOT entries, simplify.
(elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Same.
(struct elf_m68k_partition_multi_got_arg): Add slots_relas_diff
field, remove obsoleted local_n_entries field.
(elf_m68k_partition_multi_got_2): New static function.
(elf_m68k_partition_multi_got_1, elf_m68k_partition_multi_got): Use it;
update.
(elf_m68k_remove_got_entry_type): Update.
(elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
(elf_m68k_check_relocs): Handle TLS relocations. Remove unnecessary
update of sgot->size and srelgot->size.
(elf_m68k_gc_sweep_hook): Update.
(elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
(elf_m68k_relocate_section, elf_m68k_finish_dynamic_symbol): Handle
TLS relocations.
* reloc.c (BFD_RELOC_68K_TLS_*): Declare TLS relocations.
* libbfd.h (bfd_reloc_code_real_names): Add BFD_RELOC_68K_TLS_*.
2009-02-03 14:36:47 +00:00
|
|
|
|
update of sgot->size and srelgot->size.
|
|
|
|
|
(elf_m68k_gc_sweep_hook): Update.
|
|
|
|
|
(elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
|
|
|
|
|
(elf_m68k_relocate_section, elf_m68k_finish_dynamic_symbol): Handle
|
|
|
|
|
TLS relocations.
|
|
|
|
|
* reloc.c (BFD_RELOC_68K_TLS_*): Declare TLS relocations.
|
|
|
|
|
* libbfd.h (bfd_reloc_code_real_names): Add BFD_RELOC_68K_TLS_*.
|
|
|
|
|
|
2009-02-03 02:15:57 +00:00
|
|
|
|
2009-02-02 DJ Delorie <dj@redhat.com>
|
|
|
|
|
|
|
|
|
|
* elf32-mep.c (config_names): Regenerate configuration.
|
|
|
|
|
|
2009-02-02 03:52:38 +00:00
|
|
|
|
2009-02-02 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* elf-bfd.h (bfd_elf_get_str_section): Don't declare.
|
|
|
|
|
(bfd_elf_find_section, _sh_elf_set_mach_from_flags): Likewise.
|
|
|
|
|
* elf.c (bfd_elf_get_str_section): Make static.
|
|
|
|
|
(bfd_elf_find_section): Delete.
|
|
|
|
|
* libbfd.h: Regenerate.
|
|
|
|
|
|
2009-02-01 12:05:25 +00:00
|
|
|
|
2009-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* elf-eh-frame.c (REQUIRE_CLEARED_RELOCS) Remove.
|
|
|
|
|
(_bfd_elf_parse_eh_frame): Do not check relocations for removed FDEs.
|
|
|
|
|
|
2009-01-31 11:44:38 +00:00
|
|
|
|
2009-01-31 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* elflink.c (on_needed_list): New function.
|
|
|
|
|
(elf_link_add_object_symbols): Link in --as-needed libs if they
|
|
|
|
|
satisfy undefined symbols in other libs.
|
|
|
|
|
|
2009-01-30 01:32:25 +00:00
|
|
|
|
2009-01-30 Julian Brown <julian@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Skip BFDs with
|
|
|
|
|
EXEC_P or DYNAMIC flags, and skip sections which are being linked
|
|
|
|
|
with --just-symbols (-R).
|
|
|
|
|
|
2009-01-30 01:04:47 +00:00
|
|
|
|
2009-01-29 Adam Nemet <anemet@caviumnetworks.com>
|
|
|
|
|
|
|
|
|
|
* dwarf2.c (read_rangelist): Use read_address to read low_pc and
|
|
|
|
|
high_pc in order to properly sign-extend VMAs.
|
|
|
|
|
|
2009-01-29 16:35:03 +00:00
|
|
|
|
2009-01-29 Daniel Jacobowitz <dan@codesourcery.com>
|
2009-03-19 10:40:06 +00:00
|
|
|
|
Mark Shinwell <shinwell@codesourcery.com>
|
|
|
|
|
Catherine Moore <clm@codesourcery.com>
|
2009-01-29 16:35:03 +00:00
|
|
|
|
|
|
|
|
|
* elf-attrs.c, elflink.c, elfxx-mips.c: Correct typos in comments.
|
|
|
|
|
|
2009-01-28 16:35:13 +00:00
|
|
|
|
2009-01-28 Catherine Moore <clm@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (elf32_arm_check_relocs): Set SEC_ALLOC and
|
|
|
|
|
SEC_LOAD for dynamic relocation sections.
|
|
|
|
|
|
2009-01-27 22:28:22 +00:00
|
|
|
|
2009-01-27 Hans-Peter Nilsson <hp@axis.com>
|
|
|
|
|
|
|
|
|
|
* elf32-cris.c (cris_elf_relocate_section): Use elf_hash_table
|
|
|
|
|
(info)->tls_size, not elf_hash_table (info)->tls_sec->size for
|
|
|
|
|
the size of local TLS data.
|
|
|
|
|
|
2009-01-27 16:37:10 +00:00
|
|
|
|
2009-01-27 Andreas Schwab <schwab@suse.de>
|
|
|
|
|
|
|
|
|
|
* mach-o.c (bfd_mach_o_archive_p): Restrict the number of
|
|
|
|
|
architectures in the archive.
|
|
|
|
|
|
2009-01-27 06:07:54 +00:00
|
|
|
|
2009-01-27 Hans-Peter Nilsson <hp@axis.com>
|
|
|
|
|
|
2009-01-27 07:06:36 +00:00
|
|
|
|
* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_DTPREL>
|
|
|
|
|
<R_CRIS_32_DTPREL>: Correct relocation value.
|
|
|
|
|
|
2009-01-27 06:07:54 +00:00
|
|
|
|
* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_8>
|
|
|
|
|
<R_CRIS_16, R_CRIS_32>: Don't call BFD_ASSERT for weak undefined
|
|
|
|
|
symbols with non-default visibility.
|
|
|
|
|
|
2009-01-26 15:27:04 +00:00
|
|
|
|
2009-01-26 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* elf32-ppc.c (ppc_elf_relax_section): Add space for relocs
|
|
|
|
|
describing the trampolines.
|
|
|
|
|
(ppc_elf_relocate_section): Update relocs to describe the
|
|
|
|
|
trampolines.
|
|
|
|
|
|
2009-01-25 23:05:20 +00:00
|
|
|
|
2009-01-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
|
|
|
|
|
|
|
|
|
|
* elf-hppa.h (elf_hppa_final_link_relocate): Add check to ensure that
|
|
|
|
|
branch targets can be reached for R_PARISC_PCREL22F, R_PARISC_PCREL17F
|
|
|
|
|
and R_PARISC_PCREL12F relocations.
|
|
|
|
|
|
2009-01-24 03:10:43 +00:00
|
|
|
|
2009-01-24 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
PR 6022
|
|
|
|
|
* elflink.c (find_version_for_sym): New function split out from,
|
|
|
|
|
but without export_dynamic test, ..
|
|
|
|
|
(_bfd_elf_link_assign_sym_version): ..here.
|
|
|
|
|
(_bfd_elf_export_symbol): Use it.
|
|
|
|
|
|
* elf-bfd.h (struct elf_assign_sym_version_info): Delete.
(struct elf_info_failed, struct elf_find_verdep_info): Move to..
* elflink.c: ..here, somewhat modified.
* elf-bfd.h (_bfd_elf_add_default_symbol, _bfd_elf_export_symbol,
_bfd_elf_link_find_version_dependencies,
_bfd_elf_link_assign_sym_version, _bfd_elf_link_size_reloc_section,
_bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol,
_bfd_elf_link_sec_merge_syms, bfd_elf_link_mark_dynamic_symbol): Don't
declare..
* elflink.c: ..and make static here.
(_bfd_elf_link_find_version_dependencies): Adjust for removal
of output_bfd from struct elf_find_verdep_info.
(_bfd_elf_link_assign_sym_version): Similarly adjust to use
struct elf_info_failed.
(bfd_elf_size_dynamic_sections): Adjust.
2009-01-23 12:15:27 +00:00
|
|
|
|
2009-01-23 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* elf-bfd.h (struct elf_assign_sym_version_info): Delete.
|
|
|
|
|
(struct elf_info_failed, struct elf_find_verdep_info): Move to..
|
|
|
|
|
* elflink.c: ..here, somewhat modified.
|
|
|
|
|
* elf-bfd.h (_bfd_elf_add_default_symbol, _bfd_elf_export_symbol,
|
|
|
|
|
_bfd_elf_link_find_version_dependencies,
|
|
|
|
|
_bfd_elf_link_assign_sym_version, _bfd_elf_link_size_reloc_section,
|
|
|
|
|
_bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol,
|
|
|
|
|
_bfd_elf_link_sec_merge_syms, bfd_elf_link_mark_dynamic_symbol): Don't
|
|
|
|
|
declare..
|
|
|
|
|
* elflink.c: ..and make static here.
|
|
|
|
|
(_bfd_elf_link_find_version_dependencies): Adjust for removal
|
|
|
|
|
of output_bfd from struct elf_find_verdep_info.
|
|
|
|
|
(_bfd_elf_link_assign_sym_version): Similarly adjust to use
|
|
|
|
|
struct elf_info_failed.
|
|
|
|
|
(bfd_elf_size_dynamic_sections): Adjust.
|
|
|
|
|
|
2009-01-22 08:54:20 +00:00
|
|
|
|
2009-01-22 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
PR 6832
|
|
|
|
|
* dwarf2.c (find_line): Don't update stash->sec_info_ptr until
|
|
|
|
|
after comp_unit_find_line call.
|
|
|
|
|
|
2009-01-21 11:58:05 +00:00
|
|
|
|
2009-01-21 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR 9769
|
|
|
|
|
* vmsutil.c (vms_file_stats_name): Remove use of unsupported
|
|
|
|
|
tm_gmtoff field in struct tm.
|
|
|
|
|
|
2009-01-21 02:27:13 +00:00
|
|
|
|
2009-01-21 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* elf32-spu.h (struct spu_elf_params): Add non_ia_text.
|
|
|
|
|
* elf32-spu.c (mark_overlay_section): Only include .text.ia.*
|
|
|
|
|
sections in soft-icache lines unless non_ia_text. Don't add
|
|
|
|
|
rodata if doing so would exceed line size.
|
|
|
|
|
|
2009-01-19 17:32:59 +00:00
|
|
|
|
2009-01-19 Hans-Peter Nilsson <hp@axis.com>
|
|
|
|
|
|
|
|
|
|
* elf32-cris.c (elf_cris_copy_indirect_symbol): For other symbol
|
|
|
|
|
types than bfd_link_hash_indirect, before early return, call
|
|
|
|
|
_bfd_elf_link_hash_copy_indirect.
|
|
|
|
|
|
2009-01-19 12:14:05 +00:00
|
|
|
|
2009-01-19 Andrew Stubbs <ams@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* elf-attrs.c (vendor_set_obj_attr_contents): Support tag ordering.
|
|
|
|
|
* elf-bfd.h (elf_backend_data): Add obj_attrs_order.
|
|
|
|
|
* elf32-arm.c (elf32_arm_obj_attrs_order): New function.
|
|
|
|
|
(elf_backend_obj_attrs_order): New define.
|
|
|
|
|
* elfxx-target.h (elf_backend_obj_attrs_order): New define.
|
|
|
|
|
(elfNN_bed): Add elf_backend_obj_attrs_order.
|
|
|
|
|
|
2009-01-19 11:55:35 +00:00
|
|
|
|
2009-01-19 Andrew Stubbs <ams@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* elf-attrs.c (is_default_attr): Substitute magic numbers with macros.
|
|
|
|
|
(obj_attr_size): Likewise.
|
|
|
|
|
(write_obj_attribute): Likewise.
|
|
|
|
|
(_bfd_elf_copy_obj_attributes): Likewise.
|
|
|
|
|
(_bfd_elf_parse_attributes): Likewise.
|
|
|
|
|
* elf-bfd.h (ATTR_TYPE_FLAG_INT_VAL): New define.
|
|
|
|
|
(ATTR_TYPE_FLAG_STR_VAL, ATTR_TYPE_FLAG_NO_DEFAULT): New defines.
|
|
|
|
|
(ATTR_TYPE_HAS_INT_VAL, ATTR_TYPE_HAS_STR_VAL): New defines.
|
|
|
|
|
(ATTR_TYPE_HAS_NO_DEFAULT): New define.
|
|
|
|
|
* elf32-arm.c (elf32_arm_obj_attrs_arg_type): Replace magic numbers
|
|
|
|
|
with macros.
|
|
|
|
|
|
2009-01-19 11:50:31 +00:00
|
|
|
|
2009-01-19 Andrew Stubbs <ams@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* elf-attrs.c (is_default_attr): Support defaultless attributes.
|
|
|
|
|
(bfd_elf_add_obj_attr_int): Get type from _bfd_elf_obj_attrs_arg_type.
|
|
|
|
|
(bfd_elf_add_obj_attr_string): Likewise.
|
|
|
|
|
(bfd_elf_add_obj_attr_int_string): Likewise.
|
|
|
|
|
(_bfd_elf_parse_attributes): Allow for unknown flag bits in type.
|
|
|
|
|
* elf-bfd.h (struct obj_attribute): Document new flag bit.
|
|
|
|
|
* elf32-arm.c (elf32_arm_obj_attrs_arg_type): Specify that
|
|
|
|
|
Tag_nodefaults has no default value.
|
|
|
|
|
(elf32_arm_merge_eabi_attributes): Modify the Tag_nodefaults
|
|
|
|
|
comment to reflect the new state.
|
|
|
|
|
|
2009-01-19 06:11:22 +00:00
|
|
|
|
2009-01-19 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
PR 9695
|
|
|
|
|
* pdp11.c (N_BADMAG): True for anything but OMAGIC, NMAGIC, ZMAGIC.
|
|
|
|
|
(some_aout_object_p): Delete dead code handling QMAGIC and BMAGIC.
|
|
|
|
|
(adjust_z_magix): Delete dead code handling QMAGIC.
|
|
|
|
|
|
2009-01-16 15:09:20 +00:00
|
|
|
|
2009-01-16 Kai Tietz <kai.tietz@onevision.com>
|
|
|
|
|
|
|
|
|
|
* coffcode.h (styp_to_sec_flags): Correct interpretation of
|
|
|
|
|
IMAGE_SCN_MEM_DISCARDABLE.
|
|
|
|
|
|
2009-01-16 08:02:29 +00:00
|
|
|
|
2009-01-16 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (libbfd_la_LIBADD, libbfd_la_LDFLAGS): Substitute
|
|
|
|
|
SHARED_LIBADD and SHARED_LDFLAGS rather than WIN32LIBADD, WIN32LDFLAGS.
|
|
|
|
|
* configure.in (commonbfdlib): Delete.
|
|
|
|
|
(SHARED_LDFLAGS): Rename from WIN32LDFLAGS/
|
|
|
|
|
(SHARED_LIBADD): Rename from WIN32LIBADD. Add pic libiberty if such
|
|
|
|
|
is available, not just for linux.
|
|
|
|
|
* po/SRC-POTFILES.in: Regenerate.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
|
2009-01-15 Andrew Stubbs <ams@codesourcery.com>
Julian Brown <julian@codesourcery.com>
bfd/
* elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known
ARM attributes in ABI 2.07.
* elf32-arm.c (get_secondary_compatible_arch): New function.
(set_secondary_compatible_arch): New function.
(tag_cpu_arch_combine): New function.
(elf32_arm_copy_one_eabi_other_attribute): Delete function.
(elf32_arm_copy_eabi_other_attribute_list): Delete function.
(elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to
make it fit with order_01243.
Add support for Tag_also_compatible_with,
Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use,
Tag_MPextension_use, Tag_nodefaults and Tag_conformance.
Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name,
Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension,
Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed,
Tag_VFP_arch and Tag_ABI_FP_16bit_format.
Rework the way unknown attributes are handled.
Defer errors until all attributes have been processed.
gas/
* config/tc-arm.c (cpu_arch): Change ARM_ARCH_V6M to 11.
include/elf/
* arm.h (TAG_CPU_ARCH_V6_M, TAG_CPU_ARCH_V6S_M): New defines.
(MAX_TAG_CPU_ARCH, TAG_CPU_ARCH_V4T_PLUS_V6_M): New defines.
(Tag_NEON_arch): Rename to Tag_Advanced_SIMD_arch to match ARM ABI
version 2.07.
(Tag_undefined39, Tag_nodefaults): New enum values.
(Tag_also_compatible_with, Tag_T2EE_use): Likewise.
(Tag_conformance, Tag_Virtualization_use): Likewise.
(Tag_undefined69, Tag_MPextension_use): Likewise.
2009-01-15 18:00:49 +00:00
|
|
|
|
2009-01-15 Andrew Stubbs <ams@codesourcery.com>
|
|
|
|
|
Julian Brown <julian@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known
|
|
|
|
|
ARM attributes in ABI 2.07.
|
|
|
|
|
* elf32-arm.c (get_secondary_compatible_arch): New function.
|
|
|
|
|
(set_secondary_compatible_arch): New function.
|
|
|
|
|
(tag_cpu_arch_combine): New function.
|
|
|
|
|
(elf32_arm_copy_one_eabi_other_attribute): Delete function.
|
|
|
|
|
(elf32_arm_copy_eabi_other_attribute_list): Delete function.
|
|
|
|
|
(elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to
|
|
|
|
|
make it fit with order_01243.
|
|
|
|
|
Add support for Tag_also_compatible_with,
|
|
|
|
|
Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use,
|
|
|
|
|
Tag_MPextension_use, Tag_nodefaults and Tag_conformance.
|
|
|
|
|
Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name,
|
|
|
|
|
Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension,
|
|
|
|
|
Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed,
|
|
|
|
|
Tag_VFP_arch and Tag_ABI_FP_16bit_format.
|
|
|
|
|
Rework the way unknown attributes are handled.
|
|
|
|
|
Defer errors until all attributes have been processed.
|
|
|
|
|
|
2009-01-15 13:03:05 +00:00
|
|
|
|
2009-01-15 Andrew Stubbs <ams@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* elf-attrs.c (bfd_elf_add_obj_attr_compat): Rename to
|
|
|
|
|
bfd_elf_add_obj_attr_int_string.
|
|
|
|
|
Read Tag_compatibility from its new location in the attribute array,
|
|
|
|
|
rather than the attribute list.
|
|
|
|
|
(_bfd_elf_copy_obj_attributes): bfd_elf_add_obj_attr_compat ->
|
|
|
|
|
bfd_elf_add_obj_attr_int_string.
|
|
|
|
|
(_bfd_elf_parse_attributes): Likewise.
|
|
|
|
|
(_bfd_elf_merge_object_attributes): There's now only one
|
|
|
|
|
Tag_compatibility, and it's in the array, not the list.
|
|
|
|
|
* elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 33 to include
|
|
|
|
|
Tag_compatibility.
|
|
|
|
|
(bfd_elf_add_obj_attr_compat): Rename to
|
|
|
|
|
bfd_elf_add_obj_attr_int_string.
|
|
|
|
|
(bfd_elf_add_proc_attr_compat): Rename to
|
|
|
|
|
bfd_elf_add_proc_attr_int_string.
|
|
|
|
|
* elf32-arm.c (elf32_arm_merge_eabi_attributes): Explicitly don't handle
|
|
|
|
|
Tag_compatibility.
|
|
|
|
|
|
* include/elf/ia64.h (SHT_IA_64_VMS_DISPLAY_NAME_INFO,
EF_IA_64_ARCHVER_1): New macros. Minor reformatting.
* bfd/Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo
(BFD32_BACKENDS_CFILES): Add new file vmsutil.c
(vmsutil.lo): Add dependency rule
* bfd/Makefile.in: Regenerate
* bfd/config.bfd (ia64*-*-*vms*): Add case.
* bfd/configure.in (bfd_elf64_ia64_vms_vec): Add case.
* bfd/configure: Regenerate
* bfd/vmsutil.[ch]: New files
* bfd/elf-bfd.h (struct bfd_elf_special_section): Change type of
attr to bfd_vma.
* bfd/elfxx-ia64.c (elfNN_vms_post_process_headers,
elfNN_vms_section_processing, elfNN_vms_final_write_processing,
elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr,
elfNN_vms_object_p): New functions
* bfd/targets.c (bfd_elf64_ia64_vms_vec): New target.
* gas/configure.tgt(ia64-*-*vms*): New target.
* gas/dwarf2dbg.h (dwarf2_loc_mark_labels): Make extern.
* gas/tc.h (md_number_to_chars): Declare iff undefined.
* gas/config/obj-elf.c (obj_elf_change_section): Change type of
arg attr to bfd_vma.
(obj_elf_parse_section_letters): Return a bfd_vma. Change type of
variables attr, md_attr to bfd_vma.
(obj_elf_section_word): Likewise.
(obj_elf_section): Change type of variable attr to bfd_vma
* gas/config/obj-elf.h (obj_elf_change_section): Change type of
arg attr to bfd_vma
* gas/config/tc-ia64.c (bfdver.h,time.h): Include.
(ia64_elf_section_letter): Now returns a bfd_vma.
Handle VMS specific attributes.
(ia64_elf_section_flags): Arg attr now a bfd_vma.
(ia64_init): Don't turn on dependency checking for VMS.
(ia64_target_format): Check for VMS flag bit.
(do_alias): Hande decc$ functions.
(get_vms_time): New function.
(ia64_vms_note): New function.
* gas/config/tc-ia64.h (ia64_elf_section_letter): Now returns a bfd_vma.
(ia64_elf_section_flags): Arg attr now a bfd_vma.
(tc_init_after_args): Define for VMS.
* gas/config/tc-alpha.c (alpha_elf_section_letter): Return a bfd_vma.
(alpha_elf_section_flags): Change type of arg attr to bfd_vma.
* gas/config/tc-alpha.h: Likewise.
* gas/config/tc-i386.c (x86_64_section_letter): Return a bfd_vma.
(x86_64_section_word): Return a bfd_vma.
* gas/config/tc-i386.h: Likewise.
* gas/config/tc-ip2k.c (ip2k_elf_section_flags): Change type of arg
attr to bfd_vma.
* gas/config/tc-ip2k.h: Likewise.
* gas/config/tc-mep.c (mep_elf_section_letter): Return a bfd_vma.
(mep_elf_section_flags): Change type of arg attr to bfd_vma.
* gas/config/tc-mep.h: Likewise.
* gas/config/tc-ppc.c (ppc_section_letter): Return a bfd_vma.
(ppc_section_word): Return a bfd_vma.
(ppc_section_flags): Change type of arg attr to bfd_vma.
* gas/config/tc-ppc.h: Likewise.
* gas/config/te-vms.h (DWARF2_DIR_SHOULD_END_WITH_SEPARATOR,
DWAR2_FILE_TIME_NAME, DWARF2_FILE_SIZE_NAME, DWARF2_FILEN_NAME):
New file with new macros
* gas/dwarf2dbg.c (get_filenum, out_file_list): Default and call new
macros.
2009-01-15 12:42:52 +00:00
|
|
|
|
2009-01-15 Douglas B Rupp <rupp@gnat.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo
|
|
|
|
|
(BFD32_BACKENDS_CFILES): Add new file vmsutil.c
|
|
|
|
|
(vmsutil.lo): Add dependency rule.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* config.bfd (ia64*-*-*vms*): Add case.
|
|
|
|
|
* configure.in (bfd_elf64_ia64_vms_vec): Add case.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
* vmsutil.c: New file.
|
|
|
|
|
* vmsutil.h: New file.
|
|
|
|
|
* elf-bfd.h (struct bfd_elf_special_section): Change type of
|
|
|
|
|
attr to bfd_vma.
|
|
|
|
|
* elfxx-ia64.c (elfNN_vms_post_process_headers,
|
|
|
|
|
elfNN_vms_section_processing, elfNN_vms_final_write_processing,
|
|
|
|
|
elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr,
|
|
|
|
|
elfNN_vms_object_p): New functions
|
|
|
|
|
* targets.c (bfd_elf64_ia64_vms_vec): New target.
|
|
|
|
|
|
2009-01-14 21:52:49 +00:00
|
|
|
|
2009-01-14 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/9727
|
|
|
|
|
* elflink.c (elf_gc_sweep): Exclude the group section if the
|
|
|
|
|
first member of the section group is excluded.
|
|
|
|
|
|
2009-01-13 23:44:45 +00:00
|
|
|
|
2009-01-14 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
PR 9735
|
|
|
|
|
* syms.c (_bfd_stab_section_find_nearest_line): Don't free
|
|
|
|
|
saved filename, use bfd_alloc rather than bfd_malloc for it.
|
|
|
|
|
|
2009-01-12 14:13:03 +00:00
|
|
|
|
2009-01-13 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute.
|
|
|
|
|
|
2009-01-12 13:56:03 +00:00
|
|
|
|
2009-01-13 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* elf32-spu.c (remove_cycles): Always set call->max_depth.
|
|
|
|
|
|
2009-01-12 04:09:43 +00:00
|
|
|
|
2009-01-12 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* elf32-spu.c (spu_elf_auto_overlay): Correct vma mask.
|
|
|
|
|
|
bfd/
* elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2,
num_lines_log2.
(struct got_entry): Add br_addr.
(struct call_info): Add priority.
(struct function_info): Add lr_store and sp_adjust.
(spu_elf_setup): Init line_size_log2 and num_lines_log2.
(spu_elf_find_overlays): For soft-icache, mark any section within cache
area as an overlay, and check that no other overlays exist. Look up
icache overlay manager entry sym.
(BRA_STUBS, BRA, BRASL): Define.
(enum _stub_type): Replace ovl_stub with call_ovl_stub and br*_ovl_stub.
(needs_ovl_stub): Adjust for soft-icache. Return priority encoded
in branch insn.
(count_stub, build_stub): Support soft-icache.
(build_spuear_stubs, process_stubs): Adjust build_stub call.
(spu_elf_size_stubs): Size soft-icache stubs.
(overlay_index): New function.
(spu_elf_build_stubs): Make static. Support soft-icache.
(spu_elf_check_vma): Don't turn off auto_overlay if soft-icache.
(find_function_stack_adjust): Save lr store and stack adjust insn
offsets.
(maybe_insert_function): Adjust find_function_stack_adjust call.
(mark_functions_via_relocs): Retrieve priority.
(remove_cycles): Only warn about pruned arcs when stack_analysis.
(sort_calls): Sort by priority first.
(mark_overlay_section): Ignore .ovl.init.
(sum_stack): Only print when stack_analysis.
(print_one_overlay_section): New function, extracted from..
(spu_elf_auto_overlay): ..here. Support soft-icache overlays.
(spu_elf_stack_analysis): Only print when htab->stack_analysis.
(spu_elf_final_link): Call spu_elf_stack_analysis for lrlive
analysis. Call spu_elf_build_stubs.
(spu_elf_relocate_section): For soft-icache encode overlay index
into addresses.
(spu_elf_output_symbol_hook): Support soft-icache.
(spu_elf_modify_program_headers: Likewise.
* elf32-spu.h (struct spu_elf_params): Add lrlive_analysis. Rename
num_regions to num_lines. Add line_size and max_branch.
(enum _ovly_flavour): Add ovly_soft_icache.
(spu_elf_build_stubs): Delete.
gas/
* config/tc-spu.c (md_pseudo_table): Add "brinfo".
(brinfo): New var.
(md_assemble): Poke brinfo into branch instructions.
(spu_brinfo): New function.
(md_apply_fix): Don't assume insn fields start off at zero, mask
them to remove possible brinfo.
ld/
* emultempl/spuelf.em (params): Init new fields.
(num_lines_set, line_size_set, icache_mgr, icache_mgr_stream): New vars.
(spu_place_special_section): Adjust placement for soft-icache. Pad
soft-icache section to a fixed size. Clear addr_tree.
(spu_elf_load_ovl_mgr): Support soft-icache. Map overlay manager
sections a little more intelligently.
(gld${EMULATION_NAME}_finish): Don't call spu_elf_build_stubs.
(OPTION_SPU_NUM_LINES): Rename from OPTION_SPU_NUM_REGIONS.
(OPTION_SPU_SOFT_ICACHE, OPTION_SPU_LINE_SIZE): Define.
(OPTION_SPU_LRLIVE): Define.
(PARSE_AND_LIST_LONGOPTS): Add new soft-icache options.
(PARSE_AND_LIST_OPTIONS): Likewise.
(PARSE_AND_LIST_ARGS_CASES): Handle them.
* emultempl/spu_icache.S: Dummy file.
* emultempl/spu_icache.o_c: Regenerate.
* Makefile.am (eelf32_spu.c): Depend on spu_icache.o_c.
(spu_icache.o_c): Add rule to build.
(CLEANFILES): Zap temp files.
(EXTRA_DIST): Add spu_icache.o_c.
* Makefile.in: Regenerate.
ld/testsuite/
* ld-spu/ovl.d: Allow for absolute branches in stubs.
* ld-spu/ovl2.d: Likewise.
2009-01-12 00:23:58 +00:00
|
|
|
|
2009-01-12 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2,
|
|
|
|
|
num_lines_log2.
|
|
|
|
|
(struct got_entry): Add br_addr.
|
|
|
|
|
(struct call_info): Add priority.
|
|
|
|
|
(struct function_info): Add lr_store and sp_adjust.
|
|
|
|
|
(spu_elf_setup): Init line_size_log2 and num_lines_log2.
|
|
|
|
|
(spu_elf_find_overlays): For soft-icache, mark any section within cache
|
|
|
|
|
area as an overlay, and check that no other overlays exist. Look up
|
|
|
|
|
icache overlay manager entry sym.
|
|
|
|
|
(BRA_STUBS, BRA, BRASL): Define.
|
|
|
|
|
(enum _stub_type): Replace ovl_stub with call_ovl_stub and br*_ovl_stub.
|
|
|
|
|
(needs_ovl_stub): Adjust for soft-icache. Return priority encoded
|
|
|
|
|
in branch insn.
|
|
|
|
|
(count_stub, build_stub): Support soft-icache.
|
|
|
|
|
(build_spuear_stubs, process_stubs): Adjust build_stub call.
|
|
|
|
|
(spu_elf_size_stubs): Size soft-icache stubs.
|
|
|
|
|
(overlay_index): New function.
|
|
|
|
|
(spu_elf_build_stubs): Make static. Support soft-icache.
|
|
|
|
|
(spu_elf_check_vma): Don't turn off auto_overlay if soft-icache.
|
|
|
|
|
(find_function_stack_adjust): Save lr store and stack adjust insn
|
|
|
|
|
offsets.
|
|
|
|
|
(maybe_insert_function): Adjust find_function_stack_adjust call.
|
|
|
|
|
(mark_functions_via_relocs): Retrieve priority.
|
|
|
|
|
(remove_cycles): Only warn about pruned arcs when stack_analysis.
|
|
|
|
|
(sort_calls): Sort by priority first.
|
|
|
|
|
(mark_overlay_section): Ignore .ovl.init.
|
|
|
|
|
(sum_stack): Only print when stack_analysis.
|
|
|
|
|
(print_one_overlay_section): New function, extracted from..
|
|
|
|
|
(spu_elf_auto_overlay): ..here. Support soft-icache overlays.
|
|
|
|
|
(spu_elf_stack_analysis): Only print when htab->stack_analysis.
|
|
|
|
|
(spu_elf_final_link): Call spu_elf_stack_analysis for lrlive
|
|
|
|
|
analysis. Call spu_elf_build_stubs.
|
|
|
|
|
(spu_elf_relocate_section): For soft-icache encode overlay index
|
|
|
|
|
into addresses.
|
|
|
|
|
(spu_elf_output_symbol_hook): Support soft-icache.
|
|
|
|
|
(spu_elf_modify_program_headers: Likewise.
|
2009-01-12 04:09:43 +00:00
|
|
|
|
|
bfd/
* elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2,
num_lines_log2.
(struct got_entry): Add br_addr.
(struct call_info): Add priority.
(struct function_info): Add lr_store and sp_adjust.
(spu_elf_setup): Init line_size_log2 and num_lines_log2.
(spu_elf_find_overlays): For soft-icache, mark any section within cache
area as an overlay, and check that no other overlays exist. Look up
icache overlay manager entry sym.
(BRA_STUBS, BRA, BRASL): Define.
(enum _stub_type): Replace ovl_stub with call_ovl_stub and br*_ovl_stub.
(needs_ovl_stub): Adjust for soft-icache. Return priority encoded
in branch insn.
(count_stub, build_stub): Support soft-icache.
(build_spuear_stubs, process_stubs): Adjust build_stub call.
(spu_elf_size_stubs): Size soft-icache stubs.
(overlay_index): New function.
(spu_elf_build_stubs): Make static. Support soft-icache.
(spu_elf_check_vma): Don't turn off auto_overlay if soft-icache.
(find_function_stack_adjust): Save lr store and stack adjust insn
offsets.
(maybe_insert_function): Adjust find_function_stack_adjust call.
(mark_functions_via_relocs): Retrieve priority.
(remove_cycles): Only warn about pruned arcs when stack_analysis.
(sort_calls): Sort by priority first.
(mark_overlay_section): Ignore .ovl.init.
(sum_stack): Only print when stack_analysis.
(print_one_overlay_section): New function, extracted from..
(spu_elf_auto_overlay): ..here. Support soft-icache overlays.
(spu_elf_stack_analysis): Only print when htab->stack_analysis.
(spu_elf_final_link): Call spu_elf_stack_analysis for lrlive
analysis. Call spu_elf_build_stubs.
(spu_elf_relocate_section): For soft-icache encode overlay index
into addresses.
(spu_elf_output_symbol_hook): Support soft-icache.
(spu_elf_modify_program_headers: Likewise.
* elf32-spu.h (struct spu_elf_params): Add lrlive_analysis. Rename
num_regions to num_lines. Add line_size and max_branch.
(enum _ovly_flavour): Add ovly_soft_icache.
(spu_elf_build_stubs): Delete.
gas/
* config/tc-spu.c (md_pseudo_table): Add "brinfo".
(brinfo): New var.
(md_assemble): Poke brinfo into branch instructions.
(spu_brinfo): New function.
(md_apply_fix): Don't assume insn fields start off at zero, mask
them to remove possible brinfo.
ld/
* emultempl/spuelf.em (params): Init new fields.
(num_lines_set, line_size_set, icache_mgr, icache_mgr_stream): New vars.
(spu_place_special_section): Adjust placement for soft-icache. Pad
soft-icache section to a fixed size. Clear addr_tree.
(spu_elf_load_ovl_mgr): Support soft-icache. Map overlay manager
sections a little more intelligently.
(gld${EMULATION_NAME}_finish): Don't call spu_elf_build_stubs.
(OPTION_SPU_NUM_LINES): Rename from OPTION_SPU_NUM_REGIONS.
(OPTION_SPU_SOFT_ICACHE, OPTION_SPU_LINE_SIZE): Define.
(OPTION_SPU_LRLIVE): Define.
(PARSE_AND_LIST_LONGOPTS): Add new soft-icache options.
(PARSE_AND_LIST_OPTIONS): Likewise.
(PARSE_AND_LIST_ARGS_CASES): Handle them.
* emultempl/spu_icache.S: Dummy file.
* emultempl/spu_icache.o_c: Regenerate.
* Makefile.am (eelf32_spu.c): Depend on spu_icache.o_c.
(spu_icache.o_c): Add rule to build.
(CLEANFILES): Zap temp files.
(EXTRA_DIST): Add spu_icache.o_c.
* Makefile.in: Regenerate.
ld/testsuite/
* ld-spu/ovl.d: Allow for absolute branches in stubs.
* ld-spu/ovl2.d: Likewise.
2009-01-12 00:23:58 +00:00
|
|
|
|
* elf32-spu.h (struct spu_elf_params): Add lrlive_analysis. Rename
|
|
|
|
|
num_regions to num_lines. Add line_size and max_branch.
|
|
|
|
|
(enum _ovly_flavour): Add ovly_soft_icache.
|
|
|
|
|
(spu_elf_build_stubs): Delete.
|
|
|
|
|
|
2009-01-11 21:09:49 +00:00
|
|
|
|
2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* elflink.c (_bfd_elf_section_already_linked): Handle g++-3.4
|
|
|
|
|
relocations in `.gnu.linkonce.r.*' referencing its `.gnu.linkonce.t.*'.
|
|
|
|
|
|
2009-01-07 03:28:45 +00:00
|
|
|
|
2009-01-07 Hans-Peter Nilsson <hp@axis.com>
|
|
|
|
|
|
|
|
|
|
* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
|
|
|
|
|
<case R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: For a symbol defined in
|
|
|
|
|
the program, the known offset starts at the negative size of the
|
|
|
|
|
TLS section.
|
|
|
|
|
<case R_CRIS_32_IE, R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>:
|
|
|
|
|
Similar.
|
|
|
|
|
|
2009-01-06 14:40:32 +00:00
|
|
|
|
2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
|
2009-01-06 17:58:19 +00:00
|
|
|
|
|
2009-01-06 14:40:32 +00:00
|
|
|
|
* config.bfd: Add lm32-*-rtems*.
|
2009-01-06 17:58:19 +00:00
|
|
|
|
|
2009-01-03 16:19:52 +00:00
|
|
|
|
2009-01-03 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* coff-ppc.c: Add 2009 to Copyright.
|
|
|
|
|
* elf32-cris.c: Likewise.
|
|
|
|
|
* elflink.c: Likewise.
|
|
|
|
|
|
2009-01-03 04:53:13 +00:00
|
|
|
|
2009-01-03 Hans-Peter Nilsson <hp@axis.com>
|
|
|
|
|
|
|
|
|
|
* elf32-cris.c (elf_cris_finish_dynamic_symbol): Rename
|
|
|
|
|
gotplt_index to rela_plt_index. Adjust for R_CRIS_DTPMOD entry.
|
|
|
|
|
|
2009-01-02 19:29:38 +00:00
|
|
|
|
2009-01-02 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/9679
|
|
|
|
|
* elflink.c (elf_merge_st_other): New.
|
|
|
|
|
(_bfd_elf_merge_symbol): Use it on skipped weak definitions and
|
|
|
|
|
hide them if needed.
|
|
|
|
|
(elf_link_add_object_symbols): Updated.
|
|
|
|
|
|
2009-01-02 16:48:11 +00:00
|
|
|
|
2009-01-02 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/9676
|
|
|
|
|
* elflink.c (elf_link_add_object_symbols): Update def_dynamic,
|
|
|
|
|
ref_dynamic and dynamic_def fields when setting def_regular
|
|
|
|
|
to 1.
|
|
|
|
|
|
2009-01-02 16:11:37 +00:00
|
|
|
|
2009-01-02 Curtis Mackie <curtmackevo@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 9682
|
|
|
|
|
* coff-ppc.c (dump_toc): Fix up calls to fprintf without a string
|
|
|
|
|
literal.
|
|
|
|
|
|
2009-01-02 16:48:11 +00:00
|
|
|
|
For older changes see ChangeLog-2008
|
2001-09-08 05:47:01 +00:00
|
|
|
|
|
|
|
|
|
Local Variables:
|
|
|
|
|
mode: change-log
|
|
|
|
|
left-margin: 8
|
|
|
|
|
fill-column: 74
|
|
|
|
|
version-control: never
|
|
|
|
|
End:
|