aboutsummaryrefslogtreecommitdiff
path: root/bfd/ChangeLog
AgeCommit message (Collapse)AuthorFilesLines
2003-06-29Add forgotten ChangeLog snippet for last elf64-x86-64.c patch.Andreas Jaeger1-0/+11
2003-06-29 * elf64-x86-64.c: Convert to ISO C90 prototypes, removeAndreas Jaeger1-0/+5
unnecessary prototypes. Replace PTR with void *.
2003-06-28 * elfxx-mips.c: Allow lazy binding for R_MIPS_JALR.Thiemo Seufer1-0/+4
2003-06-27Fix --add-gnu-debuglinkNick Clifton1-0/+9
2003-06-27 * elfxx-mips.c: Revert .got alignment to 2**4.Thiemo Seufer1-0/+4
2003-06-27 * elf32-mips.c: Fix addend for _gp_disp special symbol.Thiemo Seufer1-0/+4
2003-06-27 * elfxx-mips.c (_bfd_mips_elf_fake_sections): Remove non-defaultThiemo Seufer1-0/+5
relocation header setup. * binutils-all/readelf.ss-tmips: Adjust symbol indices.
2003-06-25 * elf32-ppc.c (ppc_elf_howto_table): Remove unnecessary cast.Alan Modra1-0/+8
(ppc_elf_reloc_type_lookup): Modify comment. (ppc_elf_info_to_howto): Ditto. (ppc_elf_relocate_section): Ditto. (ppc_elf_check_relocs): Call ppc_elf_howto_init.
2003-06-25Correct spelling of "relocatable".Alan Modra1-3/+102
2003-06-24 * elf32-ppc.c (ppc_elf_check_relocs): Report plt reloc againstAlan Modra1-0/+3
local sym errors.
2003-06-24 * elf32-i386.c: Convert to C90 function definitions, remove unnecessaryAlan Modra1-0/+9
prototypes and casts. Replace PTR with void *. Formatting. * elf32-ppc.c: Likewise. Break long strings too. (ppc_elf_relax_section): Use enum elf_ppc_reloc_type for r_type. (ppc_elf_unhandled_reloc): Internationalize error message. * elf32-ppc.h: Remove PARAMS.
2003-06-24 * elf32-ppc.c (ppc_elf_begin_write_processing): Use bytes to countMark Mitchell1-0/+6
APUinfo slots. (ppc_elf_final_write_processing): Likewise.
2003-06-232003-06-23 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+6
* elflink.h (elf_link_input_bfd): Check raw size when using kept_section to preserve debug information discarded by linkonce.
2003-06-20 * elf64-ppc.c (struct ppc_link_hash_table): Add top_id.Alan Modra1-0/+7
(ppc64_elf_setup_section_lists): Set it. (ppc64_elf_relocate_section): Check sym section id against top_id. (ppc_build_one_stub): Comment on top_id.
2003-06-20Add tic4x-*-rtems*.Nick Clifton1-0/+4
2003-06-20 * elf64-ppc.c: Convert to C90 function definitions, remove unnecessaryAlan Modra1-2/+13
prototypes and casts. Replace PTR with void *. Format copyright. Mention ABI links. (struct ppc_link_hash_table): Rename sgot, srelgot, splt, srelplt, sdynbss, srelbss, sglink, sbrlt and srelbrlt to got, relgot .. relbrlt. (ppc_type_of_stub): Make r_type an enum. (ppc64_elf_size_stubs): Likewise. * elf64-ppc.h: Remove PARAMS macro.
2003-06-19 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Reinstate init ofAlan Modra1-0/+3
elf hash tab fields.
2003-06-19 * elf64-ppc.c (ppc64_elf_reloc_type_lookup): Tidy prototype.Alan Modra1-0/+7
(ppc64_elf_info_to_howto): Likewise. (ppc64_elf_build_stubs): Add "stats" param, and print statistics. * elf64-ppc.h (ppc64_elf_build_stubs): Adjust prototype.
2003-06-19 * elf64-sparc.c (sparc64_elf_relocate_section): Ignore R_SPARC_DISP32Alan Modra1-0/+5
reloc overflow on discarded eh_frame entries.
2003-06-19 * elf64-ppc.c (toc_adjusting_stub_needed): New function.Alan Modra1-42/+53
(ppc64_elf_next_input_section): Use it here to set has_gp_reloc. Return error condition. (ppc64_elf_size_stubs): Restrict toc adjusting stubs to sections that have has_gp_reloc set. (struct ppc_link_hash_table): Add stub_count. (ppc_build_one_stub): Increment it. (ppc64_elf_link_hash_table_create): zmalloc rather than clearing individual fields. * elf64-ppc.h (ppc64_elf_next_input_section): Update prototype.
2003-06-18 * elflink.h (elf_gc_record_vtentry): Revert last change. CorrectAlan Modra1-0/+5
size calculation from addend. Round size up.
2003-06-18 * elf32-cris.c (cris_elf_relocate_section) <caseHans-Peter Nilsson1-0/+6
R_CRIS_32_GOTREL>: When linking a program, don't complain about a symbol from a normal object or an undefined weak symbol.
2003-06-18 * elf64-ppc.c (ppc64_elf_relocate_section): Accept a symbol onAlan Modra1-0/+5
R_PPC64_TOC relocs.
2003-06-18bfd/H.J. Lu1-0/+10
2003-06-17 H.J. Lu <hongjiu.lu@intel.com> * section.c (struct sec): Put back kept_section. (STD_SECTION): Put back kept_section initialization. * bfd-in2.h: Regenerate. * elflink.h (elf_link_input_bfd): Also check discarded linkonce sections for relocateable output. Use kept_section to preserve debug information discarded by linkonce. ld/ 2003-06-17 H.J. Lu <hongjiu.lu@intel.com> * ldlang.c (section_already_linked): Put back assignment of kept_section.
2003-06-172003-06-17 Roland McGrath <roland@redhat.com>H.J. Lu1-0/+5
* elfxx-ia64.c (elfNN_ia64_relocate_section): Support segment-relative relocation between different segments.
2003-06-17 * elf64-ppc.c (ppc64_elf_relocate_section): Do unaligned relocAlan Modra1-0/+3
optimizations earlier.
2003-06-17 * elf64-ppc.c (struct ppc_link_hash_table): Reinstate top_index.Alan Modra1-0/+11
Restore previous input_list type. (ppc64_elf_link_hash_table_create): Undo last change. (ppc64_elf_setup_section_lists): Reinstate code setting up input lists per output section, but don't bother with bfd_abs_section marker. (ppc64_elf_next_input_section): Adjust for multiple input section lists. (group_sections): Likewise.
2003-06-17 * elf64-ppc.c (ppc64_elf_relocation_section): EnsureJakub Jelinek1-0/+5
*r_offset == r_addend for RELATIVE relocs against .got.
2003-06-17 * elf64-ppc.c (ppc64_elf_relocate_section): Optimize unaligned relocs.Alan Modra1-0/+4
2003-06-17(elf_gc_record_vtentry): Allocate an extra element in the vtable_entries_usedNick Clifton1-0/+6
array to allow for the accessing the largest element.
2003-06-17 * elf64-ppc.c (struct ppc_link_hash_table): Remove top_index. ModifyAlan Modra1-0/+10
input_list. (ppc64_elf_link_hash_table_create): Init input_list here. (ppc64_elf_setup_section_lists): Remove code setting up input lists per output section. Set toc_off for abs and other standard sections. (ppc64_elf_reinit_toc): Don't set elf_gp on input bfds lacking a toc. (ppc64_elf_next_input_section): Adjust for single input section list. Don't set toc_curr from input bfds that haven't set elf_gp. (group_sections): Adjust for single input section list.
2003-06-17 * elf64-ppc.c (ppc64_elf_relocate_section): Correct pcrel section zero.Alan Modra1-0/+4
2003-06-16 * elf64-ppc.c (ppc64_elf_relocate_section): When optimizing toctprelAlan Modra1-7/+15
tls, check that a TOC16_DS or TOC16_LO_DS reloc isn't pointing to a dtprel entry. Ensure TLS_LD DTPMOD reloc has a zero addend. Write got section for RELATIVE relocs. Fix wrong comment. Change condition under which dynamic relocs update the section contents.
2003-06-13Add i386-netbsd-gnu target.Nick Clifton1-0/+4
2003-06-12(i[3-7]86-*-openbsd[0-2].* | i[3-7]86-*-openbsd3.[0-3]): New target (was ↵Nick Clifton1-0/+21
i[3-7]86-*-openbsd* before). (i[3-7]86-*-openbsd*): Change to use bfd_elf32_i386_vec. (vax-*-openbsd*): New target.
2003-06-11 * elfxx-mips.c (MIPS_ELF_OPTIONS_SECTION_NAME): Use .MIPS.optionsThiemo Seufer1-0/+9
for n32, too. (MIPS_ELF_STUB_SECTION_NAME): Use .MIPS.stubs for n32, too. (mips_elf_rel_dyn_section): Use appropriate section alignment. (mips_elf_create_got_section): Likewise. (_bfd_mips_elf_create_dynamic_sections): Likewise. * ld-mips-elf/multi-got-1.d: Adjust addresses. * ld-mips-elf/rel32-n32.d: Likewise.
2003-06-11 * elf32-mips.c (mips_elf_generic_reloc): New Function.Thiemo Seufer1-0/+48
(elf_mips_howto_table_rel): Use it. (gprel32_with_gp): Move prototype. (mips_elf_hi16_reloc): Check for ! BSF_LOCAL instead of zero addend. Use mips_elf_generic_reloc. (mips_elf_got16_reloc): Check for ! BSF_LOCAL instead of zero addend. Code cleanup. (_bfd_mips_elf32_gprel16_reloc): Check for ! BSF_LOCAL instead of zero addend. (mips_elf_gprel32_reloc): Likewise. Use the same GP assignment logic as in the other *_gprel*_reloc functions. (gprel32_with_gp): Handle partial_inplace properly. (mips32_64bit_reloc): Use mips_elf_generic_reloc. (mips16_gprel_reloc): Check for ! BSF_LOCAL instead of zero addend. Do addend handling directly instead of calling _bfd_mips_elf_gprel16_with_gp. Handle partial_inplace properly. * elf64-mips.c (mips_elf64_hi16_reloc): Check for ! BSF_LOCAL instead of zero addend. Handle partial_inplace properly. (mips_elf64_got16_reloc): Check for ! BSF_LOCAL instead of zero addend. (mips_elf64_gprel16_reloc): Likewise. (mips_elf64_literal_reloc): Likewise. (mips_elf64_gprel32_reloc): Likewise. Use the same GP assignment logic as in the other *_gprel*_reloc functions. Handle partial_inplace properly. (mips_elf64_shift6_reloc): Check for ! BSF_LOCAL instead of zero addend. Handle partial_inplace properly. (mips16_gprel_reloc): Likewise. Do addend handling directly instead of calling _bfd_mips_elf_gprel16_with_gp. * elfn32-mips.c (mips_elf_got16_reloc): Check for BSF_LOCAL. (mips_elf_gprel32_reloc): Check for ! BSF_LOCAL instead of zero addend. (mips_elf_shift6_reloc): Handle partial_inplace properly. (mips16_gprel_reloc): Likewise. Do addend handling directly instead of calling _bfd_mips_elf_gprel16_with_gp. * elfxx-mips.c (_bfd_mips_elf_gprel16_with_gp): Handle partial_inplace properly. Fix wrong addend handling. Fix overflow check. (_bfd_mips_elf_sign_extend): Renamed from mips_elf_sign_extend and exported. (mips_elf_calculate_relocation): Use _bfd_mips_elf_sign_extend. (_bfd_mips_elf_relocate_section): Likewise. (mips_elf_create_dynamic_relocation): Update sec_info_type access. * elfxx-mips.h (_bfd_mips_relax_section): Fix prototype declaration. (_bfd_mips_elf_sign_extend): New prototype. * config/tc-mips.c (md_pcrel_from): Return actual pcrel address. (md_apply_fix3): Ignore non-special relocations. Remove superfluous exceptions from size assert. Remove most of the addend fixup specialcasing. Remove value, use valP directly. simplify fx_addnumber handling. Remove zero addend specialcases. (tc_gen_reloc): Use appropriate value for reloc2 addend. Remove the addend fixup specialcase. * config/tc-mips.h (MD_APPLY_SYM_VALUE): Define as 0.
2003-06-11* configure.in (vax-*-openbsd*): Set COREFILE to netbsd-core.lo.Nick Clifton1-0/+3
* configure: Regenerate.
2003-06-11* config.bfd (sparc-*-openbsd[0-2].* | sparc-*-openbsd3.[0-1]): New targetNick Clifton1-0/+6
(was sparc-*-openbsd* before). (sparc-*-openbsd*): Change to use bfd_elf32_sparc_vec.
2003-06-11bfd/H.J. Lu1-0/+6
2003-06-06 H.J. Lu <hongjiu.lu@intel.com> * po/Make-in (DESTDIR): New. (install-data-yes): Support $(DESTDIR). (uninstall): Likewise. binutils/ 2003-06-06 H.J. Lu <hongjiu.lu@intel.com> * po/Make-in (DESTDIR): New. (install-data-yes): Support $(DESTDIR). (uninstall): Likewise. gas/ 2003-06-06 H.J. Lu <hongjiu.lu@intel.com> * po/Make-in (DESTDIR): New. (install-data-yes): Support $(DESTDIR). (uninstall): Likewise. gprof/ 2003-06-06 H.J. Lu <hongjiu.lu@intel.com> * po/Make-in (DESTDIR): New. (install-data-yes): Support $(DESTDIR). (uninstall): Likewise. ld/ 2003-06-06 H.J. Lu <hongjiu.lu@intel.com> * po/Make-in (DESTDIR): New. (install-data-yes): Support $(DESTDIR). (uninstall): Likewise. opcodes/ 2003-06-06 H.J. Lu <hongjiu.lu@intel.com> * po/Make-in (DESTDIR): New. (install-data-yes): Support $(DESTDIR). (uninstall): Likewise.
2003-06-10* bfd/Makefile.am (config.status): Depend on version.h.Alan Modra1-0/+7
Run "make dep-am" in bfd/ and elsewhere, and regen files.
2003-06-10Add "attn", "lq" and "stq" power4 insns.Alan Modra1-7/+12
2003-06-10include/elf/Richard Sandiford1-0/+10
* h8.h (E_H8_MACH_H8300SXN): New flag. bfd/ * archures.c (bfd_mach_h8300sxn): New architecture. * bfd-in2.h: Regenerate. * cpu-h8300.c (h8300_scan): Check for 'sxn'. (h8300sxn_info_struct): New. (h8300sx_info_struct): Link to it. * elf32-h8300.c (elf32_h8_mach): Add h8300sxn case. (elf32_h8_final_write_processing): Likewise. gas/ * config/tc-h8300.c (h8300sxnmode): New. (md_pseudo_table): Add .h8300sxn entry. Sync others with FSF version. ld/ * configure.tgt (h8300*): Add h8300sxn emulations. * Makefile.am (ALL_EMULATIONS): Add eh8300sxn.o and eh8300sxnelf.o. (eh8300sxn.c, eh8300sxnelf.c): New rules. * Makefile.in: Regenerate. * emulparams/h8300sxnelf.sh, emulparams/h8300sxn.sh: New files.
2003-06-08 * elf64-ppc.c: Move TARGET_LITTLE_SYM and other macros used byAlan Modra1-0/+42
elfxx-target.h so that we can use elf_backend_got_header_size. (ELF_MACHINE_ALT1, ELF_MACHINE_ALT2): Delete. (GLINK_CALL_STUB_SIZE): Modify. Define new glink call stub and associated macros. (ppc64_elf_howto_raw <GOT_TPREL16_DS, GOT_TPREL16_LO_DS>): Correct dst_mask. (enum ppc_stub_type): Add ppc_stub_long_branch_r2off and ppc_stub_plt_branch_r2off. (struct ppc_stub_hash_entry): Reorganize. (struct ppc_link_hash_table): Add no_multi_toc, multi_toc_needed, toc_curr, toc_off and emit_stub_syms. (ppc64_elf_link_hash_table_create): Init them. (ppc_stub_name): Correct string size. (ppc64_elf_check_relocs): Set has_gp_reloc on GOT and TOC relocs. (ppc64_elf_size_dynamic_sections): Set no_multi_toc if GOT entries used. (ppc_type_of_stub): Tweak root.type test. (build_plt_stub): Remove glink code. Adjust for insn macro changes. (ppc_size_one_stub): Handle ppc_stub_long_branch_r2off and ppc_stub_plt_branch_r2off. (ppc_build_one_stub): Likewise. Fix var shadowing. Correct addis,addi range test. Use toc_off to calculte r2 values. Handle emit_stub_syms. (ppc64_elf_setup_section_lists): Remove htab creator flavour test. Initialize elf_gp and toc_curr. (ppc64_elf_next_toc_section, ppc64_elf_reinit_toc): New functions. (ppc64_elf_next_input_section): Set toc_off. (group_sections): Ensure groups have the same TOC. (ppc64_elf_size_stubs): Check whether we need a TOC adjusting stub. (ppc64_elf_build_stubs): Add emit_stub_syms param, and stash in htab. Build new glink stub. (ppc64_elf_relocate_section): Handle multiple TOCs. Fix comments. (ppc64_elf_finish_dynamic_sections): Adjust DT_PPC64_GLINK. * elf64-ppc.h (ppc64_elf_build_stubs): Update prototype. (ppc64_elf_next_toc_section, ppc64_elf_reinit_toc): Declare. * section.c (struct sec): Rename flag12 to has_gp_reloc. (STD_SECTION): Update. * ecoff.c (bfd_debug_section): Update comment. * bfd-in2.h: Regenerate.
2003-06-06 * elfcode.h (elf_slurp_reloc_table_from_section): Don't dereferenceDaniel Jacobowitz1-0/+5
NULL function pointers.
2003-06-05 * simple.c (bfd_simple_get_relocated_section_contents): CallDaniel Jacobowitz1-0/+5
_bfd_generic_link_add_symbols instead of bfd_link_add_symbols.
2003-06-04Moved the ticoff0/1 swaptables and coff0/1 bad format hooks to coffcode.hSvein Seldal1-1/+7
2003-06-04Altered the CREATE_xxx_COFF_TARGET_VEC macro arguments -- changelog dropped outSvein Seldal1-0/+22
2003-06-04Fixed initialization bugSvein Seldal1-0/+5
2003-06-03binutils/Jakub Jelinek1-0/+9
* readelf.c (get_segment_type): Handle PT_GNU_STACK. bfd/ * elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_STACK. (bfd_section_from_phdr): Likewise. (map_sections_to_segments): Create PT_GNU_STACK segment header. (get_program_header_size): Count with PT_GNU_STACK. * elf-bfd.h (struct elf_obj_tdata): Add stack_flags. * elflink.h (bfd_elfNN_size_dynamic_sections): Set stack_flags. include/ * bfdlink.h (struct bfd_link_info): Add execstack and noexecstack. * elf/common.h (PT_GNU_STACK): Define. ld/ * ldgram.y (phdr_type): Grok PT_GNU_STACK. * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add -z execstack and -z noexecstack. (gld${EMULATION_NAME}_list_options): Likewise. * scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.