Commit Graph

1281 Commits

Author SHA1 Message Date
Stan Shebs edd9075caf Sat Feb 26 13:23:06 1994 Stan Shebs (shebs@andros.cygnus.com)
* mpw-make.in (install): Moved here from mpw-build.in.
	* mpw-build.in: Removed, functionality in mpw-make.in
1994-02-26 21:25:10 +00:00
Jeff Law e03095c9bb * config/tc-hppa.c (hppa_tc_symbol): Call PA ELF BFD version.
(hppa_tc_make_sections): Likewise.
        (pa_build_symextn_section): Delete unused function.
        (hppa_tc_make_symextn_section): Likewise.
        (pa_export): Delete call to pa_build_symextn_section.

        * config/tc-hppa.h (hppa_tc_symbol): Add extern decl.
        (elf_hppa_final_processing): Delete extern decl.
        (hppa_tc_symbol): Delete extern decl.
1994-02-26 04:57:57 +00:00
Ian Lance Taylor 3919ffeb06 * config/obj-coffbfd.c (fill_section): Correct test for whether to
fill a section (from Minh Tran-Le <TRANLE@intellicorp.com>).
1994-02-25 21:16:56 +00:00
Ken Raeburn f95de5d9fd * read.c (potable): Added ".this_GCC_requires_the_GNU_assembler", which is
ignored by gas, but will cause other assemblers to choke.  Intended for use by
gcc ports that require gas instead of native assemblers.
1994-02-24 16:38:42 +00:00
Jeff Law 2563162846 * gas/hppa/more.parse/parse.exp (no subspace test): Only expect
a failure if gas is not producing an ELF object.
1994-02-24 15:12:50 +00:00
Jeff Law cb6af92833 * config/ho-hppaosf.h: Fix braino in test for ANSI-C. 1994-02-24 15:11:19 +00:00
Jeff Law 08c5812ce1 * write.c (write_contents): Give the user a reasonable error
message rather than "assertion failed" if bfd_set_section_contents
        fails.
1994-02-24 00:53:24 +00:00
Ken Raeburn c9c45af14e this is i386-mach3 *host* support (not target like in last mistaken msg)... 1994-02-22 18:09:19 +00:00
Ken Raeburn 75ec0c908b keep te-mach.h 1994-02-22 17:57:49 +00:00
Ken Raeburn 3dcd9356fa Should've got checked in with i386-mach3 config changes.
(Already in change log.)
1994-02-22 17:57:35 +00:00
Ian Lance Taylor 2e5fdb1db0 * ecoff.c (ecoff_build_debug): Don't set hdr->magic here. It is
now set in bfd/ecofflink.c:ecoff_write_symhdr.
1994-02-22 04:30:14 +00:00
Ian Lance Taylor 380fa957e5 * config/obj-coffbfd.c (write_object_file): use bfd_get_error (),
not bfd_error.
	* config/obj-elf.c (elf_frob_file): Likewise.
1994-02-22 03:49:59 +00:00
Ian Lance Taylor 9d90491e82 * read.c (s_lcomm): Use an alignment power of 3 for 8 byte .lcomm
variables.
1994-02-22 03:49:42 +00:00
Ian Lance Taylor 254f845017 PowerPC ELF is now in BFD; fix comment claiming otherwise. 1994-02-22 00:14:02 +00:00
Ian Lance Taylor c8d02404ea * config/ho-hpux.h (BROKEN_ASSERT): Define if not __GNUC__. 1994-02-21 23:17:59 +00:00
Ian Lance Taylor 9eb5f4b8c6 * read.c (read_a_source_file): Use correct arguments to memcpy
(broken 19 Jul 1993).  From kjd@pescadero.stanford.edu (Kenneth
	Duda).
1994-02-21 19:44:01 +00:00
Ian Lance Taylor 4d88d6dcb3 * config/obj-coff.h (obj_coff_section): Declare.
* config/obj-coff.c (obj_pseudo_table): For "section", use
	obj_coff_section.
	(obj_coff_section): Rewrite.
1994-02-21 02:06:52 +00:00
Ken Raeburn 3eacff1741 update -- keep more stuff recently added 1994-02-18 22:09:23 +00:00
Ken Raeburn 5efa30faad keep new te-mach.h 1994-02-18 22:04:40 +00:00
Ken Raeburn 9e0cbfbbe3 First cut at i386-mach3 support. 1994-02-18 20:08:11 +00:00
Ken Raeburn 06471862ca First attempt at i386-mach3 support.
te-mach.h: New file.
obj-aout.c (obj_aout_frob_file): New function.
obj-aout.h (obj_aout_frob_file): Declare it.
(frob_file): New macro.
tc-i386.c (md_apply_fix_1) [TE_Mach]: Don't adjust pcrel32 relocations.
tc-i386.h (TARGET_FORMAT) [TE_Mach]: Use a.out-mach3.
1994-02-18 19:57:35 +00:00
Ken Raeburn 741f4d6676 write.c (write_object_file): Removed register declarations. 1994-02-18 19:53:26 +00:00
Ken Raeburn 04bde70d04 missed atof-generic log entry last time 1994-02-18 19:41:53 +00:00
Roland Pesch 673b162c1a Correct info about evaluating macro args (distinct from evaluating preprocessor
vars); add version number (1); formatting improvements.
1994-02-18 01:10:24 +00:00
Ian Lance Taylor 5e65fbc84b Some support for PowerPC ELF, although it isn't in BFD yet.
* configure.in: If cpu is powerpc*, use ppc.
	(ppc-*-sysv4*): Use object format elf.
	* config/tc-ppc.h: Only declare a number of things if OBJ_COFF is
	defined.
	(TARGET_ARCH): Make it call ppc_arch.
	(ppc_arch): Declare.
	(TARGET_FORMAT): Set based on OBJ_COFF or OBJ_ELF.
	(NO_STRING_ESCAPES): Define.
	(LOCAL_LABEL, FAKE_LABEL_NAME): Define for OBJ_ELF.
	* config/tc-ppc.c: Only define a number of functions of OBJ_COFF
	is defined.
	(md_pseudo_table): Most pseudo-ops are OBJ_COFF specific.  Added
	OBJ_COFF specific "bi" and "ei".
	(md_parse_option): Fix handling of -u.  Make -m601 set
	PPC_OPCODE_601.  If OBJ_ELF, accept -V and -Q.
	(ppc_set_cpu): New function.
	(ppc_arch): New function.
	(md_begin): Call ppc_set_cpu.
	(ppc_insert_operand): For a signed operand accept an unsigned
	value, for IBM compatibility.
	(ppc_byte): Don't call stringer for strings; instead, treat two
	double quotes as a single double quote.
	(ppc_comm): Set sy_tc.output for a .lcomm symbol.
	(ppc_biei): New function.
	(ppc_tc): If not OBJ_COFF, ignore first argument.
	(ppc_fix_adjustable): Call as_bad_where, not as_bad.
	(ppc_is_toc_sym): New function.
	(md_apply_fix): Use ppc_is_toc_sym.  Handle BFD_RELOC_16 and
	BFD_RELOC_8.
1994-02-17 21:37:32 +00:00
David MacKenzie f61b81b7c1 * messages.c (as_perror) [BFD_ASSEMBLER]: Use bfd_get_error and
bfd_set_error and new error names.
1994-02-17 18:14:04 +00:00
Roland Pesch dd565f85bf (1) remove dangling references to old internal sections (pass1, difference)
(2) move explanation of new MIPS options from summary section to MIPS-options
    section; add summaries in appropriate spots.
(3) usual minor rephrasing in passing.
1994-02-16 01:52:25 +00:00
Ken Raeburn c25be7f4e9 * configure.in: Support i960-vxworks versions > 5.0 as coff.
Default is still bout if no version is specified.
1994-02-16 01:28:59 +00:00
Jeff Law 1e95993e94 * gas/hppa/basic/fmemLRbug.s: New test.
* gas/hppa/basic/basic.exp: Run it.
1994-02-14 17:25:25 +00:00
Roland Pesch 71165d7698 Formatting improvements from first eyeball once-over. 1994-02-12 07:12:40 +00:00
Roland Pesch 68ac42f696 Clean formatting under TeX/FSF layout and TeX/Cygnus layout 1994-02-12 04:53:38 +00:00
Roland Pesch 24b9a4e211 Keep the new gasp manual. 1994-02-12 04:25:34 +00:00
Roland Pesch bddd4c2329 A manual for the GNU assembler preprocessor. 1994-02-12 03:59:03 +00:00
Ian Lance Taylor b1237b9d04 * config/tc-mips.c (macro): Do unaligned loads and stores
correctly when big endian, and give errors on overflow rather than
	generating incorrect code.
1994-02-11 18:16:19 +00:00
Ian Lance Taylor 605e1d90e3 * as.c: Include libiberty.h. 1994-02-10 22:33:56 +00:00
Ian Lance Taylor c02fd8dc3e * read.c (do_align): Don't define label just_record_alignment
unless it might be used.
1994-02-10 22:32:21 +00:00
Ian Lance Taylor 4045fbb497 * config/tc-i386.c (md_pseudo_table): Remove "zero".
* config/tc-m88k.c (md_pseudo_table): Likewise.
1994-02-10 16:27:34 +00:00
Ken Raeburn 6440d65c34 * config/tc-sparc.c (sparc_ip): Reject integer values for pc-relative operand
fields.  This forces "call 0" to become "jmpl %g0,%o7" with no relocs needed.
1994-02-10 06:48:19 +00:00
Ken Raeburn 0586b4600f * gas/alpha/fp.*: New files.
* lib/gas-defs.exp (regexp_diff): Report noted mismatch at
verbosity level 3 or above only.
1994-02-10 05:39:17 +00:00
Ian Lance Taylor d87c080eaf * as.h (xmalloc, xrealloc): Declare using PTR rather than char *.
* xmalloc.c (xmalloc, xrealloc): Use PTR rather than char *.
1994-02-09 18:23:23 +00:00
Ian Lance Taylor ddb393cf89 * app.c (do_scrub_next_char): If NO_STRING_ESCAPES is defined,
don't treat backslash specially inside strings.
	* read.c (next_char_of_string): Likewise.
1994-02-09 18:11:20 +00:00
Stan Shebs 66c774bb3e Wed Feb 9 09:42:45 1994 Stan Shebs (shebs@andros.cygnus.com)
* config/obj-coffbfd.c (obj_coff_init_stab_section): Use memset
	instead of memcpy to zero the initial stab symbol, duh.
	* config/obj-elf.c (obj_elf_init_stab_section): Ditto.
	* config/obj-som.c (obj_som_init_stab_section): Ditto.
1994-02-09 17:47:40 +00:00
Ian Lance Taylor 356315fe1c * write.c (fixup_segment): Use as_bad_where, not as_bad. 1994-02-09 05:02:25 +00:00
Ken Raeburn cfaf70e3a6 sparclite-coff fix: obj-coff.c, symbols.c, write.c modified for abs_symbol 1994-02-09 00:51:26 +00:00
Ken Raeburn e8501a72ce (adjust_reloc_syms): Use abs_symbol instead of calling section_symbol. 1994-02-09 00:04:43 +00:00
Ken Raeburn cafb569b7a -Wall is Ian's friend; make them both happy (by removing `/*' inside comment). 1994-02-08 23:07:55 +00:00
Ken Raeburn 7496639ab5 * configure.in (alpha-*-netware*): New target, like alpha-*-osf*. 1994-02-08 21:52:01 +00:00
Ken Raeburn 8a74b870a5 tc-alpha fixes 1994-02-08 21:09:10 +00:00
Ken Raeburn df44a8523f * write.c (write_relocs): Print some sensible error message if
bfd_perform_relocation returns bfd_reloc_overflow.
1994-02-08 21:02:35 +00:00
Jeff Law a2f0b50733 * gas/hppa/*/*.exp: Change xfails to check for PA ELF rather than
PA OSF1.
1994-02-07 23:54:54 +00:00
Ken Raeburn 2d33b3aacb tc-alpha.c (md_atof): Warn that FP vals might not assemble properly 1994-02-07 21:36:35 +00:00
Ken Raeburn c3591adb28 configure.in, tc-alpha, atof-generic changes 1994-02-07 21:14:39 +00:00
Ken Raeburn 34de45f9a6 Enable alpha-*-osf* configuration. 1994-02-07 21:12:55 +00:00
Ken Raeburn cf272f0244 (load_expression): Parenthesize operations in range checking, to avoid
precedence questions.

(addr32): New static variable.
(md_parse_option): Set it for "-32addr".
(load_symbol_address): If addr32 is set, use ldl instead of ldq.
1994-02-07 21:12:03 +00:00
Ken Raeburn 5facbfd428 tc-alpha, obj-ecoff changes 1994-02-07 10:13:59 +00:00
Ken Raeburn 4a6e1a39e7 * tc-alpha.c (md_section_align): Change second argument and
return type to valueT, to agree with tc.h.
(alpha_do_align): Local static array nop_pattern is now unsigned
char, to avoid overflow warnings.
* tc-alpha.h (md_section_align): Delete declaration.

* obj-ecoff.c (ecoff_frob_file): Ensure that ecoff_data for
output bfd is non-null before indirecting through it.

Crock to get GP set right:
* tc-alpha.c (alpha_frob_ecoff_data): Renamed from alpha_frob_file.
* tc-alpha.h (tc_frob_file): Macro deleted.
* obj-ecoff.c (ecoff_frob_file) [TC_ALPHA]: Call alpha_frob_ecoff_data, then
fill in optional-header info with gp value and register masks.
1994-02-07 10:11:43 +00:00
Ken Raeburn fc6b54fdf5 atof-generic.c, ecoff.c, literal.c, write.c changes 1994-02-07 09:58:29 +00:00
Ken Raeburn a5ac3a14a1 (atof_generic): Calculate maximum number of useful digits in integer
arithmetic, to eliminate only source of dependence on floating point support,
which currently doesn't work yet on the Alpha.
1994-02-07 09:56:47 +00:00
Jeff Law f8693e71a7 * configure.in (hiux): Fixes from m-kasahr@sramhc.sra.co.JP. 1994-02-07 00:34:59 +00:00
Jeff Law dc536cc0ca * config/obj-som.c (obj_som_init_stab_section): Same change
as coffbfd and elf below.  Zero the initial stab symbol after
        allocating it.
1994-02-07 00:15:01 +00:00
Ian Lance Taylor 3a0e38ee59 Don't refer to new fields unless BFD_ASSEMBLER (from sac). 1994-02-05 22:17:20 +00:00
Stan Shebs 41b5ef0f76 Sat Feb 5 12:30:32 1994 Stan Shebs (shebs@andros.cygnus.com)
* config/obj-coffbfd.c (obj_coff_init_stab_section): Zero the
	initial stab symbol after allocating it.
	* config/obj-elf.c (obj_elf_init_stab_section): Ditto.

This fixes a critical bug observed in Q4 for Lynx.
1994-02-05 21:45:51 +00:00
Jeff Law fa4beb7e8f * config/tc-hppa.c (pa_ip): addb[tf] should only accept
non-negated condition completers.  Add support for addb pseudo-op
        which accepts both negated and non-negated completers.
1994-02-05 19:54:51 +00:00
Jeff Law 4fc3b3b493 * gas/hppa/more.parse/xmpyubug.s: New test.
* gas/hppa/more.parse/parse.exp: Run it.
1994-02-05 07:43:29 +00:00
Ian Lance Taylor 1c11ab0e7f * configure.in (rs6000*): Use cpu_type ppc.
(ppc-*-aix*): New target; use coff and force bfd_gas.
1994-02-05 05:38:24 +00:00
Ian Lance Taylor af46c203df New files for PowerPC/POWER (RS/6000) support. 1994-02-05 05:35:11 +00:00
Ian Lance Taylor 262b22cd10 Changed relocs to be based on subsegments (when BFD_ASSEMBLER).
* subsegs.h (struct frchain): If BFD_ASSEMBLER, added new fields
	fix_root and fix_tail.
	(segment_info_type): If BFD_ASSEMBLER, don't define fix_tail
	field.
	* write.c (fix_new_internal): If BFD_ASSEMBLER, set fix_rootP and
	fix_tailP based on frchain_now, not seg_info (now_seg).
	(chain_frchains_together_1): Chain the subsegment relocs together.
	* subsegs.c (subseg_change): Don't clear fix_tail field.
	(subseg_get): Likewise.
	* literal.c (add_to_literal_pool): Look through the relocs via
	frchain_now, not seginfo.

	* write.c (write_object_file): Simplified usage of obj_frob_symbol
	and tc_frob_symbol.  Always call both if the symbol is going to be
	output.

	* write.c (relax_segment): Use %ld rather than %d when printing
	fragP->fr_var, and cast it to long.
1994-02-05 05:29:42 +00:00
Ken Raeburn 9ebe52b3b9 * lib/gas-defs.exp (regexp_diff): New procedure, vaguely based on
"simple_diff" from linker test suite.
* gas/sun4/addend.exp: Use it.
* gas/sun4/addend.d: New file.
1994-02-04 22:19:31 +00:00
Ian Lance Taylor f85ad9d5c5 * ecoff.c (ecoff_symbol_new_hook): Clear ecoff_extern_size, not
ecoff_undefined.
	(ecoff_frob_symbol): Don't check ecoff_undefined.
	(ecoff_build_symbols): Get size of an undefined symbol from
	sym->ecoff_extern_size, not S_GET_VALUE (sym).
1994-02-04 04:14:24 +00:00
Ian Lance Taylor 11c0749600 Revert last change. 1994-02-04 03:17:30 +00:00
Ian Lance Taylor fdb3408e12 * config/tc-mips.c (md_apply_fix): If this is an undefined symbol,
subtract the value from fx_addnumber to since
	bfd_perform_relocation is going to add it in.
1994-02-04 02:32:54 +00:00
Jeff Law b4bd2c92c5 * Makefile.in: Avoid bug in losing hpux sed. 1994-02-02 21:58:54 +00:00
Ian Lance Taylor 1051c97f63 * config/tc-mips.c (file_mips_isa): New static variable.
(md_begin): Set it.
	(s_mipsset): Add support for .set mipN to set the ISA level.
1994-02-02 17:06:24 +00:00
Ian Lance Taylor 950df4212c * gasp.c (kinfo): Fully bracket initializer. 1994-02-02 16:43:00 +00:00
Roland Pesch cd41d0672a Stop claiming MIPS li.d and li.s insns are not supported, now that they are. 1994-02-02 03:44:39 +00:00
Roland Pesch 65fbb2d722 Three scattered fixes (nearly lost!) from early suggestions by Jeff Law. 1994-02-02 03:32:31 +00:00
Roland Pesch 03d2167461 Better organization, indexing, for MIPS-dep section. 1994-02-02 01:43:26 +00:00
Ken Raeburn f2cdeec493 gasp.c, atof-ieee.c, ho-i386aix.h changes 1994-02-02 00:40:29 +00:00
Ken Raeburn 6761eb8b9e * gasp.c (malloc): Don't declare, since host.h or system header files may
declare it differently.

(Actually, the only use is in xmalloc; if xmalloc didn't also zero out the
region of memory, I'd delete the function altogether and use the libiberty
version...)
1994-02-02 00:35:37 +00:00
Ken Raeburn 5ca42ea386 * config/ho-i386aix.h: Include sys/types.h and stdlib.h, not ho-sysv.h. Based
loosely on a patch from Minh Tran-Le.
1994-02-02 00:32:10 +00:00
Roland Pesch fb5bec4950 (1) use new flag SMALL to control whether or not insn tables appear
where avail (see comments in src)
(2) minor proofreading improvements to HPPA sec, and page break
    improvement (for Cygnus format) to M68K sec
1994-02-02 00:01:44 +00:00
Ian Lance Taylor 8bbad6fda8 * config/tc-mips.c (mips_ip): Make an unsupported instruction a
warning, not an error.
1994-02-01 23:10:05 +00:00
Steve Chamberlain e2847e64ff * gasp.c: Include host.h. 1994-02-01 18:58:32 +00:00
Ian Lance Taylor 9cbf9e57c2 obj-coff, obj-coffbfd changes. 1994-02-01 17:19:54 +00:00
Ian Lance Taylor 96a8876071 * config/obj-coffbfd.c (symbol_to_chars): bfd_coff_swap_aux_out
now takes more arguments.
1994-02-01 17:18:42 +00:00
Ian Lance Taylor 257df7914d * config/obj-coff.c (dot_text_symbol, dot_data_symbol,
dot_bss_symbol): Don't define if BFD_ASSEMBLER.
	(obj_symbol_to_chars): bfd_coff_swap_aux_out now takes more
	arguments.
	(coff_line_base): Renamed from line_base.  Changed all uses.
	(coff_add_linesym): Renamed from add_line_sym.  Made non-static.
	Changed all uses.
	* config/obj-coff.h: If TC_PPC, include coff/rs6000.h.
	(S_SET_STORAGE_CLASS, S_GET_STORAGE_CLASS): Declare if
	BFD_ASSEMBLER.
	(coff_line_base): Declare.
	(coff_add_linesym): Declare if BFD_ASSEMBLER.
1994-02-01 17:17:52 +00:00
Roland Pesch 60ce6e743c Revisions from Jeff Law to HPPA-directives section.
This version formats cleanly under makeinfo, and in Cygnus format.

Default FSF format works without error, but tables of machine
instructions for some machines have stupid page boundaries (FSF
version uses larger page size).
1994-02-01 05:27:07 +00:00
Roland Pesch 81fcb3ff69 (1) eliminate GPL and refs thereto, as authorized by RMS
(2) enable MIPS-specific docn (cf PR 4434)
1994-02-01 04:36:50 +00:00
Roland Pesch e680d73781 (1) summary descriptions of HPPA-specific directives
(2) leading comments for future updates, about places to check for new
    directives
(3) doc for new portable ".string" directive
(4) minor updates to dates etc.
1994-02-01 03:48:35 +00:00
Stan Shebs 392e46a1c8 Mon Jan 31 18:08:16 1994 Stan Shebs (shebs@andros.cygnus.com)
* mpw-xconfig.in: Get opcode/mips.h from the right place.
1994-02-01 02:09:26 +00:00
Stan Shebs f1c1227a59 Mon Jan 31 18:06:41 1994 Stan Shebs (shebs@andros.cygnus.com)
* mpw-make.in (CFLAGS): Add more include paths.
1994-02-01 02:07:53 +00:00
Stan Shebs 2abb453d8b Mon Jan 31 17:55:14 1994 Stan Shebs (shebs@andros.cygnus.com)
* as.c (statistics_flag): Renamed from quiet_flag.
	(main): Get statistics with --statistics instead of -noquiet.
1994-02-01 02:03:06 +00:00
Roland Pesch 62e59d28c2 correct typo in as cmdline synopsis (-w for -W);
describe --statistics (nee -noquiet);
describe -Z
1994-02-01 00:36:50 +00:00
Roland Pesch 47c7ceb59c Acknowlegements: surely John Gilmore's one-bit fix was proverbial,
not apocryphal.

apoc-ry-phal \-fel\ adj
(1590)
1 often cap: of or resembling the Apocrypha
2: of doubtful authenticity: SPURIOUS
syn see FICTITIOUS

pro-ver-bi-al \pre-'ver-be^--el\ adj
(1548)
1: of, relating to, or resembling a proverb
2: that has become a proverb or byword: commonly spoken of
1994-01-31 20:47:07 +00:00
Ken Raeburn 0ce4d62e74 test code for fp handling -- no .exp file yet 1994-01-31 19:11:28 +00:00
Steve Chamberlain 3981bad3ee New files for testing gasp. 1994-01-31 16:53:03 +00:00
Steve Chamberlain a5a4b5acdc Support for gasp. 1994-01-31 16:44:53 +00:00
Steve Chamberlain b0f2092b3d New file. 1994-01-31 16:40:55 +00:00
Steve Chamberlain 7cb520f090 New file. 1994-01-31 16:37:19 +00:00
Steve Chamberlain ede7bc1c60 * read.c (s_lcomm): Align lcomm data.
* config/tc-z8k.c (tc_reloc_mangle): Don't allow subtraction
	from different sections.
1994-01-31 15:28:06 +00:00