2010-04-06 21:55:38 +08:00
|
|
|
|
2010-04-06 Tristan Gingold <gingold@adacore.com>
|
|
|
|
|
|
|
|
|
|
* vms-lib.c (_bfd_vms_lib_write_archive_contents): Fix idd flags.
|
|
|
|
|
|
2010-04-06 03:30:00 +08:00
|
|
|
|
2010-04-05 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
2010-04-06 03:32:06 +08:00
|
|
|
|
* elf-eh-frame.c (_bfd_elf_parse_eh_frame): Handle CIE version 4
|
|
|
|
|
provided that it has the expected address size and zero segment
|
|
|
|
|
length.
|
|
|
|
|
|
2010-04-06 03:30:00 +08:00
|
|
|
|
* dwarf2.c (struct line_head): Add maximum_ops_per_insn field.
|
|
|
|
|
(struct line_info): Add op_index field, change end_sequence type to
|
|
|
|
|
unsigned char.
|
|
|
|
|
(new_line_sorts_after): For the same address compare op_index.
|
|
|
|
|
(add_line_info): Add op_index argument, store it into the structure.
|
|
|
|
|
(decode_line_info): Complain about unknown versions of .debug_line.
|
|
|
|
|
Initialize maximum_ops_per_insn. Add op_index state register and
|
|
|
|
|
track it.
|
|
|
|
|
|
2010-04-01 18:02:28 +08:00
|
|
|
|
2010-04-01 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* elf32-ppc.c (apuinfo_set): New static var.
|
|
|
|
|
(ppc_elf_begin_write_processing): Set it here, always create an
|
|
|
|
|
APUinfo section if there were any in the inputs.
|
|
|
|
|
(ppc_elf_write_section): Check apuinfo_set.
|
|
|
|
|
(ppc_elf_final_write_processing): Likewise.
|
|
|
|
|
|
2010-04-01 17:47:14 +08:00
|
|
|
|
2010-04-01 Tristan Gingold <gingold@adacore.com>
|
|
|
|
|
|
|
|
|
|
* vms.h: Include time.h. Add prototypes for vms_get_module_name,
|
|
|
|
|
vms_time_to_time_t and vms_rawtime_to_time_t.
|
|
|
|
|
* vms.c (vms_alpha_vec): Add archives support.
|
|
|
|
|
* vms-misc.c: Include safe-ctype.h
|
|
|
|
|
(vms_get_module_name): New function.
|
|
|
|
|
(vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
|
|
|
|
|
* vms-hdr.c (_bfd_vms_write_hdr): Put module name creation to the
|
|
|
|
|
vms_get_module_name function. Use this function.
|
|
|
|
|
* targets.c: Declare vms_lib_txt_vec. Add it to _bfd_target_vector.
|
|
|
|
|
* libbfd-in.h: Add prototype for _bfd_append_relative_path.
|
|
|
|
|
Add prototypes for vms-lib.c
|
|
|
|
|
* libbfd.h: Regenerate.
|
|
|
|
|
* configure.in (TDEFINES): Add an entry for vms_lib_txt_vec. Add
|
|
|
|
|
vms-lib.lo to vms_alpha_vec.
|
|
|
|
|
* config.bfd (targ_cpu): Add targ_selvecs for alpha*-*-*vms*.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
* bfd.c: Add selective_search field.
|
|
|
|
|
* bfd-in2.h: Regenerate.
|
|
|
|
|
* archive.c (append_relative_path): Rename to
|
|
|
|
|
_bfd_append_relative_path and make it public.
|
|
|
|
|
(_bfd_get_elt_at_filepos): Adjust for above renaming.
|
|
|
|
|
* Makefile.am (BFD32_BACKENDS): Add vms-lib.lo
|
|
|
|
|
(BFD32_BACKENDS_CFILES): Add vms-lib.c
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2010-04-01 13:24:52 +08:00
|
|
|
|
2010-04-01 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
|
|
* dwarf2.c (read_attribute_value): Handle CU version 4
|
|
|
|
|
for DW_FORM_ref_addr, handle DW_FORM_sec_offset, DW_FORM_exprloc
|
|
|
|
|
and DW_FORM_flag_present. For unknown form value return NULL.
|
|
|
|
|
(scan_unit_for_symbols): For DW_AT_location handle DW_FORM_exprloc
|
|
|
|
|
like DW_FORM_block.
|
|
|
|
|
(parse_comp_unit): Allow CU version 4.
|
|
|
|
|
|
2010-04-01 06:44:49 +08:00
|
|
|
|
2010-04-01 Hans-Peter Nilsson <hp@axis.com>
|
|
|
|
|
|
|
|
|
|
* elf32-cris.c (cris_elf_relocate_section): Correct first argument
|
|
|
|
|
to _bfd_elf_get_dynamic_reloc_section.
|
|
|
|
|
(elf_cris_discard_excess_dso_dynamics): Ditto.
|
|
|
|
|
|
2010-04-01 00:32:02 +08:00
|
|
|
|
2010-03-31 Kai Tietz <kai.tietz@onevision.com>
|
|
|
|
|
|
|
|
|
|
* coff-i386.c (in_reloc_p): Check also for R_SECREL32.
|
|
|
|
|
* coff-x86_64.c (in_reloc_p): Check also for R_AMD64_SECREL.
|
|
|
|
|
|
2010-03-31 15:53:40 +08:00
|
|
|
|
2010-03-31 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* elf64-ppc.c (ppc64_elf_relocate_section): Nop out optimized
|
|
|
|
|
TPREL16_HI and TPREL16_HA insns.
|
|
|
|
|
|
2010-03-31 11:38:26 +08:00
|
|
|
|
2010-03-31 Hans-Peter Nilsson <hp@axis.com>
|
|
|
|
|
|
|
|
|
|
PR ld/11458
|
|
|
|
|
* elf32-cris.c (elf_cris_copy_indirect_symbol): Remove invalid
|
|
|
|
|
assert of empty pcrel_relocs_copied on the direct symbol. Instead
|
|
|
|
|
of moving the list from the indirect symbol to the direct symbol,
|
|
|
|
|
merge into any existing list.
|
|
|
|
|
(cris_elf_check_relocs): Store the original section in the
|
|
|
|
|
pcrel_relocs_copied list, not the relocation section.
|
|
|
|
|
(elf_cris_discard_excess_dso_dynamics): Adjust accordingly to find
|
|
|
|
|
the relocation section, for reducing its size. Change the
|
|
|
|
|
BFD_ASSERT into a check for the section being read-only, and only
|
|
|
|
|
emit warnings and TEXTREL marker when there's an entry for a
|
|
|
|
|
read-only section.
|
|
|
|
|
|
2010-03-30 04:42:55 +08:00
|
|
|
|
2010-03-29 Daniel Jacobowitz <dan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (using_thumb_only): Handle v6-M.
|
|
|
|
|
|
2010-03-26 16:34:24 +08:00
|
|
|
|
2010-03-26 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* elf32-ppc.c (ppc_elf_howto_raw <R_PPC_EMB_RELSDA>): Not pc-relative.
|
|
|
|
|
* bfd-in.h (elf_discarded_section): Clarify comment.
|
|
|
|
|
* reloc.c (struct reloc_howto_struct <pc_relative>): Likewise.
|
|
|
|
|
* bfd-in2.h: Regenerate.
|
|
|
|
|
|
2010-03-26 09:40:40 +08:00
|
|
|
|
2010-03-26 Matt Rice <ratmice@gmail.com>
|
|
|
|
|
|
|
|
|
|
* archive.c (_bfd_compute_and_write_armap): Allow symbols flagged
|
|
|
|
|
as unique in the armap.
|
|
|
|
|
|
2010-03-26 08:35:57 +08:00
|
|
|
|
2010-03-26 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR ld/11375
|
|
|
|
|
* elf64-ppc.c (ppc64_elf_relocate_section): Always look up a
|
|
|
|
|
possible stub on branches.
|
|
|
|
|
|
bfd:
* Makefile.am (ALL_MACHINES): Add cpu-tic6x.lo.
(ALL_MACHINES_CFILES): Add cpu-tic6x.c.
(BFD32_BACKENDS): Add elf32-tic6x.lo.
(BFD32_BACKENDS_CFILES): Add elf32-tic6x.c.
* Makefile.in: Regenerate.
* archures.c (bfd_arch_tic6x, bfd_tic6x_arch): New.
(bfd_archures_list): Update.
* config.bfd (tic6x-*-elf): New.
* configure.in (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec):
New.
* configure: Regenerate.
* cpu-tic6x.c, elf32-tic6x.c: New.
* reloc.c (BFD_RELOC_C6000_PCR_S21, BFD_RELOC_C6000_PCR_S12,
BFD_RELOC_C6000_PCR_S10, BFD_RELOC_C6000_PCR_S7,
BFD_RELOC_C6000_ABS_S16, BFD_RELOC_C6000_ABS_L16,
BFD_RELOC_C6000_ABS_H16, BFD_RELOC_C6000_SBR_U15_B,
BFD_RELOC_C6000_SBR_U15_H, BFD_RELOC_C6000_SBR_U15_W,
BFD_RELOC_C6000_SBR_S16, BFD_RELOC_C6000_SBR_L16_B,
BFD_RELOC_C6000_SBR_L16_H, BFD_RELOC_C6000_SBR_L16_W,
BFD_RELOC_C6000_SBR_H16_B, BFD_RELOC_C6000_SBR_H16_H,
BFD_RELOC_C6000_SBR_H16_W, BFD_RELOC_C6000_SBR_GOT_U15_W,
BFD_RELOC_C6000_SBR_GOT_L16_W, BFD_RELOC_C6000_SBR_GOT_H16_W,
BFD_RELOC_C6000_DSBT_INDEX, BFD_RELOC_C6000_PREL31,
BFD_RELOC_C6000_COPY, BFD_RELOC_C6000_ALIGN,
BFD_RELOC_C6000_FPHEAD, BFD_RELOC_C6000_NOCMP): New.
* targets.c (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec): New.
(_bfd_target_vector): Update.
* bfd-in2.h, libbfd.h: Regenerate.
binutils:
* MAINTAINERS: Add self as TI C6X maintainer.
* NEWS: Add news entry for TI C6X support.
* readelf.c: Include elf/tic6x.h.
(guess_is_rela): Handle EM_TI_C6000.
(dump_relocations): Likewise.
(get_tic6x_dynamic_type): New.
(get_dynamic_type): Call it.
(get_machine_flags): Handle EF_C6000_REL.
(get_osabi_name): Handle machine-specific values only for relevant
machines. Handle C6X values.
(get_tic6x_segment_type): New.
(get_segment_type): Call it.
(get_tic6x_section_type_name): New.
(get_section_type_name): Call it.
(is_32bit_abs_reloc, is_16bit_abs_reloc, is_none_reloc): Handle
EM_TI_C6000.
gas:
* Makefile.am (TARGET_CPU_CFILES): Add config/tc-tic6x.c.
(TARGET_CPU_HFILES): Add config/tc-tic6x.h.
* Makefile.in: Regenerate.
* NEWS: Add news entry for TI C6X support.
* app.c (do_scrub_chars): Handle "||^" for TI C6X. Handle
TC_PREDICATE_START_CHAR and TC_PREDICATE_END_CHAR. Keep spaces in
operands if TC_KEEP_OPERAND_SPACES.
* configure.tgt (tic6x-*-*): New.
* config/tc-ia64.h (TC_PREDICATE_START_CHAR,
TC_PREDICATE_END_CHAR): Define.
* config/tc-tic6x.c, config/tc-tic6x.h: New.
* doc/Makefile.am (CPU_DOCS): Add c-tic6x.texi.
* doc/Makefile.in: Regenerate.
* doc/all.texi (TIC6X): Define.
* doc/as.texinfo: Add TI C6X documentation. Include c-tic6x.texi.
* doc/c-tic6x.texi: New.
gas/testsuite:
* gas/tic6x: New directory and testcases.
include:
* dis-asm.h (print_insn_tic6x): Declare.
include/elf:
* common.h (ELFOSABI_C6000_ELFABI, ELFOSABI_C6000_LINUX): Define.
* tic6x.h: New.
include/opcode:
* tic6x-control-registers.h, tic6x-insn-formats.h,
tic6x-opcode-table.h, tic6x.h: New.
ld:
* Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
eelf32_tic6x_le.o.
(eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
* NEWS: Add news entry for TI C6X support.
* configure.tgt (tic6x-*-*): New.
* emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
ld/testsuite:
* ld-elf/flags1.d, ld-elf/merge.d: XFAIL for tic6x-*-*.
* ld-elf/sec-to-seg.exp: Set B_test_same_seg to 0 for tic6x-*-*.
* ld-tic6x: New directory and testcases.
opcodes:
* Makefile.am (TARGET_LIBOPCODES_CFILES): Add tic6x-dis.c.
* Makefile.in: Regenerate.
* configure.in (bfd_tic6x_arch): New.
* configure: Regenerate.
* disassemble.c (ARCH_tic6x): Define if ARCH_all.
(disassembler): Handle TI C6X.
* tic6x-dis.c: New.
2010-03-26 05:12:36 +08:00
|
|
|
|
2010-03-25 Joseph Myers <joseph@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (ALL_MACHINES): Add cpu-tic6x.lo.
|
|
|
|
|
(ALL_MACHINES_CFILES): Add cpu-tic6x.c.
|
|
|
|
|
(BFD32_BACKENDS): Add elf32-tic6x.lo.
|
|
|
|
|
(BFD32_BACKENDS_CFILES): Add elf32-tic6x.c.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* archures.c (bfd_arch_tic6x, bfd_tic6x_arch): New.
|
|
|
|
|
(bfd_archures_list): Update.
|
|
|
|
|
* config.bfd (tic6x-*-elf): New.
|
|
|
|
|
* configure.in (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec):
|
|
|
|
|
New.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
* cpu-tic6x.c, elf32-tic6x.c: New.
|
|
|
|
|
* reloc.c (BFD_RELOC_C6000_PCR_S21, BFD_RELOC_C6000_PCR_S12,
|
|
|
|
|
BFD_RELOC_C6000_PCR_S10, BFD_RELOC_C6000_PCR_S7,
|
|
|
|
|
BFD_RELOC_C6000_ABS_S16, BFD_RELOC_C6000_ABS_L16,
|
|
|
|
|
BFD_RELOC_C6000_ABS_H16, BFD_RELOC_C6000_SBR_U15_B,
|
|
|
|
|
BFD_RELOC_C6000_SBR_U15_H, BFD_RELOC_C6000_SBR_U15_W,
|
|
|
|
|
BFD_RELOC_C6000_SBR_S16, BFD_RELOC_C6000_SBR_L16_B,
|
|
|
|
|
BFD_RELOC_C6000_SBR_L16_H, BFD_RELOC_C6000_SBR_L16_W,
|
|
|
|
|
BFD_RELOC_C6000_SBR_H16_B, BFD_RELOC_C6000_SBR_H16_H,
|
|
|
|
|
BFD_RELOC_C6000_SBR_H16_W, BFD_RELOC_C6000_SBR_GOT_U15_W,
|
|
|
|
|
BFD_RELOC_C6000_SBR_GOT_L16_W, BFD_RELOC_C6000_SBR_GOT_H16_W,
|
|
|
|
|
BFD_RELOC_C6000_DSBT_INDEX, BFD_RELOC_C6000_PREL31,
|
|
|
|
|
BFD_RELOC_C6000_COPY, BFD_RELOC_C6000_ALIGN,
|
|
|
|
|
BFD_RELOC_C6000_FPHEAD, BFD_RELOC_C6000_NOCMP): New.
|
|
|
|
|
* targets.c (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec): New.
|
|
|
|
|
(_bfd_target_vector): Update.
|
|
|
|
|
* bfd-in2.h, libbfd.h: Regenerate.
|
|
|
|
|
|
2010-03-24 23:41:59 +08:00
|
|
|
|
2010-03-24 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* aout-target.h: Update copyright year.
|
|
|
|
|
* aout-tic30.c: Likewise.
|
|
|
|
|
* coff-alpha.c: Likewise.
|
|
|
|
|
* coff-rs6000.c: Likewise.
|
|
|
|
|
* coff64-rs6000.c: Likewise.
|
|
|
|
|
* elf64-mips.c: Likewise.
|
|
|
|
|
* ieee.c: Likewise.
|
|
|
|
|
* libecoff.h: Likewise.
|
|
|
|
|
* mach-o-target.c: Likewise.
|
|
|
|
|
* mach-o.c: Likewise.
|
|
|
|
|
* oasys.c: Likewise.
|
|
|
|
|
* targets.c: Likewise.
|
|
|
|
|
|
2010-03-24 23:04:29 +08:00
|
|
|
|
2010-03-24 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* libbfd-in.h: Update copyright year.
|
|
|
|
|
|
2010-03-22 07:26:33 +08:00
|
|
|
|
2010-03-21 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/11413
|
|
|
|
|
* elflink.c (_bfd_elf_add_default_symbol): Check !executable
|
|
|
|
|
instead of shared.
|
|
|
|
|
|
2010-03-20 01:04:17 +08:00
|
|
|
|
2010-03-19 Jie Zhang <jie@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (struct section_list): Remove.
|
|
|
|
|
(section_list): Remove typedef.
|
|
|
|
|
(record_section_with_arm_elf_section_data): Remove.
|
|
|
|
|
(find_arm_elf_section_entry): Remove.
|
|
|
|
|
(get_arm_elf_section_data): Use is_arm_elf.
|
|
|
|
|
(unrecord_section_with_arm_elf_section_data): Remove.
|
|
|
|
|
(elf32_arm_new_section_hook): Don't call
|
|
|
|
|
record_section_with_arm_elf_section_data.
|
|
|
|
|
(elf32_arm_write_section): Set mapcount to -1 when
|
|
|
|
|
the map has been used. Don't call
|
|
|
|
|
unrecord_section_with_arm_elf_section_data.
|
|
|
|
|
(unrecord_section_via_map_over_sections): Remove.
|
|
|
|
|
(elf32_arm_close_and_cleanup): Remove.
|
|
|
|
|
(elf32_arm_bfd_free_cached_info): Remove.
|
|
|
|
|
(bfd_elf32_close_and_cleanup): Don't define.
|
|
|
|
|
(bfd_elf32_bfd_free_cached_info): Don't define.
|
|
|
|
|
|
2010-03-18 20:27:15 +08:00
|
|
|
|
2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR binutils/11396
|
|
|
|
|
* libcoff-in.h (pe_tdata): Add dont_strip_reloc.
|
|
|
|
|
* libcoff.h: Regenerated.
|
|
|
|
|
|
|
|
|
|
* peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Clear F_RELFLG
|
|
|
|
|
if dont_strip_reloc is set.
|
|
|
|
|
(_bfd_XX_bfd_copy_private_bfd_data_common): Set
|
|
|
|
|
dont_strip_reloc on output if there is no .reloc and
|
|
|
|
|
IMAGE_FILE_RELOCS_STRIPPED isn't set in input.
|
|
|
|
|
|
2010-03-18 19:22:46 +08:00
|
|
|
|
2010-03-18 Wei Guozhi <carrot@google.com>
|
|
|
|
|
|
|
|
|
|
PR gas/11323
|
|
|
|
|
* elf32-arm.c (elf32_arm_reloc_map): Map BFD_RELOC_ARM_GOT_PREL to
|
|
|
|
|
R_ARM_GOT_PREL.
|
|
|
|
|
* reloc.c (BFD_RELOC_ARM_GOT_PREL): New ARM relocation.
|
|
|
|
|
* bfd-in2.h: Regenerate.
|
|
|
|
|
* libbfd.h: Regenerate.
|
|
|
|
|
|
2010-03-18 07:00:05 +08:00
|
|
|
|
2010-03-17 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* reloc.c (BFD_RELOC_SPU_PIC18): Removed.
|
|
|
|
|
(BFD_RELOC_SPU_STUB): Likewise.
|
|
|
|
|
|
2010-03-17 21:46:35 +08:00
|
|
|
|
2010-03-17 Jie Zhang <jie@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* elf.c (assign_file_positions_for_load_sections): Avoid
|
|
|
|
|
overflow.
|
|
|
|
|
|
2010-03-17 16:50:36 +08:00
|
|
|
|
2010-03-17 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
2010-03-26 08:19:29 +08:00
|
|
|
|
PR binutils/11382
|
2010-03-17 16:50:36 +08:00
|
|
|
|
* plugin.c (bfd_plugin_object_p): Pass iostream to fileno using
|
|
|
|
|
proper type.
|
|
|
|
|
|
2010-03-17 15:57:06 +08:00
|
|
|
|
2010-03-17 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (cortex_a8_erratum_scan): Warning fix.
|
|
|
|
|
|
2010-03-16 08:40:36 +08:00
|
|
|
|
2010-03-16 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* elf64-ppc.c (struct ppc_link_hash_table): Add do_toc_opt.
|
|
|
|
|
(ppc64_elf_edit_toc): Set it here.
|
|
|
|
|
(ha_reloc_match): New function.
|
|
|
|
|
(ppc64_elf_relocate_section): Optimize bigtoc insn sequences.
|
|
|
|
|
|
2010-03-15 09:59:57 +08:00
|
|
|
|
2010-03-15 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* elf64-ppc.c (ppc64_elf_has_small_toc_reloc): New function.
|
|
|
|
|
* elf64-ppc.h (ppc64_elf_has_small_toc_reloc): Declare.
|
|
|
|
|
|
2010-03-14 15:05:36 +08:00
|
|
|
|
2010-03-14 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR ld/11378
|
|
|
|
|
* elf64-ppc.h (ppc64_elf_check_init_fini): Declare.
|
|
|
|
|
* elf64-ppc.c (call_check_done): Define.
|
|
|
|
|
(ppc64_elf_add_symbol_hook): Substitute bfd_get_section_name macro.
|
|
|
|
|
(ppc64_elf_check_relocs, ppc64_elf_size_dynamic_sections): Likewise.
|
|
|
|
|
(ppc64_elf_finish_multitoc_partition): Remove unnecessary check.
|
|
|
|
|
(toc_adjusting_stub_needed): Use call_check_done rather than toc_off.
|
|
|
|
|
Simplify return logic. Iterate over all .init and .fini fragments
|
|
|
|
|
by recursion. Set makes_toc_func_call here..
|
|
|
|
|
(ppc64_elf_next_input_section): ..rather than here.
|
|
|
|
|
(check_pasted_section, ppc64_elf_check_init_fini): New functions.
|
|
|
|
|
|
2010-03-13 06:31:16 +08:00
|
|
|
|
2010-03-13 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR ld/11375
|
|
|
|
|
* elf64-ppc.c (ppc_type_of_stub): Always set *hash to the
|
|
|
|
|
function descriptor symbol if there is one, not just for plt stubs.
|
|
|
|
|
(ppc64_elf_relocate_section): Use fdh on all ppc_get_stub_entry calls.
|
|
|
|
|
|
2010-03-06 03:49:00 +08:00
|
|
|
|
2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
|
|
|
|
|
|
|
|
|
* elflink.c (bfd_elf_size_dynamic_sections): Don't emit base
|
|
|
|
|
version twice.
|
|
|
|
|
Skip it when constructing def.vd_next.
|
|
|
|
|
|
|
|
|
|
* elf32-i386.c (TARGET_LITTLE_SYM): Redefine to
|
|
|
|
|
bfd_elf32_i386_sol2_vec.
|
|
|
|
|
(TARGET_LITTLE_NAME): Redefine to elf32-i386-sol2.
|
|
|
|
|
(elf32_bed): Redefine to elf32_i386_sol2_bed.
|
|
|
|
|
(elf_backend_want_plt_sym): Redefine to 1.
|
|
|
|
|
|
|
|
|
|
* elf64-x86-64.c (TARGET_LITTLE_SYM): Redefine to
|
|
|
|
|
bfd_elf64_x86_64_sol2_vec.
|
|
|
|
|
(TARGET_LITTLE_NAME): Redefine to elf64-x86-64-sol2.
|
|
|
|
|
(elf64_bed): Redefine to elf64_x86_64_sol2_bed.
|
|
|
|
|
(elf_backend_want_plt_sym): Redefine to 1.
|
|
|
|
|
|
|
|
|
|
* config.bfd (i[3-7]86-*-solaris2*): Set targ_defvec to
|
|
|
|
|
bfd_elf32_i386_sol2_vec.
|
|
|
|
|
Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
|
|
|
|
|
targ64_selvecs.
|
|
|
|
|
(x86_64-*-solaris2*): Set targ_defvec to bfd_elf32_i386_sol2_vec.
|
|
|
|
|
Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
|
|
|
|
|
targ_selvecs.
|
|
|
|
|
|
|
|
|
|
* configure.in: Handle bfd_elf32_i386_sol2_vec,
|
|
|
|
|
bfd_elf64_x86_64_sol2_vec.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
|
|
|
|
|
* targets.c (bfd_elf32_i386_sol2_vec): Declare.
|
|
|
|
|
(bfd_elf64_x86_64_sol2_vec): Declare.
|
|
|
|
|
(_bfd_target_vector): Add bfd_elf32_i386_sol2_vec,
|
|
|
|
|
bfd_elf64_x86_64_sol2_vec.
|
|
|
|
|
|
2010-03-05 01:16:08 +08:00
|
|
|
|
2010-03-04 Daniel Jacobowitz <dan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (elf32_arm_output_arch_local_syms): Skip non-program
|
|
|
|
|
sections.
|
|
|
|
|
|
2010-03-04 12:01:53 +08:00
|
|
|
|
2010-03-04 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 11302
|
|
|
|
|
* dwarf2.c (read_abbrevs): Return NULL on alloc failures.
|
|
|
|
|
(read_attribute_value, decode_line_info): Likewise.
|
|
|
|
|
(add_line_info, read_rangelist): Return FALSE on alloc failures.
|
|
|
|
|
(arange_add, sort_line_sequences): Likewise.
|
|
|
|
|
(find_abstract_instance_name): Handle failures from called funcs.
|
|
|
|
|
(scan_unit_for_symbols, parse_comp_unit, decode_line_info): Likewise.
|
|
|
|
|
(find_line): Realloc to a temp, and handle alloc fail.
|
|
|
|
|
|
2010-03-04 01:56:24 +08:00
|
|
|
|
2010-03-03 Daniel Jacobowitz <dan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (elf32_arm_output_arch_local_syms): Do not add
|
|
|
|
|
a mapping symbol to an empty section.
|
|
|
|
|
|
2010-03-02 19:40:24 +08:00
|
|
|
|
2010-03-02 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (elf32_arm_merge_eabi_attributes): Add a check of the
|
|
|
|
|
return value from the call to _bfd_elf_merge_object_attributes.
|
|
|
|
|
|
2010-03-02 16:19:54 +08:00
|
|
|
|
2010-03-02 Christophe Lyon <christophe.lyon@st.com>
|
|
|
|
|
Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (a8_erratum_fix): Add st_type field to record the
|
|
|
|
|
destination mode of the a8 stub.
|
|
|
|
|
(elf32_arm_link_hash_table): Add top_id field.
|
|
|
|
|
(elf32_arm_link_hash_table_create): Initialize top_id.
|
|
|
|
|
(arm_type_of_stub): Update prototype, st_type can now be updated
|
|
|
|
|
by this function. Actual destination address in case of PLT is
|
|
|
|
|
computed here, to help factorizing code.
|
|
|
|
|
(elf32_arm_stub_name): Update prototype, use stub_type additional
|
|
|
|
|
parameter to build stub name.
|
|
|
|
|
(elf32_arm_get_stub_entry): Update prototype, use stub_type
|
|
|
|
|
additional parameter to build stub entry.
|
|
|
|
|
(arm_build_one_stub): Use bfd_put_16/bfd_put_32 instead of
|
|
|
|
|
put_thumb_insn/put_arm_insn as BE8 encoding is now handled later.
|
|
|
|
|
Call elf32_arm_final_link_relocate to process all in-stub
|
|
|
|
|
relocations.
|
|
|
|
|
(elf32_arm_setup_section_lists): Update top_id.
|
|
|
|
|
(cortex_a8_erratum_scan): Record stub destination mode.
|
|
|
|
|
(elf32_arm_size_stubs): Update call to arm_type_of_stub according
|
|
|
|
|
to new prototype.
|
|
|
|
|
(elf32_arm_final_link_relocate): Enable processing of in-stub
|
|
|
|
|
REL32 relocations. Rely on arm_type_of_stub to detect if a stub is
|
|
|
|
|
needed, enabling code factorization.
|
|
|
|
|
(elf32_arm_final_link): Process stub sections.
|
|
|
|
|
(elf32_arm_output_map_sym): Add entry to code/data map.
|
|
|
|
|
|
2010-03-02 09:46:09 +08:00
|
|
|
|
2010-03-01 David S. Miller <davem@davemloft.net>
|
|
|
|
|
|
|
|
|
|
* elfxx-sparc.c (_bfd_sparc_elf_check_relocs): When STT_GNU_IFUNC and
|
|
|
|
|
h->def_regular, set h->ref_regular.
|
|
|
|
|
(allocate_dynrelocs): Only force output of STT_GNU_IFUNC plt entries
|
|
|
|
|
and dynamic relocations if h->ref_regular.
|
|
|
|
|
|
2010-03-02 15:42:37 +08:00
|
|
|
|
* elfxx-sparc.c (struct elf_reloc_map): Delete.
|
|
|
|
|
(sparc_reloc_map): Delete.
|
|
|
|
|
(_bfd_sparc_elf_reloc_type_lookup): Explicitly handle each
|
|
|
|
|
relocation type in switch statements.
|
|
|
|
|
|
2010-02-25 11:49:15 +08:00
|
|
|
|
2010-02-25 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR ld/11304
|
|
|
|
|
* elf.c (_bfd_elf_init_private_section_data): Rename need_group
|
|
|
|
|
to final_link and invert. For final link allow some flags to
|
|
|
|
|
differ. Don't specially allow flags to be all zero.
|
|
|
|
|
|
2010-02-24 22:21:51 +08:00
|
|
|
|
2010-02-24 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR binutils/10858
|
|
|
|
|
* elfxx-mips.c (mips_elf_create_dynamic_relocation): Ise
|
|
|
|
|
SYMBOL_REFERENCES_LOCAL to exclude entries from the dynamic symbol
|
|
|
|
|
table.
|
|
|
|
|
|
2010-02-23 19:38:36 +08:00
|
|
|
|
2010-02-23 Andrew Zabolotny <anpaza@mail.ru>
|
|
|
|
|
|
|
|
|
|
PR binutils/11297
|
|
|
|
|
* elf32-avr.c (elf_avr_howto_table): Add R_AVR_8.
|
|
|
|
|
(avr_reloc_map): Map BFD_RELOC_8 to R_AVR_8.
|
|
|
|
|
|
2010-02-22 06:24:03 +08:00
|
|
|
|
2010-02-22 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* reloc.c (bfd_check_overflow): When forming addrmask, shift
|
|
|
|
|
fieldmask left by rightshift.
|
|
|
|
|
(_bfd_relocate_contents): Likewise. Use rightshift addrmask in all
|
|
|
|
|
overflow checks.
|
|
|
|
|
|
2010-02-20 23:47:03 +08:00
|
|
|
|
2010-02-20 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Don't check
|
|
|
|
|
STT_GNU_IFUNC on large common symbol.
|
|
|
|
|
|
2010-02-19 13:07:50 +08:00
|
|
|
|
2010-02-18 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* elf32-i386.c (elf_i386_add_symbol_hook): Don't set
|
|
|
|
|
has_ifunc_symbols if the symbol comes from a shared library.
|
|
|
|
|
* elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
|
|
|
|
|
* elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
|
|
|
|
|
* elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
|
|
|
|
|
* elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
|
|
|
|
|
* elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Likewise.
|
|
|
|
|
|
2010-02-19 09:47:16 +08:00
|
|
|
|
2010-02-19 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* elf.c (_bfd_elf_fixup_group_sections): New function, split out from..
|
|
|
|
|
(_bfd_elf_copy_private_header_data): ..here.
|
|
|
|
|
* elflink.c (_bfd_elf_size_group_sections): New function.
|
|
|
|
|
(bfd_elf_size_dynamic_sections): Call it.
|
|
|
|
|
* elf-bfd.h (_bfd_elf_size_group_sections): Declare.
|
|
|
|
|
(_bfd_elf_fixup_group_sections): Declare.
|
|
|
|
|
|
2010-02-18 18:56:28 +08:00
|
|
|
|
2010-02-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (elf32_arm_merge_eabi_attributes): Add support for
|
|
|
|
|
merging Tag_DIV_use, Tag_MPextension_use, and
|
|
|
|
|
Tag_MPextension_use_legacy tags.
|
|
|
|
|
|
2010-02-18 08:09:06 +08:00
|
|
|
|
2010-02-18 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* elf.c (bfd_elf_set_group_contents): Revert accidental 2009-01-15
|
|
|
|
|
commit. Don't write zeros for removed group members.
|
|
|
|
|
(_bfd_elf_copy_private_header_data): Adjust size of group section
|
|
|
|
|
when group members are removed by objcopy.
|
|
|
|
|
|
2010-02-16 03:25:47 +08:00
|
|
|
|
2010-02-15 Dave Korn <dave.korn.cygwin@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR binutils/11280
|
|
|
|
|
* configure.host (*-*-solaris2.11): Add host define to select
|
|
|
|
|
valid default code page for windres/windmc on solaris.
|
|
|
|
|
|
2010-02-15 18:09:39 +08:00
|
|
|
|
2010-02-15 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* po/vi.po: Updated Vietnamese translation.
|
|
|
|
|
|
2010-02-13 04:52:52 +08:00
|
|
|
|
2010-02-12 Daniel Gutson <dgutson@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (elf32_arm_output_arch_local_syms): add
|
|
|
|
|
missing mapping symbol to data only sections.
|
|
|
|
|
|
2010-02-12 03:57:40 +08:00
|
|
|
|
2010-02-11 David S. Miller <davem@davemloft.net>
|
|
|
|
|
|
|
|
|
|
* elfxx-sparc.c (_bfd_sparc_elf_check_relocs): For R_SPARC_GOTDATA_OP_HIX22
|
|
|
|
|
and R_SPARC_GOTDATA_OP_LOX10, only bump the GOT refcount for global
|
|
|
|
|
symbols.
|
|
|
|
|
(_bfd_sparc_elf_gc_sweep_hook): Likewise only decrement the GOT count for
|
|
|
|
|
these relocs on global symbols.
|
|
|
|
|
(gdopoff): New.
|
|
|
|
|
(_bfd_sparc_elf_relocate_section): Perform GOTDATA optimizations on
|
|
|
|
|
local symbol references which are not STT_GNU_IFUNC. Handle
|
|
|
|
|
relocation of them like R_SPARC_HIX22 and R_SPARC_LOX10 respectively,
|
|
|
|
|
and deal with negative vs. non-negative values properly.
|
|
|
|
|
|
2010-02-09 21:39:22 +08:00
|
|
|
|
2010-02-09 Tristan Gingold <gingold@adacore.com>
|
|
|
|
|
|
|
|
|
|
* mach-o.c (bfd_mach_o_canonicalize_one_reloc): Adjust addend for
|
|
|
|
|
non-external relocation.
|
|
|
|
|
|
2010-02-09 20:31:01 +08:00
|
|
|
|
2010-02-09 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* elf64-ppc.c (merge_got_entries): Move earlier in file.
|
|
|
|
|
(allocate_dynrelocs): Merge got entries here if not doing multi-toc.
|
|
|
|
|
(ppc64_elf_size_dynamic_sections): Similarly merge tlsld_got.
|
|
|
|
|
(ppc64_elf_layout_multitoc): Don't resize if we have already
|
|
|
|
|
merged got entries.
|
|
|
|
|
|
bfd/
2010-02-09 Michael Holzheu <holzheu@de.ibm.com>
* elf-bfd.h (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
elfcore_write_s390_prefix): New.
* elf.c (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
elfcore_write_s390_prefix): New.
(elfcore_grok_note): Handle NT_S390_TIMER, NT_S390_TODCMP,
NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
(elfcore_write_register_note): Handle .reg-s390-timer,
.reg-s390-todcmp, .reg-s390-todpreg, .reg-s390-ctrs,
.reg-s390-prefix section.
binutils/
2010-02-09 Michael Holzheu <holzheu@de.ibm.com>
* readelf.c (get_note_type): Handle NT_S390_TIMER, NT_S390_TODCMP,
NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
include/elf/
2010-02-09 Michael Holzheu <holzheu@de.ibm.com>
* common.h (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG,
NT_S390_CTRS and NT_S390_PREFIX): Define.
2010-02-09 20:14:43 +08:00
|
|
|
|
2010-02-09 Michael Holzheu <holzheu@de.ibm.com>
|
|
|
|
|
|
|
|
|
|
* elf-bfd.h (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
|
|
|
|
|
elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
|
|
|
|
|
elfcore_write_s390_prefix): New.
|
|
|
|
|
* elf.c (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
|
|
|
|
|
elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
|
|
|
|
|
elfcore_write_s390_prefix): New.
|
|
|
|
|
(elfcore_grok_note): Handle NT_S390_TIMER, NT_S390_TODCMP,
|
|
|
|
|
NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
|
2010-03-26 09:40:40 +08:00
|
|
|
|
(elfcore_write_register_note): Handle .reg-s390-timer,
|
bfd/
2010-02-09 Michael Holzheu <holzheu@de.ibm.com>
* elf-bfd.h (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
elfcore_write_s390_prefix): New.
* elf.c (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
elfcore_write_s390_prefix): New.
(elfcore_grok_note): Handle NT_S390_TIMER, NT_S390_TODCMP,
NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
(elfcore_write_register_note): Handle .reg-s390-timer,
.reg-s390-todcmp, .reg-s390-todpreg, .reg-s390-ctrs,
.reg-s390-prefix section.
binutils/
2010-02-09 Michael Holzheu <holzheu@de.ibm.com>
* readelf.c (get_note_type): Handle NT_S390_TIMER, NT_S390_TODCMP,
NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
include/elf/
2010-02-09 Michael Holzheu <holzheu@de.ibm.com>
* common.h (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG,
NT_S390_CTRS and NT_S390_PREFIX): Define.
2010-02-09 20:14:43 +08:00
|
|
|
|
.reg-s390-todcmp, .reg-s390-todpreg, .reg-s390-ctrs,
|
|
|
|
|
.reg-s390-prefix section.
|
|
|
|
|
|
2010-02-09 19:35:37 +08:00
|
|
|
|
2010-02-09 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* elf64-ppc.c (struct got_entry): Make tls_type and is_indirect
|
|
|
|
|
unsigned char. Update variables and code using them throughout file.
|
|
|
|
|
(struct ppc_link_hash_entry): Likewise for tls_mask.
|
|
|
|
|
|
2010-02-09 19:54:52 +08:00
|
|
|
|
* elf64-ppc.c (ppc64_elf_layout_multitoc): Don't merge local got ents.
|
|
|
|
|
|
2010-02-09 20:08:19 +08:00
|
|
|
|
* elf64-ppc.c (has_small_toc_reloc): Don't define.
|
|
|
|
|
(makes_toc_func_call, call_check_in_progress): Shuffle flags.
|
|
|
|
|
(struct ppc64_elf_obj_tdata): Add has_small_toc_reloc. Update
|
|
|
|
|
code setting the flag.
|
|
|
|
|
(ppc64_elf_next_toc_section): Group big-toc sections in
|
|
|
|
|
0x80008000 chunks.
|
|
|
|
|
|
2010-02-09 04:18:03 +08:00
|
|
|
|
2010-02-08 David S. Miller <davem@davemloft.net>
|
|
|
|
|
|
|
|
|
|
* elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove sgot,
|
|
|
|
|
srelgot, splt, srelplt, and sgotplt members in favor of generic copies.
|
|
|
|
|
|
|
|
|
|
* elfxx-sparc.c (create_got_section): Delete.
|
|
|
|
|
(_bfd_sparc_elf_create_dynamic_sections): Don't call, the dynamic
|
|
|
|
|
section creator does that work for us. Use ->elf.foo instead of
|
|
|
|
|
->foo where applicable.
|
|
|
|
|
(_bfd_sparc_elf_check_relocs): Use ->elf.foo instead of ->foo
|
|
|
|
|
where applicable.
|
|
|
|
|
(allocate_dynrelocs): Likewise.
|
|
|
|
|
(_bfd_sparc_elf_size_dynamic_sections): Likewise.
|
|
|
|
|
(_bfd_sparc_elf_relocate_section): Likewise.
|
|
|
|
|
(sparc_vxworks_build_plt_entry): Likewise.
|
|
|
|
|
(_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
|
|
|
|
|
(sparc_finish_dyn): Likewise.
|
|
|
|
|
(sparc_vxworks_finish_exec_plt): Likewise.
|
|
|
|
|
(sparc_vxworks_finish_shared_plt): Likewise.
|
|
|
|
|
(_bfd_sparc_elf_finish_dynamic_sections): Likewise.
|
|
|
|
|
|
|
|
|
|
* elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use the SYMBOL_*
|
|
|
|
|
macros for visibilty and locality checks.
|
|
|
|
|
(_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
|
|
|
|
|
(allocate_dynrelocs): Likewise.
|
|
|
|
|
(_bfd_sparc_elf_relocate_section): Likewise.
|
|
|
|
|
(_bfd_sparc_elf_finish_dynamic_symbol):Likewise.
|
|
|
|
|
|
|
|
|
|
* elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove set
|
|
|
|
|
but never used local var 'dynobj'.
|
|
|
|
|
|
|
|
|
|
* elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Handle
|
|
|
|
|
nocopyreloc.
|
|
|
|
|
|
2010-02-09 04:28:43 +08:00
|
|
|
|
* reloc.c (BFD_RELOC_SPARC_JMP_IREL): New.
|
|
|
|
|
(BFD_RELOC_SPARC_IRELATIVE): Likewise.
|
|
|
|
|
* bfd-in2.h: Regenerate.
|
|
|
|
|
* libbfd.h: Regenerate.
|
|
|
|
|
|
|
|
|
|
* elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add loc_hash_table
|
|
|
|
|
and loc_hash_memory.
|
|
|
|
|
(_bfd_sparc_elf_link_hash_table_free): Declare.
|
|
|
|
|
* elf32-sparc.c (elf32_sparc_add_symbol_hook): New.
|
|
|
|
|
(elf_backend_add_symbol_hook, elf_backend_post_process_headers,
|
|
|
|
|
bfd_elf32_bfd_link_hash_table_free): Define.
|
|
|
|
|
* elf64-sparc.c (elf64_sparc_add_symbol_hook): Set
|
|
|
|
|
has_ifunc_symbols if STT_GNU_IFUNC.
|
|
|
|
|
(bfd_elf64_bfd_link_hash_table_free): Define.
|
|
|
|
|
(elf_backend_post_process_headers): Define always.
|
|
|
|
|
* elfxx-sparc.c (sparc_jmp_irel_howto, sparc_irelative_howto): New.
|
|
|
|
|
(sparc_reloc_map): Add entries for new IFUNC relocs.
|
|
|
|
|
(_bfd_sparc_elf_reloc_type_lookup): Handle new IFUNC relocs.
|
|
|
|
|
(_bfd_sparc_elf_info_to_howto_ptr): Likewise.
|
|
|
|
|
(elf_sparc_local_htab_hash, elf_sparc_local_htab_eq,
|
|
|
|
|
elf_sparc_get_local_sym_hash): New.
|
|
|
|
|
(_bfd_sparc_elf_create_dynamic_sections): Move PLT ops initialization
|
|
|
|
|
from here...
|
|
|
|
|
(_bfd_sparc_elf_link_hash_table_create): ... to here. Allocate
|
|
|
|
|
local hash table.
|
|
|
|
|
(_bfd_sparc_elf_link_hash_table_free): New.
|
|
|
|
|
(create_ifunc_sections): New.
|
|
|
|
|
(_bfd_sparc_elf_check_relocs): Unconditionally assign htab->elf.dynobj
|
|
|
|
|
and call create_ifunc_sections(). For local STT_GNU_IFUNC symbols
|
|
|
|
|
cons up a fake local hash table entry for it. Unconditionally add
|
|
|
|
|
a PLT refcount for STT_GNU_IFUNC symbols when h->def_regular. Count
|
|
|
|
|
dyn relocs for ifunc.
|
|
|
|
|
(_bfd_sparc_elf_adjust_dynamic_symbol): Handle ifunc.
|
|
|
|
|
(allocate_dynrelocs): Unconditionally emit a PLT entry when
|
|
|
|
|
STT_GNU_IFUNC and h->def_regular. Count GOT dyn relocs for ifunc.
|
|
|
|
|
(allocate_local_dynrelocs): New function.
|
|
|
|
|
(_bfd_sparc_elf_size_dynamic_sections): Invoke it over the local hash
|
|
|
|
|
table. Emit dynamic relocs to irelplt when not shared. Treat iplt
|
|
|
|
|
like splt.
|
|
|
|
|
(_bfd_sparc_elf_relocate_section): Handle ifunc relocations by hand.
|
|
|
|
|
(_bfd_sparc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc
|
|
|
|
|
plt in iplt/irelplt.
|
|
|
|
|
|
2010-02-09 04:00:54 +08:00
|
|
|
|
2010-02-08 Richard Sandiford <r.sandiford@uk.ibm.com>
|
|
|
|
|
|
|
|
|
|
* xcofflink.c (_bfd_xcoff_bfd_final_link): When calculating
|
|
|
|
|
max_contents_size, only consider sections whose contents must
|
|
|
|
|
be swapped in.
|
|
|
|
|
|
2010-02-08 22:09:25 +08:00
|
|
|
|
2010-02-09 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* elf64-ppc.c (allocate_dynrelocs): Remove unused got structs here..
|
|
|
|
|
(ppc64_elf_size_dynamic_sections): ..and here..
|
|
|
|
|
(merge_got_entries): ..rather than here.
|
|
|
|
|
|
2010-02-08 21:50:17 +08:00
|
|
|
|
2010-02-09 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* elf64-ppc.c (struct ppc_link_hash_table): Add do_multi_toc.
|
|
|
|
|
(has_small_toc_reloc): Define.
|
|
|
|
|
(ppc64_elf_check_relocs): Set the above flags.
|
|
|
|
|
(ppc64_elf_edit_opd): Delete obfd param.
|
|
|
|
|
(ppc64_elf_tls_optimize): Likewise.
|
|
|
|
|
(ppc64_elf_edit_toc): Likewise.
|
|
|
|
|
(ppc64_elf_tls_setup): Likewise. Add no_multi_toc param.
|
|
|
|
|
* elf64-ppc.h: Update prototypes.
|
|
|
|
|
|
2010-02-08 21:16:24 +08:00
|
|
|
|
2010-02-08 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* section.c (struct bfd_section): Delete has_tls_reloc,
|
|
|
|
|
has_tls_get_addr_call, has_gp_reloc, need_finalize_relax, reloc_done.
|
|
|
|
|
Add sec_flg0 thru sec_flg5.
|
|
|
|
|
(BFD_FAKE_SECTION): Update for changed flags.
|
|
|
|
|
* ecoff.c (bfd_debug_section): Likewise.
|
|
|
|
|
* elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
|
|
|
|
|
* elf64-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
|
|
|
|
|
(has_toc_reloc, makes_toc_func_call, call_check_in_progress): Update.
|
|
|
|
|
* elf32-xtensa.c (reloc_done): Define.
|
|
|
|
|
* elfxx-ia64.c (skip_relax_pass_0, skip_relax_pass_1): Update.
|
|
|
|
|
* bfd-in2.h: Regenerate.
|
|
|
|
|
|
2010-02-08 17:13:47 +08:00
|
|
|
|
2010-02-08 Tristan Gingold <gingold@adacore.com>
|
|
|
|
|
|
|
|
|
|
* mach-o.c (bfd_mach_o_canonicalize_one_reloc): Set reloc.r_extern
|
|
|
|
|
for non-scattered relocations.
|
|
|
|
|
|
2010-02-08 15:09:39 +08:00
|
|
|
|
2010-02-08 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* elf32-ppc.c (ppc_elf_begin_write_processing): Allow empty
|
|
|
|
|
apuinfo sections, only scan input sections once and reuse the
|
|
|
|
|
buffer.
|
|
|
|
|
|
2010-02-08 09:59:38 +08:00
|
|
|
|
2010-02-08 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
|
|
|
|
|
|
|
|
|
|
* archures.c (bfd_mach_ppc_titan): Define.
|
|
|
|
|
* bfd-in2.h: Regenerate.
|
|
|
|
|
* cpu-powerpc.c (bfd_powerpc_archs): Add titan entry.
|
|
|
|
|
|
2010-02-08 08:48:27 +08:00
|
|
|
|
2010-02-08 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* elf32-ppc.c (ppc_elf_check_relocs): Remove dead ifunc code.
|
|
|
|
|
|
2010-02-06 01:42:46 +08:00
|
|
|
|
2010-02-05 Sterling Augustine <sterling@tensilica.com>
|
|
|
|
|
|
|
|
|
|
* elf.c (assign_file_positions_for_load_sections) Update lma of
|
|
|
|
|
section if necessary. Fixes Bugzilla 11219.
|
|
|
|
|
|
2010-02-05 22:58:11 +08:00
|
|
|
|
2010-02-05 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* elf32-i386.c: Remove trailing white spaces.
|
|
|
|
|
* elf64-x86-64.c: Likewise.
|
|
|
|
|
|
* elf-bfd.h (emum elf_object_id): Rename to elf_target_id. Add
entries for other architectures.
(struct elf_link_hash_table): Add hash_table_id field.
(elf_hash_table_id): New accessor macro.
* elflink.c (_bfd_elf_link_hash_table_init): Add target_id
parameter.
* elf-m10300.c (elf32_mn10300_hash_table): Check table id before
returning cast pointer.
(elf32_mn10300_link_hash_table_create): Identify new table as
containing MN10300 extensions.
(mn10300_elf_relax_section): Check pointer returned by
elf32_mn10300_hash_table.
* elf32-arm.c: Likewise, except using ARM extensions.
* elf32-avr.c: Likewise, except using AVR extensions.
* elf32-bfin.c: Likewise, except using BFIN extensions.
* elf32-cris.c: Likewise, except using CRIS extensions.
* elf32-frv.c: Likewise, except using FRV extensions.
* elf32-hppa.c: Likewise, except using HPPA32 extensions.
* elf32-i386.c: Likewise, except using I386 extensions.
* elf32-lm32.c: Likewise, except using LM32 extensions.
* elf32-m32r.c: Likewise, except using M32RM extensions.
* elf32-m68hc11.c: Likewise, except using M68HC11 extensions.
* elf32-m68hc1x.c: Likewise, except using M68HC11 extensions.
* elf32-m68hc1x.h: Likewise, except using M68HC11 extensions.
* elf32-m68k.c: Likewise, except using M68K extensions.
* elf32-microblaze.c: Likewise, except using MICROBLAZE extensions.
* elf32-ppc.c: Likewise, except using PPC32 extensions.
* elf32-s390.c: Likewise, except using S390 extensions.
* elf32-sh.c: Likewise, except using SH extensions.
* elf32-spu.c: Likewise, except using SPU extensions.
* elf32-xtensa.c: Likewise, except using XTENSA extensions.
* elf64-alpha.c: Likewise, except using ALPHA extensions.
* elf64-hppa.c: Likewise, except using HPPA64 extensions.
* elf64-ppc.c: Likewise, except using PPC64 extensions.
* elf64-s390.c: Likewise, except using S390 extensions.
* elf64-x86-64.c: Likewise, except using X86_64 extensions.
* elfxx-ia64.c: Likewise, except using IA64 extensions.
* elfxx-mips.c: Likewise, except using MIPS extensions.
* elfxx-sparc.c: Likewise, except using SPARC extensions.
* elfxx-sparc.h: Likewise, except using SPARC extensions.
* elf32-cr16.c (struct elf32_cr16_link_hash_table): Delete
redundant structure.
(elf32_cr16_hash_table): Delete unused macro.
(elf32_cr16_link_hash_traverse): Delete unused macro.
* elf32-score.c: Likewise.
* elf32-score7.c: Likewise.
* elf32-vax.c: Likewise.
* elf64-sh64.c: Likewise.
* emultempl/alphaelf.em: Update value expected from elf_object_id.
* emultempl/hppaelf.em: Likewise.
* emultempl/mipself.em: Likewise.
* emultempl/ppc32elf.em: Likewise.
* emultempl/ppc64elf.em: Likewise.
2010-02-04 17:16:43 +08:00
|
|
|
|
2010-02-03 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* elf-bfd.h (emum elf_object_id): Rename to elf_target_id. Add
|
|
|
|
|
entries for other architectures.
|
|
|
|
|
(struct elf_link_hash_table): Add hash_table_id field.
|
|
|
|
|
(elf_hash_table_id): New accessor macro.
|
|
|
|
|
* elflink.c (_bfd_elf_link_hash_table_init): Add target_id
|
|
|
|
|
parameter.
|
|
|
|
|
* elf-m10300.c (elf32_mn10300_hash_table): Check table id before
|
|
|
|
|
returning cast pointer.
|
|
|
|
|
(elf32_mn10300_link_hash_table_create): Identify new table as
|
|
|
|
|
containing MN10300 extensions.
|
|
|
|
|
(mn10300_elf_relax_section): Check pointer returned by
|
|
|
|
|
elf32_mn10300_hash_table.
|
|
|
|
|
* elf32-arm.c: Likewise, except using ARM extensions.
|
|
|
|
|
* elf32-avr.c: Likewise, except using AVR extensions.
|
|
|
|
|
* elf32-bfin.c: Likewise, except using BFIN extensions.
|
|
|
|
|
* elf32-cris.c: Likewise, except using CRIS extensions.
|
|
|
|
|
* elf32-frv.c: Likewise, except using FRV extensions.
|
|
|
|
|
* elf32-hppa.c: Likewise, except using HPPA32 extensions.
|
|
|
|
|
* elf32-i386.c: Likewise, except using I386 extensions.
|
|
|
|
|
* elf32-lm32.c: Likewise, except using LM32 extensions.
|
|
|
|
|
* elf32-m32r.c: Likewise, except using M32RM extensions.
|
|
|
|
|
* elf32-m68hc11.c: Likewise, except using M68HC11 extensions.
|
|
|
|
|
* elf32-m68hc1x.c: Likewise, except using M68HC11 extensions.
|
|
|
|
|
* elf32-m68hc1x.h: Likewise, except using M68HC11 extensions.
|
|
|
|
|
* elf32-m68k.c: Likewise, except using M68K extensions.
|
|
|
|
|
* elf32-microblaze.c: Likewise, except using MICROBLAZE extensions.
|
|
|
|
|
* elf32-ppc.c: Likewise, except using PPC32 extensions.
|
|
|
|
|
* elf32-s390.c: Likewise, except using S390 extensions.
|
|
|
|
|
* elf32-sh.c: Likewise, except using SH extensions.
|
|
|
|
|
* elf32-spu.c: Likewise, except using SPU extensions.
|
|
|
|
|
* elf32-xtensa.c: Likewise, except using XTENSA extensions.
|
|
|
|
|
* elf64-alpha.c: Likewise, except using ALPHA extensions.
|
|
|
|
|
* elf64-hppa.c: Likewise, except using HPPA64 extensions.
|
|
|
|
|
* elf64-ppc.c: Likewise, except using PPC64 extensions.
|
|
|
|
|
* elf64-s390.c: Likewise, except using S390 extensions.
|
|
|
|
|
* elf64-x86-64.c: Likewise, except using X86_64 extensions.
|
|
|
|
|
* elfxx-ia64.c: Likewise, except using IA64 extensions.
|
|
|
|
|
* elfxx-mips.c: Likewise, except using MIPS extensions.
|
|
|
|
|
* elfxx-sparc.c: Likewise, except using SPARC extensions.
|
|
|
|
|
* elfxx-sparc.h: Likewise, except using SPARC extensions.
|
|
|
|
|
* elf32-cr16.c (struct elf32_cr16_link_hash_table): Delete
|
|
|
|
|
redundant structure.
|
|
|
|
|
(elf32_cr16_hash_table): Delete unused macro.
|
|
|
|
|
(elf32_cr16_link_hash_traverse): Delete unused macro.
|
|
|
|
|
* elf32-score.c: Likewise.
|
|
|
|
|
* elf32-score7.c: Likewise.
|
|
|
|
|
* elf32-vax.c: Likewise.
|
|
|
|
|
* elf64-sh64.c: Likewise.
|
|
|
|
|
|
2010-02-03 20:03:35 +08:00
|
|
|
|
2010-02-03 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* elf64-ppc.c (struct plt_entry): Move earlier in file.
|
|
|
|
|
(struct got_entry): Likewise. Add is_indirect and got.ent fields.
|
|
|
|
|
(struct ppc64_elf_obj_tdata): Change tlsld_got to be a struct got_entry.
|
|
|
|
|
Update all uses.
|
|
|
|
|
(struct ppc_link_hash_table): Add got_reli_size and second_toc_pass.
|
|
|
|
|
Remove no_multi_toc.
|
|
|
|
|
(update_local_sym_info, ppc64_elf_check_relocs): Clear is_indirect
|
|
|
|
|
when allocating a new struct got_entry.
|
|
|
|
|
(allocate_got): New function, extracted from..
|
|
|
|
|
(allocate_dynrelocs): ..here. Abort on got entry in non-ppc64 bfd.
|
|
|
|
|
(ppc64_elf_size_dynamic_sections): Track got relocs allocated in
|
|
|
|
|
.reliplt by got_reli_size. Set owner on ppc64_tlsld_got entries.
|
|
|
|
|
(ppc64_elf_setup_section_lists): Remove output_bfd param and
|
|
|
|
|
no_multi_toc, add add_stub_section and layout_sections_again. Stash
|
|
|
|
|
new params in htab. Extract some code to..
|
|
|
|
|
(ppc64_elf_start_multitoc_partition): ..here. New function.
|
|
|
|
|
(ppc64_elf_next_toc_section): Check for linker script errors. Handle
|
|
|
|
|
second pass toc scan.
|
|
|
|
|
(merge_got_entries, merge_global_got, reallocate_got): New functions.
|
|
|
|
|
(ppc64_elf_reinit_toc): Rename to..
|
|
|
|
|
(ppc64_elf_finish_multitoc_partition): ..this.
|
|
|
|
|
(ppc64_elf_layout_multitoc): New function.
|
|
|
|
|
(ppc64_elf_size_stubs): Delete output_bfd, add_stub_section and
|
|
|
|
|
layout_sections_again params.
|
|
|
|
|
(ppc64_elf_relocate_section): Handle indirect got entries.
|
|
|
|
|
* elf64-ppc.h: Update prototypes. Declare new functions.
|
|
|
|
|
|
2010-02-02 20:37:40 +08:00
|
|
|
|
2010-02-02 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* elf-bfd.h (elfcore_write_xstatereg): New.
|
|
|
|
|
|
|
|
|
|
* elf.c (elfcore_grok_xstatereg): New.
|
|
|
|
|
(elfcore_write_xstatereg): Likewise.
|
|
|
|
|
(elfcore_grok_note): Handle NT_X86_XSTATE.
|
|
|
|
|
(elfcore_write_register_note): Handle .reg-xstate section.
|
|
|
|
|
|
2010-02-01 21:10:38 +08:00
|
|
|
|
2010-02-01 Tristan Gingold <gingold@adacore.com>
|
|
|
|
|
|
|
|
|
|
* som.c (som_write_ar_hdr): Define this macro.
|
|
|
|
|
|
2010-01-31 00:09:43 +08:00
|
|
|
|
2010-01-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
|
|
|
|
|
|
|
|
|
|
* elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L,
|
|
|
|
|
R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations that use the
|
|
|
|
|
linkage table pointer to use the global table pointer if not doing
|
|
|
|
|
a shared link.
|
|
|
|
|
|
2010-01-29 12:33:00 +08:00
|
|
|
|
2010-01-29 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* elf.c (elfcore_grok_lwpstatus): Do not overwrite the core signal
|
|
|
|
|
if it has already been set.
|
|
|
|
|
|
2010-01-28 00:43:27 +08:00
|
|
|
|
2010-01-27 Tristan Gingold <gingold@adacore.com>
|
|
|
|
|
|
|
|
|
|
* vms.h: Remove trailing spaces.
|
|
|
|
|
(struct hdr_struct): Remove unused hdr_c_cpr field.
|
|
|
|
|
(enum file_format_enum): Add comments.
|
|
|
|
|
* vms.c (vms_bfd_print_private_bfd_data): New function that
|
|
|
|
|
replaces the macro.
|
|
|
|
|
Remove trailing spaces.
|
|
|
|
|
* vms-misc.c: Improve comments.
|
|
|
|
|
(_bfd_vms_get_object_record): Also handle files without pads.
|
|
|
|
|
* vms-hdr.c (_bfd_vms_write_dbg): Fix format string.
|
|
|
|
|
* vms-gsd.c (struct flagdescstruct): Make name field const.
|
|
|
|
|
(gsyflagdesc): Fix typo.
|
|
|
|
|
|
2010-01-27 20:44:07 +08:00
|
|
|
|
2010-01-27 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR ld/11217
|
|
|
|
|
* elf64-ppc.c (struct ppc_link_hash_table): Add toc_bfd, toc_first_sec.
|
|
|
|
|
(ppc64_elf_setup_section_lists): Init them.
|
|
|
|
|
(ppc64_elf_next_toc_section): Don't partition multi-toc between .got
|
|
|
|
|
and .toc on the same input file.
|
|
|
|
|
(ppc64_elf_relocate_section): Correct GOT entry offset.
|
|
|
|
|
|
2010-01-26 21:42:26 +08:00
|
|
|
|
2010-01-26 Tristan Gingold <gingold@adacore.com>
|
|
|
|
|
|
|
|
|
|
* targets.c (BFD_JUMP_TABLE_ARCHIVE): Add initializer for write_ar_hdr.
|
|
|
|
|
(bfd_target): Add _bfd_write_ar_hdr_fn field.
|
|
|
|
|
* archive.c (is_bsd44_extended_name): New macro.
|
|
|
|
|
(_bfd_generic_read_ar_hdr_mag): Use it. Add extra_size.
|
|
|
|
|
(bfd_slurp_armap): Also check for "__.SYMDEF" as a BSD4.4 extended
|
|
|
|
|
name.
|
|
|
|
|
(_bfd_archive_bsd44_construct_extended_name_table): New function.
|
|
|
|
|
(_bfd_generic_write_ar_hdr): Ditto.
|
|
|
|
|
(_bfd_bsd44_write_ar_hdr): Ditto.
|
|
|
|
|
(_bfd_write_archive_contents): Call _bfd_write_ar_hdr.
|
|
|
|
|
(bsd_write_armap): Adjust firstreal computation.
|
|
|
|
|
* libbfd-in.h (struct areltdata): Add extra_size field.
|
|
|
|
|
(_bfd_generic_write_ar_hdr): Add prototype.
|
|
|
|
|
(_bfd_bsd44_write_ar_hdr): Ditto.
|
|
|
|
|
(_bfd_write_ar_hdr): Define.
|
|
|
|
|
(_bfd_noarchive_write_ar_hdr): Ditto.
|
|
|
|
|
(_bfd_archive_bsd_write_ar_hdr): Ditto.
|
|
|
|
|
(_bfd_archive_coff_write_ar_hdr): Ditto.
|
|
|
|
|
(_bfd_archive_bsd44_slurp_armap): Ditto.
|
|
|
|
|
(_bfd_archive_bsd44_slurp_extended_name_table): Ditto.
|
|
|
|
|
(_bfd_archive_bsd44_construct_extended_name_table): New prototype.
|
|
|
|
|
(_bfd_archive_bsd44_truncate_arname): Ditto.
|
|
|
|
|
(_bfd_archive_bsd44_write_armap): Ditto.
|
|
|
|
|
(_bfd_archive_bsd44_read_ar_hdr): Ditto.
|
|
|
|
|
(_bfd_archive_bsd44_write_ar_hdr): Ditto.
|
|
|
|
|
(_bfd_archive_bsd44_openr_next_archived_file): Ditto.
|
|
|
|
|
(_bfd_archive_bsd44_get_elt_at_index): Ditto.
|
|
|
|
|
(_bfd_archive_bsd44_generic_stat_arch_elt): Ditto.
|
|
|
|
|
(_bfd_archive_bsd44_update_armap_timestamp): Ditto.
|
|
|
|
|
* libbfd.h: Regenerate.
|
|
|
|
|
* oasys.c (oasys_write_ar_hdr): Define.
|
|
|
|
|
* libecoff.h (_bfd_ecoff_write_ar_hdr): Define.
|
|
|
|
|
* ieee.c (ieee_write_ar_hdr): Define.
|
|
|
|
|
* elf64-mips.c (bfd_elf64_archive_write_ar_hdr): Define.
|
|
|
|
|
* coff-rs6000.c (rs6000coff_vec): Adjust for write_ar_hdr field.
|
|
|
|
|
(bfd_pmac_xcoff_backend_data): Ditto.
|
|
|
|
|
* coff64-rs6000.c (rs6000coff64_vec): Ditto.
|
|
|
|
|
(bfd_xcoff_aix5_backend_data): Ditto.
|
|
|
|
|
* coff-alpha.c (alpha_ecoff_write_ar_hdr): Define.
|
|
|
|
|
* aout-target.h (MY_write_ar_hdr): Define it if not defined.
|
|
|
|
|
* aout-tic30.c (MY_write_ar_hdr): Ditto.
|
|
|
|
|
* mach-o-target.c (TARGET_NAME): Use _bfd_archive_bsd44 archive.
|
|
|
|
|
(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): Moved to mach-o.c
|
|
|
|
|
* mach-o.c (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): Moved from mach-o-target.c
|
|
|
|
|
* bfd-in2.h: Regenerate.
|
|
|
|
|
|
2010-01-26 21:21:36 +08:00
|
|
|
|
2010-01-26 Alan Modra <amodra@gmail.com>
|
|
|
|
|
H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/11218
|
|
|
|
|
* elflink.c (elf_link_output_extsym): Do not ignore undefined
|
|
|
|
|
symbols with ref_regular set when gc_sections is active.
|
|
|
|
|
|
2010-01-25 14:47:16 +08:00
|
|
|
|
2010-01-25 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR ld/11217
|
|
|
|
|
* elf64-ppc.c (ppc64_elf_tls_optimize): Optimize tls sequences
|
|
|
|
|
with relocations against undefined weak symbols.
|
|
|
|
|
(ppc64_elf_relocate_section): Don't optimize calls to undefined
|
|
|
|
|
weak functions if the symbol is dynamic.
|
|
|
|
|
(ppc64_elf_relocate_section): Edit tprel tls sequences.
|
|
|
|
|
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
|
|
|
|
|
(_bfd_elf_ppc_at_tprel_transform): New function.
|
|
|
|
|
* bfd-in.h (_bfd_elf_ppc_at_tprel_transform): Declare.
|
|
|
|
|
* bfd-in2.h: Regenerate.
|
|
|
|
|
|
2010-01-23 20:05:33 +08:00
|
|
|
|
2010-01-23 Richard Sandiford <r.sandiford@uk.ibm.com>
|
|
|
|
|
|
|
|
|
|
* coff-rs6000.c (xcoff_howto_table): Change size to 0 and bitsize to 1.
|
|
|
|
|
(_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_NONE.
|
|
|
|
|
* coff64-rs6000.c (xcoff64_howto_table): Change size to 0 and
|
|
|
|
|
bitsize to 1.
|
|
|
|
|
(xcoff64_reloc_type_lookup): Handle BFD_RELOC_NONE.
|
|
|
|
|
|
2010-01-21 22:54:40 +08:00
|
|
|
|
2010-01-21 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* elflink.c (elf_link_add_object_symbols): Look up name of
|
|
|
|
|
undefined symbol both before and after versioning has been
|
|
|
|
|
applied. Do not bother with symbols that are weakly undefined.
|
|
|
|
|
|
2010-01-21 19:40:28 +08:00
|
|
|
|
2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
|
2010-01-21 22:54:40 +08:00
|
|
|
|
|
2010-01-21 19:40:28 +08:00
|
|
|
|
* elf32-s390.c (elf32_s390_merge_private_bfd_data): New function.
|
|
|
|
|
(bfd_elf32_bfd_merge_private_bfd_data): New macro definition.
|
|
|
|
|
|
2010-01-20 07:17:57 +08:00
|
|
|
|
2010-01-19 Cary Coutant <ccoutant@google.com>
|
|
|
|
|
|
|
|
|
|
* dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8.
|
|
|
|
|
|
2010-01-19 21:50:55 +08:00
|
|
|
|
2010-01-19 Daisuke Hatayama <d.hatayama@jp.fujitsu.com>
|
|
|
|
|
Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
2010-03-26 09:40:40 +08:00
|
|
|
|
* elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff.
|
2010-01-19 21:50:55 +08:00
|
|
|
|
(elf_object_p): Read e_phnum extension.
|
|
|
|
|
(elf_write_shdrs_and_ehdr): Write e_phnum extension.
|
2010-03-26 09:40:40 +08:00
|
|
|
|
* elfcore.h (elf_core_file_p): Read e_phnum extension. Sanity check
|
2010-01-19 21:50:55 +08:00
|
|
|
|
that we can read last program header.
|
|
|
|
|
|
2010-01-19 11:49:43 +08:00
|
|
|
|
2010-01-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
|
|
|
|
|
|
|
|
|
|
* elf32-arm.c (elf32_arm_howto_table_1): Correct bitsize of
|
|
|
|
|
R_ARM_THM_CALL entry.
|
|
|
|
|
(elf32_arm_final_link_relocate): Correct calculation of
|
|
|
|
|
reloc_signed_max when doing a R_ARM_THM_CALL, R_ARM_THM_XPC22,
|
|
|
|
|
or R_ARM_THM_JUMP24 relocation.
|
|
|
|
|
|
2010-01-18 15:21:46 +08:00
|
|
|
|
2010-01-18 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 11168
|
|
|
|
|
* coffcode.h (coff_compute_section_file_positions): Move Rs6000COFF_C
|
|
|
|
|
block past vars in COFF_IMAGE_WITH_PE block. Report error on more
|
|
|
|
|
than 32k sections.
|
|
|
|
|
|
2010-01-16 05:38:16 +08:00
|
|
|
|
2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
Fix compilation warning on gcc-3.4.
|
|
|
|
|
* vms-tir.c (start_etir_record, sto_imm): Rename the prototype
|
|
|
|
|
parameter index to sec_index according to the function definition.
|
|
|
|
|
|
2010-01-14 06:30:53 +08:00
|
|
|
|
2010-01-13 Chao-ying Fu <fu@mips.com>
|
|
|
|
|
|
|
|
|
|
* elfxx-mips.c (JR_TO_B_P): New define to transform JR to B.
|
|
|
|
|
It is true for all CPUs.
|
|
|
|
|
(jal_reloc_p): New function.
|
|
|
|
|
(mips_elf_calculate_relocation): Rename require_jalxp to
|
|
|
|
|
cross_mode_jump_p.
|
|
|
|
|
Update comment for CROSS_MODE_JUMP_P.
|
|
|
|
|
Set up cross_mode_jump_p based on the mode change.
|
|
|
|
|
(mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p.
|
|
|
|
|
Update comment for CROSS_MODE_JUMP_P.
|
|
|
|
|
Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx.
|
|
|
|
|
Use !cross_mode_jump_p to guard conversion.
|
|
|
|
|
Convert "jr t9" to "b", if possible.
|
|
|
|
|
(_bfd_mips_elf_relocate_section): Rename require_jalx to
|
|
|
|
|
cross_mode_jump_p.
|
|
|
|
|
Pass &cross_mode_jump_p to call mips_elf_calculate_relocation.
|
|
|
|
|
Pass cross_mode_jump_p to call mips_elf_perform_relocation.
|
|
|
|
|
|
2010-01-13 22:34:13 +08:00
|
|
|
|
2010-01-13 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* cpu-m32c.c (m32c_scan): New function. Ensures that a scan for
|
|
|
|
|
"m32c" returns the m32c arch_info_struct and not the m16c
|
|
|
|
|
arch_info_struct.
|
|
|
|
|
(arch_info_struct): Use the new scan function.
|
|
|
|
|
(bfd_m32c_arch): Likewise.
|
|
|
|
|
|
2010-01-13 19:49:36 +08:00
|
|
|
|
2010-01-13 Tristan Gingold <gingold@adacore.com>
|
|
|
|
|
|
|
|
|
|
* config.bfd: Remove duplicated target vector for i386-*-darwin.
|
|
|
|
|
Appends new arch instead of overriding.
|
|
|
|
|
Use mach_o_x86_64_vec for x86_64-*-darwin.
|
|
|
|
|
* configure.in: Add mach_o_x86_64_vec.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
* targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector.
|
|
|
|
|
* Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo
|
|
|
|
|
(BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* mach-o-x86-64.c: New file.
|
|
|
|
|
|
2010-01-13 19:35:19 +08:00
|
|
|
|
2010-01-13 Tristan Gingold <gingold@adacore.com>
|
|
|
|
|
|
|
|
|
|
* reloc.c: Add MACH_O_X86_64 relocations.
|
|
|
|
|
* bfd-in2.h: Regenerate.
|
|
|
|
|
* libbfd.h: Regenerate.
|
|
|
|
|
|
2010-01-13 16:48:26 +08:00
|
|
|
|
2010-01-13 Tristan Gingold <gingold@adacore.com>
|
|
|
|
|
|
|
|
|
|
* archive.c (normalize): Use lbasename.
|
|
|
|
|
(bfd_bsd_truncate_arname): Ditto.
|
|
|
|
|
(bfd_gnu_truncate_arname): Ditto.
|
|
|
|
|
|
2010-01-12 18:16:50 +08:00
|
|
|
|
2010-01-12 Tristan Gingold <gingold@adacore.com>
|
|
|
|
|
|
|
|
|
|
* makefile.vms (CFLAGS): Turns warnings into informational messages.
|
|
|
|
|
|
2010-01-11 23:57:59 +08:00
|
|
|
|
2010-01-11 Tristan Gingold <gingold@adacore.com>
|
|
|
|
|
|
|
|
|
|
* mach-o.h: Add x86-64 relocation types.
|
|
|
|
|
|
2010-01-11 23:39:41 +08:00
|
|
|
|
2010-01-11 Tristan Gingold <gingold@adacore.com>
|
|
|
|
|
|
|
|
|
|
* mach-o.h (bfd_mach_o_backend_data): Add arch field.
|
|
|
|
|
(bfd_mach_o_set_arch_mach): New prototype.
|
|
|
|
|
* mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
|
|
|
|
|
(bfd_mach_o_set_arch_mach): New function.
|
|
|
|
|
(bfd_mach_o_gen_mkobject): New function.
|
|
|
|
|
Set TARGET_ARCHITECTURE for the generic back-ends.
|
|
|
|
|
* mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define.
|
|
|
|
|
Check that TARGET_ARCHITECTURE is defined.
|
|
|
|
|
Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure.
|
|
|
|
|
* mach-o-i386.c (TARGET_ARCHITECTURE): Define.
|
|
|
|
|
|
2010-01-11 23:29:36 +08:00
|
|
|
|
2010-01-11 Tristan Gingold <gingold@adacore.com>
|
|
|
|
|
|
2010-01-13 16:48:26 +08:00
|
|
|
|
* archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap.
|
2010-01-11 23:29:36 +08:00
|
|
|
|
|
2010-01-11 22:19:40 +08:00
|
|
|
|
2010-01-11 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* elf32-v850.c (v850_elf_perform_relocation): Fix overflow
|
|
|
|
|
handling of R_V850_HI16_S relocation.
|
|
|
|
|
|
2010-01-11 17:53:27 +08:00
|
|
|
|
2010-01-11 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 11103
|
|
|
|
|
* dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
|
|
|
|
|
|
2010-01-11 16:36:19 +08:00
|
|
|
|
2010-01-11 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 6832
|
|
|
|
|
* dwarf2.c (struct comp_unit): Add sec_info_ptr.
|
|
|
|
|
(find_abstract_instance_name): Use it.
|
|
|
|
|
(parse_comp_unit): Set it.
|
|
|
|
|
|
2010-01-10 05:11:44 +08:00
|
|
|
|
2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
|
|
|
|
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
|
2010-01-08 19:15:39 +08:00
|
|
|
|
2010-01-08 Tristan Gingold <gingold@adacore.com>
|
|
|
|
|
|
|
|
|
|
* archive.c: Remove bfd_special_undocumented_glue.
|
|
|
|
|
|
2010-01-08 13:55:10 +08:00
|
|
|
|
2010-01-08 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR ld/11133
|
|
|
|
|
* elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook.
|
|
|
|
|
* elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise.
|
|
|
|
|
* elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
|
|
|
|
|
|
2010-01-08 11:03:16 +08:00
|
|
|
|
2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/11138
|
|
|
|
|
* elflink.c (elf_link_check_versioned_symbol): Don't abort if
|
|
|
|
|
a symbol referenced by DSO is is defined in a non-shared object
|
|
|
|
|
and forced local.
|
|
|
|
|
|
2010-01-08 09:43:23 +08:00
|
|
|
|
2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/11133
|
|
|
|
|
* elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for
|
|
|
|
|
undefined __start_XXX/__stop_XXX in all input files and set
|
|
|
|
|
SEC_KEEP.
|
|
|
|
|
|
2010-01-07 21:44:37 +08:00
|
|
|
|
2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/11143
|
|
|
|
|
* elflink.c (elf_gc_sweep): Keep SHT_NOTE section.
|
|
|
|
|
|
2010-01-05 08:40:07 +08:00
|
|
|
|
2010-01-04 Daniel Gutson <dgutson@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC
|
|
|
|
|
before including procfs.h.
|
|
|
|
|
(BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise.
|
|
|
|
|
* configure.in: Added autoconf probe for the pr_fpreg member.
|
|
|
|
|
* configure: Regenerated.
|
|
|
|
|
* config.in: Regenerated.
|
|
|
|
|
* elf.c: Define _STRUCTURE_PROC before including procfs.h.
|
|
|
|
|
|
2010-01-04 19:44:30 +08:00
|
|
|
|
2010-01-04 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
Fix -Wshadow warnings in dwarf2.c (seen on alpha-tru64).
|
|
|
|
|
* dwarf2.c (concat_filename): Rename dirname with dir_name
|
|
|
|
|
to void shadowing the dirname function.
|
|
|
|
|
Rename subdirname with subdir_name to stay consistent with
|
|
|
|
|
the new dir_name variable name.
|
|
|
|
|
|
2010-01-04 10:32:56 +08:00
|
|
|
|
2010-01-04 Edmar Wienskoski <edmar@freescale.com>
|
|
|
|
|
|
|
|
|
|
* archures.c: Add bfd_mach_ppc_e500mc64.
|
|
|
|
|
* bfd-in2.h: Regenerate.
|
|
|
|
|
* cpu-powerpc.c (bfd_powerpc_archs): Add entry for
|
|
|
|
|
bfd_mach_ppc_e500mc64.
|
|
|
|
|
|
2010-01-01 21:42:26 +08:00
|
|
|
|
2010-01-01 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
Fix -Wshadow warnings (seen on ppc-aix)
|
|
|
|
|
* xcofflink.c: Replace finfo by flinfo throughout.
|
|
|
|
|
|
2010-01-02 02:06:10 +08:00
|
|
|
|
For older changes see ChangeLog-2009
|
2001-09-08 13:47:01 +08:00
|
|
|
|
|
|
|
|
|
Local Variables:
|
|
|
|
|
mode: change-log
|
|
|
|
|
left-margin: 8
|
|
|
|
|
fill-column: 74
|
|
|
|
|
version-control: never
|
|
|
|
|
End:
|