aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2002-02-27daily updateAlan Modra1-1/+1
2002-02-26daily updateAlan Modra1-1/+1
2002-02-25 * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF localAlan Modra2-3/+9
dynsyms.
2002-02-25daily updateAlan Modra1-1/+1
2002-02-25 * elf64-hppa.h: Update copyright date.Alan Modra2-1/+3
2002-02-25 * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix.Alan Modra2-9/+27
(ppc64_elf_relocate_section): Don't generate power4 style branch hints for *_BRTAKEN and *_BRNTAKEN relocs.
2002-02-24daily updateAlan Modra1-1/+1
2002-02-23daily updateAlan Modra1-1/+1
2002-02-22daily updateAlan Modra1-1/+1
2002-02-22The "2002-02-05 Alan Modra <amodra@bigpond.net.au>" commit also affectedDavid O'Brien1-0/+1
elf32-i386.c
2002-02-22 * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from myJakub Jelinek3-2/+8
last patch. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
2002-02-21daily updateAlan Modra1-1/+1
2002-02-21 * elf64-x86-64.c: Major rework that introduces all recent changesAndreas Jaeger2-741/+1080
to the x86-64 backend. Get a closer match to elf32-i386. (struct elf64_x86_64_dyn_relocs): Rename from elf64_x86_64_pcrel_relocs_copied, add additional fields. Change all users. (struct elf64_x86_64_link_hash_table): Add short cuts to some sections. (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc, remove casts, initialize new hash members. (create_got_section): New. (elf64_x86_64_create_dynamic_sections): New. (elf64_x86_64_copy_indirect_symbol): New. (elf64_x86_64_check_relocs): Don't allocate space for dynamic relocs, .got or .relgot here but do it in allocate_dynrelocs. Reference count possible .plt and .got entries. Don't test input section SEC_READONLY here to try to avoid copy relocs, and keep dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set DF_TEXTREL here. Delay setting of variables until needed. Cache pointer to "sreloc" section in elf_section_data. Tweak condition under which .got created. Report files with bad relocation section names. (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel. Reference count possible .plt entries. Don't deallocate .got and .relgot space here. (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't do copy reloc processing for weakdefs. Remove redundant casts and aborts. Delay setting of vars until needed. Move creation of dynamic symbols and allocation of .plt and .rela.plt to allocate_dynrelocs. Replace BFD_ASSERT with abort. (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New. (allocate_dynrelocs): New. (readonly_dynrelocs): New. (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs. Allocate space for dyn relocs. Replace BFD_ASSERT with abort. Zero out the dynamic allocated content space. (elf64_x86_64_discard_copies): Removed. (elf64_x86_64_relocate_section): Make use of dynamic section short-cuts. Localise vars, and delay setting. Better error reporting, replace BFD_ASSERT with abort. Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the regular object file and tread the weak definition as the normal one. Don't discard relocs for undefweak or undefined symbols and check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy relocs. (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for symbols that have been forced local. Use same test to decide if we can use a relative reloc for got as relocate_section. Expand SHN_UNDEF comment. Move expressions out of function calls. Replace BFD_ASSERT with abort. (bfd_elf64_bfd_final_link): Removed. (elf_backend_copy_indirect_symbol): Define.
2002-02-21XCOFF booke tests. Fix tlbre, tlbwe ppc WS field.Tom Rix3-4/+44
2002-02-20daily updateAlan Modra1-1/+1
2002-02-20 * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files areAlan Modra2-2/+7
little endian.
2002-02-19daily updateAlan Modra1-1/+1
2002-02-192002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>Martin Schwidefsky6-12/+67
* archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31. (bfd_mach_s390_esame): Rename to bfd_mach_s390_64. * bfd-in2.h: Regenerate. * cpu-s390.c (arch_info_struct): Use renamed architecture defines. Replace architecture name "s390" with "s390:31-bit" and "s390:esame" with "s390:64-bit". * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations. (elf_s390_reloc_type_lookup): Likewise. (elf_s390_check_relocs): Likewise. (elf_s390_gc_sweep_hook): Likewise. (elf_s390_relocate_section): Likewise. (elf_s390_object_p): Use renamed architecture define. * elf64-s390.c (elf_s390_object_p): Use renamed architecture define.
2002-02-192002-02-19 Frank Ch. Eigler <fche@redhat.com>Frank Ch. Eigler2-9/+15
* syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
2002-02-19 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): EnableJakub Jelinek21-94/+124
absptr -> pcrel optimization for shared libs. Only create minimal .eh_frame_hdr if absptr FDE encoding in shared library cannot be converted to pcrel. (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr relative. * elf32-i386.c (elf_i386_relocate_section): If _bfd_elf_section_offset returned -2, skip, but make sure the relocation is installed. * elf32-arm.h (elf32_arm_final_link_relocate): Likewise. * elf32-cris.c (cris_elf_relocate_section): Likewise. * elf32-hppa.c (elf32_hppa_relocate_section): Likewise. * elf32-i370.c (i370_elf_relocate_section): Likewise. * elf32-m68k.c (elf_m68k_relocate_section): Likewise. * elf32-ppc.c (ppc_elf_relocate_section): Likewise. * elf32-s390.c (elf_s390_relocate_section): Likewise. * elf32-sh.c (sh_elf_relocate_section): Likewise. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. * elf64-s390.c (elf_s390_relocate_section): Likewise. * elf64-sh64.c (sh_elf64_relocate_section): Likewise. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. * elf64-alpha.c (elf64_alpha_relocate_section): Handle _bfd_elf_section_offset returning -2 the same way as -1. * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise. * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME and BFD_ASSERT. * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise.
2002-02-19Add support for -brtl, run time linking, to AIX ld.Tom Rix7-149/+232
2002-02-18daily updateAlan Modra1-1/+1
2002-02-18 * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.Alan Modra2-31/+166
(struct ppc_link_hash_table): Add sfpr. (ppc64_elf_link_hash_table_create): Init it. (ppc64_elf_create_dynamic_sections): Split creation of .stub and .glink out to.. (create_linkage_sections): ..here. Make .sfpr too. (ppc64_elf_check_relocs): Call create_linkage_sections, and set dynobj early. (MIN_SAVE_FPR, MAX_SAVE_FPR): Define. (ppc64_elf_func_desc_adjust): Look for missing ._savef* and ._restf* functions, and create as needed. (func_desc_adjust): Only force_local for shared libs. * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
2002-02-18Bump version number to 2.12.90Nick Clifton3-2/+7
2002-02-17daily updateAlan Modra1-1/+1
2002-02-17 * mmo.c: Correct and improve comments.Hans-Peter Nilsson2-77/+176
(mmo_write_chunk): Store trailing byte in bfd buffer; don't zero-pad. Use input to fill up non-empty bfd buffer. (mmo_flush_chunk): New function. (mmo_write_loc_chunk): Add parameter last_vmap, all callers changed. Don't emit location specifier if VMA is same as *LAST_VMAP after omitting leading zero contents. Call mmo_flush_chunk before emitting location specifier. (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished with mmo_write_loc_chunk calls. (mmo_internal_write_section): Call mmo_flush_chunk after mmo_write_chunk. (mmo_write_symbols_and_terminator): Move :Main to first position in symbol array. Add faked one if it does not exist if there are other symbols. Don't add it if there are no symbols at all. Move out test for value of :Main from symbol loop. Rename table fakemain to maintable and variable mainsym to fakemain.
2002-02-16daily updateAlan Modra1-1/+1
2002-02-15daily updateAlan Modra1-1/+1
2002-02-15 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A targetRichard Henderson2-14/+13
section with no got matches any got. Simplify error generaion.
2002-02-15 Support arbitrary length fill patterns.Alan Modra5-42/+57
* linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc. (_bfd_default_link_order): Remove bfd_fill_link_order code. Call default_data_link_order. (default_fill_link_order): Delete. (default_data_link_order): New function. * elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences of bfd_fill_link_order with bfd_data_link_order. * elf64-alpha.c (elf64_alpha_final_link): Likewise. * elf64-mips.c (mips_elf64_final_link): Likewise.
2002-02-15 * bfd.c (bfd_scan_vma): Clamp overflows to max bfd_vma value.Alan Modra2-24/+46
Correct value returned in "end" for "0x<non-hex>".
2002-02-14daily updateAlan Modra1-1/+1
2002-02-14Replace 'arch' field with 'mach'.Nick Clifton2-40/+47
2002-02-14fix date typoAlan Modra1-1/+1
2002-02-14 * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.Alan Modra2-3/+8
2002-02-13daily updateAlan Modra1-1/+1
2002-02-132002-02-11 Michael Snyder <msnyder@redhat.com>Michael Snyder3-5/+51
* elf-bfd.h (elfcore_write_lwpstatus): Add prototype. * elf.c (elfcore_grok_pstatus): Add prototype. (elfcore_grok_lwpstatus): Add prototype. (elfcore_write_lwpstatus): New function. (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.
2002-02-13bfd:Jason Thorpe2-0/+8
2002-02-13 Matt Fredette <fredette@netbsd.org> * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize EF_M68000. bintuls: 2002-02-13 Matt Fredette <fredette@netbsd.org> * readelf.c (get_machine_flags): Recognize EF_M68000. gas: 2002-02-13 Matt Fredette <fredette@netbsd.org> * config/tc-m68k.c (md_show_usage): No longer display a hard-coded "68020" for the default CPU, instead display the canonical name of the true, configured default CPU. (m68k_elf_final_processing): Mark objects for sub-68020 CPUs with the new EF_M68000 flag. include/elf: 2002-02-13 Matt Fredette <fredette@netbsd.org> * m68k.h (EF_M68000): Define.
2002-02-13Accept a physicall address of 0 as valid in a program headerNick Clifton2-3/+14
2002-02-12daily updateAlan Modra1-1/+1
2002-02-12 * elf-hppa.h (elf_hppa_reloc_final_type): New function strippedAlan Modra5-49/+76
from _bfd_elf_hppa_gen_reloc_type. (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype. * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype. * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h. * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype.
2002-02-12* elf-m10300.c (mn10300_elf_relax_section): Skip section beforeAlexandre Oliva2-1/+12
loading its contents if there's nothing to do in it.
2002-02-12 * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossingAlan Modra2-1/+4
64k boundary.
2002-02-12Add DT_PPC64_OPD and DT_PPC64_OPDSZ dynamic tagsAlan Modra2-13/+36
2002-02-11daily updateAlan Modra1-1/+1
2002-02-11* elf32-sh.c: Added missing prototypes.Alexandre Oliva4-7/+38
* elf32-sh64.c: Likewise. (sh_elf_align_loads): Mark unused args as such. * elf64-sh64.c: Added missing prototypes. (struct elf_sh64_link_hash_entry): Fix typo. (sh_elf64_relocate_section): Fix info argument passed to _bfd_elf_section_offset.
2002-02-11 * Makefile.am: "make dep-am".Alan Modra8-314/+349
* Makefile.in: Regenerate. * aclocal.m4: Regenerate. * config.in: Regenerate. * configure: Regenerate.
2002-02-112002-02-10 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz4-3/+13
* coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized variable warnings. * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned comparison warning. * trad-core.c (trad_unix_core_file_p): Silence pointer/integer cast warnings for the common case.
2002-02-10daily updateAlan Modra1-1/+1
2002-02-10 * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64Hans-Peter Nilsson2-0/+20
vectors. (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64 vectors.