Commit graph

1620 commits

Author SHA1 Message Date
Ken Raeburn
15a90f75cb elf fixes 1994-10-08 07:55:52 +00:00
Ken Raeburn
ecee402702 coff aux/lineno, m88k, vms/flagseen changes 1994-10-07 22:06:01 +00:00
Ken Raeburn
4325bcb990 * config/obj-coff.c (do_relocs_for): Test only TC_KEEP_FX_OFFSET, rather than
both it and TC_M88K.
(coff_adjust_section_syms): New function.
(coff_frob_section): For non-empty sections, create aux entry for the section
symbol, indicating the size.
(n_line_nos): New variable.
(add_lineno): Increment it.
(coff_add_linesym): Increment n_line_nos, don't call add_lineno.
(coff_frob_file): New function; map coff_adjust_section_syms over sections.
(obj_coff_line): Only reset line_base for .bf symbols.
* config/obj-coff.h (coff_adjust_section_syms, coff_frob_file): Declare.
(obj_frob_file): New macro.

* config/obj-coff.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Renamed from
obj_frob_forward_symbol, and rewritten for new parameter list.
1994-10-07 22:02:54 +00:00
Ken Raeburn
d58bbca1b5 define TC_KEEP_FX_OFFSET 1994-10-07 22:00:18 +00:00
Ken Raeburn
352d36185d Mon Oct 3 21:02:38 1994 Pat Rankin (rankin@eql.caltech.edu)
* config/obj-vms.h (S_IS_LOCAL): fix obsolete flagseen[] reference.
1994-10-07 22:00:01 +00:00
Ian Lance Taylor
b2d7b32596 * config/obj-coff.c (coff_frob_section): Remove assert about
section alignment.
	* config/tc-sparc.c (md_section_align): Use section alignment, not
	xvec align_power_min field.
1994-10-05 04:13:29 +00:00
Jeff Law
05d0c2cce6 Add ChangeLog entry that (apparently) I nuked. 1994-10-04 23:30:39 +00:00
Ken Raeburn
13a336c4a1 Rewrote make-gas.com handling so that only "make realclean" will remove it. 1994-10-01 04:30:10 +00:00
Ken Raeburn
f54b111403 got rid of make-gas.com 1994-10-01 04:24:38 +00:00
Ken Raeburn
dc87e0ce66 vms make-gas.com stuff 1994-10-01 04:20:16 +00:00
Ken Raeburn
df36a2aa30 Now gets rebuilt by "make diststuff". 1994-10-01 04:18:46 +00:00
Ken Raeburn
367d6244da (diststuff): Build make-gas.com.
(clean, mostlyclean): Delete make-gas.com.
(realclean): Separate target, depend on clean and distclean.
1994-10-01 04:17:56 +00:00
Ken Raeburn
c0b8690d94 Fri Sep 30 19:05:20 1994 Pat Rankin (rankin@eql.caltech.edu)
* vmsconf.sh (make-gas.com): handle DCL verification to enable
	sensible feedback to the user while gas is being built.
1994-10-01 04:15:45 +00:00
Ken Raeburn
76a390e234 i386 pic changes
as.h: __STDC__ -> varargs
write.* PLT changes
write.c,symbols.c debug changes
1994-10-01 03:52:42 +00:00
Ken Raeburn
10ff87e954 yesterday's gdbinit changes 1994-09-30 20:22:59 +00:00
Ken Raeburn
1df6e2665e (all): Depend on .gdbinit.
(.gdbinit): Rebuild from gdbinit.in by running config.status.
1994-09-29 23:03:07 +00:00
Ken Raeburn
9dc6c00f8d * write.c (print_fixup): Print source location on first line. Show fx_r_type
and fx_addsy fields.
1994-09-29 23:00:45 +00:00
Jeff Law
3a4b4b1ec0 * gas/hppa/reloc/reduce.s: Renamed from relocreduce.s
* gas/hppa/reloc/reduce2.s: Renamed from relocreduce2.s
	* gas/hppa/reloc/r_no_reloc.s: Renamed from r_no_relocbug.s
	* gas/hppa/reloc/reloc.exp: Changed accordingly.
1994-09-29 03:29:07 +00:00
Jeff Law
017c725468 * gas/hppa/reloc/reduce.s: Renamed from relocreduce.s
* gas/hppa/reloc/reduce2.s: Renamed from relocreduce2.s
	* gas/hppa/reloc/r_no_reloc.s: Renamed from r_no_relocbug.s
1994-09-29 03:25:03 +00:00
Ken Raeburn
b8480abc20 misc changes to configure.in, gdbinit.in, as.h, symbols.c 1994-09-28 23:24:07 +00:00
Ken Raeburn
4bdaf48eab Move "break abort" to end, in case gdb complains. 1994-09-28 23:16:59 +00:00
Ken Raeburn
9de0bdfba9 forgot to hit ^x^s after deleting "#if 1" lines 1994-09-28 20:31:32 +00:00
Ken Raeburn
e702f6e6e3 (resolve_symbol_value, case O_symbol): Don't do any processing if add_symbol is
undefined or in expr_section.
(resolve_symbol_value, case O_add): For symbol plus constant-valued symbol,
convert to O_symbol and re-reduce.
(S_GET_VALUE): If symbol needs resolving, resolve it.

(indent_level): No longer static.
(print_symbol_value_1): Don't print frag address if it matches
zero_address_frag.  Don't print "resolving" if already resolved.  Print segment
name.  Don't call print_expr_1 on an undefined symbol.
(print_expr_1): Fix whitespace before printing X_add_number.
1994-09-28 20:27:31 +00:00
Ian Lance Taylor
620a590eed * Makefile.in (gasp.o): Depends upon config.h. 1994-09-28 19:28:24 +00:00
Ken Raeburn
9ff0f5efd6 write.c changes, Makefile.in version update 1994-09-28 19:22:46 +00:00
Ken Raeburn
b21e6e53df updated version to 2.4.90 1994-09-28 19:21:20 +00:00
Ken Raeburn
4acf8c78e6 (fix_new_exp): Handle O_add by creating an expression-valued symbol, and
calling fix_new_exp recursively.
(adjust_reloc_syms): If a fixup's symbol value is a sum of an undefined symbol
and a constant, fold the constant into the fixup, and refer to the undefined
symbol directly.  Then process the fixup again from scratch.
(write_object_file): Before calling adjust_reloc_syms, make a pass through the
symbol list trying to resolve values.

(print_fixup): New routine, for debugging.
(write_relocs): Call bfd_install_relocation.  Deleted various hacks for working
around problems with bfd_perform_relocation.
1994-09-28 19:20:11 +00:00
Ken Raeburn
648acaa0c0 * expr.c (make_expr_symbol): No longer static. Use symbol_create, not
symbol_new, for symbols holding expression values.
* expr.h (make_expr_symbol): Move declaration here.
1994-09-28 19:09:16 +00:00
Ian Lance Taylor
fac75dfebb * gas/mips/beq.d, gas/mips/beq.s: Test that unconditional branch
overflows are correctly converted to jumps.
1994-09-28 17:42:30 +00:00
Ian Lance Taylor
3f42c69e79 * config/tc-mips.c: Include subsegs.h.
(md_apply_fix): If an unconditional b or bal overflows, and we are
	not assembling PIC code, replace it with a j or jal.
1994-09-28 17:41:07 +00:00
Ian Lance Taylor
7b777690a8 * config/tc-mips.c (md_apply_fix): Correct branch overflow test.
Use as_bad_where and as_warn_where rather than as_bad and as_warn.
1994-09-28 15:55:31 +00:00
Ian Lance Taylor
fbc83deff8 * gas/mips: Add test cases for PIC code, both SVR4 style and
-membedded-pic style.
1994-09-26 21:43:26 +00:00
Stan Shebs
972b958d3a No longer need to keep/lose any MPW stuff 1994-09-24 21:29:22 +00:00
Stan Shebs
4c8b1e0774 * mpw-make.in (config.h): Add defines from ho-mpw.h directly.
* config/ho-mpw.h: Remove.
1994-09-24 21:27:44 +00:00
Ken Raeburn
cacd15c40d typo fixes from pat rankin 1994-09-23 22:56:48 +00:00
Ken Raeburn
4d61cba987 some news 1994-09-23 19:44:17 +00:00
Ian Lance Taylor
5fe67aa8fb * gas/mips: New directory with MIPS specific test cases. 1994-09-23 19:10:21 +00:00
Ian Lance Taylor
144659ab48 * symbols.h (copy_symbol_attributes): Declare. 1994-09-23 18:54:40 +00:00
Ken Raeburn
3607cd9780 delete -> remove 1994-09-23 02:06:14 +00:00
Kung Hsu
bdaa198ad5 Modified Files:
ChangeLog ecoff.c read.c

        * ecoff.c (ecoff_generate_asm_lineno): check if
        current_stabs_filename is NULL before strcmp.
        * read.c (read_a_source_file): fxi a bug in generate_asm_lineno
        checking.
1994-09-22 20:43:39 +00:00
Ken Raeburn
8068b96a5f vms, ho-*.h, sym attr changes just checked in 1994-09-21 22:23:30 +00:00
Ken Raeburn
ef19887066 Combine two existing mechanisms for copying symbol attributes, and fix a bug:
* symbols.c (copy_symbol_attributes): New function.  Copies BFD symbol flags
and calls OBJ_COPY_SYMBOL_ATTRIBUTES.
(resolve_symbol_value, case O_symbol): Call it, if X_add_number is zero.  Don't
call obj_frob_forward_symbol.
* read.c (pseudo_set): Call copy_symbol_attributes, but only if X_add_number is
zero.
* config/obj-elf.h (obj_frob_forward_symbol): Deleted.
1994-09-21 22:21:25 +00:00
Ken Raeburn
ba466c4c9d host file changes 1994-09-21 22:18:06 +00:00
Ken Raeburn
fd4b113130 vms changes from pat rankin 1994-09-21 22:17:23 +00:00
Ken Raeburn
b0becf0c8c delete old host-specific files 1994-09-21 22:16:42 +00:00
Ian Lance Taylor
87bbf920bb * config/tc-ppc.c (ppc_current_block): New static variable.
(ppc_stabx): Set sy_tc.within of a C_STSYM symbol to
	ppc_current_block.  Don't move around any stab symbol, just those
	for common symbols.
	(ppc_bs): Set ppc_current_block.
	(ppc_es): Clear ppc_current_block.
	(ppc_frob_symbol): Set the value of a C_STSYM symbol to the offset
	from the csect of the enclosing block.
PR 5658.
1994-09-21 17:43:17 +00:00
Ian Lance Taylor
3af9783a6e * config/tc-mips.c (insns_since_cache_access): Remove.
(append_insn): Remove setting of insns_since_cache_access, and
	special 4600 handling; it turns out not to be required.
PR 5664.
1994-09-21 17:03:04 +00:00
Stan Shebs
baf6f14970 * mpw-config.in: Don't create host.h.
* mpw-make.in (config.h): Add in contents of ho-mpw.h.
	* config/ho-mpw.h (TRUE_FALSE_ALREADY_DEFINED, WANT_FOPEN_BIN,
	HAVE_ERRNO_H): Define.
1994-09-21 00:45:25 +00:00
Ian Lance Taylor
e8d4d4758b * config/tc-mips.c (md_shortopts): Remove E.
(md_longopts): Add EB and EL.
	(md_parse_option): Handle -EB and -EL as separate options, rather
	than as a single -E option with an argument.
1994-09-20 20:16:24 +00:00
Jeff Law
8268e3ec91 * config/tc-hppa.c (hppa_fix_adjustable): Reject reductions
involving global symbols too.
1994-09-19 18:47:37 +00:00