Diego Novillo
fa2255cb6b
* tc-i386.c (md_assemble): Skip suffix check if the opcode modifier
...
has the IgnoreSize bit set.
2000-08-14 21:12:47 +00:00
Kazu Hirata
47926f603c
2000-08-05 Kazu Hirata <kazu@hxi.com>
...
* config/tc-cris.c: Fix formatting.
* config/tc-i386.c: Likewise.
* config/tc-sparc.c (sparc_ip): Simplify the code.
2000-08-04 18:43:45 +00:00
DJ Delorie
6d249963bc
386.c (md_estimate_size_before_relax): Revert
...
more changes from Sept 1999
(tc_i386_fix_adjustable): ditto
(md_apply_fix3): ditto
2000-06-25 01:33:31 +00:00
Alan Modra
45288df104
Fix a problem with 32-bit displacements in .code16gcc mode.
2000-06-22 10:49:13 +00:00
DJ Delorie
78295804c3
* config/tc-i386.c (tc_i386_fix_adjustable): Revert change from
...
Sept 1999; RVA relocs need to be treated more like DIR32 relocs
for cygwin import libraries to work properly.
2000-06-21 02:18:17 +00:00
Nick Clifton
60bcf0fa8c
Applied Stephane Carrez <Stephane.Carrez@worldnet.fr> patches to add support
...
for m68hc11 and m68hc12 processors.
2000-06-19 01:22:44 +00:00
Alan Modra
63a0b638d4
Don't treat `;' as a line separator by default.
...
Explicitly mention `;' in line_separator_chars in each backend.
2000-06-09 00:00:04 +00:00
Alan Modra
65172ab8f7
Update md_shortopts to what we actually handle.
2000-06-03 13:06:33 +00:00
Alan Modra
ee7fcc42b1
Pass jump reloc in fr_var so it can be used in
...
md_estimate_size_before_relax, replacing old kludge.
2000-05-23 04:48:21 +00:00
Alan Modra
b98ef14717
Keep a reloc for jumps to weak and external symbols.
2000-05-22 11:38:43 +00:00
Alan Modra
a38cf1db3a
Add x86 gas -q option to quiet some x86 gas warnings.
...
Remove useless -m flag_do_long_jump from x86 gas.
If BFD_ASSEMBLER, store --defsym value in a bfd_vma, and use scan_bfd_vma.
2000-05-13 12:49:55 +00:00
Alan Modra
e413e4e996
`.arch cpu_type' pseudo for x86.
2000-05-13 09:26:23 +00:00
Alan Modra
d9b7d82070
Remove '/' from comment_chars for FreeBSD so divide operator works.
...
Fix as.1 typo.
2000-04-25 22:55:20 +00:00
Alan Modra
3b0ec529f2
Keep shift count smaller than 32.
2000-04-25 08:55:01 +00:00
H.J. Lu
508866be8a
2000-04-18 H.J. Lu (hjl@gnu.org)
...
* config/tc-i386.c (offset_in_range): Use addressT instead of
bfd_vma for none bfd assemblers.
2000-04-18 17:46:31 +00:00
Alan Modra
ba2adb9390
64 bit bfd fix.
2000-04-17 03:18:36 +00:00
Alan Modra
847f7ad471
Fix 64-bit nits.
2000-04-10 12:36:06 +00:00
Alan Modra
726c5dcddf
Correct 2000-02-26 change.
2000-04-03 11:19:51 +00:00
Alan Modra
d0b4722035
Mostly cosmetic. Fixes to comments. Don't start as_bad and as_warn
...
messages with capital. Don't malign Unixware, malign SysV386 instead.
2000-03-26 14:13:02 +00:00
Alan Modra
773f551c1d
Catch some more cases where we can represent a 16 bit immediate operand as
...
8 bit sign extended.
2000-02-26 04:00:13 +00:00
Alan Modra
cc5ca5ce51
Extend the i386 gas testsuite to do some tests for intel_syntax. Fix all
...
the errors exposed by this addition. These were intel mode
"fi... word ptr", "fi... dword ptr", "jmp Imm seg, Imm offset", "out dx,al".
The failure with intel "out dx,al" was also present in att "out al,dx".
Extend testsuite to catch this case too.
2000-02-25 11:41:12 +00:00
Alan Modra
36bf8ab9fb
Yet more .intel_syntax fixes.
2000-02-24 15:26:57 +00:00
Alan Modra
7f3f1ea2a1
Correct intel_syntax fsub* and fdiv* handling. Oh, how I'd like to be rid
...
of UNIXWARE_COMPAT.
2000-02-24 12:40:45 +00:00
Alan Modra
520dc8e893
config/tc-i386.c (struct _i386_insn): Combine disps, imms, regs into
...
a union. Use throughout file. Delete TC_RELOC macro.
2000-02-24 08:18:20 +00:00
Richard Henderson
7e0527420a
* config/tc-i386.c (md_assemble): When swapping operands for
...
intel_syntax, assume everything that's not Imm or Disp is a
register.
2000-02-24 00:43:29 +00:00
Alan Modra
f6af82bd44
This lot mainly cleans up `comparison between signed and unsigned' gcc
...
warnings. One usused var, and a macro parenthesis fix too. Also check
input sections are elf when doing gc in elflink.h.
2000-02-21 12:01:27 +00:00
Alan Modra
4c63da97a7
This set of patches add support for aout emulation on the x86
...
assembler. ie. You will be able to do "as --em=i386aout" on an x86
linux-elf assembler to generate aout format object files, rather than
using a separate assembler. The aout emulation is enabled by giving
"--enable-targets=i386-linuxaout" to configure.
Oh yeah, there's a couple of fixes too. Error messages shouldn't be
passed to printf in the format arg just in case someone puts a `%' in
the message.
2000-01-26 22:48:31 +00:00
Alan Modra
add0c67765
Cosmetic changes to tc-i386.[ch] + extend x86 gas testsuite jmp and
...
call tests + tweak intel mode far call and jmp.
2000-01-15 12:06:03 +00:00
Alan Modra
3138f287b1
x86 indirect jump/call syntax fixes. Disassembly fix for lcall.
1999-12-27 16:10:31 +00:00
Alan Modra
2daf4fd896
* config/tc-i386.c (i386_immediate): Disallow O_big immediates.
...
(i386_displacement): Disallow O_big displacements.
1999-11-16 12:27:25 +00:00
Alan Modra
c388dee89b
Nit fix.
1999-10-12 11:07:34 +00:00
Ian Lance Taylor
4cc782b591
1999-09-19 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
...
* config/tc-i386.c (md_shortopts): Check OBJ_MAYBE_ELF as well as
OBJ_ELF. If ELF, add "sq".
(md_parse_option): If ELF, ignore -s and -q.
(md_show_usage): Mention ELF options.
1999-09-19 23:03:56 +00:00
Alan Modra
2f66722d55
Hackery to handle ix86 "jmp constant" as a pc-relative jump to the given
...
absolute address.
1999-09-13 06:45:15 +00:00
Alan Modra
a217f122fa
Tidy jump handling code and comments.
1999-09-13 03:44:49 +00:00
Ian Lance Taylor
d33e1d248c
1999-09-11 Donn Terry <donn@interix.com>
...
* config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
BFD_RELOC_RVA relocations.
1999-09-12 05:09:50 +00:00
Ian Lance Taylor
c0c949c786
* config/tc-i386.c (md_apply_fix3): Add horrible adjustments to
...
the value if TE_PE and a global defined symbol.
1999-09-12 05:06:09 +00:00
Ian Lance Taylor
18dc2407f4
1999-09-11 Donn Terry <donn@interix.com>
...
* config/tc-i386.c (md_undefined_symbol): Compare the name against
the macro GLOBAL_OFFSET_TABLE_NAME, rather than assuming that it
starts with "_G".
1999-09-12 03:50:42 +00:00
Ian Lance Taylor
79d292aaa2
1999-09-11 Donn Terry <donn@interix.com>
...
* config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
relocations against global symbols if TE_PE.
1999-09-12 03:18:54 +00:00
Ian Lance Taylor
0723899b7e
comment change
1999-09-12 02:27:31 +00:00
Ian Lance Taylor
2ab9b79ef9
1999-09-11 Donn Terry <donn@interix.com>
...
* config/atof-ieee.c (atof_ieee): Change what_kind to int.
* config/atof-vax.c (flonum_gen2vax): Change format_letter to
int.
(md_atof): Return NULL rather than 0.
* config/tc-i386.c (md_atof): Change type to int.
1999-09-12 02:12:38 +00:00
Alan Modra
af6bdddf8c
i386 gas code cleanups: combine i386_is_reg and parse_register.
1999-08-30 13:12:54 +00:00
Alan Modra
5f47d35be1
Allow spaces in i386 FP reg names, eg. %st ( 1 ).
1999-08-29 23:44:27 +00:00
Alan Modra
b23bac3600
*gas/config/tc-i386.c: Fix errors in displacement size when
...
automatically inferring an address prefex.
1999-08-20 11:59:19 +00:00
Alan Modra
bf6d389561
config/tc-i386.c: Remove dead code
1999-08-11 14:10:07 +00:00
Alan Modra
eecb386cd7
Support for gcc to generate 16-bit i386 code. (.code16gcc)
1999-08-04 10:07:41 +00:00
Ian Lance Taylor
a04b544b56
* config/obj-coff.c (coff_frob_symbol): Always update set_end with
...
next_set_end even if the end symbol is being discarded.
* gasp.c: Add ATTRIBUTE_UNUSED as needed for non-BFD_ASSEMBLER.
* output-file.c, symbols.c, config/tc-i386.c: Likewise.
* config/obj-coff.c: Likewise.
(seg_info_type): Remove.
(seg_info_off_by_4): Change to array of segT.
(s_get_segment): Adjust accordingly.
(obj_pseudo_table): Fully initialize sentinel entry.
1999-08-03 15:29:04 +00:00
Alan Modra
24eab124bd
Rationalize some of the i386 intel mode code.
...
Indentation and white space changes.
1999-08-03 14:30:05 +00:00
Alan Modra
c3332e24e8
* config/tc-i386.c: Add INFER_ADDR_PREFIX code. Fix 16 bit mode nop.
1999-08-03 05:47:26 +00:00
Alan Modra
b77ad1d4c9
Fix an overflow checking bug uncovered when a 32 bit target is compiled
...
with a 64 bit bfd.
1999-07-28 23:19:26 +00:00
Alan Modra
b4cac588ae
* gas/config/tc-i386.c: Fix for immediates and displacements in 16-bit
...
mode when no insn suffix present, eg. push $0x12345678. Fix some
compiler warnings. Disallow immediate jump absolute.
1999-07-16 11:09:15 +00:00