aboutsummaryrefslogtreecommitdiff
path: root/gas/config
AgeCommit message (Collapse)AuthorFilesLines
1993-04-01 * subsegs.c (subseg_new): Set output_section of new section.Ian Lance Taylor3-1913/+2488
* as.c (perform_an_assemly_pass): Don't set output_section here. * expr.c (expr_part, expr): Turn off section assertions for ECOFF, since it has additional sections. * read.c (s_lcomm): For MIPS ECOFF, put small objects in .sbss, not bss_section. * config/obj-ecoff.h (TARGET_SYMBOL_FIELDS): Added ecoff_undefined field. * config/obj-ecoff.c (obj_symbol_new_hook): Initialize ecoff_undefined field. (add_file): If using stabs, just output a stabs symbol rather than creating a new fdr. (obj_ecoff_begin, obj_ecoff_bend): Ignore line number by reading it with get_absolute_expression, rather than skipping it by hand. (obj_ecoff_loc): If using stabs, just output a stabs symbol rather than ECOFF line number information. (obj_ecoff_stab): Accept non-zero values for stabs line number. (ecoff_build_symbols): Set ifilesym correctly. Set storage class to small, undefined and/or readonly sections if appropriate. Don't output symbol names containing \001 characters. (ecoff_frob_file): Make sure at least one fdr is output. * config/tc-mips.h: Define TC_MIPS. * config/tc-mips.c (g_switch_value): New static variable. (md_assemble): Set gp size of output BFD. (gp_reference): New function; returns 1 if expression can be accesssed via gp. Always returns 0 if not using ECOFF. (macro_build): Convert BFD_RELOC_LO16 to BFD_RELOC_MIPS_GPREL if possible. (macro): Generate sequences using gp if possible. (md_parse_option): Ignore -EL and -EB. Parse -G. (md_apply_fix): Added BFD_RELOC_MIPS_GPREL to ignored case. (s_change_sec): Handle .rdata and .sdata for ECOFF. (s_extern): Mark symbol as external. Set ecoff_undefined field.
1993-03-30build file symbol fwd pointers properly, don't deref symbol #s as pointersKen Raeburn1-7/+6
1993-03-29 * config/obj-coffbfd.c (do_relocs_for): Fix bug where nrelocsSteve Chamberlain2-2/+2
wasn't being stored into scnhdr. * config/obj-coffbfd.h: Add prototype of s_get_segment. * read.c (TC_START_LABEL): Default definition. (read_a_source_file): Use TC_START_LABEL macro to work out if a label has been seen.
1993-03-29Numerous bug fixesSteve Chamberlain2-260/+344
1993-03-29 * config/obj-coffbfd.c (fill_section): Don't set NOLOAD bit forIan Lance Taylor1-1/+3
a29k .bss section; the mondfe program doesn't like it.
1993-03-25 * config/obj-coffbfd.c (do_relocs_for): Remove a29k special case.Ian Lance Taylor1-8/+6
(fixup_segment): Add a29k special case; the linker is not prepared to see a segment offset here.
1993-03-23updated for obj-bfd-sunos, ho-decst* changesKen Raeburn1-3/+1
1993-03-23(do_relocs_for): Don't allocate storage or process relocs if there aren't anyKen Raeburn1-64/+77
relocs to process. Avoids malloc/free bug on SCO too.
1993-03-23rename for <=14 charsKen Raeburn1-0/+0
1993-03-23unused; deletedKen Raeburn2-143/+0
1993-03-22 * config/tc-mips.c (macro): Use $AT for any floating point load.Ian Lance Taylor1-1/+1
Also get the debugging information right in obj-ecoff.c.
1993-03-18 * app.c (do_scrub_next_char): Added new state, 9, to avoidIan Lance Taylor2-88/+144
dropping a space immediately following an identifier. * expr.c, write.c: Rewrote assert expressions to not use multiple lines; I don't think that can be done portably. * config/tc-mips.c (macro): Use $AT if target register is zero in load instruction, which it can be for a floating point load. Also a bunch more changes to config/obj-ecoff.c, still in flux.
1993-03-15 * write.c (write_contents): Compute the relocs before writing outIan Lance Taylor3-1/+7803
the section contents. * config/obj-ecoff.h, config/obj-ecoff.c: Numerous changes to get symbol table and values right. * config/tc-mips.h (LOCAL_LABEL): If OBJ_ECOFF, any label starting with $L is local. * config/tc-mips.c (tc_gen_reloc): If OBJ_ECOFF, adjust the addend by the section vma. * config/z8k.mt (TARG_CPU_DEPENDENTS): The relevant file is z8k-opc.h, not z8k.h.
1993-03-15 * config/obj-coffbfd.c (obj_coff_endef): Correct test for .bfIan Lance Taylor1-2/+1
symbol.
1993-03-12Include new file config.h.Ken Raeburn1-40/+71
Handle some m683XX processor ids.
1993-03-12Define EXIT_SUCCESS and EXIT_FAILURE if not already defined.Ken Raeburn1-0/+5
1993-03-09Added new ECOFF files.Ian Lance Taylor1-0/+4
1993-03-09Checkpoint for ECOFF support. Can assemble hello, world.Ian Lance Taylor2-0/+2
* config/obj-ecoff.c, config/obj-ecoff.h: Preliminary ECOFF support. * config/tc-mips.h (TARGET_FORMAT): Define based on OBJ_AOUT vs. OBJ_ECOFF as well as TARGET_BYTES_*_ENDIAN. (struct loc, struct proc, struct file): Moved to tc-mips.c within #ifndef OBJ_ECOFF block, since ECOFF uses different versions. * config/tc-mips.c: Rearranged for ECOFF support. Added prototypes for all static functions. Moved existing minimal debugging format support info #ifndef OBJ_ECOFF blocks. (macro_build_lui): Eliminated sign_extend argument, because ECOFF does not support a non sign extended high 16 bits reloc. Adjusted all callers accordingly. (tc_get_register): Renamed from get_register, and made non-static. * config/mips-big.mt, config/mips-lit.mt: New files. Define TARGET_BYTES_BIG_ENDIAN and TARGET_BYTES_LITTLE_ENDIAN, respectively. * configure.in (mips-*-bsd*): Use gas_target mips-lit. (mips-*-ultrix*, mips-*-irix*, mips-*-ecoff): New targets, using obj_format ecoff and gas_target mips-lit or mips-big.
1993-03-05 * read.h: Define stringer here.Ian Lance Taylor2-10/+1
read.c, config/obj-ieee.c, config/obj-tcm88k.c: Not any of these places.
1993-03-03SUB_SEGMENT_ALIGN now takes an argument.Ken Raeburn2-7/+7
1993-02-24(s_xword): Now accepts large integer constants, but not symbolic constantsKen Raeburn1-5/+6
or expressions.
1993-02-24changes for bfd support, enough for sun4 targetKen Raeburn1-200/+290
1993-02-24m68k_ip: for pc-rel addressing of a symbol, fix offset so +2 isn't neededKen Raeburn1-98/+49
1993-02-24deleted emacs local variables commentsKen Raeburn1-7/+0
1993-02-24don't need LOCAL_LOADLIBES any more, with new configure.in changesKen Raeburn1-1/+0
1993-02-13removing excess verbosityDavid D. Zuhn1-1/+0
1993-02-11Thu Feb 11 09:20:37 1993 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor1-1/+1
* config/obj-coffbfd.c (fill_section): Don't set vaddr here. (write_object_file): Set it here instead, so that fixup_segment can see the correct value.
1993-02-08Deleted RCS logs and "Done in" message.Ken Raeburn1-194/+1
Fixed a typo in a filename.
1993-02-08update for files added and deletedKen Raeburn1-5/+8
1993-02-08Move VMS version of SUB_SEGMENT_ALIGN to obj-vms.h from write.h.Ken Raeburn1-1/+9
1993-02-08from Ralph Campbell's workKen Raeburn2-0/+680
1993-02-08delete silly fake-as target stuffKen Raeburn2-2/+0
1993-02-08don't specify comopiler hereKen Raeburn1-2/+0
1993-02-08The z8k code doesn't appear too depend on include/opcode/h8300.h.Ken Raeburn1-4/+1
List it as depending on opcodes/z8k.h instead.
1993-02-04 * config/{h8500.mt, tc-h8500.c, tc-h8500.h, obj-coffbfd.c,Steve Chamberlain6-3/+1609
obj-coffbfd.h}: support for the H8/500
1993-01-27not usedKen Raeburn1-6/+0
1993-01-27not usedKen Raeburn1-1/+0
1993-01-20whitespace/comment changesKen Raeburn1-26/+18
1993-01-07Lots of changes from Eric Youngdale, mostly for VAX and VMS support.Ken Raeburn2-87/+222
1993-01-04delete decls of segment_name, seg_nameKen Raeburn3-30/+0
1993-01-01Replace T in TC_H8300Steve Chamberlain1-1/+1
1992-12-30A bunch of changes to COFF support. See the ChangeLog.Ian Lance Taylor9-478/+545
1992-12-30Wed Dec 30 10:18:57 1992 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor1-2/+70
* app.c, config/tc-*.c: Don't include read.h, since it is already included by as.h. * These are based on patches from Minh Tran-le <mtranle@paris.intellicorp.com>. * configure.in (i[34]86-ibm-aix*): Accept i486 for host. Use obj_format coffbfd and gas_target i386coff for target. (i[34]86-*-isc*): New host (uses sysv). * config/i386aix.mt: Removed (no longer used). * config/mh-i386aix (RANLIB): Use true rather than /bin/true. (MINUS_G): Removed. (LDFLAGS): Added, defined as -shlib. * config/te-i386aix.h (REVERSE_SORT_RELOCS): Undefine. * config/te-sco386.h (LOCAL_LABEL): Don't define. (DOT_LABEL_PREFIX): Define. * expr.c (operand): If DOT_LABEL_PREFIX, use .L0\001 as a label name rather than L0\001. * read.c (s_lcomm): Make a frag in SEG_BSS rather than using local_bss_counter. * symbols.c, symbols.h (local_bss_counter): Removed. * write.c (write_object_file): bss no longer uses local_bss_counter. Pass correct data and bss size to VMS_write_object_file. * config/obj-vms.c (VMS_write_object_file): Accept bss size as argument, rather than using local_bss_counter. * config/tc-m88k.c (s_bss): Don't use local_bss_counter. * config/tc-sparc.c (s_reserve): Don't use local_bss_counter. * config/obj-coffbfd.c (had_lineno, had_reloc): Removed. (size_section): Restored sanity check. (do_relocs_for): Base section address on s_paddr rather than computing it. Adjust a29k R_IHIHALF special case to account for section paddr (used to require paddr to be zero). If there are no reclos, set s_relptr to 0. Set relocation size in object_headers. (fill_section): Always set s_vaddr here, removing ZERO_BASED_SEGMENTS case. Force s_scnptr for bss to 0. Don't set NOLOAD for i386 .bss, because it confuses the SVR3 native linker. Set STYP_INFO for .comment. (coff_header_append): Use object headers and H_{SET,GET}_* macros. Make aouthdr writing depend on OBJ_COFF_OMIT_OPTIONAL_HEADER. (crawl_symbols): Handle 8 character section name correctly. Use H_{SET,GET}_* macros. (do_linenos_for): Set lineno size in object_headers. (write_object_file): Use H_{SET,GET}_* macros. Don't bother to set s_vaddr here. If string_byte_count remains 4, set it back to 0, and only write strings out if there are some. Call fill_section before do_relocs_for and do_linenos_for. (obj_coff_section): Handle optional quoted second argument giving section characteristics. (obj_coff_bss): Added to handle .bss. (obj_coff_ident): Added to handle .ident (puts string in .comment section). (obj_coff_lcomm): Put common symbols in .bss, not .data. (fixup_mdeps): Change to segment. Call frag_wane after md_convert_frag. (fixup_segment): Explicitly check S_IS_COMMON before making 386 adjustment (already happened only for common symbols, but this is clearer). * config/obj-coffbfd.h (OBJ_COFF_OMIT_OPTIONAL_HEADER): Define. * config/tc-i386.c (s_bss): Don't use if I386COFF. (md_pseudo_table): Ignore .optim and .noopt. (tc_coff_sizemachdep): New function. * config/tc-i386.h (REVERSE_SORT_RELOCS): Undef, for SVR3 compatibility. (LOCAL_LABEL): Removed definition. (DOT_LABEL_PREFIX): Defined.
1992-12-28avoid #elifKen Raeburn1-144/+171
1992-12-28SunOS 4.0.3 has no sys/stdtypes.hKen Raeburn1-1/+1
1992-12-16Wed Dec 16 12:12:33 1992 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor1-0/+2
* write.c, obj-ieee.c: don't define SUB_SEGMENT_ALIGN if it is already defined.
1992-12-15lintsSteve Chamberlain2-79/+49
1992-12-15checkpointSteve Chamberlain2-364/+469
1992-12-15For SPARC V9, for RELOC_WDISP2_14, upper 2 bits start at bit 20 now, insteadJim Wilson1-29/+22
of bit 19.
1992-12-13Sat Dec 12 15:26:34 1992 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor3-46/+112
* listing.c: Call xmalloc, not malloc; don't declare malloc. * Changes to support SCO 3.2v4: * read.c (s_align_bytes, s_align_ptwo): If not SEG_DATA or SEG_BSS, fill with NOP_OPCODE. * config/i386coff.mt: Add opcode/i386.h to TARG_CPU_DEPENDENTS. * config/obj-coffbfd.c (do_relocs_for): Increment addr even if not using ZERO_BASED_SEGMENTS. (fill_section): If ZERO_BASED_SEGMENTS, set segment addresses, but never set segment address for SEG_E2 (.bss) and don't write out SEG_E2 contents. Set .init and .fini sections to STYP_TEXT. (obj_coff_endef): Don't merge labels or symbols awaiting forward definitions, and don't merge tags with non-tags. Check for .bf rather than just checking whether the second character is b and the third character is f. (obj_coff_val): gcc can generate values which we don't handle correctly; discard information for now, since it only affects the debugging information. (tag_find_or_name): Don't insert tags in the symbol table. (yank_symbols): Don't merge labels. (write_object_file): Don't define SUB_SEGMENT_ALIGN if it is already defined. Fill subsegments with NOP_OPCODE, not 0. Don't set segment address if ZERO_BASED_SEGMENTS. (obj_coff_section): Accept and ignore a trailing quoted string, as used in AT&T i386 syntax. (fixup_segment): Take segment as argument. On the i386, adjust PC relative addends by the segment vaddr. * tc-i386.h: Define SUB_SEGMENT_ALIGN. * tc-a29k.h: Define ZERO_BASED_SEGMENTS. * tc-i386.c: (i386_operand): If I386COFF, accept any segment type.