Commit Graph

1214 Commits

Author SHA1 Message Date
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