binutils-gdb.git
28 years ago * dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
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.

28 years ago * config/tc-sparc.h (TC_RELOC_RTSYM_LOC_FIXUP): Check S_IS_WEAK as
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.

28 years ago * configure.host: On Linux, only pass -rpath option if $(libdir)
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>.

28 years ago * elf-bfd.h (struct elf_obj_tdata): Rename dt_needed_name to
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.

28 years ago * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Check
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.

28 years ago * symtab.h (looup_minimal_symbol_solib_trampoline): Declare.
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.

28 years ago * configure.in: Set and substitute SHLIB_DEP.
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.

28 years ago * Makefile.in: Make everything which depends upon all-bfd also
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.

28 years ago * ld.texinfo: Mention that -R can be used for -rpath.
Ian Lance Taylor [Mon, 19 Feb 1996 16:17:33 +0000 (16:17 +0000)]
* ld.texinfo: Mention that -R can be used for -rpath.

28 years ago * elf32-sparc.c (elf32_sparc_reloc_type_lookup): Renamed from
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.

28 years ago * gas/sparc/{asi,membar,prefetch,rdpr,synth64,wrpr}.d: Pass -Av9
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.

28 years ago * config/tc-sparc.c (max_architecture): Change to sparclite for
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.

28 years ago * sparc-dis.c (MASK_V9,V9_ONLY_P,V9_P): Define.
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.

28 years ago * mipsread.c (mipscoff_symfile_read): Unconditionally add
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.

28 years ago * configure.in: Check for 'do not mix' from native linker before
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.

28 years ago * configure.host: Check for 'do not mix' from native linker before
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.

28 years ago * config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define
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.

28 years ago * Makefile.in (ch-exp.o): Add dependencies.
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.

28 years ago * symmisc.c (print_symbol_bcache_statistics): Update description for
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.

28 years ago * Add native support for long double data type.
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.

28 years ago * config/unix-gdb.exp: Remove extraneous newlines from end of file.
Fred Fish [Fri, 16 Feb 1996 22:55:42 +0000 (22:55 +0000)]
* config/unix-gdb.exp: Remove extraneous newlines from end of file.

28 years ago * bcache.c, bcache.h: New files to implement a byte cache.
Fred Fish [Fri, 16 Feb 1996 22:14:47 +0000 (22:14 +0000)]
* bcache.c, bcache.h: New files to implement a byte cache.
* Makefile.in (SFILES): Add bcache.c.
(symtab_h): Add bcache.h.
(HFILES_NO_SRCDIR): add bcache.h
(COMMON_OBJS): Add bcache.o
(bcache.o): New target.
* dbxread.c (start_psymtab): Make global_syms & static_syms
  type "partial_symbol **".
* hpread.c (hpread_start_symtab):  Ditto.
* os9kread.c (os9k_start_psymtab):  Ditto.
* stabsread.h (start_psymtab):  Ditto.
* {symfile.c, symfile.h} (start_psymtab_common):  Ditto.
* maint.c (maintenance_print_statistics): Call
  print_symbol_bcache_statistics.
* objfiles.c (allocate_objfile): Initialize psymbol bcache malloc
and free pointers.
* solib.c (allocate_rt_common_objfile): Ditto.
* symfile.c (reread_symbols):  Ditto.
(free_objfile): Free psymbol bcache when objfile is freed.
(objfile_relocate): Use new indirect psymbol pointers.
* objfiles.h (struct objfile): Add psymbol cache.
* symfile.c (compare_psymbols): Now passed pointers to pointers to
psymbols.
(reread_symbols): Free psymbol bcache when freeing other objfile
resources.
(add_psymbol_to_list, add_psymbol_addr_to_list): Initialize new
psymbol using the psymbol bcache.
(init_psymbol_list): Psymbol lists now contain pointers rather than
the actual psymbols.
* symfile.h (psymbol_allocation_list): Psymbol lists now dynamically
grown arrays of pointers.
(ADD_PSYMBOL_VT_TO_LIST): Initialize new symbol using the psymbol
bcache.
* symmisc.c (print_partial_symbols): Now takes pointer to pointer
to partial symbol.
(print_symbol_bcache_statistics): New function to print per objfile
  bcache statistics.
(print_partial_symbol, print_partial_symbols,
  maintenance_check_symtabs, extend_psymbol_list):
  Account for change to pointer to pointer to partial symbol.
* symtab.c (find_pc_psymbol, lookup_partial_symbol, decode_line_2,
make_symbol_completion_list):
  Account for change to pointer to pointer to partial symbol.
* symtab.h (bcache.h): Include.
* xcoffread.c (xcoff_start_psymtab): Make global_syms & static_syms
  type "partial_symbol **".

28 years ago * config/obj-coff.h (SF_ADJ_LNNOPTR): Define (non BFD_ASSEMBLER).
Ian Lance Taylor [Fri, 16 Feb 1996 21:56:19 +0000 (21:56 +0000)]
* config/obj-coff.h (SF_ADJ_LNNOPTR): Define (non BFD_ASSEMBLER).
(SF_GET_ADJ_LNNOPTR): Define (non BFD_ASSEMBLER).
(SF_SET_ADJ_LNNOPTR): Define (non BFD_ASSEMBLER).
* config/obj-coff.c (obj_coff_endef): Set ADJ_LNNOPTR when LNNOPTR
is set.
(w_symbols): If ADJ_LNNOPTR is set, add the section lnnoptr field
to the symbol lnnoptr field, to get the correct file offset.
PR 7428.

28 years ago * dwarfread.c (free_utypes): New function.
Fred Fish [Fri, 16 Feb 1996 21:46:02 +0000 (21:46 +0000)]
* dwarfread.c (free_utypes): New function.
(read_file_scope): Call free_utypes as cleanup, rather than just
  freeing the utypes pointer.

28 years ago * bfd.c (_bfd_get_gp_value): New function.
Ian Lance Taylor [Fri, 16 Feb 1996 19:29:01 +0000 (19:29 +0000)]
* bfd.c (_bfd_get_gp_value): New function.
(_bfd_set_gp_value): New function.
* libbfd-in.h (_bfd_get_gp_value): Declare.
(_bfd_set_gp_value): Declare.
* libbfd.h: Rebuild.
* coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
_bfd_get_gp_value and _bfd_set_gp_value rather than referring
directly to the fields in the tdata information.
(alpha_relocate_section): Likewise.
* coff-mips.c (mips_adjust_reloc_in): Likewise.
(mips_gprel_reloc): Likewise.
(mips_relocate_section): Likewise.
* elf32-mips.c (mips_elf_hi16_reloc): Likewise.
(mips_elf_lo16_reloc): Likewise.
(mips_elf_final_gp): Likewise.
(mips_elf_gprel16_reloc): Likewise.
(mips_elf_gprel32_reloc): Likewise.
(mips_elf_relocate_section): Likewise.
(mips_elf_finish_dynamic_symbol): Likewise.
PR 8449.

28 years ago * sparc.h (sparc_opcode_lookup_arch) Make return type in
Jeff Law [Fri, 16 Feb 1996 19:24:15 +0000 (19:24 +0000)]
    * sparc.h (sparc_opcode_lookup_arch) Make return type in
        declaration consistent with return type in definition.

28 years ago * bout.c (b_out_set_arch_mach): Recognize bfd_mach_i960_jx.
Ian Lance Taylor [Fri, 16 Feb 1996 17:48:04 +0000 (17:48 +0000)]
* bout.c (b_out_set_arch_mach): Recognize bfd_mach_i960_jx.

28 years agofix up i960xl sanitization
Ian Lance Taylor [Fri, 16 Feb 1996 17:43:56 +0000 (17:43 +0000)]
fix up i960xl sanitization

28 years agoUpdate to rev 1.0 from andrew
Michael Meissner [Fri, 16 Feb 1996 15:51:57 +0000 (15:51 +0000)]
Update to rev 1.0 from andrew

28 years ago * demangle.c (is_cplus_marker): New function, checks if a
Fred Fish [Fri, 16 Feb 1996 06:14:15 +0000 (06:14 +0000)]
* demangle.c (is_cplus_marker):  New function, checks if a
character is one of the commonly used C++ marker characters.
* defs.h (is_cplus_marker):  Add prototype.
* c-typeprint.c (c_type_print_base), ch-lang.c (chill_demangle),
cp-valprint.c (cp_print_class_method), mdebugread.c (parse_symbol),
stabsread.c (define_symbol, read_member_functions, read_struct_fields),
symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P),
values.c (vb_match):  Use is_cplus_marker instead of comparison
with CPLUS_MARKER.

28 years ago * symfile.h (INLINE_ADD_PSYMBOL): Default this to 0 and possibly
Fred Fish [Fri, 16 Feb 1996 02:10:15 +0000 (02:10 +0000)]
* symfile.h (INLINE_ADD_PSYMBOL): Default this to 0 and possibly
delete entirely someday.

28 years agoDo not build gdb if building native NT compilers on a UNIX host with a cross compiler
Michael Meissner [Fri, 16 Feb 1996 00:53:00 +0000 (00:53 +0000)]
Do not build gdb if building native NT compilers on a UNIX host with a cross compiler

28 years agoMake configure work on first stage of HP/UX and Solaris.
Michael Meissner [Thu, 15 Feb 1996 23:46:30 +0000 (23:46 +0000)]
Make configure work on first stage of HP/UX and Solaris.

28 years ago * mpw-make.sed: Edit out makefile rebuild rule.
Stan Shebs [Thu, 15 Feb 1996 23:30:53 +0000 (23:30 +0000)]
* mpw-make.sed: Edit out makefile rebuild rule.
(host_alias, target_alias): Comment out instead of deleting.
(@LIBS@): Edit out references.

28 years agoMake simulator build on Solaris 2.4
Michael Meissner [Thu, 15 Feb 1996 23:18:56 +0000 (23:18 +0000)]
Make simulator build on Solaris 2.4

28 years ago * mh-cxux (CC): New variable.
Ian Lance Taylor [Thu, 15 Feb 1996 22:44:28 +0000 (22:44 +0000)]
* mh-cxux (CC): New variable.
(CFLAGS, LDFLAGS): Remove.
* mh-ncrsvr43 (CC): New variable.
(CFLAGS): Remove.
* mh-solaris (CFLAGS): Remove.

28 years ago * configure.in: Don't get CC from the host Makefile fragment if we
Ian Lance Taylor [Thu, 15 Feb 1996 22:43:59 +0000 (22:43 +0000)]
* configure.in: Don't get CC from the host Makefile fragment if we
can find gcc in PATH, or if this is a Canadian Cross.  Move the
Solaris test for /usr/ucb/cc to the post target script, just after
the compiler sanity test.

28 years ago * configure.in: Remove explicit substitution of CFLAGS; autoconf
Ian Lance Taylor [Thu, 15 Feb 1996 22:17:27 +0000 (22:17 +0000)]
* configure.in: Remove explicit substitution of CFLAGS; autoconf
does it anyhow.
* configure: Rebuild.
* Makefile.in (LDFLAGS): Set to @LDFLAGS@.

28 years ago * configure.in: Don't tamper with LDFLAGS. Call AC_PROG_CC before
Ian Lance Taylor [Thu, 15 Feb 1996 22:12:32 +0000 (22:12 +0000)]
* configure.in: Don't tamper with LDFLAGS.  Call AC_PROG_CC before
configure.host.
* configure: Rebuild.

28 years ago * configure.in: Call AC_PROG_CC before configure.host.
Ian Lance Taylor [Thu, 15 Feb 1996 22:10:41 +0000 (22:10 +0000)]
* configure.in: Call AC_PROG_CC before configure.host.
* configure: Rebuild.

28 years agomodify last change
Ian Lance Taylor [Thu, 15 Feb 1996 22:09:10 +0000 (22:09 +0000)]
modify last change

28 years ago * configure.in: Call AC_PROG_CC before configure.host. Don't
Ian Lance Taylor [Thu, 15 Feb 1996 22:05:32 +0000 (22:05 +0000)]
* configure.in: Call AC_PROG_CC before configure.host.  Don't
substitute CFLAGS.
* configure: Rebuild.
* configure.host: Don't set information which autoconf should
figure out, namely CC, CFLAGS, LDFLAGS, AR, and RANLIB.
* Makefile.in (CFLAGS): Set to -g, not @CFLAGS@.

28 years agoDo not set undefined symbols to BSF_OBJECT.
Michael Meissner [Thu, 15 Feb 1996 21:47:33 +0000 (21:47 +0000)]
Do not set undefined symbols to BSF_OBJECT.

28 years ago * configure.in: Call AC_PROG_CC before configure.host.
Ian Lance Taylor [Thu, 15 Feb 1996 21:32:43 +0000 (21:32 +0000)]
* configure.in: Call AC_PROG_CC before configure.host.
* configure: Rebuild.
* configure.host: Remove go32 host, since it should no longer be
necessary.  Don't set CC for romp host.

28 years ago * configure.host: Remove go32 and win32 host information, since it
Ian Lance Taylor [Thu, 15 Feb 1996 21:28:48 +0000 (21:28 +0000)]
* configure.host: Remove go32 and win32 host information, since it
should no longer be needed.

28 years ago * mh-go32: Remove most variable settings, since they presumed a
Ian Lance Taylor [Thu, 15 Feb 1996 21:23:14 +0000 (21:23 +0000)]
* mh-go32: Remove most variable settings, since they presumed a
Canadian Cross, which is now handled correctly by the configure
script.

28 years ago * scripttempl/elf.sc: Don't skip a page in virtual memory space if
Ian Lance Taylor [Thu, 15 Feb 1996 20:28:52 +0000 (20:28 +0000)]
* scripttempl/elf.sc: Don't skip a page in virtual memory space if
the text segment ends exactly on a page boundary.

28 years ago * elf.c (map_sections_to_segments): If we have a .dynamic section,
Ian Lance Taylor [Thu, 15 Feb 1996 20:27:29 +0000 (20:27 +0000)]
* elf.c (map_sections_to_segments): If we have a .dynamic section,
then start a new segment rather than put a writable section in a
readonly segment.

28 years agoForce all PPC symbols that otherwise do not have a symbol type to be BSF_OBJECT
Michael Meissner [Thu, 15 Feb 1996 19:54:38 +0000 (19:54 +0000)]
Force all PPC symbols that otherwise do not have a symbol type to be BSF_OBJECT

28 years ago * Makefile.in (SONAME): Remove leading ../bfd/ from $(SHLIB).
Ian Lance Taylor [Thu, 15 Feb 1996 19:45:45 +0000 (19:45 +0000)]
* Makefile.in (SONAME): Remove leading ../bfd/ from $(SHLIB).

28 years ago * configure: Set and substitute RPATH_ENVVAR.
Ian Lance Taylor [Thu, 15 Feb 1996 19:00:54 +0000 (19:00 +0000)]
* configure: Set and substitute RPATH_ENVVAR.
* configure: Rebuild.
* Makefile.in (RPATH_ENVVAR): New variable.
(check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.

28 years ago * config/unix-gdb.exp: Default timeout in UNIX case to 30 seconds, up
Fred Fish [Thu, 15 Feb 1996 19:00:34 +0000 (19:00 +0000)]
* config/unix-gdb.exp: Default timeout in UNIX case to 30 seconds, up
from dejagnu's apparent default of 10 seconds, which gives random results
when running the tests over NFS on moderately loaded systems.
* lib/gdb.exp (gdb_run_cmd): Add "(timeout)" in timeout case.

28 years ago * configure.in: Substitute RPATH_ENVVAR.
Ian Lance Taylor [Thu, 15 Feb 1996 19:00:07 +0000 (19:00 +0000)]
* configure.in: Substitute RPATH_ENVVAR.
* configure: Rebuild.
* configure.host: Set RPATH_ENVVAR.
* Makefile.in (RPATH_ENVVAR): New variable.
(check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.

28 years ago * configure.in: Substitute RPATH_ENVVAR.
Ian Lance Taylor [Thu, 15 Feb 1996 18:57:34 +0000 (18:57 +0000)]
* configure.in: Substitute RPATH_ENVVAR.
* configure: Rebuild.
* Makefile.in (RPATH_ENVVAR): New variable.
(check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.

28 years ago * configure.host: Set RPATH_ENVVAR.
Ian Lance Taylor [Thu, 15 Feb 1996 18:56:03 +0000 (18:56 +0000)]
* configure.host: Set RPATH_ENVVAR.

28 years ago * mh-sparcpic (PICFLAG): Set to -fPIC, not -fpic.
Ian Lance Taylor [Thu, 15 Feb 1996 18:29:44 +0000 (18:29 +0000)]
* mh-sparcpic (PICFLAG): Set to -fPIC, not -fpic.

28 years ago * Makefile.in: Rebuild dependencies.
Ian Lance Taylor [Thu, 15 Feb 1996 17:48:14 +0000 (17:48 +0000)]
* Makefile.in: Rebuild dependencies.

28 years ago * objcopy.c (smart_rename): Rather than doing chmod then chown, do
Ian Lance Taylor [Thu, 15 Feb 1996 17:46:49 +0000 (17:46 +0000)]
* objcopy.c (smart_rename): Rather than doing chmod then chown, do
chmod without setuid, then chown, then chmod with setuid.

28 years ago * elflink.c (_bfd_elf_create_linker_section): Remove unused
Ian Lance Taylor [Thu, 15 Feb 1996 16:32:47 +0000 (16:32 +0000)]
* elflink.c (_bfd_elf_create_linker_section): Remove unused
zero_section variable.

28 years ago * configure.in: Accept i686. From H.J. Lu <hjl@zoom.com>: i386
Ian Lance Taylor [Thu, 15 Feb 1996 16:22:03 +0000 (16:22 +0000)]
* configure.in: Accept i686.  From H.J. Lu <hjl@zoom.com>: i386
doesn't need opcodes.  If configuring shared, opcodes needs bfd.
* configure: Rebuild.

28 years agoThu Feb 15 10:39:17 1996 H.J. Lu <hjl@zoom.com>
Ian Lance Taylor [Thu, 15 Feb 1996 15:42:10 +0000 (15:42 +0000)]
Thu Feb 15 10:39:17 1996  H.J. Lu  <hjl@zoom.com>

* Makefile.in ($(srcdir)/bfd-in2.h): Rename target from bfd-in2.h.
($(srcdir)/libbfd.h): Rename from libbfd.h.
($(srcdir)/libcoff.h): Rename from libcoff.h.

28 years agoWed Feb 14 19:01:27 1996 Alan Modra <alan@spri.levels.unisa.edu.au>
Ian Lance Taylor [Thu, 15 Feb 1996 00:08:45 +0000 (00:08 +0000)]
Wed Feb 14 19:01:27 1996  Alan Modra  <alan@spri.levels.unisa.edu.au>

* i386-dis.c (onebyte_has_modrm): New static array.
(twobyte_has_modrm): New static array.
(print_insn_i386): Only fetch the mod/reg/rm byte if it is needed.

28 years ago * configure.tgt (*-*-ieee*): New target; use vanilla.
Ian Lance Taylor [Wed, 14 Feb 1996 23:54:05 +0000 (23:54 +0000)]
* configure.tgt (*-*-ieee*): New target; use vanilla.

Wed Feb 14 18:49:01 1996  Alan Modra  <alan@spri.levels.unisa.edu.au>

* configure.in: Redo emulation handling so that each emulation
searches the correct tool directory, based on the target alias.
For example, "configure --enable-targets=m68k-coff i386-linux"
will search /usr/local/i386-linux/lib for linux and
/usr/local/m68k-coff/lib for m68k-coff.
* configure: Rebuild.
* configure.tgt: Add special tdir settings for Linux.
* Makefile.in: Add @TDIRS@.  Pass "$(tdir_EMUL)" to ${GENSCRIPTS}
for each eEMUL.c target.
* genscripts.sh: Accept specific alias as 9th argument, and use it
in LIB_PATH.

28 years agoWed Feb 14 18:14:11 1996 Alan Modra <alan@spri.levels.unisa.edu.au>
Ian Lance Taylor [Wed, 14 Feb 1996 23:15:10 +0000 (23:15 +0000)]
Wed Feb 14 18:14:11 1996  Alan Modra  <alan@spri.levels.unisa.edu.au>

* i386.h (i386_optab): Remove Data32 from pushf and popf.

28 years ago From Alan Modra <alan@spri.levels.unisa.edu.au>:
Ian Lance Taylor [Wed, 14 Feb 1996 23:13:13 +0000 (23:13 +0000)]
From Alan Modra <alan@spri.levels.unisa.edu.au>:
* configure.in: Remove duplicate setting of cpu_type.  Check
whether opcodes library is required for on all targets, not just
primary one.
* configure: Rebuild.

28 years agoWork with HP/UX 9.00
Michael Meissner [Wed, 14 Feb 1996 22:50:23 +0000 (22:50 +0000)]
Work with HP/UX 9.00

28 years agoWed Feb 14 16:29:07 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
Ian Lance Taylor [Wed, 14 Feb 1996 22:40:17 +0000 (22:40 +0000)]
Wed Feb 14 16:29:07 1996  Martin Anantharaman  <martin@mail.imech.uni-duisburg.de>

* ieee.c (ieee_write_expression): Only use an R variable for a
local symbol.  Don't output a zero offset.  Handle a zero address.
(SRC_MASK, PCREL_OFFSET): Define based on KEEPMINUSPCININST.
(rel32_howto, rel16_howto, rel8_howto): Use SRC_MASK and
PCREL_OFFSET.
(parse_expression): Don't try to handle multiple occurrences of a
P variable.  Handle I variables differently from X variables.  Fix
the order of minus expressions.
(ieee_slurp_external_symbols): Generate an I variable for an NN
record.  Fix handling of ATI and ATX records.
(ieee_slurp_sections): Only set minimal section attributes.
Adjust them later, based on the section contents.
(ieee_object_p): Read in the file until just after the ME record.
Call ieee_slurp_section_data to set the section flags.
(do_one): Add iterations parameter.  Only repeat the first load
item.  Set the section and file reloc flags.
(ieee_slurp_section_data): Set section flags.  Pass iterations to
do_one.
(ieee_canonicalize_reloc): Handle I variables.
(do_with_relocs): Only emit relocation size when necessary.
Increase MAXRUN to 127.  Change ov to be assigned, and take
src_mask and pcrel_offset into account.
(ieee_write_data_part): Skip sections that are not loaded.
(ieee_write_external_part): Don't output optional last entry of WX
records.
(ieee_write_me_part): Make setting of me_record neater.
(ieee_generic_stat_arch_elt): Get the size of an archive element.

28 years ago * config.sub: Merge with FSF.
Ian Lance Taylor [Wed, 14 Feb 1996 21:59:31 +0000 (21:59 +0000)]
* config.sub: Merge with FSF.

28 years agoWed Feb 14 16:46:42 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
Ian Lance Taylor [Wed, 14 Feb 1996 21:48:20 +0000 (21:48 +0000)]
Wed Feb 14 16:46:42 1996  Martin Anantharaman  <martin@mail.imech.uni-duisburg.de>

* arsup.c (map_over_list): Reindent.  Don't assume that the
function does not delete the BFD.
(ar_addlib_doer): Don't set prev->next if prev is NULL.

28 years agoWed Feb 14 16:38:36 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
Ian Lance Taylor [Wed, 14 Feb 1996 21:43:54 +0000 (21:43 +0000)]
Wed Feb 14 16:38:36 1996  Martin Anantharaman  <martin@mail.imech.uni-duisburg.de>

* ldlang.c (lang_set_startof): Don't do anything for a
relocateable link.

* ldgram.y (mri_script_file): Call mri_draw_tree.
* mri.c (mri_draw_tree): Make globally visible.  Don't bother to
create memory regions.
(mri_load): Don't call mri_draw_tree.
* mri.h (mri_draw_tree): Declare.

* configure.tgt (m68*-*-psos): New target.
* emulparams/m68kpsos.sh: New file.
* scripttempl/psos.sc: New file.
* Makefile.in (ALL_EMULATIONS): Add em68kpsos.o.
(em68kpsos.c): New target.

28 years agorebuild
Ian Lance Taylor [Wed, 14 Feb 1996 21:40:33 +0000 (21:40 +0000)]
rebuild

28 years agoWed Feb 14 16:33:12 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
Ian Lance Taylor [Wed, 14 Feb 1996 21:37:16 +0000 (21:37 +0000)]
Wed Feb 14 16:33:12 1996  Martin Anantharaman  <martin@mail.imech.uni-duisburg.de>

* read.c (s_mri_sect): Don't return '\0' in type.  Set all
appropriate flags in BFD section.

* configure.in (m68k-*-psos*): New target.
* configure: Rebuild.
* config/te-psos.h: New file.
* config/tc-m68k.c (comment_chars): Don't include '#' if TE_PSOS
is defined.

28 years agoWed Feb 14 16:29:07 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
Ian Lance Taylor [Wed, 14 Feb 1996 21:32:24 +0000 (21:32 +0000)]
Wed Feb 14 16:29:07 1996  Martin Anantharaman  <martin@mail.imech.uni-duisburg.de>

* syms.c (stt): Add entries for zerovars, vars, and code.

* elfcode.h (validate_reloc): New static function.
(write_relocs): Call validate_reloc for non ELF relocs.

* elfxx-target.h (elf_symbol_leading_char): Define if not defined.
(TARGET_BIG_SYM): Use elf_symbol_leading_char.
(TARGET_LITTLE_SYM): Likewise.

* config.bfd (m68*-*-psos*): New target.

28 years ago * ieee.c (ieee_regno_to_genreg): Convert register numbers for m68k
Ian Lance Taylor [Wed, 14 Feb 1996 20:13:13 +0000 (20:13 +0000)]
* ieee.c (ieee_regno_to_genreg): Convert register numbers for m68k
and i960.
(ieee_genreg_to_regno): Likewise.

28 years ago * gas/mips/jal-xgot.d, gas/mips/la-xgot.d: New tests.
Ian Lance Taylor [Wed, 14 Feb 1996 18:51:35 +0000 (18:51 +0000)]
* gas/mips/jal-xgot.d, gas/mips/la-xgot.d: New tests.
* gas/mips/lb-xgot.d, gas/mips/ld-xgot.d: New tests.
* gas/mips/lif-xgot.d, gas/mips/ulh-xgot.d: New tests.
* gas/mips/mips.exp: Run new tests if svr4pic.

28 years ago * config/tc-mips.c (mips_big_got): New static variable.
Ian Lance Taylor [Wed, 14 Feb 1996 18:49:27 +0000 (18:49 +0000)]
* config/tc-mips.c (mips_big_got): New static variable.
(s_extern): Don't declare.
(reg_needs_delay): New static function.
(macro_build): Permit GOT/CALL_HI/LO relocs.
(macro_build_lui): If place is not NULL, use the number in the
expression.
(load_address): Handle mips_big_got case.
(macro): Handle mips_big_got for M_LA_AB, M_JAL_A, and load and
store macros.
(OPTION_XGOT): Define.
(md_longopts): Add "xgot" if OBJ_ELF.
(md_parse_option): Handle -xgot.
(md_show_usage): Mention -xgot.
(md_apply_fix): Permit GOT/CALL_HI/LO relocs.
(tc_gen_reloc): Handle GOT/CALL_HI/LO relocs.

28 years agoWed Feb 14 11:22:27 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Ian Lance Taylor [Wed, 14 Feb 1996 16:23:19 +0000 (16:23 +0000)]
Wed Feb 14 11:22:27 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* config/tc-m68k.c (m68k_ip) [operand kind '#']: When fixing
the byte relocation, point it to the low byte of the word.

28 years ago * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Strip
Ian Lance Taylor [Wed, 14 Feb 1996 16:10:18 +0000 (16:10 +0000)]
* emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Strip
`:foo' from ${ARCH}.

28 years ago * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
Fred Fish [Wed, 14 Feb 1996 07:19:24 +0000 (07:19 +0000)]
* symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
  Use n_psyms in OBJSTAT, not psyms.

28 years agoAdd reloc.c entries MIPS_CALL_HI16/MIPS_CALL_LO16.
Ian Lance Taylor [Wed, 14 Feb 1996 01:36:01 +0000 (01:36 +0000)]
Add reloc.c entries MIPS_CALL_HI16/MIPS_CALL_LO16.

28 years ago * reloc.c (BFD_RELOC_MIPS_GOT_HI16): Define.
Ian Lance Taylor [Tue, 13 Feb 1996 22:08:52 +0000 (22:08 +0000)]
* reloc.c (BFD_RELOC_MIPS_GOT_HI16): Define.
(BFD_RELOC_MIPS_GOT_LO16): Define.
* bfd-in2.h, libbfd.h: Rebuild.
* elf32-mips.c (mips_reloc_map): Map new relocs.

28 years agoTue Feb 13 15:58:58 1996 Bryan Ford <baford@snake.cs.utah.edu>
Ian Lance Taylor [Tue, 13 Feb 1996 21:00:44 +0000 (21:00 +0000)]
Tue Feb 13 15:58:58 1996  Bryan Ford  <baford@snake.cs.utah.edu>

* scripttempl/i386msdos.sc: Don't pad the .text section.  Put
.rodata in .data.

28 years agoTue Feb 13 15:56:22 1996 Bryan Ford <baford@snake.cs.utah.edu>
Ian Lance Taylor [Tue, 13 Feb 1996 21:00:00 +0000 (21:00 +0000)]
Tue Feb 13 15:56:22 1996  Bryan Ford  <baford@snake.cs.utah.edu>

* i386msdos.c: Remove some #if 0 code.
(msdos_write_object_contents): Don't include empty sections in the
size computation, regardless of their address.

28 years ago * configure.in: Set HDLFLAGS for *-*-hpux with --enable-shared.
Ian Lance Taylor [Tue, 13 Feb 1996 20:34:53 +0000 (20:34 +0000)]
* configure.in: Set HDLFLAGS for *-*-hpux with --enable-shared.
* configure: Rebuild.

28 years ago * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
Ian Lance Taylor [Tue, 13 Feb 1996 20:33:12 +0000 (20:33 +0000)]
* configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.

28 years ago * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
Ian Lance Taylor [Tue, 13 Feb 1996 20:24:10 +0000 (20:24 +0000)]
* configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.

28 years ago * Makefile.in ($(SHLINK)): Check ts against $(SHLIB), not
Ian Lance Taylor [Tue, 13 Feb 1996 20:14:54 +0000 (20:14 +0000)]
* Makefile.in ($(SHLINK)): Check ts against $(SHLIB), not
$(SHLINK).

28 years ago * ieee.c (get_symbol): Set the section to bfd_abs_section.
Ian Lance Taylor [Tue, 13 Feb 1996 19:37:40 +0000 (19:37 +0000)]
* ieee.c (get_symbol): Set the section to bfd_abs_section.
(do_with_relocs): If EXEC_P is set and there are no relocs, use a
simple number for the section address, rather than an expression.
Limit the number of bytes between relocs to MAXRUN.
(ieee_write_me_part): Set me_record to the file offset after the
start address.
(ieee_write_processor): New static function.
(ieee_write_object_contents): Use ieee_write_processor.

28 years ago * Makefile.in (RPATH_ENVVAR): New variable.
Ian Lance Taylor [Tue, 13 Feb 1996 19:29:03 +0000 (19:29 +0000)]
* Makefile.in (RPATH_ENVVAR): New variable.
(REALLY_SET_LIB_PATH): Use it.
* configure.in: On HP/UX, set RPATH_ENVVAR to SHLIB_PATH.

28 years ago * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Warn if
Ian Lance Taylor [Tue, 13 Feb 1996 19:05:38 +0000 (19:05 +0000)]
* emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Warn if
it looks like we might be linking in two different versions of the
same shared library.  Based on a patch from H J Lu <hjl@zoom.com>.

28 years ago * gdb.base/a2-run.exp: Replace $binfile with $testfile in test result reports.
Fred Fish [Tue, 13 Feb 1996 00:42:29 +0000 (00:42 +0000)]
* gdb.base/a2-run.exp: Replace $binfile with $testfile in test result reports.

28 years ago * read.c (potable): Add "mri" and ".mri".
Ian Lance Taylor [Tue, 13 Feb 1996 00:20:13 +0000 (00:20 +0000)]
* read.c (potable): Add "mri" and ".mri".
(s_mri): New function.
* read.h (s_mri): Declare.
* app.c (scrub_m68k_mri): New static variable.
(mri_pseudo): New static variable.
(do_scrub_begin): Add m68k_mri parameter.  Use it rather than
flag_m68k_mri.  Initialize scrub_m68k_mri.
(mri_state, mri_last_ch): New static variables.
(struct app_save): Add scrub_m68k_mri, mri_state, and mri_last_ch
fields.
(app_push): Save new fields.
(app_pop): Restore new fields.
(do_scrub_chars): Check scrub_m68k_mri rather than flag_mri_mri.
If TC_M68K, use a trivial state machine to look for occurrences of
the .mri pseudo-op, and change the mode appropriately.
* as.h (do_scrub_begin): Update prototype.
* input-scrub.c (input_scrub_begin): Pass flag_m68k_mri to
do_scrub_begin.
* config/tc-m68k.c (reg_prefix_optional_seen): New static
variable.
(m68k_mri_mode_change): New function.
(md_parse_option): Set reg_prefix_optional_seen.
* config/tc-m68k.h (m68k_mri_mode_change): Declare.
(MRI_MODE_CHANGE): Define.
* doc/as.texinfo: Document .mri pseudo-op.

28 years ago * configure.in (sparclet-*-aout*): New config.
David Edelsohn [Tue, 13 Feb 1996 00:01:44 +0000 (00:01 +0000)]
* configure.in (sparclet-*-aout*): New config.
* configure: Regenerated.

28 years ago * configure.in: Recognize any sparc* cpu.
David Edelsohn [Mon, 12 Feb 1996 23:54:50 +0000 (23:54 +0000)]
* configure.in: Recognize any sparc* cpu.
* configure: Regenerated.

28 years agoFix thinko in sparclet config.
David Edelsohn [Mon, 12 Feb 1996 23:41:49 +0000 (23:41 +0000)]
Fix thinko in sparclet config.

28 years agoRecognize sparclet cpu.
David Edelsohn [Mon, 12 Feb 1996 23:31:29 +0000 (23:31 +0000)]
Recognize sparclet cpu.

28 years agoUndef PPC before use
Michael Meissner [Mon, 12 Feb 1996 22:17:39 +0000 (22:17 +0000)]
Undef PPC before use

28 years ago * somsolib.c (som_solib_add): Use xmalloc rather than bare
Fred Fish [Mon, 12 Feb 1996 22:13:18 +0000 (22:13 +0000)]
* somsolib.c (som_solib_add): Use xmalloc rather than bare
unchecked call to malloc.
* remote-mips.c (pmon_load_fast): ditto.
* remote-mm.c (mm_open): ditto.
* hpread.c (hpread_lookup_type): ditto.
* remote-adapt.c (adapt_open): ditto.

28 years agoMerge from FSF.
Per Bothner [Mon, 12 Feb 1996 21:04:11 +0000 (21:04 +0000)]
Merge from FSF.

28 years ago * f-lang.c (allocate_saved_bf_node, allocate_saved_function_node,
Fred Fish [Mon, 12 Feb 1996 21:03:12 +0000 (21:03 +0000)]
* f-lang.c (allocate_saved_bf_node, allocate_saved_function_node,
allocate_saved_f77_common_node, allocate_common_entry_node,
add_common_block): Use xmalloc rather than malloc, some of which
were unchecked.
* gnu-regex.c: At same point as other gdb specific changes
#undef malloc and then #define it to xmalloc.
* ch-exp.c (growbuf_by_size): Use xmalloc/xrealloc rather than
bare unchecked calls to malloc/realloc.
* stabsread.c (dbx_lookup_type): Use xmalloc rather than bare
  unchecked call to malloc.