summaryrefslogtreecommitdiff
path: root/bfd
Commit message (Collapse)AuthorAgeFilesLines
* * elfxx-mips.c (mips_elf_hash_sort_data): Fix formattting.jimb-ppc64-linux-20030528-branchpointjimb-ppc64-linux-20030528-branchRichard Sandiford2003-05-272-2/+8
| | | | (mips_elf_link_hash_table): Likewise.
* daily updatecarlton_dictionary-20030523-mergeAlan Modra2003-05-231-1/+1
|
* * elf64-mips.c (elf_mips_gnu_rel16_s2): Add internally usedThiemo Seufer2003-05-223-0/+89
| | | | | | | | | | R_MIPS_GNU_REL16_S2 support. (bfd_elf64_bfd_reloc_type_lookup): Use it. (mips_elf64_rtype_to_howto): Use it. * elfn32-mips.c (elf_mips_gnu_rel16_s2): Add internally used R_MIPS_GNU_REL16_S2 support. (bfd_elf32_bfd_reloc_type_lookup): Use it. (mips_elf_n32_rtype_to_howto): Use it.
* * som.h: Define PA_2_0 before including a.out.hDave Anglin2003-05-222-0/+7
|
* daily updateAlan Modra2003-05-221-1/+1
|
* 2003-05-07 Eric Christopher <echristo@redhat.com>Eric Christopher2003-05-212-59/+50
| | | | | | | | | | | | | | | | | Alexandre Oliva <aoliva@redhat.com> * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Adjust pic tests, change to warning. (_bfd_mips_elf_final_link): Remove EF_MIPS_CPIC flag setting. 2003-05-07 Eric Christopher <echristo@redhat.com> * config/tc-mips.c (mips_abicalls): New variable. (md_parse_option): Use. (s_option): Ditto. (s_abicalls): Ditto. (mips_elf_final_processing): Set EF_MIPS_PIC and EF_MIPS_CPIC dependent on above.
* Check for a target triplet of shl-...-netbsdelf as well as shle-...-netbsdelf.cagney_fileio-20030521-branchpointcagney_fileio-20030521-branchNick Clifton2003-05-212-5/+6
|
* Fix dst_mask for X_STORMY16_REL_12 reloc.Nick Clifton2003-05-212-1/+4
|
* USe is_elf_hash_table() to check for the presence of an elf_link_hash_tableNick Clifton2003-05-212-2/+8
|
* .Roland McGrath2003-05-211-1/+18
|
* 2003-05-19 Roland McGrath <roland@redhat.com>Roland McGrath2003-05-212-9/+26
| | | | | | | | | | | | | * elf.c (bfd_elf_bfd_from_remote_memory): New function. * bfd-in.h: Declare it. * bfd-in2.h: Regenerated. * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): New function. * elf-bfd.h (struct elf_backend_data): New function pointer member elf_backend_bfd_from_remote_memory. (_bfd_elf32_bfd_from_remote_memory, _bfd_elf64_bfd_from_remote_memory): Declare them. * elfxx-target.h (elf_backend_bfd_from_remote_memory): New macro. (elfNN_bed): Add that to the initializer.
* 2003-05-19 Roland McGrath <roland@redhat.com>Roland McGrath2003-05-214-1/+259
| | | | | | | | | | | | * elf.c (bfd_elf_bfd_from_remote_memory): New function. * bfd-in.h: Declare it. * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): New function. * elf-bfd.h (struct elf_backend_data): New function pointer member elf_backend_bfd_from_remote_memory. (_bfd_elf32_bfd_from_remote_memory, _bfd_elf64_bfd_from_remote_memory): Declare them. * elfxx-target.h (elf_backend_bfd_from_remote_memory): New macro. (elfNN_bed): Add that to the initializer.
* 2003-05-19 Roland McGrath <roland@redhat.com>Roland McGrath2003-05-211-0/+38
| | | | | | | | | | | | | | | * elf.c (bfd_elf_bfd_from_remote_memory): New function. * bfd-in.h: Declare it. * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): New function. * elf-bfd.h (struct elf_backend_data): New function pointer member elf_backend_bfd_from_remote_memory. (_bfd_elf32_bfd_from_remote_memory, _bfd_elf64_bfd_from_remote_memory): Declare them. * elfxx-target.h (elf_backend_bfd_from_remote_memory): New macro. (elfNN_bed): Add that to the initializer. 2003-05-15 Roland McGrath <roland@redhat.com> * elf.c (elfcore_grok_note): Grok NT_AUXV note, make ".auxv" section.
* daily updateAlan Modra2003-05-211-1/+1
|
* bfd/H.J. Lu2003-05-203-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-05-20 Jakub Jelinek <jakub@redhat.com> * elflink.h (elf_link_output_extsym): Only issue error about != STV_DEFAULT symbols if they are bfd_link_hash_undefined. 2003-05-20 H.J. Lu <hongjiu.lu@intel.com> * elflink.c (_bfd_elf_merge_symbol): Check ELF_LINK_DYNAMIC_DEF when removing the old definition for symbols with non-default visibility. ld/testsuite/ 2003-05-20 Jakub Jelinek <jakub@redhat.com> * ld-elfvsb/common.c: New file. * ld-elfvsb/elfvsb.exp: Add common. 2003-05-20 H.J. Lu <hongjiu.lu@intel.com> * ld-elfvsb/sh3.c: New file. * ld-elfvsb/test.c: Likewise. * ld-elfvsb/elfvsb.exp: Add new weak hidden symbol tests.
* daily updateAlan Modra2003-05-201-1/+1
|
* 2003-05-18 Jason Eckhardt <jle@rice.edu>Jason Eckhardt2003-05-182-1/+5
| | | | | | | | | | | | | | | | gas: * config/tc-i860.c (i860_process_insn): Initialize fc after each opcode mismatch. include/opcode: * i860.h (form, pform): Add missing .dd suffix. opcodes: * i860-dis.c (print_insn_i860): Instruction shrd has a dual bit, print it. bfd: * elf32-i860.c (elf32_i860_relocate_highadj): Simplify calculation.
* * elf32-m68k.c (elf_m68k_check_relocs): Cache reloc section inAndreas Schwab2003-05-172-28/+30
| | | | | | | | elf_section_data during processing of pc-relative and absolute relocations. (elf_m68k_relocate_section): Use the cached reloc section instead of computing it again. Fix handling of visibility. Don't modify addend when copying over a relocation into the output.
* * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCALAlan Modra2003-05-176-43/+53
| | | | | | | | | | | | | | | | to trim plt entries. Move undefweak non-default visibility test.. (allocate_dynrelocs): ..from here. * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't test dynamic_sections_created here. Update comment. Move undefweak non-default visibility test.. (allocate_dynrelocs): ..from here. Fix comment. * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL to trim plt entries. Move undefweak non-default visibility test.. (allocate_dynrelocs): ..from here. Fix comment. * elflink.h (elf_link_output_extsym): Compare ELF_ST_VISIBILITY with STV_DEFAULT rather than comparing with zero. * elflink.c (_bfd_elf_merge_symbol): Likewise. (_bfd_elf_fix_symbol_flags): Likewise. Format comment.
* * bfd.c (_bfd_get_gp_value): Prevent illegal access for abfd nullThiemo Seufer2003-05-172-0/+10
| | | | | pointers. (_bfd_set_gp_value): Likewise.
* daily updateAlan Modra2003-05-171-1/+1
|
* 2003-05-16 Michael Snyder <msnyder@redhat.com>Michael Snyder2003-05-165-3/+48
| | | | | | | | | | | | From Bernd Schmidt <bernds@redhat.com> * archures.c (bfd_mach_h8300sx): New. * bfd-in2.h: Regenerate. * cpu-h8300.c (h8300_scan)): Add support for h8300sx. (h8300sx_info_struct): New. (h8300s_info_struct): Link to it. * elf32-h8300.c (elf32_h8_mach): Add support for h8300sx. (elf32_h8_final_write_processing): Likewise. (elf32_h8_relax_section): Likewise.
* Replace i[3456]86 with i[3-7]86Nick Clifton2003-05-165-71/+78
|
* daily updateAlan Modra2003-05-161-1/+1
|
* 2003-05-15 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2003-05-152-7/+9
| | | | | * elflink.c (_bfd_elf_fix_symbol_flags): Also hide protected symbol.
* 2003-05-14 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2003-05-152-2/+9
| | | | | * elflink.h (elf_link_check_versioned_symbol): Also allow the base version.
* * elf32-i386.c (allocate_dynrelocs): Use SYMBOL_CALLS_LOCAL.Alan Modra2003-05-154-6/+34
| | | | | | | | (elf_i386_relocate_section): Likewise. * elf32-ppc.c (allocate_dynrelocs): Likewise. (ppc_elf_relocate_section): Likewise. * elf64-ppc.c (allocate_dynrelocs): Likewise. (ppc64_elf_relocate_section): Likewise.
* * elf32-mips.c (gprel32_with_gp): Remove useless N64 ABI case.Thiemo Seufer2003-05-152-7/+5
|
* daily updateAlan Modra2003-05-151-1/+1
|
* * elf32-m68hc1x.c (_bfd_m68hc11_elf_merge_private_bfd_data): Check forStephane Carrez2003-05-133-6/+47
| | | | | | | | processor capability, allow merge of HC12 and HCS12 in some cases. (m68hc11_elf_hash_table_create): Use bfd_malloc instead of bfd_zalloc. * cpu-m68hc12.c (bfd_m68hc12s_arch): New struct. (bfd_m68hc12_arch): Link it. (scan_mach): New function.
* 2003-05-13 Andrew Haley <aph@redhat.com>Andrew Haley2003-05-132-1/+5
| | | | * elf.c (bfd_elf_hash): Mask lower 32 bits of hash.
* * elf-bfd.h (SYMBOL_REFERENCES_LOCAL, SYMBOL_CALLS_LOCAL): Move fromAlan Modra2003-05-135-64/+54
| | | | | | | | | | | | | | | | elf32-ppc.c. Add ELF_LINK_FORCED_LOCAL check. * elf32-ppc.c: (SYMBOL_REFERENCES_LOCAL, SYMBOL_CALLS_LOCAL): Delete. (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL for dynreloc check. (ppc_elf_relocate_section): Likewise. * elf64-ppc.c (allocate_dynrelocs): Likewise. (ppc64_elf_relocate_section): Likewise. Use for .got relocs too. (ppc64_elf_adjust_dynamic_symbol): Don't assume symbols with .plt relocs need no other types. * elf32-i386.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL for dynreloc check. (elf_i386_relocate_section): Likewise. Use for .got relocs too. (elf_i386_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL for .got relocs.
* * elf32-sh.c (sh_elf_adjust_dynamic_symbol): For weak symbols,Kaz Kojima2003-05-132-5/+46
| | | | | | | | | | | copy ELF_LINK_NON_GOT_REF from weakdef. (allocate_dynrelocs): For undef weak syms with non-default visibility, a) don't allocate plt entries, b) don't allocate .got relocs, c) discard dyn rel space (sh_elf_relocate_section): d) don't generate .got relocs, e) don't generate dynamic relocs. (sh_elf_copy_indirect_symbol): Don't copy ELF_LINK_NON_GOT_REF for weakdefs when symbol already adjusted.
* daily updateAlan Modra2003-05-131-1/+1
|
* Use "bitfield" overflow detection for R_XSTORMY16_16 reloc.Nick Clifton2003-05-122-1/+6
|
* Fix typo in spelling of name of R_H8_DIR8 relocNick Clifton2003-05-122-19/+23
|
* 2003-05-11 Jason Eckhardt <jle@rice.edu>Jason Eckhardt2003-05-122-3/+12
| | | | | | | | | * bfd/elf32-i860.c (elf32_i860_relocate_highadj): Properly adjust upper bits. (elf32_i860_relocate_splitn): Obtain upper 5 bits from the proper place. (elf32_i860_relocate_pc16): Obtain upper 5 bits from the proper place.
* daily updateAlan Modra2003-05-121-1/+1
|
* * elf32-m68k.c (elf_m68k_relocate_section): Replace uglyAndreas Schwab2003-05-112-78/+67
| | | | | | complicated tests for unresolvable relocs with a simple direct scheme using "unresolved_reloc" var. Report some detail on bfd_reloc_outofrange and similar errors.
* daily updateAlan Modra2003-05-111-1/+1
|
* daily updateAlan Modra2003-05-101-1/+1
|
* * elf32-s390.c (allocate_dynrelocs, elf_s390_relocate_section):jimb-ppc64-linux-20030509-branchpointjimb-ppc64-linux-20030509-branchMartin Schwidefsky2003-05-093-8/+15
| | | | | | Fix WILL_CALL_FINISH_DYNAMIC_SYMBOL call. (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Pass SHARED instead of INFO. * elf64-s390.c: Likewise.
* * elf32-s390.c (ELIMINATE_COPY_RELOCS): Define as one.Martin Schwidefsky2003-05-093-36/+99
| | | | | | | | (elf_s390_adjust_dynamic_symbol): For weak symbols, copy ELF_LINK_NON_GOT_REF from weakdef. (elf_s390_copy_indirect_symbol): Test whether the weakdef sym has already been adjusted before treating it specially. * el64-s390.c: Likwise.
* * elf32-s390.c (allocate_dynrelocs): For undef weak syms withMartin Schwidefsky2003-05-093-8/+52
| | | | | | | | | non-default visibility, a) don't make them dynamic, b) discard space for dynamic relocs. (elf_s390_relocate_section): Initialize the GOT entries and skip R_390_{8,16,32}/R_390_PC{16,16DBL,32DBL,32} for weak undefined symbols with non-default visibility. * elf64-s390.c: Likewise.
* * cpu-arm.c (arm_check_note): Warning fix.Alan Modra2003-05-096-9/+33
| | | | | | | | | | | * elf32-iq2000.c (iq2000_elf_check_relocs): Warning fixes. Arrange to keep relocs if edited. (iq2000_elf_print_private_bfd_data): Return TRUE. * elfxx-ia64.c (elfNN_ia64_relax_section): Use ELFNN_R_SYM, not ELF64_R_SYM. (elfNN_ia64_relax_ldxmov): Warning fix. * xtensa-isa.c (xtensa_add_isa): Warning fix. * xtensa-modules.c (get_num_opcodes): Warning fix.
* * elf.c (elf_fake_sections): Use correct cast for sh_name.Alan Modra2003-05-092-3/+7
|
* * elflink.c (_bfd_elf_link_create_dynamic_sections): Move fromAlan Modra2003-05-0933-2260/+2323
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | elflink.h. Replace LOG_FILE_ALIGN with bed->s->log_file_align. (_bfd_elf_create_dynamic_sections): Use bed->s->log_file_align. (bfd_elf_record_link_assignment): Move from elflink.h. (_bfd_elf_merge_symbol): Likewise. (_bfd_elf_add_default_symbol): Likewise. (_bfd_elf_export_symbol): Likewise. (_bfd_elf_link_find_version_dependencies): Likewise. (_bfd_elf_link_assign_sym_version): Likewise. (_bfd_elf_link_read_relocs): Likewise. (_bfd_elf_link_size_reloc_section): Likewise. (_bfd_elf_fix_symbol_flags): Likewise. (_bfd_elf_adjust_dynamic_symbol): Likewise. (_bfd_elf_link_sec_merge_syms): Likewise. (elf_link_read_relocs_from_section): Likewise. Use bed->s->sizeof_rel and bed->s->sizeof_rela. (_bfd_elf_link_output_relocs): Likewise. * elf-bfd.h (struct elf_size_info): Rename file_align to log_file_align. (struct elf_info_failed): Move from elflink.h. (struct elf_assign_sym_version_info): Likewise. (struct elf_find_verdep_info): Likewise. (_bfd_elf_create_dynamic_sections): Delete duplicate declaration. (_bfd_elf_merge_symbol, _bfd_elf_add_default_symbol, _bfd_elf_export_symbol, _bfd_elf_link_find_version_dependencies, _bfd_elf_link_assign_sym_version, _bfd_elf_link_create_dynamic_sections, _bfd_elf_link_read_relocs, _bfd_elf_link_size_reloc_section, _bfd_elf_link_output_relocs, _bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol, _bfd_elf_link_sec_merge_syms): Declare. (bfd_elf32_link_create_dynamic_sections): Don't declare. (_bfd_elf32_link_read_relocs): Likewise. (bfd_elf64_link_create_dynamic_sections): Likewise. (_bfd_elf64_link_read_relocs): Likewise. * elflink.h: Move lots o' stuff elsewhere. * bfd-in.h (bfd_elf32_record_link_assignment): Don't declare. (bfd_elf64_record_link_assignment): Likewise. (bfd_elf_record_link_assignment): Declare. * bfd-in2.h: Regenerate. * elfcode.h (elf_link_create_dynamic_sections): Don't declare. (NAME(_bfd_elf,size_info)): Adjust for log_file_align. * elf.c (_bfd_elf_init_reloc_shdr): Adjust for bed->s->log_file_align. (assign_file_positions_for_segments): Likewise. (assign_file_positions_except_relocs): Likewise. (swap_out_syms, elfcore_write_note): Likewise. * elf-m10200.c: Adjust for changed function names. * elf-m10300.c: Likewise. * elf32-arm.h: Likewise. * elf32-h8300.c: Likewise. * elf32-hppa.c: Likewise. * elf32-ip2k.c: Likewise. * elf32-m32r.c: Likewise. * elf32-m68hc11.c: Likewise. * elf32-m68hc1x.c: Likewise. * elf32-m68k.c: Likewise. * elf32-mips.c: Likewise. * elf32-ppc.c: Likewise. * elf32-sh.c: Likewise. * elf32-v850.c: Likewise. * elf32-xtensa.c: Likewise. * elf64-alpha.c: Likewise. * elf64-hppa.c: Likewise. * elf64-mmix.c: Likewise. * elf64-ppc.c: Likewise. * elf64-sh64.c: Likewise. * elfxx-ia64.c: Likewise. * elfxx-mips.c: Likewise. (MIPS_ELF_LOG_FILE_ALIGN): Use log_file_align. * elf64-alpha.c (alpha_elf_size_info): Adjust for log_file_align. * elf64-hppa.c (hppa64_elf_size_info): Likewise. * elf64-mips.c (mips_elf64_size_info): Likewise. * elf64-s390.c (s390_elf64_size_info): Likewise. * elf64-sparc.c (sparc64_elf_size_info): Likewise.
* daily updateAlan Modra2003-05-091-1/+1
|
* 2003-05-08 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2003-05-082-1/+7
| | | | | * elflink.h (elf_add_default_symbol): After skipping the unversioned symbol, go to non-default one.
* 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2003-05-082-3/+19
| | | | | | | * elfxx-ia64.c (_bfd_elf_link_hash_hide_symbol): Also clear the want_plt field. (elfNN_ia64_relocate_section): Don't do dynamic symbol lookup for symbols with non-default visibility.