binutils-gdb.git
29 years agoversion 2.6
Ken Raeburn [Thu, 16 Nov 1995 10:12:33 +0000 (10:12 +0000)]
version 2.6

29 years agoversion 2.6
Ken Raeburn [Thu, 16 Nov 1995 09:58:27 +0000 (09:58 +0000)]
version 2.6

29 years ago* config/obj-coff.c (write_object_file): Change use of md_do_align to pass a
Ken Raeburn [Thu, 16 Nov 1995 05:38:58 +0000 (05:38 +0000)]
* config/obj-coff.c (write_object_file): Change use of md_do_align to pass a
pointer rather than a fill value, to match other uses.

* config/tc-ns32k.h (TC_FIX_TYPE): Add missing semicolon.

29 years ago * utils.c: Don't include sys/ioctl.h etc if MPW is host.
Stan Shebs [Thu, 16 Nov 1995 01:24:25 +0000 (01:24 +0000)]
* utils.c: Don't include sys/ioctl.h etc if MPW is host.

29 years agolog for this morning's makefile (make dep) change
Ken Raeburn [Thu, 16 Nov 1995 00:32:34 +0000 (00:32 +0000)]
log for this morning's makefile (make dep) change

29 years ago * targets.c (bfd_target): Change type of second argument to
Ian Lance Taylor [Wed, 15 Nov 1995 23:17:21 +0000 (23:17 +0000)]
* targets.c (bfd_target): Change type of second argument to
_bfd_print_private_bfd_data from void * to PTR.
* libbfd-in.h (_bfd_generic_bfd_print_private_bfd_data): Cast
using PTR rather than void *.
* bfd-in2, libbfd.h: Rebuild.
* peicode.h (pe_print_private_bfd_data): Change vfile from void *
to PTR.
* elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define as
_bfd_generic_bfd_print_private_bfd_data rather than casting
bfd_true.

29 years agoAdd option to make options inline
Michael Meissner [Wed, 15 Nov 1995 23:01:47 +0000 (23:01 +0000)]
Add option to make options inline

29 years agoMore model specific changes
Michael Meissner [Wed, 15 Nov 1995 22:53:59 +0000 (22:53 +0000)]
More model specific changes

29 years ago * ld-srec/srec.exp: New tests.
Ian Lance Taylor [Wed, 15 Nov 1995 22:44:56 +0000 (22:44 +0000)]
* ld-srec/srec.exp: New tests.
* ld-srec/sr1.c, ld-srec/sr2.c, ld-srec/sr3.cc: New files.
* lib/ld.exp (ld_simple_link): Discard warnings about not being
able to find the entry symbol.

29 years ago* config/arm/tm-arm.h (ADDITIONAL_REGISTER_NAMES): Fix r5.
David Edelsohn [Wed, 15 Nov 1995 20:18:00 +0000 (20:18 +0000)]
* config/arm/tm-arm.h (ADDITIONAL_REGISTER_NAMES): Fix r5.
(FRAME_SAVED_PC): Minor clean up.

29 years ago * binutils-all/objcopy.exp: If assembly fails, call unresolved.
Ian Lance Taylor [Wed, 15 Nov 1995 17:21:26 +0000 (17:21 +0000)]
* binutils-all/objcopy.exp: If assembly fails, call unresolved.
Test running objcopy and strip on a final executable.
* binutils-all/testprog.c: New file.
* config/default.exp (STRIP, STRIPFLAGS): Define.
(binutils_compile): New procedure.
* lib/utils-lib.exp (default_binutils_compile): New procedure.

29 years ago * configure: Handle LD and LD_FOR_TARGET when configuring a
Ian Lance Taylor [Wed, 15 Nov 1995 16:46:19 +0000 (16:46 +0000)]
* configure: Handle LD and LD_FOR_TARGET when configuring a
Canadian Cross.

29 years agoppcbug-rom checkin
Michael Meissner [Wed, 15 Nov 1995 15:36:47 +0000 (15:36 +0000)]
ppcbug-rom checkin

29 years agomove md_end use, and make use of it in cpu back ends. clean up empty, unused
Ken Raeburn [Wed, 15 Nov 1995 10:56:07 +0000 (10:56 +0000)]
move md_end use, and make use of it in cpu back ends.  clean up empty, unused
md_end functions.

i386 changes from Alan Modra for using multi-byte sequences instead of
single nops for code alignment.

29 years ago * gdb.base/callfuncs.exp: Remove bogus hppa xfails.
Jeff Law [Wed, 15 Nov 1995 07:30:52 +0000 (07:30 +0000)]
    * gdb.base/callfuncs.exp: Remove bogus hppa xfails.
        * gdb.base/corefile.exp: Likewise.
        * gdb.base/funcargs.exp: Likewise.

Never should have been there anyway.

29 years ago * peicode.h (coff_swap_aouthdr_out): For PPC PE, start isize at 0,
Ian Lance Taylor [Wed, 15 Nov 1995 04:41:10 +0000 (04:41 +0000)]
* peicode.h (coff_swap_aouthdr_out): For PPC PE, start isize at 0,
not at the file position of the first section.
* coffcode.h (coff_compute_section_file_positions): Avoid using
unportable #elif.
(coff_write_object_contents): When generating a PPC PE executable
with no symbols, round up the file size to a COFF_PAGE_SIZE
boundary.
* cofflink.c (_bfd_coff_final_link): If there are no symbols,
don't write out a string table.

29 years ago * elf.c (bfd_section_from_shdr): When using a different section
Ian Lance Taylor [Wed, 15 Nov 1995 01:34:56 +0000 (01:34 +0000)]
* elf.c (bfd_section_from_shdr): When using a different section
header, pass the new one to _bfd_elf_make_section_from_shdr.
(elf_fake_sections): Don't set sh_info and sh_entsize fields.
(elf_map_symbols): Add section VMA to symbol value when comparing
against 0.
(_bfd_elf_compute_section_file_positions): Only build symbol table
if there are some symbols.  Set file offset of symtab and strtab
sections.
(assign_file_positions_except_relocs): Remove dosyms parameter.
Change all callers.  Never set file offset of symtab and strtab
sections.
(_bfd_elf_copy_private_section_data): New function.
(MAP_ONESYMTAB, MAP_DYNSYMTAB, MAP_STRTAB, MAP_SHSTRTAB): Define.
(_bfd_elf_copy_private_symbol_data): New function.
(swap_out_syms): Check for special mapping of st_shndx created by
copy_private_symbol_data.
* elfxx-target.h: Use new copy routines.
* elf-bfd.h (_bfd_elf_copy_private_symbol_data): Declare.
(_bfd_elf_copy_private_section_data): Declare.

29 years agocomment fix
Ian Lance Taylor [Wed, 15 Nov 1995 01:14:26 +0000 (01:14 +0000)]
comment fix

29 years ago * ld-sh/sh2.c (__main): Define.
Ian Lance Taylor [Wed, 15 Nov 1995 01:05:26 +0000 (01:05 +0000)]
* ld-sh/sh2.c (__main): Define.

29 years ago * gencode.c: jsr, bsr and bsrf actually save pc+4 in pr, and rts
Stu Grossman [Wed, 15 Nov 1995 00:47:21 +0000 (00:47 +0000)]
* gencode.c:  jsr, bsr and bsrf actually save pc+4 in pr, and rts
actually uses pr+0.

29 years agoSwitch to using new fangled monitor.o routines for ppcbug, rather than remote
Michael Meissner [Wed, 15 Nov 1995 00:11:14 +0000 (00:11 +0000)]
Switch to using new fangled monitor.o routines for ppcbug, rather than remote

29 years ago * gencode.c: jsr actually saves pc+4, and rts actually uses pr+0.
Stu Grossman [Tue, 14 Nov 1995 23:42:22 +0000 (23:42 +0000)]
* gencode.c:  jsr actually saves pc+4, and rts actually uses pr+0.

29 years ago * config/hmsirom.exp: Setup for talking to hmsi ROM monitor.
Stu Grossman [Tue, 14 Nov 1995 23:41:36 +0000 (23:41 +0000)]
* config/hmsirom.exp:  Setup for talking to hmsi ROM monitor.
* config/monitor.exp:  Add support for setting baud rate.

29 years ago * monitor.c (monitor_load_srec monitor_make_srec): Move all
Stu Grossman [Tue, 14 Nov 1995 23:40:18 +0000 (23:40 +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 * 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.