aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2003-05-02Make the R_XSTORMY16_8 and R_XSTORMY16_16 relocs detect and complain aboutNick Clifton2-5/+11
unsigned overflow.
2003-05-02 * elf64-x86-64.c (elf_x86_64_copy_indirect_symbol): Don't copyAndreas Jaeger2-19/+54
ELF_LINK_NON_GOT_REF for weakdefs when symbol already adjusted. (ELIMINATE_COPY_RELOCS): Define as one. Use throughout. (elf_x86_64_adjust_dynamic_symbol): For weak symbols, copy ELF_LINK_NON_GOT_REF from weakdef.
2003-05-02Fix name of --enable-install-libbfd switch.Nick Clifton5-477/+524
2003-05-02daily updateAlan Modra1-1/+1
2003-05-01 * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Test whether theAlan Modra4-14/+41
weakdef sym has already been adjusted before treating it specially. * elf32-i386.c (elf_i386_copy_indirect_symbol): Don't copy ELF_LINK_NON_GOT_REF for weakdefs when symbol already adjusted. * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise. (ppc64_elf_check_relocs): Set ELF_LINK_NON_GOT_REF.
2003-05-01daily updateAlan Modra1-1/+1
2003-04-30Do not crash when encountering relocs against the *ABS* section.Nick Clifton2-13/+33
2003-04-30daily updateAlan Modra1-1/+1
2003-04-29bfd/H.J. Lu4-6/+33
2003-04-28 H.J. Lu <hjl@gnu.org> * elfxx-ia64.c (elfNN_ia64_relax_section): Relax ldxmov during the relax finalize pass. * section.c (struct sec): Add need_finalize_relax and remove flag11. (STD_SECTION): Update struct sec initializer. * bfd-in2.h: Regenerated. include/ 2003-04-28 H.J. Lu <hjl@gnu.org> * bfdlink.h (bfd_link_info): Add relax_finalizing. ld/ 2003-04-28 H.J. Lu <hjl@gnu.org> * ldlang.c (lang_process): Add the relax finalize pass. * ldmain.c (main): Initialize link_info.relax_finalizing to FALSE.
2003-04-29daily updateAlan Modra1-1/+1
2003-04-28bfd/H.J. Lu2-1/+9
2003-04-28 H.J. Lu <hjl@gnu.org> * elflink.h (elf_merge_symbol): Call elf_backend_copy_indirect_symbol to copy any information related to dynamic linking when we flip the indirection. ld/testsuite/ 2003-04-28 H.J. Lu <hjl@gnu.org> * ld-elfvers/vers.exp (picflag): Set PIC flag for compiler. (build_vers_lib): Support PIC. (build_vers_lib_no_pic): New. Change all calls to build_vers_lib to build_vers_lib_no_pic. (build_vers_lib_pic): New. Add tests vers26a, vers26b1, vers26b2 and vers26b3 for versioned definition vs. normal definition in different files. * ld-elfvers/vers26a.c: New file. * ld-elfvers/vers26a.dsym: Likewise. * ld-elfvers/vers26a.map: Likewise. * ld-elfvers/vers26a.ver: Likewise. * ld-elfvers/vers26b.c: Likewise. * ld-elfvers/vers26b.dsym: New empty file. * ld-elfvers/vers26b.ver: Likewise.
2003-04-28bfd/H.J. Lu3-13/+131
2003-04-27 H.J. Lu <hjl@gnu.org> * elf-bfd.h (ELF_LINK_DYNAMIC_DEF): New. (ELF_LINK_DYNAMIC_WEAK): New. * elflink.h (elf_merge_symbol): Add one argument to indicate if a symbol should be skipped. Ignore definitions in dynamic objects for symbols with non-default visibility. (elf_add_default_symbol): Adjusted. (elf_link_add_object_symbols): Check if a symbol should be skipped. Don't merge the visibility field with the one from a dynamic object. (elf_link_check_versioned_symbol): Use undef_bfd. (elf_link_output_extsym): Warn if a forced local symbol is referenced from dynamic objects. Make non-weak undefined symbol with non-default visibility a fatal error. ld/testsuite/ 2003-04-27 H.J. Lu <hjl@gnu.org> * ld-elfvsb/elfvsb.dat: Updated. * ld-elfvsb/elfvsb.exp: Likewise. * ld-elfvsb/main.c: Likewise. * ld-elfvsb/sh1.c: Likewise. * ld-elfvsb/sh2.c: Likewise.
2003-04-28daily updateAlan Modra1-1/+1
2003-04-27 * configure.in: Bump version on HEAD to 2.14.90.Daniel Jacobowitz3-2/+7
* configure: Regenerated.
2003-04-26 PR savannah/3331:Stephane Carrez2-0/+7
* elf32-m68hc11.c (m68hc11_elf_relax_section): Clear prev_insn_group when we couldn't relax something. * ld-m68hc11/bug-3331.d: New test. * ld-m68hc11/bug-3331.s: New file.
2003-04-26daily updateAlan Modra1-1/+1
2003-04-252003-04-25 Alan Modra <amodra@bigpond.net.au>H.J. Lu2-15/+36
* elflink.h (elf_merge_symbol): When we find a regular definition for an indirect symbol, flip the indirection so that the old direct symbol now points to the new definition.
2003-04-25daily updateAlan Modra1-1/+1
2003-04-24.Roland McGrath1-0/+4
2003-04-242003-04-24 Roland McGrath <roland@redhat.com>Roland McGrath1-4/+8
* elf.c (bfd_section_from_phdr): Map PT_GNU_EH_FRAME to "eh_frame_hdr".
2003-04-24 * elf32-ppc.c: Formatting and comment fixes.Alan Modra2-20/+41
(ELIMINATE_COPY_RELOCS): Move before ppc_elf_copy_indirect_symbol. (ppc_elf_copy_indirect_symbol): Copy flags here for weakdefs.
2003-04-24Add support for h8300hn and h8300snNick Clifton7-33/+128
2003-04-24 * elf32-sh.c (tpoff): New.Kaz Kojima2-203/+77
(struct elf_sh_dyn_relocs): Remove tls_tpoff32. (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Pass SHARED instead of INFO. (allocate_dynrelocs): Don't make unnecessary dynamic TLS relocations. Adjust WILL_CALL_FINISH_DYNAMIC_SYMBOL uses. (sh_elf_relocate_section): Likewise. Remove unnecessary tests. (dtpoff_base): Fix wrong indentation. (sh_elf_check_relocs): Don't set DF_STATIC_TLS flag with non-TLS relocations. Don't set tls_tpoff32 flag. Don't make unnecessary R_SH_TLS_TPOFF32 relocations. * ld-sh/tlsbin-1.d, ld-sh/tlsbin-2.d, ld-sh/tlsbin-3.d, ld-sh/tlstpoff-1.d, ld-sh/tlstpoff-2.d: Update for removing unnecessary TLS relocs.
2003-04-24daily updateAlan Modra1-1/+1
2003-04-23bfd:Joern Rennecke9-9/+20
* archures.c (enum bfd_architecture): Amend comment to refer to SuperH. * cpu-sh.c: Likewise. * elf32-sh.c: Likewise. * reloc.c (bfd_reloc_code_real): Likewise. * elf32-sh64-com.c: Change comment to refer to SuperH. * elf32-sh64.c: Likewise. * elf64-sh64.c: Likewise. * bfd-in2.h (enum bfd_architecture): Regenerate. binutils: * readelf.c (get_machine_name) <EM_SH>: Amend return value to refer to SuperH. gas: * config/tc-sh.c: Amend comment to refer to SuperH. * config/tc-sh.h: Likewise. (LISTING_HEADER): Amend to refer to SuperH. * config/tc-sh64.c: Change comment to refer to SuperH. * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH. * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH. * doc/c-sh.texi: Amend to refer to SuperH. Add SuperH architecture documentation references. * doc/c-sh64.texi: Change to refer to SuperH. include/elf: * common.h (EM_SH): Amend comment to refer to SuperH. ld/testsuite: * ld-sh/sh64/crange3-cmpct.rd (Machine): Change to refer to SuperH. * ld-sh/sh64/crange3-media.rd (Machine): Likewise.
2003-04-23 * elf32-i386.c (elf_i386_info_to_howto): Delete.Alan Modra2-46/+42
(elf_info_to_howto): Define as elf_i386_info_to_howto_rel.
2003-04-23daily updateAlan Modra1-1/+1
2003-04-22Replace references to Mitsubishi M32R with references to Renesas M32R.Nick Clifton4-4/+11
2003-04-22daily updateAlan Modra1-1/+1
2003-04-21 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Return false for anRichard Henderson2-1/+8
executable when a symbol is defined both regular and dynamic.
2003-04-21 * Makefile.am (BFD32_BACKENDS): Add elf32-m68hc1x.lo.Stephane Carrez5-8/+29
(elf32-m68hc1x.lo): Update dependencies * configure.in: Add elf32-m68hc1x.lo. * configure: Rebuild. * Makefile.in: Rebuild.
2003-04-21 * elf32-m68hc1x.c: New file (from elf32-m68hc11.c and elf32-m68hc12.c)Stephane Carrez5-803/+1998
(m68hc11_elf_hash_table_create): New function. (elf32_m68hc11_link_hash_table_free): New function. (stub_hash_newfunc): New function. (m68hc11_add_stub): New function. (elf32_m68hc11_add_symbol_hook): New function. (elf32_m68hc11_setup_section_lists): New function. (elf32_m68hc11_next_input_section): New function. (elf32_m68hc11_size_stubs): New function. (elf32_m68hc11_build_stubs): New function. (m68hc11_get_relocation_value): New function. (elf32_m68hc11_relocate_section): Call the above to redirect some relocations to the trampoline code. (m68hc11_elf_export_one_stub): New function. (m68hc11_elf_set_symbol): New function. (elf32_m68hc11_build_stubs): Call it via bfd_hash_traverse. (m68hc11_elf_get_bank_parameters): Get parameters only when the info is not yet initialized. * elf32-m68hc1x.h: New file (from elf32-m68hc11.c and elf32-m68hc12.c) (elf32_m68hc11_stub_hash_entry): New struct. (m68hc11_page_info): Add trampoline handler address. (m68hc11_elf_link_hash_table): Add stubs generation members. (elf32_m68hc11_add_symbol_hook): Declare. (elf32_m68hc11_setup_section_lists): Declare. (elf32_m68hc11_size_stubs): Declare. (elf32_m68hc11_build_stubs): Declare. * elf32-m68hc11.c (m68hc11_elf_ignore_reloc): Move to elf32-m68hc1x.c. (elf32_m68hc11_gc_mark_hook, elf32_m68hc11_gc_sweep_hook): Likewise. (elf32_m68hc11_check_relocs, elf32_m68hc11_relocate_section): Ditto. (_bfd_m68hc11_elf_set_private_flags): Ditto. (_bfd_m68hc11_elf_merge_private_bfd_data): Ditto. (_bfd_m68hc11_elf_print_private_bfd_data): Ditto. (bfd_elf32_bfd_link_hash_table_create): Define. (elf_backend_add_symbol_hook): Define. (m68hc11_elf_bfd_link_hash_table_create): New function. (m68hc11_elf_build_one_stub): New function. (m68hc11_elf_size_one_stub): New function. (m68hc11_elf_bfd_link_hash_table_create): Install the above. (bfd_elf32_bfd_link_hash_table_create): Define. * elf32-m68hc12.c (m68hc11_elf_ignore_reloc): Remove. (m68hc12_addr_is_banked): Remove, use m68hc11_addr_is_banked. (m68hc12_phys_addr): Ditto. (m68hc12_phys_page): Ditto. (m68hc12_elf_special_reloc): Move to elf32-m68hc1x.c. (elf32_m68hc11_gc_mark_hook): Likewise. (elf32_m68hc11_gc_sweep_hook): Likewise. (elf32_m68hc11_check_relocs): Likewise. (elf32_m68hc11_relocate_section): Likewise. (_bfd_m68hc12_elf_set_private_flags): Likewise. (_bfd_m68hc12_elf_merge_private_bfd_data): Likewise. (_bfd_m68hc12_elf_print_private_bfd_data): Likewise. (m68hc12_elf_build_one_stub): New function. (m68hc12_elf_size_one_stub): New function. (m68hc12_elf_bfd_link_hash_table_create): New function, use the above. (elf_backend_add_symbol_hook): Define. (elf_m68hc11_howto_table): Use TRUE for pcrel relocs; fix masks.
2003-04-21daily updateAlan Modra1-1/+1
2003-04-20daily updateAlan Modra1-1/+1
2003-04-19daily updateAlan Modra1-1/+1
2003-04-18Only check associated vector if the matching_vector has been created.Nick Clifton2-1/+8
2003-04-18daily updateAlan Modra1-1/+1
2003-04-17daily updateAlan Modra1-1/+1
2003-04-16* dwarf2.c (_bfd_dwarf2_find_nearest_line): Fix typo inAlexandre Oliva2-1/+6
2003-04-09's change.
2003-04-16daily updateAlan Modra1-1/+1
2003-04-15If a section holds uninitialized data and is from an object file or from anNick Clifton2-8/+17
executable image that has not initialized the s_size field, or if the physical size is padded, use the virtual size (stored in s_paddr) instead.
2003-04-15Properly report filename for alignment reduction.Nick Clifton2-6/+25
Add test for alignment reduction.
2003-04-15Replace occurrances of 'Hitachi' with 'Renesas'.Nick Clifton14-59/+75
2003-04-15daily updateAlan Modra1-1/+1
2003-04-14Maintain maximum alignment for common symbols. Warn reducing alignment forNick Clifton2-7/+68
common symbols. Report old filename when symbol size changes.
2003-04-14daily updateAlan Modra1-1/+1
2003-04-13daily updateAlan Modra1-1/+1
2003-04-12* elfxx-mips.c (mips_elf_calculate_relocation): Adjust two otherAlexandre Oliva2-6/+14
occurrences of the same test changed in the previous patch. Optimize.
2003-04-12* elfxx-mips.c (mips_elf_get_global_gotsym_index): New.Alexandre Oliva2-3/+36
(mips_elf_calculate_relocation): Decay GOT_PAGE/GOT_OFST to GOT_DISP/addend only if the symbol got a global GOT entry.
2003-04-12daily updateAlan Modra1-1/+1