Commit Graph

3216 Commits

Author SHA1 Message Date
Ian Lance Taylor
76fb6d2f2f * config/tc-i386.c (tc_i386_fix_adjustable): Change ifndef
OBJ_AOUT to ifdef OBJ_ELF.
	(md_apply_fix3): When mangling 32 bit PC relative reloc for
	BFD_ASSEMBLER, handle one ELF case for COFF as well, and add a PE
	case.
	* write.c (fixup_segment): Change special case for i386-coff to
 	not apply for i386-pe.
	* config/obj-coff.c (coff_adjust_section_syms): Only count fixups
	which were not done.
	(coff_frob_file_after_relocs): Rename from coff_frob_file.
	(coff_format_ops): Initialize frob_file_after_relocs field rather
	than frob_file field.
	* config/obj-coff.h (coff_frob_file): Don't declare.
	(coff_frob_file_after_relocs): Declare.
	(obj_frob_file): Don't define.
	(obj_frob_file_after_relocs): Define.
	* configure.in: Set bfd_gas to yes for i386-*-cygwin32.
	* configure: Rebuild.
1997-07-08 02:57:50 +00:00
Ian Lance Taylor
b709b16fdc * config/obj-coff.c (fixup_segment): Never subtract section
address from PC relative reloc which will be fully resolved.
1997-07-02 16:05:55 +00:00
Jeff Law
db3152efa0 * ecoff.c (page_type): Renamed from page_t to avoid conflict
with hpux10 header files.
1997-07-01 21:22:38 +00:00
Ian Lance Taylor
b73fcae86e From Jason Merrill <jason@cygnus.com>:
* read.c (do_align): If BFD_ASSEMBLER, only use NOP_OPCODE if
	SEC_CODE is set.
	* config/tc-i386.h (md_maybe_text): Define.
	(md_do_align): Use md_maybe_text.
1997-06-30 16:38:17 +00:00
Michael Meissner
d006e43527 Remove brokeness in PowerPC asm 1997-06-27 23:19:15 +00:00
Ian Lance Taylor
24a3e62262 Mon Jun 16 19:12:51 1997 Geoff Keating <geoffk@ozemail.com.au>
* config/tc-ppc.h (tc_fix_adjustable): Don't let the assembler
	calculate relocations to any external symbol, because we might be
	linking a shared object and the symbol might be overriden or moved
	(for instance, moved into a static executable's .bss section).
	(GLOBAL_OFFSET_TABLE_NAME): Delete. This is an i386 wierdness.

	* config/tc-ppc.h (tc_fix_adjustable): GOT-based relocations can't
	be calculated by the assembler.

	* config/tc-ppc.c (md_apply_fix3): Handle @plt or @local branch
	whose destination lies in the same file, by ignoring the @plt or
	@local and aiming the branch at its destination.
1997-06-16 23:17:22 +00:00
Ian Lance Taylor
3a0358617e * config/tc-ppc.c (ppc_insert_operand): In 32 bit mode, with a
signed operand, sign extend a 32 bit value to the host size.
Permits dubious usage like
	addi  %r6,%r6,0xfffffeff
to assemble on a 64 bit host as it does on a 32 bit host.
1997-06-16 20:09:35 +00:00
Ian Lance Taylor
e2e4466adb * Makefile.in (CFLAGS): Subsitute from configure script. From
Jeff Makey <jeff@cts.com>.
1997-06-16 19:47:53 +00:00
Ian Lance Taylor
b04d9d8a19 * gas/m68k/pcrel.d: Update for m68k disassembler changes.
* gas/m68k/operands.d: Likewise.
1997-06-16 18:34:35 +00:00
Ian Lance Taylor
b0447a0e80 Mon Jun 16 13:59:18 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
* symbols.c (copy_symbol_attributes): Copy BSF_OBJECT flag.
	* config/obj-elf.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Copy size
	expression.

	* config/obj-multi.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Define instead
	of obj_copy_symbol_attributes.
1997-06-16 18:00:10 +00:00
Ian Lance Taylor
a52f90a4c8 * config/tc-i386.c (i386_operand): Use alloca rather than a fixed
buffer size to make a copy of the symbol.
1997-06-16 17:31:46 +00:00
Ian Lance Taylor
be2c18bd85 * Makefile.in (OBJS): Put @extra_objects@ on the same line as
macro.o.
1997-06-16 16:48:01 +00:00
Ian Lance Taylor
7799bb2c27 * write.c (write_object_file): In non BFD_ASSEMBLER code, as we
step through the frags calling cvt_frag_to_fill, switch to
	SEG_DATA when we reach data_frag_root.
PR 12580.
1997-06-12 16:17:53 +00:00
Jeff Law
43ee18a06d * config/tc-mn10300.c (md_assemble): Allow an empty register
list for instructions which use register lists.
1997-06-10 23:12:45 +00:00
Ian Lance Taylor
d2e5779b91 Tue Jun 10 11:18:09 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
* config/tc-arm.c (md_apply_fix3): Make temp unsigned long.
1997-06-10 15:25:05 +00:00
Ian Lance Taylor
7436e4de5a Tue Jun 10 11:18:09 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
* config/tc-arm.c (arm_adjust_symtab): Only set storage classes if
	OBJ_COFF.
1997-06-10 15:21:36 +00:00
Ian Lance Taylor
ccc30467a6 Tue Jun 10 11:18:09 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
* config/tc-arm.c: Add prototypes for many static functions.
	(struct asm_opcode ): Add prototypes for parms field.
	(struct thumb_opcode ): Likewise.
	(fp_op2): Remove unused flags parameter.
	(output_inst): Make static.
	(arm_after_pass_hook): Remove unused ignore parameter.
	* config/tc-arm.h (arm_after_pass_hook): Declare.
	(arm_start_line_hook): Declare.
	(arm_frob_label): Declare.
1997-06-10 15:20:05 +00:00
Ian Lance Taylor
4b4c1e0fb4 * config/tc-sh.c (md_apply_fix): Check for overflow.
PR 12530.
1997-06-09 18:05:46 +00:00
Ian Lance Taylor
170cdf75e7 Mon Jun 9 12:55:45 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
* depend.c (wrap_output): new prototype.
1997-06-09 16:56:41 +00:00
Ian Lance Taylor
af438bdb10 * config/tc-m68k.c (md_section_align): If a.out and BFD, force
section size to be aligned.
1997-06-09 16:53:45 +00:00
Ian Lance Taylor
7257418129 * config/tc-sh.h (md_cons_align): Define.
(sh_cons_align): Declare.
	* config/tc-sh.c (md_pseudo_table): Add .uaword and .ualong.
	(sh_no_align_cons): New static variable.
	(s_uacons): New static function.
	(sh_cons_align): New function.
	(sh_handle_align): Warn about misaligned data.
	* doc/c-sh.texi: Document .uaword and .ualong.
PR 12528.
1997-06-06 21:17:46 +00:00
Nick Clifton
48e509bf2c Merged in changes made in armT-970328-branch 1997-06-04 00:07:07 +00:00
Nick Clifton
f8a2144336 Merged in the changes from the armT-970328-branch. 1997-06-03 23:25:43 +00:00
Nick Clifton
d0badeab7c Added support for Thumb architecture from armT-970328-branch. 1997-06-03 23:15:49 +00:00
Ian Lance Taylor
902f651590 add c-arm.texi 1997-06-03 15:35:47 +00:00
Nick Clifton
3357a5ab61 Added an enable of the ARM documentation. 1997-06-02 23:43:17 +00:00
Nick Clifton
2903fb6e85 Added ARM documentation from armT-970328-branch 1997-06-02 23:28:16 +00:00
Gavin Romig-Koch
753d2b3eb6 End the tests with no-ops. 1997-06-02 16:04:54 +00:00
Gavin Romig-Koch
5c6f5923c7 Add r3900 support. 1997-06-02 15:56:00 +00:00
Gavin Romig-Koch
2865e9a89c Improve messages from regexp_diff 1997-06-02 15:49:26 +00:00
Ian Lance Taylor
dccd4d2cf1 Thu May 29 12:58:26 1997 Ben Pfaff <pfaffben@pilot.msu.edu>
* as.c: (parse_args) `-t' option requires an argument.
1997-05-29 16:59:46 +00:00
Ian Lance Taylor
1d6f438f49 * Makefile.in: Rebuild dependencies. 1997-05-28 21:58:27 +00:00
Ian Lance Taylor
5ac3db53bb * config/tc-i386.c (tc_gen_reloc): Don't try to convert the type
of a BFD_RELOC_RVA reloc.
1997-05-28 20:17:55 +00:00
Jeff Law
f22950b920 * config/tc-hppa.c (tc_fix_adjustable): Reject absolute calls/jumps.
(hppa_force_relocation): Force a relocation for an absolute
        call/jump.
part of gcc/12343.
1997-05-28 16:48:32 +00:00
Ian Lance Taylor
1079e76c45 * doc/as.texinfo: Don't use @value in section names or index
entries; it confuses texinfo.tex.
1997-05-26 17:25:22 +00:00
Ian Lance Taylor
663282f0dd add depend.c 1997-05-23 20:15:59 +00:00
Tom Tromey
8a51eeafee * doc/as.texinfo: Updated for -MD option.
* Makefile.in (CFILES): Added depend.c.
        (OBJS): Added depend.o.
        * as.h (start_dependencies, register_dependency,
        print_dependencies): New declarations.
        * depend.c: New file.
        * as.c (parse_args): Added -MD option.
        (main): Call print_dependencies.
        (show_usage): Added help for -MD.
        * read.c (s_app_file): Call register_dependency.
        (s_include): Call register_dependency when file is found.
        (read_a_source_file): Call register_dependency.
1997-05-23 19:30:41 +00:00
Ian Lance Taylor
1a7a427ef1 * config/obj-coff.c (symbol_to_chars): If TE_PE, don't add the
section address to the symbol value.
1997-05-21 21:40:14 +00:00
Gavin Romig-Koch
e17449bcfd Move mips INSN_ISA subfield into new membership field. 1997-05-20 15:29:25 +00:00
Nick Clifton
de046e7c42 Fixed bug in previous delta. If no cpu type was specified on the command
line then the code used to default to setting an architecture of ARMv4T
rather than ARMv3M in the BFD library.  This has now been corrected.
1997-05-15 17:05:24 +00:00
Nick Clifton
46686c7839 Added support for storing ARM Procedure Calling Standard variant, and ARM
architecture variant in the BFD and COFF structures.  This goes towards
fixing PRs 11709 and 11326 and will integrate with future updates to LD and
GCC.
1997-05-14 17:00:43 +00:00
Jeff Law
2393a96689 * config/tc-mn10200.c (md_convert_frag): Prefix temporary
label name with ".".
        * config/tc-mn10300.c (md_convert_frag): Likewise.
1997-05-14 04:29:05 +00:00
Fred Fish
af942f1dc2 Fix thinko in previous change. 1997-05-13 19:00:57 +00:00
Ian Lance Taylor
cd05cc5e45 * config/tc-mips.c (set_at): Check for bignum.
(check_absolute_expr, macro, mips16_macro): Likewise.
PR 12296.
1997-05-13 18:46:47 +00:00
Fred Fish
7b02bacd3d * config/tc-tic80.c (md_apply_fix): Check PC relative relocations
for overflow/underflow, only insert lower 15 bits into instruction.
1997-05-13 17:55:41 +00:00
Ian Lance Taylor
98b4161aee Mon May 12 13:33:08 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
* config/tc-i386.c (pi): Check for RegMMX.
1997-05-12 20:23:57 +00:00
Ian Lance Taylor
ee42e25b0c * expr.c (expr): When subtracting values in the same frag,
subtract X_add_number rather than adding it.
1997-05-08 15:10:55 +00:00
Ian Lance Taylor
a7b2f95a49 Wed May 7 16:18:30 1997 Manfred Hollstein <manfred@s-direktnet.de>
* gas/m88k/init.{s,d}: New checks for proper padding of
	.init sections.
	* gas/m88k/m88.exp: Run them.

	* gas/m68k/t2.d: New file for check of presence of section
	symbols on the m68k-motorola-sysv.
	* gas/m68k/all.exp: Run t2 if [istarget m68*-motorola-sysv].
1997-05-07 20:45:30 +00:00
Ian Lance Taylor
ae79a20bb8 * gas/mips/lifloat.s: Update for recent changes to floating point
handling.
	* gas/mips/lif-empic.d, gas/mips/lif-svr4pic.d: Likewise.
	* gas/mips/lif-xgot.d, gas/mips/lifloat.d: Likewise.

	* gas/mips/mips.exp: Handle Irix 6 like Irix 5.
1997-05-07 20:14:19 +00:00
Ian Lance Taylor
662a6d9e11 * config/obj-coff.c (write_object_file): Just pass NULL to
md_do_align, not the address of a char holding NOP_OPCODE.
Fixes a problem with the m88k SVR3 .init section as used by gcc.
1997-05-07 19:46:25 +00:00