aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2002-10-14 * Makefile.in: Regenerate.Alan Modra2-5/+7
2002-10-14 * Makefile.am: Run "make dep-am".Alan Modra11-273/+285
(BFD_H_FILES): Remove version.h. * bfd-in.h (BFD_VERSION, BFD_VERSION_DATE, BFD_VERSION_STRING): Move.. * version.h: ..to here. * configure.in (bfd_version_date): Remove. (AC_OUTPUT): Make bfdver.h from version.h. * bfd.c: #include "bfdver.h". * vms-hdr.c: Likewise. * Makefile.in: Regenerate. * bfd-in2.h: Regenerate. * configure: Regenerate. * po/SRC-POTFILES.in: Regenerate.
2002-10-14 * archures.c (bfd_mach_i386_i386, bfd_mach_i386_i8086,Alan Modra3-50/+63
bfd_mach_i386_i386_intel_syntax, bfd_mach_x86_64, bfd_mach_x86_64_intel_syntax bfd_mach_ppc, bfd_mach_ppc64, bfd_mach_rs6k, bfd_mach_d10v, bfd_mach_sh, bfd_mach_v850, bfd_mach_arc_5, bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8, bfd_mach_m32r, bfd_mach_frv, bfd_mach_frvsimple, bfd_mach_ia64_elf64, bfd_mach_ia64_elf32, bfd_mach_ip2022, bfd_mach_ip2022ext, bfd_mach_s390_31, bfd_mach_s390_64, bfd_mach_xstormy16): Renumber. * bfd-in2.h: Regenerate.
2002-10-14 * config.bfd (sh*eb-*-linux*, sh*-*-linux*): Add the alternativeKaz Kojima2-0/+7
endian vector to targ_selvecs.
2002-10-14daily updateAlan Modra1-1/+1
2002-10-13* elfxx-mips.c (mips_elf_calculate_relocation): TakeAlexandre Oliva2-9/+34
save_addend argument. Don't apply the 32-bit mask to a GPREL32 value if it's to be used in another relocation. Don't use forced-check computation of local_p to decide whether to add gp0 to GPREL16 value. Don't use only the lowest 16 bits of the addend of a non-in-place GPREL16 relocation. (_bfd_mips_elf_relocate_section): Pass use_saved_addend_p to mips_elf_calculate_relocation().
2002-10-13daily updateAlan Modra1-1/+1
2002-10-12 * elf32-m68hc11.c (m68hc11_elf_relax_section): Don't treat relocsStephane Carrez2-6/+45
with symbols in other sections if we relaxed something; the sections output offsets must be re-computed before.
2002-10-12 * elf32-m68hc11.c (m68hc11_elf_relax_section): Update symbolsStephane Carrez2-70/+35
handling to use Elf_Internal_Sym. (m68hc11_elf_relax_delete_bytes): Likewise.
2002-10-12daily updateAlan Modra1-1/+1
2002-10-11 * elf32-sh.c (sh_elf_optimized_tls_reloc, sh_elf_mkobject,Kaz Kojima3-26/+959
sh_elf_object_p, dtpoff_base): New functions. (sh_elf_howto_table): Add TLS relocs. (sh_reloc_map): Likewise. (sh_elf_info_to_howto): Support TLS relocs. (elf_sh_link_hash_entry): Add tls_type and tls_tpoff32. (sh_elf_hash_entry, sh_elf_tdata, sh_elf_local_got_tls_type): New macros. (sh_elf_obj_tdata): New. (elf_sh_link_hash_table): Add tls_ldm_got. (sh_elf_link_hash_table_create): Clear refcount of tls_ldm_got. (allocate_dynrelocs): Support TLS relocs. (sh_elf_size_dynamic_sections): Likewise. (sh_elf_relocate_section): Support TLS relocs. Don't try to find .rela.got section when found already. Return false after printing error about unresolvable relocation. (sh_elf_gc_sweep_hook): Support TLS relocs. (sh_elf_check_relocs): Likewise. (sh_elf_finish_dynamic_symbol): Likewise. (bfd_elf32_mkobject, elf_backend_object_p): Define for TLS case. * reloc.c: Add SH TLS relocs. * libbfd.h: Regenerate.
2002-10-11 * bfd-in2.h: Regenerate.Kaz Kojima2-0/+33
2002-10-11 * Makefile.am: Run dep-am.Daniel Jacobowitz5-9/+199
(BFD32_LIBS): Add simple.lo. (BFD32_LIBS_CFILES): Add simple.c. * Makefile.in: Regenerated. * bfd-in2.h: Regenerated. * simple.c: New file.
2002-10-11 * Makefile.am (BFD_H_DEP): Add simple.c and linker.c.Daniel Jacobowitz3-4/+13
* Makefile.in: Regenerated.
2002-10-11 * elf64-ppc.c (edit_opd): Correct local sym adjustment.Alan Modra2-3/+2
2002-10-11Fix numerous occurrences ofAlan Modra16-135/+179
warning: dereferencing type-punned pointer will break strict-aliasing rules
2002-10-11 * elf64-ppc.c (edit_opd): Only zero opd syms when function isAlan Modra2-1/+6
completely removed.
2002-10-11daily updateAlan Modra1-1/+1
2002-10-10* elf32-sh.c (elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):Stephen Clarke3-4/+11
Correct mistake in calculation of address of .got. * elf64-sh64.c (elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le): Likewise.
2002-10-10daily updateAlan Modra1-1/+1
2002-10-09* Makefile.am: Add entries for elf32-sh64-lin.c andStephen Clarke9-4/+116
elf64-sh64-lin.c. Regenerate. * Makefile.in: Regenerate. * config.bfd: Change sh64eb-*-linux* and sh64-*-linux* to use sh64 vectors rather than sh vectors. * configure.in: Add bfd_elf32_sh64lin_vec, bfd_elf32_sh64blin_vec, bfd_elf64_sh64lin_vec, bfd_elf64_sh64blin_vec. * configure: Regenerate. * elf32-sh64-lin.c: New file. * elf64-sh64-lin.c: New file. * targets.c: Add bfd_elf32_sh64lin_vec, bfd_elf32_sh64blin_vec, bfd_elf64_sh64lin_vec, bfd_elf64_sh64blin_vec.
2002-10-09daily updateAlan Modra1-1/+1
2002-10-082002-10-08 H.J. Lu <hjl@gnu.org>H.J. Lu2-23/+32
* elf32-i386.c (elf_i386_relocate_section): Re-arrange the IE->LE transition for R_386_TLS_IE.
2002-10-08 * elf64-ppc.c (edit_opd): Correct test for discarded sections.Alan Modra2-26/+36
2002-10-08daily updateAlan Modra1-1/+1
2002-10-07Don't mark relocations in excluded sections.Nick Clifton2-0/+7
2002-10-07 * elflink.h (elf_link_input_bfd): Remove BFD_VERSION_DATE dependentAlan Modra2-16/+3
code.
2002-10-07 * elf64-ppc.c (ppc64_elf_build_stubs): Increment .glink indx.Alan Modra2-0/+5
2002-10-07daily updateAlan Modra1-1/+1
2002-10-06 * opncls.c: Formatting.Alan Modra2-34/+41
(_bfd_new_bfd): Use a smaller section hash table.
2002-10-06daily updateAlan Modra1-1/+1
2002-10-05* elfxx-mips.c (mips_elf_create_dynamic_relocation): Set the typeAlexandre Oliva2-0/+9
of the other two relocations packed with a REL32 to NONE.
2002-10-05daily updateAlan Modra1-1/+1
2002-10-04daily updateAlan Modra1-1/+1
2002-10-03daily updateAlan Modra1-1/+1
2002-10-02* elf32-sh.c (elf_sh_link_hash_entry): Add gotplt_refcount.Stephen Clarke2-4/+39
(sh_elf_link_hash_newfunc): Initialize it. (allocate_dynrelocs): Transfer gotplt refs from plt.refcount to got.refcount for symbols that are forced local or when we have direct got refs. (sh_elf_gc_sweep_hook): Adjust gotplt_refcount. Use it to correctly adjust got.refcount and plt.refcount. (sh_elf_copy_indirect_symbol): Copy gotplt_refcount across. (sh_elf_check_relocs): Increment gotplt_refcount.
2002-10-02daily updateAlan Modra1-1/+1
2002-10-01bfd/Jakub Jelinek2-1/+6
* elf32-i386.c (elf_i386_relocate_section): Fix movl foo@indntpoff, %eax IE->LE transition. ld/testsuite/ * ld-i386/i386.exp: Add tlsindntpoff test. * ld-i386/tlsindntpoff.s: New test. * ld-i386/tlsindntpoff.dd: New test.
2002-10-01bfd/Jakub Jelinek2-27/+34
* elf64-x86-64.c (elf64_x86_64_relocate_section): Change TLSGD sequence and its transitions. ld/testsuite/ * ld-x86-64/tlspic1.s: Change TLSGD sequences. * ld-x86-64/tlsbinpic.s: Likewise. * ld-x86-64/tlspic.dd: Adjust.
2002-10-01bfd/Jakub Jelinek3-2/+9
* elf32-i386.c (elf_i386_relocate_section): Resolve R_386_TLS_LDO_32 to st_value + addend in non-code sections. * elf64-x86-64.c (elf64_x86_64_relocate_section): Resolve R_X86_64_DTPOFF32 to st_value + addend in non-code sections. ld/testsuite/ * ld-i386/i386.exp: Add tlsg test. * ld-i386/tlsg.s: New test. * ld-i386/tlsg.sd: New test. * ld-i386/tlsbin.dd: Change LD into LD -> LE in comments. * ld-i386/tlsbinpic.s: Likewise. * ld-x86-64/x86-64.exp: Add tlsg test. * ld-x86-64/tlsg.s: New test. * ld-x86-64/tlsg.sd: New test. * ld-x86-64/tlsbin.dd: Change LD into LD -> LE in comments. * ld-x86-64/tlsbinpic.s: Likewise.
2002-10-01daily updateAlan Modra1-1/+1
2002-09-30[include/elf]Richard Sandiford5-6/+81
* mips.h (E_MIPS_MACH_4120, E_MIPS_MACH_5400, E_MIPS_MACH_5500): New. [bfd/] * archures.c (bfd_mach_mips4120, bfd_mach_mips5400): New. (bfd_mach_mips5500): New. * cpu-mips.c (I_mips4120, I_mips5400, I_mips5500): New. (arch_info_struct): Add corresponding entries here. * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_4120, E_MIPS_MACH_5400 and E_MIPS_MACH_5500. (_bfd_mips_elf_final_write_processing): Handle bfd_mach_mips4120, bfd_mach_mips5400 and bfd_mach_mips5500. (_bfd_mips_elf_mach_extends_p): New function. (_bfd_mips_elf_merge_private_bfd_data): Use it to help merge the EF_MIPS_MACH flags. * bfd-in2.h: Regenerate.
2002-09-30daily updateAlan Modra1-1/+1
2002-09-29daily updateAlan Modra1-1/+1
2002-09-28* elf32-vax.c (elf_vax_size_dynamic_section): Don't stripJason Thorpe2-10/+6
.got sections.
2002-09-28 * elf.c (map_sections_to_segments): Correct test for start ofAlan Modra2-2/+8
writable section in the same page as end of read-only section.
2002-09-28daily updateAlan Modra1-1/+1
2002-09-27* elf32-vax.c (elf_vax_check_relocs): Remove unusedJason Thorpe2-72/+104
local_got_refcounts usage. Remove allocation of got slot. (elf_vax_gc_sweep_hook): Remove unused local_got_refcounts usage. Remove de-allocation of got slot. (elf_vax_size_dynamic_section): Fix some indentation. Add hash traversal for elf_vax_instantiate_got_entries. Allow empty .got sections to be GC'ed. (elf_vax_instantiate_got_entries): New function. (elf_vax_relocate_section): Simplify R_VAX_GOT32 handling. Remove tests that are now handled by elf_vax_instantiate_got_entries. Assert GOT entry falls within .got section size. Remove redundant comparisions. Fix comments.
2002-09-27bfd/Jakub Jelinek6-49/+693
* reloc.c: Add x86-64 TLS relocs. * bfd-in2.h, libbfd.h: Rebuilt. * elf64-x86-64.c (x86_64_elf_howto): Fix size fields for 32-bit relocs. Add TLS relocs. (x86_64_reloc_map): Add TLS relocs. (elf64_x86_64_info_to_howto): Adjust for added TLS relocs. (struct elf64_x86_64_link_hash_entry): Add tls_type field. (GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD, GOT_TLS_IE): Define. (elf64_x86_64_hash_entry): Define. (struct elf64_x86_64_obj_tdata): New. (elf64_x86_64_tdata, elf64_x86_64_local_got_tls_type): Define. (struct elf64_x86_64_link_hash_table): Add tls_ld_got. (link_hash_newfunc): Initialize tls_type. (elf64_x86_64_link_hash_table_create): Initialize tls_ld_got. (elf64_x86_64_copy_indirect_symbol): Swap tls_type if necessary. (elf64_x86_64_mkobject): New. (elf64_x86_64_elf_object_p): Allocate struct elf64_x86_64_obj_tdata. (elf64_x86_64_tls_transition): New. (elf64_x86_64_check_relocs): Add r_type variable and use it. Handle TLS relocs. (elf64_x86_64_gc_sweep_hook): Handle TLS relocs. (allocate_dynrelocs): Allocate GOT space for TLS relocs. (elf64_x86_64_size_dynamic_sections): Likewise. (dtpoff_base, tpoff): New. (elf64_x86_64_relocate_section): Handle TLS relocs. (elf64_x86_64_finish_dynamic_symbol): Only handle non-TLS GOT entries. (bfd_elf64_mkobject): Define. * elf32-i386.c (elf_i386_check_relocs) [R_386_TLS_LE]: Set DF_STATIC_TLS if shared. gas/ * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs. Define them if not BFD_ASSEMBLER. (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add @tlsld. (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD, BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF. (tc_gen_reloc): Handle x86-64 TLS relocs. include/ * elf/x86-64.h: Add TLS relocs. ld/testsuite/ * lib/ld-lib.exp (run_ld_link_tests): Add. * ld-sh/sh64/sh64.exp (run_ld_link_tests, regexp_diff, file_contents): Remove. (sh64tests): Add 6th field to the tests array. * ld-i386/i386.exp (run_ld_link_tests): Remove. * ld-x86-64/x86-64.exp: New. * ld-x86-64/tlsbin.dd: New test. * ld-x86-64/tlsbinpic.s: New test. * ld-x86-64/tlsbin.rd: New test. * ld-x86-64/tlsbin.s: New test. * ld-x86-64/tlsbin.sd: New test. * ld-x86-64/tlsbin.td: New test. * ld-x86-64/tlslib.s: New test. * ld-x86-64/tlspic1.s: New test. * ld-x86-64/tlspic2.s: New test. * ld-x86-64/tlspic.dd: New test. * ld-x86-64/tlspic.rd: New test. * ld-x86-64/tlspic.sd: New test. * ld-x86-64/tlspic.td: New test.
2002-09-27daily updateAlan Modra1-1/+1