aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2001-06-10 * elflink.h: Whitespace changes.Alan Modra7-37/+54
(elf_link_read_relocs_from_section): Use "unsigned int" iterator rather than "unsigned char". (elf_link_output_relocs): Likewise. (elf_link_input_bfd): Likewise. (elf_reloc_link_order): LIkewise. * elf.c: s/CONST/const/. Whitespace changes. * elf32-mips.c: Formatting fix. * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h. * Makefile.in: Regenerate. * po/Make-in: Remove trailing tab.
2001-06-092001-06-09 Philip Blundell <philb@gnu.org>Phil Blundell2-2/+8
* elf32-arm.h (elf32_arm_plt0_entry): Correct error in last change. (elf32_arm_plt_entry): Likewise.
2001-06-082001-06-08 H.J. Lu <hjl@gnu.org>H.J. Lu2-3/+12
* elf.c (swap_out_syms): Keep names for global section symbols.
2001-06-082001-06-07 H.J. Lu <hjl@gnu.org>H.J. Lu2-2/+7
* config.bfd: Put back ecoff for Linux/mips. Firmwares on some MIPS-based machines need it.
2001-06-072001-06-07 H.J. Lu <hjl@gnu.org>H.J. Lu3-3/+11
* elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab for SGI only. * config.bfd: Remove ecoff from Linux/mips.
2001-06-072001-06-07 Andreas Jaeger <aj@suse.de>Andreas Jaeger2-9/+22
* elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an assertion. (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an alignment of 8 for .rela sections; handle further relocations.
2001-06-06Remove warnings building z8k port.Nick Clifton2-26/+29
Fix ld -r behaviour
2001-06-05Add mips64*-*-linux hostNick Clifton2-0/+8
2001-06-05 * elf32-i386.c (elf_i386_discard_copies): Rename toAlan Modra2-345/+470
discard_copies, and use elf_link_hash_entry arg rather than elf_i386_link_hash_entry. (elf_i386_link_hash_traverse): Delete. (elf_i386_size_dynamic_sections): Adjust call to discard_copies. Tidy sizing of dynamic sections. (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count possible .plt entries. (elf_i386_gc_sweep_hook): Likewise. (elf_i386_adjust_dynamic_symbol): Discard .plt entries for everything with plt.refcount <= 0. * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and .relgot space here. (elf_i386_gc_sweep_hook): ..and no need to deallocate here.. (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and .rel.plt here.. (allocate_plt_and_got): ..instead do it all here. New function. (elf_i386_size_dynamic_sections): Allocate local .got space and call allocate_plt_and_got. No need to zap .relgot if not dynamic. (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link rather than gc variety). (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define. (elf_i386_relocate_section): Use it here and correct handling of R_386_GOT32. Provide section and offset for "unresolvable relocation" error message. (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32. * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot, sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields. (elf_i386_link_hash_table_create): Init them. (create_got_section): New function. (elf_i386_create_dynamic_sections): New function. (elf_backend_create_dynamic_sections): Set to above. (elf_i386_check_relocs): Use shortcuts from hash table rather than calling bfd_get_section_by_name. (elf_i386_gc_sweep_hook): Likewise. (elf_i386_adjust_dynamic_symbol): Likewise. (elf_i386_size_dynamic_sections): Likewise. (elf_i386_relocate_section): Likewise. (elf_i386_finish_dynamic_sections): Likewise.
2001-06-05 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.Alan Modra2-0/+8
2001-06-032001-06-02 H.J. Lu <hjl@gnu.org>H.J. Lu3-2/+36
* elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX and ELFOSABI_HPUX. * elf64-hppa.c (elf64_hppa_object_p): Likewise.
2001-06-022001-06-02 H.J. Lu <hjl@gnu.org>H.J. Lu2-0/+6
* aout-cris.c (MACHTYPE_OK): New. Defined.
2001-06-02 * section.c (_bfd_strip_section_from_output): Handle NULLHans-Peter Nilsson2-0/+10
output_section.
2001-06-022001-06-02 H.J. Lu <hjl@gnu.org>H.J. Lu2-0/+10
* config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add rs6000coff64_vec only if BFD64 is defined. (powerpc64-*-aix*): Enable only if BFD64 is defined.
2001-06-022001-06-02 H.J. Lu <hjl@gnu.org>H.J. Lu2-24/+36
* coff-ia64.c (ia64coff_object_p): Rewrite with external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
2001-06-01 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8Andreas Jaeger2-9/+17
relocation, small reformatting.
2001-05-30 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.Andreas Jaeger2-0/+7
(elf64_x86_64_relocate_section): Likewise.
2001-05-30 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT forAlan Modra2-108/+160
millicode. Don't allocate .got and .rela.got space here.. (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here.. (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and .rela.plt here.. (hppa_handle_PIC_calls): ..nor here.. (allocate_plt_and_got): ..instead do it all here. New function. (elf32_hppa_size_dynamic_sections): Allocate local .got space and call allocate_plt_and_got. No need to zap .got if not dynamic. (elf32_hppa_final_link): Call regular bfd_final_link instead of gc_common_final_link. (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define. (elf32_hppa_relocate_section): Use it here. (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of dynamic_sections_created. (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
2001-05-28 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use theAndreas Jaeger2-43/+12
generic version since we want a hashsize of 4. (elf_backend_size_info): Likewise.
2001-05-28Handle MIPS64 relocs which use a non-1 valued int_rels_per_ext_relNick Clifton2-55/+149
2001-05-28Support big endian PLT entries.Nick Clifton2-12/+24
2001-05-28 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entriesAlan Modra2-17/+58
for symbols forced local that need plabels. (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in .plt.rela for local syms if non-shared. (hppa_build_one_stub): Mask lsb of plt.offset. (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set. (clobber_millicode_symbols): Correct comment. (elf32_hppa_relocate_section): Likewise. (elf32_hppa_finish_dynamic_symbol): Likewise.
2001-05-28Add support for .uahword, .uaword and .uaxword pseudo opsNick Clifton7-49/+74
2001-05-252001-05-25 H.J. Lu <hjl@gnu.org>H.J. Lu5-285/+279
* Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo. (BFD32_BACKENDS_CFILES): Remove coff-pmac.c. (coff-rs6000.lo): Remove the old dependency. * Makefile.in: Rebuild. * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with coff-rs6000.lo.
2001-05-252001-05-25 H.J. Lu <hjl@gnu.org>H.J. Lu3-18/+60
* coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p, rs6000coff_core_file_matches_executable_p, rs6000coff_core_file_failing_command and rs6000coff_core_file_failing_signal only if AIX_CORE is defined. (pmac_xcoff_vec): Likewise. * coff64-rs6000.c (rs6000coff64_vec): Likewise.
2001-05-25monterey updatesTimothy Wall2-25/+27
2001-05-252001-05-25 H.J. Lu <hjl@gnu.org>H.J. Lu3-3/+26
* bfd-in2.h: Regenerated. * libcoff.h: Likewise.
2001-05-25 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allowAlan Modra2-21/+45
undefined millicode syms in shared libs. (hppa_build_one_stub): Turn BFD_ASSERTs into aborts. (elf32_hppa_check_relocs): Likewise. (elf32_hppa_adjust_dynamic_symbol): Likewise. (elf32_hppa_size_dynamic_sections): Likewise. (elf32_hppa_relocate_section): Likewise. (elf32_hppa_finish_dynamic_symbol): Likewise. (elf32_hppa_finish_dynamic_sections): Likewise.
2001-05-24Support for xcoff64Tom Rix15-2445/+5071
2001-05-23* elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typoAlexandre Oliva2-1/+6
s/ENTIRES/ENTRIES/.
2001-05-23Add MIPS ELF64 relocsNick Clifton4-0/+48
2001-05-23Add MIPS r12k supportNick Clifton9-164/+178
2001-05-23Change PLT code to avoid using r2 - it used by GCC to return large starturesNick Clifton2-0/+117
2001-05-23Replace sh_size/sh_entsize with NUM_SHDR_ENTRIESNick Clifton10-31/+44
2001-05-21 * dwarf2.c (decode_line_info): Fix error message.Andreas Jaeger2-3/+9
(read_abbrevs): Fix test for offset as suggested by Alan Modra and adjust error message.
2001-05-20* ltconfig, ltmain.sh, libtool.m4, ltcf-c.sh, ltcf-cxx.sh,Alexandre Oliva1-5876/+3336
ltcf-gcj.sh: Upgraded to libtool 1.4a 1.641.2.254. Rebuilt a number of subdir/configure scripts to use the new libtool.m4.
2001-05-182001-05-18 H.J. Lu <hjl@gnu.org>H.J. Lu2-1/+6
* elflink.h (elf_link_add_object_symbols): Revert the last change.
2001-05-18 * elf32-hppa.c (clobber_millicode_symbols): Temporarily setAlan Modra2-1/+14
ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change. (hppa_build_one_stub): Add an assert to check plt.offset.
2001-05-182001-05-17 H.J. Lu <hjl@gnu.org>H.J. Lu2-1/+6
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the version definition to basename of the output filename.
2001-05-172001-05-17 H.J. Lu <hjl@gnu.org>H.J. Lu2-1/+6
* elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to basename of the bfd filename.
2001-05-17Add a flag to asection, linker_has_input, and use it to reliablyAlan Modra4-10/+30
determine whether an input section is the first one assigned to an output section.
2001-05-16* elf-m10300.c (mn10300_elf_relax_section): Don't relaxAlexandre Oliva2-8/+34
negative 32-bit operands to 16 operands when the operand is going to be zero-extended by the modified opcode.
2001-05-12Peter Targett's backwards compatibility and other arc fixes.Alan Modra3-17/+28
2001-05-11 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwindJakub Jelinek2-3/+24
sections as well. (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO to .gnu.linkonce.t.FOO text section. * readelf.c (process_unwind): Print all unwind sections, not just one. * config/tc-ia64.c (special_linkonce_name): New. (make_unw_section): Map .gnu.linkonce.t.FOO text section into .gnu.linkonce.ia64unw{,i}.FOO. (ia64_elf_section_type): Handle .gnu.linkonce.ia64unw{,i}.FOO. (dot_endp): Add comment about it. * elf/ia64.h (ELF_STRING_ia64_unwind_once): Define. (ELF_STRING_ia64_unwind_info_once): Define. * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind* output sections. * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2001-05-11 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffixJakub Jelinek32-77/+565
fields, change sec into secinfo. (struct sec_merge_info): Add chain, remove last fields. (struct sec_merge_sec_info): Add next, sec, psecinfo fields. (sec_merge_hash_lookup): If lookup could not use a string only because it has bad alignment, mark the old string for deletion. (sec_merge_add): Add secinfo argument. Don't compute entry's position, instead record the section. (sec_merge_emit): Update for the sec into secinfo change in struct sec_merge_hash_entry. (_bfd_merge_section): Only record the section for merging, defer putting strings into the hash table. (cmplengthentry, last4_eq, last_eq, record_section, merge_strings, _bfd_merge_sections): New functions. (_bfd_merged_section_offset): Update for the sec_merge_hash_entry changes. * libbfd-in.h (_bfd_merge_sections): Add prototype. (_bfd_nolink_bfd_merge_sections): Define. * libbfd.h: Likewise. (bfd_generic_merge_sections): Add prototype. * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections. (struct bfd_target): Likewise. * bfd.c (bfd_merge_sections): Define. * bfd-in2.h: Rebuilt. * elf.c (_bfd_elf_merge_sections): New function. * elf-bfd.h (_bfd_elf_merge_sections): Add prototype. * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define. * reloc.c (bfd_generic_merge_sections): New function. * vms.c (vms_bfd_merge_sections): New function. * aout-adobe.c (aout_32_bfd_merge_sections): Define. * aout-target.h (MY_bfd_merge_sections): Define. * aout-tic30.c (MY_bfd_merge_sections): Define. * binary.c (binary_bfd_merge_sections): Define. * bout.c (b_out_bfd_merge_sections): Define. * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define. * coffcode.c (coff_bfd_merge_sections): Define. * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define. * i386msdos.c (msdos_bfd_merge_sections): Define. * i386os9k.c (os9k_bfd_merge_sections): Define. * ieee.c (ieee_bfd_merge_sections): Define. * ihex.c (ihex_bfd_merge_sections): Define. * nlm-target.h (nlm_bfd_merge_sections): Define. * oasys.c (oasys_bfd_merge_sections): Define. * ppcboot.c (ppcboot_bfd_merge_sections): Define. * som.c (som_bfd_merge_sections): Define. * srec.c (srec_bfd_merge_sections): Define. * tekhex.c (tekhex_bfd_merge_sections): Define. * versados.c (versados_bfd_merge_sections): Define. * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define. * ldlang.c (lang_process): Call bfd_merge_sections.
2001-05-11Change type of 'addr' to be unsigned long, in order to match its use.Nick Clifton2-1/+6
2001-05-102001-05-10 H.J. Lu <hjl@gnu.org>H.J. Lu2-0/+14
* linker.c (_bfd_generic_link_add_one_symbol): Check loop on indirect symbols.
2001-05-092001-05-09 H.J. Lu <hjl@gnu.org>H.J. Lu2-4/+7
* elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate versymhdr->sh_size bytes for extversym instead of hdr->sh_size. Remove the unused veriable `dynver'.
2001-05-08 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd isIan Lance Taylor2-2/+13
NULL or is not COFF. (coff_i386_rtype_to_howto): Don't dump core if output section owner is not COFF.
2001-05-08Remove extraneous character in first line.Ian Lance Taylor1-1/+1