Alan Modra
8a543126f7
Move one entry from gas/ChangeLog to gas/testsuite/ChangeLog.
...
Remove gas/ from file names. Fix FOPEN_W comment.
2001-08-10 02:46:48 +00:00
Alan Modra
11b37b7b84
Revert 2001-08-08 changes.
2001-08-10 01:34:47 +00:00
Alan Modra
8d28c9d7be
* symbols.c: Add missing prototypes.
...
* config/e-i386elf.c: Likewise.
* config/e-i386coff.c: Likewise.
* config/e-i386aout.c: Likewise.
* config/obj-coff.c: Likewise.
(def_symbol_in_progress, stack): Move definition.
* config/obj-elf.c: Add missing prototypes.
(obj_elf_change_section): Make static.
(obj_elf_parse_section_letters): Likewise.
(obj_elf_section_word): Likewise.
(obj_elf_section_type): Likewise.
2001-08-09 14:42:07 +00:00
Alan Modra
fce3099f60
* config/tc-ppc.c (md_apply_fix3): Replace haphazard code for
...
determining reloc type with code reading operands->reloc field.
2001-08-08 13:23:07 +00:00
Alan Modra
8fd3e36b84
* config/obj-elf.c (elf_copy_symbol_attributes): Make it a global
...
function, and expand old obj-elf.h OBJ_COPY_SYMBOL_ATTRIBUTES here.
* config/obj-elf.h (elf_copy_symbol_attributes): Declare.
(OBJ_COPY_SYMBOL_ATTRIBUTES): Call elf_copy_symbol_attributes.
2001-08-08 13:11:58 +00:00
Alan Modra
d959c450df
* output-file.c (output_file_create): Don't try to open using
...
FOPEN_W as it's unnecessary and VMS doesn't define FOPEN_W.
2001-08-08 01:10:17 +00:00
Thiemo Seufer
38487616e6
Replace a bunch of magic constants in tc-mips.c with their proper
...
defines from mips.h.
2001-08-07 13:22:46 +00:00
Thiemo Seufer
9a41af6410
Some formatting fixes and assorted cleanup in tc-mips.c.
2001-08-07 13:15:26 +00:00
Thiemo Seufer
6dce9e24b3
* config/tc-mips.c (md_begin): Take -mcpu value into account even when
...
-mipsX is specified. Make both -mcpu/-march and -mcpu/-mtune pairs
mutually exclusive (if they are different).
(md_parse_option): Warn if an -march/-mtune/-mcpu/-m<cpu> option is
set more than once.
2001-08-07 12:46:22 +00:00
Thiemo Seufer
21d34b1c68
* mips-dis.c (print_insn_arg): Don't use software integer registers
...
for coprocessor registers.
(_print_insn_mips): Get distinction between old ABI and new ABI right.
2001-08-07 12:36:13 +00:00
H.J. Lu
25a7b89f8b
2001-08-04 H.J. Lu <hjl@gnu.org>
...
* gas/cris/operand-err-1.s: Updated.
2001-08-05 02:22:09 +00:00
H.J. Lu
aea2ae6e48
2001-08-04 H.J. Lu <hjl@gnu.org>
...
Chris G. Demetriou <cgd@broadcom.com>
* gas/mips/e32-rel4.s: Removed.
* gas/mips/e32-rel4.d: Use elf-rel4.s.
* gas/mips/mips.exp: Use the same rel4 test for litte endian.
* gas/mips/mips-abi32-pic.d: Add lines for objdump.
* gas/mips/mips-abi32.d: Likewise.
* gas/mips/mips-gp32-fp32-pic.d: Likewise.
* gas/mips/mips-gp32-fp32.d: Likewise.
* gas/mips/mips-gp32-fp64-pic.d: Likewise.
* gas/mips/mips-gp32-fp64.d: Likewise.
* gas/mips/mips-gp64-fp32-pic.d: Likewise.
* gas/mips/mips-gp64-fp32.d: Likewise.
* gas/mips/mips-gp64-fp64-pic.d: Likewise.
* gas/mips/mips-gp64-fp64.d: Likewise.
* gas/mips/mips-abi32-pic.s: Add space for objdump.
* gas/mips/mips-abi32.s: Likewise.
* gas/mips/mips-gp32-fp32-pic.s: Likewise.
* gas/mips/mips-gp32-fp32.s: Likewise.
* gas/mips/mips-gp32-fp64-pic.s: Likewise.
* gas/mips/mips-gp32-fp64.s: Likewise.
* gas/mips/mips-gp64-fp32-pic.s: Likewise.
* gas/mips/mips-gp64-fp32.s: Likewise.
* gas/mips/mips-gp64-fp64-pic.s: Likewise.
* gas/mips/mips-gp64-fp64.s: Likewise.
* gas/mips/mips-abi32-pic.s: Add the missing .end.
* gas/mips/mips-gp32-fp32-pic.s: Likewise.
* gas/mips/mips-gp32-fp64-pic.s: Likewise.
* gas/mips/mips-gp64-fp32-pic.s: Likewise.
* gas/mips/mips-gp64-fp64-pic.s: Likewise.
2001-08-05 00:53:28 +00:00
Richard Sandiford
15ba8cc1de
* gas/mips/elf-rel4.s, gas/mips/elf-rel4.d: New test.
...
* gas/mips/e32-rel4.s, gas/mips/e32-rel4.s: New test.
* gas/mips/mips.exp: Run new tests.
2001-08-03 18:37:42 +00:00
Richard Sandiford
82146c599f
*** empty log message ***
2001-08-03 18:35:55 +00:00
Richard Sandiford
236bd878b5
* config/tc-mips.c (md_apply_fix): Don't subtract the symbol value
...
from GPREL addends.
2001-08-03 18:33:34 +00:00
Richard Sandiford
dc4622162a
* gas/mips/mips-gp32-fp32,
...
* gas/mips/mips-gp32-fp64,
* gas/mips/mips-gp64-fp32,
* gas/mips/mips-gp64-fp64,
* gas/mips/mips-abi32,
* gas/mips/mips-gp32-fp32-pic,
* gas/mips/mips-gp32-fp64-pic,
* gas/mips/mips-gp64-fp32-pic,
* gas/mips/mips-gp64-fp64-pic,
* gas/mips/mips-abi32-pic: New testcases.
* gas/mips/mips.exp: Run them.
2001-08-02 10:16:50 +00:00
Richard Sandiford
ca4e0257d1
* doc/c-mips.tex (-mgp32, -mfp32): Added -mfp32, unified with -mgp32.
...
* config/tc-mips.c (mips_fp32, mips_32bit_abi): New static variables.
(md_long_opts): Add -mfp32 option.
(md_parse_option): Handle it. Set mips_32bit_abi given -mabi=32.
(md_show_usage): Show usage for -mfp32 and -mgp32.
(HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): New macros.
(HAVE_64BIT_GPRS, HAVE_64BIT_FPRS): New macros, inverse of the above.
(HAVE_32BIT_ADDRESSES): New macro.
(load_register): Use HAVE_32BIT_GPRS to determine the register width.
(load_address): Use HAVE_32BIT_ADDRESSES to determine the address size.
(s_cprestore, s_cpadd): Likewise.
(macro): Use HAVE_32BIT_GPRS to determine the width of registers
used in branch and M_LI_D macros. Use HAVE_64BIT_FPRS to determine
the width registers used in M_LI_DD macros. Use HAVE_32BIT_ADDRESSES
to determine the width of addresses in load, store and jump macros.
(macro2): Use HAVE_32BIT_GPRS to determine the width of registers
used in set instructions; do not check the address size for them.
Use HAVE_32BIT_ADDRESSES to determine the width of addresses in
unaligned load and store macros.
(mips_ip): Use the new macros to check the width of a register when
processing float constants. Force a constant into memory if it is
destined for an FPR and the FPRs are wider than the GPRs. Warn about
odd FPR numbers if HAVE_32BIT_FPRS. Use HAVE_32BIT_GPRS rather
than mips_gp32 to select synthetic instructions.
(macro_build): Use HAVE_32BIT_GPRS rather than mips_gp32 to select
synthetic instructions.
2001-08-02 10:15:24 +00:00
Nick Clifton
28bab82b5a
Cleanups for z8k target
2001-08-01 15:39:17 +00:00
Alan Modra
28f815927f
* config/tc-i386.c (lex_got): Match lower case relocation tokens.
...
Don't allocate more space than necessary for the input line copy.
2001-08-01 02:27:11 +00:00
Alan Modra
af08bab843
* gas/elf/section2.l: Adjust warning message comparison.
2001-08-01 01:51:28 +00:00
Alan Modra
0e389e770d
* read.c: Standardize error/warning messages - don't capitalise, no
...
final period or newline, don't say "ignored" or "zero assumed" for
as_bad messages. In some cases, change the wording to that used
elsewhere for similar messages.
* app.c, as.c, atof-generic.c, cgen.c, cond.c, depend.c, dwarf2dbg.c,
ecoff.c, expr.c, frags.c, input-file.c, input-scrub.c, listing.c,
output-file.c, stabs.c, subsegs.c, symbols.c, write.c: Likewise.
* ecoff.c (ecoff_directive_end): Test for missing name by
comparing input line pointers rather than reading string.
(ecoff_directive_ent): Likewise.
* read.c (s_set): Likewise.
(s_align): Report a warning rather than an error for
alignment too large.
(s_comm): Check for missing symbol name.
(s_lcomm_internal): Likewise.
(s_lsym): Likewise.
(s_globl): Use is_end_of_line instead of looking for '\n'.
(s_lcomm_internal): Likewise.
(ignore_rest_of_line): Report a warning rather than an error.
2001-08-01 01:44:25 +00:00
Geoffrey Keating
e138127ab2
* config/tc-ppc.c (ppc_elf_validate_fix): It's OK to have
...
any kind of relocation against a not-loaded section.
2001-07-31 19:24:57 +00:00
Richard Sandiford
0c4ec1515b
* gas/mips/mips.exp (el): New variable.
...
Use it to pick ELF reloc tests.
2001-07-30 13:59:00 +00:00
Alan Modra
468cced8b9
* config/obj-elf.c (obj_elf_symver): Temporarily modify lex_type
...
to include '@' in symbol names when parsing versioned symbols
rather than calling get_symbol_end multiple times.
* config/tc-i370.c (register_name): Format fixes. Don't call
get_symbol_end after parsing number.
* config/tc-mn10200.c (data_register_name): Format fixes. Hoist
code out of conditional.
(address_register_name): Likewise.
(other_register_name): Likewise.
* config/tc-mn10300.c (r_register_name): Likewise.
(xr_register_name): Likewise.
(data_register_name): Likewise.
(address_register_name): Likewise.
(other_register_name): Likewise.
* config/tc-ppc.c (register_name): Likewise.
* config/tc-s390.c (register_name): Likewise.
2001-07-30 06:15:49 +00:00
Stephane Carrez
13283e2df1
* config/tc-m68hc11.c (md_estimate_size_before_relax): Fix bsr
...
and bra relax: update fragP->fr_fix after the fixup.
2001-07-28 19:28:04 +00:00
Alan Modra
409d19c41a
* read.c (s_set): Check for missing symbol name.
2001-07-27 08:35:56 +00:00
Chris Demetriou
411e0b6d6c
2001-07-26 Chris Demetriou <cgd@broadcom.com>
...
* gas/mips/lif-empic.d: Add back dollar signs before floating
point register names.
2001-07-27 06:26:23 +00:00
Alan Modra
bc4aa73fe2
* gas/i386/relax.s: Test rs_space.
...
* gas/i386/relax.d: Update.
2001-07-26 04:14:44 +00:00
Alan Modra
050be34e82
* write.c (relax_segment <rs_space>): Account for fr_fix.
2001-07-26 03:39:29 +00:00
H.J. Lu
46bac6de18
2001-07-25 H.J. Lu <hjl@gnu.org>
...
* config/tc-mips.c (md_estimate_size_before_relax): Make sure
we treat weak like extern only for ELF.
(mips_fix_adjustable): Make sure we don't adjust extern/weak
symbols only for ELF.
2001-07-25 22:27:46 +00:00
Chris Demetriou
2f4dcb115b
2001-07-25 Chris Demetriou <cgd@broadcom.com>
...
* config/tc-mips.c: Fix spelling error in comment.
2001-07-25 20:34:39 +00:00
Dave Brolley
62f65a7b06
2001-07-25 Dave Brolley <brolley@redhat.com>
...
* app.c (LEX_IS_PARALLEL_SEPARATOR): New macro.
(IS_PARALLEL_SEPARATOR): New macro.
(do_scrub_begin): Set up characters in tc_parallel_separator_chars
as LEX_IS_PARALLEL_SEPARATOR, if it is defined.
(do_scrub_chars): Handle LEX_PARALLEL_SEPARATOR chars like
LEX_LINE_SEPARATOR except that we go to state 1 (as if the label has
been seen).
2001-07-25 15:23:19 +00:00
Alan Modra
3817f22269
* Makefile.am (DEP_FLAGS): Define, add -DOBJ_MAYBE_ELF.
...
(DEP1, DEPTC, DEPOBJ, DEP2): Use it.
Update dependencies with "make dep-am".
2001-07-24 10:07:15 +00:00
Kazu Hirata
0772685173
* config/tc-alpha.h: Fix formatting.
...
* config/tc-arc.c: Likewise.
* config/tc-d10v.h: Likewise.
* config/tc-hppa.c: Likewise.
* config/tc-i370.c: Likewise.
* config/tc-i386.h: Likewise.
* config/tc-i960.h: Likewise.
* config/tc-ia64.c: Likewise.
* config/tc-ia64.h: Likewise.
* config/tc-m32r.c: Likewise.
* config/tc-m68k.c: Likewise.
* config/tc-m88k.c: Likewise.
* config/tc-ns32k.c: Likewise.
* config/tc-pdp11.c: Likewise.
* config/tc-pj.h: Likewise.
* config/tc-s390.c: Likewise.
* config/tc-sparc.c: Likewise.
* config/tc-sparc.h: Likewise.
* config/tc-tic80.c: Likewise.
* config/tc-w65.h: Likewise.
2001-07-23 14:02:13 +00:00
Alan Modra
ac62c3468d
* symbols.c (S_GET_VALUE): Don't treat O_constant and local
...
symbols specially. Always resolve, adding fr_address to value.
* write.c (write_object_file): Don't add fr_address to sym values.
(relax_frag): Likewise.
(relax_segment): Likewise.
* config/obj-ieee.c (do_symbols): Likewise.
* config/tc-cris.c (md_convert_frag): Likewise.
* config/tc-fr30.c (md_convert_frag): Likewise.
* config/tc-i386.c (md_convert_frag): Likewise.
* config/tc-m32r.c (md_convert_frag): Likewise.
* config/tc-m68hc11.c (md_convert_frag): Likewise.
* config/tc-mcore.c (md_convert_frag): Likewise.
* config/tc-mips.c (mips16_extended_frag): Likewise.
* config/tc-ns32k.c (md_convert_frag): Likewise.
* config/tc-m68k.c (md_convert_frag_1): Likewise.
(BRANCHBWL, BRABSJUNC, BRABSJCOND, BRANCHBW, FBRANCH, DBCCLBR,
DBCCABSJ, PCREL1632, PCINDEX, ABSTOPCREL): Decrement.
(md_relax_table): Remove first four entries. Format.
(md_estimate_size_before_relax): Remove old_fix. Don't bother
setting fr_var. Simplify byte branch checks.
2001-07-23 13:03:40 +00:00
Alan Modra
677537c186
* config/tc-hppa.c (pa_parse_nonneg_cmpsub_cmpltr): Remove
...
"isbranch" param as all calls have it set.
(pa_parse_neg_cmpsub_cmpltr): Likewise.
(pa_parse_nonneg_add_cmpltr): Likewise. Remember result of
strcasecmp in "nullify" var.
(pa_parse_neg_add_cmpltr): Likewise.
(pa_ip): Don't "save_s" unnecessarily. Update calls to above
functions. Don't print wrong conditions in error messages.
2001-07-23 12:50:22 +00:00
Andreas Jaeger
c745b67a33
* config/tc-s390.c (s390_force_relocation): Removed.
...
* config/tc-s390.h: Remove double declaration of
TC_FORCE_RELOCATION.
2001-07-23 10:21:22 +00:00
Alan Modra
2e7a08de77
* gas/i386/opcode.d: Tweak lgdt for 2001-07-18 change.
...
* gas/i386/intel.d: Likewise.
2001-07-23 07:43:09 +00:00
H.J. Lu
2b3c5a5dc1
2001-07-22 H.J. Lu <hjl@gnu.org>
...
* config/tc-mips.c (s_mips_end): Remove unused variables.
(s_mips_frame): Add ATTRIBUTE_UNUSED.
2001-07-22 18:11:29 +00:00
Nick Clifton
1b577b00bd
Change bug reporting email address.
2001-07-19 10:43:13 +00:00
Andreas Schwab
f27a38390b
* config/tc-m68k.c (md_pseudo_table) [OBJ_ELF]: Add .file and
...
.loc.
(md_assemble) [OBJ_ELF]: Call dwarf2_emit_insn before emitting
insn.
* config/tc-m68k.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
2001-07-18 10:25:58 +00:00
Matthew Green
5bae9b28a0
* config/tc-i386.c (comment_chars): Don't use '/' as comment start if
...
TE_NetBSD.
(line_comment_chars): Set to '/' if TE_NetBSD.
2001-07-17 09:57:52 +00:00
Phil Blundell
9a7f7ba66f
2001-07-16 Philip Blundell <philb@gnu.org>
...
* gas/arm/arm7t.d, gas/arm/inst.d: Tweak expected output for
change to disassembler.
2001-07-16 19:06:09 +00:00
Nick Clifton
e7d10af411
Fix failures in MIPS testsuite
2001-07-14 15:50:41 +00:00
Matthew Green
92c077a32b
fix formatting goof in previous.
2001-07-14 15:36:22 +00:00
Matthew Green
7ed28e6531
* configure.in (i386-*-netbsdelf*): New target.
...
configure: Regenerate.
2001-07-14 14:44:39 +00:00
Jakub Jelinek
20278fa326
* elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
...
R_SPARC_UA64.
(elf32_sparc_check_relocs): Likewise.
Only create .rela section for alloced sections in shared libraries.
(elf32_sparc_relocate_section): Likewise.
Remove redundant check.
Optimize unaligned reloc usage.
* elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
check.
* testsuite/gas/sparc/unalign.s: Remove .uaxword test.
* testsuite/gas/sparc/unalign.d: Adjust accordingly.
2001-07-11 19:40:32 +00:00
John Healy
cdbb0887ba
*** empty log message ***
2001-07-11 19:35:17 +00:00
Nick Clifton
bdbe95c8c5
Don't merge if the storage class of the non-debug symbol is C_NULL.
2001-07-11 09:26:27 +00:00
John Healy
07e97ae2e3
2001-07-10 John Healy <jhealy@redhat.com>
...
* config/obj-elf.c (obj_elf_section): md_elf_section_change_data_hook
added to grab section information after it's been extracted from the
.section directive.
2001-07-10 21:49:11 +00:00
Nick Clifton
15dcfbc30f
Fix grammatical errors
2001-07-10 10:11:35 +00:00
Nick Clifton
f740e790c7
Use FOPEN_.. macros in calls to fopen().
2001-07-10 09:45:50 +00:00
Nick Clifton
7e005732aa
Add .incbin pseudo op
2001-07-09 08:19:18 +00:00
Nick Clifton
ae341099a8
Only set debug_type to DEBUG_NONE if it is DEBUG_UNSPECIFIED.
2001-07-07 15:43:04 +00:00
John Healy
002de68b31
2001-07-06 John Healy <jhealy@redhat.com>
...
* cgen.c (gas_cgen_save_fixups): Modified to allow more than one
set of fixups to be stored.
(gas_cgen_restore_fixups): Modified to allow the fixup chain to be
restored to be chosen from any that are saved.
(gas_cgen_swap_fixups): Modified to allow the current set of
fixups to be swapped with any other set that has been saved.
(gas_cgen_initialize_saved_fixups_array): New routine.
* cgen.h: Modifed prototypes for gas_cgen_save_fixups,
gas_cgen_restore_fixups, and gas_cgen_swap_fixups. Added definitions
or MAX_SAVED_FIXUP_CHAINS.
* config/tc-m32r.c (assemble_two_insns): Changed calls to fixup
store, swap and restore fuctions to reflect the new interface.
2001-07-06 19:09:23 +00:00
Nick Clifton
7099f9f917
Catch and ignore empty, ineffectual alignment frags when deciding if a
...
branch can be short.
2001-07-06 08:21:35 +00:00
Jim Wilson
557debbaef
32-bit unwind data for ia64-hpux, from Steve Ellcey
...
* config/tc-ia64.c (special_section): Add SPECIAL_SECTION_INIT_ARRAY
and SPECIAL_SECTION_FINI_ARRAY.
(special_section_name): Add .init_array and .fini_array.
(md_pseudo_table): Add init_array and fini_array.
(md): Add pointer_size and pointer_size_shift fields.
(setup_unwind_header): New static function.
(output_unw_records): Modify to use setup_unwind_header.
(generate_unwind_image, dot_endp): Modify to use md.pointer_size and
md.pointer_size_shift.
(md_begin): Initialize md.pointer_size and md.pointer_size_shift.
2001-07-06 07:32:42 +00:00
Alan Modra
7fb088be89
Oops, missed committing entry for 2001-07-05 change.
2001-07-06 02:02:42 +00:00
Ben Elliston
464bb47cc9
2001-07-05 Ben Elliston <bje@redhat.com>
...
* README (Supported platforms): m88k no longer suffers bitrot.
2001-07-05 11:28:57 +00:00
Ben Elliston
4ad0936356
2001-07-05 Ben Elliston <bje@redhat.com>
...
* config/tc-m88k.c (md_pseudo_table): Remove redundant "global".
2001-07-05 07:28:06 +00:00
Alan Modra
bd780143bd
* struc-symbol.h (struct local_symbol): Rename lsy_offset to
...
lsy_value. Correct typos in comments.
* symbols.c (local_symbol_make): Update for name change.
(local_symbol_convert): Likewise.
(colon): Likewise.
(S_GET_VALUE): Likewise.
(S_SET_VALUE): Likewise.
(print_symbol_value_1): Likewise.
(resolve_symbol_value): Likewise. Don't divide local sym values
by OCTETS_PER_BYTE twice.
2001-07-05 05:49:13 +00:00
Jim Wilson
87885043df
Fix ia64-linux gas ehopt testsuite failure.
...
* config/tc-ia64.c (md_pseudo_table): Add 2byte, 4byte, and 8byte.
2001-07-05 03:34:42 +00:00
Jim Wilson
3e37788f8d
Fix 2 ia64-linux gas testsuite failures.
...
* config/tc-ia64.c (is_conditional_branch): Rewrite to exclude mod
sched branches.
2001-07-05 02:30:21 +00:00
Ben Elliston
2a1e2a6d6e
2001-07-05 Ben Elliston <bje@redhat.com>
...
* read.c (s_fill): Correct spelling error in comments.
2001-07-05 00:36:50 +00:00
Ben Elliston
81b0b3f175
2001-07-05 Ben Elliston <bje@redhat.com>
...
* doc/c-m88k.texi: New file.
* doc/Makefile.am (CPU_DOCS): Add c-m88k.texi.
* doc/Makefile.in: Regenerate.
* doc/all.texi: Set M880X0.
* doc/as.texinfo: Hook in m88k-dependent documentation.
2001-07-05 00:25:28 +00:00
Eric Christopher
18ae5d728b
2001-07-04 Eric Christopher <echristo@redhat.com>
...
* doc/c-mips.texi (MIPS Opts): Document 12000 as valid cpu.
* config/tc-mips.c (mips_cpu_info_table): Add rm5200, rm5231, rm5261,
and rm5721 as valid cpu strings.
(md_show_usage): Add rm5200, rm5231, rm5261, rm5721.
2001-07-04 12:32:07 +00:00
Richard Sandiford
7461da6e23
[gas]
...
* config/tc-mips.c (md_apply_fix): Prevent addend from becoming zero
if it's expected to be non-zero.
[gas/testsuite]
* gas/mips/elf-rel3.s: Add zero word to end of file.
2001-07-04 09:49:29 +00:00
H.J. Lu
86a1548669
2001-07-03 H.J. Lu <hjl@gnu.org>
...
* gas/mips/lb-xgot-ilocks.d: Add -march=r3900.
2001-07-03 18:49:04 +00:00
Nick Clifton
7bcad3e505
Fix seg fault by replacing symbol_get_frag() with fscan->fx_frag.
2001-07-03 15:22:19 +00:00
Nick Clifton
8754881645
Fix mips16 testsuite failure by allowing finalize_syms to be set before
...
size_segs is called.
2001-07-03 15:04:19 +00:00
Alan Modra
99a814a1cc
* config/tc-ppc.c: Formatting fixes.
2001-07-02 10:54:49 +00:00
Ben Elliston
bd59b34f1e
2001-07-01 Ben Elliston <bje@redhat.com>
...
* config/tc-m88k.c: Back out warning fixes from 2001-06-24, as
they cause some subtle breakage. Will fix them again later.
2001-07-01 06:36:43 +00:00
Ben Elliston
551b1d8931
* fix tabs in this change:
...
2001-06-28 Eric Christopher <echristo@redhat.com>
H.J. Lu <hjl@gnu.org>
2001-07-01 06:32:07 +00:00
Ben Elliston
013468bc3c
2001-07-01 Ben Elliston <bje@redhat.com>
...
* gas/m88k/allinsn.s: New file.
* gas/m88k/allinsn.d: Likewise.
* gas/m88k/m88k.exp: Test with allinsn.s also.
2001-07-01 06:16:55 +00:00
Nick Clifton
e237d851a4
Treat a .ln directive outside of a function as a .appline directive.
2001-06-30 10:09:40 +00:00
Eric Christopher
ec68c924f0
2001-06-28 Eric Christopher <echristo@redhat.com>
...
H.J. Lu <hjl@gnu.org>
* config/tc-mips.c (mips_arch): New. Use mips_arch instead
of mips_cpu for the ISA selection.
(md_longopts): Add OPTION_MARCH and OPTION_MTUNE.
(md_parse_option): Handle OPTION_MARCH and OPTION_MTUNE.
(mips_tune): New. Use mips_tune for scheduling and optimization
issues.
(append_insn): Use mips_tune and mips_arch.
(macro_build): Ditto.
(mips_ip): Ditto.
(md_begin): Handle mips_arch, mips_tune and mips_cpu. For
backwards compatability mips_cpu generates arch and tune.
(md_show_usage): Document new behavior.
* doc/c-mips.texi (MIPS Opts): Document -march and -mtune.
Deprecate -mcpu.
* NEWS: Update.
2001-06-28 Eric Christopher <echristo@redhat.com>
* gas/mips/usd.d: Change for march/mtune.
* gas/mips/ulh-xgot.d: Ditto.
* gas/mips/uld.d: Ditto.
* gas/mips/trunc.d: Ditto.
* gas/mips/rol.d: Ditto.
* gas/mips/nodelay.d: Ditto.
* gas/mips/mul.d: Ditto.
* gas/mips/mul-ilocks.d: Ditto.
* gas/mips/trap20.d: Ditto.
* gas/mips/mips4.d: Ditto.
* gas/mips/mips16.d: Ditto.
* gas/mips/lif-xgot.d: Ditto.
* gas/mips/lif-svr4pic.d: Ditto.
* gas/mips/ld-xgot.d: Ditto.
* gas/mips/ld-svr4pic.d: Ditto.
* gas/mips/ld-ilocks-addr32.d: Ditto.
* gas/mips/lb-xgot.d: Ditto.
* gas/mips/jal-xgot.d: Ditto.
* gas/mips/jal-svr4pic.d: Ditto.
* gas/mips/delay.d: Ditto.
* gas/mips/lb-xgot-ilocks.d: Ditto.
* gas/mips/div.d: Ditto.
* gas/mips/break20.d: Ditto.
* gas/mips/delay.d: Ditto.
* gas/mips/elf_e_flags3.d: Ditto.
* gas/mips/elf_e_flags4.d: Ditto.
* gas/mips/lineno.d: Ditto.
* gas/mips/mips16.d: Ditto.
* gas/mips/mips4.d: Ditto.
* gas/mips/mips4010.d: Ditto.
* gas/mips/mips4650.d: Ditto.
2001-06-29 21:27:43 +00:00
Nick Clifton
38b87a1b80
Do not set finalize_syms until after the segments have been sized.
...
Some backends may still need to access the syms's frags in order to
adjust relaxed frags.
2001-06-27 08:49:42 +00:00
Nick Clifton
d827344236
Use MVN to build simple inverted constants.
2001-06-27 08:15:52 +00:00
Alan Modra
1a16aca4b4
* write.c (fixup_segment <Difference of 2 syms same seg>): Don't
...
subtract MD_PCREL_FROM_SECTION for 68k.
(fixup_segment <Difference of 2 syms different seg>): Only fudge
by adding MD_PCREL_FROM_SECTION for 68k or if not already pcrel.
2001-06-27 07:02:24 +00:00
Alan Modra
d48019e088
* write.c (fixup_segment <Difference of 2 syms same seg>): If
...
pcrel, subtract MD_PCREL_FROM_SECTION value.
2001-06-27 03:14:47 +00:00
Ben Elliston
37ffda1076
2001-06-24 Ben Elliston <bje@redhat.com>
...
* stabs.c (generate_asm_file): Make local variable `len' a size_t.
2001-06-25 07:57:09 +00:00
Jakub Jelinek
6f112c47dc
* config/tc-alpha.c (tc_gen_reloc): Handle relocs against SEC_MERGE
...
section symbols the same way as externs.
2001-06-24 16:43:31 +00:00
Ben Elliston
453520d7ad
2001-06-24 Ben Elliston <bje@redhat.com>
...
* config/tc-m88k.c (md_number_to_imm): Remove; unused since 1993.
(emit_relocations): Ditto.
(s_bss): Ditto.
(md_begin): Reformat comments to conform to the GNU standards.
(md_assemble): Ditto.
2001-06-24 06:01:49 +00:00
Ben Elliston
e21e484e83
* fixes to silence all compiler warnings.
...
2001-06-24 Ben Elliston <bje@redhat.com>
* config/tc-m88k.c (get_reg): Adjust type of `reg_prefix' to char.
(md_parse_option): Mark parameters as unused.
(md_show_usage): Ditto.
(calcop): Adjust type of `reg_prefix' to char.
(get_reg): Ditto.
(getval): Adjust type of local `c' to char.
(md_create_short_jump): Mark from_addr, to_addr params as unused.
(md_create_long_jump): Ditto.
(md_estimate_size_before_relax): Mark parameters as unused.
2001-06-24 01:56:48 +00:00
Ben Elliston
a181d81e0c
2001-06-24 Ben Elliston <bje@redhat.com>
...
* config/tc-m88k.c (md_pseudo_table): Properly terminate the table
to allay a possible compiler warning.
2001-06-23 23:02:57 +00:00
Nick Clifton
dd9b19ab40
Document md_atof
2001-06-22 09:32:09 +00:00
Nick Clifton
8be31359fc
Add %mrp (millicode return pointer) alias for %r2 or %r31, depending on 32 or
...
64 bit architecture.
2001-06-22 08:17:57 +00:00
Nick Clifton
1cac90122e
Allow adrCCl. [Patch from Phillip BLundel]
...
Updated ARM tests.
2001-06-21 19:46:54 +00:00
Alan Modra
b091f402a9
* config/tc-hppa.c (CHECK_FIELD_WHERE): Define.
...
(md_apply_fix): Use it here. Replace printf with equivalent
as_bad_where.
(tc_gen_reloc): Use as_bad_where instead of as_bad.
(md_apply_fix): Here too.
* config/tc-i386.c (tc_gen_reloc): Use as_bad_where instead of as_bad.
* config/tc-m68k.c (tc_gen_reloc): Likewise.
(md_convert_frag_1): Likewise.
2001-06-21 06:12:11 +00:00
Tom Rix
1ad63b2f00
Fix for problem with default alignment of .comm
2001-06-20 13:34:10 +00:00
Nick Clifton
b99bd4efbd
Restore file accidentally deleted during man page cleanup
2001-06-19 16:26:43 +00:00
Nick Clifton
c45021f2d2
Remove auot generated man pages
2001-06-19 11:57:29 +00:00
Phil Blundell
2172d73b21
2001-06-18 Philip Blundell <philb@gnu.org>
...
* config/tc-arm.c (do_msr): Remove restriction on usage of
immediate operands.
2001-06-19 07:33:21 +00:00
Alan Modra
45c500fa3e
* dwarf2dbg.c (dwarf2_finish): Output file info even when no
...
line info.
2001-06-19 05:40:55 +00:00
Phil Blundell
0b317b0807
2001-06-13 Philip Blundell <philb@gnu.org>
...
* config/tc-arm.c (thumb_shift): Improve wording of error message.
(do_t_arit): Likewise.
2001-06-14 07:58:12 +00:00
Nick Clifton
2bc0a1288f
Stop sh-coff port from trying to call dwarf2 debug functions
2001-06-13 16:46:05 +00:00
Andreas Jaeger
74b5b66abe
* gas/vtable/vtable.exp (run_list_test): Don't run on sparc64.
2001-06-13 13:42:42 +00:00
Nick Clifton
07a7a14553
Fix typo in comment
2001-06-13 11:29:53 +00:00
Nick Clifton
542bf900ba
Regernate after recent change to as.texinfo
2001-06-13 11:26:37 +00:00
Nick Clifton
b131d4dca6
Document use of comparison operators as infix operators
2001-06-12 15:56:04 +00:00
Nick Clifton
e1f44d1052
Fix m68k/mri mode problems.
2001-06-12 10:35:24 +00:00
Nick Clifton
3971ce954f
fix test for overlflow of literal pool
2001-06-12 08:27:53 +00:00
Alan Modra
de8b1efeaa
* gas/i386/x86_64.d: Update for 2001-06-11 disassembler change.
2001-06-12 02:03:10 +00:00
H.J. Lu
63486801dd
2001-06-11 H.J. Lu <hjl@gnu.org>
...
* NEWS: Updated for the new -n option for the MIPS assembler.
* config/tc-mips.c (md_show_usage): Add -n.
* doc/as.texinfo: Document the new -n option.
* doc/c-mips.texi: Likewise.
* doc/as.1: Regenerated.
2001-06-11 20:40:36 +00:00
H.J. Lu
bab00ceada
2001-06-10 H.J. Lu <hjl@gnu.org>
...
* gas/elf/section2.l: Match various white spaces.
2001-06-11 01:07:02 +00:00
H.J. Lu
3e9379a98e
Support 64bit ELF, not BFD.
2001-06-10 23:05:47 +00:00
H.J. Lu
6174aabb80
2001-06-10 H.J. Lu <hjl@gnu.org>
...
* gas/elf/section2.e: Support 64bit BFD.
* gas/elf/section2.e-mips: Likewise.
2001-06-10 18:16:51 +00:00
Alan Modra
5dd0794dca
Branch hints for Pentium4 as insn modifiers, and some minor tweaks
...
to formatting.
2001-06-10 14:07:12 +00:00
H.J. Lu
594e740ff0
2001-06-08 H.J. Lu <hjl@gnu.org>
...
* gas/mips/elfel-rel3.s: Moved to ...
* gas/mips/elf-rel3.s: Here.
* gas/mips/elf-rel3.d: Updated.
* gas/mips/elfel-rel3.d: Updated.
* gas/mips/relax.d: New file.
* gas/mips/relax.s: Likewise.
* gas/mips/mips.exp: Run relax and set xfail.
2001-06-09 06:25:55 +00:00
H.J. Lu
39c0a33100
2001-06-08 H.J. Lu <hjl@gnu.org>
...
* config/tc-mips.c (warn_nops): New variable. Set to 0 to
disable warning about all NOPS that the assembler generates.
(macro): Warn NOPS generated only if warn_nops is not 0.
(md_shortopts): Add `n'.
(md_parse_option): Set warn_nops to 1 for `n'.
2001-06-09 05:24:39 +00:00
H.J. Lu
268f6bed84
2001-06-08 H.J. Lu <hjl@gnu.org>
...
* config/tc-mips.c (mips_ip): Properly handle illegal operands.
2001-06-09 05:01:29 +00:00
H.J. Lu
d9e138e292
2001-06-08 H.J. Lu <hjl@gnu.org>
...
* gas/mips/illegal.s: New file.
* gas/mips/illegal.l: Likewise.
* gas/elf/elf.exp (run_list_test): New.
Run illegal with run_list_test.
2001-06-09 04:54:16 +00:00
H.J. Lu
7388e440ec
2001-06-08 H.J. Lu <hjl@gnu.org>
...
* gas/mips/elf-jal.d: New file.
* gas/mips/mips.exp: Run "elf-jal" instead of "jal" for ELF.
2001-06-09 03:28:32 +00:00
H.J. Lu
ea4ff978a2
2001-06-08 H.J. Lu <hjl@gnu.org>
...
* config/tc-mips.c (md_apply_fix): Don't adjust common
extern/weak symbols for ELF.
(md_estimate_size_before_relax): Treat weak like extern for
ELF.
(mips_fix_adjustable): Don't adjust extern/weak symbols for
ELF.
2001-06-09 03:28:04 +00:00
Alan Modra
02e07694c3
* gas/elf/elf.exp (run_list_test): Undo $readelf change in 2001-06-07.
2001-06-08 15:27:25 +00:00
Alan Modra
c0037ab6f5
fix typo.
2001-06-08 06:11:33 +00:00
Alan Modra
98aa84af0e
* Makefile.am: 'som' is not wrongly spelled 'some'.
...
* Makefile.in: Regenerate.
* config/tc-mips.c (mips16_mark_labels): Reduce number of calls to
S_GET_VALUE by using a temp.
(append_insn): Likewise, and for S_GET_VALUE too.
(mips_emit_delays): Likewise.
(my_getExpression): Likewise.
(md_apply_fix): Likewise. Use "valueT" rather than "long" for "value".
(mips16_extended_frag): Remove code concerned with avoiding
locking in a frag address now that symbols are not finalized until
relaxation is complete. Cater for first relaxation pass having
bogus addresses. Use relax_marker to reliably determine whether a
symbol frag has been reached on the current pass.
2001-06-08 06:07:13 +00:00
H.J. Lu
fa6b2d59c9
2001-06-07 H.J. Lu <hjl@gnu.org>
...
* gas/elf/section2.e-mips: New file.
* gas/elf/elf.exp (run_list_test): Add suffix.
Pass -mips as suffix to run_list_test for mips.
2001-06-08 01:08:05 +00:00
H.J. Lu
f85f789b4c
2001-06-07 H.J. Lu <hjl@gnu.org>
...
* configure.in: Move "mips-*-linux-gnu*" before "mips-*-gnu*".
* configure: Regenerate.
2001-06-07 23:43:46 +00:00
H.J. Lu
7b15a6b5a9
2001-06-07 H.J. Lu <hjl@gnu.org>
...
* gas/elf/section2.l: Match ".*GAS.*" instead of
"GAS LISTING .*".
2001-06-07 18:06:59 +00:00
H.J. Lu
df3bcd6f73
2001-06-07 H.J. Lu <hjl@gnu.org>
...
* configure.in: Use MIPS_STABS_ELF for Linux/mips and remove
ecoff emulation.
* configure: Regenerate.
2001-06-07 17:23:14 +00:00
H.J. Lu
9160c09b0f
2001-06-07 H.J. Lu <hjl@gnu.org>
...
* gas/mips/mips.exp: Set xfail for "lineno" on Linux/mips.
2001-06-07 17:18:56 +00:00
H.J. Lu
add565213d
2001-06-07 H.J. Lu <hjl@gnu.org>
...
* config/tc-mips.c (mips_pseudo_table): Add "extern" if
MIPS_STABS_ELF is defined.
2001-06-07 16:52:19 +00:00
H.J. Lu
d2d89a164a
Fix typos.
2001-06-07 16:48:18 +00:00
H.J. Lu
823e3a7306
2001-06-06 H.J. Lu <hjl@gnu.org>
...
* gas/mips/empic.d: Support stabs.
* gas/mips/mips16-e.d: Likewise.
* gas/mips/mips16-f.d: Likewise.
* gas/mips/mipsel16-f.d: Likewise.
* gas/mips/telempic.d: Likewise.
* gas/mips/tempic.d: Likewise.
* gas/mips/tmips16-e.d: Likewise.
* gas/mips/tmipsel16-e.d: Likewise.
2001-06-07 16:44:12 +00:00
H.J. Lu
a90335ee82
2001-06-06 H.J. Lu <hjl@gnu.org>
...
* gas/mips/elf-rel3.s: New file.
* gas/mips/elf-rel3.d: Likewise.
* gas/mips/elfel-rel3.s: Likewise.
* gas/mips/elfel-rel3.d: Likewise.
* gas/mips/mips.exp: Run elf-rel3/elfel-rel3.
2001-06-07 00:57:40 +00:00
H.J. Lu
5b5032ebbd
2001-06-06 H.J. Lu <hjl@gnu.org>
...
* gas/elf/elf.exp (run_list_test): New.
Run section2 with run_list_test.
* gas/elf/section2.e: New file.
* gas/elf/section2.l: Likewise.
* gas/elf/section2.s: Likewise.
2001-06-06 21:07:14 +00:00
Nick Clifton
6da13e9a21
Remove L fromlist of accepting listin goptions
2001-06-06 17:32:38 +00:00
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
Jakub Jelinek
579f31ac74
* elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
...
sections as well.
(elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
to .gnu.linkonce.t.FOO text section.
* readelf.c (process_unwind): Print all unwind sections, not just
one.
* config/tc-ia64.c (special_linkonce_name): New.
(make_unw_section): Map .gnu.linkonce.t.FOO text section into
.gnu.linkonce.ia64unw{,i}.FOO.
(ia64_elf_section_type): Handle .gnu.linkonce.ia64unw{,i}.FOO.
(dot_endp): Add comment about it.
* elf/ia64.h (ELF_STRING_ia64_unwind_once): Define.
(ELF_STRING_ia64_unwind_info_once): Define.
* emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
.gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
output sections.
* emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2001-05-11 12:36:47 +00:00
Nick Clifton
15f65ae412
When truncating an aligned block, ensure that the low order bits of the
...
alignment are preserved.
2001-05-11 10:01:41 +00:00
Alan Modra
606ab118ba
Fix more fallout from multi-pass relaxation patch.
2001-05-10 11:32:52 +00:00
Hans-Peter Nilsson
cbc5fe5056
* gas/cris/rd-dw2-10.d: Tweak for change in gas dwarf2 line number
...
handling.
2001-05-10 02:31:01 +00:00
Richard Henderson
1f23ade4f4
* config/tc-ia64.c (generate_unwind_image): Align the fragment
...
beginning a function's unwind info block.
2001-05-10 00:18:19 +00:00
Alexandre Oliva
96f37af640
* config/tc-mn10300.c (md_apply_fix3): Accept PC-relative relocs.
2001-05-09 13:32:01 +00:00
Andreas Schwab
8390138c6b
* config/tc-m68k.c: Instead of replacing -1 by 64 in assignment to
...
fx_pcrel_adjust explicitly sign extend when reading it.
2001-05-08 18:03:27 +00:00
Alan Modra
5c65dbc1ca
More fallout from 2001-03-30 changes.
...
* config/tc-m68k.c (md_estimate_size_before_relax): Set fr_var
from md_relax_table, and combine some switch cases.
2001-05-08 13:13:56 +00:00
Alexandre Oliva
a7c92daeed
* config/tc-mn10300.c (md_assemble): Subtract operand->shift
...
from offset in non-pcrel operands too.
2001-05-06 20:05:28 +00:00
Nick Clifton
d8708f403e
Do not insert more than MAX_MEM_FOR_RS_ALIGN_CODE bytes.
2001-05-06 10:11:33 +00:00
Alan Modra
992aaec9a9
Assorted fixes to pinsrw, pextrw, pmovmskb, movmskp, maskmovq.
2001-05-04 11:10:55 +00:00
Alan Modra
3438adb37d
Warning fixes and configure/makefile tweaks by Thiemo Seufer.
2001-05-03 02:07:02 +00:00
Alan Modra
636c26b044
* config/tc-i386.c (i386_displacement): Call as_bad for bad GOTOFF
...
expressions rather than triggering an assert.
2001-05-03 01:08:44 +00:00
Nick Clifton
6e1e737c86
Fix indentation and parenthesis
2001-05-02 18:40:10 +00:00
Nick Clifton
c7e4034828
Add gas and ld support for openrisc
2001-05-02 18:14:31 +00:00
Nick Clifton
5cb1517bba
imprrove error message
2001-05-02 11:33:12 +00:00
H.J. Lu
f4ddc5e633
2001-04-29 Keith M Wesolowski <wesolows@foobazco.org>
...
* config/tc-mips.c (md_parse_option): Also accept
elf64-tradbigmips and elf64-tradlittlemips for OPTION_64.
2001-04-29 17:58:39 +00:00
H.J. Lu
fa7fda74e9
2001-04-27 David Mosberger <davidm@hpl.hp.com>
...
* config/tc-ia64.c (dot_spillmem_p): Fix output_spill_?sprel_p()
argument passing order: predicate goes last, not first.
2001-04-27 20:42:55 +00:00
Nick Clifton
87748b3227
Add support for arm-vxworks target
2001-04-27 17:12:18 +00:00
Nick Clifton
16a0c2d4ec
Add ability to pad code alignment frags with no-ops.
2001-04-26 15:19:21 +00:00
Nick Clifton
5a0a214415
Fix autoconf breakage + commit target.c, omitted in previous delta
2001-04-25 19:09:30 +00:00
Nick Clifton
ea3b9044a6
Check to see if the filename symbol has been initialised before extracting
...
its symbol index.
2001-04-25 09:11:31 +00:00
H.J. Lu
d6d788bdf3
2001-04-24 H.J. Lu <hjl@gnu.org>
...
* configure: Regenerated with the right version of autoconf.
2001-04-25 00:18:35 +00:00
Nick Clifton
6840198f93
z8k fixes
2001-04-24 15:22:25 +00:00
Jason Eckhardt
1c97d17b13
2000-04-20 Jason Eckhardt <jle@redhat.com>
...
* config/tc-d10v.h (tc_frob_label): Update the symbol's frag
since frag_now can change after d10v_cleanup is called.
2001-04-20 23:38:37 +00:00
David O'Brien
1c33f1da00
2001-04-16 David O'Brien <obrien@FreeBSD.org>
...
* configure.in: Add the em type for FreeBSD targets.
* configure: Regenerate.
Approved by: Alan Modra <amodra@one.net.au>
<20010414192409.C16364@squeak.one.net.au>
Philip Blundell <philb@gnu.org>
<E14o06W-0002IT-00@kings-cross.london.uk.eu.org>
2001-04-17 01:36:23 +00:00
Alexandre Oliva
8c5e1ccd72
* struc-symbol.h (struct local_symbol): New TC_LOCAL_SYMFIELD_TYPE.
...
* symbols.c (local_symbol_convert): Call TC_LOCAL_SYMFIELD_CONVERT.
2001-04-14 06:57:28 +00:00
Alexandre Oliva
eb0dfd58c8
* config/tc-mn10300.c (md_assemble): Simplify offset adjustment of
...
pc-relative relocations not placed at the end of the instruction.
2001-04-14 06:53:57 +00:00
Jim Wilson
1deb8127a2
Fix latent bug exposed by a gcc-3 bug fix.
...
* tc-ia64.c (is_conditional_branch): Return true for br, brl, and br.
excluding br.i.
2001-04-14 03:51:40 +00:00
Jakub Jelinek
f5fa8ca231
bfd/
...
* libbfd-in.h (_bfd_merge_section): New.
(_bfd_write_merged_section): New.
(_bfd_merged_section_offset): New.
* libbfd.h: Rebuilt.
* linker.c (_bfd_generic_link_output_symbols): Handle
discard_sec_merge.
* aoutx.h (aout_link_write_symbols): Likewise.
* pdp11.c (aout_link_write_symbols): Likewise.
* elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
(elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
sections.
(elf_link_sec_merge_syms): New.
(elf_link_input_bfd): Call _bfd_merged_section_offset
and _bfd_write_merged_section.
Handle discard_sec_merge.
* elf-bfd.h (struct elf_link_hash_table): Add merge_info
field.
(struct bfd_elf_section_data): Likewise.
* elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
SEC_STRINGS section flags and entsize from their ELF counterparts.
(_bfd_elf_link_hash_table_init): Initialize merge_info.
(elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
from their BFD counterparts.
* merge.c: New file.
* Makefile.am: Add strtab.lo.
* Makefile.in: Rebuilt.
include/
* bfdlink.h (bfd_link_discard): Add discard_sec_merge.
gas/
* config/obj-elf.c (obj_elf_change_section): Add entsize argument,
handle SHF_MERGE and SHF_STRINGS.
(obj_elf_parse_section_letters): Set SHF_MERGE and SHF_STRINGS.
(obj_elf_section): Allow additional argument specifying entity size.
* write.c (adjust_reloc_syms): Keep relocations against local symbols
in SEC_MERGE sections.
ld/
* ldmain.c (main): Default to discard_sec_merge.
* lexsup.c (OPTION_DISCARD_NONE): Define.
(ld_options): Add --discard-none.
(parse_args): Handle OPTION_DISCARD_NONE.
* ldlang.c (wild_doit): SEC_MERGE should be set in the output
section only if SEC_MERGE and SEC_STRINGS flags and entsize of
all its input sections match.
2001-04-13 00:34:36 +00:00
Jason Merrill
fb81275c7d
* dwarf2dbg.c (process_entries): Don't optimize redundant line notes.
2001-04-12 16:00:32 +00:00
Alexandre Oliva
a8a22e3365
* expr.c (operand): Pass &c to md_parse_name().
...
* config/tc-ia64.h, config/tc-ppc.h, config/tc-tic54x.h: Adjust.
2001-04-12 07:03:10 +00:00
H.J. Lu
af9539e4e5
2001-04-07 Steven J. Hill <sjhill@cotw.com>
...
* config/tc-mips.c: Support ELF64 for traditional MIPS targets.
* Makefile.am: (TARG_ENV_HFILES): Add tc-mips.h.
* Makefile.in: Regenerated.
* configure.in: Use traditional MIPS targets for Linux/MIPS.
* configure: Regenerated.
2001-04-08 05:09:21 +00:00
Alexandre Oliva
4dfea10551
* config/tc-mn10300.c (xr_registers): Added `pc'.
2001-04-06 07:50:48 +00:00
Hans-Peter Nilsson
ee544a35f7
Remove redundant ChangeLog entry separator
2001-04-05 19:11:07 +00:00
Hans-Peter Nilsson
777623bb46
* gas/cris/fragtest.s, gas/cris/rd-pic-1.s,
...
gas/cris/binop-cmpmovx.d, gas/cris/binop-cmpmove.d,
gas/cris/binop.d, gas/cris/binop.s, gas/cris/brokw-2.d,
gas/cris/clear.d, gas/cris/fragtest.s, gas/cris/jump-type.d,
gas/cris/nosep.s, gas/cris/pushpop.d, gas/cris/quick.s,
gas/cris/range-err-2.s, gas/cris/sep-err-1.s,
gas/cris/sreg-to-x.d, gas/cris/test.d, gas/cris/x-to-byte-sreg.d,
gas/cris/x-to-word-sreg.d, gas/cris/x-to-dword-sreg.d: Remove
trailing empty lines.
* gas/cris/continue.s: Ditto, tweak comment.
2001-04-05 19:07:00 +00:00
Hans-Peter Nilsson
8ac9c12459
* gas/cris/brokw-2.s: Correct broken-word expansion visualization
...
in comment.
2001-04-05 18:19:13 +00:00
Hans-Peter Nilsson
ad7f5c6905
* gas/cris/rd-dw2-1.d, gas/cris/rd-dw2-2.d, gas/cris/rd-dw2-3.d,
...
gas/cris/rd-dw2-4.d, gas/cris/rd-dw2-5.d, gas/cris/rd-dw2-6.d,
gas/cris/rd-dw2-7.d, gas/cris/rd-dw2-8.d, gas/cris/rd-dw2-9.d,
gas/cris/rd-dw2-10.d, gas/cris/rd-dw2-11.d, gas/cris/rd-dw2-12.d,
gas/cris/rd-dw2-13.d, gas/cris/rd-dw2-14.d, gas/cris/rd-dw2-15.d:
New tests.
2001-04-05 18:15:04 +00:00
Hans-Peter Nilsson
4b0d96c227
* lib/gas-defs.exp (run_dump_test): Support using readelf.
...
* config/default.exp: Default READELF and READELFFLAGS.
2001-04-05 15:31:46 +00:00
Alan Modra
e66457fbf3
Fix more breakages from the multiple relax pass patch.
2001-04-05 04:21:36 +00:00
Hans-Peter Nilsson
ed67db7ab9
* config/tc-cris.c (cris_insn_first_word_frag): New.
...
(md_assemble): Call cris_insn_first_word_frag to get the first
frag in an insn, not frag_more. Don't call dwarf2_emit_insn at
end. Drop variable insn_size.
(gen_bdap): Call cris_insn_first_word_frag, not frag_more.
(cris_sym_leading_underscore): Wrap first as_bad parameter in _().
(cris_sym_no_leading_underscore, s_cris_file, s_cris_loc): Ditto.
2001-04-04 04:23:20 +00:00
Hans-Peter Nilsson
c335d39444
* config/tc-cris.c (md_estimate_size_before_relax) <case
...
ENCODE_RELAX (STATE_CONDITIONAL_BRANCH, STATE_UNDF)>: Don't emit
32-bit branch, just set fragP->fr_subtype. Set fragP->fr_var.
<all cases>: Always set fragP->fr_var using md_cris_relax_table.
Add cases to cover all relax states.
2001-04-04 03:53:12 +00:00
Hans-Peter Nilsson
aacb52510a
* write.c (write_object_file): Reset broken word state before
...
calling relax_seg.
2001-04-04 03:05:47 +00:00
Alan Modra
61b96bb428
Fix conditional assembly listings when more than one .else/.elsif
2001-03-31 06:47:54 +00:00
Alan Modra
cdbc6895e5
* cond.c (s_endif): Correct handling of "if .. elseif .." trees.
...
Don't abort on NULL current_cframe.
2001-03-31 02:06:24 +00:00
H.J. Lu
5fba830057
2001-03-30 H.J. Lu <hjl@gnu.org>
...
* gas/i386/relax.d: Dump with -s instead of -drw.
2001-03-30 17:52:10 +00:00
Alan Modra
1a5447b835
Pass finalize_syms on calls to resolve_symbol_value.
2001-03-30 07:07:11 +00:00
Alan Modra
0529cb8781
Missing ChangeLog for dwarf2dbg.c warning fixes.
2001-03-30 02:39:18 +00:00
Alan Modra
e46d99eb07
Multi-pass relaxation machinery.
2001-03-30 02:19:36 +00:00
H.J. Lu
0068722893
2001-03-29 H.J. Lu <hjl@gnu.org>
...
* gas/i386/relax.s: New test for relaxation between sections.
* gas/i386/relax.d: New.
* gas/i386/i386.exp: Add tests for ELF.
2001-03-30 01:20:41 +00:00
Alan Modra
93c2a809af
Prepare for multi-pass relaxation.
2001-03-30 00:06:10 +00:00
Hans-Peter Nilsson
23ec5d0312
Clarify ChangeLog entry
2001-03-29 02:32:52 +00:00
Hans-Peter Nilsson
d551a338e2
* config/tc-cris.h (tc_fix_adjustable): Allow only
...
BFD_RELOC_CRIS_32_GOTREL of the PIC relocs.
* config/tc-cris.c (cris_get_pic_suffix): Correct reloc used in
example to valid.
2001-03-29 02:29:38 +00:00
H.J. Lu
440ecb3800
2001-03-28 H.J. Lu <hjl@gnu.org>
...
* read.c (equals): Set to local for COFF only if it hasn't been
defined before.
2001-03-28 17:24:01 +00:00
Alan Modra
8a238888b4
Default hppa64 to ".level 2.0w"
2001-03-28 14:13:46 +00:00
Nick Clifton
d5c4095a98
Allow for the possibility that the local labels won't be in the objdump output.
2001-03-27 19:33:52 +00:00
Nick Clifton
775cf89163
(for COFF) default symbols to being local.
2001-03-27 19:13:55 +00:00
Ben Elliston
bc64be0c37
* as.texinfo (Fill): Replace "result" with "repeat".
2001-03-27 04:51:28 +00:00
Hans-Peter Nilsson
f9c191122c
* configure.in (cris-*-*): Change default emulation to criself.
...
(cris-*-*aout*): New rule.
* configure: Regenerate.
2001-03-27 02:48:19 +00:00
Chris Demetriou
10a5181444
2001-03-26 Chris Demetriou <cgd@broadcom.com>
...
* gas/mips/sync.s: Declare 'foo' as a function so that this
test will work on properly on ECOFF targets.
2001-03-26 19:47:47 +00:00
Nick Clifton
07855becf9
Do not optimize BFD_RELOC_390_GOTENT relocs.
...
Always generate relocs for VT_ relocs.
2001-03-26 19:38:33 +00:00
Nick Clifton
0285c67df1
Automate generate on man pages
2001-03-25 20:32:31 +00:00
Alan Modra
551c1ca176
Accept an absolute expression for index scale factor.
2001-03-25 05:57:09 +00:00
Alan Modra
0f17484fd3
Small tweaks to sse2 instructions.
2001-03-24 06:29:16 +00:00
Nick Clifton
c3a27914b8
Document --listing-XXX command line switches.
...
Explain why listings behave differently when -pipe is used.
2001-03-23 19:35:02 +00:00
Nick Clifton
37006e4391
fix_new_exp: Print an error if passed a register.
2001-03-23 18:15:49 +00:00
Hans-Peter Nilsson
5ef6758f8a
* gas/cris/pic-err-1.s, gas/cris/rd-pic-1.s, gas/cris/rd-pic-1.d:
...
New tests.
2001-03-23 05:58:38 +00:00
Hans-Peter Nilsson
7704145c73
* gas/cris/branch-warn-1.s, gas/cris/branch-warn-2.s,
...
gas/cris/branch-warn-3.s: Tweak for fixed FIXME:s.
2001-03-23 05:39:38 +00:00
Hans-Peter Nilsson
08caf3f870
* config/tc-cris.[ch]: Tweak attribution. Fix typos. PIC support.
2001-03-23 05:27:42 +00:00
Alan Modra
38686296b3
Use `relax_marker' instead of fragile address test code to determine
...
whether a frag's fr_address has been updated.
2001-03-20 03:12:01 +00:00
Alan Modra
bbe6d95f46
Don't try to read past end of info buffer, and correct test results.
2001-03-19 12:20:10 +00:00
Alan Modra
2e98d2de04
Fix register name printed in warning message.
2001-03-19 11:28:20 +00:00
Andreas Schwab
d394a3392e
* gas/m68k/pcrel.s: Force alignment to 8 byte boundary to get
...
consistent output across targets.
* gas/m68k/pcrel.d: Adjusted.
2001-03-19 10:02:07 +00:00
H.J. Lu
64cbbfaefe
2001-03-18 H.J. Lu <hjl@gnu.org>
...
* gas/i386/intel.s: Move PIC code to ...
* gas/i386/intelpic.s: New. Here.
* gas/i386/intel.d: Updated.
* gas/i386/intelpic.d: New.
* gas/i386/i386.exp: Check PIC code in Intel syntax for ELF
targets only.
2001-03-18 21:28:56 +00:00
Stephane Carrez
31abcf7d04
* gas/mri/mri.exp: Fix test of m6811/m6812 targets.
2001-03-18 10:18:24 +00:00
Stephane Carrez
e629c13fd6
* config/tc-m68hc11.c (md_pseudo_table): Recognize xrefb to comply
...
with 'Motorola specification for assembly language input standard'.
2001-03-18 10:14:13 +00:00
Richard Henderson
249e3833ac
* dwarf2dbg.c (user_filenum, user_filenum_allocated): Remove.
...
(dwarf2_directive_loc): Don't use them.
(dwarf2_directive_file): Reject duplicate file definitions.
(get_filenum): Zero allocated memory.
(out_file_list): Complain about missing file definitions.
2001-03-17 18:23:41 +00:00
Alan Modra
2289f85d24
Teach .org to handle complex expressions
2001-03-17 03:02:06 +00:00
Jim Wilson
4d5a53ff76
Add local tag support. Don't flush instructions for .xdata directives.
...
* config/tc-ia64.c (md): New member keep_pending_output.
(ia64_flush_pending_output): Flush only if md.keep_pending_output
is not set.
(dot_xdata): Turn on md.keep_pending_output for the duration of
this function.
(dot_xfloat_cons): Ditto.
(dot_xstringer): Ditto.
(dot_xdata_ua): Ditto.
(dot_xfloat_cons_ua): Ditto.
* config/tc-ia64.c (ia64_unrecognized_line, case '['): Add local
label support.
2001-03-16 04:56:31 +00:00
Alexandre Oliva
19c0258a7f
* config/tc-sh.c (parse_reg): Match capital MACH and MACL.
2001-03-16 02:11:05 +00:00
DJ Delorie
d68d457018
* stabs.c (s_stab_generic): Don't corrupt the notes obstack by
...
blindly freeing string if it isn't at the top of the obstack.
2001-03-15 19:30:32 +00:00
Alan Modra
4b694d15d1
Fix typos.
2001-03-13 04:42:16 +00:00
Alan Modra
f3c180aedc
Support for @GOTOFF in .long expressions.
2001-03-13 04:37:13 +00:00
Nick Clifton
83e7603d4f
Always set machine type based on cpu_variant.
2001-03-12 23:37:39 +00:00
Nick Clifton
f7e42eb4af
Fix copyright notices
2001-03-08 23:24:26 +00:00
Nick Clifton
291847749a
Fix typos
2001-03-08 23:06:04 +00:00
Alan Modra
1ae12ab72a
* config/tc-i386.c (struct _i386_insn): Rename disp_reloc to reloc.
...
(md_assemble [smallest displacement]): Use correct field of i.op[] union.
(md_assemble [JumpInterSegment output]): Use correct i.disp_reloc[].
(md_assemble [immediate output]): Likewise.
2001-03-07 02:52:26 +00:00
Nick Clifton
4f3c3dbb37
Fix BLX(1) for Thumb
2001-03-06 22:33:47 +00:00
Nick Clifton
dc84e067cd
Rest of the changes for Coldfire V4
2001-03-06 20:12:21 +00:00
Dave Brolley
a8150a8817
2001-03-02 Dave Brolley <brolley@redhat.com>
...
* config/tc-m32r.c (expand_debug_syms): Call frag_align_code rather than
m32r_do_align.
2001-03-02 22:50:36 +00:00
Nick Clifton
e103941e86
Print warnings if NaNs are found and the target CPU does not support them
2001-03-02 18:43:13 +00:00
Andreas Jaeger
7c44d1d360
2001-02-28 Andreas Jaeger <aj@suse.de>, Bo Thorsen <bo@suse.de>
...
* config/tc-i386.c (tc_gen_reloc): Remove ugly hack which is not needed
anymore since we use bfd_elf_generic_reloc now.
(md_apply_fix3): Only apply hack for partial_inplace if not using RELA.
2001-02-28 12:49:40 +00:00
Alan Modra
27b7e12d2d
Bump version to 2.11.90, fix missing dependencies in bfd/,
...
and run "make dep-am".
2001-02-27 06:43:56 +00:00
Nick Clifton
1af96959a1
Set SEC_NEVER_LOAD when the 'n' flag is used.
2001-02-27 01:56:26 +00:00
H.J. Lu
fa7cd6d20a
2001-02-26 H.J. Lu <hjl@gnu.org>
...
* gas/ia64/opc-a-err.l: Change "Operand [3|4]" to "Operand [34]".
2001-02-26 17:40:07 +00:00
Stephane Carrez
d95767bf85
* symbols.c (decode_local_label_name): Initialize message_format
...
only when an error is reported (perf pb due to I18N).
2001-02-24 09:57:24 +00:00
H.J. Lu
3737d05150
2001-02-23 H.J. Lu <hjl@gnu.org>
...
* dwarf2dbg.c (dwarf2_directive_file): Call s_app_file (0) if
BFD_ASSEMBLER is not defined.
2001-02-24 04:59:03 +00:00
H.J. Lu
d88ae36a6f
2001-02-23 H.J. Lu <hjl@gnu.org>
...
* gas/ia64/opc-a-err.l: Fix "cmp4.lt.or".
* gas/ia64/opc-a.pl: Add tests for pseudo-ops for "cmp" and
"cmp4".
* gas/ia64/opc-a.s: Rebuilt.
* gas/ia64/opc-a.d: Likewise.
2001-02-23 21:47:33 +00:00
Nick Clifton
b653e7f90a
Don't mark a fixup as done if it's against a symbol.
2001-02-23 18:32:51 +00:00
Timothy Wall
7463c317ad
Added ia64-*-aix* configuration.
2001-02-22 17:16:38 +00:00
Jim Wilson
87f8eb977e
Improve gas error messages for invalid instructions.
...
* cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
C8 said "1" instead of "8". Clarify error string for IMM22:
"signed integer" instead of just "integer".
* config/tc-ia64.c (enum operand_match_result): New type.
(operand_match): Change return type to operand_match_result.
Fix all returns appropriately, adding support for returning the
out-of-range result.
(parse_operands): New locals result, error_pos, out_of_range_pos,
curr_out_of_range_pos. Rewrite operand matching loop to give better
error messages.
* ia64-opc-d.c (ia64_opcodes_d): Break the "add" pattern into two
separate variants: one for IMM22 and the other for IMM14.
* ia64-asmtab.c: Regenerate.
2001-02-22 03:16:21 +00:00
Jim Wilson
33d01f331b
Fix bugs in handling of the .restore directive.
...
* config/tc-ia64.c (struct unwind): Add member "prologue_count".
(dot_proc): Clear unwind.prologue_count to zero.
(dot_prologue): Increment unwind.prologue_count.
(dot_restore): If second operand is omitted, use
unwind.prologue_count -1 for "ecount" (# of additional regions to
pop). Decrement unwind.prologue_count by number of regions
popped.
2001-02-21 22:39:59 +00:00
Nick Clifton
7e84d676af
Note that some flags to the COFF version of .section remove attributes rather
...
than setting them.
2001-02-21 19:43:36 +00:00
Kazu Hirata
0fde8cc636
Fix a typo.
2001-02-21 00:09:56 +00:00
Kazu Hirata
5cd4edbed2
2001-02-20 Kazu Hirata <kazu@hxi.com>
...
* tc-pdp11.c: Fix formatting.
* tc-pdp11.h: Likewise.
2001-02-21 00:04:47 +00:00
Andreas Jaeger
80b3ee89ae
2001-02-20 Bo Thorsen <bo@suse.de>
...
* config/tc-i386.c (tc_i386_fix_adjustable): Fix GOTPCREL GOT
entry.
2001-02-20 09:48:45 +00:00
David O'Brien
cac5b87b93
001-02-18 David O'Brien <obrien@FreeBSD.org>
...
* configure.in (cpu_type, arch): Add a generic FreeBSD specification as
all FreeBSD platforms should look the same at this level.
* configure: Rebuilt.
* config/tc-i386.c: Add support for old FreeBSD a.out hosts.
Approved by: Philip Blundell <philb@gnu.org>
Message-Id: <E14URxF-00023n-00@kings-cross.london.uk.eu.org>
2001-02-19 06:40:29 +00:00
Nick Clifton
e135f41bc2
Add PDP-11 support
2001-02-18 23:33:11 +00:00
Chris Demetriou
f14c687886
2001-02-17 Chris Demetriou <cgd@broadcom.com>
...
* gas/mips/mips32.d: Remove ELF dependencies. This test
wasn't meant to be ELF specific, and doesn't have to be.
* gas/mips/mips64.d: Likewise.
2001-02-18 01:57:20 +00:00
Chris Demetriou
2cd5676f03
2001-02-17 Chris Demetriou <cgd@broadcom.com>
...
* gas/mips/mips.exp: Don't attempt the elf_e_flags family of
tests if not ELF; they test ELF-specific features.
2001-02-18 01:52:11 +00:00
Matthew Green
363c574f51
2001-02-16 matthew green <mrg@redhat.com>
...
* gas/cgen.c (gas_cgen_md_apply_fix3): Support BFD_RELOC_64.
2001-02-16 12:29:39 +00:00
Jim Wilson
fa1cb89ccc
Address comment from Richard about relocs always needing a type.
...
* config/tc-ia64.c (operand_match, case TAG13): Make a BFD_RELOC_UNUSED
reloc instead of a 0 reloc.
(md_apply_fix3): Check for BFD_RELOC_UNUSED instead of 0, and mark it
as done.
* config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): Likewise.
2001-02-14 01:46:10 +00:00
Ian Lance Taylor
c842b53ae1
* write.c (is_dnrange): Stop as soon as the address becomes
...
larger.
(relax_frag): Add segment parameter. Only call symbol_get_frag
once. Only call is_dnrange if the symbol is in the same segment,
and the symbol address is larger.
(relax_segment): Pass segment to md_relax_frag and relax_frag.
* write.h (relax_frag): Update declaration.
* config/tc-fr30.c (fr30_relax_frag): Add segment parameter. Pass
it to relax_frag.
* config/tc-m32r.c (m32r_relax_frag): Likewise.
* config/tc-m32r.h (md_relax_frag): Add segment parameter.
(m32r_relax_frag): Update declaration.
* config/tc-mips.h (md_relax_frag): Add segment parameter.
* config/tc-tic54x.h (md_relax_frag): Likewise.
* doc/internals.texi (CPU backend): Update documentation for
md_relax_frag.
2001-02-13 21:27:52 +00:00
Alan Modra
fddf5b5bc2
Handle long jumps for .code16 and .arch < 386 by using a two
...
instruction sequence consisting of a conditional jump of the
opposite sense around an unconditional jump to the target.
Add jumps/nojumps .arch modifier.
2001-02-13 12:44:19 +00:00
Alan Modra
c90cedf93e
Update copyright date.
2001-02-13 11:17:48 +00:00
Alan Modra
6fad6acb13
Fix parsing of multi-char operators.
2001-02-13 11:13:53 +00:00
Jan Hubicka
23df107806
* elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
...
* tc-i386.c (i386_displacement): Fix handling of
BFD_RELOC_X86_64_GOTPCREL.
(i386_validate_fix): Likewise.
2001-02-12 16:47:15 +00:00
Phil Blundell
b1e2e654ad
2001-02-12 Philip Blundell <pb@futuretv.com>
...
* config/tc-arm.c (do_ldst): Improve warnings for unpredictable
ldrt/strt instructions.
2001-02-12 13:32:25 +00:00
Nick Clifton
708b82c780
fix formatting
2001-02-11 23:22:25 +00:00
Nick Clifton
9117d2197e
Apply several patches from Maciej W. Rozycki
2001-02-11 23:11:41 +00:00
Chris Demetriou
97238fbd09
2001-02-10 Chris Demetriou <cgd@broadcom.com>
...
* configure.in: Make 'mipself' and 'mipsecoff' emulations
map to MIPS-specific files, as they used to do before the
change on 2000-05-21.
* configure: Regerate.
2001-02-10 22:25:10 +00:00
Chris Demetriou
0f074f60a4
2001-02-10 Chris Demetriou <cgd@broadcom.com>
...
* config/tc-mips.c (md_parse_option): Don't try to compile
ELF-only option code if not ELF.
2001-02-10 21:41:12 +00:00
Richard Henderson
91a2ae2a30
* config/tc-ia64.h (md_elf_section_type): New macro.
...
(ELF_TC_SPECIAL_SECTIONS): Drop .IA_64.unwind and .IA_64.unwind_info
(they're now handled via ia64_elf_section_type.
* config/tc-ia64.c (unwind): New members saved_text_seg,
saved_text_subseg, and force_unwind_entry.
(optimize_unw_records): New function to optimize away unnecessary
unwind directives.
(ia64_elf_section_type): New function.
(output_unw_records): Generate unwind info only if the size is
non-zero or if it's forced for some other reason (e.g.,
handlerdata or a personality routine).
(generate_unwind_image): Don't switch back to previous
section---stay inside the unwind info section instead so that
handlerdata that may follow goes into the right place.
(dot_handlerdata): Force generation of unwind entry and save the
current active text segment before generating unwind image.
(dot_unwentry): Force generation of unwind entry.
(dot_personality): Ditto.
(dot_endp): Generate unwind table entry only if there is
some unwind info or the unwind entry was forced.
* config/tc-ia64.c (make_unw_section_name): New macro to form
unwind section name.
(generate_unwind_image): Add "text_name" argument. Use it to
form unwind section name.
(dot_handlerdata): Determine current segment (section) name and
pass it to generate_unwind_image().
(dot_endp): Determine current segment (section) name and use
it to determine the appropriate unwind section name.
(ia64_md_do_align): Add missing ATTRIBUTE_UNUSED declarations to
n, fill, and max arguments.
2001-02-10 01:42:04 +00:00
Nick Clifton
a85d7ed0f0
Add s390 support
2001-02-10 00:58:38 +00:00
Alexandre Oliva
de68de201f
* config/tc-sh.c (md_pseudo_table): Add uaquad. Use s_uacons for
...
2byte, 4byte and 8byte.
2001-02-09 18:21:42 +00:00
Stephane Carrez
98a797049b
* gas/mri/mri.exp: Don't execute the M68K specific tests
...
on m6811-elf and m6812-elf targets, still run the generic MRI tests.
2001-02-08 18:55:29 +00:00
Alan Modra
8ea46bbdec
(pa_build_unwind_subspace): Don't call
...
md_number_to_chars with size > sizeof (valueT).
2001-02-08 00:15:36 +00:00
H.J. Lu
a99746f4ee
2001-02-06 H.J. Lu <hjl@gnu.org>
...
* config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): Do fixup if
there is no relocation.
2001-02-07 01:04:58 +00:00
H.J. Lu
f4e17b3dc1
2001-02-06 H.J. Lu <hjl@gnu.org>
...
* config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): New. Defined.
* config/tc-ia64.c (md_parse_option): Only accept the valid
ia64 options on "-axxx".
2001-02-06 19:14:07 +00:00
H.J. Lu
85b40035dd
2001-02-06 H.J. Lu <hjl@gnu.org>
...
* config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): New. Defined.
* config/tc-ia64.c (md_parse_option): Only accept the valid
ia64 options on "-axxx".
2001-02-06 19:09:01 +00:00
Jim Wilson
3557da9209
Don't abort for invalid input, print an error message instead.
...
* config/tc-ia64.c (errata_nop_necessary_p): Return 0 instead of
aborting for invalid operands.
2001-02-06 03:49:29 +00:00
Alan Modra
da6c73e080
Fix unwind info when cross-compiling from little-endian machines.
2001-02-06 02:52:09 +00:00
Stephane Carrez
986c6f4ba0
* config/tc-m68hc11.h (LISTING_HEADER): Use m68hc11_listing_header
...
function to select the header according to the cpu.
(md_after_pass_hook, md_do_align): Remove.
(md_cleanup, m68hc11_cleanup): Remove.
(md_pcrel_from_section): Declare.
* config/tc-m68hc11.c (build_dbranch_insn): Remove insn_size.
(build_jump_insn, build_insn): Likewise.
(m68hc11_listing_header): New function.
(m68hc11_cleanup): Remove.
2001-02-04 13:58:30 +00:00
Stephane Carrez
4f69f9744a
* gas/m68hc11/malis.s: New test to verify compliance with Motorola
...
Assembly Language Input Standard.
* gas/m68hc11/malis.d: New file.
* gas/m68hc11/malis-include.s: New file.
* gas/m68hc11/all.exp: Add the new test.
2001-02-04 13:53:49 +00:00
Stephane Carrez
328dc123cc
Fix 2001-02-02 Stephane Carrez ChangeLog entry
2001-02-02 14:16:53 +00:00
Stephane Carrez
dbb8ad4917
* tc-m68hc11.c (relaxable_symbol): Relax externally visible symbols
...
because there is no support for shared libraries and these symbols
can't be overridden (unless they are weak).
2001-02-02 14:14:11 +00:00
Richard Henderson
a987bfc987
* dwarf2dbg.c (out_debug_abbrev): Terminate the abbreviations
...
for the compilation unit with a zero byte.
2001-02-01 18:08:47 +00:00
Alan Modra
22862cde86
Fix a null-pointer dereference and some range checks.
2001-01-30 13:13:29 +00:00
Nick Clifton
8ec6253e76
Do not abort if tcbit is still set. Issue an error message instead.
...
Fix compile time warnings
2001-01-25 20:26:17 +00:00
Kazu Hirata
43ad3147a9
2001-01-23 Kazu Hirata <kazu@hxi.com>
...
* as.c: Fix formatting.
* ehopt.c: Likewise.
* messages.c: Likewise.
* stabs.c: Likewise.
* symbols.c: Likewise.
2001-01-23 22:15:01 +00:00
Alan Modra
015c05c1d0
(m32r_handle_align): Declare type of fragp.
2001-01-23 13:31:10 +00:00
Kazu Hirata
664984174e
2001-01-22 Kazu Hirata <kazu@hxi.com>
...
* config/tc-alpha.c: Fix formatting.
2001-01-22 20:24:11 +00:00
Kazu Hirata
1aad8cf8bb
2001-01-19 Kazu Hirata <kazu@hxi.com>
...
* config/tc-alpha.c: Fix formatting.
2001-01-20 04:23:33 +00:00
Kazu Hirata
32ff5c2e6d
2001-01-18 Kazu Hirata <kazu@hxi.com>
...
* config/tc-alpha.c: Fix formatting.
2001-01-19 12:03:34 +00:00
Nick Clifton
cd17328aad
Remove redundant bit from "fa" and "da" flags
2001-01-19 04:35:29 +00:00
Alexandre Oliva
81c425d115
* configure.in (cpu_type, arch): Match i386 too.
...
* configure: Rebuilt.
2001-01-18 12:25:37 +00:00
Kazu Hirata
e5cb08ac57
2001-01-16 Kazu Hirata <kazu@hxi.com>
...
* config/tc-i386.c: Fix formatting.
2001-01-17 23:41:35 +00:00
Alan Modra
64afeba389
Support hand-crafted .PARISC.unwind entries
2001-01-16 13:52:16 +00:00
Alan Modra
1d3d5051d1
Build unwind info for more than just .text section.
2001-01-16 13:06:14 +00:00
Jim Wilson
b44b1b85f3
Fix assembler segfault on gcc/crtstuff.c file.
...
* config/tc-ia64.c (ia64_flush_insns): Handle unwind directives
not immediately followed by an instruction.
2001-01-15 23:30:38 +00:00
Kazu Hirata
098f2ec3f5
2001-01-15 Kazu Hirata <kazu@hxi.com>
...
* config/tc-m68hc11.c: Fix formatting.
2001-01-15 23:09:52 +00:00
Nick Clifton
d4887adcdb
Delete output file upon fatal errors.
...
Treat multiple defintions of the same symbol as ordinary errors, not fatal ones
2001-01-15 22:53:58 +00:00
Alan Modra
fcfd491608
Missed this in last commit "Linux target variants for elfxx-hppa."
2001-01-15 02:36:21 +00:00
Kazu Hirata
19203624a6
2001-01-14 Kazu Hirata <kazu@hxi.com>
...
* config/tc-arc.c: Fix formatting.
2001-01-15 01:37:20 +00:00
Kazu Hirata
1e07b820d1
2001-01-14 Kazu Hirata <kazu@hxi.com>
...
* config/tc-arc.c: Fix formatting.
2001-01-14 20:36:41 +00:00
Kazu Hirata
bfb32b5207
2001-01-14 Kazu Hirata <kazu@hxi.com>
...
* config/tc-alpha.c: Fix formatting.
* config/tc-arc.c: Likewise.
* config/tc-arc.h: Likewise.
* config/tc-d10v.c: Likewise.
* config/tc-i370.c: Likewise.
* config/tc-i386.c: Likewise.
* config/tc-i960.c: Likewise.
* config/tc-m68k.c: Likewise.
* config/tc-ppc.c: Likewise.
* config/tc-sparc.c: Likewise.
* config/tc-tahoe.c: Likewise.
* config/tc-vax.c: Likewise.
2001-01-14 18:54:06 +00:00
Alan Modra
c46b75158b
Use SEGREL32 relocs for elf32-hppa unwind.
2001-01-14 07:03:49 +00:00
Alan Modra
1328dc9844
Adds assembly and dis-assembly support for the HPPA wide
...
mode, 16 bit forms of ldi, ldo, ldw and stw instructions.
2001-01-14 05:14:45 +00:00
Jan Hubicka
b9d79e0379
* tc-i386.h (TARGET_MACH): New macro.
...
(i386_mach): Declare.
* tc-i386.c (i386_mach): New function.
2001-01-13 23:37:57 +00:00
Phil Blundell
a349d9ddbc
2001-01-13 Philip Blundell <philb@gnu.org>
...
* doc/as.texinfo: Fix spelling and cross-references.
* doc/c-arm.texi: Fix typos. Say that `;' is a line separator
character for all systems, not just GNU/Linux. Make it explicit
that `-k' doesn't affect code generation, just ELF flags.
2001-01-13 22:39:55 +00:00
Nick Clifton
05df362ef6
Formatting fix
2001-01-13 19:43:35 +00:00
Jan Hubicka
e2914f484e
* i386.c (md_assemble): Check cpu_flags even for nullary instructions.
...
* i386.h (i386_optab): Fix pusha and ret templates.
* i386-dis.c (dis386_att, disx86_64_att): Fix ret, lret and iret
templates.
2001-01-13 09:05:55 +00:00
Frank Ch. Eigler
272d76e0cb
* gas/cgen feature
...
2001-01-12 Frank Ch. Eigler <fche@redhat.com>
* cgen.c (gas_cgen_finish_insn): Call dwarf2_emit_insn.
2001-01-12 23:34:43 +00:00
Nick Clifton
d0398d6ac6
Update copyright date to 2001
2001-01-12 18:01:56 +00:00
Nick Clifton
2d73a4ca03
Add missing ARC documentation
2001-01-12 17:50:59 +00:00
Alan Modra
6e0b89ee6c
Cure recent x86 warts.
2001-01-12 03:34:49 +00:00
Nick Clifton
0d2bcfafbf
Updated ARC assembler from arccores.com
2001-01-11 21:20:20 +00:00
Stephane Carrez
8805103910
Fix gas 68HC12 indexed addressing code generation
2001-01-11 20:19:17 +00:00
Stephane Carrez
68a581b811
Dwarf2 test for 68HC11/68HC12 gas
2001-01-11 19:48:41 +00:00
Stephane Carrez
d8273f3bf3
Fix weak symbols for 68HC11 as
2001-01-11 19:42:47 +00:00
Nick Clifton
2f6d2f8520
Rotate ChangeLogs
2001-01-11 19:01:42 +00:00
Nick Clifton
3f53569383
Make COFF and ELF disassemblys agree
2001-01-11 18:42:58 +00:00