Fred Fish [Wed, 28 Feb 1996 23:53:00 +0000 (23:53 +0000)]
* Makefile.in (VERSION): Bump version to 4.15.2 to establish
baseline for gdb 4.16 rerelease testing.
Jeff Law [Wed, 28 Feb 1996 22:39:09 +0000 (22:39 +0000)]
* write.c (fix_new_exp): Don't use #elif. Some compilers
don't handle it.
Fixes build problem with certain versions of the hpux compiler.
Jeff Law [Wed, 28 Feb 1996 20:36:27 +0000 (20:36 +0000)]
* somsolib.c (som_solib_create_inferior_hook): Before returning
call clear_symtab_users.
Fixes minor hpux problem with 7763 patches.
Jason Merrill [Wed, 28 Feb 1996 20:26:15 +0000 (20:26 +0000)]
Wed Feb 28 12:25:46 1996 Jason Merrill <jason@yorick.cygnus.com>
* Makefile.in (taz): Fix quoting.
Jeff Law [Wed, 28 Feb 1996 18:34:32 +0000 (18:34 +0000)]
* config/tc-hppa.c (selector_table): Add "n", "nl", and "nlr" to
the selector table.
(pa_chk_field_selector): Handle new field selectors for SOM.
More new stuff for hpux10.
Jeff Law [Wed, 28 Feb 1996 18:27:51 +0000 (18:27 +0000)]
* libhppa.h (hppa_reloc_field_selector_type): Add R_HPPA_NLSEL
and R_HPPA_NLRSEL.
(e_nsel, e_nlsel, e_nlrsel): Undefine. Add to
hppa_reloc_field_selector_type_alt.
(hppa_field_adjust): Handle e_nlsel, e_nlrsel. Fix e_nsel handling.
* som.c (hppa_som_gen_reloc_type): Handle N', NL' NLR' field
selectors.
(som_write_fixups): Finish handling of R_N0SEL and R_N1SEL.
More hpux10 crud.
Ian Lance Taylor [Wed, 28 Feb 1996 16:01:04 +0000 (16:01 +0000)]
* elf.c (assign_file_positions_for_segments): Adjust the segment
memory size for the alignment of a SEC_ALLOC section, not just a
SEC_LOAD section.
Stan Shebs [Tue, 27 Feb 1996 23:21:35 +0000 (23:21 +0000)]
* mpw-make.sed: Edit out shared library support.
(@TDIRS@): Edit out, can't use genscripts.
Ian Lance Taylor [Tue, 27 Feb 1996 20:46:55 +0000 (20:46 +0000)]
Tue Feb 27 15:09:21 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* configure.tgt (m68k-*-linuxaout*, m68k-*-linux*): New targets.
* emulparams/m68klinux.sh: New file.
* emultempl/linux.em (gld${EMULATION_NAME}_before_allocation):
Call bfd_${EMULATION_NAME}_size_dynamic_sections instead of
bfd_linux_size_dynamic_sections.
* Makefile.in (ALL_EMULATIONS): Add em68klinux.o.
(em68klinux.c): New target.
* configure.host (m68*-*-linuxaout*, m68*-*-linux*): New hosts.
Tue Feb 27 12:55:46 1996 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (ALL_EMULATIONS): Sort into alphabetical order.
Fill in missing entries.
Ian Lance Taylor [Tue, 27 Feb 1996 20:01:48 +0000 (20:01 +0000)]
Tue Feb 27 14:42:27 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* configure.in (m68k-*-linux*aout*, m68k-*-linux*): New targets.
* configure: Rebuild.
* config/te-linux.h (LOCAL_LABELS_FB): Define.
* config/tc-m68k.h (TARGET_FORMAT) [TE_LINUX]: Define to
"a.out-m68k-linux".
* config/tc-m68k.c (comment_chars): Don't include '#' if TE_LINUX
is defined.
David Edelsohn [Tue, 27 Feb 1996 19:35:14 +0000 (19:35 +0000)]
* configure.in (sparclet-*-*): Build everything now.
Ian Lance Taylor [Tue, 27 Feb 1996 19:32:39 +0000 (19:32 +0000)]
Tue Feb 27 14:31:51 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* configure.in (m68k-*-linux*): New host.
Ian Lance Taylor [Tue, 27 Feb 1996 19:31:29 +0000 (19:31 +0000)]
Tue Feb 27 14:17:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* m68klinux.c: New file.
* hosts/m68klinux.h: New file.
* config.bfd (m68*-*-linuxaout*, m68*-*-linux*): New targets.
* configure.in (m68*-*-linux*): New native host.
(m68klinux_vec): New vector.
* configure: Rebuild.
* targets.c (m68klinux_vec): Declare.
* i386linux.c (bfd_i386linux_size_dynamic_sections): Renamed from
bfd_linux_size_dynmic_sections to avoid clash with m68klinux.c.
* bfd-in.h (bfd_i386linux_size_dynamic_sections): Rename
declaration from bfd_linux_size_dynamic_sections.
(bfd_m68klinux_size_dynamic_sections): Declare.
* bfd-in2.h: Rebuild.
* Makefile.in: Rebuild dependencies.
(BFD32_BACKENDS): Add m68klinux.o.
(BFD32_BACKENDS_CFILES): Add m68klinux.c.
Jeff Law [Tue, 27 Feb 1996 18:50:42 +0000 (18:50 +0000)]
* libhppa.h (pa_arch): Add pa20.
(hppa_reloc_field_selector_type): Add R_HPPA_NSEL.
(e_nsel): Undefine. Add to hppa_reloc_field_selector_type_alt.
(hppa_field_adjust): Handle e_nsel.
* som.c: Provide default definitions for many new relocs found only
in hpux10 include files.
(som_fixup_formats): Add several new relocs from hpux10.
(som_hppa_howto_table): Add hpux10 relocs.
(som_write_fixups): Handle R_N0SEL and R_N1SEL hpux10 relocs.
Quick stab at handling some of the new hpux10 features.
Ian Lance Taylor [Tue, 27 Feb 1996 18:06:52 +0000 (18:06 +0000)]
update copyright
Ian Lance Taylor [Tue, 27 Feb 1996 17:59:46 +0000 (17:59 +0000)]
* lexsup.c (parse_args): Recognize --no-whole-archive.
* ldlang.h (lang_input_statement_type): Add whole_archive field.
* ldlang.c (new_afile): Set whole_archive field.
(load_symbols): Check input file specific whole_archive field
rather than global variable.
* ld.texinfo, ld.1: Document --no-whole-archive.
PR 9094.
Stan Shebs [Tue, 27 Feb 1996 03:03:21 +0000 (03:03 +0000)]
* mpw-make.sed: Update to handle shared library support.
Stan Shebs [Tue, 27 Feb 1996 02:13:37 +0000 (02:13 +0000)]
* mpw-make.sed: Update to handle shared library support.
Stan Shebs [Tue, 27 Feb 1996 01:31:28 +0000 (01:31 +0000)]
* mpw-make.sed: Edit out shared library support bits.
David Edelsohn [Mon, 26 Feb 1996 23:42:39 +0000 (23:42 +0000)]
* configure.in (sparc64-*): Use mh-sparcpic if --enabled-shared.
David Edelsohn [Mon, 26 Feb 1996 23:26:30 +0000 (23:26 +0000)]
* config.sub (sparc*frw*): Delete. Use -mflat now.
Ian Lance Taylor [Mon, 26 Feb 1996 22:27:30 +0000 (22:27 +0000)]
* cofflink.c (_bfd_coff_link_input_bfd): When merging, skip names
starting with '$' the way we skip names starting with '.'. When
updating x_endndx, don't be fooled by an index which has been
merged.
PR 9024.
Stan Shebs [Mon, 26 Feb 1996 20:59:24 +0000 (20:59 +0000)]
* mpw-make.sed: Edit out recent shared library support, and
rules to rebuild .h files using doc/chew.
Ian Lance Taylor [Mon, 26 Feb 1996 19:54:58 +0000 (19:54 +0000)]
Mon Feb 26 14:48:39 1996 David Mosberger-Tang <davidm@AZStarNet.com>
* ecoff.c (ecoff_compute_section_file_positions): Adjust the file
size even of sections with no contents.
Ian Lance Taylor [Mon, 26 Feb 1996 19:35:01 +0000 (19:35 +0000)]
* configure: Check for bison before byacc.
Ian Lance Taylor [Mon, 26 Feb 1996 19:01:53 +0000 (19:01 +0000)]
* cofflink.c (_bfd_coff_link_input_bfd): Don't try to optimize a
struct/union/enum type with no elements.
PR 9024.
David Edelsohn [Mon, 26 Feb 1996 18:38:33 +0000 (18:38 +0000)]
* config/tc-sparc.c (sparc_ip): Print all architectures that support
the insn on mismatch.
Stan Shebs [Sun, 25 Feb 1996 22:05:49 +0000 (22:05 +0000)]
Always keep mips vxworks files
Stan Shebs [Sun, 25 Feb 1996 22:05:00 +0000 (22:05 +0000)]
* configure.in (mips*-*-vxworks*): New config.
* configure: Regenerated.
* config/mips/vxmips.mt, config/mips/tm-vxmips.h: New files.
* remote-vxmips.c (vx_convert_to_virtual, vx_convert_from_virtual):
Remove, never used.
Ian Lance Taylor [Sat, 24 Feb 1996 23:58:44 +0000 (23:58 +0000)]
* bfd.c (bfd_errmsg): Handle a NULL return from strerror.
Ian Lance Taylor [Sat, 24 Feb 1996 20:45:20 +0000 (20:45 +0000)]
* archive.c (bfd_generic_archive_p): If the first file in the
archive can not be recognized as an object, don't assume that this
is the wrong format.
PR 9082.
Peter Schauer [Sat, 24 Feb 1996 20:32:48 +0000 (20:32 +0000)]
* partial-stab.h (case N_FUN): Function symbols generated
by SPARCworks cc have a meaningless zero value, do not update
pst->textlow if the function symbol value is zero.
* stabsread.c (define_symbol): Initialize SYMBOL_TYPE field
for function prototype declaration symbols.
Ian Lance Taylor [Sat, 24 Feb 1996 20:03:55 +0000 (20:03 +0000)]
* elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
format is not bfd_object.
(bfd_elf_get_dt_soname): Likewise.
Ian Lance Taylor [Sat, 24 Feb 1996 19:22:35 +0000 (19:22 +0000)]
Sat Feb 24 11:21:49 1996 Alan Modra <alan@spri.levels.unisa.edu.au>:
* Makefile.in ($(OBJDUMP_PROG)): Search $(BFDLIB) before
$(OPCODES).
Michael Meissner [Sat, 24 Feb 1996 14:36:59 +0000 (14:36 +0000)]
Update to 1.0.1
Stu Grossman [Sat, 24 Feb 1996 06:39:44 +0000 (06:39 +0000)]
* remote-e7000.c (e7000_load): New routine to download via the
network.
* (e7000_wait): Don't backup PC when we hit a breakpoint.
Apparantly new sh2 pods get this right...
* (e7000_ops): Add call to e7000_load.
Rob Savoye [Sat, 24 Feb 1996 04:46:41 +0000 (04:46 +0000)]
* configure.in: Add support for a29-coff.
* configure: Rebuild.
Ian Lance Taylor [Fri, 23 Feb 1996 01:15:39 +0000 (01:15 +0000)]
* config/tc-sh.c (sh_coff_frob_file): Don't consider the address
of the section when looking for the R_SH_USES fixup, because the
frag addresses have not yet been adjusted.
PR 9072.
Ian Lance Taylor [Fri, 23 Feb 1996 01:09:38 +0000 (01:09 +0000)]
* gdbinit.in: Set a breakpoint on as_warn_where.
Ian Lance Taylor [Fri, 23 Feb 1996 00:47:32 +0000 (00:47 +0000)]
* gas/mips/lb-xgot.d: Correct.
Ian Lance Taylor [Fri, 23 Feb 1996 00:41:09 +0000 (00:41 +0000)]
* config/tc-mips.c (macro): Add missing arguments to macro_build
omitted in last change. From Jim Wilson <wilson@cygnus.com>.
Michael Meissner [Thu, 22 Feb 1996 20:11:41 +0000 (20:11 +0000)]
Add input support; at end of user writes, call fflush
Michael Meissner [Thu, 22 Feb 1996 16:32:31 +0000 (16:32 +0000)]
fix typo
J.T. Conklin [Thu, 22 Feb 1996 09:11:16 +0000 (09:11 +0000)]
* config/m68k/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h},
m68knbsd-nat.c: New files, support for NetBSD/m68k.
* configure.in (m68k-*-netbsd*): New config.
* configure: Regenerated.
Fred Fish [Thu, 22 Feb 1996 01:58:53 +0000 (01:58 +0000)]
* standalone.c (open, _initialize_standalone): Fix obvious typos
reported by Martin Pool <martin@citr.uq.oz.au>.
Fred Fish [Wed, 21 Feb 1996 23:23:38 +0000 (23:23 +0000)]
Back out change to signals.exp (test_handle_all_print): Add setup_xfail for "alpha-dec-osf2*"
This problem appears to be random, possibly a dejagnu problem.
Ian Lance Taylor [Wed, 21 Feb 1996 22:02:54 +0000 (22:02 +0000)]
* config/tc-h8300.c (tc_reloc_mangle): Change reloc based on size
if it is TC_CONS_RELOC. Set a size of 4 to R_RELLONG.
PR 5166.
Michael Meissner [Wed, 21 Feb 1996 21:58:43 +0000 (21:58 +0000)]
Add more write system calls; Add system call tracing
Jeff Law [Wed, 21 Feb 1996 21:27:08 +0000 (21:27 +0000)]
* solib.c (solib_create_inferior_hook): Fix thinko.
Don't screw sunos4 with 7763 fixes..
Ian Lance Taylor [Wed, 21 Feb 1996 18:59:56 +0000 (18:59 +0000)]
* coff-sh.c (sh_relax_delete_bytes): Correct range of R_SH_USES
reloc.
PR 9043.
Michael Meissner [Wed, 21 Feb 1996 18:58:31 +0000 (18:58 +0000)]
Fix -m switch
Ian Lance Taylor [Wed, 21 Feb 1996 17:38:36 +0000 (17:38 +0000)]
remove extraneous comment characters
David Edelsohn [Wed, 21 Feb 1996 17:26:21 +0000 (17:26 +0000)]
* config/tc-sparc.c (sparc_ip): Recognize %asr0 for v8.
David Edelsohn [Wed, 21 Feb 1996 17:25:13 +0000 (17:25 +0000)]
(sparc_ip): Recognize %asr0.
Yes, matra really wants this.
Ian Lance Taylor [Wed, 21 Feb 1996 17:18:42 +0000 (17:18 +0000)]
regenerate configure scripts with autoconf 2.7
Ian Lance Taylor [Wed, 21 Feb 1996 17:02:23 +0000 (17:02 +0000)]
* Makefile.in (all): Simplify.
(clean, mostlyclean): SUBDIRS may contain whitespace; fix the loop
as in the all target.
(distclean, maintainer-clean, realclean): Likewise.
(install): Likewise.
Michael Meissner [Wed, 21 Feb 1996 16:47:06 +0000 (16:47 +0000)]
Update to 1995-02-20 release
Jeff Law [Wed, 21 Feb 1996 08:22:42 +0000 (08:22 +0000)]
Minor tweak.
Jeff Law [Wed, 21 Feb 1996 07:04:03 +0000 (07:04 +0000)]
* solib.c (solib_break_names): Define for Solaris and Linux.
(enable_break): For SVR4 systems, first try to use the debugger
interfaces in the dynamic linker to track shared library events
as they happen, then fall back to BKPT_AT_SYMBOL code. Convert
BKPT_AT_SYMBOL code to use shared library event breakpoints.
(solib_create_inferior_hook): Simplify BKPT_AT_SYMBOL code,
it no longer needs to restart/wait on the inferior.
* symfile.c (find_lowest_section): No longer static.
* symfile.h (find_lowest_section): Corresponding changes.
Wraps up 7763 work, simplifies BKPT_AT_SYMBOL code somewhat, and allows
debugging of startup code.
Jeff Law [Wed, 21 Feb 1996 06:41:25 +0000 (06:41 +0000)]
Commit misplaced ChangeLog entry.
David Edelsohn [Wed, 21 Feb 1996 05:50:22 +0000 (05:50 +0000)]
* config/tc-sparc.c (parse_keyword_arg): Accept leading '%'.
(sparc_ip): Accept %asr[1..31] for v8 and %asr[%16..31] for v9.
Recognize [uU] format args as sparclet cpregs.
David Edelsohn [Wed, 21 Feb 1996 05:50:03 +0000 (05:50 +0000)]
* config/tc-sparc.c (parse_keyword_arg): Accept leadling '%'.
(sparc_ip): Accept %asr[1..31] for v8 and %asr[%16..31] for v9.
Recognize [uU] format args as sparclet cpregs.
David Edelsohn [Wed, 21 Feb 1996 05:47:27 +0000 (05:47 +0000)]
* sparc-opc.c (v8,v6notv9): Add MASK_SPARCLET.
(sparc_opcode_archs): Add MASK_V8 to sparclet entry.
(sparc_opcodes): Add sparclet insns.
(sparclet_cpreg_table): New static local.
(sparc_{encode,decode}_sparclet_cpreg): New functions.
* sparc-dis.c (print_insn_sparc): Handle sparclet cpregs.
David Edelsohn [Wed, 21 Feb 1996 04:47:16 +0000 (04:47 +0000)]
* sparc.h (sparc_{encode,decode}_sparclet_cpreg): Declare.
Mark operand letters uU as in use.
Fred Fish [Wed, 21 Feb 1996 03:40:05 +0000 (03:40 +0000)]
* gdb.base/signals.exp: Change setup_xfail for "alpha-*-osf2"
to "alpha-*-osf2*" and add comment.
* gdb.base/a1-selftest.exp (test_with_self): Remove "alpha-dec-osf2*"
setup_xfail for "step over execarg initialization" and
"step over corearg initialization".
* gdb.base/callfuncs.exp (do_function_calls): Restore setup_xfail
for "hppa*-*-*", "sparc-*-*", "mips*-*-*", and "alpha-dec-osf2*".
* gdb.base/corefile.exp: Add "alpha-dec-osf2*" setup_xfail when not
gcc compiled for "print coremaker_bss", "print coremaker_ro",
"print func2::coremaker_local", and "backtrace in corefile.exp".
* gdb.base/signals.exp: Build and source signals.ci.
(test_handle_all_print): Add setup_xfail for "alpha-dec-osf2*".
Change "alpha-dec-osf2*" setup_xfail for "bt in signals.exp"
to be for gcc only.
* lib/gdb.exp: Move verbose statements outside conditionals.
Fred Fish [Wed, 21 Feb 1996 03:38:45 +0000 (03:38 +0000)]
* config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Define to 1.
* config/mips/tm-mips.h: Ditto.
* config/pa/tm-hppa.h: Ditto.
* config/rs6000/tm-rs6000.h: Ditto.
* config/sparc/tm-sparc.h: Ditto.
Fred Fish [Wed, 21 Feb 1996 03:36:07 +0000 (03:36 +0000)]
* valops.c (COERCE_FLOAT_TO_DOUBLE): Define default value.
(value_arg_coerce): Use COERCE_FLOAT_TO_DOUBLE.
Ian Lance Taylor [Wed, 21 Feb 1996 03:30:01 +0000 (03:30 +0000)]
* config/tc-sh.c (sh_handle_align): Don't emit R_SH_ALIGN relocs
in bss_section.
PR 9044.
Ian Lance Taylor [Wed, 21 Feb 1996 02:51:02 +0000 (02:51 +0000)]
* sunos.c (SUNOS_CONSTRUCTOR): Define.
(sunos_add_one_symbol): Don't let a symbol from a dynamic object
override a constructor symbol. Set SUNOS_CONSTRUCTOR when
appropriate.
J.T. Conklin [Wed, 21 Feb 1996 02:00:10 +0000 (02:00 +0000)]
* config/{i386,ns32k}/nbsd.mh (NATDEPFILES): Remove core-aout.o.
J.T. Conklin [Wed, 21 Feb 1996 01:52:37 +0000 (01:52 +0000)]
* config/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Defined.
* config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
#ifdef'd out definitions --- Causes serious gdb failures on
the i386. Need to investigate further before enabling.
* i386b-nat.c (fetch_inferior_registers, store_inferior_registers,
fetch_core_registers): New functions. These functions are defined
if FETCH_INFERIOR_REGISTERS is set. Registers are fetched/stored
with ptrace PT_GETREGS/PT_SETREGS.
J.T. Conklin [Wed, 21 Feb 1996 01:02:10 +0000 (01:02 +0000)]
* config.in: Regenerated.
Stu Grossman [Wed, 21 Feb 1996 00:57:10 +0000 (00:57 +0000)]
* findvar.c (extract_floating store_floating): Replace `long
double' with `DOUBLEST'.
J.T. Conklin [Wed, 21 Feb 1996 00:29:38 +0000 (00:29 +0000)]
* bfd.c (tdata): Add netbsd_core_data.
* bfd-in2.h: Regenerated.
Fred Fish [Tue, 20 Feb 1996 23:51:27 +0000 (23:51 +0000)]
* gdb.c++/misc.cc: Add test code from Mike Stump.
* gdb.c++/misc.exp: Add test to print s.a, for Mike Stump.
Ian Lance Taylor [Tue, 20 Feb 1996 21:12:02 +0000 (21:12 +0000)]
* configure.tgt: Correct gldi960 to gld960.
Fred Fish [Tue, 20 Feb 1996 16:31:32 +0000 (16:31 +0000)]
* coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
Remove duplicate definition of gp.
J.T. Conklin [Tue, 20 Feb 1996 07:11:38 +0000 (07:11 +0000)]
* config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
Define.
Fred Fish [Tue, 20 Feb 1996 07:00:40 +0000 (07:00 +0000)]
Add bcache.c and bcache.h
Ian Lance Taylor [Mon, 19 Feb 1996 21:12:48 +0000 (21:12 +0000)]
* coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Don't
assume that we can set the GP value and then get the same value,
since it won't be true if the output file is neither ELF nor
ECOFF.
* coff-mips.c (mips_adjust_reloc_in): Don't bother to use
_bfd_get_gp_value here.
(mips_gprel_reloc): Don't assume we can set and get the GP value.
* elf32-mips.c (mips_elf_hi16_reloc): Get gp value from
mips_elf_final_gp.
(mips_elf_lo16_reloc): Likewise.
(mips_elf_final_gp): Add pgp parameter. Set it to the GP value.
Don't require that the BFD be ELF.
(mips_elf_gprel16_reloc): Get gp value from mips_elf_final_gp.
(mips_elf_gprel32_reloc): Likewise.
(mips_elf_relocate_section): Don't assume we can set and get the
GP value.
(mips_elf_finish_dynamic_symbol): Don't bother to use
_bfd_get_gp_value here.
* elf32-mips.c (mips_elf_create_procedure_table): Initialize sv.
Don't change epdr between malloc and free. Be careful not to free
NULL pointers. Zero out the first RPDR.
Fred Fish [Mon, 19 Feb 1996 20:46:43 +0000 (20:46 +0000)]
* dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
for CORE_ADDR values.
(new_symbol): Use SYMBOL_VALUE_ADDRESS for CORE_ADDR values.
* symfile.h (add_psymbol_{,addr}to_list): Add prototypes.
Ian Lance Taylor [Mon, 19 Feb 1996 19:29:17 +0000 (19:29 +0000)]
* config/tc-sparc.h (TC_RELOC_RTSYM_LOC_FIXUP): Check S_IS_WEAK as
well as S_IS_EXTERNAL.
(tc_fix_adjustable): Likewise.
* config/tc-sparc.c (md_apply_fix): In OBJ_ELF case, check for
S_IS_WEAK as well as S_IS_EXTERNAL when deciding whether to return
early.
(tc_gen_reloc): Check S_IS_WEAK as wel as S_IS_EXTERNAL when
deciding whether to convert BFD_RELOC_32_PCREL_S2 if PIC.
Ian Lance Taylor [Mon, 19 Feb 1996 17:45:28 +0000 (17:45 +0000)]
* configure.host: On Linux, only pass -rpath option if $(libdir)
is neither /lib nor /usr/lib. From Alan Modra
<alan@mullet.Levels.UniSA.Edu.Au>.
Ian Lance Taylor [Mon, 19 Feb 1996 17:41:04 +0000 (17:41 +0000)]
* elf-bfd.h (struct elf_obj_tdata): Rename dt_needed_name to
dt_name.
(elf_dt_name): Rename from elf_dt_needed_name.
* elf.c (bfd_elf_set_dt_needed_name): Use elf_dt_name, not
elf_dt_needed_name.
(bfd_elf_get_dt_soname): New function.
* elflink.h (elf_link_add_object_symbols): Use elf_dt_name, not
elf_dt_needed_name. Save the SONAME back in elf_dt_name.
* bfd-in.h (bfd_elf_get_dt_soname): Declare.
* bfd-in2.h: Rebuild.
Ian Lance Taylor [Mon, 19 Feb 1996 17:40:42 +0000 (17:40 +0000)]
* emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Check
the SONAME if it is available.
(gld${EMULATION_NAME}_stat_needed): Use the SONAME, not the
filename, when checking for conflicting library versions. Don't
assume that the suffix is only numbers and dots.
Jeff Law [Mon, 19 Feb 1996 17:38:32 +0000 (17:38 +0000)]
* symtab.h (looup_minimal_symbol_solib_trampoline): Declare.
Minor build nit.
* breakpoint.h (remove_solib_event_breakpoints): Declare.
* breakpoint.c (remove_solib_event_breakpoints): New function.
* somsolib.c (solib_create_inferior_hook): Remove all solib event
breakpoints before inserting any new ones. Use a solib event
breakpoint for the breakpoint at "_start".
Remove extraneous "\n" from calls to warning.
Don't leave bogus breakpoints in the breakpoint chain. Simplify
solib_create_inferior_hook and allow for debugging of startup code
(more 7763 related changes).
* breakpoint.c (breakpoint_1): Add missing "sigtramp" to bptypes
name array.
Another minor nit.
Ian Lance Taylor [Mon, 19 Feb 1996 17:34:43 +0000 (17:34 +0000)]
* configure.in: Set and substitute SHLIB_DEP.
* configure: Rebuild.
* Makefile.in (SHLIB_DEP): New variable.
(LIBIBERTY_LISTS, BFD_LIST): New variables.
(stamp-piclist): Depend upon LIBIBERTY_LISTS and BFD_LIST. If
COMMON_SHLIB, add them to piclist with appropriate modifications.
($(SHLIB)): Depend upon $(SHLIB_DEP). Don't check COMMON_SHLIB
here: just use piclist.
Ian Lance Taylor [Mon, 19 Feb 1996 16:46:39 +0000 (16:46 +0000)]
* Makefile.in: Make everything which depends upon all-bfd also
depend upon all-opcodes, in case --with-commonbfdlib is used.
Ian Lance Taylor [Mon, 19 Feb 1996 16:17:33 +0000 (16:17 +0000)]
* ld.texinfo: Mention that -R can be used for -rpath.
David Edelsohn [Mon, 19 Feb 1996 10:58:20 +0000 (10:58 +0000)]
* elf32-sparc.c (elf32_sparc_reloc_type_lookup): Renamed from
_bfd_sparc_elf_reloc_type_lookup.
(bfd_elf32_bfd_reloc_type_lookup): Update.
* elf64-sparc.c (SPARC64_OLD_RELOCS): Define.
(sparc64_elf_howto_table): Define.
(sparc_reloc_map): Define.
(sparc64_elf_reloc_type_lookup): New function.
(sparc_elf_wdisp16_reloc): New function.
(elf_info_to_howto): Use sparc64_elf_howto_table.
(sparc64_elf_relocate_section): Likewise.
(bfd_elf64_bfd_reloc_type_lookup): Update.
David Edelsohn [Mon, 19 Feb 1996 10:48:27 +0000 (10:48 +0000)]
* gas/sparc/{asi,membar,prefetch,rdpr,synth64,wrpr}.d: Pass -Av9
to gas.
* gas/sparc/addend.exp: Execute for any sparc cpu.
* gas/sparc/{mismatch.exp,mism-1.s}: New test.
David Edelsohn [Mon, 19 Feb 1996 10:43:01 +0000 (10:43 +0000)]
* config/tc-sparc.c (max_architecture): Change to sparclite for
32 bit arch.
(default_compatible): Delete.
(sparc_ffs): New function.
(md_begin): Only call SPARC_OPCODE_CONFLICT_P once.
(sparc_ip): Rewrite architecture match and bump logic.
David Edelsohn [Mon, 19 Feb 1996 10:15:15 +0000 (10:15 +0000)]
* sparc-dis.c (MASK_V9,V9_ONLY_P,V9_P): Define.
(print_insn_sparc): Rewrite v9/not-v9 tests.
(compare_opcodes): Likewise.
* sparc-opc.c (MASK_<ARCH>): Define.
(v6,v7,v8,sparclite,v9,v9a): Redefine.
(sparclet,v6notv9): Define.
(sparc_opcode_archs): Delete member `conflicts'. Add `supported'.
(sparc_opcodes): Delete F_NOTV9, use v6notv9 instead.
Peter Schauer [Sun, 18 Feb 1996 23:09:04 +0000 (23:09 +0000)]
* mipsread.c (mipscoff_symfile_read): Unconditionally add
alpha coff dynamic symbols for all symbol files. Makes skipping
over the trampoline code work when stepping from a function in a
shared library into a function in a different shared library.
Ian Lance Taylor [Sun, 18 Feb 1996 20:07:36 +0000 (20:07 +0000)]
* configure.in: Check for 'do not mix' from native linker before
trying to use -rpath.
* configure: Rebuild.
Ian Lance Taylor [Sun, 18 Feb 1996 20:06:40 +0000 (20:06 +0000)]
* configure.host: Check for 'do not mix' from native linker before
trying to use -rpath.
Stu Grossman [Sun, 18 Feb 1996 17:34:09 +0000 (17:34 +0000)]
* config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define
RETURN_VALUE_ON_STACK to return long doubles on the stack.
Fred Fish [Sat, 17 Feb 1996 23:51:55 +0000 (23:51 +0000)]
* Makefile.in (ch-exp.o): Add dependencies.
(various): Add gdb_string.h to dependencies that need it.
Fred Fish [Sat, 17 Feb 1996 17:35:36 +0000 (17:35 +0000)]
* symmisc.c (print_symbol_bcache_statistics): Update description for
printing byte cache statistics.
Stu Grossman [Sat, 17 Feb 1996 00:07:35 +0000 (00:07 +0000)]
* Add native support for long double data type.
* c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
to store actual data. Change types of INT and FLOAT tokens to
typed_val_int and typed_val_float respectively. Create new token
DOUBLE_KEYWORD to specify the string `double'. Make production
for FLOAT use type determined by parse_number. Add production for
"long double" data type.
* (parse_number): Use sscanf to parse numbers as float, double or
long double depending upon the type of typed_val_float.dval. Also
allow user to specify `f' or `l' suffix to explicitly specify
float or long double constants. Change typed_val to
typed_val_int.
* (yylex): Change typed_val to typed_val_int. Also, scan for
"double" keyword.
* coffread.c (decode_base_type): Add support for T_LNGDBL basic
type.
* configure, configure.in: Add check for long double support in
the host compiler.
* defs.h: Define DOUBLEST appropriatly depending on whether
HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
for functions that handle this type.
* expression.h (union exp_element): doubleconst is now type
DOUBLEST.
* m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
* findvar.c (extract_floating): Make return value be DOUBLEST.
Also, add support for numbers with size of long double.
* (store_floating): Arg `val' is now type DOUBLEST. Handle all
floating types.
* parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
DOUBLEST.
* valarith.c (value_binop): Change temp variables v1, v2 and v to
type DOUBLEST. Coerce type of result to long double if either op
was of that type.
* valops.c (value_arg_coerce): If argument type is bigger than
double, coerce to long double.
* (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
arg type is float and > 8 bytes, then use pointer-to-object
calling conventions.
* valprint.c (print_floating): Arg doub is now type DOUBLEST.
Use appropriate format and precision to print out floating point
values.
* value.h: Fixup prototypes for value_as_double,
value_from_double, and unpack_double to use DOUBLEST.
* values.c (record_latest_value): Remove check for invalid
floats. Allow history to store them so that people may examine
them in hex if they want.
* (value_as_double unpack_double): Change return value to DOUBLEST.
* (value_from_double): Arg `num' is now DOUBLEST.
* (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
specific) to expect certain types to always be returned on the stack.