summaryrefslogtreecommitdiffstats
path: root/bfd
Commit message (Collapse)AuthorAgeFilesLines
* * Makefile.am: Run "make dep-am".Alan Modra2002-10-1411-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.
* * archures.c (bfd_mach_i386_i386, bfd_mach_i386_i8086,Alan Modra2002-10-143-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.
* * config.bfd (sh*eb-*-linux*, sh*-*-linux*): Add the alternativeKaz Kojima2002-10-142-0/+7
| | | | endian vector to targ_selvecs.
* daily updateAlan Modra2002-10-141-1/+1
|
* * elfxx-mips.c (mips_elf_calculate_relocation): TakeAlexandre Oliva2002-10-132-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().
* daily updateAlan Modra2002-10-131-1/+1
|
* * elf32-m68hc11.c (m68hc11_elf_relax_section): Don't treat relocsStephane Carrez2002-10-122-6/+45
| | | | | with symbols in other sections if we relaxed something; the sections output offsets must be re-computed before.
* * elf32-m68hc11.c (m68hc11_elf_relax_section): Update symbolsStephane Carrez2002-10-122-70/+35
| | | | | handling to use Elf_Internal_Sym. (m68hc11_elf_relax_delete_bytes): Likewise.
* daily updateAlan Modra2002-10-121-1/+1
|
* * elf32-sh.c (sh_elf_optimized_tls_reloc, sh_elf_mkobject,Kaz Kojima2002-10-113-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.
* * bfd-in2.h: Regenerate.Kaz Kojima2002-10-112-0/+33
|
* * Makefile.am: Run dep-am.Daniel Jacobowitz2002-10-115-9/+199
| | | | | | | | (BFD32_LIBS): Add simple.lo. (BFD32_LIBS_CFILES): Add simple.c. * Makefile.in: Regenerated. * bfd-in2.h: Regenerated. * simple.c: New file.
* * Makefile.am (BFD_H_DEP): Add simple.c and linker.c.Daniel Jacobowitz2002-10-113-4/+13
| | | | * Makefile.in: Regenerated.
* * elf64-ppc.c (edit_opd): Correct local sym adjustment.Alan Modra2002-10-112-3/+2
|
* Fix numerous occurrences ofAlan Modra2002-10-1116-135/+179
| | | | warning: dereferencing type-punned pointer will break strict-aliasing rules
* * elf64-ppc.c (edit_opd): Only zero opd syms when function isAlan Modra2002-10-112-1/+6
| | | | completely removed.
* daily updateAlan Modra2002-10-111-1/+1
|
* * elf32-sh.c (elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):Stephen Clarke2002-10-103-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.
* daily updateAlan Modra2002-10-101-1/+1
|
* * Makefile.am: Add entries for elf32-sh64-lin.c andStephen Clarke2002-10-099-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.
* daily updateAlan Modra2002-10-091-1/+1
|
* 2002-10-08 H.J. Lu <hjl@gnu.org>H.J. Lu2002-10-082-23/+32
| | | | | * elf32-i386.c (elf_i386_relocate_section): Re-arrange the IE->LE transition for R_386_TLS_IE.
* * elf64-ppc.c (edit_opd): Correct test for discarded sections.Alan Modra2002-10-082-26/+36
|
* daily updateAlan Modra2002-10-081-1/+1
|
* Don't mark relocations in excluded sections.Nick Clifton2002-10-072-0/+7
|
* * elflink.h (elf_link_input_bfd): Remove BFD_VERSION_DATE dependentAlan Modra2002-10-072-16/+3
| | | | code.
* * elf64-ppc.c (ppc64_elf_build_stubs): Increment .glink indx.Alan Modra2002-10-072-0/+5
|
* daily updateAlan Modra2002-10-071-1/+1
|
* * opncls.c: Formatting.Alan Modra2002-10-062-34/+41
| | | | (_bfd_new_bfd): Use a smaller section hash table.
* daily updateAlan Modra2002-10-061-1/+1
|
* * elfxx-mips.c (mips_elf_create_dynamic_relocation): Set the typeAlexandre Oliva2002-10-052-0/+9
| | | | of the other two relocations packed with a REL32 to NONE.
* daily updateAlan Modra2002-10-051-1/+1
|
* daily updateAlan Modra2002-10-041-1/+1
|
* daily updateAlan Modra2002-10-031-1/+1
|
* * elf32-sh.c (elf_sh_link_hash_entry): Add gotplt_refcount.Stephen Clarke2002-10-022-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.
* daily updateAlan Modra2002-10-021-1/+1
|
* bfd/Jakub Jelinek2002-10-012-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.
* bfd/Jakub Jelinek2002-10-012-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.
* bfd/Jakub Jelinek2002-10-013-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.
* daily updateAlan Modra2002-10-011-1/+1
|
* [include/elf]Richard Sandiford2002-09-305-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.
* daily updateAlan Modra2002-09-301-1/+1
|
* daily updateAlan Modra2002-09-291-1/+1
|
* * elf32-vax.c (elf_vax_size_dynamic_section): Don't stripJason Thorpe2002-09-282-10/+6
| | | | .got sections.
* * elf.c (map_sections_to_segments): Correct test for start ofAlan Modra2002-09-282-2/+8
| | | | writable section in the same page as end of read-only section.
* daily updateAlan Modra2002-09-281-1/+1
|
* * elf32-vax.c (elf_vax_check_relocs): Remove unusedJason Thorpe2002-09-272-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.
* bfd/Jakub Jelinek2002-09-276-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.
* daily updateAlan Modra2002-09-271-1/+1
|
* * elfxx-mips.c (_bfd_mips_elf_fake_sections): Don't emit unneededThiemo Seufer2002-09-262-1/+6
| | | | empty relocation sections.
OpenPOWER on IntegriCloud