aboutsummaryrefslogtreecommitdiff
path: root/bfd/ChangeLog
AgeCommit message (Collapse)AuthorFilesLines
2002-03-202002-03-20 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-0/+13
* dwarf2.c (struct funcinfo): Move up. (lookup_address_in_function_table): New argument function_ptr. Set it. (lookup_address_in_line_table): New argument function. If function is non-NULL, use it to handle ``addr'' before the first line note of the function. (comp_unit_find_nearest_line): Update and swap calls to lookup_address_in_function_table and lookup_address_in_line_table. * syms.c (_bfd_stab_section_find_nearest_line): Use the first N_SLINE encountered if we see an N_FUN before any N_SLINE.
2002-03-20Fix extracting from AIX big archives.Tom Rix1-0/+6
2002-03-20Fix problem with linking shared libstdc++-v3 on AIX.Tom Rix1-0/+5
2002-03-19 * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't setHans-Peter Nilsson1-0/+5
STT_NOTYPE symbols to STT_OBJECT.
2002-03-18 * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64"Jan Hubicka1-0/+4
* configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native. * elf_x86_64.sh (ARCH): Set to i386:x86-64 set libraries to default to lib64 paths.
2002-03-18Add AIX 64 shared library support and emulation layer for binutilsNick Clifton1-0/+34
2002-03-18Updated French translationsNick Clifton1-0/+4
2002-03-18 * libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success.Alan Modra1-0/+7
* libbfd.h: Regenerate. * archive.c (coff_write_armap): Pass on failures from bfd_write_bigendian_4byte_int.
2002-03-142002-03-14 H.J. Lu <hjl@gnu.org>H.J. Lu1-0/+6
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD error to bfd_error_nonrepresentable_section for reinit_array section in DSO.
2002-03-14When adding BSF_WEAK flag, OR it in rather than replacing previously selectedNick Clifton1-0/+3
flags.
2002-03-14Set ar_max_namelen to 15Nick Clifton1-0/+5
2002-03-14 * cpu-mips.c (mips_compatible): New. Don't check bits_per_word.Alan Modra1-0/+8
(N): Use the above. * elflink.h (elf_bfd_final_link): Revert last change. Instead, ensure reloc size matches before calling elf_link_input_bfd. Add an assert to check reloc size when counting output relocs.
2002-03-14Fix compile time failureNick Clifton1-0/+4
2002-03-13Updated French translationsNick Clifton1-0/+4
2002-03-13 * archures.c (bfd_default_compatible): Test bits_per_word.Alan Modra1-0/+7
* cpu-i386.c (i386_compatible): Remove. Replace occurrences with bfd_default_compatible. * cpu-i370.c (i370_compatible): Likewise. * cpu-sparc.c (sparc_compatible): Likewise. * cpu-h8300.c (compatible): Test in->arch == out->arch.
2002-03-13Revert last change.Alan Modra1-4/+0
2002-03-13 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Use ELF sectionAlan Modra1-0/+4
types instead of section names to determine whether init/fini array dynamic tags are needed.
2002-03-13 * elflink.h: Formatting fixes.Alan Modra1-0/+3
(elf_link_output_extsym): Merge undefined and undef weak cases.
2002-03-13 * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfdAlan Modra1-0/+5
when word size of input matches output word size.
2002-03-12 * cpu-i386.c (i386_compatible): New. Use it instead ofAndreas Jaeger1-0/+5
bfd_default_compatible.
2002-03-072002-03-07 H.J. Lu (hjl@gnu.org)H.J. Lu1-0/+5
* coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type as the type for bfd_reloc_val.
2002-03-052002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>Jeff Law1-0/+14
* bfd/elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function. (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols. (elf_hppa_final_link_relocate): Correct relocations for indirect references to local data through the DLT. Fix .opd creation for local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64 relocations. Use e_lsel selector for R_PARISC_DLTIND21L, R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per "Processor-Specific ELF for PA_RISC, Version 1.43" document. Similarly, use e_rsel for DLT and LTOFF 'R' relocations. * bfd/elf32-hppa.c (final_link_relocate): Revise relocation selectors as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.
2002-03-05 * merge.c (_bfd_merge_sections): Don't segfault if thereJakub Jelinek1-0/+5
is nothing to merge due to GC.
2002-03-05 * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keepAlan Modra1-0/+3
symbols that have been forced local.
2002-03-05 * elflink.h (elf_bfd_final_link): Call elf_link_output_extsymAlan Modra1-2/+10
to output forced local syms for non-shared link. (elf_link_output_extsym): Tweak condition for calling backend adjust_dynamic_symbol so that previous behaviour is kept.
2002-03-042002-03-04 H.J. Lu <hjl@gnu.org>H.J. Lu1-0/+18
* elf.c (bfd_section_from_shdr): Handle special sections, .init_array, .fini_array and .preinit_array. (elf_fake_sections): Likewise. * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the DT entry only if the section is in output for .init_array, .fini_array and .preinit_array. Complain about .preinit_array section in DSO. (elf_bfd_final_link): Warn zero size for .init_array, .fini_array and .preinit_array sections. * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY. (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and .preinit_array.
2002-03-04 * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment.Alan Modra1-0/+5
* configure: Regenerate.
2002-03-02Replace immediate howto type initializers with symbolic.Tom Rix1-0/+6
2002-03-02 * elflink.h (size_dynamic_sections): If section namedRichard Henderson1-0/+10
".preinit_array" exists, create DT_PREINIT_ARRAY and DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for ".init_array" and ".fini_array". (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and DT_FINI_ARRAY.
2002-02-25 * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF localAlan Modra1-0/+5
dynsyms.
2002-02-25 * elf64-hppa.h: Update copyright date.Alan Modra1-0/+2
2002-02-25 * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix.Alan Modra1-0/+6
(ppc64_elf_relocate_section): Don't generate power4 style branch hints for *_BRTAKEN and *_BRNTAKEN relocs.
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 Jelinek1-0/+6
last patch. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
2002-02-21 * elf64-x86-64.c: Major rework that introduces all recent changesAndreas Jaeger1-1/+55
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 Rix1-0/+7
2002-02-20 * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files areAlan Modra1-0/+5
little endian.
2002-02-192002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>Martin Schwidefsky1-0/+16
* 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. Eigler1-0/+4
* syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
2002-02-19 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): EnableJakub Jelinek1-0/+32
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 Rix1-0/+12
2002-02-18 * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.Alan Modra1-0/+15
(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 Clifton1-0/+5
2002-02-17 * mmo.c: Correct and improve comments.Hans-Peter Nilsson1-0/+20
(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-15 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A targetRichard Henderson1-0/+5
section with no got matches any got. Simplify error generaion.
2002-02-15 Support arbitrary length fill patterns.Alan Modra1-0/+11
* 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 Modra1-0/+5
Correct value returned in "end" for "0x<non-hex>".
2002-02-14Replace 'arch' field with 'mach'.Nick Clifton1-0/+5
2002-02-14fix date typoAlan Modra1-1/+1
2002-02-14 * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.Alan Modra1-2/+6