Commit graph

946 commits

Author SHA1 Message Date
Ian Lance Taylor
a0eb1c2c56 * config/tc-sparc.c (s_reserve): Don't permit redefinition, even
if the symbol was already in bss_section.  Fix warning message.
PR 6797.
1995-07-06 18:36:55 +00:00
Ian Lance Taylor
bcaa9b051c * listing.c (struct file_info_struct): Rename end_pending field to
at_end.
	(file_info): Initialize at_end, not end_pending.
	(buffer_line): If at_end set, just return immediately.  Don't
	worry about end_pending cases.  Set at_end when EOF is read.
	(print_source): Check at_end, not end_pending.
	(listing_listing): Likewise.
PR 6636.
1995-07-06 18:00:09 +00:00
Ian Lance Taylor
265d172efb * config/tc-alpha.h (alpha_do_align): Don't declare.
(md_do_align): Don't define.
	(tc_frob_label): Define.
	(alpha_define_label): Declare.
	(md_flush_pending_output): Define.
	(alpha_flush_pending_output): Declare.
	* config/tc-alpha.c (insn_label): New static variable.
	(auto_align): New static variable.
	(md_pseudo_table): Add cases for .text, .data, .align, .byte,
	.hword, .int, .long, .octa, .quad, .short, .word, .double, .float,
	and .single.  Change .t_floating, .s_floating, .f_floating,
	.g_floating, and .d_floating to use s_alpha_float_cons rather than
	float_cons.
	(s_alpha_text, s_alpha_data): New static functions.
	(s_rdata, s_sdata): Clear insn_label and set auto_align.
	(s_gprel32): If auto_align, align.  Clear insn_label.
	(emit_insn): Clear insn_label.
	(s_alpha_align): New static function.
	(alpha_align): Make static.  Take label argument.
	(alpha_flush_pending_output): New static function.
	(s_alpha_cons, s_alpha_float_cons): New static functions.
	(alpha_define_label): New function.
PR 7148.
1995-07-06 16:59:29 +00:00
Ken Raeburn
ad0ab4eb41 regenerate conf.in with autoreconf 1995-07-06 02:58:40 +00:00
Ken Raeburn
4b18b7cd88 more vms fixes from Pat Rankin 1995-07-06 02:52:44 +00:00
Ian Lance Taylor
a7aa7a2ba9 * config/tc-sparc.c (md_shortopts): Add "K:" if OBJ_ELF.
(md_parse_option): If OBJ_ELF, check for -K.  Die if -K PIC, since
	PIC code is not currently supported.

	* as.c (parse_args): Change std_shortopts to be an array rather
	than a constant string.  Only include 'K' if WORKING_DOT_WORD is
	not defined.  Only check for 'K' in that case as well.
	* as.h (flag_warn_displacement): Only declare if WORKING_DOT_WORD
	is not defined.
PR 7131.
1995-07-05 21:52:10 +00:00
Ian Lance Taylor
9814e22f03 * conf.in: Add undef of HAVE_SBRK. 1995-07-05 21:47:07 +00:00
Ian Lance Taylor
3f8416d5e1 * config/obj-coff.c (obj_coff_line): Call listing_source_line, in
both BFD_ASSEMBLER and non BFD_ASSEMBLER versions of the function.
PR 7006.
1995-07-05 20:31:31 +00:00
Ian Lance Taylor
56dc989a91 * symbols.c (S_SET_EXTERNAL): Warn if symbol is weak.
(S_CLEAR_EXTERNAL): Likewise.
	(S_SET_WEAK): Warn if symbol is global.
PR 6750.
1995-07-05 19:59:07 +00:00
Ian Lance Taylor
f219dc655a * config/obj-aout.c (obj_aout_frob_symbol): Warn about an attempt
to put an undefined symbol into a set.
PR 6340.
1995-07-05 19:04:58 +00:00
Ian Lance Taylor
816a827b07 * Makefile.in: Remove @configure_input@; it's not needed in
files named Makefile.
1995-07-05 17:56:52 +00:00
Ian Lance Taylor
ca046e3444 * config/tc-m88k.c (md_pseudo_table): Add ".set" so that the
explicit pseudo-op works, while continuing to treat "set" as an
	instruction.
PR 5199.
1995-07-05 17:13:16 +00:00
Ian Lance Taylor
22ba90ce85 * ecoff.c (ecoff_debugging_seen): New global variable.
(ecoff_directive_def): Set ecoff_debugging_seen.
	(ecoff_stab): Likewise.
	* ecoff.h: Make idempotent.
	(ecoff_debugging_seen): Declare.
	* config/tc-mips.c: Include ecoff.h.
	(mips_debug): New static variable.
	(s_stringer, s_mips_space): Remove unneeded declarations.
	(md_parse_option): In case 'g', set mips_debug to debugging level.
	(mips_local_label): New function.
	* tc-mips.h (LOCAL_LABEL): Call mips_local_label.
	(mips_local_label): Declare.
PR 6978.
1995-07-05 16:10:50 +00:00
Fred Fish
e63c594dd0 * as.c (main): Only use sbrk when HAVE_SBRK defined.
* configure.in:  Add test for sbrk.
	* configure:  Regenerate using autoconf 2.4.
1995-07-05 08:04:28 +00:00
Jeff Law
249c7415a4 * config/tc-hppa.h (MAX_RELOC_EXPANSION): Bump to 6.
* config/tc-hppa.c (tc_gen_reloc, SOM version): Handle
	relocations for the difference of two (possibly external)
	symbols.
	(hppa_fix_adjustable): For SOM, reject reductions involving
	the difference of two symbols.
	(hppa_force_relocation): Force relocations for expressions
	involving the difference of two symbols.

gas/bfd part of mentor-7363
1995-07-03 23:33:21 +00:00
Steve Chamberlain
6c186c48dc * configure[.in] (i386-*-win32): New host and target. 1995-07-03 21:25:26 +00:00
Steve Chamberlain
e5c5ce23fd Support for long filenames non-bfd coff. bfd/7288
* config/obj-coff.c (filename_list_head, filename_list_tail): New.
	(yank_symbols): Notice and record filenames which are too long.
	(w_strings): Write out filename strings.
	(c_dot_file_symbols): Put long filenames onto list.
1995-06-30 00:53:37 +00:00
Steve Chamberlain
30355216bd * config/obj-coff.c (fixup_segment): PE doens't use
the strange common symbol format that other 386s formats
	do.
	* config/tc-i386.c (md_begin): If LEX_AT defined then
	'@' is in the set of identifiers.
	(i386_operand): If LEX_AT, then don't look for @goto stuff.
	* config/te-pe.h: Define LEX_AT.
1995-06-29 00:41:02 +00:00
Ken Raeburn
1a9924d8b3 doc update 1995-06-28 23:39:54 +00:00
Ken Raeburn
4a9983089e doc updates 1995-06-28 21:50:42 +00:00
Michael Meissner
3f4ca87446 Fix warning 1995-06-22 18:44:36 +00:00
Ken Raeburn
c151fd1e13 m68k fixes from Andreas Schwab, with minor changes 1995-06-21 22:43:13 +00:00
Ken Raeburn
a183540991 * config/tc-sparc.c (sparc_ip, case 'A'): If ASI is not a "#" value, don't
shift it an extra time.
1995-06-21 22:09:45 +00:00
Steve Chamberlain
85b369b3a4 * gasp.c (do_print, do_form, buffer_and_nest): Use case insensitive
string compares. gas/7274.
1995-06-21 21:37:13 +00:00
Ken Raeburn
34308df7a3 *config/obj-coff.c (write_object_file): Cast time() argument to time_t *. 1995-06-20 19:01:18 +00:00
Jeff Law
420c479b5a * config/tc-hppa.c (pa_build_unwind_subspace): Fix typo in last
change.
1995-06-20 18:02:44 +00:00
Jeff Law
764771905a * config/tc-hppa.c (pa_build_unwind_subspace): Zero out memory
from frag_more calls.
1995-06-19 21:34:39 +00:00
Stan Shebs
d21041b3e2 * config/obj-coff.c: Don't use "bfd/" when including libbfd.h
and libcoff.h.
	(fill_section): Call PROGRESS.
	* Makefile.in (INCLUDES): Add bfd srcdir.

	* mpw-config.in: Add bfd_gas flag and set for each config.
	(i386-unknown-go32, m68k-unknown-coff): Recognize.
	* mpw-make.in (HACK_O_RAMA, OBJ_COFF_OMIT_TIMESTAMP): Add to
	config.h.
1995-06-16 00:07:45 +00:00
David Edelsohn
f6d6f1028e * config/tc-arm.h (LOCAL_LABEL): Prepend '.' if not OBJ_AOUT.
(FAKE_LABEL_NAME): Likewise.
1995-06-15 17:06:20 +00:00
Ken Raeburn
69cb5925c9 whitespace & date-format cleanup 1995-06-13 23:13:28 +00:00
Jeff Law
4ff6f92ae8 * config/tc-hppa.c (pa_ip): Check for invalid register in single
precision fmpyadd and fmpysub instructions.
1995-06-13 04:29:41 +00:00
Ken Raeburn
3c650d09e8 vms cleanup, fixes from Pat Rankin 1995-06-09 21:16:07 +00:00
David Edelsohn
0cd2755006 * config/tc-arc.h (MD_APPLY_FIX3): Define.
* config/tc-arc.c (md_apply_fix3): Renamed from md_apply_fix.
	Undo effects of md_pcrel_from if symbol is in another section.
1995-06-08 18:45:33 +00:00
Ken Raeburn
d5263ab426 * config/obj-vms.c (vms_write_object_file, case N_DATA): Use strcmp against
FAKE_LABEL_NAME instead of checking third character.  (Suggested by Pat Rankin.)

Mon  5 Jun 20:10:46 1995  Pat Rankin  (rankin@eql.caltech.edu)

Add support for N_ABS and N_ABS|N_EXT type symbols.

* config/obj-vms.h (LSY_S_M_{DEF,REL}, ENV_S_M_{DEF,NESTED}): New macros for
local symbols (from <lsydef.h> and <envdef.h>).
* config/obj-vms.c (Current_Environment): New file-scope variable.
(VMS_Local_Environment_Setup): New routine.
(GBLSYM_LCL): New macro.
(VMS_Global_Symbol_Spec): Handle local symbols too.
(VMS_Psect_Spec): Set GLOBALVALUE_BIT for absolute symbols.
(VMS_Emit_Globalvalues): Handle local and global absolute symbols.
(VMS_Store_PIC_Symbol_Reference): Ditto.
(vms_write_object_file: GSD symbol loop): Ditto.
1995-06-06 17:59:06 +00:00
Ken Raeburn
1be0c30e50 change i386-gnu to elf 1995-06-05 06:36:11 +00:00
Ken Raeburn
1cb0d00d8f arm config fix from Richard Earnshaw 1995-06-01 22:28:54 +00:00
Ken Raeburn
58abad7d79 vms fixes from Pat Rankin 1995-06-01 22:12:20 +00:00
Ken Raeburn
0b14349249 (grump. thought i checked this in last week.)
Check explicitly for undefined local dollar and f/b labels, and print a useful
message if any are found, instead of generating obscure undefined symbol table
entries.
1995-05-30 16:39:06 +00:00
J.T. Conklin
6053ed629e * config/te-dpx2.h: Include obj-format.h.
(COFF_MAGIC): Renamed from FILE_HEADER_MAGIC.
1995-05-28 04:36:45 +00:00
David Edelsohn
2e715f06c3 * config/tc-sparc.c (tc_gen_reloc): Handle BFD_RELOC_SPARC_WDISP16
and BFD_RELOC_SPARC_WDISP19.
1995-05-24 00:04:19 +00:00
Ken Raeburn
6e43bf824c fix emulation code so configurations not supporting it still build 1995-05-23 23:20:52 +00:00
Ken Raeburn
70d6c39671 fix up stab handling 1995-05-23 01:45:12 +00:00
Ken Raeburn
4761bb029a more emulation fixes 1995-05-23 00:09:34 +00:00
David Edelsohn
1fc2205e09 * config/tc-arc.c (md_pcrel_from): Return 0 for undefined symbols. 1995-05-22 23:58:52 +00:00
Ken Raeburn
0509f0643c more vms updates from Pat Rankin 1995-05-20 20:11:38 +00:00
Ken Raeburn
a088fb62b3 From Pat Rankin:
For VMS gas port, make libiberty build on its own instead of driving it all out
of the gas directory.  Also improve some of the libiberty support for VMS.
1995-05-20 19:59:47 +00:00
Ken Raeburn
078d1a5afa From Richard Earnshaw (rearnsha@armltd.co.uk):
* gasp.c (istrue): Correctly test for string inequality.
1995-05-19 18:43:49 +00:00
Ken Raeburn
ff15324f63 Bunch of changes from Richard Earnshaw for generic bi-endian ARM aout targets.
Details in change logs.
1995-05-18 22:21:18 +00:00
Ken Raeburn
ff17873d14 * config/obj-ecoff.c (ecoff_pop_insert): New function.
(ecoff_format_ops): Use it.
(obj_ecoff_frob_symbol): Now static.
1995-05-16 23:36:53 +00:00
Michael Meissner
9914665911 Little endian fix 1995-05-16 23:30:21 +00:00