summaryrefslogtreecommitdiff
path: root/bfd
Commit message (Collapse)AuthorAgeFilesLines
* (_bfd_dwarf2_find_nearest_line): If address length is zero, set it to 8 forNick Clifton2002-09-202-0/+13
| | | | (non-standard) 64-bit DWARF2 formats (e.g. IRIX64).
* 2002-09-19 Jakub Jelinek <jakub@redhat.com>H.J. Lu2002-09-202-8/+23
| | | | | | | | * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Clear .got word even if generating R_PPC_RELATIVE reloc. (ppc_elf_relocate_section): Make sure relocation is performed if skip == -2. Clear memory at r_offset when creating dynamic relocation.
* daily updateAlan Modra2002-09-201-1/+1
|
* bfd/Jakub Jelinek2002-09-195-75/+334
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * reloc.c (BFD_RELOC_386_TLS_TPOFF, BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Add. * bfd-in2.h, libbfd.h: Rebuilt. * elf32-i386.c (elf_howto_table): Add R_386_TLS_TPOFF, R_386_TLS_IE and R_386_TLS_GOTIE. (elf_i386_reloc_type_lookup): Handle it. (struct elf_i386_link_hash_entry): Change tls_type type to unsigned char instead of enum, change GOT_* into defines. (GOT_TLS_IE_POS, GOT_TLS_IE_NEG, GOT_TLS_IE_BOTH): Define. (elf_i386_tls_transition): Handle R_386_TLS_IE and R_386_TLS_GOTIE. (elf_i386_check_relocs): Likewise. Avoid crash if local symbol is accessed both as normal and TLS symbol. Move R_386_TLS_LDM and R_386_PLT32 cases so that R_386_TLS_IE can fall through. Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs. (elf_i386_gc_sweep_hook): Handle R_386_TLS_IE and R_386_TLS_GOTIE. Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs. (allocate_dynrelocs): Allocate 2 .got and 2 .rel.got entries if tls_type is GOT_TLS_IE_BOTH. (elf_i386_size_dynamic_sections): Likewise. (elf_i386_relocate_section): Handle R_386_TLS_IE and R_386_TLS_GOTIE. Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs. (elf_i386_finish_dynamic_symbol): Use tls_type & GOT_TLS_IE to catch all 4 GOT_TLS_* TLS types. gas/ * config/tc-i386.c (tc_i386_fix_adjustable): Handle BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE. (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0 if not defined. (lex_got): Handle @GOTNTPOFF and @INDNTPOFF. (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE. gas/testsuite/ * gas/i386/tlspic.s: Add tests. * gas/i386/tlspic.d: Regenerated. * gas/i386/tlsnopic.s: Add tests. * gas/i386/tlsnopic.d: Regenerated. include/ * elf/i386.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE): Define. ld/testsuite/ * ld-i386/i386.exp: New. * ld-i386/tlsbin.dd: New test. * ld-i386/tlsbinpic.s: New test. * ld-i386/tlsbin.rd: New test. * ld-i386/tlsbin.s: New test. * ld-i386/tlsbin.sd: New test. * ld-i386/tlsbin.td: New test. * ld-i386/tlslib.s: New test. * ld-i386/tlsnopic1.s: New test. * ld-i386/tlsnopic2.s: New test. * ld-i386/tlsnopic.dd: New test. * ld-i386/tlsnopic.rd: New test. * ld-i386/tlsnopic.sd: New test. * ld-i386/tlspic1.s: New test. * ld-i386/tlspic2.s: New test. * ld-i386/tlspic.dd: New test. * ld-i386/tlspic.rd: New test. * ld-i386/tlspic.sd: New test. * ld-i386/tlspic.td: New test.
* When examining weak symbols, follow indirect links.Nick Clifton2002-09-192-1/+9
|
* Fix error reading ECOFF information: 'ioptMax' refers to the actual *size*Nick Clifton2002-09-192-1/+6
| | | | of the optimization symtab, not the number of entries.
* Update to correctly sign-extend 32-bit ECOFF null values (0xffffffff, -1)Nick Clifton2002-09-192-104/+140
|
* (elf32_arm_adjust_dynamic_symbol): Update ELF_LINK_HASH_NEEDS_PLT logic.Nick Clifton2002-09-192-6/+17
|
* Fix the ChangeLog entry for my last commit.Jakub Jelinek2002-09-191-1/+2
|
* daily updateAlan Modra2002-09-191-1/+1
|
* * elf64-mips.c (mips_elf64_be_swap_reloca_out): Handle type2 and type3.Stan Cox2002-09-181-2/+2
|
* * elfcode.h (elf_slurp_reloc_table_from_section): CheckDaniel Jacobowitz2002-09-182-1/+12
| | | | correct relocation count.
* * bfd-in.h (bfd_get_dynamic_symcount): Define.Daniel Jacobowitz2002-09-186-2/+32
| | | | | | | | | * bfd.c (struct _bfd): Add dynsymcount. * bfd-in2.h: Regenerated. * elf.c (_bfd_elf_canonicalize_dynamic_symtab): Set abfd->dynsymcount. * elfcode.h (elf_slurp_reloc_table_from_section): Check for overflow.
* * elf64-mips.c (mips_elf64_be_swap_reloca_out): Handle type2 and type3.Stan Cox2002-09-184-4/+17
| | | | | | | (mips_elf64_final_gp): Don't make up gp value. * elfn32-mips.c (mips_elf_final_gp): Likewise. * elfxx-mips.c (_bfd_mips_elf_final_link): Always create .MIPS.options/.options section.
* daily updateAlan Modra2002-09-181-1/+1
|
* 2002-09-17 David O'Brien <obrien@FreeBSD.org>David O'Brien2002-09-173-16/+20
| | | | | | | | | * elf32-i386-fbsd.c: Always label using the EI_OSABI method. It is benign for FreeBSD < 4.1. Minor reformatting. * elf64-alpha-fbsd.c: Likewise. Approved by: Alan Modra <amodra@bigpond.net.au> Message-ID: <20020917182339.B14457@bubble.sa.bigpond.net.au>
* * elf_i386_relocate_section (R_386_TLS_TPOFF32): Negate addend.Jakub Jelinek2002-09-172-1/+5
|
* * coff-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.Alan Modra2002-09-172-5/+25
| | | | * cpu-tic4x.c: Ditto.
* * elf64-alpha.c (alpha_elf_size_info): Make static.Alan Modra2002-09-172-1/+5
|
* * coff-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.Alan Modra2002-09-171-1/+5
| | | | * cpu-tic4x.c: Ditto.
* * elf64-mips.c (define elf_backend_ignore_discarded_relocs): RemoveThiemo Seufer2002-09-172-2/+5
| | | | duplicate define.
* 2002-09-16 Bruno Haible <bruno@clisp.org>David O'Brien2002-09-179-2/+174
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * elf32-i386.c: Don't defined ELF_ARCH etc. if this file is included by a target variant implementation. * elf64-alpha.c: Likewise. * elf32-i386-fbsd.c: New file. * elf64-alpha-fbsd.c: New file. * targets.c: Support bfd_elf32_i386_freebsd_vec and bfd_elf64_alpha_freebsd_vec. * configure.in: Accept the vectors bfd_elf32_i386_freebsd_vec, bfd_elf64_alpha_freebsd_vec. * Makefile.am (BFD32_BACKENDS): Add elf32-i386-fbsd.lo. (BFD32_BACKENDS_CFILES): Add elf32-i386-fbsd.c. (BFD64_BACKENDS): Add elf64-alpha-fbsd.lo. (BFD64_BACKENDS_CFILES): Add elf64-alpha-fbsd.c. (elf32-i386-fbsd.lo, elf64-alpha-fbsd.lo): Add dependencies. * config.bfd: For FreeBSD targets, set targ_defvec to a FreeBSD specific targets. Define OLD_FREEBSD_ABI_LABEL if appropriate. * config/tc-i386.h (ELF_TARGET_FORMAT): New macro. (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386". * config/tc-i386.c (i386_target_format): Likewise. * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro. (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha". * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to elf32-i386-freebsd. * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to elf64-alpha-freebsd. Approved by: Alan Modra <amodra@bigpond.net.au> Message-ID: <20020715021113.GJ30362@bubble.sa.bigpond.net.au>
* daily updateAlan Modra2002-09-171-1/+1
|
* daily updateAlan Modra2002-09-161-1/+1
|
* daily updateAlan Modra2002-09-151-1/+1
|
* daily updateAlan Modra2002-09-141-1/+1
|
* daily updateAlan Modra2002-09-131-1/+1
|
* * elf32-i386.c (dtpoff_base, tpoff): Don't crash if tls_segment isJakub Jelinek2002-09-122-8/+22
| | | | | | NULL. (elf_i386_relocate_section): Return false after printing error about unresolvable relocation.
* Fix handling of R_ARM_THM_PC11Nick Clifton2002-09-122-14/+22
|
* daily updateAlan Modra2002-09-121-1/+1
|
* * elf32-h8300.c (elf32_h8_relax_section): Fix typo.Jeff Law2002-09-111-1/+1
|
* Check functionname_ptr and line_ptr before deciding we've found a symbol.Nick Clifton2002-09-112-1/+6
|
* Update translationsNick Clifton2002-09-114-2/+2753
|
* daily updateAlan Modra2002-09-111-1/+1
|
* Call new functions do_sections, do_sections64, depending on corefile (32-bitNick Clifton2002-09-102-54/+145
| | | | or 64-bit).
* daily updateAlan Modra2002-09-101-1/+1
|
* * elfxx-ia64.c (elfNN_ia64_relax_section): Handle PCREL21MRichard Henderson2002-09-092-2/+11
| | | | and PCREL21F like PCREL21B.
* daily updateAlan Modra2002-09-091-1/+1
|
* daily updateAlan Modra2002-09-081-1/+1
|
* daily updatesid-20020905-branchpointsid-20020905-branchcvs/sid-20020905-branchAlan Modra2002-09-071-1/+1
|
* daily updateAlan Modra2002-09-061-1/+1
|
* daily updateAlan Modra2002-09-051-1/+1
|
* * config.bfd (mips*-*-irix6*): Add new ABI vectors. Make n32 defaultKevin Buettner2002-09-042-2/+7
| | | | vector.
* daily updateAlan Modra2002-09-041-1/+1
|
* daily updateAlan Modra2002-09-031-1/+1
|
* Use helpful names instead of cryptically overloaded bfd_reloc error codes.Nick Clifton2002-09-022-131/+78
| | | | | | Replace caching of external symbols with caching of internal symbols obtained from calling bfd_elf_get_elf_syms(). Fixup problems with freeing cached allocated memory blocks.
* * cpu-pj.c (scan_mach, compatible, arch_info_struct): Remove.Alan Modra2002-09-024-127/+15
| | | | | | | | | (bfd_pj_arch): Use bfd_default_scan. * cpu-v850.c (scan): Remove. (N): Use bfd_default_scan. * cpu-z8k.c (scan_mach): Remove. (arch_info_struct, bfd_z8k_arch): Reorganize so that the default is first. Use bfd_default_scan.
* * ecoff.c (_bfd_ecoff_set_arch_mach_hook): Don't use hard-codedAlan Modra2002-09-027-30/+44
| | | | | | | | | | | | | | | | | bfd_mach constants. (ecoff_get_magic): Likewise. * elf32-v850.c (v850_elf_object_p): Likewise. (v850_elf_final_write_processing): Likewise. * mipsbsd.c (MY(set_arch_mach)): Likewise. (MY(write_object_contents)): Likewise. * coff64-rs6000.c (xcoff64_write_object_contents): Likewise. * coffcode.h (coff_write_object_contents): Likewise. (coff_set_arch_mach_hook): Add comment describing machine == 0. Remove unnecessary "machine" assignments. (coff_write_relocs): Test for the absolute section sym by testing section and flags. * pdp11.c (NAME(aout,machine_type)): Like aoutx.h.
* * aoutx.h (NAME(aout,machine_type)): Recognize bfd_mach_i386_i386Alan Modra2002-09-022-1/+8
| | | | and bfd_mach_i386_i386_intel_syntax.
* daily updateAlan Modra2002-09-021-1/+1
|