Ian Lance Taylor [Wed, 7 Feb 1996 20:20:56 +0000 (20:20 +0000)]
* ecoff.c (ecoff_build_lineno): Don't try to store the address
difference if the next address is before the current one.
Ian Lance Taylor [Wed, 7 Feb 1996 19:36:48 +0000 (19:36 +0000)]
update copyrights
Stu Grossman [Wed, 7 Feb 1996 19:35:38 +0000 (19:35 +0000)]
* symtab.c (gdb_mangle_name): Change opname var to be const to
match return val of cplus_mangle_name.
* i960-tdep.c: Change arg types of next_insn to match callers.
Ian Lance Taylor [Wed, 7 Feb 1996 19:35:15 +0000 (19:35 +0000)]
* config/tc-m68k.c (struct m68k_cpu): Add alias field.
(archs): Initialize new field.
(m68k_ip): Don't list alias names when listing CPUs which support
an instruction.
Ian Lance Taylor [Wed, 7 Feb 1996 19:34:29 +0000 (19:34 +0000)]
* as.c (main): Call parse_args before read_begin.
* app.c (do_scrub_chars): If flag_m68k_mri, don't put a dot in
front of generated pseudo-ops.
* read.c (potable): Ignore "name".
(s_app_file): Permit a single quote after the string, since one
may appear in m68k MRI mode.
Ian Lance Taylor [Wed, 7 Feb 1996 19:20:35 +0000 (19:20 +0000)]
* ieee.c (ieee_start_compilation_unit): Clear modified and
modified_alloc fields of info.
Ian Lance Taylor [Wed, 7 Feb 1996 19:19:22 +0000 (19:19 +0000)]
* configure.in: Check for --enable-shared. Substitute new
variables BFDLIB and OPCODES.
* configure: Rebuild.
* Makefile.in (BFDLIB): Set to @BFDLIB@.
(OPCODES): Set to @OPCODES@.
Ian Lance Taylor [Wed, 7 Feb 1996 19:13:20 +0000 (19:13 +0000)]
* configure.in: Check for --enable-shared. If linking against
shared BFD and opcodes, fix library name on SunOS, and try to set
-rpath reasonably.
* configure: Rebuild.
Ian Lance Taylor [Wed, 7 Feb 1996 19:08:04 +0000 (19:08 +0000)]
* configure.in: Don't set CC. Look for --enable-shared. Set
BFDLIB and HLDFLAGS and substitute them.
* configure: Rebuild.
* Makefile.in (LIBS): Use @BFDLIB@.
(HLDFLAGS): New variable.
(gprof): Use $(HLDFLAGS).
Ian Lance Taylor [Wed, 7 Feb 1996 19:03:38 +0000 (19:03 +0000)]
* configure.in: Look for --enable-shared. Change the value of
BFDLIB when linking against a shared library on SunOS.
* configure: Rebuild.
* configure.host: If using a shared BFD library, try to pass a
reasonable -rpath option when linking.
* Makefile.in (BFDLIB): Set to @BFDLIB@.
Ian Lance Taylor [Wed, 7 Feb 1996 19:00:52 +0000 (19:00 +0000)]
* Makefile.in (SONAME): New variable.
($(SHLINK)): Make a link to the transformed name, as well.
(stamp-tshlink): New target.
(install): Skip stamp-tshlink during install.
Ian Lance Taylor [Wed, 7 Feb 1996 18:59:11 +0000 (18:59 +0000)]
* configure.host: When making a shared library, set HLDFLAGS to
pass an appropriate -rpath option. Use the make variable SONAME
as the shared library soname, rather than computing it here. On
SunOS, build stamp-tshlink in place of $(SHLINK).
* Makefile.in (SONAME): New variable.
($(SHLINK)): Make a link to the transformed name, as well.
(stamp-tshlink): New target.
(install): Skip stamp-tshlink during install.
Michael Meissner [Wed, 7 Feb 1996 18:41:52 +0000 (18:41 +0000)]
Fix WRS bug where -Ttext 0x10000 left first program header invalid
Tom Tromey [Wed, 7 Feb 1996 17:44:58 +0000 (17:44 +0000)]
* gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
double-clicking will work again.
(create_asm_win): Put "break" at end of all B1 bindings.
(create_file_win): Lower "sel" tag, don't raise it.
(ensure_line_visible): New proc.
(update_listing, update_assembly): Use it.
(create_copyright_window): Destroy window on Leave event.
(create_command_window): Put "break" at end of all B2 bindings.
Fred Fish [Wed, 7 Feb 1996 15:38:24 +0000 (15:38 +0000)]
* config/i386/linux.mh (XM_CLIBS, GDBSERVER_LIBS): Remove. These
apparently aren't needed in any reasonably recent version of
linux.
Per Bothner [Wed, 7 Feb 1996 05:54:17 +0000 (05:54 +0000)]
* pr-8894.exp, pr-8894.ch, pr-8894-grt.ch: New test case.
Per Bothner [Wed, 7 Feb 1996 05:43:04 +0000 (05:43 +0000)]
* stabsread.c (read_range_type): If !self-subrange and language
is Chill, assume a true range. If a true_range is a sub_subrange,
use builtin_type_int for index_type.
This is for PR chill/8894.
J.T. Conklin [Tue, 6 Feb 1996 22:19:05 +0000 (22:19 +0000)]
* configure.in (*-*-netbsd*): Set COREFILE to netbsd-core.c.
don't define TRAD_HEADER.
* configure: Rebuild.
* netbsd-core.c: New file, support for NetBSD core files.
* hosts/*nbsd.h: Removed.
David Edelsohn [Tue, 6 Feb 1996 20:23:08 +0000 (20:23 +0000)]
* reloc.c (BFD_RELOC_SPARC_[567]): New reloc types.
(BFD_RELOC_SPARC_LO7 reloc type): Deleted.
* libbfd.h, bfd-in2.h: Regenerated.
* elf32-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Renamed from
bfd_elf32_bfd_reloc_type_lookup.
(reloc_type{,_names}): Deleted.
(_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
Add sparc64 relocs.
(sparc_reloc_map): Add sparc64 relocs.
(sparc_elf_notsupported_reloc): New static function.
(sparc_elf_wdisp16_reloc): New static function.
(elf32_sparc_check_relocs): Handle R_SPARC_WDISP{16,19}.
(elf32_sparc_relocate_section): Likewise.
(bfd_elf32_bfd_reloc_type_lookup): Define.
* elf64-sparc.c (sparc64_elf_wdisp16_reloc): Deleted.
(reloc_type{,_names}): Deleted.
(elf_sparc_howto_table): Deleted.
(sparc_reloc_map): Deleted.
(_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
(bfd_elf64_bfd_reloc_type_lookup): Change from function to #define.
Ian Lance Taylor [Tue, 6 Feb 1996 19:15:26 +0000 (19:15 +0000)]
Rename XL to JX, and remove sanitization.
Ian Lance Taylor [Tue, 6 Feb 1996 19:10:04 +0000 (19:10 +0000)]
Rename XL to JX, and remove sanitization.
Ian Lance Taylor [Tue, 6 Feb 1996 17:34:18 +0000 (17:34 +0000)]
* configure.host: Make SHLIB_CFLAGS include $(PICFLAG) on a
*-*-hpux* host.
Ian Lance Taylor [Tue, 6 Feb 1996 17:27:44 +0000 (17:27 +0000)]
* Makefile.in (program_transform_name): New variable.
(install): Transform library name before installing it.
Steve Chamberlain [Tue, 6 Feb 1996 02:49:52 +0000 (02:49 +0000)]
From Michael_Snyder@NeXT.COM (Michael Snyder):
* valops.c (value_arg_coerce): Coerce float to double, unless the
function prototype specifies float.
Ian Lance Taylor [Mon, 5 Feb 1996 23:57:39 +0000 (23:57 +0000)]
* archures.c (bfd_mach_i960_hx): Define.
* bfd-in2.h: Rebuild.
* cpu-i960.c (scan_960_mach): Accept machine "hx".
(MATRIX): Expand entries for HX.
(arch_info_struct): Add i960:hx entry.
* bout.c (b_out_set_arch_mach): Handle bfd_mach_i960_hx.
* coffcode.h (coff_set_arch_mach_hook): Handle F_I960HX.
(coff_set_flags): Handle bfd_mach_i960_hx.
Ian Lance Taylor [Mon, 5 Feb 1996 23:54:25 +0000 (23:54 +0000)]
* i960-dis.c (mem): Add HX dcinva instruction.
(reg): Add HX instructions.
start-sanitize-i960xl
The HX instructions are the XL instructions, so this just involves
arranges for them to not be sanitized.
end-sanitize-i960xl
Ian Lance Taylor [Mon, 5 Feb 1996 23:52:42 +0000 (23:52 +0000)]
* config/tc-i960.c (ARCH_HX): Define.
(arch_tab): Add HX.
(targ_has_sfr): Handle ARCH_HX.
(targ_has_iclass): Handle ARCH_HX.
(tc_coff_fix2rtype): Add return 0 to avoid warning.
(tc_headers_hook): If the architecture was specified explicitly,
use it when setting the flags. Set the extern variable coff_flags
rather than headers->filehdr.f_flags, since the latter is set
unconditionally in obj-coff.c.
(i960_handle_align): Remove unused variable fixp.
Ian Lance Taylor [Mon, 5 Feb 1996 23:37:25 +0000 (23:37 +0000)]
* i960.h (I_HX, I_HX2): Define.
start-sanitize-i960xl
(I_XL): Remove. The HX supports all XL instructions.
end-sanitize-i960xl
(i960_opcodes): Add HX instructions.
Ian Lance Taylor [Mon, 5 Feb 1996 23:35:09 +0000 (23:35 +0000)]
* i960.h (F_I960HX): Define.
Ian Lance Taylor [Mon, 5 Feb 1996 23:32:23 +0000 (23:32 +0000)]
tipo
Ian Lance Taylor [Mon, 5 Feb 1996 21:40:24 +0000 (21:40 +0000)]
* configure.in: If --enable-shared was used, set SET_LIB_PATH to
$(REALLY_SET_LIB_PATH) in Makefile.
* Makefile.in (SET_LIB_PATH): New variable.
(REALLY_SET_LIB_PATH): New variable.
($(DO_X)): Use $(SET_LIB_PATH).
(install.all, gcc-no-fixedincludes, $(ALL_MODULES)): Likewise.
($(NATIVE_CHECK_MODULES), $(CROSS_CHECK_MODULES)): Likewise.
($(INSTALL_MODULES), $(CONFIGURE_TARGET_MODULES)): Likewise.
($(ALL_TARGET_MODULES), $(CHECK_TARGET_MODULES)): Likewise.
($(INSTALL_TARGET_MODULES), $(ALL_X11_MODULES)): Likewise.
($(CHECK_X11_MODULES), $(INSTALL_X11_MODULES)): Likewise.
(all-gcc, all-bootstrap, check-gcc, install-gcc): Likewise.
(install-dosrel): Likewise.
(all-opcodes): Depend upon all-libiberty.
Ian Lance Taylor [Mon, 5 Feb 1996 21:35:22 +0000 (21:35 +0000)]
Support for building bfd and opcodes as shared libraries, based on
patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
* Makefile.in (LIBDEPS): New variable.
(LIBS): Use -L../bfd -lbfd.
(gprof): Depend upon $(LIBDEPS) rather than $(LIBS).
Ian Lance Taylor [Mon, 5 Feb 1996 21:32:01 +0000 (21:32 +0000)]
Support for building bfd and opcodes as shared libraries, based on
patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
* configure.in: Set OPCODES and BFD to search directories.
Substitute OPCODES_DEP and BFDDEP. On SunOS, set HLDFLAGS.
* configure: Rebuild.
* Makefile.in (LDFLAGS, HLDFLAGS): New variables.
(LIBDEPS): New variable.
(as.new0: Depend upon $(LIBDEPS) rather than $(LIBS). Use
$(HLDFLAGS) in link.
(check): Set LD_LIBRARY_PATH in the environment.
Ian Lance Taylor [Mon, 5 Feb 1996 21:28:15 +0000 (21:28 +0000)]
Support for building bfd and opcodes as shared libraries, based on
patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
* configure.in (HLDFLAGS): New substitution.
* configure: Rebuild.
* configure.host: Set HLDFLAGS on SunOS.
* Makefile.in (HLDFLAGS): New variable.
(BFDDEP): New variable.
(BFDLIB): Change to -L../bfd -lbfd.
($(LD_PROG)): Depend upon $(BFDDEP) rathern than $(BFDLIB). Use
$(HLDFLAGS) in link.
(check): Set LD_LIBRARY_PATH in the environment.
Ian Lance Taylor [Mon, 5 Feb 1996 21:17:52 +0000 (21:17 +0000)]
Support for building as a shared library, based on patches from
Alan Modra <alan@spri.levels.unisa.edu.au>:
* configure.in: Add AC_ARG_ENABLE for shared and commonbfdlib.
New substitutions: ALLLIBS, PICFLAG, SHLIB, SHLIB_CC,
SHLIB_CFLAGS, COMMON_SHLIB, SHLINK.
* configure: Rebuild.
* Makefile.in (ALLLIBS): New variable.
(PICFLAG, SHLIB, SHLIB_CC, SHLIB_CFLAGS): New variables.
(COMMON_SHLIB, SHLINK): New variables.
(.c.o): If PICFLAG is set, compile twice, once PIC, once normal.
(STAGESTUFF): Remove variable.
(all): Depend upon $(ALLLIBS) rather than $(TARGETLIB).
(stamp-piclist, piclist): New targets.
($(SHLIB), $(SHLINK)): New targets.
($(OFILES)): Depend upon stamp-picdir.
(disassemble.o): Build twice if PICFLAG is set.
(MOSTLYCLEAN): Add pic/*.o.
(clean): Remove $(SHLIB), $(SHLINK), piclist, and stamp-piclist.
(distclean): Remove pic and stamp-picdir.
(install): Install shared libraries.
(stamp-picdir): New target.
Ian Lance Taylor [Mon, 5 Feb 1996 21:14:14 +0000 (21:14 +0000)]
Support for building as a shared library, based on patches from
Alan Modra <alan@spri.levels.unisa.edu.au>:
* configure.in: Add AC_ARG_ENABLE for shared and commonbfdlib.
New substitutions: ALLLIBS, PICFLAG, SHLIB, SHLIB_CC,
SHLIB_CFLAGS, COMMON_SHLIB, PICLIST, SHLINK.
* configure: Rebuild.
* configure.host: If --enable-shared, adjust shared library stuff
based on the host. If the host is SunOS, and the linker supports
-rpath, set HLDFLAGS to use it.
* Makefile.in (ALLLIBS): New variable.
(PICFLAG, SHLIB, SHLIB_CC, SHLIB_CFLAGS): New variables.
(COMMON_SHLIB, SHLINK): New variables.
(.c.o): If PICFLAG is set, compile twice, once PIC, once normal.
(STAGESTUFF): Remove variable.
(all): Depend upon $(ALLLIBS) and @PICLIST@ rather than
$(TARGETLIB).
(stamp-ofiles): New target, like old ofiles target, but build
using a temporary file and move-if-change, and touch stamp-ofiles
when done.
(ofiles): Just depend upon stamp-ofiles.
(stamp-piclist, piclist): New targets.
($(SHLIB), $(SHLINK)): New targets.
(targets.o, archures.o): Build twice if PICFLAG is set.
(do_mostlyclean): Remove pic/*.o.
(do_clean): Remove stamp-ofiles, $(SHLIB), $(SHLINK), piclist, and
stamp-piclist.
(do_distclean): Remove pic and stamp-picdir.
(install): Install shared libraries.
($(OFILES)): Depend upon stamp-picdir.
(stamp-picdir): New target.
Tom Tromey [Mon, 5 Feb 1996 20:50:26 +0000 (20:50 +0000)]
* language.c (set_language_command): Use languages table when
printing available languages.
Ian Lance Taylor [Mon, 5 Feb 1996 16:11:08 +0000 (16:11 +0000)]
* libcoff-in.h: Add comment reminding people that libcoff.h is a
generated file.
* libcoff.h: Rebuild.
Ian Lance Taylor [Mon, 5 Feb 1996 15:48:59 +0000 (15:48 +0000)]
* elf32-mips.c (mips_elf_create_dynamic_sections): Clear
ELF_LINK_NON_ELF flag.
(mips_elf_create_got_section): Likewise.
* elf.c: Revert last change, since it breaks dynamic linking.
* elf-bfd.h (struct elf_backend_data): Remove want_hdr_in_seg
field.
* elf32-mips.c (elf_backend_want_hdr_in_seg): Don't define.
* elfxx-target.h (elf_backend_want_hdr_in_seg): Don't define.
(elfNN_bed): Don't initialize want_hdr_in_seg field.
Ian Lance Taylor [Mon, 5 Feb 1996 15:47:53 +0000 (15:47 +0000)]
* elflink.h (elf_adjust_dynamic_symbol): Don't try to get the
flavour of a section with no owner.
Ian Lance Taylor [Sun, 4 Feb 1996 04:01:36 +0000 (04:01 +0000)]
* coffcode.h: Move today's libcoff.h change into coffcode.h.
Fred Fish [Sat, 3 Feb 1996 23:47:12 +0000 (23:47 +0000)]
* libcoff.h (bfd_coff_link_add_one_symbol): Combine macro args back into
one line. Some compilers (sunos 4.1.3 for example) won't accept args
split across more than one line.
Fred Fish [Sat, 3 Feb 1996 19:39:34 +0000 (19:39 +0000)]
* command.c (add_cmd): Add missing initialization for enums member.
Reorder members to match structure declaration to make it easier to
tell when one is missing.
Fred Fish [Sat, 3 Feb 1996 18:06:12 +0000 (18:06 +0000)]
* exec.c (exec_file_command): Fix problem reported by Hans Verkuil
(hans@wyst.hobby.nl) where filename in malloc'd memory is referenced
after being freed.
Michael Meissner [Sat, 3 Feb 1996 15:46:00 +0000 (15:46 +0000)]
Winsup needs libiberty
Peter Schauer [Sat, 3 Feb 1996 11:32:34 +0000 (11:32 +0000)]
* dwarfread.c (read_func_scope): Avoid GDB core dumps if
AT_name tag is missing.
* procfs.c (procfs_stopped_by_watchpoint): Fix logic when
FLTWATCH and FLTKWATCH are defined.
* remote.c (remote_read_bytes): Advance memaddr for transfers,
return number of bytes transferred for partial reads.
* top.c (init_signals): Reset SIGTRAP to SIG_DFL.
Michael Meissner [Sat, 3 Feb 1996 00:31:03 +0000 (00:31 +0000)]
Move .sdata2/.sbss2 into read-only section
Michael Meissner [Fri, 2 Feb 1996 23:01:14 +0000 (23:01 +0000)]
Fix typo
Ian Lance Taylor [Fri, 2 Feb 1996 21:50:53 +0000 (21:50 +0000)]
* configure: Regenerate.
Steve Chamberlain [Fri, 2 Feb 1996 21:43:15 +0000 (21:43 +0000)]
Spell off correctly.
Steve Chamberlain [Fri, 2 Feb 1996 21:42:12 +0000 (21:42 +0000)]
* win32-nat.c (mappings): Add ppc registers.
(child_resume): Turn of step for ppc.
Steve Chamberlain [Fri, 2 Feb 1996 19:45:14 +0000 (19:45 +0000)]
* aclocal.m4 (BFD_BINARY_FOPEN): Understand cygwin32.
* configure: Regenerate.
Jeff Law [Fri, 2 Feb 1996 19:14:40 +0000 (19:14 +0000)]
* elf32-hppa.c (elf32_hppa_backend_symbol_table_processing): Don't
try to do arithmetic on a void *, cast it to a unsigned char * first.
Some solaris compilers don't like void * arithmetic.
Ian Lance Taylor [Fri, 2 Feb 1996 19:10:33 +0000 (19:10 +0000)]
Fri Feb 2 14:09:25 1996 Alan Modra <alan@spri.levels.unisa.edu.au>
* Makefile.in (INSTALL_XFORM): Remove -e.
Ian Lance Taylor [Fri, 2 Feb 1996 17:46:05 +0000 (17:46 +0000)]
* write.c (write_relocs): Use S_IS_DEFINED and S_IS_COMMON rather
than comparing S_GET_SEGMENT to undefined_section.
(write_object_file): Skip symbols which were equated to an
undefined or common symbol.
* symbols.c (resolve_symbol_value): Use S_IS_DEFINED and
S_IS_COMMON rather than comparing S_GET_SEGMENT to
undefined_section.
(S_GET_VALUE): Likewise. Avoid recursion problems if S_IS_DEFINED
or S_IS_COMMON call S_GET_VALUE.
* config/obj-aout.h (S_IS_COMMON): Define if not BFD_ASSEMBLER.
* config/obj-aout.c (obj_emit_relocations): If a reloc is equated
to an undefined or common symbol, convert the reloc to be against
the target symbol.
(obj_crawl_symbol_chain): Skip symbols which were equated to an
undefined or common symbol.
* config/obj-bout.h (S_IS_COMMON): Define if not BFD_ASSEMBLER.
* config/obj-bout.c (obj_emit_relocations): If a reloc is equated
to an undefined or common symbol, convert the reloc to be against
the target symbol.
(obj_crawl_symbol_chain): Skip symbols which were equated to an
undefined or common symbol.
* config/obj-coff.c (do_relocs_for): Use S_IS_DEFINED and
S_IS_COMMON rather than comparing S_GET_SEGMENT to
undefined_section.
(yank_symbols): Skip symbols which were equated to an undefined or
common symbol.
Jeff Law [Fri, 2 Feb 1996 17:20:54 +0000 (17:20 +0000)]
* lib/gdb.exp: Fix typos (LDLAGS -> LDFLAGS).
Load libgloss.exp.
Jeff Law [Fri, 2 Feb 1996 03:22:45 +0000 (03:22 +0000)]
* gdb.disasm/hppa.exp: Compile directly into an executable, use
the executable, not the .o to run the tests from.
Remove a useless step and avoid loading a .o into a target board
(loads into address zero which causes all kinds of problems).
Geoffrey Noer [Fri, 2 Feb 1996 01:07:16 +0000 (01:07 +0000)]
Changes to configure.in so that -gm-magic targets won't build libgloss
anymore.
Stan Shebs [Thu, 1 Feb 1996 23:25:52 +0000 (23:25 +0000)]
* mpw-mh-mpw (CC_MWC68K): Add options similar to those used
in CC_MWCPPC, and -mc68020 -model far.
(AR_MWLINK68K): Add -xm library.
(AR_AR): Define.
(CC_LD_MWLINK68K): Remove -d.
(EXTRALIBS_MWC68K): Define.
Ian Lance Taylor [Thu, 1 Feb 1996 23:15:23 +0000 (23:15 +0000)]
* elf-bfd.h (ELF_LINK_NON_ELF): Define.
* elf.c (_bfd_elf_link_hash_newfunc): Set elf_link_hash_flags to
ELF_LINK_NON_ELF.
* elflink.h (elf_link_add_object_symbols): Reset ELF_LINK_NON_ELF
flag for a newly defined symbol.
(NAME(bfd_elf,record_link_assignment)): Likewise.
(elf_adjust_dynamic_symbol): If ELF_LINK_NON_ELF is set, try to
set the DEF or REF_REGULAR flags correctly.
Steve Chamberlain [Thu, 1 Feb 1996 21:39:44 +0000 (21:39 +0000)]
* configure: Regenerate with autoconf 2.7.
Ian Lance Taylor [Thu, 1 Feb 1996 21:34:29 +0000 (21:34 +0000)]
* Makefile.in (bfd-in2.h): Make bfd.h, not protos, in docdir.
(libbfd.h, libcoff.h): Corresponding change.
Ian Lance Taylor [Thu, 1 Feb 1996 21:24:15 +0000 (21:24 +0000)]
* config/obj-aout.h (S_IS_LOCAL): Check for \002 as well as \001.
* config/obj-bout.h (S_IS_LOCAL): Likewise.
Ian Lance Taylor [Thu, 1 Feb 1996 21:05:52 +0000 (21:05 +0000)]
* elf32-i386.c (elf_i386_check_relocs): Don't record a symbol with
a PLT32 reloc as dynamic.
(elf_i386_adjust_dynamic_symbol): If a symbol with a PLT32 reloc
is not referenced by a dynamic object, and we are not making a
shared object, then don't make a PLT entry. If we do make a PLT
entry, make sure the symbol has been recorded as dynamic.
Ian Lance Taylor [Thu, 1 Feb 1996 21:02:03 +0000 (21:02 +0000)]
* emulparams/elf_i386.sh (TEXT_START_ADDR): Change to 0x8048000,
for SVR4 compatibility.
PR 8794.
Stan Shebs [Thu, 1 Feb 1996 20:42:27 +0000 (20:42 +0000)]
* mpw-configure (extralibs_name, rez_name): Set correctly
for MWC68K compiler.
* mpw-README: Add more info on the necessary build tools.
Ian Lance Taylor [Thu, 1 Feb 1996 20:36:23 +0000 (20:36 +0000)]
* configure.in: Make sure we only add m68k-parse.o to
${extra_objects} once, no matter how many m68k targets have been
enabled.
* configure: Rebuild.
Steve Chamberlain [Thu, 1 Feb 1996 18:39:00 +0000 (18:39 +0000)]
* config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
xm-cygwin32.h): New.
* config/i386/(*win32*): Becomes *cygwin32*.
* configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32.
(powerpcle-*-cygwin32): New.
* configure: Regenerate.
* win32-nat.c (child_create_inferior): Call CreateProcess
with the right program arg.
Steve Chamberlain [Thu, 1 Feb 1996 18:23:56 +0000 (18:23 +0000)]
* configure.in, config.sub: Recognize cygwin32.
Steve Chamberlain [Thu, 1 Feb 1996 18:08:36 +0000 (18:08 +0000)]
* configure.in (i[3-6]86-*-win32): Becomes i[3-6]86-*-cygwin32.
(powerpc*-*-cygwin32): New.
* configure: Regenerated.
Jeff Law [Thu, 1 Feb 1996 18:03:01 +0000 (18:03 +0000)]
* config/pa/tm-hppa.h (SOFT_FLOAT): Provide a default definition.
Ian Lance Taylor [Thu, 1 Feb 1996 15:52:04 +0000 (15:52 +0000)]
* ldexp.c (exp_fold_tree): Correct handling of ABSOLUTE.
PR 8909.
Fred Fish [Thu, 1 Feb 1996 04:15:53 +0000 (04:15 +0000)]
* serial.c: Change fputc/fputs/fprintf to _unfiltered forms.
Stan Shebs [Thu, 1 Feb 1996 03:26:15 +0000 (03:26 +0000)]
Name change
Stan Shebs [Thu, 1 Feb 1996 02:59:15 +0000 (02:59 +0000)]
* config/i386/nm-i386mach.h (CHILD_PREPARE_TO_STORE): Move to
here from config/i386/xm-i386mach.h, fix name.
* config/i386/nm-sun386.h: Ditto, from config/i386/xm-sun386.h.
* config/i386/nm-ptx4.h (CHILD_PREPARE_TO_STORE): Move to
here from config/i386/xm-ptx4.h.
* config/i386/nm-ptx4.h: Ditto, from config/i386/xm-ptx.h.
* config/i386/nm-symmetry.h: Ditto, from config/i386/xm-symmetry.h.
* config/m68k/nm-sun3.h: Ditto, from config/m68k/xm-sun3.h.
more housekeeping
Stan Shebs [Thu, 1 Feb 1996 02:47:32 +0000 (02:47 +0000)]
* config/sparc/xm-sparc.h (HAVE_WAIT_STRUCT): Remove, never used.
* config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Move to here
from config/sparc/xm-nbsd.h.
* config/sparc/nm-sun4os4 (CHILD_PREPARE_TO_STORE): Ditto, from
config/sparc/xm-sparc.h.
* config/sparc/nm-sun4sol2.h: New file, renamed from nm-sysv4.h.
(PRSVADDR_BROKEN): Move here from xm-sun4sol2.h.
* config/sparc/sun4sol2.mh (NAT_FILE): Update.
* config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove.
housekeeping
Steve Chamberlain [Thu, 1 Feb 1996 02:42:51 +0000 (02:42 +0000)]
* configure.in (i386-*-cygwin32, ppc-*-cygwin32): New.
* configure: Rebuild.
Steve Chamberlain [Thu, 1 Feb 1996 01:43:42 +0000 (01:43 +0000)]
* configure.tgt (i[345]86-*-cygwin32, powerpcle-*-cygwin32): New.
* emultempl/pe.em (definfo init): Make the default stack reserve
of a PPC larger.
Steve Chamberlain [Thu, 1 Feb 1996 01:26:15 +0000 (01:26 +0000)]
* coff-i386.c (coff_i386_reloc_type_lookup): Add BFD_RELOC_32_PCREL.
* config.bfd (i[345]86-*-win32): Becomes i[345]86-*-cygwin32.
(powerpcle-*-cygwin32): New.
* peicode.h (add_data_entry): Get address from vma.
Jeff Law [Thu, 1 Feb 1996 00:40:59 +0000 (00:40 +0000)]
* config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Handle software
floating point correctly.
(STORE_RETURN_VALUE): Likewise.
* config/pa/tm-pro.h (SOFT_FLOAT): define.
Fixes minor testsuite failures for pro targets.
Ian Lance Taylor [Wed, 31 Jan 1996 22:40:55 +0000 (22:40 +0000)]
* config/obj-coff.h (S_IS_LOCAL): Check for \001 as well as \002.
Michael Meissner [Wed, 31 Jan 1996 22:13:09 +0000 (22:13 +0000)]
If _SDA_BASE_ has already been created as an undefined symbol, treat like it has never been created
Jeff Law [Wed, 31 Jan 1996 21:44:24 +0000 (21:44 +0000)]
* gdb.base/break.exp: Don't test for program exit or exit status
if $noresults if nonzero.
* gdb.base/langs.exp: Likewise.
* gdb.base/watchpoint.exp: Likewise.
For proelf targets were we can't even tell if a process exits.
Jeff Law [Wed, 31 Jan 1996 21:24:38 +0000 (21:24 +0000)]
* gdb.base/default.exp: Remove extraneous call to load gdb.exp.
* gdb.chill/pr-8405.exp: Move skip_chill_tests check to just before
trying to compile the testcase.
Ian Lance Taylor [Wed, 31 Jan 1996 21:22:02 +0000 (21:22 +0000)]
* elflink.h (elf_bfd_final_link): Don't output initial dummy
symbol or section symbols if stripping all symbols and this is not
a relocateable link. Don't output the symbol string table if
there are no symbols.
(elf_link_flush_output_syms): Don't do anything if there are no
symbols to flush.
Fred Fish [Wed, 31 Jan 1996 20:35:51 +0000 (20:35 +0000)]
* config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
Define to what should be reasonable values. However, apparently
a bug in linux mmap prevents mapped symbol tables from working.
Ian Lance Taylor [Wed, 31 Jan 1996 19:36:20 +0000 (19:36 +0000)]
Wed Jan 31 14:34:23 1996 Richard Henderson <rth@tamu.edu>
* configure.tgt (m68*-apple-aux*): New target.
* emulparams/m68kaux.sh: New file.
* scripttempl/m68kaux.sc: New file.
* Makefile.in (ALL_EMULATIONS): Add em68kaux.o.
(em68kaux.c): New target.
Ian Lance Taylor [Wed, 31 Jan 1996 19:31:29 +0000 (19:31 +0000)]
Wed Jan 31 14:03:17 1996 Richard Henderson <rth@tamu.edu>
* config/tc-m68k.c (md_pseudo_table): Add "extend" and "ldouble".
* doc/c-m68k.texi: Document .extend and .ldouble.
Ian Lance Taylor [Wed, 31 Jan 1996 19:18:19 +0000 (19:18 +0000)]
Wed Jan 31 14:17:10 1996 Richard Henderson <rth@tamu.edu>
* config.guess, config.sub: Recognize A/UX.
Ian Lance Taylor [Wed, 31 Jan 1996 19:06:17 +0000 (19:06 +0000)]
Wed Jan 31 14:03:17 1996 Richard Henderson <rth@tamu.edu>
* configure.in (m68*-apple-aux*): New target.
* config/te-aux.h: New file.
* config/obj-coff.c (compare_external_relocs): New static function
if TE_AUX.
(do_relocs_for): Sort relocs if TE_AUX.
(fixup_segment): If TE_AUX, store common symbol value in segment.
* config/tc-m68k.h (TARGET_FORMAT): Define if TE_AUX.
Ian Lance Taylor [Wed, 31 Jan 1996 18:52:30 +0000 (18:52 +0000)]
* config.sub: Merge with gcc/config.sub.
Ian Lance Taylor [Wed, 31 Jan 1996 18:24:21 +0000 (18:24 +0000)]
Wed Jan 31 13:22:03 1996 Richard Henderson <rth@tamu.edu>
* Makefile.in (distclean): Remove $(DEMANGLER_PROG).1.
Ian Lance Taylor [Wed, 31 Jan 1996 18:17:12 +0000 (18:17 +0000)]
Wed Jan 31 12:55:49 1996 Richard Henderson <rth@tamu.edu>
* coff-aux.c: New file.
* hosts/m68kaux.h: New file.
* config.bfd (m68*-apple-aux*): New target.
* configure.in (m68*-apple-aux*): New native host.
(m68kaux_coff_vec): New vector.
* configure: Rebuild.
* targets.c (m68kaux_coff_vec): Declare.
* coffcode.h (bfd_coff_backend_data): Add field
_bfd_coff_link_add_one_symbol.
(bfd_coff_link_add_one_symbol): Define.
(compare_arelent_ptr): New static function if TARG_AUX.
(coff_write_relocs): If TARG_AUX, sort the relocs.
(coff_write_object_contents): Set A/UX aouthdr magic number.
(coff_link_add_one_symbol): Define if not defined.
(bfd_coff_std_swap_table): Initialize new field.
* libcoff.h: Rebuild.
* cofflink.c (coff_link_add_symbols): Call
bfd_coff_link_add_one_symbol rather than
_bfd_generic_link_add_one_symbol.
* coff-m68k.c (COFF_PAGE_SIZE): Don't define if already defined.
* coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
* coff-mips.c (mips_ecoff_backend_data): Likewise.
* Makefile.in: Rebuild dependencies.
(BFD32_BACKENDS): Add coff-aux.o.
(BFD32_BACKENDS_CFILES): Add coff-aux.c.
Ian Lance Taylor [Wed, 31 Jan 1996 18:12:58 +0000 (18:12 +0000)]
Wed Jan 31 13:11:54 1996 Richard Henderson <rth@tamu.edu>
* aux.h: New file.
* internal.h, m68k.h: Protect against multiple inclusion.
Ian Lance Taylor [Wed, 31 Jan 1996 17:28:44 +0000 (17:28 +0000)]
* config/tc-mips.c (s_mips_globl): Set BSF_OBJECT if it is not
BSF_FUNCTION.
(s_cpload): Set BSF_OBJECT for _gp_disp symbol.
* read.c (s_lcomm): If S_SET_SIZE is defined, set the size of the
symbol.
* ecoff.c (add_procedure): Set the BSF_FUNCTION flag.
(ecoff_build_symbols): If S_SET_SIZE is defined, set the size of
an undefined symbol and the size of a function symbol.
* config/obj-elf.c (elf_frob_symbol): If TC_MIPS, set BSF_OBJECT
for all common symbols.
Ian Lance Taylor [Wed, 31 Jan 1996 16:38:20 +0000 (16:38 +0000)]
Wed Jan 31 11:37:46 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* elf32-m68k.c (elf_m68k_relocate_section): Fix R_68K_GOT*
relocation; ignore addend with R_68K_{GOT,PLT}*O relocation.
Fred Fish [Wed, 31 Jan 1996 02:36:07 +0000 (02:36 +0000)]
* interp.c (LoadMemory): Enclose text following #endif in /* */.
* support.h: Remove superfluous "1" from #if.
* support.h (CHECKSIM): Remove stray 'a' at end of line.
Fred Fish [Wed, 31 Jan 1996 02:31:02 +0000 (02:31 +0000)]
* defs.h (errno.h>: Move #include closer to head of file to solve
obscure problem with systems that declare perror with const arg, in
both errno.h and stdio.h, and const is defined away by intervening
local include.
Fred Fish [Tue, 30 Jan 1996 22:47:23 +0000 (22:47 +0000)]
From Jon Reeves <reeves@zk3.dec.com>:
* i386-stub.c (getpacket): Change fprintf stream from "gdb" to stderr.
(mem_fault_routine): Fix misplaced volatile type qualifier in decl.
Ian Lance Taylor [Tue, 30 Jan 1996 19:09:20 +0000 (19:09 +0000)]
* dis-buf.c: Include "sysdep.h" before "dis-asm.h".