aboutsummaryrefslogtreecommitdiff
path: root/gas
AgeCommit message (Collapse)AuthorFilesLines
1993-08-19* tc-i386.h (NO_RELOC) [BFD_ASSEMBLER]: Define as BFD_RELOC_NONE.Ken Raeburn1-32/+43
(md_parse_option): New macro, converted from function. * tc-i386.c (md_parse_option): Function deleted. (comment_chars) [OBJ_ELF]: Include "/". (line_comment_chars) [OBJ_ELF || TE_I386AIX]: Don't include "/". (md_assemble): Cast 0xe9 to char explicitly, to avoid compiler warning. (md_assemble, md_estimate_size_before_relax, md_create_long_jump): Call reloc for fix_new type, or use correct enumerator, instead of always using NO_RELOC. (i386_operand): Change "ifndef I386COFF" to "ifdef OBJ_AOUT" for tests for valid section. (md_convert_frag) [BFD_ASSEMBLER]: Compensate for frag start address. (md_apply_fix_1) [BFD_ASSEMBLER]: For pc-relative reloc with symbol, compensate for location of reloc. (reloc, BFD_RELOC_32, BFD_RELOC_32_PCREL) [!BFD_ASSEMBLER]: Define to return zero.
1993-08-18remove rcs cruftDavid D. Zuhn1-51/+0
1993-08-18obj-elf, write, symbols, read changesKen Raeburn1-0/+24
1993-08-18Undef NO_RELOC before including aout/aout64.h.Ken Raeburn1-2/+48
(obj_elf_weak): New function. (obj_pseudo_table): Handle ".weak". (obj_elf_section): If section directive includes a string, ignore it for now. Accept "progbits" flag. (obj_elf_type): Accept `@' before flag name.
1993-08-18(potable): Treat "string" like "asciz".Ken Raeburn1-7/+8
1993-08-18updated to-do listKen Raeburn1-4/+23
1993-08-18 * config/tc-mips.c (append_insn): Don't swap branch instructionsIan Lance Taylor2-32/+148
if .set nobopt or .set volatile. (gp_reference): .lit8 and .lit4 are accessed via the GP register. (macro): Added cases M_LI_S, M_LI_SS. Fixed M_LI_D and M_LI_DD. (mips_ip): Added cases 'F', 'L', 'f', 'l' for floating point. * config/obj-ecoff.c: Renamed some variables to avoid shadow warnings.
1993-08-16use coffbfd for z8kDavid D. Zuhn1-0/+5
1993-08-12 * config/tc-mips.c (mips_ip): Suggested byIan Lance Taylor2-46/+96
davidj@ICSI.Berkeley.EDU (David Johnson): Don't accept symbolic names for 'E' and 'G' argument types (coprocessor registers) and don't warn if $1 is used on the coprocessor.
1993-08-09 * write.c (merge_data_into_text): Define only if BFD_ASSEMBLER isKen Raeburn1-0/+6
defined or BFD is not. (relax_and_size_all_segments): Declare local variable fragP.
1993-08-06changes to write.c, obj-elf.c, tc-sparc.cKen Raeburn1-0/+12
1993-08-06v9 changesKen Raeburn1-0/+6
1993-08-06 * configure.in (mips-*-riscos*, mips-*-sysv*): New (untested)Ian Lance Taylor1-0/+3
targets, using ecoff and mips-big.
1993-08-06(md_apply_fix): Fill in values for BFD_RELOC_{32,64}, not zeros.Ken Raeburn1-12/+15
(md_pseudo_table): Handle .uaxword.
1993-08-06 * config/tc-mips.c (mips_ip): From davidj@ICSI.Berkeley.EDU (DavidIan Lance Taylor1-0/+5
Johnson): Added case for 'C' for coprocessor instruction codes.
1993-08-05(write_object_file): Test DEBUG_SYMS instead of DEBUG for verifying sym chain.Ken Raeburn1-121/+131
(merge_data_into_text, relax_and_size_all_segments): New fns, split out from write_object_file.
1993-08-05read.c change; yesterdays elf/sparc changesKen Raeburn1-0/+22
1993-08-05(emit_expr): Use BFD_RELOC_64 fr 8-byte expressions.Ken Raeburn1-6/+14
1993-08-04v9 changesKen Raeburn1-0/+6
1993-08-04* obj-elf.c (obj_elf_stab_generic, in disabled code): IfKen Raeburn2-46/+131
debug section is new, allocate an extra 12 bytes at its start. If ".stabs" type is N_SO, fill in filename symbol field of that first entry. Return early if "goof", to simplify later code slightly. (adjust_stab_sections): New function. (elf_frob_file): Apply adjust_stab_sections to each section. * obj-elf.c (obj_elf_section, obj_elf_previous): No longer static. * obj-elf.h (obj_elf_section, obj_elf_previous): Declare. * tc-sparc.c (md_pseudo_table): Call them for "pushsection" and "popsection", and call cons for "uaword" and "uahalf". * obj-elf.c (obj_elf_version): Use English in error messages. * tc-sparc.c (md_apply_fix, case BFD_RELOC_64): New case, parallel to BFD_RELOC_32. (tc_gen_reloc): Accept BFD_RELOC_64.
1993-08-03 * config/obj-ecoff.c: Updated for BFD ECOFF changes. Now gets theIan Lance Taylor2-87/+110
swapping routines and external structure sizes via the ecoff_backend information. No longer includes coff/mips.h.
1993-08-02 * config/obj-ecoff.c (get_tag): Save tag name in permanent memoryIan Lance Taylor2-13/+41
and in hash_ptr->string.
1993-08-02 * app.c (do_scrub_next_char): Reset state to 0 after .appline ifIan Lance Taylor1-0/+9
file name is not seen.
1993-07-30keep ho-hppaosf.h; m88k.patches is goneKen Raeburn1-1/+1
1993-07-30 * write.c: Don't use short int in a prototype.Ian Lance Taylor1-1/+3
1993-07-30 * expr.c (operand): Make return value simply depend on contents ofIan Lance Taylor1-0/+5
returned expression.
1993-07-30fix ANSI decl conflictsDavid D. Zuhn2-4/+13
1993-07-28 * config/tc-m68k.c (m68k_ip): If we have a normal constant when weIan Lance Taylor1-0/+6
expect a bignum, turn it into a bignum. Output extra zeroes before a short bignum, rather than after.
1993-07-27symbols.c: Use DEBUG_SYMS instead of DEBUG.Ken Raeburn1-0/+7
1993-07-27mips_optimize is also affected by -g.Ian Lance Taylor1-2/+3
1993-07-27 * config/tc-mips.c (mips_optimize): New static variable.Ian Lance Taylor1-3/+49
(append_insn): If ! mips_optimize, don't swap branches. (md_parse_option): If -Ox, set mips_optimize accordingly.
1993-07-27 * config/tc-mips.c (mips_optimize): New static variable.Ian Lance Taylor1-0/+6
(append_insn): If ! mips_optimize, don't swap branches. (md_parse_option): If -Ox, set mips_optimize accordingly.
1993-07-27 * Makefile.in (clean): if testsuite does not exist, then skip it.K. Richard Pixley1-0/+14
1993-07-23Fix stupid bugs inserted during expression conversion.Ian Lance Taylor2-2/+4
1993-07-23obj-elf.c, tc-sparc.c, symbols.c changesKen Raeburn1-0/+13
1993-07-23 * write.c (fix_new_exp): Handle a O_uminus expression.Ian Lance Taylor1-0/+2
1993-07-23 * expr.c (expr): Don't let absolute_section overrideIan Lance Taylor1-0/+3
undefined_section for the return value.
1993-07-23 * read.c (read_a_source_file): In NO_PSEUDO_DOT case, if we find aIan Lance Taylor3-0/+10
pseudo-op with a poc_handler field of NULL, ignore it and treat it as an instruction instead. * config/tc-m88k.c (md_pseudo_table): Add "set" with a NULL poc_handler field.
1993-07-22 * config/tc-h8500.c (md_begin): Use a local variable whenIan Lance Taylor2-31/+40
initializing md_relax_table to avoid warnings about modifying a supposedly const data structure.
1993-07-22Fixed typos.Ian Lance Taylor1-2/+2
1993-07-22 * config/obj-aout.c: Only include aout/aout64.h if BFD_ASSEMBLERBrendan Kehoe1-0/+5
is defined.
1993-07-22Don't use #ifdef inside macro arguments.Ian Lance Taylor1-4/+6
1993-07-22 * configure.in (case ${host}): Map *-*-sysv4* to gas_host=sysv.Fred Fish1-0/+13
* configure.in (case ${generic_target}): Add i[34]86-*-sysv4* case to set obj_format=elf. Must go before i386-*-sysv* case that sets obj_format=coffbsd. Add *-*-sysv4* to *-*-elf and *-*-solaris case, and move to before *-sysv* case that wants to set obj_format to coff. * config/tc-i386.c (i386_operand): Change all 'exp.X_op' to 'exp->X_op'. * config/tc-i386.c (md_apply_fix): Fix valp to be 'valueT *' for BFD_ASSEMBLER case.
1993-07-21 * config/obj-aout.c: Include aout/aout64.h.Ian Lance Taylor2-2/+19
(obj_aout_frob_symbol): Set BSF_DEBUGGING for a constructor symbol, so that BFD doesn't tamper with the type.
1993-07-21 * read.c (read_a_source_file): If NO_PSEUDO_DOT is defined, lookIan Lance Taylor5-39/+46
up opcodes as pseudo-ops even if they don't start with '.'. * config/tc-m88k.h (NO_PSEUDO_DOT): Define. * config/tc-m88k.c (md_assemble): Removed special pseudo-op handling. (md_apply_fix): Set fx_offset to the upper 16 bits of the reloc. Output the low 16 bits for RELOC_HI16, not the high 16 bits. * config/obj-coffbfd.c (do_relocs_for): If TC_M88K, set the r_offset field of the reloc to the fixup offset. (fixup_segments): If TC_M88K, don't warn about fixup overflows. * doc/as.texinfo: Minor updates.
1993-07-21 * Extensive changes to permit symbols to contain any expressionIan Lance Taylor19-1158/+1001
type and to delay the computation of the expression until the value is actually needed. This permits setting symbols to values calculated based on object code size. Expressions were changed to no longer be in a section, to stop the overloading of segment and expression type that previously occurred. * as.c (big_section, pass1_section, diff_section, absent_section): Removed. (expr_section): Added (used for dummy symbols which hold intermediate expression values). (perform_an_assembly_pass): Create expr_section, do not create the sections now removed. * as.h (segT): Removed SEG_ABSENT, SEG_PASS1, SEG_BIG, and SEG_DIFFERENCE. Added SEG_EXPR. (SEG_NORMAL): Corresponding changes. * subsegs.c (seg_name, subsegs_begin): Changed accordingly. * write.c (write_object_file): Ditto. * config/obj-aout.c (seg_N_TYPE): Ditto. * config/obj-bout.c (seg_N_TYPE): Ditto. * config/obj-coff.c (seg_N_TYPE): Ditto. * config/obj-coffbfd.c (seg_N_TYPE): Ditto. * config/obj-vms.c (seg_N_TYPE): Ditto. * expr.h (operatorT): Moved in from expr.c, added some values. (expressionS): Added X_op field, removed X_seg field; renamed X_subtract_symbol to X_op_symbol. * expr.c: Extensive changes to assign expression types rather than sections and to simplify the parsing. * write.c (fix_new_internal): New static function. (fix_new): Removed sub_symbol argument. (fix_new_exp): New function, takes expression argument. * write.h: Prototype changes for fix_new and fix_new_exp. * cond.c (s_if): Changed accordingly. * read.c (s_lsym, pseudo_set, emit_expr, parse_bitfield_cons, parse_repeat_cons, get_segmented_expression, get_known_segmented_expression, get_absolute_expression): Ditto. * symbols.c (resolve_symbol_value, S_GET_VALUE, S_SET_VALUE): Ditto. * write.c (write_object_file): Ditto. * config/obj-coff.c (obj_coff_def, obj_coff_val): Ditto. * config/obj-coffbfd.c (obj_coff_def, obj_coff_val, obj_coff_endef, yank_symbols): Ditto. * config/obj-elf.c (obj_elf_stab_generic, obj_elf_size): Ditto. * config/tc-a29k.c (md_assemble, parse_operand, machine_ip, print_insn, md_operand): Ditto. * config/tc-h8300.c (parse_exp, colonmod24, check_operand, do_a_fix_imm, build_bytes): Ditto. * config/tc-h8500.c (parse_exp, skip_colonthing, parse_reglist, get_specific, check, insert, md_convert_frag): Ditto. * config/tc-hppa.c (the_insn, fix_new_hppa, cons_fix_new_hppa, md_assemble, pa_ip, getExpression, getAbsoluteExpression, evaluateAbsolute, pa_build_unwind_subspace, pa_entry, process_exit): Ditto. * config/tc-hppa.h (STAB_FIXUP, is_DP_relative, is_PC_relative, is_complex): Ditto. * config/tc-i386.c (pe, md_assemble, i386_operand, md_estimate_size_before_relax, md_create_long_jump): Ditto. * config/tc-i860.c (md_assemble, getExpression, print_insn): Ditto. * config/tc-i960.c (parse_expr, subs, segs, md_convert_frag, get_cdisp, mem_fmt, parse_ldconst, relax_cobr, s_sysproc, i960_handle_align): Ditto. * config/tc-m68k.c (struct m68k_exp, struct m68k_it, seg, op, subs, add_fix, isvar, m68k_ip, md_assemble, md_convert_frag_1, md_estimate_size_before_relax, md_create_long_jump, get_num): Ditto. * config/tc-m88k.c (md_assemble, get_imm16, get_pcr, md_create_short_jump, md_create_long_jump): Ditto. * config/tc-mips.c (md_assemble, append_insn, gp_reference, macro_build, macro, my_getExpression): Ditto. Also removed get_optional_absolute_expression; just use get_absolute_expression instead. * config/tc-ns32k.c (get_addr_mode, evaluate_expr, convert_iif, fix_new_ns32k, fix_new_ns32k_exp, cons_fix_new_ns32k): Ditto. * config/tc-ns32k.h (fix_new_ns32k prototype): Ditto. * config/tc-sh.c (parse_exp, check, insert, md_convert_frag): Ditto. * config/tc-sparc.c (md_assemble, sparc_ip, getExpression, print_insn): Ditto. * config/tc-tahoe.c (struct top, md_estimate_size_before_relax, tip_op, md_assemble): Ditto. * config/tc-vax.c (seg_of_operand, md_assemble, md_estimate_size_before_relax, md_create_long_jump): Ditto. * config/tc-z8k.c (parse_exp, check_operand, newfix): Ditto.
1993-07-20add i386-lynx supportDavid D. Zuhn2-1/+5
1993-07-19various changesKen Raeburn1-0/+26
1993-07-19(write_relocs): New function, split off from write_contents. Use memsetKen Raeburn1-4/+23
instead of bzero. (write_object_file): Apply write_relocs to each section before applying write_contents.
1993-07-19(read_begin): Call obstack_begin with values closer to 1K multiples.Ken Raeburn1-6/+8
(read_a_source_file, big_cons, float_cons): Use memcpy instead of bcopy.