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".
Ian Lance Taylor [Tue, 30 Jan 1996 18:49:10 +0000 (18:49 +0000)]
* Makefile.in (do_maintainer_clean): Remove $(srcdir)/bfd-in2.h,
$(srcdir)/libbfd.h and $(srcdir)/libcoff.h.
(maintainer-clean): Warn about deleting special files.
(bfd-in2.h, libbfd.h, libcoff.h): New targets.
Ian Lance Taylor [Tue, 30 Jan 1996 18:19:28 +0000 (18:19 +0000)]
* emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Ignore
-bnoentry, since the right thing tends to happen anyhow.
Ian Lance Taylor [Tue, 30 Jan 1996 18:18:17 +0000 (18:18 +0000)]
* elf32-hppa.c (elf32_hppa_relocate_section): Handle indirect and
warning symbols correctly.
* elf32-i386.c (elf_i386_relocate_section): Likewise.
* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
* elf32-mips.c (mips_elf_relocate_section): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
Ken Raeburn [Tue, 30 Jan 1996 18:12:41 +0000 (18:12 +0000)]
* config/tc-i960.c (parse_memop): In MRI mode, don't use implicit scaling of
index.
* expr.c (operand): Accept 0x hex constants in MRI mode if not on m68k.
(PR 8836)
Ian Lance Taylor [Tue, 30 Jan 1996 17:09:29 +0000 (17:09 +0000)]
* syms.c (_bfd_stab_section_find_nearest_line): Add casts to avoid
warnings.
Fred Fish [Tue, 30 Jan 1996 03:10:17 +0000 (03:10 +0000)]
Enclose gdbtk stuff inside gdb sanitization lines. Regenerate configure.
Fred Fish [Tue, 30 Jan 1996 03:08:52 +0000 (03:08 +0000)]
* Makefile.in (diststuff): Make all-doc; diststuff target does not
exist in doc/Makefile.in.
Stan Shebs [Tue, 30 Jan 1996 02:51:56 +0000 (02:51 +0000)]
* config/m88k/xm-cxux.h (BP_HIT_COUNT): Remove, never used.
Ian Lance Taylor [Tue, 30 Jan 1996 00:01:44 +0000 (00:01 +0000)]
From Basim Kadhim <kadhim@spock.cs.colorado.edu>:
* ecoff.c (struct extsym_info): Define.
(_bfd_ecoff_bfd_final_link): Pass a pointer to struct extsym_info
to ecoff_link_write_external.
(ecoff_link_write_external): Accept a struct extsym_info pointer.
Strip symbols when appropriate.
Ian Lance Taylor [Mon, 29 Jan 1996 22:39:21 +0000 (22:39 +0000)]
Based on patches from H J Lu <hjl@zoom.com>:
* objcopy.c (remove_leading_char): New static variable.
(OPTION_REMOVE_LEADING_CHAR): Define.
(copy_usage): Mention --remove-leading-char.
(filter_symbols): If remove_leading_char, and the first character
of a global symbol matches the symbol leading char of the BFD,
remove the first character.
(copy_object): Filter the symbols if remove_leading_char is set.
(copy_main): Handle --remove-leading-char.
* binutils.texi, objcopy.1: Document --remove-leading-char.
Ian Lance Taylor [Mon, 29 Jan 1996 22:11:12 +0000 (22:11 +0000)]
* config/obj-elf.c (obj_elf_type): Set BSF_OBJECT flag for a type
of object. From Ronald F. Guilmette <rfg@monkeys.com>.
Ian Lance Taylor [Mon, 29 Jan 1996 22:09:49 +0000 (22:09 +0000)]
update copyright
Ian Lance Taylor [Mon, 29 Jan 1996 22:04:32 +0000 (22:04 +0000)]
Based on patches from Ronald F. Guilmette <rfg@monkeys.com>:
* syms.c (BSF_OBJECT): Define.
(bfd_print_symbol_vandf): Print 'O' for BSF_OBJECT.
* bfd-in2.h: Rebuild.
* elfcode.h (elf_slurp_symbol_table): Set BSF_OBJECT for an
STT_OBJECT symbol.
* elf.c (swap_out_syms): Only set type to STT_OBJECT if BSF_OBJECT
is set.
Ian Lance Taylor [Mon, 29 Jan 1996 20:01:29 +0000 (20:01 +0000)]
* elf32-i386.c (elf_i386_relocate_section): If -Bsymbolic, when
copying relocs into a shared object, treat a defined global symbol
as a local symbol.
* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
* elf32-mips.c (mips_elf_relocate_section): Likewise.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
Kim Knuttila [Mon, 29 Jan 1996 19:31:34 +0000 (19:31 +0000)]
Fixed exported names, removed a bad define
Ken Raeburn [Mon, 29 Jan 1996 19:30:16 +0000 (19:30 +0000)]
mh-i386win32 is gone
Ian Lance Taylor [Mon, 29 Jan 1996 18:09:20 +0000 (18:09 +0000)]
* elflink.h (elf_link_add_object_symbols): Only set weakdef to a
real defined symbol, not to a weak defined symbol.
Ken Raeburn [Mon, 29 Jan 1996 17:45:18 +0000 (17:45 +0000)]
* i386.h: Fix waiting forms of finit, fstenv, fsave, fstsw, fstcw, and fclex.
Kim Knuttila [Mon, 29 Jan 1996 17:44:41 +0000 (17:44 +0000)]
Removed a ppc hack from cofflink, promoted some types to libcoff-in.h
Ian Lance Taylor [Mon, 29 Jan 1996 17:29:51 +0000 (17:29 +0000)]
* ld.texinfo, ld.1: Document -export-dynamic.
Ian Lance Taylor [Mon, 29 Jan 1996 17:25:26 +0000 (17:25 +0000)]
* ecoff.c (localsym_t): Add addend field.
(add_ecoff_symbol): Add addend argument. Change all callers.
(coff_sym_value): Make static.
(coff_sym_addend): New static variable.
(ecoff_directive_def): Initialize coff_sym_addend.
(ecoff_directive_val): Accept symbol + constant.
(ecoff_directive_endef): Pass coff_sym_addend to add_ecoff_symbol.
(ecoff_build_symbols): Include the addend in the symbol value.
Wilfried Moser [Mon, 29 Jan 1996 08:17:22 +0000 (08:17 +0000)]
* ch-valprint.c (calculate_array_length): New function to determine
the length of an array type (see comment).
(chill_val_print (case TYPE_CODE_ARRAY)): If the length of an
array type is zero, call calculate_array_length.
* gdbtypes.c (get_discrete_bounds (case TYPE_CODE_ENUM)): They values
may not be sorted. Scan all entries and set the real lower and
Wilfried Moser [Mon, 29 Jan 1996 08:09:04 +0000 (08:09 +0000)]
* builtins.ch, builtins.exp: Enhance test case.
* extstruct.ch, extstruct-grt.ch, extstruct.exp: New test case.
Fred Fish [Sun, 28 Jan 1996 22:52:53 +0000 (22:52 +0000)]
* config/xm-linux.h: Move include of solib.h and #define of
SVR4_SHARED_LIBS from here ...
* config/nm-linux.h: ...to here.