aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2001-10-02Fix (for the last time, I hope) handling of R_ARC_B22_PCREL.Nick Clifton1-7/+32
2001-10-02 * config/tc-ppc.c (md_apply_fix3 <BFD_RELOC_CTOR>): Make it 64Alan Modra2-1/+8
bits if target is 64 bit.
2001-10-02 * elf64-ppc.c (ppc64_elf_check_relocs): Use a local var and castAlan Modra2-109/+126
result of ELF64_R_TYPE to enum before using in a switch. (ppc64_elf_gc_mark_hook): Likewise. (ppc64_elf_gc_sweep_hook): Likewise. (ppc64_elf_reloc_type_class): Likewise.
2001-10-02 * doc/as.texinfo (listing): Fix typo.Alan Modra2-1/+3
2001-10-02Add more detection of 64-bit DWARF sectionsNick Clifton2-2/+37
2001-10-02 * ldver.h (ld_program_version): Remove declaration.Alan Modra6-136/+146
* lexsup.c (parse_args): Move printing of copyright message.. * ldver.c (ldversion): .. to here. Use BFD_VERSION_STRING in place of BFD_VERSION. (ld_program_version): Remove. * Makefile.am (Makefile): Depend on bfd/configure.in Run "make dep-am" * Makefile.in: Regenerate.
2001-10-02 * Makefile.am (Makefile): Depend on bfd/configure.inAlan Modra6-161/+224
Run "make dep-am" * Makefile.in: Regenerate.
2001-10-02 * as.c (print_version_id): Use BFD_VERSION_STRING in place ofAlan Modra4-1839/+2104
BFD_VERSION. * Makefile.am (Makefile): Depend on bfd/configure.in Run "make dep-am" * Makefile.in: Regenerate.
2001-10-02 * coffdump.c (PROGRAM_VERSION): Delete.Alan Modra9-214/+255
(main <'V'>): Call print_version. * srconv.c: Likewise. * sysdump.c: Likewise. * version.c (program_version): Remove. (print_version): Use BFD_VERSION_STRING. Just print the current year in copyright message. * addr2line.c (program_version): Remove unused declaration. * objdump.c (display_target_tables): Use BFD_VERSION_STRING in place of BFD_VERSION. * Makefile.am (Makefile): Depend on bfd/configure.in (cplus-dem.o): Depend on Makefile. Run "make dep-am" * Makefile.in: Regenerate.
2001-10-02 * common.h (NLM_CAT, NLM_CAT3): Don't define.Alan Modra2-26/+31
(NLM_CAT4): Update conditions under which this is defined. Document why CONCAT4 can't be used.
2001-10-02 * Makefile.in: Regenerate.Alan Modra2-0/+7
2001-10-02 * version.h: New file.Alan Modra48-1541/+1894
* bfd-in.h: (BFD_VERSION): Substitute bfd_version. (BFD_VERSION_DATE): Define. (BFD_VERSION_STRING): Define. * configure.in: AC_SUBST bfd_version, bfd_version_date and bfd_version_string. (AC_OUTPUT <bfd-in3.h>): Depend on version.h. * bfd-in2.h: Regenerate. * configure: Regenerate. * Makefile.am: Run "make dep-am" * Makefile.in: Regenerate. * bfd-in.h: Include "symcat.h". (CONCAT4): Redefine as for old CAT4. * aout-arm.c: Use equivalent CONCAT* macro in place of CAT* macros. Add warning regarding whitespace. * aout-cris.c: Likewise. * aout-ns32k.c: Likewise. * aout-sparcle.c: Likewise. * aout-tic30.c: Likewise. * aout0.c: Likewise. * armnetbsd.c: Likewise. * demo64.c: Likewise. * elf-bfd.h: Likewise. * gen-aout.c: Likewise. * host-aout.c: Likewise. * hp300bsd.c: Likewise. * hp300hpux.c: Likewise. * i386aout.c: Likewise. * i386bsd.c: Likewise. * i386dynix.c: Likewise. * i386freebsd.c: Likewise. * i386linux.c: Likewise. * i386lynx.c: Likewise. * i386mach3.c: Likewise. * i386netbsd.c: Likewise. * libaout.h: Likewise. * m68k4knetbsd.c: Likewise. * m68klinux.c: Likewise. * m68klynx.c: Likewise. * m68knetbsd.c: Likewise. * m88kmach3.c: Likewise. * mipsbsd.c: Likewise. * newsos3.c: Likewise. * ns32knetbsd.c: Likewise. * pc532-mach.c: Likewise. * pdp11.c: Likewise. * riscix.c: Likewise. * sparclinux.c: Likewise. * sparclynx.c: Likewise. * sparcnetbsd.c: Likewise. * sunos.c: Likewise. * targets.c: Likewise. * vaxnetbsd.c: Likewise. * vms-hdr.c: Likewise.
2001-10-02 2001-10-01 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-1/+5
* Makefile.in (mipsread.o): Remove old dependency on partial-stab.h.
2001-10-022001-10-01 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni1-1/+1
* xcoffread.c (N_UNDF, N_ABS, N_TEXT, N_DATA, N_BSS, N_COMM, N_FN, N_EXT, N_INDR, N_SETA, N_SETT, N_SETD, N_SETB, N_SETV, CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB, END_PSYMTAB, SET_NAMESTRING): Delete definitions. Don't include language.h any more. Don't include partial-stab.h any more. (scan_xcoff_symtab): Don't jump through hoops to reuse code in partial-stab.h, include the code directly, instead. * Makefile.in (xcoffread.o): Remove dependency on partial-stab.h.
2001-10-022001-10-01 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-60/+329
* xcoffread.c (N_UNDF, N_ABS, N_TEXT, N_DATA, N_BSS, N_COMM, N_FN, N_EXT, N_INDR, N_SETA, N_SETT, N_SETD, N_SETB, N_SETV, CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB, END_PSYMTAB, SET_NAMESTRING): Delete definitions. Don't include language.h any more. Don't include partial-stab.h any more. (scan_xcoff_symtab): Don't jump through hoops to reuse code in partial-stab.h, include the code directly, instead. * Makefile.in (xcoffread.o): Remove dependency on partial-stab.h.
2001-10-02*** empty log message ***gdbadmin1-1/+1
2001-10-01 * gdb.threads/pthreads.exp: Wait for output and delayDaniel Jacobowitz2-0/+14
before sending ^C.
2001-10-01 * gdb.mi/mi-var-display.exp (continue to incr_a): RecognizeDaniel Jacobowitz3-0/+18
some incorrect output instead of timing out. * gdb.mi/mi-var-display.exp (continue to incr_a): Likewise.
2001-10-01* infcmd.c (do_registers_info): Delete code dumping largeAndrew Cagney2-12/+5
registers. Handled by val_print.
2001-10-01Detect and warn about DWARF64 format .debug_arange sectionsNick Clifton2-0/+14
2001-10-01bfd/Alan Modra11-144/+154
* bfd-in.h: Remove comments regarding generated files. * libbfd-in.h: Likewise. * libcoff-in.h: Likewise. * bfd-in2.h: Regenerate. * libbfd.h: Likewise. * libcoff.h: Likewise. bfd/doc/ * header.sed: New file, adds header to generated files. * Makefile.am: Rewrite rules generating libbfd.h, libcoff.h and bfd.h, using above. Add missing elf.c dependecy for libbfd.h. * Makefile.in: Regenerate.
2001-10-012001-09-30 H.J. Lu <hjl@gnu.org>H.J. Lu2-0/+17
* config/obj-elf.c (obj_elf_parse_section_letters): Accept "am" and "ams" for compatibility.
2001-10-01 * elf32-sh.c (sh_elf_howto_table, R_SH_REL32): MakeHans-Peter Nilsson2-9/+55
partial_inplace, matching assembler output. Set src_mask to all ones. (sh_elf_relocate_section): Delete misplaced comment. For relocatable linking against section symbol, call _bfd_relocate_contents for partial_inplace relocs and adjust rel->r_addend for others. <case R_SH_DIR32, R_SH_REL32>: Fetch partial_inplace addend with bfd_get_32, not at rel->r_addend.
2001-10-01 * config/tc-sh.h (MD_PCREL_FROM_SECTION): Define.Hans-Peter Nilsson2-3/+6
(md_pcrel_from_section): Prototype.
2001-10-01 * config/tc-sh.c (md_pcrel_from_section): Transformed fromHans-Peter Nilsson2-1/+21
md_pcrel_from. Handle pc-relativeness against link-time symbol. Handle relativeness to elsewhere than the fixup.
2001-10-01*** empty log message ***gdbadmin1-1/+1
2001-09-30 * Makefile.am: Update dependencies with "make dep-am".Hans-Peter Nilsson3-45/+58
* Makefile.in: Regenerate.
2001-09-302001-09-30 John Healy <jhealy@redhat.com>John Healy2-3/+9
* cgen-ibld.in (insert_1): Switched bfd_get_bits and bfd_set_bits calls to cgen_get_insn_value and cgen_put_insn_value calls. (extract_1): Switched bfd_get_bits call to cgen_get_insn_value call.
2001-09-30 * Makefile.am: Update dependencies with "make dep-am".Hans-Peter Nilsson3-55/+70
* Makefile.in: Regenerate.
2001-09-30 * Makefile.am: Update dependencies with "make dep-am".Hans-Peter Nilsson3-39/+56
* Makefile.in: Regenerate.
2001-09-30* gdbarch.sh (gdbarch_alloc): Name the new architectureAndrew Cagney3-84/+103
``current_gdbarch'' so that it, and not the identically named global is refered to by macros. * gdbarch.c: Regenerate.
2001-09-30* cli/cli-decode.c (add_set_boolean_cmd): Define.Andrew Cagney5-4/+42
* cli/cli-decode.h (add_set_boolean_cmd): Declare. * command.h (add_set_boolean_cmd): Ditto. * remote.c (_initialize_remote): Use add_set_boolean_cmd for "set remotebreak"
2001-09-30 * Makefile.am: Update dependencies with "make dep-am".Hans-Peter Nilsson3-490/+595
* Makefile.in: Regenerate.
2001-09-30 * config/tc-m68hc11.c (cmp_opcode): Define prototype.Stephane Carrez2-2/+26
(print_opcode_format, skip_whites): Likewise. (convert_branch, m68hc11_new_insn): Likewise. (build_dbranch_insn, build_indexed_byte): Likewise. (build_reg_mode, find, find_opcode): Likewise. (print_insn_format): Fix call to print_opcode_format. (md_assemble): Fix call to build_dbranch_insn.
2001-09-302001-09-29 H.J. Lu <hjl@gnu.org>H.J. Lu2-1/+6
* gas/i386/i386.exp: Run 64bit tests only for "i*86-*-* and x86_64-*-*.
2001-09-30 * elf.c (_bfd_elf_link_hash_copy_indirect): Set ind refcounts toAlan Modra2-7/+20
the old dir refcount, so we indirectly set them to init_refcount. Short-circuit asserts when we've just verified they are true.
2001-09-30*** empty log message ***gdbadmin1-1/+1
2001-09-29* gdbarch.sh (gdbarch_dump): Sort output.Andrew Cagney3-1046/+860
* gdbarch.c: Regenerate.
2001-09-29* rs6000-tdep.c (rs6000_gdbarch_init): Don't use the previousAndrew Cagney2-7/+9
architecture to infer the wordsize. Previous architecture may not be a PowerPC.
2001-09-29* Makefile.in (configure-target-gperf): Depend on $(ALL_GCC_CXX).Alexandre Oliva2-2/+6
2001-09-29merge from gccDJ Delorie2-123/+128
2001-09-29Oops - forgot to remove xfailHans-Peter Nilsson1-1/+0
2001-09-29 * ld-linkonce/linkonce.exp: New file.Hans-Peter Nilsson6-0/+123
* ld-linkonce/x.s, ld-linkonce/y.s, ld-linkonce/zeroeh.ld, ld-linkonce/zeroehl32.d: New test.
2001-09-29From John Reiser <jreiser@BitWagon.com>Alan Modra8-2/+49
* ldlang.c (lang_common): Conditionally inhibit Common allocation. * lexsup.c: Add --no-define-common commandline option. * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command. * ldlex.l: Likewise. * ld.h: Add command_line.inhibit_common_definition. * ldmain.c (main): Initialize. * ld.texinfo: Document.
2001-09-29 * section.c (struct sec): Remove kept_section.Alan Modra10-66/+39
(STD_SECTION): Remove kept_section initialisation. (bfd_make_section_anyway): Here too. * ecoff.c (bfd_debug_section): Remove kept_section initialisation. * cofflink.c (_bfd_coff_link_input_bfd): Don't test kept_section. * elflink.h (elf_link_input_bfd): Set discarded link-once section symbols to zero, and remove all code involved with kept_section and tracking section symbol values. * bfd-in2.h: Regenerate. * configure.in: Bump version number. * configure: Regenerate. * ldlang.c (section_already_linked): Remove assignment to kept_section.
2001-09-29 * elf64-ppc.c (struct ppc_dyn_relocs): New.Alan Modra2-1162/+1406
(IS_ABSOLUTE_RELOC): Define. (struct ppc_link_hash_entry): New. (struct ppc_link_hash_table): New. (ppc_hash_table): Define. (link_hash_newfunc): New function. (ppc64_elf_link_hash_table_create): New function. (create_got_section): New function. (ppc64_elf_create_dynamic_sections): Call create_got_section. Stash pointers to our dynamic sections in hash table. (ppc64_elf_copy_indirect_symbol): New function. (ppc64_elf_check_relocs): Remove DEBUG code. Use short-cuts to dynamic sections. Localise vars. Modify code for refcounts starting from zero. Don't allocate here, or force symbols dynamic. Don't copy all relocs if shared, select ones we need. Add code to track possible copy relocs for non-shared link. (ppc64_elf_gc_mark_hook): Update comment. (ppc64_elf_gc_sweep_hook): Sweep dynrelocs too. (ppc64_elf_adjust_dynamic_symbol): Remove DEBUG code. Rewrite .plt code for reference counting garbage collection. Don't create .plt entries for functions that don't comply with ABI naming convention, and don't allocate .plt space here. Use short-cuts to dynamic sections. If possible, keep dynamic relocations instead of using copy relocs. Remove confused comments. (ppc_adjust_dynindx): Delete. (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define. (allocate_dynrelocs): New function. (readonly_dynrelocs): New function. (ppc64_elf_size_dynamic_sections): Rewrite. Allocate local .got space here, and call allocate_dynrelocs to allocate space for global .plt, .got and reloc sections. Use short-cuts to dynamic sections. Call readonly_dynrelocs to determine whether we need DT_TEXTREL. Don't generate section symbols here, the generic ELF linker code does it for us. (ppc64_elf_final_link): Call regular ELF backend linker rather than gc variety, since we do our own .got handling. (ppc64_elf_relocate_section): Remove DEBUG code. Make use of dynamic section short-cuts. Localise vars, and delay setting. Handle unknown relocs in main switch statement. Replace ugly complicated tests for unresolvable relocs with a simple direct scheme using "unresolved_reloc" var. Test ELF_ST_VISIBILITY before allowing an undefined sym in a shared lib. Do R_*_DS tests after main switch, when we've set addend. Do non-addend insn tweaks before main swithc. Ignore input_section->vma when calculating reloc offsets as it's always zero. Rewrite dynamic reloc handling. Consolidate R_*_HA handling. Handle more relocs. (ppc64_elf_finish_dynamic_symbol): Remove DEBUG code. Make use of dynamic section short-cuts. Reorganise .plt handling code. Remove confused comments. Take note of ELF_LINK_FORCED_LOCAL. Move expressions out of swap_reloca_out function calls. (ppc64_elf_reloc_type_class): New function. (ppc64_elf_info_to_howto): Move common expression to local var. (ppc64_elf_finish_dynamic_sections): Remove DEBUG code. Make use of dynamic section short-cuts. Don't fiddle with section syms here as the ELF linker does it for us. (elf_backend_can_refcount): Define. (bfd_elf64_bfd_link_hash_table_create): Define. (elf_backend_copy_indirect_symbol): Define. (elf_backend_reloc_type_class): Define. (elf_backend_*, bfd_elf64_bfd_* defines): Sort.
2001-09-29 * elf-bfd.h (struct elf_link_local_dynamic_entry): Add init_refcount.Alan Modra14-223/+199
(struct elf_backend_data): Add can_refcount. * elf.c (_bfd_elf_link_hash_newfunc): Get rid of a few casts. Set got.refcount and plt.refcount from init_refcount. (_bfd_elf_link_hash_table_init): Set up init_refcount. (_bfd_elf_link_hash_copy_indirect): Reference got/plt.refcount rather than got/plt.offset, and test for <= 0 rather than -1. * elflink.h (size_dynamic_sections): Set init_refcount to -1. * elfxx-target.h (elf_backend_can_refcount): Define. (elfNN_bed): Init can_refcount. * linker.c (_bfd_link_hash_newfunc): Get rid of a few casts. (_bfd_generic_link_hash_newfunc): Likewise. * elf32-cris.c (cris_elf_check_relocs): Modify for refcounts starting from zero. (elf_backend_can_refcount): Define. * elf32-hppa.c (elf32_hppa_check_relocs): Modify for refcounts starting from zero. (elf32_hppa_copy_indirect_symbol): Make static to agree with prototype. (elf_backend_can_refcount): Define. * elf32-i386.c (elf_i386_check_relocs): Modify for refcounts starting from zero. (allocate_dynrelocs): Set plt/got.offset rather than *.refcount. (elf_i386_finish_dynamic_symbol): Expand SHN_UNDEF comment. (elf_i386_finish_dynamic_sections): Use local var so line < 80 chars. (elf_backend_can_refcount): Define. (elf_i386_copy_indirect_symbol): Make static to agree with prototype. Formatting fix. * elf32-m68k.c (elf_m68k_check_relocs): Modify for refcounts starting from zero. (elf_backend_can_refcount): Define. * elf32-ppc.c (ppc_elf_check_relocs): Modify for refcounts starting from zero. (elf_backend_can_refcount): Define. * elf32-s390.c (elf_s390_check_relocs): Modify for refcounts starting from zero. (elf_backend_can_refcount): Define. * elf64-s390.c (elf_s390_check_relocs): Modify for refcounts starting from zero. (elf_backend_can_refcount): Define. * elf64-x86-64.c (elf64_x86_64_check_relocs): Modify for refcounts starting from zero. (elf_backend_can_refcount): Define.
2001-09-29 * som.c (som_write_symbol_strings): Cast current_offset inAlan Modra2-1/+6
bfd_seek call to match param type.
2001-09-29merge from gccDJ Delorie2-0/+8
2001-09-29*** empty log message ***gdbadmin1-1/+1