summaryrefslogtreecommitdiff
path: root/bfd
Commit message (Collapse)AuthorAgeFilesLines
* AIX 4.3 core dump changes.Kevin Buettner2000-02-172-12/+54
|
* bfd:Joern Rennecke2000-02-177-45/+414
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reinstate bits of sh4 support that got accidentally deleted. Add sh-dsp support. bfd: * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros. (bfd_mach_sh3_dsp): Likewise. (bfd_mach_sh4): Reinstate. (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750. * bfd-in2.h: Regenerate. * coff-sh.c (struct sh_opcode): flags is no longer short. (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros. (sh_opcode41, sh_opcode42): Integrate as sh_opcode41. (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes. (sh_opcode41, sh_opcode4, sh_opcode80): Likewise. (sh_opcodes): No longer const. (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays. (sh_insn_uses_reg): Check for USESAS and USESR8. (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS. (_bfd_sh_align_load_span): Return early for SH4. Modify sh_opcodes lookup table for sh-dsp / sh3-dsp. Take into account that field b of a parallel processing insn could be mistaken for a separate insn. * cpu-sh.c (arch_info_struct): New array elements for sh2, sh-dsp and sh3-dsp. Reinstate element for sh4. (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros. (SH4_NEXT): Reinstate. (SH3_NEXT, SH3E_NEXT): Adjust. * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare. * elf32-sh.c (sh_elf_set_private_flags): New function. (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise. (sh_elf_merge_private_data): New function. (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define. (bfd_elf32_bfd_copy_private_bfd_data): Define. (bfd_elf32_bfd_merge_private_bfd_data): Change to sh_elf_merge_private_data. gas: * config/tc-sh.c ("elf/sh.h"): Include. (sh_dsp, valid_arch, reg_x, reg_y, reg_efg): New static variables. (md.begin): Initialize target_arch. Only include opcodes in has table that match selected architecture. (parse_reg): Recognize register names for sh-dsp. (parse_at): Recognize post-modify addressing. (get_operands): The leading space is now optional. (get_specific): Remove FDREG_N support. Add support for sh-dsp arguments. Update valid_arch. (build_Mytes): Add support for SDT_REG_N. (find_cooked_opcode): New function, broken out of md_assemble. (assemble_ppi, sh_elf_final_processing): New functions. (md_assemble): Use find_cooked_opcode and assemble_ppi. (md_longopts, md_parse_option): New option: -dsp. * config/tc-sh.h (elf_tc_final_processing): Define. (sh_elf_final_processing): Declare. include/elf: * sh.h: (EF_SH_MACH_MASK, EF_SH_UNKNOWN, EF_SH1, EF_SH2): New macros. (EF_SH3, EF_SH_HAS_DSP, EF_SH_DSP, EF_SH3_DSP): Likewise. (EF_SH_HAS_FP, EF_SH3E, EF_SH4, EF_SH_MERGE_MACH): Likewise. opcodes: * sh-dis.c (print_movxy, print_insn_ddt, print_dsp_reg): New functions. (print_insn_ppi): Likewise. (print_insn_shx): Use info->mach to select appropriate insn set. Add support for sh-dsp. Remove FD_REG_N support. * sh-opc.h (sh_nibble_type): Add new values for sh-dsp support. (sh_arg_type): Likewise. Remove FD_REG_N. (sh_dsp_reg_nums): New enum. (arch_sh1, arch_sh2, arch_sh3, arch_sh3e, arch_sh4): New macros. (arch_sh_dsp, arch_sh3_dsp, arch_sh1_up, arch_sh2_up): Likewise. (arch_sh3_up, arch_sh3e_up, arch_sh4_up, arch_sh_dsp_up): Likewise. (arch_sh3_dsp_up): Likewise. (sh_opcode_info): New field: arch. (sh_table): Split up insn with FD_REG_N into ones with F_REG_N and D_REG_N. Fill in arch field. Add sh-dsp insns.
* * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect andRichard Henderson2000-02-134-87/+94
| | | | | | | | | | | | | hide_symbol members. (elf_link_hash_copy_indirect): New. (elf_link_hash_hide_symbol): New. * elflink.h (elf_link_add_object_symbols): Break out copy from indirect new new symbol to elf.c. (elf_link_assign_sym_version): Break out privatization of non-exported symbol to elf.c. * elf.c (_bfd_elf_link_hash_copy_indirect): New. (_bfd_elf_link_hash_hide_symbol): New. (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
* * section.c (_bfd_strip_section_from_output): Add info parameter.Ian Lance Taylor2000-02-1312-38/+91
| | | | | | | | | | | | If it passed as non-NULL, use it to check whether any input BFD has an input section which uses this output section. Change all callers. * bfd-in2.h: Rebuild. * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of 1999-11-29. * bfd-in2.h: Rebuild.
* rebuildIan Lance Taylor2000-02-131-16/+42
|
* Add hooks to support TI COFF handling.Timothy Wall2000-02-103-0/+19
|
* Fix problem where -relax could reorder multiple consecutive sets of theJoern Rennecke2000-02-102-16/+123
| | | | | | | | | | | | | same register: * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG, USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros. * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes. * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg, sh_insns_uses_or_sets_freg): New functions. * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros. * (sh_insns_conflict): Use new functions and new macros to detect conflicts when two instructions both set same integer registers, both set same fp register, and both set special register.
* Set arch/mach info prior to swapping in sections, so that the swappingTimothy Wall2000-02-092-4/+12
| | | | routines have access to the arch/mach info.
* apply patch from MArk Elbrecht tpo update comment and copyrightNick Clifton2000-02-082-2/+6
|
* 2000-02-06 Jason Molenda (jsm@bugshack.cygnus.com)Jason Molenda2000-02-071-2/+2
| | | | | * ChangeLog: Whitespace change to test logging. * bfd/ChangeLog, dejagnu/ChangeLog, include/ChangeLog, tcl/ChangeLog: Same.
* Apply patch from Thomas de Lellis to allow nm to distinguish between weakNick Clifton2000-01-283-6/+63
| | | | function symbols and weak data symbols.
* Apply Thoams de Lellis's patch to fic disassembly of Thumb instructions whenNick Clifton2000-01-272-7/+27
| | | | bounded by non-function labels.
* Most of these changes are really only cosmetic. The readelf.c patchAlan Modra2000-01-264-6/+16
| | | | | | fixes a thinko in get_dynamic_flags. I found at least one message string that included a `%' being passed to printf in the format argument.
* Remove use of a GCC extension when allocating local arrays.Nick Clifton2000-01-242-5/+31
|
* Fix seeks and reads past the end of a BIMNick Clifton2000-01-212-1/+23
|
* fix spelling of MotorolaNick Clifton2000-01-202-2/+2
|
* fix mis-applied patchNick Clifton2000-01-142-1/+9
|
* Applied Tim Wall's patch to replace RELSZ and friends with bfd_coff_relsz andNick Clifton2000-01-133-41/+52
| | | | friends.
* Fix bug in interwork stubs from thumb to armNick Clifton2000-01-132-1/+6
|
* Apply Tim walls octest vs bytes patchNick Clifton2000-01-139-53/+155
|
* Apply for for CR 102957.Nick Clifton2000-01-132-1/+7
|
* Add arm-conix targetNick Clifton2000-01-102-1/+6
|
* Apply patch from Egor Duda to process win32_pstatus notes in core dumps.Nick Clifton2000-01-106-2/+109
|
* oops - omitted from previous deltaNick Clifton2000-01-041-1/+1
|
* ELF visibility patch from Martin Loewis.Nick Clifton2000-01-034-7/+65
|
* * elflink.h (bfd_elf,size_dynamic_sections): Don't export allRichard Henderson1999-12-292-14/+19
| | | | if no dynamic sections created.
* fix PE file format detectionNick Clifton1999-12-282-1/+9
|
* Move PE format object file detection code into common place.Nick Clifton1999-12-174-128/+96
|
* catch bad arm relocsNick Clifton1999-12-172-10/+36
|
* Fix detection of common symbolsNick Clifton1999-12-142-5/+54
|
* Add support for sparc-*-netbsdelf* and sparc-*-netbsdaout*.Andrew Cagney1999-12-142-1/+15
|
* fix detection of common symbols.Nick Clifton1999-12-142-1/+8
|
* Fix elf linker's handling of commons in archive mapsNick Clifton1999-12-102-1/+120
|
* Revert previous patch.Nick Clifton1999-12-1019-76/+35
|
* Change AR for ELF so that common symbols are not included in archive map.Nick Clifton1999-12-1019-15/+111
| | | | | | Change LD for ELF so that archive elements whoes archive map contains a reference to a common symbol will get linkled in. Add new field to bfd_target structure and initialise it for all bfd targets.
* *** empty log message ***Jim Blandy1999-12-071-0/+8
|
* Add support for SSE registers in ELF core files.Jim Blandy1999-12-071-12/+49
| | | | | | | * elf.c (elfcore_make_note_pseudosection): New function. (elfcore_grok_prfpreg): Use it. (elfcore_grok_prxfpreg): New function. (elfcore_grok_note): Recognize Linux NT_PRXFPREG notes.
* * elf32-mips.c (mips_elf_calculate_relocation): Divide R_MIPS_PC16Ian Lance Taylor1999-12-032-0/+7
| | | | | value by 4 before storing it back in the field. From Koundinya. K <kk@ddeorg.soft.net>.
* * archures.c (bfd_mach_am33): Define.Jeff Law1999-12-015-3/+189
| | | | | | | | | | * bfd-in2.h: Rebuilt. * cpu-m10300.c (bfd_am33_arch): Add to the mn103 architecture list * elf-m10300.c (mn10300_elf_relax_section): Handle am33 instructions. (compute_function_info): Handle additional registers saved by movm on the am33. (elf_mn10300_mach): Handle E_MN10300_MACH_AM33. (_bfd_mn10300_elf_final_write_processing): Handle bfd_mach_am33.
* * elf.c (bfd_get_elf_phdrs, bfd_get_elf_phdr_upper_bound): NewJim Blandy1999-11-293-0/+71
| | | | | | functions. * bfd-in2.h (bfd_get_elf_phdrs, bfd_get_elf_phdr_upper_bound): New declarations.
* Add new relocations for alpha explicit relocation supportMichael Meissner1999-11-285-0/+65
|
* Add support for target specific processing of ELF segmentsNick Clifton1999-11-264-17/+82
|
* Add SEC_CODE and SEC_READONLY flags to glue sections.Nick Clifton1999-11-252-2/+5
|
* Add SEC_CODE and SEC_READONLY flags to glue sections.Nick Clifton1999-11-252-2/+8
|
* fix typoiNick Clifton1999-11-202-1/+5
|
* * elf32-m68k.c (elf_cpu32_plt0_entry): Fix encoding.Catherine Moore1999-11-192-4/+9
| | | | (elf_cpu32_plt_entry): Likewise.
* Fix processing of RVA relocsNick Clifton1999-11-182-1/+18
|
* * elf-bfd.h (struct elf_backend_data): Reorder collect andRichard Henderson1999-11-185-18/+58
| | | | | | | | | type_change_ok; add sign_extend_vma. * elf32-mips.c (elf_backend_sign_extend_vma): Define. * elfcode.h (elf_swap_symbol_in): Mind be->sign_extend_vma. (elf_swap_shdr_in, elf_swap_phdr_in): Likewise. * elfxx-target.h (elf_backend_sign_extend_vma): Default. (elfNN_bed): Follow struture changes.
* * libbfd.c (bfd_read): Check result of read against desired resultIan Lance Taylor1999-11-092-8/+25
| | | | | | using !=, not <. (_bfd_generic_get_section_contents): Set bfd_error if the seek is invalid compared to the section size.
* * ieee.c (ieee_slurp_debug): Get the length of the debugIan Lance Taylor1999-11-091-1/+8
| | | | information right if there is no data part.