Commit Graph

5131 Commits

Author SHA1 Message Date
Alan Modra 3168356f3e * bfd.c: (_bfd_default_error_handler): Don't call abort on
error, instead call _exit.
	(_bfd_abort): Call _exit not xexit.
2006-02-21 00:14:49 +00:00
Alan Modra 9795e19988 daily update 2006-02-19 23:00:07 +00:00
Alan Modra 8845cd53b0 daily update 2006-02-18 23:00:08 +00:00
Alan Modra f6d114e1c1 daily update 2006-02-17 23:00:05 +00:00
Kevin Buettner 888b45b888 * elf32-frv.c (elf32_frv_grok_prstatus, elf32_frv_grok_psinfo):
New functions.
	* elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define.
2006-02-17 18:08:00 +00:00
Nick Clifton d70c5fc7c5 Add support for the Infineon XC16X. 2006-02-17 14:36:28 +00:00
Alan Modra cab87ef999 * elf32-ppc.c (allocate_dynrelocs): Tweak undef weak handling.
* elf64-ppc.c (allocate_dynrelocs): Likewise.
2006-02-17 12:52:58 +00:00
Alan Modra dfbb6ac933 PR ld/2218
* elf64-ppc.c (allocate_dynrelocs): Ensure undef weak sym is
	dynamic.
	(ppc64_elf_relocate_section): Check output reloc section size.
	* elf32-ppc.c (allocate_dynrelocs): Simplify undef weak test.
2006-02-17 04:49:34 +00:00
Alan Modra 428a6f770c daily update 2006-02-16 23:00:06 +00:00
H.J. Lu cedc298e35 2006-02-16 H.J. Lu <hongjiu.lu@intel.com>
PR ld/2322
	* elf.c (get_segment_type): New function.
	(_bfd_elf_print_private_bfd_data): Use it.
	(print_segment_map): New function.
	(assign_file_positions_for_segments): Call print_segment_map
	when there are not enough room for program headers.
2006-02-16 18:07:54 +00:00
Nick Hudson aaa2ab3d61 bfd:
* config.bfd (mips*el-*-netbsd*, mips*-*-netbsd*): Use
	traditional MIPS ELF targets.

	gas:
	* configure.tgt: set emulation for mips-*-netbsd*

	ld:
	* configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
	Use the traditional target.
2006-02-16 08:05:02 +00:00
Alan Modra df4c782961 daily update 2006-02-15 23:00:05 +00:00
H.J. Lu 35ccda9e73 2006-02-15 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/2338
	* dwarf2.c (check_function_name): New function.
	(_bfd_dwarf2_find_nearest_line): Use check_function_name to
	check if function is correct.
2006-02-15 22:29:42 +00:00
Alan Modra e0ae6d6fe9 * elflink.c (_bfd_elf_default_action_discarded): Return 0 for
debug sections.
	(elf_link_input_bfd): Adjust comments.
2006-02-15 14:12:54 +00:00
Alan Modra 706ba67bf8 daily update 2006-02-14 23:00:07 +00:00
Alan Modra 302937bb50 daily update 2006-02-13 23:00:06 +00:00
Alan Modra 316c6c1977 daily update 2006-02-12 23:00:05 +00:00
Alan Modra 40b11ed6d4 daily update 2006-02-11 23:00:04 +00:00
Alan Modra e2054e6c6e daily update 2006-02-10 23:00:07 +00:00
H.J. Lu d55ce4e249 2006-02-10 H.J. Lu <hongjiu.lu@intel.com>
* elf.c (copy_private_bfd_data): Minor update.
2006-02-10 17:13:23 +00:00
H.J. Lu 84d1d6507c bfd/
2006-02-10  H.J. Lu  <hongjiu.lu@intel.com>

	PR binutils/2258
	* elf.c (copy_private_bfd_data): Renamed to ...
	(rewrite_elf_program_header): This.
	(copy_elf_program_header): New function.
	(copy_private_bfd_data): Likewise.

binutils/

2006-02-10  H.J. Lu  <hongjiu.lu@intel.com>

	PR binutils/2258
	* readelf.c (process_program_headers): Use
	ELF_IS_SECTION_IN_SEGMENT_MEMORY.

include/elf/

2006-02-10  H.J. Lu  <hongjiu.lu@intel.com>

	PR binutils/2258
	* internal.h (ELF_IS_SECTION_IN_SEGMENT_FILE): New.
	(ELF_IS_SECTION_IN_SEGMENT_MEMORY): Likewise.
2006-02-10 15:04:19 +00:00
Alan Modra adf4355863 daily update 2006-02-09 23:00:06 +00:00
Alan Modra e15aa16f87 daily update 2006-02-08 23:00:05 +00:00
Alan Modra 3dbcd67d19 daily update 2006-02-07 23:00:06 +00:00
Nathan Sidwell 266abb8f72 * bfd/archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
	bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
	bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
	(bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
	bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
	bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
	bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
	bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
	bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
	bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
	bfd_mach_mcf_isa_b_usp_float_emac): New.
	(bfd_default_scan): Update coldfire mapping.
	* bfd/bfd-in.h (bfd_m68k_mach_to_features,
	bfd_m68k_features_to_mach): Declare.
	* bfd/bfd-in2.h: Rebuilt.
	* bfd/cpu-m68k.c (arch_info_struct): Add new coldfire machines,
	adjust legacy names.
	(m68k_arch_features): New.
	(bfd_m68k_mach_to_features,
	bfd_m68k_features_to_mach): Define.
	* bfd/elf32-m68k.c (elf32_m68k_object_p): New.
	(elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
	(elf32_m68k_print_private_bfd_data): Print the CF EF flags.
	(elf_backend_object_p): Define.
	* bfd/ieee.c (ieee_write_processor): Update coldfire machines.
	* bfd/libbfd.h: Rebuilt.

	* gas/config/tc-m68k.c (mcf5208_control_regs, mcf5213_control_regs,
	mcf5329_control_regs): New.
	(not_current_architecture, selected_arch, selected_cpu): New.
	(m68k_archs, m68k_extensions): New.
	(archs): Renamed to ...
	(m68k_cpus): ... here.  Adjust.
	(n_arches): Remove.
	(md_pseudo_table): Add arch and cpu directives.
	(find_cf_chip, m68k_ip): Adjust table scanning.
	(no_68851, no_68881): Remove.
	(md_assemble): Lazily initialize.
	(select_control_regs): Adjust cpu names. Add 5208, 5213, 5329.
	(md_init_after_args): Move functionality to m68k_init_arch.
	(mri_chip): Adjust table scanning.
	(md_parse_option): Reimplement 'm' processing to add -march & -mcpu
	options with saner parsing.
	(m68k_lookup_cpu, m68k_set_arch, m68k_set_cpu, m68k_set_extension,
	m68k_init_arch): New.
	(s_m68k_cpu, s_m68k_arch): New.
	(md_show_usage): Adjust.
	(m68k_elf_final_processing): Set CF EF flags.
	* gas/config/tc-m68k.h (m68k_init_after_args): Remove.
	(tc_init_after_args): Remove.
	* gas/doc/c-m68k.texi (M68K-Opts): Document -march, -mcpu options.
	(M68k-Directives): Document .arch and .cpu directives.

	* gas/testsuite/gas/m68k/all.exp: Add arch-cpu-1 test.
	* gas/testsuite/gas/m68k/arch-cpu-1.[sd]: New.

	* include/elf/m68k.h (EF_CPU32, EF_M68000, EF_CFV4E): Rename to ...
	(EF_M68K_CPU32, EF_M68K_M68000, EF_M68K_CFV4E): ... here.
	(EF_M68K_ISA_MASK, EF_M68K_ISA_A, EF_M68K_M68K_ISA_A_PLUS,
	EF_M68K_ISA_B, EF_M68K_HW_DIV, EF_M68K_MAC_MASK, EF_M68K_MAC,
	EF_M68K_EMAC, EF_M68K_USP, EF_M68K_FLOAT): New.

	* include/opcode/m68k.h (m68008, m68ec030, m68882): Remove.
	(m68k_mask): New.
	(cpu_m68k, cpu_cf): New.
	(mcf5200, mcf5206e, mcf521x, mcf5249, mcf528x, mcf5307, mcf5407,
	mcf5470, mcf5480): Rename to cpu_<foo>. Add m680x0 variants.

	* opcodes/m68k-dis.c (print_insn_m68k): Use
	bfd_m68k_mach_to_features.

	* binutils/readelf.c (get_machine_flags): Add logic for EF_M68K flags.
2006-02-07 19:01:10 +00:00
Alan Modra 189fca6ff3 daily update 2006-02-06 23:00:07 +00:00
Steve Ellcey 75eb734c5c * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS
if SHF_TLS is set.
2006-02-06 21:55:39 +00:00
Alan Modra d0acd46067 daily update 2006-02-05 23:00:04 +00:00
Arnold Metselaar 134dcee5bc Cleanup of pseudo-ops for constants and new def24,def32 pseudo-ops on z80 2006-02-05 11:57:35 +00:00
Alan Modra 2100da6cf6 daily update 2006-02-04 23:00:11 +00:00
Richard Sandiford 4005427f86 bfd/
* elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol
	has already been assigned a GOT index, copy that index to the
	current hash table entry.

ld/testsuite/
	* ld-mips-elf/tls-hidden2a.s, ld-mips-elf/tls-hidden2b.s,
	* ld/testsuite/ld-mips-elf/tls-hidden2.d,
	* ld/testsuite/ld-mips-elf/tls-hidden2-got.d: New test.
	* ld-mips-elf/mips-elf.exp: Run it.
2006-02-04 08:29:58 +00:00
Alan Modra 233b87d920 daily update 2006-02-03 23:00:08 +00:00
Alan Modra d6580db46a daily update 2006-02-02 23:00:05 +00:00
Alan Modra f37bc9f776 daily update 2006-02-01 23:00:07 +00:00
Eric Botcazou bb29dfeaa6 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
for call-to-undefweak reloc overflow.
2006-02-01 22:03:38 +00:00
Alan Modra f524510a16 daily update 2006-02-01 01:09:00 +00:00
Eric Botcazou dc669dc848 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
for 32-bit relocs overflow.
2006-01-31 22:42:21 +00:00
Alan Modra 00640d8023 daily update 2006-01-30 23:00:40 +00:00
Alan Modra 985ab7ae54 daily update 2006-01-29 23:00:06 +00:00
Alan Modra c68ea8e729 daily update 2006-01-28 23:00:06 +00:00
Alan Modra f378d620b6 daily update 2006-01-27 23:00:05 +00:00
Paul Brook 1a0eb69375 2006-01-27 Paul Brook <paul@codesourcery.com>
* elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb
	objects.
2006-01-27 14:11:43 +00:00
Alan Modra 8e2035baf8 daily update 2006-01-26 23:00:07 +00:00
Alan Modra 09f3a8ee4b daily update 2006-01-25 23:00:08 +00:00
Alan Modra 065cc494d9 daily update 2006-01-24 23:00:07 +00:00
Alan Modra 83f7ff2f0c daily update 2006-01-23 23:00:06 +00:00
Alan Modra 4956ac6878 daily update 2006-01-22 23:00:05 +00:00
Alan Modra 448c7aab59 daily update 2006-01-21 23:05:33 +00:00
Alan Modra 1bc5ac1d2a daily update 2006-01-20 23:00:05 +00:00
Alan Modra e10a73df8c daily update 2006-01-19 23:00:06 +00:00