aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2002-05-24* sim-d10v.h: Delete file. Moved to include/gdb/.Andrew Cagney9-4/+23
* sim-d10v.h: New file. Moved from include/sim-d10v.h. * Makefile.in (INCLUDE): Add "gdb/sim-d10v.h". * interp.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h". * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h". * Makefile.in (sim_d10v_h): Update definition.
2002-05-24*** empty log message ***gdbadmin1-1/+1
2002-05-24daily updateAlan Modra1-1/+1
2002-05-23* d10v-tdep.c (d10v_gdbarch_init): Revert old code included inAndrew Cagney2-3/+10
change `2002-05-22 Michael Snyder' below. (d10v_push_arguments): Ditto. (d10v_extract_return_value): Ditto.
2002-05-23* macrotab.c (check_for_redefinition): Don't complain if the newJim Blandy2-15/+66
definition is the same as the previous one. Take more arguments to allow the comparison. (macro_define_object, macro_define_function): Pass more arguments to check_for_redefinition.
2002-05-232002-05-15 Nick Clifton <nickc@cambridge.redhat.com>Michael Snyder2-2/+15
* lib/gdb.exp (gdb_wrapper_init): Just because gdb_wrapper_file exists, this does not mean that the file should not be rebuilt. That is what gdb_wrapper_initialized is for. (default_gdb_init): Reset gdb_wrapper_initialized.
2002-05-232002-05-23 Michael Snyder <msnyder@redhat.com>Michael Snyder3-17/+7
* gdb.base/all-bin.exp: Revise previous patch by just reducing the precision of the floating point test results. * gdb.base/call-rt-st.exp: Ditto.
2002-05-232002-05-23 H.J. Lu <hjl@gnu.org>H.J. Lu3-0/+7
* gas/mips/elf-rel.d: Skip the padding. * gas/mips/elfel-rel.d: Likewise.
2002-05-23Don't match "A-F".H.J. Lu1-1/+1
2002-05-232002-05-23 H.J. Lu <hjl@gnu.org>H.J. Lu4-0/+19
* gas/all/align2.d: New. * gas/all/align2.s: New. * gas/all/gas.exp: Run align2.
2002-05-232002-05-22 Michael Snyder <msnyder@redhat.com>Michael Snyder2-26/+76
* d10v-tdep.c: Change a few macros to enums for ease of debugging. (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause. (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause. (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY. Don't bail if return_pc is PC_IN_CALL_DUMMY. Add a temp variable to save a call (and a memory read). (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc if possible (so that PC_IN_CALL_DUMMY will work).
2002-05-232002-05-23 Michael Snyder <msnyder@redhat.com>Michael Snyder3-5/+24
* gdb.base/all-bin.exp: Allow for reduced floating point precision. * gdb.base/call-rt-st.exp: Ditto.
2002-05-23 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCALJakub Jelinek40-123/+1911
for symbols from SHF_TLS section. (_bfd_elf_print_private_bfd_data): Add PT_TLS. (elf_fake_sections): Set SHF_TLS for SEC_THREAD_LOCAL sections. (map_sections_to_segments): Build PT_TLS segment if necessary. (assign_file_positions_for_segments): Likewise. (get_program_header_size): Account for PT_TLS segment. (swap_out_syms): Set type of BSF_THREAD_LOCAL symbols and symbols from SEC_THREAD_LOCAL sections to STT_TLS. * reloc.c: Add 386 and IA-64 TLS relocs. * section.c (SEC_THREAD_LOCAL): Define. (SEC_CONSTRUCTOR_TEXT, SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS): Remove. * elflink.h (elf_link_add_object_symbols): Support .tcommon. (size_dynamic_sections): If DF_STATIC_TLS, set DF_FLAGS unconditionally. (struct elf_final_link_info): Add first_tls_sec. (elf_bfd_final_link): Set first_tls_sec. Compute elf_hash_table (info)->tls_segment. (elf_link_output_extsym): Handle STT_TLS symbols. (elf_link_input_bfd): Likewise. * syms.c (BSF_THREAD_LOCAL): Define. * bfd-in2.h: Rebuilt. * libbfd.h: Rebuilt. * elf32-i386.c (elf_i386_tls_transition, dtpoff_base, tpoff, elf_i386_mkobject, elf_i386_object_p): New functions. (elf_howto_table): Add TLS relocs. (elf_i386_reloc_type_lookup): Support TLS relocs. (elf_i386_info_to_howto_rel): Likewise. (struct elf_i386_link_hash_entry): Add tls_type. (struct elf_i386_obj_tdata): New. (elf_i386_hash_entry, elf_i386_tdata, elf_i386_local_got_tls_type): New macros. (struct elf_i386_link_hash_table): Add tls_ldm_got. (link_hash_newfunc): Clear tls_type. (elf_i386_check_relocs): Support TLS relocs. (elf_i386_gc_sweep_hook): Likewise. (allocate_dynrelocs): Likewise. (elf_i386_size_dynamic_sections): Likewise. (elf_i386_relocate_section): Likewise. (elf_i386_finish_dynamic_symbol): Likewise. (bfd_elf32_mkobject, elf_backend_object_p): Define. * elfxx-ia64.c (struct elfNN_ia64_dyn_sym_info): Add tprel_offset, dtpmod_offset, dtprel_offset, tprel_done, dtpmod_done, dtprel_done, want_tprel, want_dtpmod, want_dtprel. (elfNN_ia64_tprel_base, elfNN_ia64_dtprel_base): New functions. (ia64_howto_table): Add TLS relocs, rename R_IA64_LTOFF_TP22 to R_IA64_LTOFF_TPREL22. (elf_code_to_howto_index): Add TLS relocs. (elfNN_ia64_check_relocs): Support TLS relocs. (allocate_global_data_got): Account for TLS .got data. (allocate_dynrel_entries): Account for TLS dynamic relocations. (elfNN_ia64_install_value): Supprt TLS relocs. (set_got_entry): Support TLS relocs. (elfNN_ia64_relocate_section): Likewise. * config/obj-elf.c (elf_common): Renamed from obj_elf_common. (obj_elf_common): Call elf_common. (obj_elf_tls_common): New function. (elf_pseudo_tab): Support .tls_common. (special_sections): Add .tdata and .tbss. (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS sections. (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS). (obj_elf_parse_section_letters): Include T in error message. * config/tc-ppc.c (ppc_section_letter): Likewise. * config/tc-alpha.c (alpha_elf_section_letter): Likewise. (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as SEC_MERGE. * config/tc-sparc.c (md_apply_fix3): Likewise. * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs. Define them if not BFD_ASSEMBLER. (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF and @NTPOFF. (md_apply_fix3): Add TLS relocs. * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE, FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE, FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE. (pseudo_func): Support @dtpmod(), @dtprel() and @tprel(). (ia64_elf_section_letter): Include T in error message. (md_begin): Support TLS operators. (md_operand): Likewise. (ia64_gen_real_reloc_type): Support TLS relocs. * testsuite/gas/i386/tlspic.s: New file. * testsuite/gas/i386/tlsd.s: New file. * testsuite/gas/i386/tlsnopic.s: New file. * testsuite/gas/i386/tlsd.d: New file. * testsuite/gas/i386/tlsnopic.d: New file. * testsuite/gas/i386/tlspic.d: New file. * testsuite/gas/i386/i386.exp: Add tlsd, tlsnopic and tlspic tests. * testsuite/gas/ia64/tls.s: New file. * testsuite/gas/ia64/tls.d: New file. * testsuite/gas/ia64/ia64.exp: Add tls test. * write.c (adjust_reloc_syms): Don't change symbols in SEC_THREAD_LOCAL sections to STT_SECTION + addend. * elf/common.h (PT_TLS, SHF_TLS, STT_TLS, DF_STATIC_TLS): Define. * elf/ia64.h (R_IA64_LTOFF_TPREL22): Renamed from R_IA64_LTOFF_TP22. * elf/i386.h: Add TLS relocs. * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss. * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for output section if necessary. Handle .tbss. (lang_size_sections): Clear _raw_size for .tbss section (it allocates space in PT_TLS segment only). * ldwrite.c (build_link_order): Build link order for .tbss too. * readelf.c (get_segment_type): Add PT_TLS. (get_elf_section_flags): Add SHF_TLS. (get_dynamic_flags): Optimize. Add DF_STATIC_TLS. (process_dynamic_segment): Use puts instead of printf. (get_symbol_type): Support STT_TLS. * objdump.c (dump_section_header): Remove SEC_CONSTRUCTOR_TEXT, SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS. Add SEC_THREAD_LOCAL.
2002-05-23Fix handling of BLX instruction to conform to Operations definition in theNick Clifton1-23/+23
ARM ARM.
2002-05-23When decoding a BLX(1) instruction do not add in the second bit of the baseNick Clifton2-5/+8
address - this has already been accounted for.
2002-05-23For the Thumb BLX reloc round the relocation up rather than down.Nick Clifton5-38/+46
2002-05-23Silently ignore an 'a' flag in a COFF .section directive.Nick Clifton3-17/+28
2002-05-23 * config/tc-alpha.c (assemble_tokens): Protect use ofAlan Modra2-1/+7
ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
2002-05-23 * configure.in: Correct spelling of AC_PREREQ.Alan Modra2-3/+7
2002-05-23 * write.c (size_seg): Check adjustment to last frag.Alan Modra9-34/+108
(SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to section alignment. * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise. * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise. (write_object_file): Invoke md_do_align if available, and use frag_align_code on text sections. * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args. * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise. * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise. * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise. * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for BFD_ASSEMBLER too.
2002-05-232002-05-22 H.J. Lu <hjl@gnu.org>H.J. Lu2-1/+9
* dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file for source file.
2002-05-23 * rdcoff.c: Fix formatting.Kazu Hirata8-214/+224
* rddbg.c: Likewise. * readelf.c: Likewise. * rename.c: Likewise. * resbin.c: Likewise. * resrc.c: Likewise. * resres.c: Likewise.
2002-05-23daily updateAlan Modra1-1/+1
2002-05-23*** empty log message ***gdbadmin1-1/+1
2002-05-22* acinclude.m4: Allow for PWDCMD to override hardcoded pwd.DJ Delorie1-0/+4
2002-05-22 * Makefile.am (sh-dis.lo): Compile with @archdefs@.Joern Rennecke3-2/+7
* Makefile.in: regenerate.
2002-05-22 * MAINTAINERS: Remove status `OBSOLETE' from v850.Corinna Vinschen2-1/+4
2002-05-22* config.guess: Update to 2002-05-22 version.Jason Thorpe3-5/+14
* config.sub: Likewise.
2002-05-22Avoid dereferencing null pointer in:Joern Rennecke2-2/+3
* sh-dis.c (print_insn_sh): If coff and bfd_mach_sh, use arch_sh4 for disassembly.
2002-05-222002-05-22 H.J. Lu <hjl@gnu.org>H.J. Lu3-4078/+6
* gas/mips/elf-rel.d: Updated for the subsegs_finish change in write.c. * gas/mips/elfel-rel.d: Likewise.
2002-05-22* pe-dll.c (autofilter_liblist): Add more system libs excluded by default.Christopher Faylor5-8/+65
(autofilter_objlist): Add crtbegin.o, crtend.o. * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define. (longopts): Add new option --exclude-libs. (gld_${EMULATION_NAME}_list_options): Give quick help about it. (gld_${EMULATION_NAME}_parse_args): Use it. * pe-dll.h (pe_dll_add_excludes): Add second param to prototype. * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols from whole archives. (pe_dll_add_excludes): Set excludes->type. (auto_export): Add new variable libname and set to archive basename if abfd. Use it when filtering default and user-specified libarary excludes. Let string "ALL" mean all libs when filtering user-specified libs. * ld.texinfo: Document --exclude-libs.
2002-05-22COFF: Dump literal pool when changing sections.Nick Clifton2-4/+12
2002-05-222002-05-22 H.J. Lu <hjl@gnu.org>H.J. Lu2-6/+18
* dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol for one .loc for compiler.
2002-05-22 * gas/sh/pcrel-coff.s: New file.Joern Rennecke4-4/+59
* gas/sh/pcrel-coff.d: Likewise. * gas/sh/basic.exp: For coff, don't do dsp test, and a modified pcrel test.
2002-05-222002-05-22 Michal Ludvig <mludvig@suse.cz>Michal Ludvig2-1/+4
* dwarf2cfi.c (execute_stack_op): Change type of 'result' from ULONGEST to CORE_ADDR.
2002-05-22 * sh-dis.c (print_insn_sh): If coff and bfd_mach_sh, use arch_sh4Joern Rennecke2-0/+10
for disassembly.
2002-05-222002-05-22 Michal Ludvig <mludvig@suse.cz>Michal Ludvig2-10/+45
* dwarf2cfi.c (frame_state_for): Added safety check for a valid fde->cie_ptr. (dwarf2_build_frame_info): Corrected handling of eh_frame. (dwarf2_build_frame_info): Add offset to fde->initial_location so that frames of shared libraries are mapped correctly.
2002-05-22Allow for PWDCMD to override hardcoded pwd.Nick Clifton6-176/+194
2002-05-22 * ldemul.c (ldemul_new_vers_pattern): New function.Alan Modra21-15/+182
* ldemul.h (ldemul_new_vers_pattern): Declare. (struct ld_emulation_xfer_struct): Add new_vers_pattern. * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern. * emultempl/ppc64elf.em (dotsyms): New static var. (gld${EMULATION_NAME}_new_vers_pattern): New function. (LDEMUL_NEW_VERS_PATTERN): Define. (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS. (PARSE_AND_LIST_LONGOPTS): Likewise. (PARSE_AND_LIST_ARGS_CASES): Handle them. * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update initialiser. * emultempl/armcoff.em: Likewise. * emultempl/armelf_oabi.em: Likewise. * emultempl/beos.em: Likewise. * emultempl/elf32.em: Likewise. * emultempl/generic.em: Likewise. * emultempl/gld960.em: Likewise. * emultempl/gld960c.em: Likewise. * emultempl/linux.em: Likewise. * emultempl/lnk960.em: Likewise. * emultempl/m68kcoff.em: Likewise. * emultempl/mipsecoff.em: Likewise. * emultempl/pe.em: Likewise. * emultempl/sunos.em: Likewise. * emultempl/ticoff.em: Likewise. * emultempl/vanilla.em: Likewise.
2002-05-22 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdirAlan Modra6-40/+83
and $NATIVE_LIB_DIRS. Add $tool_lib before other libs. (LIB_SEARCH_DIRS): No need to use "tr". (COMPILE_IN): Only set for native targets. * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh. * configure.tgt (powerpc*): Set tdir_*. (powerpcle*): Correct targ_extra_emuls. * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs. * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
2002-05-22 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" whenAlan Modra2-1/+6
calling lang_add_entry.
2002-05-222002-05-21 H.J. Lu (hjl@gnu.org)H.J. Lu5-1/+36
* emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle "-z muldefs". (gld${EMULATION_NAME}_list_options): Add "-z muldefs". * ld.texinfo: Updated for --allow-multiple-definition and "-z muldefs". * ldmain.c (main): Initialize the allow_multiple_definition field to false. * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New. (ld_options): Add --allow-multiple-definition. (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
2002-05-222002-05-21 H.J. Lu (hjl@gnu.org)H.J. Lu2-0/+6
* bfdlink.h (bfd_link_info): Add allow_multiple_definition.
2002-05-222002-05-21 H.J. Lu (hjl@gnu.org)H.J. Lu2-28/+34
* linker.c (_bfd_generic_link_add_one_symbol): Allow multiple definition.
2002-05-22* config/alpha/tm-nbsd.h: Include solib.h.Jason Thorpe2-0/+5
2002-05-22* alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't makeJason Thorpe2-11/+16
assumptions about the host's byte order.
2002-05-22 * elf64-ppc.c (ppc64_elf_size_stubs): Don't strip .branch_lt.Alan Modra2-6/+19
(ppc64_elf_relocate_section): Handle unresolved relocs in opd.
2002-05-22* Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.hJason Thorpe4-2/+13
to dependency list. * alphanbsd-tdep.c: Include solib-svr4.h. * shnbsd-tdep.c: Ditto.
2002-05-22* Makefile.in (armnbsd-tdep.o): Add solib-svr4.h andJason Thorpe39-131/+323
nbsd-tdep.h to dependency list. * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*, i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*, ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use nbsdaout.mh and nbsdelf.mh consistently. * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*, ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use nbsdaout.mt and nbsdelf.mh consistently. * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets. * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move a.out shared library stuff from here... * config/nm-nbsdaout.h: ...to here. * config/tm-nbsd.h: Remove. * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove. * config/arm/nbsd.mh: Remove. * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add nbsd-tdep.o. * config/arm/nbsdaout.mh: New file. * config/arm/nbsdelf.mh: New file. * config/arm/nm-nbsdaout.h: New file. * config/i386/nbsd.mh: Remove. * config/i386/nbsd.mt: Remove. * config/i386/nbsdaout.mh: New file. * config/i386/nbsdaout.mt: New file. * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h. * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h. * config/i386/nm-nbsd.h (REGISTER_U_ADDR, i386_register_u_addr): Remove. * config/i386/nm-nbsdaout.h: New file. * config/i386/nm-nbsdelf.h: Remove. * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h. (USE_STRUCT_CONVENTION): Remove. * config/i386/tm-nbsdaout.h: New file. * config/i386/tm-nbsdelf.h: Remove. * config/m68k/nbsd.mh: Remove. * config/m68k/nbsd.mt: Remove. * config/m68k/nbsdaout.mh: New file. * config/m68k/nbsdaout.mt: New file. * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h. * config/m68k/nm-nbsdaout.h: New file. * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h. (IN_SOLIB_CALL_TRAMPOLINE): Define. * config/ns32k/nbsd.mh: Remove. * config/ns32k/nbsd.mt: Remove. * config/ns32k/nbsdaout.mh: New file. * config/ns32k/nbsdaout.mt: New file. * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. * config/ns32k/nm-nbsdaout.h: New file. * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h. (IN_SOLIB_CALL_TRAMPOLINE): Define. * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h. (SVR4_SHARED_LIBS): Remove. * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h. * config/sparc/nbsd.mh: Remove. * config/sparc/nbsd.mt: Remove. * config/sparc/nbsdaout.mh: New file. * config/sparc/nbsdaout.mt: New file. * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h. * config/sparc/nbsdelf.mt: New file. * config/sparc/nm-nbsdaout.h: New file. * config/sparc/nm-nbsdelf.h: Remove. * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h. * config/sparc/tm-nbsdaout.h: New file.
2002-05-22 * config/tc-mips.c (macro): Relax warning, it's toot strict forThiemo Seufer2-1/+6
embedded-PIC.