Commit Graph

1127 Commits

Author SHA1 Message Date
Nick Clifton
879db8be1a Remove warnings building z8k port.
Fix ld -r behaviour
2001-06-06 17:01:35 +00:00
Nick Clifton
98b3248268 correct some 68k/ColdFire problems 2001-06-06 14:28:00 +00:00
Alan Modra
6e139bf09a * config/tc-s390.h (TC_FORCE_RELOCATION): Always emit relocations
BFD_RELOC_VTABLE_INHERIT and BFD_RELOC_VTABLE_ENTRY.
2001-06-06 12:08:50 +00:00
Alan Modra
d6767af842 * config/tc-s390.h (TC_FORCE_RELOCATION): Always emit relocations
BFD_RELOC_VTABLE_INHERIT and BFD_RELOC_VTABLE_ENTRY.
2001-06-06 12:06:56 +00:00
Alan Modra
cb9401fc47 * config/tc-i386.c (md_assemble): Handle Pentium4 branch hints.
<JumpByte, JumpDword insn output>: Remove dead code.
2001-06-06 10:23:39 +00:00
Alan Modra
3c5cdb543e * as.c (parse_args): Correct option name "listing-lhs-width2". 2001-06-06 03:42:24 +00:00
Nick Clifton
92ed29ef02 oops - omitted from previous delta 2001-06-05 08:31:24 +00:00
Nick Clifton
4d7c34bfce Do not allow .globl to override .section 2001-06-05 08:29:59 +00:00
H.J. Lu
5199a87b39 2001-06-04 H.J. Lu <hjl@gnu.org>
* gas/mips/mips4010.s: Add the missing ".end".
	* gas/mips/mips4100.s: Likewise.
	* gas/mips/mips4650.s: Likewise.
	* gas/mips/sync.s: Likewise.
2001-06-04 18:20:00 +00:00
H.J. Lu
0b4bdf775b 2001-06-02 H.J. Lu <hjl@gnu.org>
* gas/sparc/unalign.d: Support Sparc V9.
2001-06-02 18:46:14 +00:00
Richard Henderson
371b7465e4 * read.c (emit_leb128_expr): Call md_cons_align. 2001-05-31 00:00:30 +00:00
Tom Rix
41ea10b134 formatting change 2001-05-29 14:53:22 +00:00
Nick Clifton
0f2712edc9 Add support for .uahword, .uaword and .uaxword pseudo ops 2001-05-28 09:23:54 +00:00
Alan Modra
9e40345d0e * write.c (relax_segment <rs_space>): Check the section of a
symbol to determine whether it is absolute rather than comparing
	its frag against zero_address_frag as listings play tricks with
	frags.
2001-05-27 12:17:38 +00:00
Alan Modra
fbe572f93e * config/tc-m68k.c (md_assemble): Ensure variable part of frag is
allocated in the same chunk as the fixed part.
2001-05-27 11:57:25 +00:00
Hans-Peter Nilsson
0b171357e6 * gas/cris/addi.d: Tweak for 64-bit BFD.
* gas/cris/binop-cmpmove.d, gas/cris/binop-cmpmovx.d,
	gas/cris/binop-extx.d, gas/cris/binop.d, gas/cris/bork.d,
	gas/cris/branch.d, gas/cris/break.d, gas/cris/brokw-1.d,
	gas/cris/brokw-2.d, gas/cris/brokw-3.d, gas/cris/ccr.d,
	gas/cris/clear.d, gas/cris/continue.d, gas/cris/fragtest.d,
	gas/cris/jump-type.d, gas/cris/labfloat.d, gas/cris/macroat.d,
	gas/cris/movem-to-reg.d, gas/cris/nosep.d, gas/cris/oneop-type.d,
	gas/cris/prefix.d, gas/cris/pushpop-byte-sreg.d,
	gas/cris/pushpop-dword-sreg.d, gas/cris/pushpop-word-sreg.d,
	gas/cris/pushpop.d, gas/cris/quick-s6.d, gas/cris/quick-u5.d,
	gas/cris/quick-u6.d, gas/cris/range-err-1.s, gas/cris/rd-pic-1.d,
	gas/cris/rd-regprefix-1.d, gas/cris/rd-regprefix-1b.d,
	gas/cris/reg-to-mem.d, gas/cris/regreg.d, gas/cris/return.d,
	gas/cris/scc.d, gas/cris/separator.d, gas/cris/shexpr-1.d,
	gas/cris/sreg-to-x.d, gas/cris/test.d, gas/cris/unimplemented.d,
	gas/cris/unop-mem.d, gas/cris/x-to-byte-sreg.d,
	gas/cris/x-to-dcr1-sreg.d, gas/cris/x-to-dword-sreg.d,
	gas/cris/x-to-word-sreg.d: Ditto.
	* gas/cris/shexpr-1.d: Ditto.  Correct format.
2001-05-27 09:34:06 +00:00
Alan Modra
54d3cad90d * write.c (relax_segment <rs_space>): Calculate growth using
addresses before stretch.  Prevent repeated error messages.
	From Peter Jakubek  <pjak@snafu.de>
	Use as_bad_where and as_warn_where to pinpoint errors.
2001-05-26 12:45:15 +00:00
H.J. Lu
ff8715d024 2001-05-25 H.J. Lu <hjl@gnu.org>
* gas/mips/e32el-rel2.d: New for little endian mips.
	* gas/mips/elfel-rel2.d: Likewise.
	* gas/mips/elfel-rel.d: Likewise.
	* gas/mips/mipsel16-f.d: Likewise.
	* gas/mips/telempic.d: Likewise.
	* gas/mips/tmipsel16-e.d: Likewise.

	* gas/mips/tempic.d: New for traditional mips.
	* gas/mips/tmips16-e.d: Likewise.

	* gas/mips/elf-rel.d: Handle alignment padding.
	* gas/mips/elf-rel2.d: Likewise.

	* gas/mips/mips.exp: Support little endian and traditional
	mips.
2001-05-25 18:39:02 +00:00
Alan Modra
05bdb37eec * symbols.c (resolve_symbol_value): Always set segment, even when
not finalizing symbol value.
2001-05-25 10:07:43 +00:00
Alan Modra
1cd55018a6 * config/obj-ieee.c (write_object_file): Set finalize_syms.
* config/obj-coff.c (write_object_file): Likewise.
	* (size_section): Remove rs_space assert as fr_symbol is no longer
	removed.
	(fill_section): Likewise.
2001-05-25 09:40:12 +00:00
Alan Modra
c709b09623 s/linuxaout/linux*aout/, s/linuxoldld/linux*oldld/ 2001-05-25 07:21:01 +00:00
Alan Modra
ce34c3732a Revert last patch. 2001-05-25 01:59:43 +00:00
Alan Modra
40e3ba9bb7 * expr.c (expr): Set return value to absolute_section for
subtractive operations on symbols within a segment.
	* read.c (pseudo_set): Set segment for complex expressions.
2001-05-25 00:01:30 +00:00
Alan Modra
b58c9faf2f From 2.11 branch 2001-03-30 Richard Henderson <rth@redhat.com>
* config/tc-i386.c (md_convert_frag): Don't die on local symbols
	that have been finalized.
2001-05-24 23:52:22 +00:00
Alan Modra
c89c853400 * symbols.c (resolve_symbol_value): Clear sy_resolving before
taking exit_dont_set_value.
2001-05-24 23:44:06 +00:00
Alan Modra
766c03c9fa * write.c (relax_segment): Don't zap fr_symbol when relaxing. 2001-05-24 23:33:00 +00:00
Tom Rix
6877bb43e5 Fix for gas seg fault and neg line numbers 2001-05-24 21:39:09 +00:00
H.J. Lu
8569c2f5b4 2001-05-24 H.J. Lu <hjl@gnu.org>
* gas/m68k/pcrel.d: Support 64bit BFD.
2001-05-24 20:08:04 +00:00
H.J. Lu
58e2fc9047 2001-05-24 H.J. Lu <hjl@gnu.org>
* gas/arm/adrl.d: Support 64bit BFD.
	* gas/arm/arm7t.d: Likewise.
	* gas/arm/inst.d: Likewise.
	* gas/arm/pic.d: Likewise.
	* gas/arm/xscale.d: Likewise.
2001-05-24 20:02:15 +00:00
Alan Modra
e027f3e8a4 * write.c (write_object_file): Set finalize_syms = 1 before
size_seg is called.
2001-05-24 08:19:32 +00:00
Nick Clifton
d1cf510e5e Add MIPS r12k support 2001-05-23 17:26:40 +00:00
Alan Modra
60edd2d3f1 * gas/elf/ehopt0.d: Tweak for bigendian targets. 2001-05-23 05:33:31 +00:00
Alan Modra
2d0441d962 * config/tc-arc.c (md_assemble): Use is_end_of_line instead of
testing for NULs.
2001-05-22 11:03:35 +00:00
Alan Modra
6386f3a767 * symbols.c (resolve_symbol_value): Remove "finalize" param,
instead use finalize_syms directly.  Don't treat expressions
	specially with regard to finalize_syms.  Update calls to self.
	(resolve_local_symbol): Update call to resolve_symbol_value.
	(S_GET_VALUE): Likewise.  Return resolve_symbol_value if
	!finalize_syms.
	* symbols.h (resolve_symbol_value): Update prototype.
	* config/obj-aout.c (obj_crawl_symbol_chain): Update call
	to resolve_symbol_value.
	* config/obj-bout.c (obj_crawl_symbol_chain): Likewise.
	* config/obj-coff.c (do_relocs_for): Likewise.
	(yank_symbols): Likewise.
	(fixup_segment): Likewise.
	* config/obj-vms.c (obj_crawl_symbol_chain): Likewise.
	* config/tc-mips.c (md_convert_frag): Likewise.
	* config/tc-ppc.c (ppc_frob_symbol): Likewise.
	(ppc_fix_adjustable): Likewise.
	* dwarf2dbg.c (dwarf2dbg_estimate_size_before_relax): Likewise.
	(dwarf2dbg_convert_frag): Likewise.
	* ehopt.c (eh_frame_estimate_size_before_relax): Likewise.
	(eh_frame_convert_frag): Likewise.
	* expr.c (make_expr_symbol): Likewise.
	* write.c (adjust_reloc_syms): Likewise.
	(write_object_file): Likewise.
	(relax_segment): Likewise.
	(fixup_segment): Likewise.
	(finalize_syms): Init to zero, and update comment.
	(write_object_file): Set finalize_syms to 1 rather than 2.
	* doc/internals.texi (sy_value): Mention finalize_syms.
	(S_GET_VALUE): Remove restriction on when S_GET_VALUE can be called.
2001-05-22 10:23:50 +00:00
Alan Modra
c801568a3a * config/tc-m68k.c (relaxable_symbol): Only treat external symbols
as relaxable if embedded system, make weak syms non-relaxable.
	Move definition..
	(tc_m68k_fix_adjustable): ..so it can be used here.
	(md_apply_fix_2): Sign extend without conditional.
2001-05-22 09:01:55 +00:00
Alan Modra
507c8a1a57 Update copyright date. 2001-05-22 08:41:10 +00:00
Alexandre Oliva
6be7c12c05 * ltconfig, ltmain.sh, libtool.m4, ltcf-c.sh, ltcf-cxx.sh,
ltcf-gcj.sh: Upgraded to libtool 1.4a 1.641.2.254.  Rebuilt a number
of subdir/configure scripts to use the new libtool.m4.
2001-05-20 19:02:56 +00:00
Jeff Johnston
aaa4f6d96f 2001-05-16 Jeff Johnston <jjohnstn@redhat.com>
* cgen.c (gas_cgen_tc_gen_reloc): Changed error message when
        howto entry is not found.

Fix for 105023-CR-1.
2001-05-16 23:06:02 +00:00
Alexandre Oliva
7e8f410030 * config/tc-mn10300.c (mn10300_force_relocation): Don't
optimize differences between symbols in code sections to
constants.
(mn10300_fix_adjustable): Don't adjust to section+offset
relocations pointing at symbols in code sections.
2001-05-16 01:48:51 +00:00
Alan Modra
9fcc94b611 Fix dwarf2_emit_insn calls when frag_var breaks things.
Put back an old entry in ChangeLog-9899, deleted when ChangeLog split.
2001-05-16 01:08:21 +00:00
Nick Clifton
aa5f19f2b9 Fix MIPS disassembler so that it produces reassemblable code. 2001-05-15 12:11:13 +00:00
Richard Henderson
de1cb007d9 * ehopt.c (eh_frame_convert_frag): Fix missed subtype adjustment
last change.
2001-05-15 06:10:43 +00:00
Richard Henderson
67a659f60e * ehopt.c (get_cie_info): Rename from eh_frame_code_alignment;
also collect whether to expect an FDE augmentation.
        (check_eh_frame): Rewrite as a state machine.  Track where in
        an FDE we are located, skip any augmentation.
        (eh_frame_estimate_size_before_relax): Get code alignment from
        the fragment subtype.
        (eh_frame_relax_frag, eh_frame_convert_frag): Likewise.
        * read.c (emit_leb128_expr): Call check_eh_frame.
2001-05-14 22:37:47 +00:00
Richard Henderson
1ff55c930c * gas/elf/ehopt0.s: New.
* gas/elf/ehopt0.d: New.
        * gas/elf/elf.exp: Run it.
2001-05-14 22:37:31 +00:00
Alexandre Oliva
076dc439b8 * config/tc-mn10300.c (md_assemble): Anchor dwarf2 line info
before a relaxable insns.
2001-05-14 20:01:12 +00:00
Alexandre Oliva
4e75439ae5 * config/tc-mn10300.c (tc_gen_reloc): Don't reject differences
between symbols if the base symbol is in the current section;
emit a PC-relative relocation instead.
2001-05-13 23:16:30 +00:00
Alan Modra
bcee8eb8ca Peter Targett's backwards compatibility and other arc fixes. 2001-05-12 15:14:53 +00:00
Alan Modra
4bba68155d * i386-dis.c (twobyte_has_modrm): Update table.
(need_modrm): Give it file scope.
	(MODRM_CHECK): Define.
	(dofloat): Use MODRM_CHECK.
	(OP_E): Likewise.
	(OP_EM): Likewise.
	(OP_EX): Likewise.
and fix testsuite yet again now that we are getting correct disassembly.
2001-05-12 12:07:10 +00:00
Alan Modra
25bc089505 Oops, wrong address for pmuludq insn. 2001-05-12 10:28:20 +00:00
Alan Modra
67d6227df7 Correct cvtps2dq, movdq2q, movq2dq, and movq problems. 2001-05-12 09:52:40 +00:00