binutils-gdb.git
29 years ago * monitor.c (monitor_load_srec monitor_make_srec): Move all
Stu Grossman [Tue, 14 Nov 1995 23:24:10 +0000 (23:24 +0000)]
* monitor.c (monitor_load_srec monitor_make_srec):  Move all
S-record download code into srec.c.
* srec.c srec.h:  New files.  Contain S-record loading routines
formerly in monitor.c.
* serial.c serial.h:  New routine just like fprintf, but uses
serial_t instead of FILE *.
* sh-tdep.c (frame_find_saved_regs init_extra_frame_info):
Don't add four to saved pc (makes things match manual).  Also, fix
bug where we didn't get pc from stack frame correctly.
* config/sh/tm-sh.h (SAVED_PC_AFTER_CALL):  Don't add four to
saved pc.  Real hardware does this for you.
* sh3-rom.c (sh3_load):  New routine.  Sets up for download then
calls generic S-record loader.
* config/h8300/h8300.mt, config/h8500/h8500.mt,
config/m68k/monitor.mt, config/pa/hppapro.mt, config/sh/sh.mt:
Add srec.o to TDEPFILES.

29 years ago * config/mh-i386win32: add LD_FOR_TARGET.
Jason Molenda [Tue, 14 Nov 1995 23:04:29 +0000 (23:04 +0000)]
    * config/mh-i386win32: add LD_FOR_TARGET.

29 years ago * dlltool.c: Use FOPEN_* macros rather than "r" or "w".
Ian Lance Taylor [Tue, 14 Nov 1995 23:03:25 +0000 (23:03 +0000)]
* dlltool.c: Use FOPEN_* macros rather than "r" or "w".

29 years ago * configure.in (target_libs): add target-winsup.
Jason Molenda [Tue, 14 Nov 1995 22:58:14 +0000 (22:58 +0000)]
    * configure.in (target_libs): add target-winsup.
        (target==i386-win32): add patch diff flex make to $noconfigdirs.
        (target==ppcle-pe): remove ld from $noconfigdirs.

29 years ago * dlltool.c (fill_ordinals): Correct memset call.
Ian Lance Taylor [Tue, 14 Nov 1995 22:20:12 +0000 (22:20 +0000)]
* dlltool.c (fill_ordinals): Correct memset call.

29 years ago * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Use the
Ian Lance Taylor [Tue, 14 Nov 1995 22:10:14 +0000 (22:10 +0000)]
* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Use the
environment variable LD_RUN_PATH if neither -rpath nor -rpath-link
were used.
(gld${EMULATION_NAME}_before_allocation): Use the environment
variable LD_RUN_PATH if -rpath was not used.
* ld.texinfo, ld.1: Document LD_RUN_PATH.
PR 8428.

29 years agoAdd preliminary ppcbug support.
Michael Meissner [Tue, 14 Nov 1995 21:25:11 +0000 (21:25 +0000)]
Add preliminary ppcbug support.

29 years agoAdd preliminary ppcbug support.
Michael Meissner [Tue, 14 Nov 1995 21:17:20 +0000 (21:17 +0000)]
Add preliminary ppcbug support.

29 years agoZap partial-stab.h:GDB_TARGET_IS_HPPA item.
Jeff Law [Tue, 14 Nov 1995 18:31:28 +0000 (18:31 +0000)]
Zap partial-stab.h:GDB_TARGET_IS_HPPA item.

29 years ago * coff-sh.c (shlcoff_vec): Use _bfd_generic_archive_p, not
Ian Lance Taylor [Tue, 14 Nov 1995 16:55:23 +0000 (16:55 +0000)]
* coff-sh.c (shlcoff_vec): Use _bfd_generic_archive_p, not
_bfd_dummy_target, matching the recent change to archive
recognition.

29 years agomake inline model use static when inlining.
Michael Meissner [Tue, 14 Nov 1995 11:34:01 +0000 (11:34 +0000)]
make inline model use static when inlining.

29 years agomake inline model use static when inlining.
Michael Meissner [Tue, 14 Nov 1995 11:25:34 +0000 (11:25 +0000)]
make inline model use static when inlining.

29 years agofix more warnings
Michael Meissner [Tue, 14 Nov 1995 10:52:24 +0000 (10:52 +0000)]
fix more warnings

29 years agoUpdate. cfg-ml-com.in replaced with config-ml.in.
David Edelsohn [Tue, 14 Nov 1995 10:40:55 +0000 (10:40 +0000)]
Update.  cfg-ml-com.in replaced with config-ml.in.

29 years agoFix warnings and dependency
Michael Meissner [Tue, 14 Nov 1995 09:52:29 +0000 (09:52 +0000)]
Fix warnings and dependency

29 years agoDelete debugging -x's.
David Edelsohn [Tue, 14 Nov 1995 09:36:54 +0000 (09:36 +0000)]
Delete debugging -x's.

29 years ago * Makefile.in (CONFIGURE_TARGET_MODULES): Pass --with-target-subdir.
David Edelsohn [Tue, 14 Nov 1995 09:32:50 +0000 (09:32 +0000)]
* Makefile.in (CONFIGURE_TARGET_MODULES): Pass --with-target-subdir.
Preserve relative path names in $srcdir.  Build symlink tree if
configuring cross target dir and srcdir=. (= no VPATH support).
(configure-target-libg++): Depend on configure-target-librx.
* cfg-ml-com.in, cfg-ml-pos.in: Deleted.
* config-ml.in: New file.
* symlink-tree: New file.
* configure: Ensure srcdir="." if that's what it is.

29 years agoKeep te-macos.h.
Stan Shebs [Tue, 14 Nov 1995 04:46:32 +0000 (04:46 +0000)]
Keep te-macos.h.

29 years ago * configure.in (ppc-*-macos*, ppc-*-mpw*): New configurations.
Stan Shebs [Tue, 14 Nov 1995 04:45:54 +0000 (04:45 +0000)]
* configure.in (ppc-*-macos*, ppc-*-mpw*): New configurations.
* configure: Update.
* mpw-make.sed: Reorder commands to make sed happier.
* config/te-macos.h: New file.
* config/tc-ppc.h (TARGET_FORMAT): Set correctly for PowerMac.

29 years ago * mpw-README: Clarify some phrasing, add notes about CodeWarrior
Stan Shebs [Tue, 14 Nov 1995 03:31:22 +0000 (03:31 +0000)]
* mpw-README: Clarify some phrasing, add notes about CodeWarrior
includes and FLEX_SKELETON setting.
* mpw-configure (--with-gnu-ld): New option, controls whether
to use PPCLink or ld with PowerMac GCC.
* mpw-build.in (all-grez, do-grez, install-grez): New targets.
* mpw-config.in: Configure grez if targeting Mac.

29 years ago * config.sub: Accept pmac and pmac-mpw as names for PowerMacs,
Stan Shebs [Mon, 13 Nov 1995 20:47:41 +0000 (20:47 +0000)]
* config.sub: Accept pmac and pmac-mpw as names for PowerMacs,
  accept mpw and mac-mpw as names for m68k Macs, change macos7 to
  just macos.
* configure.in: Configure grez resource compiler if targeting Mac.
* Makefile.in (all-grez, install-grez): New targets.

29 years ago * libbfd.c (bfd_get_file_window): Use casts to avoid doing
Ian Lance Taylor [Mon, 13 Nov 1995 20:25:21 +0000 (20:25 +0000)]
* libbfd.c (bfd_get_file_window): Use casts to avoid doing
arithmetic on PTR types.

29 years ago * partial-stab.h: Remove GDB_TARGET_IS_HPPA kludge.
Jeff Law [Mon, 13 Nov 1995 20:15:42 +0000 (20:15 +0000)]
    * partial-stab.h: Remove GDB_TARGET_IS_HPPA kludge.

gcc-2.7.0 and gdb-4.15 have been released, so some old crud can
disappear.  Yippie!

29 years ago * aout-target.h (MY(callback)): Set the lma of the sections.
Ian Lance Taylor [Mon, 13 Nov 1995 18:31:50 +0000 (18:31 +0000)]
* aout-target.h (MY(callback)): Set the lma of the sections.

29 years ago * ecoff.c (ecoff_reloc_link_order): Turn a reloc against a defined
Ian Lance Taylor [Mon, 13 Nov 1995 18:27:49 +0000 (18:27 +0000)]
* ecoff.c (ecoff_reloc_link_order): Turn a reloc against a defined
symbol into a reloc against the section.

29 years agocheckpoint
Michael Meissner [Mon, 13 Nov 1995 16:07:30 +0000 (16:07 +0000)]
checkpoint

29 years agoMissed a debug macro (duh)
Kim Knuttila [Mon, 13 Nov 1995 15:21:12 +0000 (15:21 +0000)]
Missed a debug macro (duh)

29 years agoImplemented IMGLUE reloc + dumping
Kim Knuttila [Mon, 13 Nov 1995 12:54:05 +0000 (12:54 +0000)]
Implemented IMGLUE reloc + dumping

29 years ago * gas/hppa/unsorted/brlenbug.s: New test.
Jeff Law [Mon, 13 Nov 1995 04:31:25 +0000 (04:31 +0000)]
    * gas/hppa/unsorted/brlenbug.s: New test.
        * gas/hppa/unsorted/unsorted.exp: Run it.

29 years ago * config/tc-hppa.c (pa_ip): Fix off-by-2 bug in length check for
Jeff Law [Mon, 13 Nov 1995 04:17:57 +0000 (04:17 +0000)]
    * config/tc-hppa.c (pa_ip): Fix off-by-2 bug in length check for
        conditional branches.
        (md_apply_fix): Likewise.

29 years agoAdd "grez" to keep_these_too.
Stan Shebs [Mon, 13 Nov 1995 02:12:19 +0000 (02:12 +0000)]
Add "grez" to keep_these_too.

29 years agoAdd model-functions support
Michael Meissner [Mon, 13 Nov 1995 01:27:21 +0000 (01:27 +0000)]
Add model-functions support

29 years ago * mpw-make.sed (DEMANGLER_PROG): Edit out attempts to do anything
Stan Shebs [Sun, 12 Nov 1995 21:03:38 +0000 (21:03 +0000)]
* mpw-make.sed (DEMANGLER_PROG): Edit out attempts to do anything
  with the man page.

29 years ago * Makefile.in (bfd_libs_here, etc): Provide empty definitions.
Stan Shebs [Sun, 12 Nov 1995 20:39:38 +0000 (20:39 +0000)]
* Makefile.in (bfd_libs_here, etc): Provide empty definitions.
* coff-rs6000.c (rs6000coff_vec): Add conditional defines
TARGET_SYM and TARGET_NAME for vector and BFD name.
* coff-pmac.c (pmac_xcoff_vec): Remove.
(TARGET_SYM, TARGET_NAME): Define.
* coffcode.h (coff_set_arch_mach_hook) [POWERMAC]: Set the
machine to 0, not all PowerMacs are 601s.

29 years agoAdd support for setting model name and other things
Michael Meissner [Sun, 12 Nov 1995 14:20:39 +0000 (14:20 +0000)]
Add support for setting model name and other things

29 years agoVarious changes
Michael Meissner [Sun, 12 Nov 1995 02:06:11 +0000 (02:06 +0000)]
Various changes

29 years agofix typo
Michael Meissner [Sat, 11 Nov 1995 12:30:17 +0000 (12:30 +0000)]
fix typo

29 years agoCheck for files in the source directory, not the build directory
Michael Meissner [Sat, 11 Nov 1995 01:11:31 +0000 (01:11 +0000)]
Check for files in the source directory, not the build directory

29 years agoTons of changes to allow model specific information in the instruction file.
Michael Meissner [Fri, 10 Nov 1995 22:49:05 +0000 (22:49 +0000)]
Tons of changes to allow model specific information in the instruction file.

29 years ago modified from 95q4
Victoria Mixon [Fri, 10 Nov 1995 19:59:40 +0000 (19:59 +0000)]
modified from 95q4

29 years ago modified from 95q4
Victoria Mixon [Fri, 10 Nov 1995 19:44:30 +0000 (19:44 +0000)]
modified from 95q4

29 years ago references to pesch@cygnus.com changed to doc@cygnus.com
Victoria Mixon [Fri, 10 Nov 1995 19:28:36 +0000 (19:28 +0000)]
references to pesch@cygnus.com changed to doc@cygnus.com

29 years ago binutils.texi: modified from 95q4
Victoria Mixon [Fri, 10 Nov 1995 19:09:41 +0000 (19:09 +0000)]
binutils.texi: modified from 95q4

29 years agoIf --enable-sim-inline is not specified, default to DEFAULT_INLINE=1, not 2.
Michael Meissner [Fri, 10 Nov 1995 11:41:58 +0000 (11:41 +0000)]
If --enable-sim-inline is not specified, default to DEFAULT_INLINE=1, not 2.

29 years agoAdd comment about enabing PowerPC simulator
Michael Meissner [Fri, 10 Nov 1995 11:38:13 +0000 (11:38 +0000)]
Add comment about enabing PowerPC simulator

29 years agofix typo
Michael Meissner [Fri, 10 Nov 1995 11:27:14 +0000 (11:27 +0000)]
fix typo

29 years ago * archive.c (bfd_generic_archive_p): Preserve tdata in case of
Ian Lance Taylor [Fri, 10 Nov 1995 04:50:15 +0000 (04:50 +0000)]
* archive.c (bfd_generic_archive_p): Preserve tdata in case of
failure.

29 years agoAdd --enable-sim-powerpc support.
Michael Meissner [Thu, 9 Nov 1995 22:44:47 +0000 (22:44 +0000)]
Add --enable-sim-powerpc support.

29 years agoEnable powerpc simulator for all powerpc-eabi targets, not just powerpc-eabisim if...
Michael Meissner [Thu, 9 Nov 1995 22:41:34 +0000 (22:41 +0000)]
Enable powerpc simulator for all powerpc-eabi targets, not just powerpc-eabisim if compiling with GCC.  Add --enable-sim-powerpc option to control this.

29 years ago * mpw-config.in: Add variable with names of SIOW libraries.
Raymond Jou [Thu, 9 Nov 1995 22:24:44 +0000 (22:24 +0000)]
* mpw-config.in: Add variable with names of SIOW libraries.
* mpw-make.sed: Add an action to build SIOWgdb.

29 years ago * ldfile.c (ldfile_try_open_bfd): If bfd_error_invalid_target,
Ian Lance Taylor [Thu, 9 Nov 1995 21:57:02 +0000 (21:57 +0000)]
* ldfile.c (ldfile_try_open_bfd): If bfd_error_invalid_target,
report a better error.

29 years agoObey --silent
Michael Meissner [Thu, 9 Nov 1995 21:38:13 +0000 (21:38 +0000)]
Obey --silent

29 years agoGet CC, etc. vars from configure; build ppc simulator if we are using GCC
Michael Meissner [Thu, 9 Nov 1995 21:23:36 +0000 (21:23 +0000)]
Get CC, etc. vars from configure; build ppc simulator if we are using GCC

29 years ago * config/tc-a29k.c (md_apply_fix): Warn if an attempt is made to
Ian Lance Taylor [Thu, 9 Nov 1995 21:15:10 +0000 (21:15 +0000)]
* config/tc-a29k.c (md_apply_fix): Warn if an attempt is made to
generate a reloc which the linker will not handle correctly.  Fix
overflow checking--R_IREL is 18 bits, not 17.

29 years ago * aoutx.h (NAME(aout,final_link)): Report a reasonable error when
Ian Lance Taylor [Thu, 9 Nov 1995 20:54:30 +0000 (20:54 +0000)]
* aoutx.h (NAME(aout,final_link)): Report a reasonable error when
trying to do a relocateable link with a non-a.out object file.

29 years ago * archive.c (bfd_generic_archive_p): Check the first object file
Ian Lance Taylor [Thu, 9 Nov 1995 20:53:49 +0000 (20:53 +0000)]
* archive.c (bfd_generic_archive_p): Check the first object file
in an archive even if target_defaulted is set.  If the object file
has the wrong xvec, reject it.

29 years ago * aoutx.h (NAME(aout,set_section_contents)): If a section can not
Ian Lance Taylor [Thu, 9 Nov 1995 20:09:00 +0000 (20:09 +0000)]
* aoutx.h (NAME(aout,set_section_contents)): If a section can not
be represented, report the name via _bfd_error_handler.
(translate_to_native_sym_flags): Likewise.
* elf32-mips.c (mips_elf_final_link): Likewise.
* oasys.c (oasys_write_sections): Likewise.

29 years agofix typo
Michael Meissner [Thu, 9 Nov 1995 19:51:34 +0000 (19:51 +0000)]
fix typo

29 years agoTurn on INLINES if using GCC to compile simulator; Print more stuff if requests ...
Michael Meissner [Thu, 9 Nov 1995 19:50:51 +0000 (19:50 +0000)]
Turn on INLINES if using GCC to compile simulator; Print more stuff if requests -t trace; If !WITH_ASSERT, do not check whether illegal bits in instruction are set

29 years ago * coffcode.h (coff_set_alignment_hook): Write RS6000COFF_C version
Ian Lance Taylor [Thu, 9 Nov 1995 19:44:09 +0000 (19:44 +0000)]
* coffcode.h (coff_set_alignment_hook): Write RS6000COFF_C version
which checks for STYP_OVRFLO sections.
(coff_compute_section_file_positions): If RS6000COFF_C, handle
reloc and lineno count overflows.
(coff_write_object_contents): Call coff_count_linenumbers before
coff_compute_section_file_positions.  If RS6000COFF_C, handle
reloc and lineno count overflows.
* xcofflink.c (_bfd_xcoff_bfd_final_link): Count line numbers and
relocs before dealing with .pad sections.  Count overflow section
headers when handling .pad sections.

29 years ago * coffcode.h (coff_write_object_contents): Set a.out vstamp to 1
Ian Lance Taylor [Thu, 9 Nov 1995 18:26:10 +0000 (18:26 +0000)]
* coffcode.h (coff_write_object_contents): Set a.out vstamp to 1
if RS6000COFF_C.

29 years ago * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Add
Ian Lance Taylor [Thu, 9 Nov 1995 18:11:03 +0000 (18:11 +0000)]
* emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Add
new local variable special_sections, and pass it to
size_dynamic_sections.  Look through the results, and move the
sections around in the mapping so that they are defined correctly.

29 years ago * xcofflink.c (XCOFF_DESCRIPTOR): Define.
Ian Lance Taylor [Thu, 9 Nov 1995 18:08:56 +0000 (18:08 +0000)]
* xcofflink.c (XCOFF_DESCRIPTOR): Define.
(struct xcoff_link_hash_table): Add descriptor_section and
special_sections fields.
(_bfd_xcoff_bfd_link_hash_table_create): Initialize new fields.
(xcoff_link_add_symbols): Set linkage section alignment.  Create
descriptor section.  Check for magic symbol names (_text, etc.),
and record them in special_sections if found.  Set
XCOFF_DESCRIPTOR flag for a function descriptor, and set its
descriptor field to point back to the function code symbol.
(xcoff_sweep): Always mark the special descriptor_section.
(bfd_xcoff_export_symbol): Check whether the symbol might be a
function descriptor, and mark it if it is.
(bfd_xcoff_size_dynamic_sections): Add new special_sections
parameter, and fill it in.  Allocate space for the descriptor
section.
(xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR flag when defining
global linkage code.  If an undefined function descriptor is
exported, arrange to define it.  Warn about any other undefined
exported symbol.
(_bfd_xcoff_bfd_final_link): Write out the descriptor section.
(xcoff_write_global_symbol): Create a function descriptor when
necessary.
* bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
* bfd-in2.h: Rebuild.

29 years agoBuild derived hash table for PowerPC PE
Kim Knuttila [Thu, 9 Nov 1995 14:08:28 +0000 (14:08 +0000)]
Build derived hash table for PowerPC PE

29 years agofix "make dep" for non-NetBSD systems
Ken Raeburn [Thu, 9 Nov 1995 09:19:13 +0000 (09:19 +0000)]
fix "make dep" for non-NetBSD systems

29 years ago* configure.in: Added new option --with[out]-mmap. Set USE_MMAP if it is given
Ken Raeburn [Thu, 9 Nov 1995 09:14:01 +0000 (09:14 +0000)]
* configure.in: Added new option --with[out]-mmap.  Set USE_MMAP if it is given
and mmep is available.
* acconfig.h: Undef USE_MMAP.
* configure, config.in: Regenerated.
* aoutx.h: If USE_MMAP is not defined, do all symbol and string table handling
the old way.
(aout_get_external_symbols): Don't complain if last byte of string table is
nonzero.
* libbfd.c [HAVE_MADVISE]: Include sys/types.h and sys/mman.h.
(bfd_free_window) [! USE_MMAP]: Don't define.
(bfd_get_file_window, _bfd_generic_get_section_contents_in_window)
 [! USE_MMAP]: Abort.

29 years ago * mpw-make.sed: Edit @ENABLE_CFLAGS@ out, mpw-configure can
Stan Shebs [Thu, 9 Nov 1995 03:31:21 +0000 (03:31 +0000)]
* mpw-make.sed: Edit @ENABLE_CFLAGS@ out, mpw-configure can
add back in if necessary.

29 years agoGeneral cleanup; add -t options support to print all options
Michael Meissner [Thu, 9 Nov 1995 02:35:15 +0000 (02:35 +0000)]
General cleanup; add -t options support to print all options

29 years ago * coff-a29k.c (a29k_reloc): Change handling of R_IREL reloc to be
Ian Lance Taylor [Thu, 9 Nov 1995 02:30:33 +0000 (02:30 +0000)]
* coff-a29k.c (a29k_reloc): Change handling of R_IREL reloc to be
compatible with AMD generated COFF files.  Try to support both AMD
and GNU formats simultaneously.
(coff_a29k_relocate_section): Likewise.

29 years ago * config/obj-coff.c (fixup_segment): Don't subtract md_pcrel_from
Ian Lance Taylor [Thu, 9 Nov 1995 02:28:57 +0000 (02:28 +0000)]
* config/obj-coff.c (fixup_segment): Don't subtract md_pcrel_from
from a PC relative reloc if TC_A29K.

29 years ago * config/tc-a29k.c (line_separator_chars): Restore '@'. Existing
Ian Lance Taylor [Thu, 9 Nov 1995 02:26:59 +0000 (02:26 +0000)]
* config/tc-a29k.c (line_separator_chars): Restore '@'.  Existing
code depends upon it.

29 years ago * a29k-dis.c (print_special): Change num to unsigned int.
Ian Lance Taylor [Thu, 9 Nov 1995 01:20:32 +0000 (01:20 +0000)]
* a29k-dis.c (print_special): Change num to unsigned int.

Wed Nov  8 20:10:35 1995  Eric Freudenthal <freudenthal@nyu.edu>

* a29k-dis.c (print_insn): Cast insn24 to unsigned long when
shifting it.

29 years agoWed Nov 8 20:03:44 1995 Eric Freudenthal <freudenthal@nyu.edu>
Ian Lance Taylor [Thu, 9 Nov 1995 01:04:56 +0000 (01:04 +0000)]
Wed Nov  8 20:03:44 1995  Eric Freudenthal <freudenthal@nyu.edu>

* coff-a29k.c (SIGN_EXTEND_HWORD): Use ~0xffff rather than
0xffff0000.

29 years ago * config/tc-a29k.c (md_operand): Handle $float, $double, and
Ian Lance Taylor [Thu, 9 Nov 1995 01:01:44 +0000 (01:01 +0000)]
* config/tc-a29k.c (md_operand): Handle $float, $double, and
$extend.  Based on code from Eric Freudenthal
<freudenthal@nyu.edu>.
* config/tc-a29k.h (LEX_DOLLAR): Define.
* read.c (LEX_DOLLAR): Define if not defined.
(lex_type): Use LEX_DOLLAR.

29 years agoget the printf cast right
Ian Lance Taylor [Wed, 8 Nov 1995 22:04:00 +0000 (22:04 +0000)]
get the printf cast right

29 years agoWed Nov 8 16:38:14 1995 Eric Freudenthal <freudenthal@nyu.edu>
Ian Lance Taylor [Wed, 8 Nov 1995 21:39:38 +0000 (21:39 +0000)]
Wed Nov  8 16:38:14 1995  Eric Freudenthal <freudenthal@nyu.edu>

* configure.in (a29k-nyu-sym1): New target, just like other a29k
targets.

29 years ago * libbfd.c (bfd_get_file_window): Change writable parameter from
Ian Lance Taylor [Wed, 8 Nov 1995 21:24:33 +0000 (21:24 +0000)]
* libbfd.c (bfd_get_file_window): Change writable parameter from
int to boolean; update all callers.  Pass MAP_SHARED if not
writable--it's required on Solaris.  Cast fprintf argument to
avoid warning.
* bfd-in.h (bfd_get_file_window): Update declaration.
* bfd-in2.h: Rebuild.
* aoutx.h: Update calls to bfd_get_file_window.

29 years ago * xcofflink.c (xcoff_find_reloc): Handle the case of a single
Ian Lance Taylor [Wed, 8 Nov 1995 19:26:19 +0000 (19:26 +0000)]
* xcofflink.c (xcoff_find_reloc): Handle the case of a single
reloc correctly.

29 years agomore XCOFF linker hackery
Ian Lance Taylor [Wed, 8 Nov 1995 19:08:18 +0000 (19:08 +0000)]
more XCOFF linker hackery

29 years agofirst stage in function unit support; add new switches & latest code from andrew
Michael Meissner [Wed, 8 Nov 1995 18:57:06 +0000 (18:57 +0000)]
first stage in function unit support; add new switches & latest code from andrew

29 years ago * xcofflink.c (XCOFF_DEF_DYNAMIC): Rename from XCOFF_REF_DYNAMIC.
Ian Lance Taylor [Wed, 8 Nov 1995 18:17:44 +0000 (18:17 +0000)]
* xcofflink.c (XCOFF_DEF_DYNAMIC): Rename from XCOFF_REF_DYNAMIC.
Change all uses.
(xcoff_swap_ldhdr_in): New static function.
(xcoff_swap_ldsym_in): New static function.
(xcoff_link_add_symbols): If we just created a descriptor, pass it
to _bfd_generic_link_add_one_symbol, to save a hash lookup.
(xcoff_link_add_dynamic_symbols): Rewrite to read .loader symbols
rather than normal symbol table.
(xcoff_mark): When considering called symbols, check whether the
descriptor is from a dynamic object, rather than the symbol
itself.
(xcoff_build_ldsyms): Likewise.

29 years ago * ldemul.c (ldemul_default_target): Cast getenv return value.
Ian Lance Taylor [Wed, 8 Nov 1995 16:41:39 +0000 (16:41 +0000)]
* ldemul.c (ldemul_default_target): Cast getenv return value.

29 years ago * gprof.c (main): Cast getenv return value.
Ian Lance Taylor [Wed, 8 Nov 1995 16:40:24 +0000 (16:40 +0000)]
* gprof.c (main): Cast getenv return value.

29 years ago * config/obj-coff.c (c_dot_file_symbol): Cast xmalloc return.
Ian Lance Taylor [Wed, 8 Nov 1995 16:39:28 +0000 (16:39 +0000)]
* config/obj-coff.c (c_dot_file_symbol): Cast xmalloc return.

29 years ago * arsup.c (ar_open): Cast malloc return value.
Ian Lance Taylor [Wed, 8 Nov 1995 16:34:56 +0000 (16:34 +0000)]
* arsup.c (ar_open): Cast malloc return value.

29 years ago * libbfd.c (bfd_get_file_window): Change return type to boolean.
Ian Lance Taylor [Wed, 8 Nov 1995 16:32:40 +0000 (16:32 +0000)]
* libbfd.c (bfd_get_file_window): Change return type to boolean.
Cast realloc and malloc return values.  If malloc or realloc fail,
set bfd_error_no_memory.
* bfd-in.h (bfd_get_file_window): Change type to boolean.
* bfd-in2.h: Rebuild.

29 years ago* config/mips/vr4300.mt: Added simulator to default VR4300 build.
Jackie Smith Cashion [Wed, 8 Nov 1995 16:04:23 +0000 (16:04 +0000)]
* config/mips/vr4300.mt: Added simulator to default VR4300 build.

NOTE: Only the BigEndian build has the simulator included, because a
LittleEndian simulator is not constructed at the moment (it should
work, but has not been tested fully).

29 years ago* configure.in (mips*-*-*): Added "mips" simulator target.
Jackie Smith Cashion [Wed, 8 Nov 1995 15:48:59 +0000 (15:48 +0000)]
* configure.in (mips*-*-*): Added "mips" simulator target.
* configure: Re-generated.

29 years agoInitial check-in of the MIPS simulator. Work still needs to be done on
Jackie Smith Cashion [Wed, 8 Nov 1995 15:44:38 +0000 (15:44 +0000)]
Initial check-in of the MIPS simulator. Work still needs to be done on
the run-time support code (interp.c) to provide better tracing, and
also to add profiling and architecture specific support. At the moment
the simulator has a fixed size, fixed address memory area, and
simulates a subset of the IDT monitor calls (enough to execute test
programs).

The other major feature (could even be a bug) is that the simulator
makes use of the GCC "long long" extension. Work has been started to
make this a build configuration option... but there is still a lot of
this to be done.

29 years ago * remote-mips.c (mips_initialize): Fix brain damage found by
Stu Grossman [Wed, 8 Nov 1995 00:33:16 +0000 (00:33 +0000)]
* remote-mips.c (mips_initialize):  Fix brain damage found by
Jamie.  Basically had case statement in the wrong place...
* (mips_load):  Remove unnecessary `db tty0' command.  It's all
handled by mips_initialize now.

29 years ago * remote-mips.c (mips_initialize): Fix brain damage found by
Stu Grossman [Wed, 8 Nov 1995 00:06:58 +0000 (00:06 +0000)]
* remote-mips.c (mips_initialize):  Fix brain damage found by
Jamie.  Basically had case statement in the wrong place...

29 years ago * mpw-mh-mpw (CC_MWC68K, CC_MWCPPC): Remove unused include path.
Stan Shebs [Tue, 7 Nov 1995 23:49:00 +0000 (23:49 +0000)]
* mpw-mh-mpw (CC_MWC68K, CC_MWCPPC): Remove unused include path.
(CC_MWCPPC): Add -mpw_chars, disable warnings, add comments
explaining reasons for various flags.
(EXTRALIBS_PPC, EXTRALIBS_MWCPPC ): Put runtime library first.

29 years ago * configure: Default ${build} correctly. Avoid picking up extra
Ian Lance Taylor [Tue, 7 Nov 1995 23:47:45 +0000 (23:47 +0000)]
* configure: Default ${build} correctly.  Avoid picking up extra
spaces when reading CC and CXX from Makefile.  When doing a
Canadian Cross, use plausible default values for numerous
variables.
* configure.in: When doing a Canadian Cross, don't try to
configure tools whose configure script can't handle it.

29 years agoadded PowerPC PE targetting stuff
Kim Knuttila [Tue, 7 Nov 1995 22:20:00 +0000 (22:20 +0000)]
added PowerPC PE targetting stuff

29 years agoNew PowerPC Portable Executable stuff
Kim Knuttila [Tue, 7 Nov 1995 22:14:23 +0000 (22:14 +0000)]
New PowerPC Portable Executable stuff

29 years ago * ecofflink.c (_bfd_ecoff_locate_line): Keep looking through stabs
Ian Lance Taylor [Tue, 7 Nov 1995 21:43:07 +0000 (21:43 +0000)]
* ecofflink.c (_bfd_ecoff_locate_line): Keep looking through stabs
entries until both the line number address and the function name
address are too large.
PR 8364.

29 years agoFirst round ld support for PPC PE
Kim Knuttila [Tue, 7 Nov 1995 21:33:33 +0000 (21:33 +0000)]
First round ld support for PPC PE

29 years agoExclude resources from SIOWgdb.
Raymond Jou [Tue, 7 Nov 1995 21:13:49 +0000 (21:13 +0000)]
Exclude resources from SIOWgdb.

29 years agoSmall PPC support changes
Kim Knuttila [Tue, 7 Nov 1995 20:47:48 +0000 (20:47 +0000)]
Small PPC support changes

29 years agoNT Changes
Kim Knuttila [Tue, 7 Nov 1995 20:33:42 +0000 (20:33 +0000)]
NT Changes