Commit Graph

14842 Commits

Author SHA1 Message Date
Michael Meissner
845ff5a45f more functional unit changes 1995-11-16 19:02:52 +00:00
Ian Lance Taylor
aa8a6656ee * config/m68k-parse.y (yylex): In MRI mode, '@' can start an octal
number.
	* expr.c (operand): Handle MRI suffixes after unadorned 0.
1995-11-16 17:51:35 +00:00
Ken Raeburn
b218076e59 version 2.6 1995-11-16 10:12:33 +00:00
Ken Raeburn
da9b55af46 version 2.6 1995-11-16 09:58:27 +00:00
Ken Raeburn
7b889f5eed * 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.
1995-11-16 05:38:58 +00:00
Stan Shebs
21ef3a298e * utils.c: Don't include sys/ioctl.h etc if MPW is host. 1995-11-16 01:24:25 +00:00
Ken Raeburn
ae75c4a423 log for this morning's makefile (make dep) change 1995-11-16 00:32:34 +00:00
Ian Lance Taylor
e9f3061668 * 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.
1995-11-15 23:17:21 +00:00
Michael Meissner
acb06d3040 Add option to make options inline 1995-11-15 23:01:47 +00:00
Michael Meissner
80948f392b More model specific changes 1995-11-15 22:53:59 +00:00
Ian Lance Taylor
1b09c02b17 * 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.
1995-11-15 22:44:56 +00:00
David Edelsohn
d7cde714c1 * config/arm/tm-arm.h (ADDITIONAL_REGISTER_NAMES): Fix r5.
(FRAME_SAVED_PC): Minor clean up.
1995-11-15 20:18:00 +00:00
Ian Lance Taylor
febc1fc3e3 * 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.
1995-11-15 17:21:26 +00:00
Ian Lance Taylor
29386972b9 * configure: Handle LD and LD_FOR_TARGET when configuring a
Canadian Cross.
1995-11-15 16:46:19 +00:00
Michael Meissner
cc7ef3c306 ppcbug-rom checkin 1995-11-15 15:36:47 +00:00
Ken Raeburn
46618ae6e7 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.
1995-11-15 10:56:07 +00:00
Jeff Law
dfbb1a26dc * gdb.base/callfuncs.exp: Remove bogus hppa xfails.
* gdb.base/corefile.exp: Likewise.
        * gdb.base/funcargs.exp: Likewise.

Never should have been there anyway.
1995-11-15 07:30:52 +00:00
Ian Lance Taylor
4b71e164cd * 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.
1995-11-15 04:41:10 +00:00
Ian Lance Taylor
631b10f44e * 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.
1995-11-15 01:34:56 +00:00
Ian Lance Taylor
ab276dfa72 comment fix 1995-11-15 01:14:26 +00:00
Ian Lance Taylor
28f6feaf2e * ld-sh/sh2.c (__main): Define. 1995-11-15 01:05:26 +00:00
Stu Grossman
fe2f8313f0 * gencode.c: jsr, bsr and bsrf actually save pc+4 in pr, and rts
actually uses pr+0.
1995-11-15 00:47:21 +00:00
Michael Meissner
97a002e72a Switch to using new fangled monitor.o routines for ppcbug, rather than remote 1995-11-15 00:11:14 +00:00
Stu Grossman
9999417ef6 * gencode.c: jsr actually saves pc+4, and rts actually uses pr+0. 1995-11-14 23:42:22 +00:00
Stu Grossman
7c0fe2ebbd * config/hmsirom.exp: Setup for talking to hmsi ROM monitor.
* config/monitor.exp:  Add support for setting baud rate.
1995-11-14 23:41:36 +00:00
Stu Grossman
ee824ca663 * 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.
1995-11-14 23:40:18 +00:00
Stu Grossman
5c8ba01776 * 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.
1995-11-14 23:24:10 +00:00
Jason Molenda
1c1a4269dd * config/mh-i386win32: add LD_FOR_TARGET. 1995-11-14 23:04:29 +00:00
Ian Lance Taylor
6922e654db * dlltool.c: Use FOPEN_* macros rather than "r" or "w". 1995-11-14 23:03:25 +00:00
Jason Molenda
600b2f21c9 * configure.in (target_libs): add target-winsup.
(target==i386-win32): add patch diff flex make to $noconfigdirs.
        (target==ppcle-pe): remove ld from $noconfigdirs.
1995-11-14 22:58:14 +00:00
Ian Lance Taylor
6d93c36004 * dlltool.c (fill_ordinals): Correct memset call. 1995-11-14 22:20:12 +00:00
Ian Lance Taylor
204066750f * 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.
1995-11-14 22:10:14 +00:00
Michael Meissner
3ae5193668 Add preliminary ppcbug support. 1995-11-14 21:25:11 +00:00
Michael Meissner
855bfb535f Add preliminary ppcbug support. 1995-11-14 21:17:20 +00:00
Jeff Law
5a014755c0 Zap partial-stab.h:GDB_TARGET_IS_HPPA item. 1995-11-14 18:31:28 +00:00
Ian Lance Taylor
bebcd3db3b * coff-sh.c (shlcoff_vec): Use _bfd_generic_archive_p, not
_bfd_dummy_target, matching the recent change to archive
	recognition.
1995-11-14 16:55:23 +00:00
Michael Meissner
39c324612d make inline model use static when inlining. 1995-11-14 11:34:01 +00:00
Michael Meissner
f35df46cc3 make inline model use static when inlining. 1995-11-14 11:25:34 +00:00
Michael Meissner
fe439e0f18 fix more warnings 1995-11-14 10:52:24 +00:00
David Edelsohn
a6cb89ff68 Update. cfg-ml-com.in replaced with config-ml.in. 1995-11-14 10:40:55 +00:00
Michael Meissner
ac79ccd41d Fix warnings and dependency 1995-11-14 09:52:29 +00:00
David Edelsohn
f3d4003ea3 Delete debugging -x's. 1995-11-14 09:36:54 +00:00
David Edelsohn
d747cac4c2 * 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.
1995-11-14 09:32:50 +00:00
Stan Shebs
75d1d87aa1 Keep te-macos.h. 1995-11-14 04:46:32 +00:00
Stan Shebs
51bc513e4e * 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.
1995-11-14 04:45:54 +00:00
Stan Shebs
13a0f5955f * 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.
1995-11-14 03:31:22 +00:00
Stan Shebs
19b1d034dc * 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.
1995-11-13 20:47:41 +00:00
Ian Lance Taylor
afa67334cb * libbfd.c (bfd_get_file_window): Use casts to avoid doing
arithmetic on PTR types.
1995-11-13 20:25:21 +00:00
Jeff Law
3306c363e3 * 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!
1995-11-13 20:15:42 +00:00
Ian Lance Taylor
f2bd89150f * aout-target.h (MY(callback)): Set the lma of the sections. 1995-11-13 18:31:50 +00:00