Commit Graph

4830 Commits

Author SHA1 Message Date
Dmitry Diky 046aeb7490 2005-09-01 Dmitry Diky <diwil@spec.ru>
* elf32-msp430.c (msp430_elf_relax_delete_bytes): Do not adjust
	local symbols and move it to
	(msp430_elf_relax_adjust_locals): New function - walk over the
	sections in the bfd and adjust relocations as necessary.
2005-09-01 11:27:15 +00:00
Alan Modra fb64505451 daily update 2005-09-01 00:00:07 +00:00
DJ Delorie e81d3500e7 * elf32-i386.c (elf_i386_check_relocs): Don't cast a unary &
address operator, as that breaks GCC's strict aliasing rules.
(elf_i386_size_dynamic_sections): Avoid the need for type
punning.
* elf64-x86-64.c (elf_x86_64_check_relocs): Don't cast a unary
& address operator, as that breaks GCC's strict aliasing
rules.
(elf_x86_64_size_dynamic_sections): Avoid the need for type
punning.
2005-08-31 23:45:46 +00:00
Alan Modra 008a3b42a4 daily update 2005-08-31 00:00:07 +00:00
Nick Clifton e26f8bd9b4 (i[3-7]86-*-vxworks): Match vxworks* instead. 2005-08-30 16:06:00 +00:00
Alan Modra 67a0868099 daily update 2005-08-30 00:00:08 +00:00
H.J. Lu 1faab634be 2005-08-29 H.J. Lu <hongjiu.lu@intel.com>
PR ld/1247
	* elfxx-ia64.c (allocate_fptr): Check undefined symbol.
2005-08-29 22:25:04 +00:00
Nick Clifton c9adbffeea (_bfd_mips_elf_relocate_section): Initialise 'value' to avoid compile time
warning message.
2005-08-29 16:42:15 +00:00
Alan Modra b8399bbe63 daily update 2005-08-29 00:00:06 +00:00
Alan Modra d2463d35ea daily update 2005-08-28 00:00:06 +00:00
Alan Modra 72b8842ad4 daily update 2005-08-27 00:00:06 +00:00
Nick Clifton c0524131ea Re-enable GAS for z8k-coff 2005-08-26 09:47:49 +00:00
Alan Modra 98a7a8547e daily update 2005-08-26 00:00:10 +00:00
Kaz Kojima 4195f552a6 * elf32-sh.c (sh_elf_get_flags_from_mach): Fix off-by-one error. 2005-08-25 05:10:22 +00:00
H.J. Lu 843fe662b9 2005-08-24 H.J. Lu <hongjiu.lu@intel.com>
PR ld/1208
	* elf-hppa.h (elf_hppa_relocate_section): Print out the name
	of unresolvable relocation.
	* elf-m10300.c (mn10300_elf_relocate_section): Likewise.
	* elf32-arm.c (elf32_arm_relocate_section): Likewise.
	* elf32-i386.c (elf_i386_relocate_section): Likewise.
	* elf32-m32r.c (m32r_elf_relocate_section): Likewise.
	* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
	* elf32-s390.c (elf_s390_relocate_section): Likewise.
	* elf32-sh.c (sh_elf_relocate_section): Likewise.
	* elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
	* elf64-s390.c (elf_s390_relocate_section): Likewise.
	* elf64-sh64.c (sh_elf64_relocate_section): Likewise.
	* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
	* elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
2005-08-25 02:32:11 +00:00
Alan Modra 6607c08f52 daily update 2005-08-25 00:00:06 +00:00
Alan Modra 2ab8ab5e51 daily update 2005-08-24 00:00:06 +00:00
Alan Modra f7159c5302 daily update 2005-08-23 00:00:08 +00:00
Alan Modra 674f455cd3 daily update 2005-08-22 00:00:05 +00:00
Alan Modra e764ed5ba9 daily update 2005-08-21 00:00:07 +00:00
Alan Modra 098d57044a daily update 2005-08-20 00:00:07 +00:00
Alan Modra e2f6640431 daily update 2005-08-19 00:00:07 +00:00
Kaz Kojima 1cddf1366e * config.bfd: Add bfd_elf32_shnbsd_vec and bfd_elf32_shlnbsd_vec
to targ_selvecs for sh5*-*-netbsd* and sh64*-*-netbsd*.
2005-08-18 11:06:58 +00:00
Alan Modra 848cf006a0 Remove a29k files. 2005-08-18 03:59:24 +00:00
Alan Modra c17ae8a24e Remove a29k support. 2005-08-18 03:51:51 +00:00
Alan Modra 909272ee76 * elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Warn on
zero size dynamic variables.
	* elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise.
	* elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise.
	* elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
	* elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise.
	* elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise.
	* elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise.
	* elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
	* elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
	* elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
	* elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise.
	* elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise.
	* elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
	* elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
	* elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise.
	* elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
	* elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
2005-08-18 01:28:26 +00:00
Alan Modra 11bcca22f4 daily update 2005-08-18 00:00:09 +00:00
H.J. Lu bc79cded48 bfd/
2005-08-17  H.J. Lu  <hongjiu.lu@intel.com>

	PR binutils/1179
	* dwarf2.c (_bfd_dwarf2_find_nearest_line): Use section lma
	instead of vma.
	(_bfd_dwarf2_find_line): Likewise.

binutils/

2005-08-17  H.J. Lu  <hongjiu.lu@intel.com>

	PR binutils/1179
	* objdump.c (disassemble_bytes): Don't adjust
	adjust_section_vma.
	(adjust_addresses): Don't adjust vma for debugging section.
	Adjust lma only for relocatable files.
	(dump_bfd): Tell adjust_addresses if it is a relocatable file.
2005-08-17 14:28:01 +00:00
Alan Modra 46fda84e78 * elf64-mmix.c (mmix_elf_add_symbol_hook): Mark reg section
SEC_LINKER_CREATED.
	(mmix_elf_final_link): Check that section hasn't already been
	removed before removing.
	* mmo.c (mmo_scan): Mark reg contents section SEC_LINKER_CREATED.
	(mmo_canonicalize_symtab): Likewise for reg section.
2005-08-17 13:29:55 +00:00
Alan Modra 8d1d654fb4 bfd/
* elf32-cris.c (elf_cris_adjust_gotplt_to_got): Move assert later.
	* elfxx-mips.c (_bfd_mips_elf_hide_symbol): Cope with being called
	without any got section.

ld/testsuite/
	* ld-alpha/tlsbin.rd: Update.
	* ld-alpha/tlsbinr.rd: Update.
	* ld-cris/locref1.d: Update.
	* ld-cris/locref2.d: Update.
	* ld-i386/tlsbin.rd: Update.
	* ld-ia64/tlsbin.rd: Update.
	* ld-powerpc/tlsexe.r: Update.
	* ld-powerpc/tlsexe32.r: Update.
	* ld-powerpc/tlsexetoc.r: Update.
	* ld-s390/tlsbin.rd: Update.
	* ld-s390/tlsbin_64.rd: Update.
	* ld-sparc/tlssunbin32.rd: Update.
	* ld-sparc/tlssunbin64.rd: Update.
	* ld-x86-64/tlsbin.rd: Update.
2005-08-17 10:04:33 +00:00
Danny Smith 27198fa9f3 bfd
* cofflink.c (_bfd_coff_generic_relocate_section): Correct
	comment.

gas
	* config/obj-coff.c (obj_coff_weak): Set auxiliary record
	of NT weak externals to IMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY.
2005-08-17 08:58:01 +00:00
Alan Modra ccabcbe51e * elflink.c (_bfd_elf_define_linkage_sym): Don't call
bfd_elf_link_record_dynamic_symbol.  Call elf_backend_hide_symbol.
	(_bfd_elf_link_renumber_dynsyms): Formatting.
	(struct elf_gc_sweep_symbol_info): New.
	(elf_gc_sweep_symbol): Rewrite.
	(elf_gc_sweep): Adjust params and elf_gc_sweep_symbol call.
	Call _bfd_elf_link_renumber_dynsyms.
	(bfd_elf_gc_sections): Adjust elf_gc_sweep call.
2005-08-17 03:07:12 +00:00
Alan Modra 71cead0b39 daily update 2005-08-17 00:00:06 +00:00
Alan Modra 18d944df00 * elf64-ppc.c (ppc64_elf_edit_opd): Don't call dec_dynrel_count
when relocatable.
2005-08-16 10:13:43 +00:00
Alan Modra 062dbb07ed daily update 2005-08-16 00:00:09 +00:00
Bob Wilson 4af0a1d8b6 * elf32-xtensa.c (ELF_MACHINE_CODE, ELF_MACHINE_ALT1): Swap values
of EM_XTENSA and EM_XTENSA_OLD.
2005-08-15 18:17:12 +00:00
Alan Modra d98685ac81 * elf-bfd.h (_bfd_elf_define_linkage_sym): Declare.
* elflink.c (_bfd_elf_define_linkage_sym): New function, extracted
	from..
	(_bfd_elf_create_got_section): ..here.
	(_bfd_elf_link_create_dynamic_sections): Call it for _DYNAMIC.
	(_bfd_elf_create_dynamic_sections): ..and _PROCEDURE_LINKAGE_TABLE_.
	* elf-m10300.c (_bfd_mn10300_elf_create_got_section): Use
	_bfd_elf_define_linkage_sym.
	* elf32-frv.c (_frv_create_got_section): Likewise.
	* elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise.
2005-08-15 15:39:08 +00:00
Paul Brook ce490eda4b 2005-08-15 Paul Brook <paul@codesourcery.com>
* elf32-arm.c (elf32_arm_howto_table_1): Make R_ARM_PLT32 the same as
	R_ARM_PC24.
2005-08-15 15:01:39 +00:00
Alan Modra 93165da9a0 daily update 2005-08-15 00:00:06 +00:00
Dave Anglin 4fc35ca996 PR ld/1135
* elf64-hppa.c (elf64_hppa_special_sections): Add flag definitions for
	.plt, .dlt, .sdata, .sbss and .tbss.
2005-08-14 01:01:32 +00:00
Alan Modra d8838a3081 daily update 2005-08-14 00:00:07 +00:00
Alan Modra a8675883eb daily update 2005-08-13 00:00:07 +00:00
Dmitry Diky fa9ee72b80 2005-08-12 Dmitry Diky <diwil@spec.ru>
* elf32-msp430.c (msp430_elf_relax_delete_bytes): Adjust relocations
	referenced by .section + DISPLACEMENT.
2005-08-12 11:45:26 +00:00
Alan Modra e1f5fb0423 daily update 2005-08-12 00:00:08 +00:00
Alan Modra 2618d7d719 daily update 2005-08-11 00:00:09 +00:00
Jim Wilson 98b880f44f Fix linker error found when compiling glibc with a mismatched gcc.
* dwarf2.c (scan_unit_for_symbols, case DT_AT_location): Verify that
DW_OP_addr is only opcode in location before using it.
2005-08-10 23:33:39 +00:00
H.J. Lu a38a2e96b0 2005-08-09 H.J. Lu <hongjiu.lu@intel.com>
* elfxx-ia64.c (elfNN_ia64_final_link): Reset gp.
2005-08-10 04:32:49 +00:00
Alan Modra 91c74f248c daily update 2005-08-10 00:00:09 +00:00
Nick Clifton 3260c64dd2 Oops - omitted by accident from the previous msp430 patch 2005-08-09 08:57:34 +00:00
Nick Clifton fd6212e6f1 (xcoff64_core_p): Constify return_value variable. Also, do not use core_hdr
macro as it evaluates to a cast of an lvalue which is no longer supported by
GCC 4.0.
2005-08-09 08:56:36 +00:00