aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2004-06-01daily updateAlan Modra1-1/+1
2004-05-31daily updateAlan Modra1-1/+1
2004-05-30daily updateAlan Modra1-1/+1
2004-05-292004-05-29 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-16/+12
* elfxx-ia64.c (elfNN_ia64_relax_section): Undo the last change.
2004-05-28* elf-m10300.c (mn10300_elf_relax_section): Preserve reloc addendDJ Delorie2-3/+21
for linking, but otherwise adjust reloc for merged sections.
2004-05-282004-05-28 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-7/+21
* elfxx-ia64.c (elfNN_ia64_relax_section): Properly call _bfd_merged_section_offset for local symbols.
2004-05-282004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>Joern Rennecke7-104/+291
bfd: * Makefile.am: Regenerate dependencies. * Makefile.in: Regenerate. * archures.c: Add bfd_mach_sh3_nommu . * bfd-in2.h: Regenerate. * cpu-sh.c: Add sh3-nommu architecture. (bfd_to_arch_table): Create new table. (sh_get_arch_from_bfd_mach): Create new function. (sh_get_arch_up_from_bfd_mach): Create new function. (sh_merge_bfd_arch): Create new function. * elf32-sh.c (sh_ef_bfd_table): Add table. (sh_elf_check_relocs): Replace switch statement with use of sh_ef_bfd_table . (sh_elf_get_flags_from_mach): Add new function. (sh_find_elf_flags): Likewise. (sh_elf_copy_private_data): Replace most of non-elf contents with a call to sh_merge_bfd_arch() . gas: * Makefile.am: Regenerate dependecies. * Makefile.in: Regenerate. * config/tc-sh.c (valid_arch): Make unsigned. (preset_target_arch): Likewise. (md_begin): Use new architecture flags system. (get_specific): Likewise. (assemble_ppi): Likewise. (md_assemble): Likewise. Also fix error check for bad opcodes. (md_parse_option): Likewise. Also generate -isa values according to the table in bfd/cpu-sh.c instead of just constants. Also allow <arch>-up ISA variants. (sh_elf_final_processing): Replace if-else chain with a call to sh_find_elf_flags(). * testsuite/gas/sh/arch: New directory. * testsuite/gas/sh/arch/arch.exp: New test script. * testsuite/gas/sh/arch/arch_expected.txt: New file. * testsuite/gas/sh/arch/sh.s: New file. * testsuite/gas/sh/arch/sh2.s: New file. * testsuite/gas/sh/arch/sh-dsp.s: New file. * testsuite/gas/sh/arch/sh2e.s: New file. * testsuite/gas/sh/arch/sh3-nommu.s: New file. * testsuite/gas/sh/arch/sh3.s: New file. * testsuite/gas/sh/arch/sh3-dsp.s: New file. * testsuite/gas/sh/arch/sh3e.s: New file. * testsuite/gas/sh/arch/sh4-nommu-nofpu.s: New file. * testsuite/gas/sh/arch/sh4-nofpu.s: New file. * testsuite/gas/sh/arch/sh4.s: New file. * testsuite/gas/sh/arch/sh4a-nofpu.s: New file. * testsuite/gas/sh/arch/sh4al-dsp.s: New file. * testsuite/gas/sh/arch/sh4a.s: New file. include/elf: * sh.h (EF_SH_HAS_DSP): Remove. (EF_SH_HAS_FP): Remove. (EF_SH_MERGE_MACH): Remove. (EF_SH4_NOFPU): Convert to decimal. (EF_SH4A_NOFPU): Likewise. (EF_SH4_NOMMU_NOFPU): Likewise. (EF_SH3_NOMMU): Add new macro. (EF_SH_BFD_TABLE): Likewise. (sh_find_elf_flags): Add prototype. (sh_elf_get_flags_from_mach): Likewise. opcodes: * sh-dis.c (target_arch): Make unsigned. (print_insn_sh): Replace (most of) switch with a call to sh_get_arch_from_bfd_mach(). Also use new architecture flags system. * sh-opc.h: Redefine architecture flags values. Add sh3-nommu architecture. Reorganise <arch>_up macros so they make more visual sense. (SH_MERGE_ARCH_SET): Define new macro. (SH_VALID_BASE_ARCH_SET): Likewise. (SH_VALID_MMU_ARCH_SET): Likewise. (SH_VALID_CO_ARCH_SET): Likewise. (SH_VALID_ARCH_SET): Likewise. (SH_MERGE_ARCH_SET_VALID): Likewise. (SH_ARCH_SET_HAS_FPU): Likewise. (SH_ARCH_SET_HAS_DSP): Likewise. (SH_ARCH_UNKNOWN_ARCH): Likewise. (sh_get_arch_from_bfd_mach): Add prototype. (sh_get_arch_up_from_bfd_mach): Likewise. (sh_get_bfd_mach_from_arch_set): Likewise. (sh_merge_bfd_arc): Likewise. ld: * testsuite/ld-sh/arch/arch.exp: New test script. * testsuite/ld-sh/arch/arch_expected.txt: New file. * testsuite/ld-sh/arch/sh.s: New file. * testsuite/ld-sh/arch/sh2.s: New file. * testsuite/ld-sh/arch/sh-dsp.s: New file. * testsuite/ld-sh/arch/sh2e.s: New file. * testsuite/ld-sh/arch/sh3-nommu.s: New file. * testsuite/ld-sh/arch/sh3.s: New file. * testsuite/ld-sh/arch/sh3-dsp.s: New file. * testsuite/ld-sh/arch/sh3e.s: New file. * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file. * testsuite/ld-sh/arch/sh4-nofpu.s: New file. * testsuite/ld-sh/arch/sh4.s: New file. * testsuite/ld-sh/arch/sh4a-nofpu.s: New file. * testsuite/ld-sh/arch/sh4al-dsp.s: New file. * testsuite/ld-sh/arch/sh4a.s: New file.
2004-05-28daily updateAlan Modra1-1/+1
2004-05-272004-05-27 Michael Chastain <mec.gnu@mindspring.com>Michael Chastain3-6/+11
* Makefile.am (bfdver.h): Use explicit filename, not $< . * Makefile.in: Regenerate.
2004-05-27* elf-m10300.c (elf32_mn10300_finish_hash_table_entry): AvoidAlexandre Oliva2-11/+41
custom calling conventions for dynamic symbols. (mn10300_elf_relax_section): Avoid relaxing a function as a local symbol if it's an alias to a global one.
2004-05-27bfd/H.J. Lu2-1/+6
2004-05-26 H.J. Lu <hongjiu.lu@intel.com> * elf.c (_bfd_elf_make_section_from_shdr): Undo the last change. ld/ 2004-05-26 H.J. Lu <hongjiu.lu@intel.com> * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link. * ldlang.c (lang_add_section): Likewise.
2004-05-27* elf-m10300.c (mn10300_elf_relax_section): Don't test isym withinAlexandre Oliva2-1/+6
loop over hashes.
2004-05-27daily updateAlan Modra1-1/+1
2004-05-26bfd/Alan Modra2-1/+6
* elf.c (_bfd_elf_make_section_from_shdr): Don't set SEC_EXCLUDE for SHT_GROUP sections. ld/ * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP sections when doing a final link. Clear SEC_EXCLUDE when doing a relocable link, except for SEC_DEBUGGING sections. * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the same condition here to drop SEC_EXCLUDE orphan sections.
2004-05-26daily updateAlan Modra1-1/+1
2004-05-25bfd/Alan Modra6-84/+99
* elflink.c (elf_link_add_object_symbols): Don't set up merge section data here.. * elf.c (_bfd_elf_merge_sections): .. Do it here instead. * merge.c: Formatting. Remove unnecessary casts. Expand bfd_get_section_alignment macro. (struct sec_merge_sec_info): Rename "first" to "first_str". Update use throughout file. (_bfd_add_merge_section): Rename from _bfd_merge_section. Update comment. Abort on dynamic or non-SEC_MERGE input. Don't test section name to determine sinfo group, instead test output section and alignment. (_bfd_merge_sections): Add struct bfd_link_info param. Call _bfd_strip_section_from_output rather than just twiddling flags. * libbfd-in.h (_bfd_add_merge_section): Rename, update comment. (_bfd_merge_sections): Update prototype. * libbfd.h: Regenerate. ld/ * ldlang.c (lang_process): Call bfd_merge_sections later, and only when not a relocatable link. (print_input_section): Handle SEC_EXCLUDE sections. (size_input_section): Don't update dot on SEC_EXCLUDE sections. (lang_do_assignments_1): Likewise. * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections. * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise. * emultempl/hppaelf.em (build_section_lists): Likewise. * emultempl/ppc64elf.em (build_toc_list): Likewise. (build_section_lists): Likewise.
2004-05-25daily updateAlan Modra1-1/+1
2004-05-24* netbsd-core.c: Correctly indent section that sets architectureMark Kettenis2-51/+54
from machine ID.
2004-05-24Really add this file.Mark Kettenis1-0/+33
2004-05-24Add support for an m88k-openbsd targetNick Clifton9-337/+984
2004-05-24Remove bogus inodeNick Clifton2-1/+5
2004-05-24daily updateAlan Modra1-1/+1
2004-05-23 * configure.in (is_release): Remove.Ben Elliston6-1025/+362
(bfd_version_date, bfd_version, bfd_version_string): Likewise. (AC_OUTPUT): Don't output bfdver.h from version.h. * configure: Regenerate. * Makefile.am (RELEASE): New variable. (bfdver.h): New target. * Makefile.in: Regenerate. * doc/Makefile.in: Likewise.
2004-05-23daily updateAlan Modra1-1/+1
2004-05-22 * Makefile.am (config.status): Don't depend on version.h.Ben Elliston3-6/+9
* Makefile.in: Regenerate.
2004-05-22 * merge.c (_bfd_merged_section_offset): Remove "addend" param.Alan Modra9-28/+45
* libbfd-in.h (_bfd_merged_section_offset): Adjust prototype. * libbfd.h: Regenerate. * elf.c (_bfd_elf_rela_local_sym): Adjust call. (_bfd_elf_rel_local_sym): Likewise. * elflink.c (_bfd_elf_link_sec_merge_syms): Likewise. (elf_link_input_bfd): Likewise. * elf32-ppc.c (ppc_elf_relax_section): Likewise. * elf64-alpha.c (elf64_alpha_relocate_section): Likewise. * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise. (elfNN_ia64_relocate_section): Likewise.
2004-05-22daily updateAlan Modra1-1/+1
2004-05-21Add --hash-size switch to the linkerNick Clifton6-17/+64
2004-05-21* libaout.h (machine_type): Add M_88K_OPENBSD and M_HPPA_OPENBSD.Mark Kettenis3-0/+29
* netbsd-core.c (netbsd_core_file_p): Set architecture for alpha, arm, m68k, m88k and hppa core files.
2004-05-21Do not use iovec if it is NULL.Nick Clifton2-8/+51
2004-05-21 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Comment correction.Ben Elliston2-1/+5
2004-05-21daily updateAlan Modra1-1/+1
2004-05-20daily updateAlan Modra1-1/+1
2004-05-19Add code to cope with nested archives.Nick Clifton2-14/+27
2004-05-19daily updateAlan Modra1-1/+1
2004-05-18daily updateAlan Modra1-1/+1
2004-05-17 * elf32-xtensa.c (xtensa_get_property_section_name): Determine linkonceBob Wilson2-6/+10
section names by inserting a new substring after .gnu.linkonce, except for .gnu.linkonce.t.* where the "t." is replaced.
2004-05-17Add PowerPC LynxOS supportNick Clifton2-4/+18
2004-05-17binutils ChangeLog:Bob Wilson20-22/+126
2004-05-17 David Heine <dlheine@tensilica.com> * objcopy.c (setup_bfd_headers): New function. (copy_object): Call setup_bfd_headers. bfd ChangeLog: 2004-05-17 David Heine <dlheine@tensilica.com> * aout-target.h (MY_bfd_copy_private_header_data): Define. * aout-tic30.c (MY_bfd_copy_private_header_data): Define. * bfd.c (bfd_copy_private_header_data): Define. * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add entries for new interface. * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise. * coffcode.h (coff_bfd_copy_private_header_data): Define. * elf-bfd.h (_bfd_elf_copy_private_header_data): Declare. * elf.c (_bfd_elf_copy_private_section_data): Remove code to set up segments by calling copy_private_bfd_data. (_bfd_elf_copy_private_header_data): Define. * elfxx-target.h (bfd_elfNN_bfd_copy_private_header_data): Define. * libbfd-in.h (_bfd_generic_bfd_copy_private_header_data): Define. * libecoff.h (_bfd_ecoff_bfd_copy_private_header_data): Define. * mach-o.c (bfd_mach_o_bfd_copy_private_header_data): Define. * mmo.c (mmo_bfd_copy_private_header_data): Define. * ppcboot.c (ppcboot_bfd_copy_private_header_data): Define. * som.c (som_bfd_copy_private_header_data): Define. * targets.c (BFD_JUMP_TABLE_COPY): Add _bfd_copy_private_header_data. * vms.c (vms_bfd_copy_private_header_data): Define. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate.
2004-05-17daily updateAlan Modra1-1/+1
2004-05-16daily updateAlan Modra1-1/+1
2004-05-15 * elfxx-mips.c (MINUS_TWO): Define.Thiemo Seufer2-10/+17
(mips_elf_higher, mips_elf_highest, mips_elf_create_dynamic_relocation): Use MINUS_ONE and MINUS_TWO for some bfd_vma values. (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Code cleanup.
2004-05-15daily updateAlan Modra1-1/+1
2004-05-14 * som.c (log2): Rename to exact_log2. Adjust all callers.Dave Anglin2-6/+10
2004-05-14daily updateAlan Modra1-1/+1
2004-05-13Remove comment rendered obsolete by previous deltaNick Clifton2-6/+2
2004-05-13fix typo in file nameNick Clifton1-2/+2
2004-05-13Handle dwarf3 format CIE entries.Nick Clifton2-3/+11
2004-05-13Change or32-rtems target from COFF to ELF formatNick Clifton2-2/+6
2004-05-13Updated French translationsNick Clifton2-2/+7