160484SobrienSat Dec 30 23:42:51 1995 Jeffrey A Law (law@cygnus.com) 260484Sobrien 360484Sobrien * ecoff.c (ecoff_stab): Simplify. Correctly handle sym + offset 460484Sobrien addresses for static variables. 560484Sobrien 660484SobrienThu Dec 21 12:54:32 1995 Michael Meissner <meissner@tiktok.cygnus.com> 760484Sobrien 860484Sobrien * config/tc-ppc.c (mapping): Make @got give a real GOT relocation, 960484Sobrien and xgot give the old toc16 relocation. 1060484Sobrien (md_apply_fix3): Support all GOT relocations. 1160484Sobrien 1260484SobrienWed Dec 20 14:57:17 1995 Ian Lance Taylor <ian@cygnus.com> 1360484Sobrien 1460484Sobrien * config/tc-mips.c (load_address): Correctly handle a constant in 1560484Sobrien SVR4_PIC case. From Richard Kenner <kenner@vlsi1.ultra.nyu.edu>. 1660484Sobrien 1760484SobrienFri Dec 15 14:25:07 1995 J.T. Conklin <jtc@rtl.cygnus.com> 1860484Sobrien 1960484Sobrien * config/tc-sh.c (parse_reg): Recognize SH3 registers. 2060484Sobrien (get_specific): Handle A_SSR, A_SPC and A_REG_B. 2160484Sobrien (build_Mbytes): Handle REG_B. 2260484Sobrien 2360484SobrienFri Dec 15 16:07:25 1995 Ian Lance Taylor <ian@cygnus.com> 2460484Sobrien 2560484Sobrien * ecoff.c (ecoff_build_aux): Use new bfd_big_endian macro. 2660484Sobrien 2760484SobrienFri Dec 15 12:11:48 1995 Raymond Jou <rjou@mexican.cygnus.com> 2860484Sobrien 2960484Sobrien * mpw-make.sed: If linking, edit ALL_CFLAGS to CFLAGS. 3060484Sobrien 3160484SobrienThu Dec 14 15:09:52 1995 Ian Lance Taylor <ian@cygnus.com> 3260484Sobrien 3360484Sobrien * config/obj-coff.c (write_object_file): Set the s_align field to 3460484Sobrien the number of bytes, rather than to the power of 2. 3560484Sobrien 3660484SobrienTue Dec 12 12:19:37 1995 Ian Lance Taylor <ian@cygnus.com> 3760484Sobrien 3860484Sobrien * Makefile.in (DISTCLEAN_HERE): New variable. 3960484Sobrien (distclean): Use it. 4060484Sobrien (maintainer-clean): Depend upon clean-here rather than clean, 4160484Sobrien distclean, and clean-info. Run make maintainer-clean in doc. 4260484Sobrien Remove files listed in DISTCLEAN_HERE. 4360484Sobrien * doc/Makefile.in (maintainer-clean realclean): Split out from 4460484Sobrien distclean. Depend upon clean-info and distclean. 4560484Sobrien 4660484SobrienMon Dec 11 16:23:51 1995 Stan Shebs <shebs@andros.cygnus.com> 4760484Sobrien 4860484Sobrien * mac-as.r: Fix copyright and version strings. 4960484Sobrien (cfrg): Use PROG_NAME instead of literal name. 5060484Sobrien 5160484SobrienMon Dec 11 14:14:08 1995 Ian Lance Taylor <ian@cygnus.com> 5260484Sobrien 5360484Sobrien * read.c (read_a_source_file): If tc_unrecognized_line is defined, 5460484Sobrien call it. 5560484Sobrien * config/tc-a29k.h (tc_unrecognized_line): Define. 5660484Sobrien * config/tc-a29k.c (a29k_unrecognized_line): New function. 5760484Sobrien (md_operand): Handle a29k style local dollar labels. 5860484Sobrien 5960484SobrienWed Dec 6 17:52:52 1995 Ian Lance Taylor <ian@cygnus.com> 6060484Sobrien 6160484Sobrien * config/obj-multi.h: If OBJ_MAYBE_ELF, define OBJ_SYMFIELD_TYPE. 6260484Sobrien 6360484SobrienTue Dec 5 13:26:34 1995 Ken Raeburn <raeburn@cygnus.com> 6460484Sobrien 6560484Sobrien * read.c (s_fill): If md_flush_pending_output is defined, call 6660484Sobrien it. 6760484Sobrien 6860484SobrienMon Dec 4 15:10:53 1995 Ken Raeburn <raeburn@cygnus.com> 6960484Sobrien 7060484Sobrien * config/obj-coff.c (size_section, fill_section, fixup_mdeps): 7160484Sobrien Treat rs_align_code like rs_align. 7260484Sobrien 7360484SobrienSun Dec 3 16:46:54 1995 Richard Earnshaw (rearnsha@armltd.co.uk) 7460484Sobrien 7560484Sobrien * config/tc-arm.c (cp_address_required_here): Set pre_inc when 7660484Sobrien converting an absolute address into a PC-relative one. 7760484Sobrien 7860484SobrienFri Dec 1 11:57:56 1995 Stan Shebs <shebs@andros.cygnus.com> 7960484Sobrien 8060484Sobrien * mpw-config.in: Don't always use te-generic.h for emulation. 8160484Sobrien (powerpc-apple-macos): Use emulation te-macos.h. 8260484Sobrien * mpw-make.sed (install, install-only): Edit in Mac-specific 8360484Sobrien install procedure. 8460484Sobrien 8560484SobrienFri Dec 1 10:59:25 1995 Ian Lance Taylor <ian@cygnus.com> 8660484Sobrien 8760484Sobrien * configure.in: Improve message about unsupported ELF targets. 8860484Sobrien * configure: Rebuild. 8960484Sobrien 9060484Sobrien * config/tc-m88k.c (m88k_do_align): Correct check for whether fill 9160484Sobrien pattern is zero. From Manfred Hollstein. 9260484Sobrien 9360484SobrienThu Nov 30 13:25:49 1995 Kim Knuttila <krk@cygnus.com> 9460484Sobrien 9560484Sobrien * config/tc-ppc.c (ppc_pe_section): To get the alignment right for 9660484Sobrien the various idata sections, we check the name on the .section pseudo. 9760484Sobrien 9860484SobrienThu Nov 30 11:23:42 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de> 9960484Sobrien 10060484Sobrien * config/obj-coff.c (fixup_segment): If TC_M88K is defined, do not 10160484Sobrien add section's paddr to add_number; compatibility to native as and 10260484Sobrien ld forbids. 10360484Sobrien 10460484SobrienWed Nov 29 23:14:27 1995 Ken Raeburn <raeburn@cygnus.com> 10560484Sobrien 10660484Sobrien * configure.in: Treat m68k-sysv4 like m68k-elf, not m68k-sysv3. 10760484Sobrien 10860484Sobrien * hash.c (struct hash_entry): Moved here... 10960484Sobrien * hash.h (struct hash_entry): ...from here. 11060484Sobrien 11160484Sobrien * config/obj-elf.c (elf_frob_symbol): Don't free and clear sy_obj 11260484Sobrien if it's already known to be null. 11360484Sobrien 11460484SobrienWed Nov 29 13:00:20 1995 Michael Meissner <meissner@tiktok.cygnus.com> 11560484Sobrien 11660484Sobrien * config/tc-ppc.c (md_apply_fix3): Don't adjust the value for 32 11760484Sobrien bit relocs converted to PC relative relocs. This turned out to 11860484Sobrien add the offset from the beginning of .text twice. 11960484Sobrien 12060484SobrienTue Nov 28 10:42:36 1995 Ken Raeburn <raeburn@cygnus.com> 12160484Sobrien 12260484Sobrien * stabs.c (s_stab_generic): In 's' case, free string from 12360484Sobrien obstack. 12460484Sobrien 12560484Sobrien * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): Remove unused field 12660484Sobrien sy_name_offset. 12760484Sobrien * config/obj-multi.h (ELF_TARGET_SYMBOL_FIELDS) [OBJ_MAYBE_ELF]: 12860484Sobrien Ditto. 12960484Sobrien 13060484Sobrien * subsegs.h (segment_info_type): Make bitfields unsigned. 13160484Sobrien 13260484Sobrien * expr.h (struct expressionS): Make X_op and X_unsigned bitfields, 13360484Sobrien and move them together. On most systems this will reduce the 13460484Sobrien structure size by one word. 13560484Sobrien (operatorT): Define O_max. 13660484Sobrien * expr.c (expr_begin): Verify that X_op is wide enough to hold 13760484Sobrien O_max. 13860484Sobrien 13960484Sobrien * read.c (pop_insert): Print error returned by hash table 14060484Sobrien insertion code. 14160484Sobrien 14260484Sobrien * as.c (dump_statistics): Split out from main; dump some hash 14360484Sobrien table stats and target-specific stats. 14460484Sobrien (start_time): No longer automatic to main. 14560484Sobrien (main): Set file-level start_time and call dump_statistics at 14660484Sobrien exit. Exit by calling xexit. 14760484Sobrien (show_usage): Make --statistics description less specific. 14860484Sobrien * subsegs.c (subsegs_print_statistics): New function. 14960484Sobrien * write.c (write_print_statistics): New function. 15060484Sobrien (n_fixups): New static variable. 15160484Sobrien (fix_new_internal): Increment it. 15260484Sobrien * read.c (read_print_statistics): New function. 15360484Sobrien * read.h (read_print_statistics): Declare. 15489857Sobrien * symbols.c (symbol_print_statistics): New function. 15589857Sobrien * symbols.h (symbol_print_statistics): Declare. 15660484Sobrien * hash.c (hash_print_statistics): New function. 15760484Sobrien * hash.h (hash_print_statistics): Declare. 15860484Sobrien * config/tc-i386.c (i386_print_statistics): New function. 15960484Sobrien * config/tc-i386.h (i386_print_statistics): Declare. 16060484Sobrien (tc_print_statistics): New macro. 16160484Sobrien * messages.c (as_fatal, as_assert, as_abort): Use xexit, not 16260484Sobrien exit. 16360484Sobrien 16460484Sobrien * hash.c (DELETED): Rewrite to use a valid but unique address. 16560484Sobrien (START_POWER): Reduce to 10. 16660484Sobrien (enum stat_enum): New enumerator, replacing STAT_* index macros. 16760484Sobrien Add new values for counting strcmp calls. 16860484Sobrien (GROW_FACTOR): New macro. 16960484Sobrien (hash_grow): Use GROW_FACTOR. Rewrite for quick returns instead 17060484Sobrien of nesting blocks. 17160484Sobrien (FULL_VALUE): New macro. Use 1/4 of table size instead of 1/2. 17260484Sobrien (hash_new): Use FULL_VALUE. 17360484Sobrien (struct hash_control): Definition moved here. 17460484Sobrien (hash_code): Don't mask to low bits. 17560484Sobrien (hash_ask): Mask returned hash code here. Check hash value before 17660484Sobrien calling strcmp; count strcmp calls. 17760484Sobrien * hash.h (struct hash_control): Declare, don't define, here. 17860484Sobrien (HASH_STATLENGTH): Deleted. 17960484Sobrien (struct hash_entry): Add field for hash code. 18060484Sobrien (hash_say, hash_apply): Don't declare. 18160484Sobrien 18260484Sobrien * hash.c (destroy): Return void. 18360484Sobrien (applicatee): Ditto. 18460484Sobrien (main): Fix declarations. 18560484Sobrien (hash_apply): Return void. Argument `function' returns void. Put 18660484Sobrien inside "#ifdef TEST". 18760484Sobrien (hash_say): Define only if TEST is defined. 18860484Sobrien * hash.h (hash_apply, hash_say): Declarations deleted. 18960484Sobrien 19060484SobrienMon Nov 27 13:18:25 1995 Ian Lance Taylor <ian@cygnus.com> 19160484Sobrien 19260484Sobrien * configure: Rebuild with autoconf 2.7. 19360484Sobrien 19460484SobrienTue Nov 21 18:39:01 1995 Ian Lance Taylor <ian@cygnus.com> 19560484Sobrien 19660484Sobrien * aclocal.m4 (AC_PROG_CC): Remove local definition. 19760484Sobrien * configure: Rebuild with autoconf 2.6. 19860484Sobrien 19960484SobrienMon Nov 20 17:26:00 1995 Ian Lance Taylor <ian@cygnus.com> 20060484Sobrien 20160484Sobrien * config/tc-ppc.c (ppc_debug_name_section_size): Remove. 20260484Sobrien (ppc_stabx): Don't increment ppc_debug_name_section_size. 20360484Sobrien (ppc_bc): Likewise. 20460484Sobrien (ppc_frob_file): Remove. 20560484Sobrien * config/tc-ppc.h (tc_frob_file): Don't define. 20660484Sobrien (ppc_frob_file): Don't declare. 20760484Sobrien 20860484SobrienMon Nov 20 13:37:05 1995 Ken Raeburn <raeburn@cygnus.com> 20960484Sobrien 21060484Sobrien * Makefile.in (TARG_CPU_DEP_alpha): Mention alpha-opcode.h. 21160484Sobrien * config/alpha-opcode.h: Include one-operand variants of jmp and 21260484Sobrien jsr. 21360484Sobrien 21460484Sobrien * config/te-delt88.h: Renamed from te-delta88.h, to avoid conflict 21560484Sobrien with te-delta.h in 8.3 file systems. 21660484Sobrien * configure.in: Adjusted. 21760484Sobrien 21860484SobrienThu Nov 16 12:49:38 1995 Ian Lance Taylor <ian@cygnus.com> 21960484Sobrien 22060484Sobrien * config/tc-mips.c (s_err): Remove; just use the one in read.c. 22160484Sobrien 22260484Sobrien * config/m68k-parse.y (yylex): In MRI mode, '@' can start an octal 22360484Sobrien number. 22460484Sobrien * expr.c (operand): Handle MRI suffixes after unadorned 0. 22560484Sobrien 22660484SobrienThu Nov 16 00:21:44 1995 Ken Raeburn <raeburn@cygnus.com> 22760484Sobrien 22860484Sobrien Version 2.6 released. 22960484Sobrien * Makefile.in (VERSION): Updated to 2.6. 23060484Sobrien 23160484Sobrien * config/obj-coff.c (write_object_file): Change use of md_do_align 23260484Sobrien to pass a pointer rather than a fill value, to match other uses. 23360484Sobrien 23460484SobrienWed Nov 15 03:52:00 1995 Ken Raeburn <raeburn@cygnus.com> 23560484Sobrien 23660484Sobrien * config/tc-ns32k.h (TC_FIX_TYPE): Add missing semicolon. 23760484Sobrien 23860484Sobrien * as.c (main): Move md_end call to just after call to 23960484Sobrien perform_an_assembly_pass. Delete cpu-specific code here. 24060484Sobrien * config/tc-i960.h (md_end): New macro, calls brtab_emit. 24160484Sobrien * config/tc-arm.c (md_end): Unused function deleted. 24260484Sobrien * config/tc-ns32k.c (md_end): Ditto. 24360484Sobrien 24460484Sobrien * config/tc-i386.c (i386_align_code): New function, moved here 24560484Sobrien from HANDLE_ALIGN macro. 24660484Sobrien * config/tc-i386.h (HANDLE_ALIGN): Call it. 24760484Sobrien 24860484Sobrien Mon Jul 31 14:53:19 1995 Alan Modra <alan@spri.levels.unisa.edu.au> 24960484Sobrien 25060484Sobrien * config/tc-i386.h (md_do_align): cast fill and 0x90 to char 251218822Sdim before comparing 25260484Sobrien 25360484Sobrien Mon May 1 10:91:49 1995 Alan Modra <alan@spri.levels.unisa.edu.au> 25460484Sobrien 25560484Sobrien * config/tc-i386.h (md_do_align): Make ".align n,0x90" generate 25660484Sobrien multi-byte nops to avoid changing gcc. The necessary gcc change 25760484Sobrien might break old assemblers. 25860484Sobrien 25960484Sobrien Sat Apr 22 20:53:05 1995 Alan Modra <alan@spri.levels.unisa.edu.au> 26060484Sobrien 26160484Sobrien * config/tc-i386.h (md_do_align, HANDLE_ALIGN): Add macros to 26260484Sobrien generate optimal multi-byte nop instructions for ".align n" 26360484Sobrien ".align n,0x90", and aligns requiring more than 15 bytes of 26460484Sobrien padding still generate multiple 0x90's as before. 26560484Sobrien 26660484SobrienMon Nov 13 17:40:21 1995 Ian Lance Taylor <ian@cygnus.com> 26760484Sobrien 26860484Sobrien * config/tc-m68k.c (s_mri_until): Call pop_mri_control. 26960484Sobrien 27060484SobrienMon Nov 13 20:39:06 1995 Stan Shebs <shebs@andros.cygnus.com> 27160484Sobrien 27260484Sobrien * configure.in (ppc-*-macos*, ppc-*-mpw*): New configurations. 27360484Sobrien * configure: Update. 27460484Sobrien * mpw-make.sed: Reorder commands to make sed happier. 27560484Sobrien * config/te-macos.h: New file. 27660484Sobrien * config/tc-ppc.h (TARGET_FORMAT): Set correctly for PowerMac. 27760484Sobrien 27860484SobrienSun Nov 12 21:14:56 1995 Jeffrey A Law (law@cygnus.com) 27960484Sobrien 28060484Sobrien * config/tc-hppa.c (pa_ip): Fix off-by-2 bug in length check for 28160484Sobrien conditional branches. 28260484Sobrien (md_apply_fix): Likewise. 28360484Sobrien 28460484SobrienThu Nov 9 16:14:01 1995 Ian Lance Taylor <ian@cygnus.com> 28560484Sobrien 28660484Sobrien * config/tc-a29k.c (md_apply_fix): Warn if an attempt is made to 28760484Sobrien generate a reloc which the linker will not handle correctly. Fix 28860484Sobrien overflow checking--R_IREL is 18 bits, not 17. 28960484Sobrien 29060484SobrienWed Nov 8 19:59:36 1995 Ian Lance Taylor <ian@cygnus.com> 29160484Sobrien 29260484Sobrien * config/obj-coff.c (fixup_segment): Don't subtract md_pcrel_from 29360484Sobrien from a PC relative reloc if TC_A29K. 29460484Sobrien 29560484Sobrien * config/tc-a29k.c (line_separator_chars): Restore '@'. Existing 29660484Sobrien code depends upon it. 29760484Sobrien 29860484Sobrien * config/tc-a29k.c (md_operand): Handle $float, $double, and 29960484Sobrien $extend. Based on code from Eric Freudenthal 30060484Sobrien <freudenthal@nyu.edu>. 30160484Sobrien * config/tc-a29k.h (LEX_DOLLAR): Define. 30260484Sobrien * read.c (LEX_DOLLAR): Define if not defined. 30360484Sobrien (lex_type): Use LEX_DOLLAR. 30460484Sobrien 30560484SobrienWed Nov 8 16:38:14 1995 Eric Freudenthal <freudenthal@nyu.edu> 30660484Sobrien 30760484Sobrien * configure.in (a29k-nyu-sym1): New target, just like other a29k 30860484Sobrien targets. 30960484Sobrien 31060484SobrienWed Nov 8 11:38:48 1995 Ian Lance Taylor <ian@cygnus.com> 31160484Sobrien 31260484Sobrien * config/obj-coff.c (c_dot_file_symbol): Cast xmalloc return. 31360484Sobrien 31460484SobrienTue Nov 7 09:14:35 1995 Kim Knuttila <krk@cygnus.com> 31560484Sobrien 31660484Sobrien * config/tc-ppc.c (md_apply_fix3): Added BFD_RELOC_RVA. Currently 31760484Sobrien used only by "dlltool.c". 31860484Sobrien 31960484SobrienMon Nov 6 18:51:26 1995 Ian Lance Taylor <ian@cygnus.com> 32060484Sobrien 32160484Sobrien * config/tc-alpha.c: Undefine inline if not __GNUC__. 32260484Sobrien (md_pseudo_table): Don't define "extern". 32360484Sobrien 32460484SobrienSat Nov 4 00:51:21 1995 Ian Lance Taylor <ian@cygnus.com> 32560484Sobrien 32660484Sobrien * config/tc-ppc.c (ppc_biei): Force symbol into text_section. 32760484Sobrien 32860484Sobrien * config/tc-ppc.c (md_show_usage): Put backslash at end of line. 32960484Sobrien 33060484SobrienFri Nov 3 13:02:59 1995 Ian Lance Taylor <ian@cygnus.com> 33160484Sobrien 33260484Sobrien * macro.c (macro_expand_body): Don't warn about == with a 33360484Sobrien nonexistent parameter, in case it is in a comment field. 33460484Sobrien 33560484Sobrien * as.c (main): On TC_A29K, call macro_init with macro_alternate 33660484Sobrien set to 1. 33760484Sobrien * macro.c (get_any_string): Don't keep quotes if macro_strip_at is 33860484Sobrien set, even if macro_alternate is set. 33960484Sobrien (get_apost_token): If macro_strip_at, only skip kind if it is '@'. 34060484Sobrien (sub_actual): If macro_strip_at, and kind is '@', don't look up 34160484Sobrien the token unless it ended in '@'. 34260484Sobrien * config/tc-a29k.c (line_separator_chars): Remove '@'. 34360484Sobrien * doc/c-a29k.texi: Document macro usage on A29K. 34460484Sobrien 34560484SobrienThu Nov 2 23:07:57 1995 Ian Lance Taylor <ian@cygnus.com> 34660484Sobrien 34760484Sobrien * config/tc-m68k.c (m68k_ip): Handle new 'W' place, meaning a 34860484Sobrien signed word. 34960484Sobrien (install_operand): Likewise. 35060484Sobrien 35160484Sobrien * config/obj-elf.c (ecoff_debug_pseudo_table): Add "extern". 35260484Sobrien 35360484SobrienWed Nov 1 15:17:02 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de> 35460484Sobrien 35560484Sobrien * configure.in (m88k-motorola-sysv*): New target. 35660484Sobrien * configure: Rebuild. 35760484Sobrien * config/te-delta88.h: New file. 35860484Sobrien * config/obj-coff.c (write_object_file): Use md_do_align if it is 35960484Sobrien defined. 36060484Sobrien * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Define. 36160484Sobrien (md_do_align): Define. 36260484Sobrien * config/tc-m88k.c: Include "subsegs.h". 36360484Sobrien (m88k_do_align): New function. 36460484Sobrien 36560484Sobrien * config/te-delta.h (STRIP_UNDERSCORE): Don't define. 36660484Sobrien (COFF_NOLOAD_PROBLEM): Define. 36760484Sobrien (LOCAL_LABELS_DOLLAR, LOCAL_LABELS_FB): Define. 36860484Sobrien 36960484SobrienWed Nov 1 16:07:43 1995 Ken Raeburn <raeburn@cygnus.com> 37060484Sobrien 37160484Sobrien * config/tc-i386.c (md_assemble): For a jump instruction with 37260484Sobrien non-constant target, require 7 available bytes in the current 37360484Sobrien frag, not 6. 37460484Sobrien 37560484SobrienTue Oct 31 15:37:16 1995 Fred Fish <fnf@rtl.cygnus.com> 37660484Sobrien 37760484Sobrien * config/obj-elf.h: Include bfd/elf-bfd.h rather than 37860484Sobrien bfd/libelf.h. 37960484Sobrien 38060484SobrienTue Oct 31 16:34:28 1995 David Mosberger-Tang <davidm@azstarnet.com> 38160484Sobrien 38260484Sobrien * configure.in (alpha-*-linux*): Use ecoff. 38360484Sobrien * configure: Rebuild. 38460484Sobrien * ecoff.c (ecoff_directive_extern): New function. 38560484Sobrien (ecoff_directive_weakext): New function. 38660484Sobrien (ecoff_build_symbols): Handle weak symbols. 38760484Sobrien (ecoff_setup_ext): Likewise. 38860484Sobrien (ecoff_frob_symbol): Warn about weak common symbols. 38960484Sobrien * ecoff.h (ecoff_directive_extern): Declare. 39060484Sobrien (ecoff_directive_weakext): Declare. 39160484Sobrien * symbols.c (S_IS_WEAK): New function. 39260484Sobrien * symbols.h (S_IS_WEAK): Declare. 39360484Sobrien * config/obj-ecoff.c (obj_pseudo_table): Add "extern" and 39460484Sobrien "weakext". 39560484Sobrien * config/tc-mips.c (mips_pseudo_table): Remove "extern". 39660484Sobrien (s_extern): Remove. 39760484Sobrien 39860484SobrienTue Oct 31 13:29:08 1995 Ian Lance Taylor <ian@cygnus.com> 39960484Sobrien 40060484Sobrien * config/tc-ppc.c (ppc_lglobl): Do the right thing. 40160484Sobrien 40260484Sobrien * config/tc-ppc.c (ppc_bb): Call SF_SET_PROCESS. 40360484Sobrien (ppc_eb): Likewise. Set the storage class to C_BLOCK, not C_FCN. 40460484Sobrien (ppc_frob_symbol): Don't change C_BLOCK symbols to C_HIDEXT. 40560484Sobrien * config/obj-coff.c (coff_frob_symbol): Don't call 40660484Sobrien SA_SET_SYM_ENDNDX with the current symbol; call it with the next 40760484Sobrien one. If OBJ_XCOFF, try to figure out whether the symbol is going 40860484Sobrien to be dropped. 40960484Sobrien 41060484Sobrien * config/tc-ppc.c (md_pseudo_table): Add "bc" and "ec". 41160484Sobrien (ppc_stab_symbol): New static variable. 41260484Sobrien (ppc_change_csect): Check that ppc_toc_csect is not NULL. 41360484Sobrien (ppc_stabx): Set ppc_stab_symbol around call to symbol_make. Set 41460484Sobrien sy_tc.real_name to the stab string. 41560484Sobrien (ppc_bc, ppc_ec): New static functions. 41660484Sobrien (ppc_canonicalize_symbol_name): If ppc_stab_symbol is set, don't 41760484Sobrien do anything. 41860484Sobrien (ppc_symbol_new_hook): If ppc_stab_symbol is set, don't look for a 41960484Sobrien suffix. 42060484Sobrien (ppc_frob_symbol): Set BSF_NOT_AT_END for symbols with csect aux 42160484Sobrien entries. 42260484Sobrien 42360484Sobrien * input-scrub.c (input_scrub_push): Reset sb_index. 42460484Sobrien 42560484SobrienMon Oct 30 17:52:46 1995 Ian Lance Taylor <ian@cygnus.com> 42660484Sobrien 42760484Sobrien * listing.c (listing_newline): Don't create a frag in the absolute 42860484Sobrien section. 42960484Sobrien 43060484SobrienSat Oct 28 01:02:05 1995 Ian Lance Taylor <ian@cygnus.com> 43160484Sobrien 43260484Sobrien * config/tc-ppc.c (md_pseudo_table): Add "data" and "text". 43360484Sobrien (ppc_csect): Move most of the code to ppc_change_csect, and call 43460484Sobrien it. 43560484Sobrien (ppc_change_csect): New static function, taken from ppc_csect. 43660484Sobrien (ppc_section): New static function. 43760484Sobrien (ppc_saw_abs): New static varable. 43860484Sobrien (ppc_frob_symbol): Create aux entry for absolute symbols. Warn if 43960484Sobrien a symbol has no csect. 44060484Sobrien (ppc_adjust_symtab): New function. 44160484Sobrien * config/tc-ppc.h (tc_adjust_symtab): Define if OBJ_XCOFF. 44260484Sobrien (ppc_adjust_symtab): Declare if OBJ_XCOFF. 44360484Sobrien 44460484Sobrien * write.c (write_object_file): If tc_adjust_symtab is defined, 44560484Sobrien call it just before the call to obj_adjust_symtab. 44660484Sobrien 44760484Sobrien * symbols.c (symbol_find_or_make): Change name to be const. 44860484Sobrien * symbols.h (symbol_find_or_make): Update declaration. 44960484Sobrien 45060484SobrienThu Oct 26 19:18:27 1995 Ken Raeburn <raeburn@cygnus.com> 45160484Sobrien 45260484Sobrien * doc/as.texinfo (Align): Mention SH. 45360484Sobrien * doc/c-m68k.texi (M68K-Directives, .even): Describe behavior, not 45460484Sobrien .align value. 45560484Sobrien * doc/c-z8k.texi (Z8000 Directives, global): Fix minor typo. 45660484Sobrien (Z8000 Directives, even): Don't give numeric align value, instead 45760484Sobrien explain behavior. 45860484Sobrien 45960484SobrienThu Oct 26 11:45:03 1995 Richard Earnshaw (rearnsha@armltd.co.uk) 46060484Sobrien 46189857Sobrien * config/tc-arm.c (do_ldst): Assemble ldr/str r0, [r1] as a 46289857Sobrien pre-increment instruction. 46360484Sobrien 46460484SobrienWed Oct 25 11:59:24 1995 Per Bothner <bothner@kalessin.cygnus.com> 46560484Sobrien 46660484Sobrien * Makefile.in (diststuff): Also make info. 46760484Sobrien (maintainer-clean realclean): Also make clean-info. 46860484Sobrien 46960484SobrienTue Oct 24 15:21:33 1995 Jeffrey A Law (law@cygnus.com) 47060484Sobrien 47160484Sobrien * config/tc-hppa.c (md_pseudo_table): Add new ".nsubspa" opcode. 47260484Sobrien (pa_subspace): For ".nsubspa", always create a new subspace 47360484Sobrien with the given attributes, even if one already exists with the 47460484Sobrien same name. 47560484Sobrien 47660484SobrienTue Oct 24 14:50:38 1995 Michael Meissner <meissner@tiktok.cygnus.com> 47760484Sobrien 47860484Sobrien * config/tc-ppc.h (TC_FORCE_RELOCATION_SECTION): Rename from 47960484Sobrien TC_FORCE_RELOCATION, taking an additional section argument. If 48060484Sobrien the section of the target symbol is not the same as the current 48160484Sobrien section, always force the relocation to be used. 48260484Sobrien (MD_PCREL_FROM_SECTION): New macro to call md_pcrel_from_section. 48360484Sobrien 48460484Sobrien * config/tc-ppc.c (md_pcrel_from_section): Rename from the 48560484Sobrien md_pcrel_from function, taking an additional section argument. 48660484Sobrien Invoke TC_FORCE_RELOCATION_SECTION instead of TC_FORCE_RELOCATION. 48760484Sobrien 48860484Sobrien * write.c (TC_FORCE_RELOCATION_SECTION): Define in terms of the 48960484Sobrien older TC_FORCE_RELOCATION if not defined. 49060484Sobrien (MD_PCREL_FROM_SECTION): If not defined, invoke md_pcrel_from. 49160484Sobrien (fixup_segment): Use MD_PCREL_FROM_SECTION instead of 49260484Sobrien md_pcrel_from, and TC_FORCE_RELOCATION_SECTION instead of 49360484Sobrien TC_FORCE_RELOCATION. 49460484Sobrien 49560484SobrienMon Oct 23 16:20:04 1995 Ken Raeburn <raeburn@cygnus.com> 49660484Sobrien 49760484Sobrien * input-scrub.c (as_where): Set name to null pointer if we don't 49860484Sobrien have a file name. 49960484Sobrien * messages.c (identify): Only print filename if non-null. 50060484Sobrien (as_show_where): Ditto, for line number too. 50160484Sobrien (as_warn_internal, as_bad_internal): Ditto. 50260484Sobrien 50360484Sobrien * input-file.c (input_file_open): If the input file can't be 50460484Sobrien opened, consider it an error. 50560484Sobrien 50660484SobrienMon Oct 23 11:15:44 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk> 50760484Sobrien 50860484Sobrien * config/tc-mips.c: Added mips_4100 control, and support for 509218822Sdim accepting the 4100 as a MIPS architecture variant (md_begin, 510218822Sdim macro_build, mips_ip, md_parse_option). Adding suitable 511218822Sdim command-line OPTIONs, and updating the help text (md_show_usage). 51260484Sobrien 51360484SobrienWed Oct 18 13:20:32 1995 Ken Raeburn <raeburn@cygnus.com> 51460484Sobrien 51560484Sobrien * subsegs.c (subseg_begin): Only set absolute_frchain.fix_* when 51660484Sobrien BFD_ASSEMBLER is defined. 51760484Sobrien 51860484Sobrien * Use one active frag and one obstack per frag chain: 51960484Sobrien * frags.c (frags): Variable deleted. 52060484Sobrien (frag_alloc): New function. 52160484Sobrien (frag_grow, frag_more, frag_variant, frag_now_fix, 52260484Sobrien frag_append_1_char): Refer to frchain_now->frch_obstack instead of 52360484Sobrien frags variable. 52460484Sobrien (frag_new): Ditto. Verify that frch_last and frag_now match on 52560484Sobrien entry and exit, and that old frag_now has non-zero type. Replace 52660484Sobrien "know" uses with "assert". Use frag_alloc instead of mucking with 52760484Sobrien obstack alignment. 52860484Sobrien * frags.h (frags): Declaration deleted. 52960484Sobrien * subsegs.h (struct frchain): Add new field frch_frag_now. 53060484Sobrien * subsegs.c (frchains, dummy_frag, absolute_frchain): New static 53160484Sobrien variables. 53260484Sobrien (subsegs_begin): Initialize frchains obstack. Under gcc, don't 53360484Sobrien give it any stricter alignment than frchainS structures need. Do 53460484Sobrien not initialize frags obstack. Set frag_now to point to 53560484Sobrien dummy_obstack. Initialize absolute_frchain. 53660484Sobrien (subseg_set_rest): Save and restore frag_now in frch_frag_now 53760484Sobrien field of frchainS. Don't create new frags on section switch, and 53860484Sobrien use frag_alloc when creating a new frag chain. For absolute 53960484Sobrien section, set frchain_now to absolute_frchain. Verify that 54060484Sobrien frch_last and frag_now match on entry and exit. Initialize 54160484Sobrien per-chain obstack, and under gcc, set required alignment to that 54260484Sobrien needed by fragS structure. 54360484Sobrien 54460484Sobrien * write.c (chain_frchains_together_1): Verify fr_type is nonzero. 54560484Sobrien 54660484Sobrien * stabs.c (get_stab_string_offset): Only copy input string if a 54760484Sobrien fresh copy is needed, not if the section already exists. 54860484Sobrien (s_stab_generic): Cache stab section name to bypass lookups, since 54960484Sobrien usually it will match. Could be made faster still by changing the 55060484Sobrien memory allocation rules. 55160484Sobrien (s_xstab): Cache section name to bypass repeated string 55260484Sobrien allocation. 55360484Sobrien 55460484Sobrien * frags.c (frag_new): Deleted register declarations. 55560484Sobrien 55660484Sobrien * listing.c (frag_now): Don't declare. 55760484Sobrien 55860484Sobrien * as.c (chunksize): New variable. 55960484Sobrien (debug_memory): New variable. 56060484Sobrien (main): If debug_memory is set, reduce chunksize and 56160484Sobrien _bfd_chunksize. 56260484Sobrien * as.h (chunksize): Declare it. 56360484Sobrien * read.c (read_begin): Use it. 56460484Sobrien 56560484Sobrien * config/tc-alpha.c (md_shortopts): Include 'g'. 56660484Sobrien (md_parse_option): Ignore it. 56760484Sobrien 56860484Sobrien * Makefile.in (distclean): Remove Makefile and config.status from 56960484Sobrien testsuite directory. 57060484Sobrien (clean-here): Don't delete testsuite. Instead, delete only the 57160484Sobrien files within it that would be generated by running tests. 57260484Sobrien 57360484Sobrien * config/tc-hppa.c (hppa_elf_mark_end_of_function): Call 57460484Sobrien frag_now_fix instead of accessing obstack info directly. 57560484Sobrien * config/tc-arm.c (s_ltorg): Ditto. 57660484Sobrien (md_assemble): Ditto. 57760484Sobrien 57860484Sobrien * config/tc-i386.c (md_assemble): Call frag_grow instead of 57960484Sobrien obstack_room. 58060484Sobrien 58160484SobrienWed Oct 18 12:22:59 1995 Ken Raeburn <raeburn@cygnus.com> 58260484Sobrien 58360484Sobrien * stabs.c (aout_process_stab): Insert debug symbol into symbol 58460484Sobrien chain after parsing value expression, if any, to avoid separating 58560484Sobrien continued .stabs lines. 58660484Sobrien 58760484SobrienMon Oct 16 10:56:41 1995 Ian Lance Taylor <ian@cygnus.com> 58860484Sobrien 58960484Sobrien * config/tc-mips.c (mips_elf_pseudo_table): Remove. 59060484Sobrien (mips_pop_insert): Don't call pop_insert on mips_elf_pseudo_table. 59160484Sobrien 59260484SobrienMon Oct 16 07:07:37 1995 Michael Meissner <meissner@wogglebug.tiac.net> 59360484Sobrien 59460484Sobrien * config/tc-ppc.c (md_begin): Use new flags PPC_OPCODE_COMMON for 59560484Sobrien -mcom support and PPC_OPCODE_ANY for -many. 59660484Sobrien (md_parse_option): Ditto. 59760484Sobrien (ppc_arch): Ditto. 59860484Sobrien (md_begin): For duplicate instructions, print all duplicates 59960484Sobrien before aborting. 60060484Sobrien 60160484SobrienSun Oct 15 22:06:14 1995 Michael Meissner <meissner@cygnus.com> 60260484Sobrien 60360484Sobrien * config/tc-ppc.c (md_parse_option): Support for -mcom to turn on 60460484Sobrien common mode operation. 60560484Sobrien (md_show_usage): Add -mcom to usage message. 60660484Sobrien 60760484SobrienFri Oct 13 13:32:45 1995 steve chamberlain <sac@slash.cygnus.com> 60860484Sobrien 60960484Sobrien * expr.c (op_rank): Add O_symbol_rva. 61060484Sobrien * expr.h (operatorT): Add O_symbol_rva. 61160484Sobrien * read.c (cons_worker): Set O_symbol_rva when necessary. 61260484Sobrien * write.c (fix_new_exp): Understand O_symbol_rva. 61360484Sobrien 61460484SobrienTue Oct 10 11:34:14 1995 Ian Lance Taylor <ian@cygnus.com> 61560484Sobrien 61660484Sobrien * config/tc-mips.c: Correct s_cons arguments. From Michael 61760484Sobrien Joosten <joost@ori.cadlab.de>. 61860484Sobrien 61960484SobrienMon Oct 9 19:59:53 1995 Ian Lance Taylor <ian@cygnus.com> 62060484Sobrien 62160484Sobrien * config/tc-ppc.c (ppc_macro): Make count unsigned. 62260484Sobrien (ppc_biei): Set segment to now_seg and value to coff_n_line_nos. 62360484Sobrien (ppc_frob_symbol): Handle C_BINCL and C_EINCL symbols by setting 62460484Sobrien the fix_line field. 62560484Sobrien * config/obj-coff.c (coff_n_line_nos): Rename from n_line_nos, and 62660484Sobrien make non-static. Change all users. 62760484Sobrien * config/obj-coff.h (coff_n_line_nos): Declare. 62860484Sobrien 62960484SobrienFri Oct 6 16:24:27 1995 Ken Raeburn <raeburn@cygnus.com> 63060484Sobrien 63160484Sobrien Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 63260484Sobrien 63360484Sobrien * configure.in (AC_ARG_WITH(bfd-assembler)): Fix help message. 63460484Sobrien 63560484Sobrien * config/obj-elf.c (obj_elf_common): Convert specified byte 63660484Sobrien alignment to power of two. Set size of local bss symbol. 63760484Sobrien 63860484Sobrien * config/tc-m68k.c (tc_gen_reloc): Fix typo in variable name. 63960484Sobrien 64060484SobrienFri Oct 6 15:22:25 1995 Ian Lance Taylor <ian@cygnus.com> 64160484Sobrien 64260484Sobrien * sb.c, macro.c: Decide whether to include <string.h> or 64360484Sobrien <strings.h> just as as.h does. 64460484Sobrien 64560484SobrienFri Oct 6 09:55:33 1995 Doug Evans <dje@canuck.cygnus.com> 64660484Sobrien 64760484Sobrien * Makefile.in (site.exp): Fix setting of $srcdir. 64860484Sobrien 64960484Sobrien * config/tc-arm.c (md_atof): Fix little-endian output. 65060484Sobrien * config/tc-arm.h (ARM_BI_ENDIAN): Move definition so defined for 65160484Sobrien all coff targets. 65260484Sobrien 65360484SobrienThu Oct 5 20:17:30 1995 Ken Raeburn <raeburn@cygnus.com> 65460484Sobrien 65560484Sobrien * doc/as.texinfo: Split out the NS32k family documentation, 65660484Sobrien despite its being commented out for now. 65760484Sobrien * doc/c-ns32k.texi: New file. 65860484Sobrien 65960484Sobrien * sb.c, macro.c: Include string.h. 66060484Sobrien 66160484Sobrien * Makefile.in (comparison): Only check *.o; we don't care if 66260484Sobrien timestamps inserted by the native linker differ. 66360484Sobrien 66460484Sobrien * config/tc-alpha.c (alpha_align): Only fill with a no-op pattern 66560484Sobrien if alignment stricter than 4 bytes is requested; in that case, 66660484Sobrien align to a 4-byte boundary first. 66760484Sobrien 66860484Sobrien Thu Sep 28 19:35:27 1995 Pat Rankin <rankin@eql.caltech.edu> 66960484Sobrien 67060484Sobrien * config/obj-vms.c (VMS_RSYM_Parse): eliminate "might be used 67160484Sobrien uninitialized" warning for `Max_Source_Offset'. 67260484Sobrien 67360484SobrienWed Oct 4 16:17:02 1995 Kim Knuttila <krk@cygnus.com> 67460484Sobrien 67560484Sobrien * config/tc-ppc.c (parse_toc_entry): New function to parse [toc] 67660484Sobrien qualifiers and detect errors if present. 67760484Sobrien (md_assemble): Add call to parse_toc_entry. Also added some support 67860484Sobrien for the [tocv] qualifier. 67960484Sobrien (ppc_pe_tocd): New function to support data in the toc section. 68060484Sobrien 68160484SobrienWed Oct 4 14:03:39 1995 Ian Lance Taylor <ian@cygnus.com> 68260484Sobrien 68360484Sobrien * config/tc-ppc.c (ppc_frob_symbol): Don't create an aux entry for 68460484Sobrien an absolute symbol. 68560484Sobrien 68660484SobrienTue Oct 3 12:18:19 1995 Ian Lance Taylor <ian@cygnus.com> 68760484Sobrien 68860484Sobrien * config/tc-m68k.c (isword): Accept all values from -65536 to 68960484Sobrien +65535, so ~VAL will not be rejected. 69060484Sobrien 69160484Sobrien * cond.c (s_endif): Call demand_empty_rest_of_line. In MRI mode, 69260484Sobrien skip characters after the pseudo-op. 69360484Sobrien (s_else): Likewise. 69460484Sobrien * read.c (get_line_sb): Don't look past buffer_limit. 69560484Sobrien (s_include): In MRI mode, skip characters after the file name. 69660484Sobrien 69760484SobrienMon Oct 2 16:15:27 1995 Ian Lance Taylor <ian@cygnus.com> 69860484Sobrien 69960484Sobrien * config/m68k-parse.y (m68k_reg_parse): In MRI mode, permit 70060484Sobrien periods in register names. 70160484Sobrien 70260484SobrienSat Sep 30 23:03:31 1995 Jeff Law (law@hurl.cygnus.com) 70360484Sobrien 70460484Sobrien * config/tc-hppa.c (hppa_fix_adjustable): DP relative relocs 70560484Sobrien are not adjustable in SOM to avoid confusing the optimizing 70660484Sobrien linker. 70760484Sobrien 70860484SobrienFri Sep 29 15:18:08 1995 Ian Lance Taylor <ian@cygnus.com> 70960484Sobrien 71060484Sobrien Add some support for i960 MRI compatibility mode. 71160484Sobrien * config/tc-i960.c (md_pseudo_table): Add endian. 71260484Sobrien (get_args): Don't discard a space between alphanumeric characters. 71360484Sobrien (get_cdisp): Change text_section to now_seg. 71460484Sobrien (s_endian): New static function. 71560484Sobrien * config/tc-i960.h (MRI_MODE_NEEDS_PSEUDO_DOT): Define. 71660484Sobrien * expr.h (operatorT): Add O_logical_not, O_logical_and, and 71760484Sobrien O_logical_or. 71860484Sobrien * expr.c (operand): Treat '!' as logical not operator. If 71960484Sobrien TC_I960, in MRI mode permit `sizeof secname' and `startof 72060484Sobrien secname'. 72160484Sobrien (op_rank): Bump values by 2 to make room for && and ||. Add 72260484Sobrien entries for !, &&, and ||. 72360484Sobrien (expr_begin): Only do MRI changes if TC_M68K. 72460484Sobrien (operator): Recognize || and &&. 72560484Sobrien (expr): Handle new operatorT values. 72660484Sobrien * symbols.c (resolve_symbol_value): Handle new operatorT values. 72760484Sobrien (print_expr_1): Likewise. 72860484Sobrien * read.c (potable): Add debug, err, irep, irepc, print, purgem, 72960484Sobrien and rep. 73060484Sobrien (read_a_source_file): Handle MRI_MODE_NEEDS_PSEUDO_DOT. 73160484Sobrien (mri_comment_field): Only handle weird comments if TC_M68K. 73260484Sobrien (s_err): New function. 73360484Sobrien (s_org): Only punt in MRI mode if TC_M68K. 73460484Sobrien (s_mri_sect): Write TC_I960 version. 73560484Sobrien (s_print, s_purgem): New functions. 73660484Sobrien * read.h (s_err, s_print, s_purgem): Declare. 73760484Sobrien * cond.c (s_ifeqs): Implement. 73860484Sobrien (ignore_input): Handle MRI_MODE_NEEDS_PSEUDO_DOT. 73960484Sobrien * macro.c (macro_strip_at): New static variable. 74060484Sobrien (macro_init): Add strip_at parameter. 74160484Sobrien (do_formals): If macro_strip_at, change NARG to $NARG. 74260484Sobrien (define_macro): Skip a comma after the macro name. 74360484Sobrien (get_apost_token): Skip character if macro_strip_at, even if 74460484Sobrien macro_mri. 74560484Sobrien (macro_expand_body): If macro_strip_at, don't recognize parameters 74660484Sobrien in strings unless they are preceded by an '@'. If macro_strip_at, 74760484Sobrien pass '@' as strip character to sub_actual. If macro_strip_at, 74860484Sobrien strip '@' characters. 74960484Sobrien (macro_expand): If macro_strip_at, change NARG to $NARG. 75060484Sobrien (delete_macro): New function. 75160484Sobrien (expand_irp): Skip leading and trailing '"' characters if irpc. 75260484Sobrien * macro.h (macro_init): Mention new strip_at parameter. 75360484Sobrien (delete_macro): Declare. 75460484Sobrien * as.c (main): If TC_I960, pass flag_mri to macro_init as 75560484Sobrien strip_at; otherwise, pass 0. 75660484Sobrien * gasp.c (process_pseudo_op): Pass 0 to macro_init as strip_at. 75760484Sobrien (main): Likewise. 75860484Sobrien * doc/as.texinfo: Document i960 MRI mode. 75960484Sobrien 76060484Sobrien * as.c (show_usage): Mention --defsym. 76160484Sobrien 76260484SobrienThu Sep 28 19:25:04 1995 Stan Shebs <shebs@andros.cygnus.com> 76360484Sobrien 76460484Sobrien * mpw-config.in: Translate "powerpc" into "ppc", remove gen of 76560484Sobrien VERSION, move gen of "conf" here from makefile. 76660484Sobrien * mpw-make.sed: New file, sed commands to translate Unix makefile 76760484Sobrien into MPW syntax. 76860484Sobrien * mpw-make.in: Remove. 76960484Sobrien * mac-as.r: New file, Mac resource file. 77060484Sobrien * as.h (inline): Don't decide about defining if __MWERKS__, 77160484Sobrien remove redundant conditional and definition. 77260484Sobrien 77360484Sobrien * stabs.c (s_stab_generic): Fix syntax for OBJ_PROCESS_STAB. 77460484Sobrien 77560484SobrienThu Sep 28 15:43:15 1995 Kim Knuttila <krk@nellie> 77660484Sobrien 77760484Sobrien * config/tc-ppc.c (md_apply_fix3): Removed some TE_PE specific 77860484Sobrien manipulations, since I can't prove they're needed. 77960484Sobrien (md_begin): Removed init_regtable, insert_reg, and the call points. 78060484Sobrien (register_name): New function. Parses a register name, if appropriate. 78160484Sobrien (md_assemble): Added call to register_name to handle symbolic names. 78260484Sobrien (ppc_pe_section): Removed all duplicate IMAGE defines, and include 78360484Sobrien coff/pe.h instead. 78460484Sobrien 78560484SobrienThu Sep 28 12:09:19 1995 Ian Lance Taylor <ian@cygnus.com> 78660484Sobrien 78760484Sobrien * config/tc-ppc.h (tc_fix_adjustable): Define. 78860484Sobrien (ppc_pe_fix_adjustable): Declare. 78960484Sobrien * config/tc-ppc.c (ppc_pe_fix_adjustable): New function. 79060484Sobrien 79160484SobrienThu Sep 28 01:11:58 1995 Doug Evans <dje@deneb.cygnus.com> 79260484Sobrien 79360484Sobrien * config/tc-arm.h (TARGET_FORMAT): Define for arm-coff. 79460484Sobrien 79560484SobrienWed Sep 27 12:53:58 1995 Ian Lance Taylor <ian@cygnus.com> 79660484Sobrien 79760484Sobrien * symbols.c (S_IS_LOCAL): All symbols in reg_section are local. 79860484Sobrien 79960484Sobrien * config/tc-ppc.h (OBJ_XCOFF): Define if OBJ_COFF and not TE_PE. 80060484Sobrien Change OBJ_COFF checks to check OBJ_XCOFF instead. 80160484Sobrien (TARGET_FORMAT): Fully parenthesize. 80260484Sobrien (LEX_QM): Define if TE_PE. 80360484Sobrien * config/tc-ppc.c: Replace OBJ_COFF by OBJ_XCOFF throughout. 80460484Sobrien Remove checks of TE_PE within #ifdef OBJ_XCOFF sections. 80560484Sobrien (init_regtable): Make i unsigned. 80660484Sobrien (ppc_set_current_section): Rename from setCurrentSection. Change 80760484Sobrien all callers. 80860484Sobrien (ppc_arch): Return after as_fatal to avoid gcc warning. 80960484Sobrien (md_assemble): Only declare reloc if OBJ_ELF. Add default to 81060484Sobrien switch on fixups[i].reloc to avoid gcc warning. 81160484Sobrien (IMAGE_SGN_LNK_OTHER): Fix nested comment. 81260484Sobrien (ppc_pe_function): Don't call ppc_canonicalize_symbol_name. 81360484Sobrien (ppc_frob_symbol): Remove TE_PE section checks. 81460484Sobrien (md_estimate_size_before_relax): Return after abort to avoid gcc 81560484Sobrien warning. 81660484Sobrien (md_apply_fix3): Add BFD_RELOC_16_GOT_PCREL to switch. 81760484Sobrien * read.c (LEX_QM): Define as 0 if not defined. 81860484Sobrien (lex_type): Use LEX_QM for '?'. 81960484Sobrien 82060484Sobrien * configure.in: No need to check whether ${cpu_type} is powerpc; 82160484Sobrien it never will be. 82260484Sobrien * configure: Rebuild. 82360484Sobrien 82460484SobrienWed Sep 27 11:33:38 1995 Michael Meissner <meissner@tiktok.cygnus.com> 82560484Sobrien 82660484Sobrien * config/tc-ppc.c (md_apply_fix3): Remove Sep 26 changes to this 82760484Sobrien function, keeping other Sep. 26 changes. 82860484Sobrien 82960484SobrienWed Sep 27 10:29:13 1995 Kim Knuttila <krk@nellie> 83060484Sobrien 83160484Sobrien * configure (emulations): Added support for ppcle-*-[pe|winnt] 83260484Sobrien (target_frag): Removed an extraneous PPC definition. 83360484Sobrien * configure.in (emulations): Same 83460484Sobrien * config/tc-ppc.h: 83560484Sobrien * config/tc-ppc.c (md_pseudo_table): Base support for new or altered 83660484Sobrien pseudo ops - <previous, pdata, ydata, reldata, rdata, ualong, znop, 83760484Sobrien section, comm, function> There will be more. 83860484Sobrien (pre_defined_registers): Predefined reg table to name registers, etc 83960484Sobrien (md_begin): Setup reg table initialization 84060484Sobrien (md_assemble): Initial [toc]x(rtoc) support 84160484Sobrien (ppc_frob_label): Removed some xcoff specific processing from TE_PE 84260484Sobrien (ppc_frob_symbol): Removed some xcoff specific processing from TE_PE 843218822Sdim Added support for more predefined sections 844218822Sdim (ppc_frob_section): Removed some xcoff specific processing from TE_PE 84560484Sobrien (ppc_fix_adjustable): Removed from TE_PE mainline 84660484Sobrien (md_apply_fix3): For TE_PE toc entries, we don't need to mess 847218822Sdim with fx_addnumber. Removed for the time being. 84860484Sobrien (lots): Put back missing assignments to ppc_current_csect. 84960484Sobrien 85060484SobrienTue Sep 26 14:57:59 1995 Michael Meissner <meissner@tiktok.cygnus.com> 85160484Sobrien 85260484Sobrien * config/tc-ppc.c (ppc_elf_suffix): Support all of the V.4 85360484Sobrien relocations. 85460484Sobrien (ppc_elf_cons): Remove restriction that @ suffixes must be done 85560484Sobrien with .long. Add error if relocation does not fit in the number of 85660484Sobrien bytes provided. 85760484Sobrien (md_assemble): For absolute branches, map PC relative relocations 85860484Sobrien back into an equivalent absolute relocation. 85960484Sobrien (md_pcrel_from): If TC_FORCE_RELOCATION is true, relocation offset 86060484Sobrien is 0, not segment start. 86160484Sobrien (md_apply_fix3): Don't bother writing addend into the instruction, 86260484Sobrien since it is ignored, given that we use RELA relocations for ELF. 86360484Sobrien 86460484Sobrien * config/tc-ppc.h (TC_FORCE_RELOCATION): Define to force all 86560484Sobrien branch prediction relocations to always be emitted. 86660484Sobrien 86760484SobrienMon Sep 25 16:08:43 1995 Michael Meissner <meissner@tiktok.cygnus.com> 86860484Sobrien 86960484Sobrien * config/tc-ppc.c (ppc_elf_suffix): Lower case reloc before 87060484Sobrien testing. 87160484Sobrien (md_assemble): Be more robust in terms of relocations. 87260484Sobrien (md_apply_fix3): Allow 14 bit relocs to be emitted for external 87360484Sobrien symbols in addition to 26 bit relocs. Properly insert 26/14 bit 87460484Sobrien reloc value fields into the instruction stream. 87560484Sobrien 87660484SobrienMon Sep 25 00:23:16 1995 Ian Lance Taylor <ian@cygnus.com> 87760484Sobrien 87860484Sobrien * config/tc-arm.c (md_atof): Output little endian constants in 87960484Sobrien little endian mode. 88060484Sobrien 88160484Sobrien * config/obj-coff.c (obj_coff_section): Pass &type, not type, 88260484Sobrien s_mri_sect. 88360484Sobrien 88460484Sobrien * configure.in: Fix typo: fmt-elf to fmt=elf. 88560484Sobrien 88660484SobrienFri Sep 22 16:34:46 1995 Michael Meissner <meissner@tiktok.cygnus.com> 88760484Sobrien 88860484Sobrien * config/tc-ppc.c (ppc_elf_suffix): Rewrite to use a table of 88960484Sobrien strings and relocations they represent. Add @br{,n}taken for 89060484Sobrien branch taken/not taken support. 89160484Sobrien (md_apply_fix3): Add BFD_RELOC_PPC_B16_BR{,N}TAKEN support. 89260484Sobrien 89360484SobrienThu Sep 21 21:10:17 1995 Michael Meissner <meissner@cygnus.com> 89460484Sobrien 89560484Sobrien * config/tc-ppc.c (md_parse_option): -mrelocatable-lib now only 89660484Sobrien sets EF_PPC_RELOCATABLE_LIB and not also EF_PPC_RELOCATABLE. 89760484Sobrien 89860484SobrienThu Sep 21 16:30:56 1995 Ian Lance Taylor <ian@cygnus.com> 89960484Sobrien 90060484Sobrien * subsegs.c (subseg_set): Permit SEG_ABSOLUTE in know expression. 90160484Sobrien * expr.c (expr): Account for new operatorT values in know 90260484Sobrien expression. 90360484Sobrien 90460484Sobrien * write.c (fixup_segment): Clear fixp->fx_subsy if the relocation 90560484Sobrien is fully resolved. 90660484Sobrien 90760484SobrienThu Sep 21 14:11:49 1995 Michael Meissner <meissner@cygnus.com> 90860484Sobrien 90960484Sobrien * config/tc-ppc.c (ppc_flags): New variable to hold the flag bits 91060484Sobrien to set in the ELF header. 91160484Sobrien (md_parse_option): Add support for -mrelocatable-lib. Make both 91260484Sobrien -mrelocatable and -mrelocatable-lib set ppc_flags. 91360484Sobrien (md_begin): Set ELF flags with ppc_flags. 91460484Sobrien 91560484SobrienWed Sep 20 13:01:52 1995 Ian Lance Taylor <ian@cygnus.com> 91660484Sobrien 91760484Sobrien * Makefile.in (maintainer-clean): New target, synonym for 91860484Sobrien realclean. Add GNU standard maintainer-clean echos. 91960484Sobrien * doc/Makefile.in (maintainer-clean): New target, synonym for 92060484Sobrien realclean. 92160484Sobrien 92260484SobrienTue Sep 19 11:31:31 1995 Ian Lance Taylor <ian@cygnus.com> 92360484Sobrien 92460484Sobrien * config/tc-m68k.c (m68k_ip): Reject immediate operands for '%'. 92560484Sobrien 92660484Sobrien * config/tc-m68k.c (m68k_ip): Reject immediate operands for '|'. 92760484Sobrien Replace 'P' with '0', '1', and '2'. 92860484Sobrien 92960484Sobrien * config/tc-m68k.c (parse_mri_control_operand): Change leftstop 93060484Sobrien and rightstop to not be const. 93160484Sobrien (parse_mri_control_expression): Likewise. 93260484Sobrien (build_mri_control_operand): Likewise. Use m68k_ip_op to examine 93360484Sobrien the operand, not m68k_reg_parse. 93460484Sobrien (s_mri_if): In MRI mode, stop at the first '*'. 93560484Sobrien (s_mri_while): Likewise. 93660484Sobrien (s_mri_else): In MRI mode, ignore trailing characters. 93760484Sobrien (s_mri_endi, s_mri_break, s_mri_next, s_mri_for): Likewise. 93860484Sobrien (s_mri_endf, s_mri_repeat, s_mri_until, s_mri_endw): Likewise. 93960484Sobrien * config/m68k-parse.y: Revert yesterday's change. 94060484Sobrien * config/m68k-parse.h: Revert yesterday's change. 94160484Sobrien 94260484SobrienMon Sep 18 15:22:28 1995 Ian Lance Taylor <ian@cygnus.com> 94360484Sobrien 94460484Sobrien * config/tc-m68k.c (parse_mri_control_operand): Change leftstart 94560484Sobrien and rightstart to not be const. 94660484Sobrien (parse_mri_control_expression): Likewise. 94760484Sobrien (build_mri_control_operand): Likewise. If the left side of the 94860484Sobrien comparison is a register, and the right side is not, swap the two 94960484Sobrien sides. 95060484Sobrien * config/m68k-parse.y (m68k_reg_parse): Make globally visible. 95160484Sobrien * config/m68k-parse.h (m68k_reg_parse): Declare. 95260484Sobrien 95360484Sobrien * read.c (mri_comment_field): New function. 95460484Sobrien (mri_comment_end): New function. 95560484Sobrien (s_align_bytes): Use mri_comment_field. 95660484Sobrien (s_align_ptwo, s_comm, s_mri_common, s_fail, s_globl): Likewise. 95760484Sobrien (s_float_space, s_struct): Likewise. 95860484Sobrien (s_space): Use mri_comment_field rather than doing it by hand. 95960484Sobrien (cons_worker, equals): Likewise. 96060484Sobrien (s_end): Ignore comments starting with '*' or '!'. 96160484Sobrien * read.h (mri_comment_field): Declare. 96260484Sobrien (mri_comment_end): Declare. 96360484Sobrien * cond.c (s_if): Use mri_comment_field. 96460484Sobrien * config/tc-m68k.c (s_chip, s_reg): Likewise. 96560484Sobrien 96660484Sobrien * write.c (fixup_segment): Handle ABS-sym in -sym case rather than 96760484Sobrien sym-sym case. 96860484Sobrien * config/obj-coff.c (fixup_segment): Likewise. Permit negative 96960484Sobrien symbols if TC_M68K. 97060484Sobrien * config/tc-m68k.c (tc_coff_fix2rtype): If fx_tcbit is set, return 97160484Sobrien R_RELLONG_NEG. 97260484Sobrien (tc_gen_reloc): If fx_tcbit is set, abort. 97360484Sobrien (md_apply_fix_2): For a negative reloc, move fx_subsy to fx_addsy, 97460484Sobrien and set fx_tcbit. 97560484Sobrien 97660484Sobrien * config/tc-m68k.c (s_reg): Ignore comment field in MRI mode. 97760484Sobrien 97860484SobrienMon Sep 18 14:44:04 1995 Arne H. Juul <arnej@pvv.unit.no> 97960484Sobrien 98060484Sobrien * configure.in (mips-dec-netbsd*): New target. 98160484Sobrien * configure: Rebuild. 98260484Sobrien 98360484SobrienSun Sep 17 22:17:43 1995 Ian Lance Taylor <ian@cygnus.com> 98460484Sobrien 98560484Sobrien * configure.in: Set endian to little for mips-*-ultrix*. 98660484Sobrien * configure: Rebuild. 98760484Sobrien 98860484SobrienFri Sep 15 13:16:55 1995 Ian Lance Taylor <ian@cygnus.com> 98960484Sobrien 99060484Sobrien * expr.c (current_location): New static function. Handle magic 99160484Sobrien symbol `.'; in absolute section, return a constant. 99260484Sobrien (operand): Call current_location for '.' and '$', instead of doing 99360484Sobrien it inline. In MRI mode, call current_location for '*'. 99460484Sobrien 99560484SobrienFri Sep 15 21:39:29 1995 Jeff Law (law@snake.cs.utah.edu) 99660484Sobrien 99760484Sobrien * config/tc-m68k.c: Change some "CONST" references to "const". 99860484Sobrien 99960484SobrienFri Sep 15 17:27:41 1995 Ken Raeburn <raeburn@cygnus.com> 100060484Sobrien 100160484Sobrien Tue Sep 12 17:08:23 1995 Pat Rankin <rankin@eql.caltech.edu> 100260484Sobrien 100360484Sobrien * config/obj-vms.c (VMS_stab_parse): simplify first loop; 100460484Sobrien use S_GET_NAME/modify/S_SET_NAME sequence instead of abusing 100560484Sobrien S_GET_NAME when updating symbol name. 100660484Sobrien (local_symbols_DST): first prefix/postfix typo from July 21st. 100760484Sobrien [plus comment reformatting --kr] 100860484Sobrien 100960484SobrienWed Sep 13 12:33:03 1995 Ian Lance Taylor <ian@cygnus.com> 101060484Sobrien 101160484Sobrien * Makefile.in (EXPECT): New variable. 101260484Sobrien (CHECKFLAGS): Remove. 101360484Sobrien (site.exp): New target. 101460484Sobrien (check): Rewrite to invoke runtest directly, rather than recurring 101560484Sobrien down into testsuite. 101660484Sobrien (clean-here): Remove testsuite directory. 101760484Sobrien (clean, distclean): Don't recur into testsuite. 101860484Sobrien * configure.in: Don't call AC_CONFIG_SUBDIRS(testsuite). 101960484Sobrien * configure: Rebuild. 102060484Sobrien 102160484Sobrien * write.c (relax_and_size_seg): Change to the segment we are 102260484Sobrien relaxing, in case md_convert_frag, called by cvt_frag_to_fill, 102360484Sobrien wants to call fix_new. 102460484Sobrien * config/tc-m68k.c (m68k_ip): Permit PC relative code if the 102560484Sobrien segment of the symbol is the current segment, not just in 102660484Sobrien text_section. 102760484Sobrien (md_convert_frag_1): Don't call subseg_change. 102860484Sobrien (md_estimate_size_before_relax): Likewise. 102960484Sobrien 103060484SobrienTue Sep 12 10:36:40 1995 Doug Evans <dje@canuck.cygnus.com> 103160484Sobrien 103260484Sobrien * config/tc-arm.c (md_atof): Fix debugging printf, and leave it 103360484Sobrien out by default. 103460484Sobrien 103560484SobrienMon Sep 11 11:39:11 1995 Ian Lance Taylor <ian@cygnus.com> 103660484Sobrien 103760484Sobrien * doc/configure.in: Remove unused file. 103860484Sobrien 103960484Sobrien * app.c (do_scrub_chars): Grab all available spaces at start of 104060484Sobrien line before preserving a single space. Remove state == 0 test 104160484Sobrien which will never succeed. 104260484Sobrien * macro.c (macro_expand_body): Delete local variables from the 104360484Sobrien formal hash table. 104460484Sobrien (macro_expand): In MRI mode, stop when whitespace is seen in the 104560484Sobrien argument list. 104660484Sobrien 104760484Sobrien * sb.c: Include "libiberty.h". 104860484Sobrien * macro.c: Likewise. Also include <stdlib.h> if it exists. 104960484Sobrien 105060484SobrienFri Sep 8 00:27:46 1995 Ian Lance Taylor <ian@cygnus.com> 105160484Sobrien 105260484Sobrien * app.c (do_scrub_chars): In MRI mode, keep a space before a 105360484Sobrien possible comment character. 105460484Sobrien * config/tc-m68k.c (m68k_ip): In MRI mode, ignore anything after 105560484Sobrien an instruction which takes no operands. 105660484Sobrien 105760484Sobrien * Makefile.in (install): Don't install gasp in $(tooldir). 105860484Sobrien 105960484Sobrien * config/tc-mips.c (macro): Handle a non zero base register for 106060484Sobrien M_U{L,S}{D,W,H}_A. 106160484Sobrien 106260484Sobrien * gasp.c (show_usage): Put program_name argument in first fprintf, 106360484Sobrien not second. 106460484Sobrien 106560484SobrienThu Sep 7 12:33:58 1995 Ian Lance Taylor <ian@cygnus.com> 106660484Sobrien 106760484Sobrien * expr.c (operand): Handle 08 and 09 in MRI mode. 106860484Sobrien * macro.c (ISSEP): Remove duplicated `"' character. 1069218822Sdim (get_any_string): Copy some characters for which ISSEP is true: 107060484Sobrien ';', '>', '(', ')'. Otherwise we can get in an infinite loop. 107160484Sobrien * read.c (s_space): In MRI mode, the expressions stop at the first 107260484Sobrien unquoted space. 107360484Sobrien (cons_worker): In MRI mode, restore the terminating character at 107460484Sobrien the end of the function. 107560484Sobrien 107660484Sobrien * read.c (cons_worker): Don't use #elif; old compilers don't 107760484Sobrien support it. 107860484Sobrien 107960484SobrienWed Sep 6 21:13:06 1995 Ian Lance Taylor <ian@cygnus.com> 108060484Sobrien 108160484Sobrien * app.c (do_scrub_chars): In MRI mode, silently end quoted strings 108260484Sobrien at newline characters. In MRI mode, always keep spaces in the 108360484Sobrien operands field. In MRI mode, treat a line comment character as a 108460484Sobrien regular comment character following a space. 108560484Sobrien * cond.c (ignore_input): Use strncasecmp rather than strncmp when 108660484Sobrien looking for special pseudo-ops. 108760484Sobrien * read.c (cons_worker): In MRI mode, the expressions stop at the 108860484Sobrien first unquoted space. 108960484Sobrien (equals): Likewise. 109060484Sobrien 109160484SobrienWed Sep 6 15:03:53 1995 Jim Wilson <wilson@chestnut.cygnus.com> 109260484Sobrien 109360484Sobrien * config/tc-sh.c (get_operands): Read third arg if it exists. 109460484Sobrien Otherwise, clear it. 109560484Sobrien (get_specific, case F_FR0): Add. 109660484Sobrien 109760484SobrienWed Sep 6 15:03:53 1995 Jim Wilson <wilson@chestnut.cygnus.com> 109860484Sobrien 109960484Sobrien * config/tc-sh.c (get_specific): Delete arg_to_test. 110060484Sobrien (md_assemble): Increase operand array from 2 to 3. 110160484Sobrien 110260484SobrienTue Sep 5 16:47:36 1995 Stan Shebs <shebs@andros.cygnus.com> 110360484Sobrien 110460484Sobrien * config/tc-mips.c: Remove CYGNUS LOCAL comments. 110560484Sobrien (md_begin): Use 0/1 instead of TRUE/FALSE. 110660484Sobrien (md_show_usage): Break up long format string for the benefit 110760484Sobrien of lame compilers. 110860484Sobrien * config/tc-m68k.c (md_show_usage): Ditto. 110960484Sobrien * gasp.c (show_usage): Ditto. 111060484Sobrien * macro.c (check_macro): Cast result of hash_find. 111160484Sobrien 111260484SobrienTue Sep 5 14:46:38 1995 Ken Raeburn <raeburn@cygnus.com> 111360484Sobrien 111460484Sobrien * configure.in: When testing for a free() declaration in system 111560484Sobrien header files, cast the address to a function pointer, not to an 111660484Sobrien integer. 111760484Sobrien 111860484Sobrien * write.c (fix_new_internal): Call TC_INIT_FIX_DATA if TC_FIX_TYPE 111960484Sobrien is defined. Don't initialize fx_bsr. Verify that fx_size field 112060484Sobrien is wide enough to hold stored value. 112160484Sobrien * write.h (struct fix): Change tc_fix_data to type TC_FIX_TYPE if 112260484Sobrien that is defined, otherwise omit it. Delete fx_bsr. Change 112360484Sobrien fx_size to unsigned char. 112460484Sobrien * config/tc-i960.h (TC_FIX_TYPE, fx_bsr, TC_INIT_FIX_DATA): New 112560484Sobrien macros. 112660484Sobrien * config/tc-ns32k.h (TC_FIX_TYPE, fx_bsr, TC_INIT_FIX_DATA): New 112760484Sobrien macros. 112860484Sobrien * config/tc-hppa.h (TC_FIX_TYPE): Define as PTR. 112960484Sobrien 113060484Sobrien * config/tc-i860.c (md_apply_fix): Delete code for checking 113160484Sobrien fx_im_disp, and for handling non-zero values, since it never gets 113260484Sobrien set after being initialized to zero. 113360484Sobrien 113460484Sobrien * write.h (struct fix): Make fx_im_disp always 2 bits, since the 113560484Sobrien only tc-* files actually using it need that much. 113660484Sobrien 113760484Sobrien NS32K changes from Ian Dall: 113860484Sobrien * configure.in: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and 113960484Sobrien ns32k-pc532-lites* like ns32k-pc532-netbsd*. 114060484Sobrien * config/tc-ns32k.h (LOCAL_LABELS_FB): Define to 1. 114160484Sobrien 114260484SobrienFri Sep 1 17:02:15 1995 steve chamberlain <sac@slash.cygnus.com> 114360484Sobrien 114460484Sobrien * write.c (fixup_segment): Get TC_FORCE_RELOCATION up the 114560484Sobrien right way! 114660484Sobrien 114760484SobrienFri Sep 1 08:20:19 1995 James G. Smith <jsmith@beauty.cygnus.com> 114860484Sobrien 1149218822Sdim * config/tc-mips.c (md_parse_option, md_begin, md_show_usage): 115060484Sobrien Add support for "-mcpu=vr4300" as processor identifier. 115160484Sobrien 115260484SobrienThu Aug 31 16:41:06 1995 steve chamberlain <sac@slash.cygnus.com> 115360484Sobrien 115460484Sobrien * write.c (fixup_segment): Remove change of 29th. 115560484Sobrien * config/tc-{i386,arm}.h (TC_FORCE_RELOCATION): Keep RVA relocs. 115660484Sobrien 115760484SobrienTue Aug 29 19:42:58 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 115860484Sobrien 115960484Sobrien * config/tc-m68k.c (m68k_ip) [case POST/PRE/BASE]: Fix typo when 1160218822Sdim looking at outer displacement. Don't set the postindex bit if the 1161218822Sdim index suppress bit is set (for memory indirect addressing mode). 116260484Sobrien 116360484SobrienThu Aug 31 06:49:37 1995 Doug Evans <dje@canuck.cygnus.com> 116460484Sobrien 116560484Sobrien * config/tc-arm.c (tc_gen_reloc): Delete duplicated code. 116660484Sobrien 116760484SobrienWed Aug 30 23:51:57 1995 Ian Lance Taylor <ian@cygnus.com> 116860484Sobrien 116960484Sobrien * app.c (do_scrub_chars): Free saved_input when the from buffer 117060484Sobrien exactly fills the to buffer. 117160484Sobrien 117260484SobrienWed Aug 30 13:46:39 1995 Doug Evans <dje@canuck.cygnus.com> 117360484Sobrien 117460484Sobrien * config/tc-sparc.c (parse_keyword_arg, parse_const_expr_arg): New fns. 117560484Sobrien (sparc_ip): Call them for asi, membar, and prefetch parsing. 117660484Sobrien 117760484SobrienTue Aug 29 15:45:37 1995 Doug Evans <dje@canuck.cygnus.com> 117860484Sobrien 117960484Sobrien * config/tc-sparc.c (membar_masks): Deleted. 118060484Sobrien (sparc_ip): Clean up ASI and membar support. 118160484Sobrien 118260484SobrienTue Aug 29 13:20:27 1995 steve chamberlain <sac@slash.cygnus.com> 118360484Sobrien 118460484Sobrien * read.c (potable): Rva is new entry. 118560484Sobrien (cons_worker): New, split from cons. Handles rva. 118660484Sobrien (cons, s_rva): Call cons_worker. 118760484Sobrien * read.h (s_rva): New declaration. 118860484Sobrien * write.c (fixup_segment): Don't throw away rva relocs. 118960484Sobrien * config/tc-arm.c (md_apply_fix, tc_gen_reloc): Handle RVA. 119060484Sobrien * config/tc-i386.c (tc_coff_fix2type): Handle RVA. 119160484Sobrien * config/tc-i386.h (TC_COUNT_RELOC): Remember RVAs. 119260484Sobrien (TC_RVA_RELOC): New definition. 119360484Sobrien 119460484SobrienSun Aug 27 17:41:05 1995 Doug Evans <dje@canuck.cygnus.com> 119560484Sobrien 119660484Sobrien * config/tc-arm.c (do_swi): Allow optional leading '#'. 119760484Sobrien 119860484SobrienSat Aug 26 17:24:20 1995 Ian Lance Taylor (ian@cygnus.com) 119960484Sobrien 120060484Sobrien * config/tc-m68k.c (comment_chars): If TE_DELTA is defined, 120160484Sobrien include '#'. 120260484Sobrien * config/tc-m68k.h (NO_PSEUDO_DOT): Define if TE_DELTA is 120360484Sobrien defined. 120460484Sobrien 120560484Sobrien * config/te-delta.h: Include obj-format.h. 120660484Sobrien * config/te-sco386.h: Likewise. 120760484Sobrien * config/te-sysv32.h: Likewise. 120860484Sobrien 120960484Sobrien * app.c (scrub_file): Remove. 121060484Sobrien (scrub_from_file, scrub_to_file): Remove. 121160484Sobrien (scrub_string, scrub_last_string): Remove. 121260484Sobrien (scrub_from_string, scrub_to_string): Remove. 121360484Sobrien (saved_input, saved_input_len): New static variables. 121460484Sobrien (struct app_saved): Remove scrub_string, scrub_last_string, and 121560484Sobrien scrub_file fields. Add saved_input and saved_input_len fields. 121660484Sobrien (app_push): Adjust saved fields for changes in struct app_save. 121760484Sobrien Initialize state and saved_input. 121860484Sobrien (app_pop): Adjust saved fields for changes in struct app_save. 121960484Sobrien (do_scrub_chars): Rename from do_scrub_next_char and rewrite to 122060484Sobrien process a buffer at a time rather than a character at a time. 122160484Sobrien (main, as_warn): Remove obsolete testing code. 122260484Sobrien * as.h (do_scrub_next_char): Don't declare. 122360484Sobrien (do_scrub_chars): Declare. 122460484Sobrien (scrub_from_file, scrub_from_string): Don't declare. 122560484Sobrien (scrub_to_file, scrub_to_string): Don't declare. 122660484Sobrien * input-file.c (input_file_get): New static function. 122760484Sobrien (input_file_give_next_buffer): Call do_scrub_chars rather than 122860484Sobrien do_scrub_next_char. 122960484Sobrien * read.c (scrub_string, scrub_string_end): New static variables. 123060484Sobrien (scrub_from_string): New static function. 123160484Sobrien (read_a_source_file): Call do_scrub_chars rather than 123260484Sobrien do_scrub_next_char. 123360484Sobrien 123460484SobrienThu Aug 24 18:50:19 1995 Ian Lance Taylor (ian@cygnus.com) 123560484Sobrien 123660484Sobrien * gasp.c (as_abort): New function. 123760484Sobrien * sb.c (sb_build): Revert yesterday's patch. 123860484Sobrien 123960484Sobrien * Makefile.in (gasp.new): Depend upon ../libiberty/libiberty.a. 124060484Sobrien Just link against libiberty, not against $(LIBS). 124160484Sobrien 124260484SobrienWed Aug 23 15:18:20 1995 Ian Lance Taylor (ian@cygnus.com) 124360484Sobrien 124460484Sobrien * sb.c (sb_build): Undefine abort before calling it, since gasp 124560484Sobrien does not provide as_abort. 124660484Sobrien 124760484SobrienWed Aug 23 10:40:41 1995 Michael Meissner <meissner@tiktok.cygnus.com> 124860484Sobrien 124960484Sobrien * config/tc-ppc.c (set_target_endian): New static to say whether 125060484Sobrien we've initialized target_big_endian or not. 125160484Sobrien (md_parse_option): Set set_target_endian if we set the variable 125260484Sobrien target_big_endian. 125360484Sobrien (md_begin): Only set target_big_endian if !set_target_endian. 125460484Sobrien 125560484SobrienTue Aug 22 03:00:33 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com> 125660484Sobrien 125760484Sobrien Sat Aug 19 18:08:16 1995 Pat Rankin <rankin@eql.caltech.edu> 125860484Sobrien 125960484Sobrien * config/obj-vms.h (DST_S_C_SRC_SETREC_W, DST_S_C_SRC_DEFLINES_B): 126060484Sobrien New macros. 126160484Sobrien * config/obj-vms.c (VMS_TBT_Line_PC_Correlation, 126260484Sobrien VMS_TBT_Source_Lines): Make traceback info be robust enough to 126360484Sobrien handle huge source files. 126460484Sobrien (VMS_TBT_Source_File): Reorganize the native- vs cross-assembly 126560484Sobrien support so that actual object file output is clearer. 126660484Sobrien (VMS_TBT_Source_File: Fab, Nam, Date_Xab, File_Header_Xab): 126760484Sobrien Replace static variables with automatic ones. 126860484Sobrien 126960484Sobrien Sat Aug 12 20:18:15 1995 Pat Rankin <rankin@eql.caltech.edu> 127060484Sobrien 127160484Sobrien * config/obj-vms.c (Module_Name): new file scope variable. 127260484Sobrien (VMS_TBT_Module_Begin): use it instead of local variable. 127360484Sobrien (Write_VMS_MHD_Records): ditto; assign its value here. 127460484Sobrien (Write_VMS_EOM_Record): second argument has type valueT. 127560484Sobrien (VMS_Initialized_Data_Size): simplify search loop; return 127660484Sobrien type is offsetT; second argument is unsigned. 127760484Sobrien 127860484Sobrien Sat Jun 17 19:05:25 1995 Pat Rankin (rankin@eql.caltech.edu) 127960484Sobrien 128060484Sobrien * messages.c (as_perror): Use xstrerror instead of strerror. 128160484Sobrien 128260484SobrienMon Aug 21 13:57:20 1995 Ian Lance Taylor <ian@cygnus.com> 128360484Sobrien 128460484Sobrien * as.c (parse_args): Accept --defsym SYM=VALUE. 128560484Sobrien * doc/as.texinfo, doc/as.1: Document --defsym. 128660484Sobrien 128760484Sobrien * read.c (read_a_source_file): In MRI mode, don't end the 128860484Sobrien statement inside a quotation. 128960484Sobrien (s_space): Don't warn about a zero repeat count in MRI mode. 129060484Sobrien * config/tc-m68k.c (crack_operand): In MRI mode, don't count 129160484Sobrien parentheses inside quotes. 129260484Sobrien (md_assemble): In MRI mode, anything after the operands field is a 129360484Sobrien comment. 129460484Sobrien (parse_mri_control_operand): Adjust start and stop to remove 129560484Sobrien spaces. 129660484Sobrien (s_mri_for): Likewise. 129760484Sobrien 129860484Sobrien * cond.c (s_ifdef): Restore the character after the symbol name, 129960484Sobrien in case it is a newline. 130060484Sobrien (s_if): If ignoring the current tree, don't try to parse the 130160484Sobrien expression. 130260484Sobrien 130360484Sobrien * app.c (do_scrub_next_char): If LEX_IS_STRINGQUOTE or 130460484Sobrien LEX_IS_ONECHAR_QUOTE is seen in state 10, preserve one space. 130560484Sobrien 130660484Sobrien * doc/as.texinfo: Document irp, irpc, macro, and rept. MRI mode 130760484Sobrien now supports macros, ifc, ifnc, irp, irpc, rept, and endr, without 130860484Sobrien using gasp. 130960484Sobrien 131060484Sobrien Add support for macros. 131160484Sobrien * as.c: Include sb.h and macro.h. 131260484Sobrien (max_macro_next): New global variable. 131360484Sobrien (main): Call macro_init. 131460484Sobrien (macro_expr): New static function. 131560484Sobrien * as.h (max_macro_nest): Declare. 131660484Sobrien * read.c (line_label): Rename from mri_line_label. Change all 131760484Sobrien uses. 131860484Sobrien (potable): Add exitm, irp, irpc, macro, mexit, rept. 131960484Sobrien (read_a_source_file): Always clear line_label at the start of a 132060484Sobrien line, not just when flag_mri or LABELS_WITHOUT_COLONS. Fix 132160484Sobrien MRI/LABELS_WITHOUT_COLONS handling. In MRI mode, permit label: 132260484Sobrien equ val. Set line_label when calling colon. In MRI mode, a 132360484Sobrien leading '.' does not imply a pseudo-op. Check for macro expansion 132460484Sobrien before calling md_assemble. 132560484Sobrien (s_irp): New function. 132660484Sobrien (get_line_sb): New static function. 132760484Sobrien (s_macro): New function. 132860484Sobrien (s_mexit): New function. 132960484Sobrien (s_rept): New function. 133060484Sobrien * read.h (line_label): Rename from mri_line_label. 133160484Sobrien (s_irp, s_rept): Declare. 133260484Sobrien (s_macro, s_mexit): Declare. 133360484Sobrien * input-scrub.c: Include sb.h. 133460484Sobrien (sb_index, from_sb): New static variables. 133560484Sobrien (macro_nest): New static variable. 133660484Sobrien (struct input_save): Add sb_index and from_sb fields. Change 133760484Sobrien next_saved_file field to be struct input_save *. 133860484Sobrien (next_saved_file): Changed to be struct input_save *. 133960484Sobrien (input_scrub_push): Change to return type struct input_save *. 134060484Sobrien Save sb_index and from_sb. 134160484Sobrien (input_scrub_pop): Change parameter type to struct input_save *. 134260484Sobrien Restore sb_index and from_sb. 134360484Sobrien (input_scrub_include_sb): New function. 134460484Sobrien (input_scrub_next_buffer): Handle reading from from_sb. 134560484Sobrien (bump_line_counters): Only increment lines if not using from_sb. 134660484Sobrien * config/tc-m68k.c (opt_table): Add nest. 134760484Sobrien (opt_nest): New static function. 134860484Sobrien * gasp.c: Include sb.h and macro.h. Move all sb related functions 134960484Sobrien and definitions to sb.h and sb.c. Move all macro related 135060484Sobrien functions and definitions to macro.h and macro.c. 135160484Sobrien * sb.h, sb.c: New files, extracted from gasp.c. 135260484Sobrien * macro.h, macro.c: Likewise. 135360484Sobrien * Makefile.in (OBJS): Add sb.o and macro.o 135460484Sobrien (GASPOBJS): Define. 135560484Sobrien (gasp.new): Depend upon $(GASPOBJS). Use $(GASPOBJS) to link. 135660484Sobrien (TARG_CPU_DEP_m68k): Depend upon subsegs.h. 135760484Sobrien (gasp.o): Depend upon sb.h and macro.h. 135860484Sobrien (sb.o): New target. 135960484Sobrien (macro.o): New target. 136060484Sobrien (as.o): Depend upon sb.h and macro.h. 136160484Sobrien (input-scrub.o): Depend upon sb.h. 136260484Sobrien (read.o): Depend upon sb.h and macro.h. 136360484Sobrien 136460484Sobrien * cond.c (get_mri_string): New static function. 136560484Sobrien (s_ifc): New function. 136660484Sobrien * read.c (potable): Add ifc and ifnc. 136760484Sobrien * read.h (s_ifc): Declare. 136860484Sobrien 136960484Sobrien * app.c (do_scrub_begin): In MRI mode, set lex of ' to 137060484Sobrien LEX_IS_STRINGQUOTE. 137160484Sobrien 137260484SobrienMon Aug 21 13:41:33 1995 Michael Meissner <meissner@cygnus.com> 137360484Sobrien 137460484Sobrien * config/tc-ppc.c (md_assemble): Allow @HA, @L, and @H suffixes on 137560484Sobrien constant expressions. 137660484Sobrien 137760484SobrienSun Aug 20 15:54:37 1995 Jim Wilson <wilson@cygnus.com> 137860484Sobrien 137960484Sobrien * config/tc-arm.c (md_reloc_size): Add const to declaration. 138060484Sobrien 138160484SobrienFri Aug 18 10:58:09 1995 Ian Lance Taylor <ian@cygnus.com> 138260484Sobrien 138360484Sobrien * read.c (s_include): In MRI mode, don't expect quotes around the 138460484Sobrien file name. 138560484Sobrien * listing.c (listing_title): Don't require the title to be quoted. 138660484Sobrien 138760484Sobrien * gasp.c (include_print_where_line): Always subtract 1 from 138860484Sobrien linecount before printing it. 138960484Sobrien (process_file): In MRI mode, lines beginning with '*' or '!' are 139060484Sobrien comments. 139160484Sobrien (do_reg): In MRI mode, don't require parentheses. 139260484Sobrien (do_include): In MRI mode, don't requires quotes. If the file can 139360484Sobrien not be found in the include path, try opening it in the current 139460484Sobrien directory. Print the file name correctly in the error message. 139560484Sobrien (chartype_init): In MRI mode, set FIRSTBIT for '.'. 139660484Sobrien (main): Set comment_char to ';' when entering MRI mode. 139760484Sobrien 139860484Sobrien * config/tc-m68k.c: Include subsegs.h. 139960484Sobrien (m68k_ip): Pass 64 rather than -1 to add_Fix in 'B' 'B' case. 140060484Sobrien (md_pcrel_from): If fx_pcrel_adjust is 64, use -1 instead. 140160484Sobrien 140260484Sobrien * config/tc-sparc.h (tc_fix_adjustable): For OBJ_AOUT case, adjust 140360484Sobrien BFD_RELOC_16 and BFD_RELOC_32 relocs. 140460484Sobrien 140560484SobrienWed Aug 16 14:48:44 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com> 140660484Sobrien 140760484Sobrien * as.h (alloca): Use void* declaration on HP/UX. 140860484Sobrien 140960484SobrienWed Aug 16 12:49:17 1995 Ian Lance Taylor <ian@cygnus.com> 141060484Sobrien 141160484Sobrien * config/tc-sparc.c (tc_gen_reloc): If PIC, only change PCREL_S2 141260484Sobrien to WPLT30 for an undefined or external symbol. Don't consider 141360484Sobrien PC10 or PC22 to be a PC relative reloc when choosing between 141460484Sobrien fx_addnumber and fx_offset. 141560484Sobrien 141660484Sobrien * config/tc-z8k.c (md_number_to_chars): Don't do it here, call 141760484Sobrien number_to_chars_bigendian. 141860484Sobrien * config/tc-z8k.h (TARGET_BYTES_BIG_ENDIAN): Define. 141960484Sobrien 142060484Sobrien * expr.c (operand): Add support for .startof. and .sizeof. by 142160484Sobrien using magic symbol names which the linker will recognize 142260484Sobrien specially. 142360484Sobrien * doc/as.texinfo: Take out note that .startof. and .sizeof. are 142460484Sobrien not supported. 142560484Sobrien 142660484SobrienTue Aug 15 15:08:49 1995 Ian Lance Taylor <ian@cygnus.com> 142760484Sobrien 142860484Sobrien * config/tc-m68k.c (md_pseudo_table): Add MRI structured control 142960484Sobrien directives: if, if.b, if.w, if.l, else, else.s, else.l, endi, 143060484Sobrien break, break.s, break.l, next, next.s, next.l, for, for.b, for.w, 143160484Sobrien for.l, endf, repeat, until, until.b, until.w, until.l, while, 143260484Sobrien while.b, while.w, while.l, endw. 143360484Sobrien (enum mri_control_type): Define. 143460484Sobrien (struct mri_control_info): Define. 143560484Sobrien (mri_control_stack): New static variable. 143660484Sobrien (mri_control_index): New static variable. 143760484Sobrien (mri_control_label): New static function. 143860484Sobrien (push_mri_control, pop_mri_control): New static functions. 143960484Sobrien (parse_mri_condition): New static function. 144060484Sobrien (parse_mri_control_operand): New static function. 144160484Sobrien (swap_mri_condition, reverse_mri_condition): New static functions. 144260484Sobrien (build_mri_control_operand): New static function. 144360484Sobrien (parse_mri_control_expression): New static function. 144460484Sobrien (s_mri_if, s_mri_else, s_mri_endi): New static functions. 144560484Sobrien (s_mri_break, s_mri_next): New static functions. 144660484Sobrien (s_mri_for, s_mri_endf): New static functions. 144760484Sobrien (s_mri_repeat, s_mri_until): New static functions. 144860484Sobrien (s_mri_while, s_mri_endw): New static functions. 144960484Sobrien * gasp.c (mrikinfo): Remove IF. 145060484Sobrien * expr.c (get_symbol_end): Accept \001 as part of a name. 145160484Sobrien 145260484Sobrien * symbols.c (colon): Change parameter to const char *. 145360484Sobrien * symbols.h (colon): Update declaration. 145460484Sobrien 145560484SobrienMon Aug 14 20:51:56 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com> 145660484Sobrien 145760484Sobrien * write.c (write_contents): Always do it the BFD_FAST_SECTION_FILL 145860484Sobrien way. Reformat and reindent that code to GNU standards. 145960484Sobrien (BFD_FAST_SECTION_FILL): Don't define. 146060484Sobrien 146160484SobrienMon Aug 14 14:08:07 1995 Jeff Law (law@snake.cs.utah.edu) 146260484Sobrien 146360484Sobrien * config/tc-hppa.c (md_apply_fix): Don't try to apply BEGIN_BRTAB 146460484Sobrien or END_BRTAB fixups. 146560484Sobrien 146660484SobrienMon Aug 14 15:45:07 1995 Ian Lance Taylor <ian@cygnus.com> 146760484Sobrien 146860484Sobrien * gasp.c (do_align, get_any_string): Mark as static. 146960484Sobrien (do_assigna, do_assignc, new_file): Likewise. 147060484Sobrien 147160484Sobrien * config/tc-m68k.c (s_reg): Rename local op to rop to avoid 147260484Sobrien confusion with macro op. 147360484Sobrien 147460484Sobrien * gasp.c (strip_comments): Comment out; it's not used. 147560484Sobrien (do_end): Add parameter. In MRI mode, print it out. 147660484Sobrien (do_irp): New static function. 147760484Sobrien (sub_actual): Change parameter m to formal_hash, changing type 147860484Sobrien from macro_entryh * to hash_table *. 147960484Sobrien (macro_expand_body): New static function, broken out of 148060484Sobrien macro_expand. 148160484Sobrien (macro_expand): Call macro_expand_body. 148260484Sobrien (K_*): Fully parenthesize. 148360484Sobrien (K_IRP, K_IRPC): Define. 148460484Sobrien (mrikinfo): Add IRP and IRPC. 148560484Sobrien (process_pseudo_op): In MRI mode, print out END pseudo-op. Pass 148660484Sobrien line to do_end. Handle K_IRP and K_IRPC. 148760484Sobrien 148860484Sobrien * config/tc-m68k.c (s_opt): Reset *input_line_pointer even if we 148960484Sobrien don't do anything with the option. 149060484Sobrien 149160484SobrienSun Aug 13 17:03:58 1995 Ian Lance Taylor <ian@cygnus.com> 149260484Sobrien 149360484Sobrien * frags.c (frag_align): Handle absolute_section. 149460484Sobrien * write.c (record_alignment): Likewise. 149560484Sobrien 149660484Sobrien * config/tc-mips.c (macro_build): Skip insns with an inappropriate 149760484Sobrien ISA level. 149860484Sobrien 149960484SobrienSun Aug 13 00:35:02 1995 Jeff Law (law@snake.cs.utah.edu) 150060484Sobrien 150160484Sobrien * config/tc-hppa.c (md_pseudo_table): Add entries for 150260484Sobrien "begin_brtab" and "end_brtab" pseudo-ops. 150360484Sobrien (pa_brtab): New function. 150460484Sobrien (tc_gen_reloc, SOM version): Handle R_BEGIN_BRTAB and R_END_BRTAB. 150560484Sobrien (hppa_force_relocation): Force relocations for BRTAB fixups 150660484Sobrien when OBJ_SOM is defined. 150760484Sobrien 150860484SobrienFri Aug 11 20:34:05 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com> 150960484Sobrien 151060484Sobrien * Makefile.in (TE_OBJS): Add empty definition. 151160484Sobrien 151260484SobrienFri Aug 11 19:16:08 1995 Ian Lance Taylor <ian@cygnus.com> 151360484Sobrien 151460484Sobrien * gasp.c (change_base): Don't treat ' specially in MRI mode. 151560484Sobrien (process_file): Don't warn about missing END in MRI mode. 151660484Sobrien (do_if): New static function. 151760484Sobrien (get_mri_string, do_ifc): New static functions. 151860484Sobrien (buffer_and_nest): Treat MRI mode like alternate syntax mode. 151960484Sobrien (do_aendr): Change error message in MRI mode. 152060484Sobrien (do_arepeat): Use REPT/ENDR in MRI mode. 152160484Sobrien (do_formals): In MRI mode, add special NARG formal. 152260484Sobrien (macro_expand): Various changes for MRI mode: permit a qualifier 152360484Sobrien on the macro name; set special NARG formal; permit unnamed 152460484Sobrien positional arguments; use && to concatenate named parameters; 152560484Sobrien permit \d to specify an unnamed parameter; permit named parameters 152660484Sobrien to not start with \; use == to see if a parameter exists. 152760484Sobrien (getstring): In MRI mode, allow <> to quote a string. 152860484Sobrien (K_IFEQ, K_IFNE, K_IFLT, K_IFLE, K_IFGE, K_IFGT): Define. 152960484Sobrien (K_IFC, K_IFNC): Define. 153060484Sobrien (struct keyword): Name structure used in kinfo array. 153160484Sobrien (mrikinfo): New static array. 153260484Sobrien (process_pseudo_op): Don't require leading '.' in MRI mode. 153360484Sobrien Handle new MRI pseudo-op definitions. 153460484Sobrien (add_keyword): New static function, broken out of process_init. 153560484Sobrien (process_init): Use add_keyword. In MRI mode, add mrikinfo table. 153660484Sobrien (long_options): Add "mri". 153760484Sobrien (show_usage): Mention -M/--mri. 153860484Sobrien (main): Call process_init after processing arguments. Handle -M. 153960484Sobrien * doc/gasp.texi: Document -M/--mri. 154060484Sobrien 154160484Sobrien * gasp.c: Include ansidecl.h. Make all local functions static. 1542218822Sdim Add prototypes for all static functions. 154360484Sobrien (mri): New global variable. 154460484Sobrien (sb_add_char): Change parameter c from char to int. 154560484Sobrien (sb_add_string): Make parameter s into a const pointer. 154660484Sobrien (sb_add_buffer): Likewise. 154760484Sobrien (checkconst): Change parameter op from char to int. 154860484Sobrien (exp_get_abs): Make parameter emsg into a const pointer. 154960484Sobrien (do_res): Change parameter type from char to int. 155060484Sobrien (buffer_and_nest): Make parameters from and to into const 155160484Sobrien pointers. 155260484Sobrien (do_sdata): Change parameter type from char to int. 155360484Sobrien (new_file): Make parameter name into a const pointer. 155460484Sobrien (do_define): Make parameter string into a const pointer. 155560484Sobrien 155660484Sobrien * config/tc-h8300.c (md_number_to_chars): Don't do it here, call 155760484Sobrien number_to_chars_bigendian. 155860484Sobrien * config/tc-h8300.h (TARGET_BYTES_BIG_ENDIAN): Define. 155960484Sobrien 156060484SobrienFri Aug 11 13:23:56 1995 Michael Meissner <meissner@cygnus.com> 156160484Sobrien 156260484Sobrien * write.h (struct fix): Add new field fx_no_overflow. 156360484Sobrien 156460484Sobrien * write.c (fixup_segment): If fx_no_overflow is non-zero, don't 156560484Sobrien complain if the addend is too large. 156660484Sobrien 156760484Sobrien * config/tc-ppc.c (md_assemble): Set fx_no_overflow if the half 156860484Sobrien word relocations BFD_RELOC_{LO16,HI16,HI16_S}. 156960484Sobrien 157060484SobrienThu Aug 10 20:56:38 1995 Ken Raeburn <raeburn@cygnus.com> 157160484Sobrien 157260484Sobrien * read.c (s_mri_sect) [BFD_ASSEMBLER]: Fix typos in choosing and 157360484Sobrien setting section flags. 157460484Sobrien 157560484SobrienThu Aug 10 00:38:11 1995 Ian Lance Taylor <ian@cygnus.com> 157660484Sobrien 157760484Sobrien * doc/as.texinfo: Add documentation for MRI compatibility mode. 157860484Sobrien * doc/as.1: Likewise. 157960484Sobrien 158060484Sobrien * config/tc-m68k.c (m68k_ip): When recognizing '#', use isbyte and 158160484Sobrien iword rather than expr8 and expr16. When recognizing 'M', use 158260484Sobrien issbyte rather than expr8. When recognizing 'Q' and 't', just 158360484Sobrien check for O_constant rather than using expr8. 158460484Sobrien * config/m68k-parse.h (expr8, expr16): Don't define. 158560484Sobrien * Makefile.in (m68k-parse.o): Depend upon m68k-parse.h, not 158660484Sobrien m68k-parse.y. 158760484Sobrien 158860484Sobrien * read.c (potable): Add spc, ttl, xcom, xref. 158960484Sobrien (s_mri_sect): New function. 159060484Sobrien * read.h (s_mri_sect): Declare. 159160484Sobrien * config/obj-coff.c (obj_coff_section) (both versions): In MRI 159260484Sobrien mode, call s_mri_sect. 159360484Sobrien (obj_pseudo_table): Add sect.s and section.s. Move sect outside 159460484Sobrien of ifndef BFD_ASSEMBLER. 159560484Sobrien * config/obj-elf.c (elf_pseudo_table): Add section.s, sect, 159660484Sobrien sect.s. 159760484Sobrien (obj_elf_section): In MRI mode, call s_mri_sect. 159860484Sobrien * config/tc-m68k.c (md_pseudo_table): Add restore, save. 159960484Sobrien (struct save_opts): Define. 160060484Sobrien (save_stack): New static variable. 160160484Sobrien (s_save, s_restore): New static functions. 160260484Sobrien 160360484Sobrien * read.c (s_set): Remove unused local ptr. 160460484Sobrien (hex_float): Check target_big_endian. 160560484Sobrien (equals): Remove unused local p. 160660484Sobrien 160760484Sobrien * config/tc-a29k.h (TARGET_BYTES_BIG_ENDIAN): Define. 160860484Sobrien * config/tc-h8500.h (TARGET_BYTES_BIG_ENDIAN): Define. 160960484Sobrien * config/tc-hppa.h (TARGET_BYTES_BIG_ENDIAN): Define. 161060484Sobrien * config/tc-i860.h (TARGET_BYTES_BIG_ENDIAN): Define. 161160484Sobrien * config/tc-m68k.h (TARGET_BYTES_BIG_ENDIAN): Define. 161260484Sobrien * config/tc-m88k.h (TARGET_BYTES_BIG_ENDIAN): Define. 161360484Sobrien * config/tc-tahoe.h (TARGET_BYTES_BIG_ENDIAN): Define. 161460484Sobrien * config/tc-sh.c (little): Set target_big_endian. 161560484Sobrien (md_begin): Likewise. 161660484Sobrien (md_parse_option): Likewise. 161760484Sobrien (build_relax): Check target_big_endian rather than shl. 161860484Sobrien (build_Mytes, md_atof): Likewise. 161960484Sobrien (md_convert_frag, md_apply_fix): Likewise. 162060484Sobrien (md_number_to_chars): Likewise. 162160484Sobrien 162260484SobrienWed Aug 9 10:51:48 1995 Ian Lance Taylor <ian@cygnus.com> 162360484Sobrien 162460484Sobrien * config/tc-m68k.c (m68k_abspcadd): New static variable. 162560484Sobrien (m68k_quick): New static variable. 162660484Sobrien (m68k_rel32): New static variable. 162760484Sobrien (md_pseudo_table): Add opt and reg. 162860484Sobrien (m68k_ip): Permit absolute symbols in 'l'/'L' recognition. Check 162960484Sobrien m68k_quick in 'M' and 'Q' recognition. Check m68k_abspcadd in 163060484Sobrien DISP handling. Check m68k_rel32 in BASE/POST/PRE handling. 163160484Sobrien (md_begin): In MRI mode, initialize m68k_abspcadd and m68k_rel32. 163260484Sobrien In MRI mode, change unsized branch aliases to be variable sized. 163360484Sobrien (struct opt_action): Define. 163460484Sobrien (opt_table): Define. 163560484Sobrien (s_opt): New static function. 163660484Sobrien (skip_to_comma): New static function. 163760484Sobrien (opt_chip): New static function. 163860484Sobrien (opt_list): New static function. 163960484Sobrien (opt_list_symbols): New static function. 164060484Sobrien (s_reg): New static function. 164160484Sobrien * as.h (flag_keep_locals): Change from unsigned char to int. 164260484Sobrien (flag_no_warnings): Likewise. 164360484Sobrien 164460484Sobrien * read.c (mri_line_label): Make non-static. 164560484Sobrien (potable): Add nopage, page, plen. 164660484Sobrien (s_org): Error if in MRI mode. 164760484Sobrien * read.h (mri_line_label): Declare. 164860484Sobrien * listing.c (listing_nopage): New function. 164960484Sobrien * listing.h (listing_nopage): Declare. 165060484Sobrien 165160484Sobrien * symbols.c (symbol_begin): Set sy_frag of abs_symbol to 165260484Sobrien &zero_address_frag. 165360484Sobrien 165460484Sobrien * write.c (adjust_reloc_syms): Check that symbol is not NULL 165560484Sobrien before checking sy_mri_common. 165660484Sobrien (fixup_segment): Likewise. 165760484Sobrien * config/obj-coff.c (fixup_segment): Likewise. 165860484Sobrien 165960484Sobrien * read.c (abs_section_offset): New global variable. 166060484Sobrien (potable): Add offset, struct. 166160484Sobrien (do_org): New static function; handle changing the origin in the 166260484Sobrien absolute section. 166360484Sobrien (s_org): Use do_org. 166460484Sobrien (s_set): Likewise. 166560484Sobrien (equals): Likewise. 166660484Sobrien (s_space): In absolute_section, just increase abs_section_offset. 166760484Sobrien (s_struct): New function. 166860484Sobrien (emit_expr): Handle absolute_section specially. 166960484Sobrien * read.h (abs_section_offset): Declare. 167060484Sobrien (s_struct): Declare. 167160484Sobrien * frags.c (frag_more): Warn if in absolute_section. 167260484Sobrien (frag_now_fix): In absolute_section, return abs_section_offset. 167360484Sobrien * subsegs.c (subseg_change): If switching to absolute_section, 167460484Sobrien just set now_seg and now_subseg. 167560484Sobrien (subseg_set_rest): Special handling when switching to or from 167660484Sobrien absolute_section. 167760484Sobrien 167860484Sobrien * config/tc-m68k.c (m68k_float_copnum): New static variable. 167960484Sobrien (md_pseudo_table): Add fopt and mask2. 168060484Sobrien (m68k_ip): Use m68k_float_copnum, not COPNUM, when setting 168160484Sobrien coprocessor register to use. In case 'I' when checking operands, 168260484Sobrien correct coprocessor register numbers. In case 'I' when setting 168360484Sobrien operands, don't add 1. 168460484Sobrien (s_fopt): New static function. 168560484Sobrien * config/m68k-parse.h (COPNUM): Don't define. 168660484Sobrien 168760484Sobrien * read.c (potable): Add ifeq, ifge, ifgt, ifle, iflt, ifne. 168860484Sobrien Change if to pass O_ne to s_if. 168960484Sobrien (read_a_source_file): Don't define an label without a colon if 169060484Sobrien ignore_input returns true. 169160484Sobrien * cond.c (s_if): Treat argument as an operatorT describing how to 169260484Sobrien compare the argument against zero. 169360484Sobrien (ignore_input): Don't require an initial dot in MRI mode, or if 169460484Sobrien NO_PSEUDO_DOT is defined. 169560484Sobrien 169660484Sobrien * read.c (potable): Add dcb, dcb.b, dcb.d, dcb.l, dcb.s, dcb.w, 169760484Sobrien dcb.x, ds.d, ds.p, ds.s, ds.x, elsec, endc, fail, format, llen, 169860484Sobrien noformat. 169960484Sobrien (read_a_source_file): If pseudo-op handler is s_end, quit 170060484Sobrien immediately. 170160484Sobrien (s_end): New function. 170260484Sobrien (s_fail): New function. 170360484Sobrien (s_float_space): New function. 170460484Sobrien (hex_float): New static function. 170560484Sobrien (float_cons): Use hex_float. 170660484Sobrien * read.h (s_fail): Declare. 170760484Sobrien (s_float_space): Declare. 170860484Sobrien * cond.c (s_end): Remove. 170960484Sobrien * listing.c (listing_psize): Treat argument as indicating whether 171060484Sobrien a height is expected. 171160484Sobrien 171260484Sobrien * read.c (mri_pending_align): New static variable. 171360484Sobrien (read_a_source_file): Handle mri_pending_align. 171460484Sobrien (cons): Set mri_pending_align if appropriate. 171560484Sobrien 171660484Sobrien * configure.in: Move random special target handling before 171760484Sobrien possible break. 171860484Sobrien * configure: Rebuild. 171960484Sobrien 172060484SobrienTue Aug 8 23:41:25 1995 Alan Modra <alan@spri.levels.unisa.edu.au> 172160484Sobrien 172260484Sobrien * configure.in: Consistently use ${target_cpu_type} rather than 172360484Sobrien ${cpu_type} after the loop. 172460484Sobrien * configure: Rebuild. 172560484Sobrien * Makefile.in (targ-cpu.o): Use @target_cpu_type@ rather than 172660484Sobrien @cpu_type@. 172760484Sobrien 172860484SobrienTue Aug 8 17:27:17 1995 Ken Raeburn <raeburn@cygnus.com> 172960484Sobrien 173060484Sobrien * expr.h (operatorT): Remove comma after last enumerator value. 173160484Sobrien 173260484Sobrien * config/obj-vms.c: Some whitespace cleanup from Pat Rankin. 173360484Sobrien 173460484Sobrien * as.h (alloca): If __STDC__, declare void* instead of char*. 173560484Sobrien 173660484Sobrien Wed Aug 2 18:54:37 1995 Pat Rankin <rankin@eql.caltech.edu> 173760484Sobrien 173860484Sobrien * config/obj-vms.c (Flush_VMS_Object_Record_Buffer, 173960484Sobrien Close_VMS_Object_File): Reorganize the `#if !VMS' cross-assmebler 174060484Sobrien support code. 174160484Sobrien (Close_VMS_Object_File): Call Set_VMS_Object_File_Record to flush 174260484Sobrien output buffer--just in case--before closing the file. 174360484Sobrien 174460484SobrienTue Aug 8 13:07:05 1995 Ian Lance Taylor <ian@cygnus.com> 174560484Sobrien 174660484Sobrien * config/tc-m68k.c (archs): Add 68ec000, 68hc000, 68hc001, 174760484Sobrien 68ec020, 68ec030, 68ec040, and 68330. 174860484Sobrien (md_pseudo_table): Add chip and comline. 174960484Sobrien (m68k_init_after_args): Use strcasecmp when comparing default_cpu 175060484Sobrien against architectures. 175160484Sobrien (mri_chip, s_chip): New static functions. 175260484Sobrien 175360484Sobrien * struc-symbol.h (struct symbol): Add sy_mri_common bit. 175460484Sobrien * read.h (mri_comon_symbol): Declare. 175560484Sobrien (s_mri_common): Declare. 175660484Sobrien * read.c (mri_line_label): New static variable. 175760484Sobrien (mri_common_symbol): New global variable. 175860484Sobrien (potable): Add "common" and "common.s". 175960484Sobrien (read_a_source_file): In MRI mode, set mri_line_label for a label 176060484Sobrien at the start of a line. 176160484Sobrien (s_mri_common): New function. 176260484Sobrien (s_space): Handle mri_common_symbol. 176360484Sobrien * symbols.c (colon): Change return value from void to symbolS *, 176460484Sobrien and return new symbol. If mri_common_symbol is set, attach the 176560484Sobrien new symbol to it. 176660484Sobrien (resolve_symbol_value): Handle an sy_mri_common symbol. 176760484Sobrien * symbols.h (colon): Change return value in declaration. 176860484Sobrien * subsegs.c (subseg_set_rest): Clear mri_common_symbol. 176960484Sobrien (subseg_set (both versions)): Likewise. 177060484Sobrien * frags.c (frag_more): Warn if mri_common_symbol is not NULL. 177160484Sobrien * write.c (adjust_reloc_syms): Skip sy_mri_common symbols. 177260484Sobrien (write_object_file): Discard sy_mri_common symbols. 177360484Sobrien (fixup_segment): Change relocations against sy_mri_common symbols 177460484Sobrien to be against the common symbol itself. 177560484Sobrien * config/obj-coff.c (yank_symbols): Discard sy_mri_common symbols. 177660484Sobrien (fixup_segment): Change relocations against sy_mri_common symbols 177760484Sobrien to be against the common symbol itself. 177860484Sobrien * config/obj-aout.c (obj_crawl_symbol_chain): Discard 177960484Sobrien sy_mri_common symbols. 178060484Sobrien 178160484Sobrien * doc/c-m68k.texi: Add documentation for CPU specific options, and 178260484Sobrien for Motorola syntax. 178360484Sobrien 178460484Sobrien * config/m68k-parse.y (motorola_operand): For (%pc), set mode to 178560484Sobrien DISP, not BASE. 178660484Sobrien 178760484SobrienTue Aug 8 02:31:38 1995 Ken Raeburn <raeburn@cygnus.com> 178860484Sobrien 178960484Sobrien * write.c (relax_align): Add extra padding for linkrelax only if 179060484Sobrien LINKER_RELAXING_SHRINKS_ONLY is defined. 179160484Sobrien * config/tc-i960.h (LINKER_RELAXING_SHRINKS_ONLY): Define it. 179260484Sobrien * doc/internals.texi (Relaxation): Write up some stuff on linker 179360484Sobrien relaxing and LINKER_RELAXING_SHRINKS_ONLY. 179460484Sobrien 179560484SobrienMon Aug 7 17:18:10 1995 Ian Lance Taylor <ian@cygnus.com> 179660484Sobrien 179760484Sobrien * config/m68k-parse.y: New file: bison grammar for m68k operands, 179860484Sobrien including support for Motorola syntax. 179960484Sobrien * config/m68k-parse.h: New file; definitions shared between 180060484Sobrien m68k-parse.y and tc-m68k.c. 180160484Sobrien * config/tc-m68k.c: Include m68k-parse.h. 180260484Sobrien (enum operand_type): Move to m68k-parse.h, where it is named 180360484Sobrien m68k_operand_type. Rename all uses. Rearrange somewhat. Add 180460484Sobrien FPREG. Rename AOFF to DISP. Rename AINDX to BASE. Rename APODX 180560484Sobrien to POST. Rename APRDX to PRE. Remove AMIND. Rename MSCR to 180660484Sobrien CONTROL. Remove DINDR. 180760484Sobrien (struct m68k_exp): Move to m68k-parse.h. Remove e_beg, e_end and 180860484Sobrien e_seg fields. Rename e_exp to exp. Rename e_siz to size, and 180960484Sobrien change type to enum m68k_size. Change all uses. 181060484Sobrien (enum _register): Move to m68k-parse.h, where it is named 181160484Sobrien m68k_register. Rename all uses. Add ZDATA0-7 and ZADDR0-7. 181260484Sobrien (struct m68k_op): Move to m68k-parse.h. Change all fields. 181360484Sobrien (seg): Don't define. 181460484Sobrien (add_exp): Remove. 181560484Sobrien (FAIL, OK): Remove. 181660484Sobrien (m68k_reg_parse): Move to m68k-parse.y, and rewrite. 181760484Sobrien (SKIP_WHITE, SKIP_W): Remove. 181860484Sobrien (try_moto_index, try_index): Remove. 181960484Sobrien (m68k_ip_op): Move to m68k-parse.y, and rewrite to use grammar. 182060484Sobrien (main): Remove obsolete test function. 182160484Sobrien (m68k_ip): Extensive changes to use new grammar. 182260484Sobrien (get_regs): Remove. 182360484Sobrien (crack_operand): m68k_ip_op now returns 0 on success. 182460484Sobrien (init_table): Add ssp, zd0-7 and za0-7. 182560484Sobrien (md_assemble): Make er const. Correct loop over operands when 182660484Sobrien looking for error message. 182760484Sobrien (md_begin): Set alt_notend_table for '(' and '@'. 182860484Sobrien (get_num): Expression is already parsed. Don't set seg. 182960484Sobrien * configure.in: If cpu_type is m68k, put m68k-parse.o in 183060484Sobrien extra-objects. 183160484Sobrien * configure: Rebuild. 183260484Sobrien * Makefile.in (DISTSTUFF): Add m68k-parse.c. 183360484Sobrien (BISON): Use ../bison/bison if it exists. 183460484Sobrien (BISONFLAGS): Define as empty. 183560484Sobrien (TARG_CPU_DEP_m68k): Depend upon $(srcdir)/config/m68k-parse.h. 183660484Sobrien (m68k-parse.c, m68k-parse.o): New targets. 183760484Sobrien 183860484SobrienMon Aug 7 02:54:20 1995 Jeff Law (law@snake.cs.utah.edu) 183960484Sobrien 184060484Sobrien * config/tc-sh.c (parse_reg): Handle new FP registers. 184160484Sobrien (get_specific): Handle new operand types. 184260484Sobrien 184360484SobrienFri Aug 4 12:29:21 1995 Ian Lance Taylor <ian@cygnus.com> 184460484Sobrien 184560484Sobrien * expr.c (op_encoding): Make non-const. Don't set '"' to 1846218822Sdim O_bit_not. 184760484Sobrien (expr_begin): Set op_encoding['"'] in MRI mode. 184860484Sobrien 184960484SobrienWed Aug 2 18:39:43 1995 Ian Lance Taylor <ian@cygnus.com> 185060484Sobrien 185160484Sobrien * config/tc-m68k.c: Remove BREAK_UP_BIG_DECL stuff. 185260484Sobrien (struct m68k_incant): Change m_operands field to be const. 185360484Sobrien (struct m68k_it): Change args field to be const. 185460484Sobrien (m68k_ip): Change local variable s to be const. 185560484Sobrien (opcode_ptr): Remove. 185660484Sobrien (md_begin): Use m68k_numopcodes, not numopcodes. Use 185760484Sobrien m68k_opcodes, not removed opcode_ptr. Use m68k_numaliases, not 185860484Sobrien numaliases. 185960484Sobrien 186060484SobrienTue Aug 1 17:35:26 1995 Ian Lance Taylor <ian@cygnus.com> 186160484Sobrien 186260484Sobrien * config/tc-m68k.c (init_table): Add "control", "status", "iaddr", 186360484Sobrien "sfcr", and "dfcr" as synonyms for existing entries. 186460484Sobrien (md_begin): In MRI mode, force flag_reg_prefix_optional to 1. 186560484Sobrien (md_parse_option): Removed unused locals i and arch. Change type 186660484Sobrien of arch (another one) to unsigned long. 186760484Sobrien (tc_coff_sizemachdep): Add return after abort to avoid warning. 186860484Sobrien 186960484Sobrien Initial support for MRI style labels and expressions. 187060484Sobrien * as.h (flag_mri): Declare/define. 187160484Sobrien * as.c (show_usage): Mention -M and its synonym --mri. 187260484Sobrien (parse_args): Add 'M' to std_shortopts. Add "mri" to 187360484Sobrien std_longopts. Set flag_mri if -M is seen. 187460484Sobrien (main): Call parse_args before input_scrub_begin. Call 187560484Sobrien expr_begin. 187660484Sobrien * app.c (do_scrub_begin): Don't set lex for '"' or '\'' in MRI 187760484Sobrien mode. Do set lex for ';', '*', and '!' in MRI mode. 187860484Sobrien (do_scrub_next_char): Remove MRI ifdef in LEX_IS_WHITESPACE case. 187960484Sobrien In MRI mode, keep spaces between labels and colons. Remove MRI 188060484Sobrien ifndef around LEX_IS_ONECHAR_QUOTE case. In MRI mode, don't use 188160484Sobrien '!' or '*' as comment characters even if they are in 188260484Sobrien comment_chars. 188360484Sobrien * read.h (lex_type): No longer const. 188460484Sobrien * read.c: Include libiberty.h. 188560484Sobrien (lex_type): No longer const. 188660484Sobrien (read_begin): In MRI mode, set lex_type of '?' to 3. 188760484Sobrien (potable): Add dc, dc.b, dc.d, dc.l, dc.s, dc.w, dc.x, ds, ds.b, 188860484Sobrien ds.l, ds.w, and xdef. 188960484Sobrien (read_a_source_file): Change LABELS_WITHOUT_COLON ifdef to check 189060484Sobrien for MRI mode at runtime rather than compile time. Handle the EQU 189160484Sobrien pseudo-op in MRI mode. Remove bogus MRI ifdef around done_pseudo. 189260484Sobrien Change NO_PSEUDO_DOT ifdef to also take effect for MRI mode at 189360484Sobrien runtime. 189460484Sobrien (cons): In MRI mode, always call parse_mri_cons rather than 189560484Sobrien TC_PARSE_CONS_EXPRESSION. 189660484Sobrien (parse_mri_cons): Always compile, not just when MRI is defined. 189760484Sobrien Call TC_PARSE_CONS_EXPRESSION, not expression, when the input is 189860484Sobrien not a string constant. Handle A and E modifiers. 189960484Sobrien (float_cons): Accept :xxxx, where the x's are hex digits. 190060484Sobrien * expr.h (operatorT): Add O_eq, O_ne, O_lt, O_le, O_ge, O_gt. 190160484Sobrien (expr_begin): Declare. 190260484Sobrien * expr.c (integer_constant): In MRI mode, if the base was not 190360484Sobrien specified, look for a suffix on the number to set the base. 190460484Sobrien (mri_char_constant): New static function. 190560484Sobrien (operand): Remove MRI ifdef. In MRI mode, do various things: Pass 190660484Sobrien 0 as the base when calling integer_constant if there was no 190760484Sobrien prefix. Check for a hex constant suffix if when a leading '0' is 190860484Sobrien seen. Don't accept 0x or 0b as a prefix. Check for E'chars' and 190960484Sobrien A'chars'. Handle MRI character constants. Treat '"' as the 191060484Sobrien unary bitwise not operator. Treat $ as the program counter, or as 191160484Sobrien the prefix for a hex constant. Treat % as the prefix for a binary 191260484Sobrien constant and @ as the prefix for an octal constant. Treat : as 191360484Sobrien the prefix for a hex constant. 191460484Sobrien (op_encoding): Set '"' to O_bit_not, '<' to O_lt, and '>' to O_gt. 191560484Sobrien (op_rank): No longer const. Change rank values. 191660484Sobrien (expr_begin): New function. 191760484Sobrien (operator): New static function. 191860484Sobrien (expr): Use operator. Don't bother to mention the operator in 191960484Sobrien warnings. Remove bogus #if 0 code. Handle new operatorT values. 192060484Sobrien * atof-generic.c (atof_generic): In MRI mode, accept underscores 192160484Sobrien around the exponent in floating point numbers. 192260484Sobrien * symbols.h (symbols_case_sensitive): Declare. 192360484Sobrien * symbols.c (symbols_case_sensitive): New global variable. 192460484Sobrien (symbol_create): Check symbols_case_sensitive. 192560484Sobrien (symbol_find_base): Likewise. 192660484Sobrien (resolve_symbol_value): Handle new operatorT values. 192760484Sobrien (print_expr_1): Likewise. 192860484Sobrien (S_IS_LOCAL): In MRI mode, names beginning with two '?' characters 192960484Sobrien are local. 193060484Sobrien 193160484SobrienTue Aug 1 11:35:18 1995 steve chamberlain <sac@slash.cygnus.com> 193260484Sobrien 193389857Sobrien * config/tc-sh.c (md_convert_frag): Make some error messages 193489857Sobrien more explict. 193560484Sobrien 193660484SobrienMon Jul 31 21:40:47 1995 Ken Raeburn <raeburn@cygnus.com> 193760484Sobrien 193860484Sobrien Sat Jul 29 18:55:23 1995 Pat Rankin <rankin@eql.caltech.edu> 193960484Sobrien 194060484Sobrien * config/obj-vms.c (COPY_SHORT, COPY_LONG, PUT_SHORT, PUT_LONG): 194160484Sobrien Make expansion be safe for use in expressions. 194260484Sobrien (PUT_COUNTED_STRING): Bracket expansion with `do {...} while (0)' 194360484Sobrien rather than just `{...}'. 194460484Sobrien 194560484SobrienMon Jul 31 18:19:26 1995 steve chamberlain <sac@slash.cygnus.com> 194660484Sobrien 194760484Sobrien * gasp.c (main): Parse -I option. 194860484Sobrien (do_include): Look through include list. 194960484Sobrien * gasp.c (change_base): Don't modify numbers in strings. 195060484Sobrien 195160484SobrienMon Jul 31 12:16:21 1995 Ian Lance Taylor <ian@cygnus.com> 195260484Sobrien 195360484Sobrien * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Define. From Niclas 195460484Sobrien Andersson <nican@ida.liu.se>. 195560484Sobrien 195660484SobrienThu Jul 27 20:47:12 1995 Ken Raeburn <raeburn@cygnus.com> 195760484Sobrien 195860484Sobrien * config/obj-coff.c (fixup_segment): Don't do further pcrel 195960484Sobrien processing after converting difference of two symbols in the 196060484Sobrien same segment. From Jim Wilson. 196160484Sobrien 196260484Sobrien * configure.in (i386-*-linuxoldld): Add as synonym for 196360484Sobrien i386-*-linux*aout*. From Fred Fish. 196460484Sobrien * configure: Regenerated. 196560484Sobrien 196660484SobrienThu Jul 27 16:14:56 1995 Pat Rankin <rankin@eql.caltech.edu> 196760484Sobrien 196860484Sobrien * config/obj-vms.c (enum ps_type {ps_TEXT,ps_DATA,ps_COMMON, 196960484Sobrien ps_CONST}): New constants. 197060484Sobrien (VMS_Psect_Spec): Use them instead of literal strings. 197160484Sobrien (vms_write_object_file, global_symbol_directory): Adjust callers. 197260484Sobrien 197360484SobrienWed Jul 26 18:31:35 1995 Pat Rankin <rankin@eql.caltech.edu> 197460484Sobrien 197560484Sobrien * config/obj-vms.c (const_flag): Change from char to unsigned char. 197660484Sobrien * config/obj-vms.h (const_flag): Ditto. 197760484Sobrien (struct nlist): Replace union n_un and n_un.{n_name,n_next,n_strx} 197860484Sobrien fields with just n_name; delete field n_value; change n_other from 197960484Sobrien char to unsigned char and n_desc from short to int; insert explicit 198060484Sobrien padding for alignment. 198160484Sobrien 198260484SobrienMon Jul 24 20:06:17 1995 Ken Raeburn <raeburn@cygnus.com> 198360484Sobrien 198460484Sobrien * subsegs.h (struct seg_info_trash): Make bitfield types valid. 198560484Sobrien 198660484Sobrien * config/obj-coff.c (fixup_segment): Local add_number should not 198760484Sobrien be declared register since its address is taken for 198860484Sobrien MD_APPLY_FIX3. 198960484Sobrien 199060484Sobrien Fri Jul 21 15:28:18 1995 Pat Rankin <rankin@eql.caltech.edu> 199160484Sobrien 199260484Sobrien Split huge vms_write_object_file routine into managable pieces. 199360484Sobrien 199460484Sobrien * config/obj-vms.c (vms_fixup_text_section, synthesize_data_segment, 199560484Sobrien vms_fixup_data_section, global_symbol_directory, local_symbols_DST, 199660484Sobrien vms_build_DST): New routines. 199760484Sobrien (vms_write_object_file): Call them. 199860484Sobrien (struct vms_obj_state): New file scope variable used by the above. 199960484Sobrien 200060484SobrienMon Jul 24 14:10:24 1995 Ian Lance Taylor <ian@cygnus.com> 200160484Sobrien 200260484Sobrien * config/tc-sh.c (md_pseudo_table): Add "uses". 200360484Sobrien (s_uses): New static function. 200460484Sobrien (sh_coff_frob_file): New function. 200560484Sobrien (md_convert_frag): Call subseg_change before calling fix_new. 200660484Sobrien (sh_handle_align): New function. 200760484Sobrien (SWITCH_TABLE): Define. 200860484Sobrien (sh_force_relocation): New function. 200960484Sobrien (md_apply_fix): Handle R_SH_USES, R_SH_COUNT and R_SH_ALIGN. 201060484Sobrien (sh_coff_reloc_mangle): Likewise. Also handle switch table 201160484Sobrien entries. 201260484Sobrien * config/tc-sh.h (HANDLE_ALIGN): Define. 201360484Sobrien (sh_handle_align): Declare. 201460484Sobrien (TC_FORCE_RELOCATION): Define. 201560484Sobrien (sh_force_relocation): Declare. 201660484Sobrien (TC_COUNT_RELOC): Simplify; rely on TC_FORCE_RELOCATION instead. 201760484Sobrien (tc_frob_file): Define. 201860484Sobrien (sh_coff_frob_file): Declare. 201960484Sobrien * config/obj-coff.c (write_object_file): Call tc_frob_file if it 202060484Sobrien is defined. 202160484Sobrien (fixup_mdeps): Call HANDLE_ALIGN if it is defined. 202260484Sobrien (TC_FORCE_RELOCATION): Define if not defined. 202360484Sobrien (fixup_segment): Use TC_FORCE_RELOCATION to decide whether to 202460484Sobrien clear the symbol fields of fixP. 202560484Sobrien 202660484SobrienFri Jul 21 22:38:00 1995 Michael Meissner <meissner@cygnus.com> 202760484Sobrien 202860484Sobrien * config/tc-ppc.c (ppc_elf_suffix): Add support for R_PPC_SDAREL 202960484Sobrien relocation. 203060484Sobrien (md_apply_fix3): Ditto. 203160484Sobrien 203260484SobrienThu Jul 20 13:00:56 1995 Ken Raeburn <raeburn@cygnus.com> 203360484Sobrien 203460484Sobrien * config/tc-m68k.c (md_convert_frag): Rename argument seg to sec, 203560484Sobrien since seg is a macro name in this file. 203660484Sobrien 203760484Sobrien * configure.in (arm-*-riscix*): Don't set emulation. 203860484Sobrien 203960484SobrienWed Jul 19 16:08:29 1995 Doug Evans <dje@canuck.cygnus.com> 204060484Sobrien 204160484Sobrien * config/obj-coff.h (TE_PE): Delete. 204260484Sobrien * config/tc-arm.h (BYTE_ORDER): Delete. 204360484Sobrien (TARGET_FORMAT): Provide value for OBJ_COFF and TE_PE. 204460484Sobrien (ARM_BI_ENDIAN): Define if OBJ_COFF and TE_PE. 204560484Sobrien * config/tc-arm.c (byte_order): Delete. 204660484Sobrien (md_number_to_chars): Reference target_big_endian, not byte_order. 204760484Sobrien (md_chars_to_number): Likewise. 204860484Sobrien (md_longopts): Add -EB/-EL if ARM_BI_ENDIAN. 204960484Sobrien (md_parse_options): Recognize -EB/-EL. 205060484Sobrien (md_show_usage): List -EB/-EL. 205160484Sobrien 205260484SobrienWed Jul 19 11:49:25 1995 Ian Lance Taylor <ian@cygnus.com> 205360484Sobrien 205460484Sobrien * gasp.c (process_assigns): Use toupper before comparing against 205560484Sobrien upper case letter. 205660484Sobrien (whatcond): Likewise. 205760484Sobrien 205860484Sobrien * config/tc-sh.c (sh_relax): Rename from relax, and make global. 205960484Sobrien Renamed all uses. 206060484Sobrien (insert): Pass a size of 2, not 4. 206160484Sobrien (build_relax): Remove unused len variable. 206260484Sobrien (md_show_usage): Mention -little option. 206360484Sobrien (md_convert_frag): Add segT argument. Rewrite to generate relocs 206460484Sobrien rather than to generate complete instructions here. 206560484Sobrien (md_apply_fix): Adjust and clarify R_SH_PCRELIMM8BY4 case for 206660484Sobrien changes in insert and md_pcrel_from. Add cases for R_SH_PCDISP 206760484Sobrien and R_SH_PCDISP8BY2. 206860484Sobrien (md_pcrel_from): Don't subtract 1, add 2. 206960484Sobrien (tc_coff_fix2rtype): Remove. 207060484Sobrien (sh_coff_reloc_mangle): New function. 207160484Sobrien * config/tc-sh.h (TC_COFF_FIX2RTYPE): Just return fx_r_type. 207260484Sobrien (sh_relax): Declare. 207360484Sobrien (TC_COUNT_RELOC): If relaxing, count PC relative relocs. 207460484Sobrien (TC_RELOC_MANGLE): Define. 207560484Sobrien (sh_coff_reloc_mangle): Declare. 207660484Sobrien (tc_coff_sizemachdep): Declare. 207760484Sobrien * tc.h (md_convert_frag): Add segT parameter to non BFD_ASSEMBLER 207860484Sobrien declaration. 207960484Sobrien * write.c (cvt_frag_to_fill): Add sec argument to non 208060484Sobrien BFD_ASSEMBLER version. Pass it to md_convert_frag. 208160484Sobrien (write_object_file): Pass SEG_TEXT to cvs_frag_to_fill. 208260484Sobrien * config/obj-coff.c (do_relocs_for): Pass segment info to 208360484Sobrien TC_RELOC_MANGLE. 208460484Sobrien (fixup_mdeps): Pass segment type to md_convert_frag. 208560484Sobrien * config/tc-a29k.c (md_convert_frag): Add segT argument. 208660484Sobrien * config/tc-h8300.c (md_convert_frag): Likewise. 208760484Sobrien * config/tc-h8500.c (md_convert_frag): Likewise. 208860484Sobrien * config/tc-i386.c (md_convert_frag): Likewise. 208960484Sobrien * config/tc-i860.c (md_convert_frag): Likewise. 209060484Sobrien * config/tc-i960.c (md_convert_frag): Likewise. 209160484Sobrien * config/tc-m68k.c (md_convert_frag): Likewise. 209260484Sobrien * config/tc-m88k.h (md_convert_frag): Likewise. 209360484Sobrien * config/tc-ns32k.c (md_convert_frag): Likewise. 209460484Sobrien * config/tc-tahoe.c (md_convert_frag): Likewise. 209560484Sobrien * config/tc-vax.c (md_convert_frag): Likewise. 209660484Sobrien * config/tc-w65.c (md_convert_frag): Likewise. 209760484Sobrien * config/tc-z8k.c (md_convert_frag): Likewise. 209860484Sobrien * config/tc-h8300.h (TC_RELOC_MANGLE): Add segment argument. 209960484Sobrien * config/tc-h8500.h (TC_RELOC_MANGLE): Likewise. 210060484Sobrien * config/tc-w65.h (TC_RELOC_MANGLE): Likewise. 210160484Sobrien * config/tc-z8k.h (TC_RELOC_MANGLE): Likewise. 210260484Sobrien 210360484SobrienMon Jul 17 15:02:54 1995 Pat Rankin <rankin@eql.caltech.edu> 210460484Sobrien 210560484Sobrien * config/obj-vms.c (Current_Routine, Text_Psect): Delete as file 210660484Sobrien scope variables. 210760484Sobrien (Define_Routine, Define_Local_Symbols): Take Current_Routine and 210860484Sobrien Text_Psect as arguments. 210960484Sobrien (VMS_DBG_Define_Routine): Delete. 211060484Sobrien (VMS_TBT_Block_End): Change `Size' argument from int to valueT. 211160484Sobrien (vms_write_object_file: text and data fixup loops): Difference 211260484Sobrien of two symbols has type offsetT rather than int; convert with 211360484Sobrien md_number_to_chars before passing to VMS_Store_Immediate_Data. 211460484Sobrien (vms_write_object_file: debug symbol loop): Call Define_Routine 211560484Sobrien instead of VMS_DBG_Define_Routine. 211660484Sobrien 211760484SobrienSat Jul 15 00:01:35 1995 Michael Meissner <meissner@cygnus.com> 211860484Sobrien 211960484Sobrien * config/tc-ppc.c (ppc_elf_suffix): Add @fixup so that the 212060484Sobrien compiler can mark which relocs not to complain about with 212160484Sobrien -mrelocatable. 212260484Sobrien (ppc_elf_validate_fix): Add .fixup to sections not to complain 212360484Sobrien about, and also don't complain for BFD_RELOC_CTOR relocations in 212460484Sobrien writable non-code segments. 212560484Sobrien (md_apply_fix): Treat BFD_RELOC_CTOR just like BFD_RELOC_32. 212660484Sobrien 212760484SobrienFri Jul 14 19:54:28 1995 Ian Lance Taylor <ian@cygnus.com> 212860484Sobrien 212960484Sobrien Add support for SPARC SunOS PIC: 213060484Sobrien * config/tc-sparc.h (sparc_pic_code): Always declare, not just 213160484Sobrien when OBJ_ELF. 213260484Sobrien (TC_RELOC_RTSYM_LOC_FIXUP): Define when OBJ_AOUT. 213360484Sobrien (tc_fix_adjustable): New definition for OBJ_AOUT. 213460484Sobrien * config/tc-sparc.c (sparc_pic_code): Always define, not just when 213560484Sobrien OBJ_ELF. 213660484Sobrien (md_apply_fix): Adjust reloc addend for OBJ_AOUT and PIC. In 213760484Sobrien BFD_RELOC_32_PCREL_S2 case, don't increment val for an external 213860484Sobrien symbol when PIC. 213960484Sobrien (tc_gen_reloc): Generate different PIC relocs when OBJ_AOUT, as 214060484Sobrien well as when OBJ_ELF. 214160484Sobrien (md_shortopts): If OBJ_AOUT, include `k'. 214260484Sobrien (md_parse_option): If OBJ_AOUT, handle 'k'. 214360484Sobrien (md_show_usage): Mention -k if OBJ_AOUT, and -KPIC if OBJ_ELF. 214460484Sobrien (md_pcrel_from): Don't add in size for an external symbol when 214560484Sobrien PIC. 214660484Sobrien 214760484SobrienThu Jul 13 21:16:43 1995 Jeff Law (law@snake.cs.utah.edu) 214860484Sobrien 214960484Sobrien * config/tc-hppa.h (UNDEFINED_DIFFERENCE_OK): Define for SOM. 215060484Sobrien * write.c (adjust_reloc_syms): Set sy_used_in_reloc for both 215160484Sobrien symbols in a fixup where a defined symbol is subtracted from an 215260484Sobrien undefined symbol (when UNDEFINED_DIFFERENCE_OK is defined). 215360484Sobrien (fixup_segment): Do nothing for the difference of two symbols if 215460484Sobrien UNDEFINED_DIFFERENCE_OK is defined. 215560484Sobrien 215660484SobrienWed Jul 12 23:33:40 1995 Ian Lance Taylor <ian@cygnus.com> 215760484Sobrien 215860484Sobrien * config/obj-coff.c (fixup_segment): Support MD_APPLY_FIX3. 215960484Sobrien 216060484SobrienWed Jul 12 01:12:12 1995 Ken Raeburn <raeburn@kr-pc.cygnus.com> 216160484Sobrien 216260484Sobrien * write.c (fix_new): Use int, not short int, for argument type. 216360484Sobrien (fix_new_exp): Ditto. 216460484Sobrien 216560484Sobrien * configure.in (arm-*-riscix*): Don't set emulations. 216660484Sobrien 216760484Sobrien * config/tc-mips.c (NO_ECOFF_DEBUGGING): Define if ECOFF_DEBUGGING 216860484Sobrien wasn't previously defined. 216960484Sobrien (s_extern): Don't set ecoff_extern_size if NO_ECOFF_DEBUGGING. 217060484Sobrien (nopic_need_relax): Don't check it if NO_ECOFF_DEBUGGING. 217160484Sobrien (macro_build) [!USE_STDARG]: Don't use variadic prototype. 217260484Sobrien (mips_local_label) [NO_ECOFF_DEBUGGING]: Don't preserve potential 217360484Sobrien ECOFF debugging symbols. 217460484Sobrien 217560484Sobrien * emul.h (struct emulation): Use unsigned, not unsigned char, for 217660484Sobrien bitfields. 217760484Sobrien * obj.h (struct format_ops): Likewise. 217860484Sobrien 217960484Sobrien * config/tc-arm.c (symbol_make_empty) [BFD_ASSEMBLER]: Set 218060484Sobrien udata.p, not udata. 218160484Sobrien 218260484SobrienTue Jul 11 14:30:19 1995 Ian Lance Taylor <ian@cygnus.com> 218360484Sobrien 218460484Sobrien * doc/c-mips.texi: Document -m4010 and -mno-4010. 218560484Sobrien 218660484SobrienTue Jul 11 14:28:55 1995 Jeff Spiegel <jeffs@lsil.com> 218760484Sobrien 218860484Sobrien * config/tc-mips.c (mips_4010): New static variable. 218960484Sobrien (interlocks): New static variable. 219060484Sobrien (md_begin): Check for a cpu of "r4010". Set mips_4010 correctly. 219160484Sobrien If mips_4650 or mips_4010, set interlocks. 219260484Sobrien (append_insn): Check interlocks, not mips_4650. 219360484Sobrien (mips_emit_delays): Likewise. 219460484Sobrien (mips_ip): Only permit INSN_4010 instructions if mips_4010. 219560484Sobrien (md_longopts): Add "m4010" and "no-m4010". 219660484Sobrien (md_parse_option): Accept -mcpu=r4010. Handle -m4010 and 219760484Sobrien -no-m4010. 219860484Sobrien (md_show_usage): Document -m4010 and -no-m4010. 219960484Sobrien 220060484SobrienTue Jul 11 13:22:50 1995 Ian Lance Taylor <ian@cygnus.com> 220160484Sobrien 220260484Sobrien * ecoff.c (struct efdr): Add new field fake. 220360484Sobrien (init_file): Initialize fake. 220460484Sobrien (add_file): Add new parameter fake. Change all callers. 220560484Sobrien (ecoff_build_debug): Don't warn about a missing .end for a fake 220660484Sobrien file. 220760484Sobrien 220860484SobrienMon Jul 10 16:01:31 1995 Ken Raeburn <raeburn@cygnus.com> 220960484Sobrien 221060484Sobrien * doc/as.texinfo: Split out most cpu chapters... 221160484Sobrien * doc/c-*.texi: ...to here. 221260484Sobrien 221360484Sobrien * read.c (po_hash): Now static. 221460484Sobrien 221560484SobrienMon Jul 10 13:47:22 1995 Ian Lance Taylor <ian@cygnus.com> 221660484Sobrien 221760484Sobrien Based on patches from H.J. Lu <hjl@nynexst.com>: 221860484Sobrien * config/tc-i386.c (md_apply_fix3): Rename from md_apply_fix1. 221960484Sobrien Accept pointer to value and segment. Fix OBJ_ELF PCREL case to 222060484Sobrien handle global defined symbols correctly. 222160484Sobrien (md_apply_fix): Remove both versions. 222260484Sobrien * config/tc-i386.h (MD_APPLY_FIX3): Define. 222360484Sobrien 222460484Sobrien * configure.in: When switching on ${cpu}, use ${cpu}, not 222560484Sobrien $[target_cpu}, in default case. 222660484Sobrien * configure: Rebuild. 222760484Sobrien 222860484SobrienSat Jul 8 13:27:55 1995 Ian Lance Taylor <ian@cygnus.com> 222960484Sobrien 223060484Sobrien * write.c (fixup_segment): Call resolve_symbol_value on 223160484Sobrien sub_symbolP, in case it isn't in the symbol table. 223260484Sobrien 223360484SobrienFri Jul 7 11:17:27 1995 Ian Lance Taylor <ian@cygnus.com> 223460484Sobrien 223560484Sobrien * read.c (s_lcomm): For .lcomm 1, set align to 0, not 1. 223660484Sobrien 223760484Sobrien * config/obj-coff.c (coff_frob_symbol): If SF_GET_FUNCTION, set 223860484Sobrien BSF_FUNCTION. 223960484Sobrien (symbol_globalP, symbol_global_lastP): New global variables. 224060484Sobrien (yank_symbols): Sort defined global symbols to the end, just 224160484Sobrien before the undefined symbols. 224260484Sobrien (glue_symbols): Add two arguments, and use them instead of 224360484Sobrien referring directly to global variables. 224460484Sobrien (crawl_symbols): Call glue_symbols twice, once for defined globals 224560484Sobrien and once for undefined. Add corresponding know calls. 224660484Sobrien 224760484Sobrien * app.c (do_scrub_next_char): Always accept \v. Don't make it 224860484Sobrien conditional on BACKSLASH_V. 224960484Sobrien * read.c (next_char_of_string): Likewise. 225060484Sobrien * config/obj-bout.h (BACKSLASH_V): Don't define. 225160484Sobrien * config/tc-mips.h (BACKSLASH_V): Don't define. 225260484Sobrien 225360484Sobrien Add SPARC ELF PIC support. 225460484Sobrien * write.c (fixup_segment): Pass fixP to TC_RELOC_RTSYM_LOC_FIXUP, 225560484Sobrien not fixP->fx_r_type. 225660484Sobrien * config/tc-sparc.c (sparc_pic_code): New global variable. 225760484Sobrien (md_apply_fix): If generating PIC, adjust fx_addnumber for any non 225860484Sobrien PC relative reloc. 225960484Sobrien (tc_gen_reloc): If generating PIC, adjust various reloc types. 226060484Sobrien Remove fx_pcrel assert, since it is no longer true. 226160484Sobrien (md_parse_option): Handle -K PIC. 226260484Sobrien * config/tc-sparc.h (sparc_pic_code): Declare if OBJ_ELF. 226360484Sobrien (TC_RELOC_RTSYM_LOC_FIXUP): Define if OBJ_ELF. 226460484Sobrien (tc_fix_adjustable): Don't adjust PC relative relocs if PIC. 226560484Sobrien * config/tc-i386.h (TC_RELOC_RTSYM_LOC_FIXUP): Take a fixp, not a 226660484Sobrien reloc type. 226760484Sobrien 226860484Sobrien * Makefile.in (Makefile): Add dependency on conf.in, so that conf 226960484Sobrien is rebuilt when conf.in changes. 227060484Sobrien 227160484SobrienThu Jul 6 16:49:38 1995 Ken Raeburn <raeburn@cygnus.com> 227260484Sobrien 227360484Sobrien * All files: Updated FSF address. 227460484Sobrien 227560484SobrienThu Jul 6 16:30:34 1995 Jim Wilson <wilson@chestnut.cygnus.com> 227660484Sobrien 227760484Sobrien * ecoff.c (add_file): Don't collapse multiple .file commands into 227860484Sobrien a single file structure. 227960484Sobrien (ecoff_build_lineno): Set ilineBase to sum of previous file's 228060484Sobrien ilineBase and cline. 228160484Sobrien 228260484SobrienThu Jul 6 12:54:27 1995 Ian Lance Taylor <ian@cygnus.com> 228360484Sobrien 228460484Sobrien Patches from Jerry Blakely <gerry_blakley@wellfleet.com>: 228560484Sobrien * as.c (listing_filename): New static variable. 228660484Sobrien (show_usage): Mention -a=file. 228760484Sobrien (parse_args): Support = option of -a to set name of listing file. 228860484Sobrien (main): Pass listing_filename to listing_print. 228960484Sobrien * listing.c (list_file): New static variable. 229060484Sobrien (various): Replace printf with fprintf to list_file. 229160484Sobrien (listing_print): If name argument is not NULL, open it as 229260484Sobrien list_file. 229360484Sobrien * doc/as.texinfo, doc/as.1: Document -a=file. 229460484Sobrien 229560484Sobrien * config/tc-sparc.c (s_reserve): Don't permit redefinition, even 229660484Sobrien if the symbol was already in bss_section. Fix warning message. 229760484Sobrien 229860484Sobrien * listing.c (struct file_info_struct): Rename end_pending field to 229960484Sobrien at_end. 230060484Sobrien (file_info): Initialize at_end, not end_pending. 230160484Sobrien (buffer_line): If at_end set, just return immediately. Don't 230260484Sobrien worry about end_pending cases. Set at_end when EOF is read. 230360484Sobrien (print_source): Check at_end, not end_pending. 230460484Sobrien (listing_listing): Likewise. 230560484Sobrien 230660484Sobrien * config/tc-alpha.h (alpha_do_align): Don't declare. 230760484Sobrien (md_do_align): Don't define. 230860484Sobrien (tc_frob_label): Define. 230960484Sobrien (alpha_define_label): Declare. 231060484Sobrien (md_flush_pending_output): Define. 231160484Sobrien (alpha_flush_pending_output): Declare. 231260484Sobrien * config/tc-alpha.c (insn_label): New static variable. 231360484Sobrien (auto_align): New static variable. 231460484Sobrien (md_pseudo_table): Add cases for .text, .data, .align, .byte, 231560484Sobrien .hword, .int, .long, .octa, .quad, .short, .word, .double, .float, 231660484Sobrien and .single. Change .t_floating, .s_floating, .f_floating, 231760484Sobrien .g_floating, and .d_floating to use s_alpha_float_cons rather than 231860484Sobrien float_cons. 231960484Sobrien (s_alpha_text, s_alpha_data): New static functions. 232060484Sobrien (s_rdata, s_sdata): Clear insn_label and set auto_align. 232160484Sobrien (s_gprel32): If auto_align, align. Clear insn_label. 232260484Sobrien (emit_insn): Clear insn_label. 232360484Sobrien (s_alpha_align): New static function. 232460484Sobrien (alpha_align): Make static. Take label argument. 232560484Sobrien (alpha_flush_pending_output): New static function. 232660484Sobrien (s_alpha_cons, s_alpha_float_cons): New static functions. 232760484Sobrien (alpha_define_label): New function. 232860484Sobrien 232960484SobrienWed Jul 5 22:49:31 1995 Ken Raeburn <raeburn@cygnus.com> 233060484Sobrien 233160484Sobrien * conf.in: Regenerate with autoreconf. 233260484Sobrien 233360484Sobrien Mon Jul 3 19:47:53 1995 Pat Rankin (rankin@eql.caltech.edu) 233460484Sobrien 233560484Sobrien * config/obj-vms.h (vms_resolve_symbol_redef): Use full prototype. 233660484Sobrien (vms_check_for_special_label, tc_frob_label): Move them to group 233760484Sobrien with other prototypes. 233860484Sobrien [WANT_VMS_OBJ_DEFS]: Only define the many OBJ_x, DBG_x, and DST_x 233960484Sobrien macros when this is defined. 234060484Sobrien * config/obj-vms.c: Fully prototype all local functions. 234160484Sobrien [symbolS, fragS]: Use consistently instead of their struct tags. 234260484Sobrien [WANT_VMS_OBJ_DEFS]: Define this. 234360484Sobrien (s_const): Make definition correctly match actual usage. 234460484Sobrien (VMS_stab_parse): Make `expected_type' arg be int rather than char. 234560484Sobrien (get_VMS_time_on_unix): Define as `static void'. 234660484Sobrien (hash_string): Make definition match actual usage; argument is 234760484Sobrien `char const *' rather than `unsigned char *'. 234860484Sobrien (VMS_Case_Hack_Symbol, VMS_Modify_Psect_Attributes, VMS_Psect_Spec, 234960484Sobrien VMS_Global_Symbol_Spec): Declare string args as `const char *'. 235060484Sobrien [IS_GXX_VTABLE]: New macro. 235160484Sobrien (vms_write_object_file: GSD loop): Use it. 235260484Sobrien (vms_write_object_file: data segment): Reorganize `fill' loop. 235360484Sobrien 235460484SobrienWed Jul 5 12:01:49 1995 Ian Lance Taylor <ian@cygnus.com> 235560484Sobrien 235660484Sobrien * config/tc-sparc.c (md_shortopts): Add "K:" if OBJ_ELF. 235760484Sobrien (md_parse_option): If OBJ_ELF, check for -K. Die if -K PIC, since 235860484Sobrien PIC code is not currently supported. 235960484Sobrien 236060484Sobrien * as.c (parse_args): Change std_shortopts to be an array rather 236160484Sobrien than a constant string. Only include 'K' if WORKING_DOT_WORD is 236260484Sobrien not defined. Only check for 'K' in that case as well. 236360484Sobrien * as.h (flag_warn_displacement): Only declare if WORKING_DOT_WORD 236460484Sobrien is not defined. 236560484Sobrien 236660484Sobrien * conf.in: Add undef of HAVE_SBRK. 236760484Sobrien 236860484Sobrien * config/obj-coff.c (obj_coff_line): Call listing_source_line, in 236960484Sobrien both BFD_ASSEMBLER and non BFD_ASSEMBLER versions of the function. 237060484Sobrien 237160484Sobrien * symbols.c (S_SET_EXTERNAL): Warn if symbol is weak. 237260484Sobrien (S_CLEAR_EXTERNAL): Likewise. 237360484Sobrien (S_SET_WEAK): Warn if symbol is global. 237460484Sobrien 237560484Sobrien * config/obj-aout.c (obj_aout_frob_symbol): Warn about an attempt 237660484Sobrien to put an undefined symbol into a set. 237760484Sobrien 237860484Sobrien * Makefile.in: Remove @configure_input@; it's not needed in 237960484Sobrien files named Makefile. 238060484Sobrien 238160484Sobrien * config/tc-m88k.c (md_pseudo_table): Add ".set" so that the 238260484Sobrien explicit pseudo-op works, while continuing to treat "set" as an 238360484Sobrien instruction. 238460484Sobrien 238560484Sobrien * ecoff.c (ecoff_debugging_seen): New global variable. 238660484Sobrien (ecoff_directive_def): Set ecoff_debugging_seen. 238760484Sobrien (ecoff_stab): Likewise. 238860484Sobrien * ecoff.h: Make idempotent. 238960484Sobrien (ecoff_debugging_seen): Declare. 239060484Sobrien * config/tc-mips.c: Include ecoff.h. 239160484Sobrien (mips_debug): New static variable. 239260484Sobrien (s_stringer, s_mips_space): Remove unneeded declarations. 239360484Sobrien (md_parse_option): In case 'g', set mips_debug to debugging level. 239460484Sobrien (mips_local_label): New function. 239589857Sobrien * config/tc-mips.h (LOCAL_LABEL): Call mips_local_label. 239660484Sobrien (mips_local_label): Declare. 239760484Sobrien 239860484SobrienWed Jul 5 00:59:22 1995 Fred Fish (fnf@cygnus.com) 239960484Sobrien 240060484Sobrien * as.c (main): Only use sbrk when HAVE_SBRK defined. 240160484Sobrien * configure.in: Add test for sbrk. 240260484Sobrien * configure: Regenerate using autoconf 2.4. 240360484Sobrien 240460484SobrienMon Jul 3 15:58:16 1995 Jeff Law (law@snake.cs.utah.edu) 240560484Sobrien 240660484Sobrien * config/tc-hppa.h (MAX_RELOC_EXPANSION): Bump to 6. 240760484Sobrien * config/tc-hppa.c (tc_gen_reloc, SOM version): Handle 240860484Sobrien relocations for the difference of two (possibly external) 240960484Sobrien symbols. 241060484Sobrien (hppa_fix_adjustable): For SOM, reject reductions involving 241160484Sobrien the difference of two symbols. 241260484Sobrien (hppa_force_relocation): Force relocations for expressions 241360484Sobrien involving the difference of two symbols. 241460484Sobrien 241560484SobrienMon Jul 3 14:22:59 1995 Steve Chamberlain <sac@slash.cygnus.com> 241660484Sobrien 241760484Sobrien * configure[.in] (i386-*-win32): New host and target. 241860484Sobrien 241960484SobrienThu Jun 29 17:25:43 1995 Steve Chamberlain <sac@slash.cygnus.com> 242060484Sobrien 242160484Sobrien Support for long filenames non-bfd coff. 242260484Sobrien * config/obj-coff.c (filename_list_head, filename_list_tail): New. 242360484Sobrien (yank_symbols): Notice and record filenames which are too long. 242460484Sobrien (w_strings): Write out filename strings. 242560484Sobrien (c_dot_file_symbols): Put long filenames onto list. 242660484Sobrien 242760484SobrienWed Jun 28 17:33:13 1995 Steve Chamberlain <sac@slash.cygnus.com> 242860484Sobrien 242960484Sobrien * config/obj-coff.c (fixup_segment): PE doesn't use 243060484Sobrien the strange common symbol format that other 386s formats 243160484Sobrien do. 243260484Sobrien * config/tc-i386.c (md_begin): If LEX_AT defined then 243360484Sobrien '@' is in the set of identifiers. 243460484Sobrien (i386_operand): If LEX_AT, then don't look for @goto stuff. 243560484Sobrien * config/te-pe.h: Define LEX_AT. 243660484Sobrien 243760484SobrienWed Jun 28 17:49:59 1995 Ken Raeburn <raeburn@cygnus.com> 243860484Sobrien 243960484Sobrien * doc/as.texinfo (H8/500 Floating Point): Indicate that IEEE FP 244060484Sobrien numbers are for the standard emulation code. 244160484Sobrien (SH Floating Point): Ditto. 244260484Sobrien (Overview): Describe new --emulation option for MIPS. 244360484Sobrien * doc/*.m4: Deleted. 244460484Sobrien 244560484SobrienThu Jun 22 19:26:25 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 244660484Sobrien 244760484Sobrien Sun May 7 11:53:41 MDT 1995 Bryan Ford <baford@cs.utah.edu> 244860484Sobrien 244960484Sobrien * configure.in: Added i386-*-moss* target. 245060484Sobrien 245160484SobrienThu Jun 22 14:41:23 1995 Michael Meissner <meissner@tiktok.cygnus.com> 245260484Sobrien 245360484Sobrien * write.c (write_object_file): Cast decode_local_label_name 245460484Sobrien argument to char * to avoid warning. 245560484Sobrien 245660484SobrienWed Jun 21 18:07:59 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 245760484Sobrien 245860484Sobrien Changes from Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>: 245960484Sobrien * config/tc-m68k.c (insword): Increment the frag offsets. 246060484Sobrien (struct m68k_it): Add reloc[].pcrel_fix field to hold pc-rel 246160484Sobrien fixup. 246260484Sobrien (add_fix): Accept additional parameter, the pc-rel fixup. All 246360484Sobrien callers changed. Fix offset address if width == 'b'. 246460484Sobrien (m68k_ip) [case AINDX]: Allow explicit size spec. Don't make the 246560484Sobrien outer displacement pc-relative. 246660484Sobrien (md_pcrel_from): Make it relative to the first extension word of 246760484Sobrien the operand. 246860484Sobrien (opcode_ptr): Make it a macro if DO_BREAK_UP_BIG_DECL is 246960484Sobrien undefined. 247060484Sobrien (md_convert_frag_1): Don't reference fragP->fr_opcode[2..]. 247160484Sobrien (md_estimate_size_before_relax) [case TAB (FBRANCH, SZ_UNDEF)]: 247260484Sobrien Turn on long bit. 247360484Sobrien (m68k_ip) [case 'C']: Don't set set long bit, set it in the opcode 2474218822Sdim table. 247560484Sobrien (md_estimate_size_before_relax) [case TAB (PCINDEX, SZ_UNDEF)]: 247660484Sobrien Variable part increases by four, not six. 247760484Sobrien * write.c (fixup_segment) [TC_M68K]: Don't do further pcrel 247860484Sobrien processing after converting difference of two symbols in the 247960484Sobrien same segment. 248060484Sobrien 248160484Sobrien * write.c (fixup_segment): Don't conditionalize the pcrel fix on 248260484Sobrien TC_M68K. 248360484Sobrien 248460484Sobrien * config/tc-sparc.c (sparc_ip, case 'A'): If ASI is not a "#" 248560484Sobrien value, don't shift it an extra time. 248660484Sobrien 248760484SobrienWed Jun 21 14:18:37 1995 Steve Chamberlain <sac@slash.cygnus.com> 248860484Sobrien 248960484Sobrien * gasp.c (do_print, do_form, buffer_and_nest): Use case insensitive 249060484Sobrien string compares. 249160484Sobrien 249260484SobrienTue Jun 20 14:55:02 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 249360484Sobrien 249460484Sobrien * config/obj-coff.c (write_object_file): Cast time() argument to 249560484Sobrien time_t *. 249660484Sobrien 249760484SobrienTue Jun 20 12:00:53 1995 Jeff Law (law@snake.cs.utah.edu) 249860484Sobrien 249960484Sobrien * config/tc-hppa.c (pa_build_unwind_subspace): Fix typo in last 250060484Sobrien change. 250160484Sobrien 250260484SobrienMon Jun 19 15:27:17 1995 Jeff Law (law@snake.cs.utah.edu) 250360484Sobrien 250460484Sobrien * config/tc-hppa.c (pa_build_unwind_subspace): Zero out memory 250560484Sobrien from frag_more calls. 250660484Sobrien 250760484SobrienThu Jun 15 16:53:37 1995 Stan Shebs <shebs@andros.cygnus.com> 250860484Sobrien 250960484Sobrien * config/obj-coff.c: Don't use "bfd/" when including libbfd.h 251060484Sobrien and libcoff.h. 251160484Sobrien (fill_section): Call PROGRESS. 251260484Sobrien * Makefile.in (INCLUDES): Add bfd srcdir. 251360484Sobrien 251460484Sobrien * mpw-config.in: Add bfd_gas flag and set for each config. 251560484Sobrien (i386-unknown-go32, m68k-unknown-coff): Recognize. 251660484Sobrien * mpw-make.in (HACK_O_RAMA, OBJ_COFF_OMIT_TIMESTAMP): Add to 251760484Sobrien config.h. 251860484Sobrien 251960484SobrienThu Jun 15 10:04:26 1995 Doug Evans <dje@canuck.cygnus.com> 252060484Sobrien 252160484Sobrien * config/tc-arm.h (LOCAL_LABEL): Prepend '.' if not OBJ_AOUT. 252260484Sobrien (FAKE_LABEL_NAME): Likewise. 252360484Sobrien 252460484SobrienMon Jun 12 22:25:39 1995 Jeff Law (law@snake.cs.utah.edu) 252560484Sobrien 252660484Sobrien * config/tc-hppa.c (pa_ip): Check for invalid register in single 252760484Sobrien precision fmpyadd and fmpysub instructions. 252860484Sobrien 252960484SobrienThu Jun 8 19:33:02 1995 Pat Rankin (rankin@eql.caltech.edu) 253060484Sobrien 253160484Sobrien * config/obj-vms.c (myname): Delete all references. 253260484Sobrien (VMS_stab_parse, Write_VMS_MHD_Records, VMS_Case_Hack_Symbol): 253360484Sobrien Replace printf calls with as_tsktsk. 253460484Sobrien (PUT_LONG, PUT_SHORT): Use COPY_LONG, COPY_SHORT. 253560484Sobrien (VMS_Store_Immediate_Data): Move second buffer capacity check 253660484Sobrien below bottom of loop; first check at top suffices for loop itself. 253760484Sobrien (find_file): Remove redundant pointer checks in first two loops; 253860484Sobrien replace third loop with pointer to last list element determined 253960484Sobrien in first loop. 254060484Sobrien 254160484SobrienTue Jun 6 13:53:06 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 254260484Sobrien 254360484Sobrien * config/tc-sparc.c (sparc_ip): Handle defined absolute symbols as 254460484Sobrien ASI values. 254560484Sobrien 254660484Sobrien * config/obj-vms.c (vms_write_object_file, case N_DATA): Use 254760484Sobrien strcmp against FAKE_LABEL_NAME instead of checking third 254860484Sobrien character. (Suggested by Pat Rankin.) 254960484Sobrien 255060484SobrienMon Jun 5 20:10:46 1995 Pat Rankin (rankin@eql.caltech.edu) 255160484Sobrien 255260484Sobrien Add support for N_ABS and N_ABS|N_EXT type symbols. 255360484Sobrien 255460484Sobrien * config/obj-vms.h (LSY_S_M_{DEF,REL}, ENV_S_M_{DEF,NESTED}): 255560484Sobrien New macros for local symbols (from <lsydef.h> and <envdef.h>). 255660484Sobrien * config/obj-vms.c (Current_Environment): New file-scope variable. 255760484Sobrien (VMS_Local_Environment_Setup): New routine. 255860484Sobrien (GBLSYM_LCL): New macro. 255960484Sobrien (VMS_Global_Symbol_Spec): Handle local symbols too. 256060484Sobrien (VMS_Psect_Spec): Set GLOBALVALUE_BIT for absolute symbols. 256160484Sobrien (VMS_Emit_Globalvalues): Handle local and global absolute symbols. 256260484Sobrien (VMS_Store_PIC_Symbol_Reference): Ditto. 256360484Sobrien (vms_write_object_file: GSD symbol loop): Ditto. 256460484Sobrien 256560484SobrienMon Jun 5 16:10:40 1995 Steve Chamberlain <sac@slash.cygnus.com> 256660484Sobrien 256760484Sobrien * config/tc-arm.h (LOCAL_LABELS_FB): Define. 256860484Sobrien 256960484SobrienMon Jun 5 02:17:58 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com> 257060484Sobrien 257160484Sobrien * configure.in (i386-*-gnu*): Always use GNU ELF config. 257260484Sobrien 257360484SobrienWed May 31 17:49:18 1995 Pat Rankin (rankin@eql.caltech.edu) 257460484Sobrien 257560484Sobrien * config/obj-vms.c (obj_crawl_symbol_chain): Update *symbolPP 257660484Sobrien in `else' clause when removing a symbol. Also, revise comments 257760484Sobrien to match the code. 257860484Sobrien (vms_write_object_file (GSD symbol loop, case N_DATA)): Never 257960484Sobrien output symbol definitions for local numeric labels. 258060484Sobrien 258160484SobrienTue May 30 18:29:10 1995 Richard Earnshaw (rearnsha@armltd.co.uk) 258260484Sobrien 258360484Sobrien * configure.in (architecture variants, cases armeb and arm*): Remove 258460484Sobrien spaces round assignment to endian. 258560484Sobrien 258660484SobrienTue May 30 12:31:31 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 258760484Sobrien 258860484Sobrien * write.c (write_object_file): Check for undefined local dollar 258960484Sobrien and fb labels. 259060484Sobrien 259160484Sobrien * symbols.c (decode_local_label_name): Extract instance number 259260484Sobrien from the correct location. 259360484Sobrien 259460484SobrienSat May 27 21:28:49 1995 J.T. Conklin <jtc@rtl.cygnus.com> 259560484Sobrien 259660484Sobrien * config/te-dpx2.h: Include obj-format.h. 259760484Sobrien (COFF_MAGIC): Renamed from FILE_HEADER_MAGIC. 259860484Sobrien 259960484SobrienWed May 24 13:45:32 1995 Steve Chamberlain <sac@slash.cygnus.com> 260060484Sobrien 260160484Sobrien * configure, configure.in, config/obj-coff.c, config/obj-coff.h: 260260484Sobrien Add support for ARM pe 260360484Sobrien 260460484SobrienTue May 23 17:00:32 1995 Doug Evans <dje@canuck.cygnus.com> 260560484Sobrien 260660484Sobrien * config/tc-sparc.c (tc_gen_reloc): Handle BFD_RELOC_SPARC_WDISP16 260760484Sobrien and BFD_RELOC_SPARC_WDISP19. 260860484Sobrien 260960484SobrienTue May 23 19:18:33 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 261060484Sobrien 261160484Sobrien * as.c (parse_args) [! USE_EMULATIONS]: Always print an error 261260484Sobrien message. 261360484Sobrien 261460484Sobrien * doc/internals.texi: Document obj_app_file and 261560484Sobrien TARGET_BYTES_BIG_ENDIAN. 261660484Sobrien 261760484SobrienMon May 22 20:03:23 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 261860484Sobrien 261960484Sobrien * ecoff.c (ecoff_stab): Add extra leading argument, for 4 May 262060484Sobrien change. 262160484Sobrien * ecoff.h (ecoff_stab): Fix declaration. 262260484Sobrien * obj.h (format_ops.process_stab): Include prototype. 262360484Sobrien * config/obj-elf.h (OBJ_PROCESS_STAB): Pass through seg argument. 262460484Sobrien * config/obj-ecoff.h (OBJ_PROCESS_STAB): Ditto. 262560484Sobrien 262660484Sobrien * config/e-mipself.c (mipself): New emulation mode, doesn't change 262760484Sobrien endianness from configured default. 262860484Sobrien * config/e-mipsecoff.c (mipsecoff): Ditto. 262960484Sobrien * configure.in (mips ecoff/elf targets): Include them. 263060484Sobrien * as.c (mipself, mipsecoff): Declare. 263160484Sobrien 263260484Sobrien * as.c (emulation_name): New variable. 263360484Sobrien (select_emulation_mode): Set emulation_name. Don't change argv. 263460484Sobrien (parse_args): Handle --emulation; complain if the supplied name 263560484Sobrien isn't what select_emulation_name came up with. 263660484Sobrien 263760484SobrienSun May 21 21:36:17 1995 Jeff Law (law@snake.cs.utah.edu) 263860484Sobrien 263960484Sobrien * config/tc-hppa.c: Reverse changes from Dec. 19th which 264060484Sobrien changed the way unwinds were built for ELF. Rely on relocation 264160484Sobrien symbol reductions to avoid placing the end of function marker 264260484Sobrien symbols into the object file's symbol table. 264360484Sobrien 264460484SobrienSat May 20 12:31:36 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com> 264560484Sobrien 264660484Sobrien Added improved VMS support from Pat Rankin: 264760484Sobrien 264860484Sobrien Fri 19 May 16:51:40 1995 Pat Rankin (rankin@eql.caltech.edu) 264960484Sobrien 265060484Sobrien * config/obj-vms.h (AOUT_STABS): Define. 265160484Sobrien 265260484Sobrien * config/obj-vms.c (fpush, rpush): New routines. 265360484Sobrien (push): Replaced by the above. 265460484Sobrien (find_symbol): Slight reorganization to expose tail recursion. 265560484Sobrien 265660484Sobrien Fri Mar 17 18:40:36 1995 Pat Rankin (rankin@eql.caltech.edu) 265760484Sobrien 265860484Sobrien * Makefile.in (VMS_OTHER_OBJS): delete this. 265960484Sobrien * vmsconf.sh (make-gas.com): build ../libiberty/liberty.olb 266060484Sobrien first if necessary; link gas against it. 266160484Sobrien 266260484SobrienFri May 19 16:37:39 1995 Richard Earnshaw (rearnsha@armltd.co.uk) 266360484Sobrien 266460484Sobrien * gasp.c (istrue): Correctly test for string inequality. 266560484Sobrien 266660484SobrienThu May 18 04:25:11 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com> 266760484Sobrien 266860484Sobrien Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk) 266960484Sobrien 267060484Sobrien * config/tc-arm.c (CP_T_{Pre,UD,WB}): Define, bits in co-processor 267160484Sobrien instructions. 267260484Sobrien ([ls]fm_flags): Correct error in bitmasks. 267360484Sobrien (cp_address_required_here): Delete second parameter, FLAGS. All 267460484Sobrien callers changed. Remove all dead code referring to FLAGS. If 267560484Sobrien address is just "[Reg]" then convert into a PRE-INCREMENT UP format. 267660484Sobrien (do_fp_ldmstm): Handle full-descending and empty-ascending stack 267760484Sobrien formats explicitly. 267860484Sobrien 267960484Sobrien * config/tc-arm.c (internalError): Define. 268060484Sobrien (ARM_{1,2,250,3,6,7,7DM,ANY,2UP,ALL,3UP,6UP,LONGMUL}): Define processor 268160484Sobrien variants. 268260484Sobrien (FPU_{CORE,FPA10,FPA11,NONE,ALL,MEMMULTI}): Define floating point 268360484Sobrien variants. 268460484Sobrien ({CPU,FPU}_DEFAULT): Define. 268560484Sobrien (cpu_variant): New variable. 268660484Sobrien (asm_flg): Change more_flags to flag_bits. 268760484Sobrien Add prototypes for new functions. 268860484Sobrien (FLAG_{S,P,B,T,ED,FD,FA,EA,IB,IA,DB,DA,L}): Delete. 268960484Sobrien (s_flag[], ldst_flags[], byte_flag[], cmp_flags[], ldm_flags[], 269060484Sobrien stm_flags[], lfm_flags[], sfm_flags[], round_flags[], except_flags[], 269160484Sobrien cplong_flag[]): New variables. 269260484Sobrien (asm_opcode, insns[]): New format, add version support. 269360484Sobrien (arm_flg_hsh): Delete. 269460484Sobrien (do_mul, do_mla): Remove "Warning" from warning messages. 269560484Sobrien (do_arit): Simplify. 269660484Sobrien (do_swap): Make error message more appropriate. 269760484Sobrien (md_begin): Build hash tables starting at first entry in tables. 269860484Sobrien (md_number_to_chars): Cope with big/little-endian selection. 269960484Sobrien (md_chars_to_number): New function. 270060484Sobrien (md_apply_fix): Rewrite to make endian independent. 270160484Sobrien (tc_gen_reloc): Better error messages. 270260484Sobrien (md_assemble): Reject opcodes forbidden by the currently selected cpu 270360484Sobrien variant. Rewrite handling code for instruction flags. 270460484Sobrien (md_shortopts): Add option "m:". 270560484Sobrien (md_parse_option): Get the desired cpu/fpu variant. 270660484Sobrien 270760484Sobrien From: David Taylor (dtaylor@armltd.co.uk) 270860484Sobrien * configure.in (architecture variants): Check for "armeb" and "arm*", 270960484Sobrien set endianness accordingly. 271060484Sobrien * read.c (read_a_source_file): New hooks md_start_line_hook and 271160484Sobrien md_after_pass_hook. 271260484Sobrien * config/arm-{big,lit}.mt: New files 271360484Sobrien * config/tc-arm.h ({LITTLE,BIG}_ENDIAN, BYTE_ORDER): Define. 271460484Sobrien (TARGET_FORMAT): Select depending on endianness and emulation and 271560484Sobrien object format. 271660484Sobrien (md_after_pass_hook, md_start_line_hook): Define. 271760484Sobrien * config/tc-arm.c: Include subsegs.h, symbols.h and listing.h. 271860484Sobrien (shift[]): Add uppper case equivalents. 271960484Sobrien (CP_T_[XY], TRANS_BIT): Define. 272060484Sobrien (conds[]): Delete initial NULL entry, add "lo" entry as synonym for 272160484Sobrien "cc". 272260484Sobrien (LONGEST_FLAG, flags[]): Delete. 272360484Sobrien (arm_psr): New structure. 272460484Sobrien (psrs[]): New variable. 272560484Sobrien (PSR_ALL): Define. 272660484Sobrien (LONGEST_INST): Bump to 5. 272760484Sobrien (LITERAL_MASK, COND_MASK, OPCODE_MASK, DATA_OP_SHIFT): Define. 272860484Sobrien (OPCODE_{AND,EOR,SUB,RSB,ADD,ADC,SBC,RSC,TST,TEQ,CMP,CMN,ORR,MOV,BIC, 272960484Sobrien MVN}): Define. 273060484Sobrien (insns[]): Add smull, umull, smlal, umlal, ldfm, stfm, msr and mrs 273160484Sobrien instructions. Add nop and adr pseudo ops. 273260484Sobrien (reg_table): Add APCS register name variants. 273360484Sobrien (arm_psr_hsh): New hash table. 273460484Sobrien (md_pseudo_table): Add "ltorg", "pool", "extend", "ldouble" and 273560484Sobrien "packed". 273660484Sobrien (MAX_LITERAL_POOL_SIZE): Define. 273760484Sobrien (struct literalS): New structure. 273860484Sobrien (literals, next_literal_pool_place, lit_pool_num, current_poolP): New 273960484Sobrien variables. 274060484Sobrien (add_to_lit_pool, symbol_locate, symbol_make_empty): New functions. 274160484Sobrien (validate_immediate): Return FAIL on failure. 274260484Sobrien (s_ltorg): New function. 274360484Sobrien (psr_required_here, psrf_required_here): New functions. 274460484Sobrien (cp_address_required_here): New parameter, flag, all callers changed. 274560484Sobrien If flag is non-zero, restrict the legal addressing modes. 274660484Sobrien (do_nop, do_mrs, do_msr, do_mull): New functions. 274760484Sobrien (negate_data_op): New function. 274860484Sobrien (data_op2): accept #x,y meaning x rotated right by y, but only when 274960484Sobrien suitable constants. If immediate is not legal, try changing the 275060484Sobrien opcode. 275160484Sobrien (do_adr): New function. 275260484Sobrien (do_ldst): accept "ldr reg, =expr". Put expr in the pool if it can't 275360484Sobrien be done as an immediate. 275460484Sobrien (do_fp_ldst): Use CP_T_[XY], not immediate values. 275560484Sobrien (do_fp_ldmstm): New function. 275660484Sobrien (arm_psr_parse): New function. 275760484Sobrien (output_inst): Use INSN_SIZE in call to md_number_to_chars. 275860484Sobrien (md_assemble): Add hack so that "Label instruction" causes alignment of 275960484Sobrien the label. 276060484Sobrien (arm_after_pass_hook, arm_start_line_hook, arm_frob_symbol): New 276160484Sobrien functions. 276260484Sobrien 276360484SobrienWed May 17 05:25:16 1995 Michael Meissner <meissner@tiktok.cygnus.com> 276460484Sobrien 276560484Sobrien * config/tc-ppc.c (md_show_usage): Add \'s at end of lines in 276660484Sobrien strings for non-GCC compilers. 276760484Sobrien 276860484SobrienTue May 16 19:36:00 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 276960484Sobrien 277060484Sobrien * config/obj-ecoff.c (ecoff_pop_insert): New function. 277160484Sobrien (ecoff_format_ops): Use it. 277260484Sobrien (obj_ecoff_frob_symbol): Now static. 277360484Sobrien 277460484SobrienWed May 17 00:59:12 1995 Andrew Cagney - aka Noid <cagney@highland.com.au> 277560484Sobrien 277660484Sobrien * config/tc-ppc.c (md_begin): Was assuming that an instruction was 277760484Sobrien bigendian and hence 16bit relocs withing instructions would 277860484Sobrien ALWAYS be at addresses i+2-i+3. In LE mode it is i+0-i+1. 277960484Sobrien 278060484SobrienTue May 16 16:29:58 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 278160484Sobrien 278260484Sobrien * config/obj-multi.h (obj_frob_symbol, obj_frob_file, S_GET_SIZE, 278360484Sobrien S_SET_SIZE, S_GET_ALIGN, S_SET_ALIGN, obj_copy_symbol_attributes, 278460484Sobrien OBJ_PROCESS_STAB): New macros. 278560484Sobrien * config/tc-mips.c: Protect against redefining them also when 278660484Sobrien including obj-elf.h. Test only OBJ_ELF for including elf/mips.h. 278760484Sobrien (mips_init_after_args): New function. Set byte_order here. 278860484Sobrien (md_parse_option): Not here. 278960484Sobrien (byte_order): Don't bother initializing. 279060484Sobrien * config/tc-mips.h (mips_init_after_args): Declare. 279160484Sobrien (tc_init_after_args): New macro. 279260484Sobrien 279360484Sobrien * read.c (s_lcomm): Do ELF/ECOFF test at run time, not compile 279460484Sobrien time. 279560484Sobrien 279660484SobrienFri May 12 14:17:47 1995 Steve Chamberlain <sac@slash.cygnus.com> 279760484Sobrien 279860484Sobrien Initial support for PE object files. 279960484Sobrien * configure.in, configure (i386-*-pe, i386-*-*nt): Add. 280060484Sobrien * config/obj-coff.c (fixup_segment): Cope with PE wierdness. 280160484Sobrien * config/obj-coff.h (TE_PE): New target format. 280260484Sobrien 280360484SobrienThu May 11 14:58:21 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 280460484Sobrien 280560484Sobrien * config/obj-elf.c (NEED_ECOFF_DEBUG): Define if ECOFF_DEBUGGING 280660484Sobrien was defined by header files. Test in preprocessor conditionals 280760484Sobrien instead of ECOFF_DEBUGGING. 280860484Sobrien (ecoff_debug_pseudo_table): Make empty if NEED_ECOFF_DEBUG is not 280960484Sobrien defined. 281060484Sobrien (obj_read_begin_hook, obj_symbol_new_hook, elf_frob_symbol, 281160484Sobrien elf_frob_file): Only call ecoff routines if NEED_ECOFF_DEBUG is 281260484Sobrien defined. 281360484Sobrien (elf_ecoff_set_ext, elf_get_extr, elf_set_index): Define only if 281460484Sobrien NEED_ECOFF_DEBUG is defined. 281560484Sobrien (elf_format_ops): Reference elf_ecoff_set_ext only if 281660484Sobrien NEED_ECOFF_DEBUG. 281760484Sobrien 281860484SobrienWed May 10 18:09:12 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 281960484Sobrien 282060484Sobrien * Makefile.in (OBJS): Include @extra_objects@. 282160484Sobrien (obj-elf.o, obj-ecoff.o, e-mipself.o, e-mipsecoff.o): New rules 282260484Sobrien for building these independently. 282360484Sobrien * emul-target.h, config/e-mipself.c, config/e-mipsecoff.c: New 282460484Sobrien files. 282560484Sobrien 282660484Sobrien * acconfig.h (DEFAULT_EMULATION, EMULATIONS, USE_EMULATIONS, 282760484Sobrien OBJ_MAYBE_*, I386COFF, M68KCOFF, M88KCOFF): New macros. 282860484Sobrien * aclocal.m4 (GAS_UNIQ): New macro. 282960484Sobrien 283060484Sobrien * as.c (emulations, n_emulations) [USE_EMULATIONS]: New variable. 283160484Sobrien (select_emulation_mode, default_emul_bfd_name, common_emul_init) 283260484Sobrien [USE_EMULATIONS]: New functions. 283360484Sobrien (main) [USE_EMULATIONS]: Call select_emulation_mode before other 283460484Sobrien initialization. 283560484Sobrien * emul.h: New file. 283660484Sobrien * as.h [USE_EMULATIONS]: Include it. 283760484Sobrien 283860484Sobrien * configure.in: Handle enable-targets option. Iterate over target 283960484Sobrien list, building up a list of object file formats and emulation 284060484Sobrien configurations. (Only supports emulations for MIPS CPU so far.) 284160484Sobrien If multiple formats are needed, set obj_format to multi and add 284260484Sobrien format config files to extra_files. If emulation modes are 284360484Sobrien needed, add the relevant files to extra_files. 284460484Sobrien 284560484Sobrien * configure.in: Define I386COFF, M68KCOFF, M88KCOFF for those 284660484Sobrien configurations. 284760484Sobrien 284860484Sobrien * ecoff.c (ecoff_generate_asm_lineno): Filename argument now 284960484Sobrien points to const. 285060484Sobrien * ecoff.h (ecoff_generate_asm_lineno): Updated declaration. 285160484Sobrien 285260484Sobrien * obj.h (obj_read_begin_hook): Don't declare function if it's 285360484Sobrien already a macro. 285460484Sobrien 285560484Sobrien * read.c (s_space, cons, stringer): If md_flush_pending_output is 285660484Sobrien defined, call it on entry. 285760484Sobrien * config/obj-elf.c (obj_elf_section): If md_flush_pending_output 285860484Sobrien is defined, call it on entry. If md_elf_section_change_hook is 285960484Sobrien defined, call it before returning normally. 286060484Sobrien 286160484Sobrien * read.h (target_big_endian): Declare. 286260484Sobrien 286360484Sobrien * obj.h (struct format_ops): Added new function pointer fields 286460484Sobrien ecoff_set_ext, read_begin_hook, symbol_new_hook. 286560484Sobrien (ecoff_format_ops, elf_format_ops): Declare. 286660484Sobrien * config/obj-elf.c (elf_s_get_size, elf_s_set_size, 286760484Sobrien elf_s_get_align, elf_s_set_align, elf_copy_symbol_attributes, 286860484Sobrien elf_sec_sym_ok_for_reloc): New functions. 286960484Sobrien (elf_format_ops): New variable. 287060484Sobrien (elf_frob_symbol): Now takes additional int* argument. 287160484Sobrien * config/obj-elf.h (elf_frob_symbol): Update declaration. 287260484Sobrien (elf_pop_insert): Declare. 287360484Sobrien (obj_pop_insert): Define to call elf_pop_insert. 287460484Sobrien * config/obj-ecoff.c (ecoff_sec_sym_ok_for_reloc, 287560484Sobrien obj_ecoff_frob_symbol): New functions. 287660484Sobrien (ecoff_format_ops): New variable. 287760484Sobrien 287860484Sobrien * config/te-generic.h: If OBJ_HEADER is defined, use it as the 287960484Sobrien filename to include in place of obj-format.h. 288060484Sobrien * config/te-multi.h: New file, copied from te-generic.h. 288160484Sobrien * config/obj-elf.c (OBJ_HEADER): Define it to "obj-elf.h". 288260484Sobrien * config/obj-ecoff.c (OBJ_HEADER): Define it to "obj-ecoff.h". 288360484Sobrien 288460484Sobrien * config/obj-elf.c (ECOFF_DEBUGGING): Default to 0. 288560484Sobrien (obj_read_begin_hook, obj_symbol_new_hook, elf_frob_symbol, 288660484Sobrien elf_frob_file): Test it at run time. 288760484Sobrien (obj_ecoff_set_ext, elf_get_extr, elf_set_index): Define 288860484Sobrien unconditionally. 288960484Sobrien (elf_pseudo_table): Renamed from obj_pseudo_table, now static. 289060484Sobrien (ecoff_debug_pseudo_table): Split off into separate table. Define 289160484Sobrien it unconditionally. 289260484Sobrien (elf_pop_insert): New function. 289360484Sobrien * config/obj-elf.h (elf_pop_insert): Declare. 289460484Sobrien (obj_pop_insert): New macro. 289560484Sobrien (obj_ecoff_set_ext) [!OBJ_MAYBE_ELF]: Define to elf_ecoff_set_ext. 289660484Sobrien * config/obj-ecoff.h (obj_ecoff_set_ext): Define to ecoff_set_ext. 289760484Sobrien 289860484Sobrien * config/tc-mips.h: Protect against multiple inclusions. 289960484Sobrien (mips_pop_insert): Declare. 290060484Sobrien (md_pop_insert): Call it. 290160484Sobrien 290260484Sobrien * config/tc-mips.c: If OBJ_MAYBE_ELF is defined, include 290360484Sobrien obj-elf.h, but preserve OUTPUT_FLAVOR and protect some other 290460484Sobrien macros from redefinition. 290560484Sobrien (ECOFF_DEBUGGING): Default to 0. All references changed to 290660484Sobrien run-time tests or made unconditional. 290760484Sobrien (s_stringer, s_mips_space, s_elf_section): Deleted. 290860484Sobrien (md_pseudo_table): Don't refer to them. Split table into three 290960484Sobrien sections, for MIPS, non-ECOFF_DEBUGGING, and ELF. 291060484Sobrien (mips_pop_insert): New function. 291160484Sobrien (mips_flush_pending_output): New function. 291260484Sobrien (mips_enable_auto_align): New function. 291360484Sobrien * config/tc-mips.h (mips_pop_insert): Declare. 291460484Sobrien (md_pop_insert): New macro. 291560484Sobrien (mips_flush_pending_output): Declare. 291660484Sobrien (md_flush_pending_output): New macro. 291760484Sobrien (mips_enable_auto_align): Declare. 291860484Sobrien (md_elf_section_change_hook): New macro, calls 291960484Sobrien mips_enable_auto_align. 292060484Sobrien 292160484SobrienTue May 9 17:07:41 1995 Michael Meissner <meissner@tiktok.cygnus.com> 292260484Sobrien 292360484Sobrien * configure.in: Add little endian PowerPC support. 292460484Sobrien * configure: Rebuild with autoconf. 292560484Sobrien * config/ppc-big.mt: New file for big endian PowerPC systems. 292660484Sobrien * config/ppc-lit.mt: New file for little endian PowerPC systems. 292760484Sobrien 292860484Sobrien * config/tc-ppc.h (target_big_endian): Declare. 292960484Sobrien (TARGET_FORMAT): Deal with little and big endian ELF variants. 293060484Sobrien (TARGET_BYTES_BIG_ENDIAN): Define as 1, not empty. 293160484Sobrien 293260484Sobrien * config/tc-ppc.c (ppc_big_endian): Delete variable, use 293360484Sobrien target_big_endian instead. 293460484Sobrien (md_parse_option): Parse -mlittle and -mlittle-endian to use 293560484Sobrien little endian support. Parse -mbig and -mbig-endian to use big 293660484Sobrien endian support. 293760484Sobrien (md_show_usage): Update to reflect current switches. 293860484Sobrien (ppc_set_cpu): Recognize powerpcle as little endian PowerPC. Use 293960484Sobrien as_fatal, not abort if unknown machine. 294060484Sobrien 294160484SobrienTue May 9 10:58:41 1995 Jeff Law (law@snake.cs.utah.edu) 294260484Sobrien 294360484Sobrien * config/tc-hppa.c (md_apply_fix): Cast *valp to an integer when 294460484Sobrien comparing against signed values. 294560484Sobrien (hppa_force_relocation): Make "distance" an integer. 294660484Sobrien 294760484SobrienTue May 9 00:47:03 1995 Ken Raeburn (raeburn@kr-pc.cygnus.com) 294860484Sobrien 294960484Sobrien * obj.h (struct format_ops) [BFD_ASSEMBLER]: New type. 295060484Sobrien (this_format) [BFD_ASSEMBLER]: Declare new variable, if not 295160484Sobrien already defined as a macro. 295260484Sobrien 295360484SobrienMon May 8 21:44:13 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 295460484Sobrien 295560484Sobrien * subsegs.h (seg_info): Provide dummy version for 295660484Sobrien non-BFD_ASSEMBLER, non-MANY_SEGMENTS configuration. It should 295760484Sobrien never get invoked, but this is easier than conditionalizing some 295860484Sobrien of the uses. 295960484Sobrien (struct seg_info_trash): Dummy type used by above to make code 296060484Sobrien compile. 296160484Sobrien 296260484SobrienFri May 5 14:47:13 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 296360484Sobrien 296460484Sobrien * config/obj-coff.h (SEPARATE_STAB_SECTIONS): Define to 1, not 296560484Sobrien empty. 296660484Sobrien * config/obj-elf.h (SEPARATE_STAB_SECTIONS): Ditto. 296760484Sobrien * config/obj-som.h (SEPARATE_STAB_SECTIONS): Ditto. 296860484Sobrien 296960484SobrienThu May 4 19:26:55 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 297060484Sobrien 297160484Sobrien * stabs.c (get_stab_string_offset): Always define. If 297260484Sobrien SEPARATE_STAB_SECTIONS isn't set, abort. 297360484Sobrien (SEPARATE_STAB_SECTIONS): Default to zero. 297460484Sobrien (aout_process_stab): New function, split out from s_stab_generic. 297560484Sobrien (OBJ_PROCESS_STAB) [AOUT_STABS]: Define to call aout_process_stab, 297660484Sobrien if not already defined. 297760484Sobrien (s_stab_generic): Test SEPARATE_STAB_SECTIONS at run time. If 297860484Sobrien it's not set, and OBJ_PROCESS_STAB isn't defined, abort. Always 297960484Sobrien pass six arguments to OBJ_PROCESS_STAB. 298060484Sobrien * read.h (get_stab_string_offset): Declare unconditionally. 298160484Sobrien * config/obj-aout.h (AOUT_STABS): Define. 298260484Sobrien * config/obj-bout.h (AOUT_STABS): Define. 298360484Sobrien * config/obj-ecoff.h (OBJ_PROCESS_STAB): Add new first argument, 298460484Sobrien ignored. 298560484Sobrien * config/obj-elf.h (OBJ_PROCESS_STAB) [ECOFF_DEBUGGING]: Ditto. 298660484Sobrien 298760484Sobrien * config/obj-ecoff.h (ECOFF_DEBUGGING): Define to 1, not empty. 298860484Sobrien * config/obj-elf.h (ECOFF_DEBUGGING): Ditto. Test value, not 298960484Sobrien whether it's defined. 299060484Sobrien 299160484SobrienWed May 3 21:38:20 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 299260484Sobrien 299360484Sobrien * as.h (LOCAL_LABELS_DOLLAR, LOCAL_LABELS_FB): If not already 299460484Sobrien defined, define them to zero. 299560484Sobrien * config/tc-*.h, config/te-*.h: If defining them, define them to 299660484Sobrien be 1 instead of empty. 299760484Sobrien * expr.c (integer_constant, operand): Test them at run time 299860484Sobrien instead of compile time. 299960484Sobrien * read.c (read_a_source_file): Ditto. 300060484Sobrien * symbols.c (colon): Ditto. 300160484Sobrien (dollar_*, define_dollar_label, fb_*): Define unconditionally. 300260484Sobrien * symbols.h (dollar_*, define_dollar_label, fb_*): Declare 300360484Sobrien unconditionally. 300460484Sobrien 300560484SobrienWed May 3 13:08:53 1995 Jeff Law (law@snake.cs.utah.edu) 300660484Sobrien 300760484Sobrien * config/tc-hppa.c (md_apply_fix): Do nothing for an out of range 300860484Sobrien PC relative call since those only occur in cases where the linker 300960484Sobrien can fix them up. 301060484Sobrien (hppa_force_relocation): Force relocations for out of range PC 301160484Sobrien relative calls. 301260484Sobrien 301360484SobrienTue May 2 16:34:47 1995 Jeff Law (law@snake.cs.utah.edu) 301460484Sobrien 301560484Sobrien * configure (hppa*-*-lites*): Handle just like hppa*-*-*elf*. 301660484Sobrien * configure.in: Likewise. 301760484Sobrien 301860484SobrienTue May 2 11:22:00 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 301960484Sobrien 302060484Sobrien * read.c (pop_insert): New function. 302160484Sobrien (pop_override_ok, pop_table_name): New variables. 302260484Sobrien (md_pop_insert, obj_pop_insert): New macros. 302360484Sobrien (pobegin): Use them. 302460484Sobrien 302560484Sobrien * config/tc-mips.c: Use USE_STDARG and USE_VARARGS instead of 302660484Sobrien NO_STDARG &c. 302760484Sobrien 302860484Sobrien * read.c (target_big_endian): If TARGET_BYTES_BIG_ENDIAN is 302960484Sobrien defined, initialize to 1. 303060484Sobrien * config/tc-mips.c (mips_target_format): Changed to a function, 303160484Sobrien checking flavor and byte order at run time. 303260484Sobrien (md_parse_option, cases OPTION_EB and OPTION_EL): Set 303360484Sobrien target_big_endian here. 303460484Sobrien (md_begin): Not here. 303560484Sobrien * config/tc-mips.h (mips_target_format): Adjust declaration. 303660484Sobrien (TARGET_FORMAT): Call mips_target_format. 303760484Sobrien 303860484Sobrien * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Define in terms of 303960484Sobrien OUTPUT_FLAVOR. 304060484Sobrien * config/tc-mips.c (g_switch_value, g_switch_seen): Define 304160484Sobrien unconditionally. 304260484Sobrien (md_begin, mips_ip, md_parse_option, s_change_sec, s_option, 304360484Sobrien s_abicalls, nopic_need_relax): Check USE_GLOBAL_POINTER_OPT at run 304460484Sobrien time, instead of compiling conditionally on GPOPT. 304560484Sobrien (GPOPT): Don't define. 304660484Sobrien (md_shortopts): Always include -G. 304760484Sobrien (RDATA_SECTION_NAME): Select at run time. 304860484Sobrien (md_begin): Test for ELF format at run time instead of compile time. 304960484Sobrien (mips_ip, s_change_sec): Ditto. 305060484Sobrien (md_parse_option, cases OPTION_CALL_SHARED and OPTION_NON_SHARED): 305160484Sobrien Ditto. 305260484Sobrien (OPTION_CALL_SHARED, OPTION_NON_SHARED, mips_regmask_frag): Define 305360484Sobrien unconditionally. 305460484Sobrien 305560484SobrienTue May 2 00:17:04 1995 Ken Raeburn (raeburn@kr-pc.cygnus.com) 305660484Sobrien 305760484Sobrien * Makefile.in (TARG_CPU_DEP_*): New variables. 305860484Sobrien (targ-cpu.o): Depend on one, selected by autoconf substitution, 305960484Sobrien instead of TARG_CPU_DEPENDENTS. 306060484Sobrien * configure.in: Substitute $cpu_type, $obj_format, $atof, and 306160484Sobrien $emulation into Makefile.in. 306260484Sobrien * config/h8300.mt: Deleted. 306360484Sobrien * config/h8500.mt: Deleted. 306460484Sobrien * config/i386coff.mt (TARG_CPU_DEPENDENTS): Deleted. 306560484Sobrien * config/m68k.mt: Deleted. 306660484Sobrien * config/m68kcoff.mt (TARG_CPU_DEPENDENTS): Deleted. 306760484Sobrien * config/m88kcoff.mt (TARG_CPU_DEPENDENTS): Deleted. 306860484Sobrien * config/mips-big.mt (TARG_CPU_DEPENDENTS): Deleted. 306960484Sobrien * config/mips-lit.mt (TARG_CPU_DEPENDENTS): Deleted. 307060484Sobrien * config/sh.mt: Deleted. 307160484Sobrien * config/w65.mt: Deleted. 307260484Sobrien * config/z8k.mt: Deleted. 307360484Sobrien 307460484Sobrien * config/te-dpx2.h (dpx2): Deleted unused macro. 307560484Sobrien * config/te-generic.h (TE_GENERIC): Ditto. 307660484Sobrien * config/te-go32.h (TE_GO32): Ditto. 307760484Sobrien * config/te-hp300.h (TE_HP300): Ditto. 307860484Sobrien * config/te-hppa.h (PA, _TE_PA_H): Ditto. 307960484Sobrien * config/te-ic960.h (TE_IC960): Ditto. 308060484Sobrien * config/te-nbsd532.h (TE_NETBSD532): Ditto. 308160484Sobrien * config/te-pc532mach.h (TE_PC532MACH): Ditto. 308260484Sobrien * config/te-ppcnw.h (TE_PPCNW): Ditto. 308360484Sobrien * config/te-sco386.h (scounix): Ditto. 308460484Sobrien 308560484SobrienMon May 1 15:59:56 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 308660484Sobrien 308760484Sobrien * read.c (s_app_file): If obj_app_file is defined, call it with 308860484Sobrien string as argument. Don't call c_dot_file_symbol or 308960484Sobrien elf_file_symbol. 309060484Sobrien * config/obj-coff.h (obj_app_file): Define as c_dot_file_symbol. 309160484Sobrien * config/obj-elf.h (obj_app_file): Define as elf_file_symbol. 309260484Sobrien 309360484Sobrien * as.h (OUTPUT_FLAVOR): Don't define here. 309460484Sobrien * config/obj-aout.h (OUTPUT_FLAVOR) [BFD_ASSEMBLER]: Define. 309560484Sobrien * config/obj-bout.h (OUTPUT_FLAVOR): Define. 309660484Sobrien * config/obj-coff.h (OUTPUT_FLAVOR) [BFD_ASSEMBLER]: Define. 309760484Sobrien * config/obj-ecoff.h (OUTPUT_FLAVOR): Define. 309860484Sobrien * config/obj-elf.h (OUTPUT_FLAVOR): Define. 309960484Sobrien 310060484SobrienThu Apr 27 20:07:33 1995 Doug Evans <dje@canuck.cygnus.com> 310160484Sobrien 310260484Sobrien * Makefile.in (RUNTEST): Use one in srcdir if present. 310360484Sobrien (RUNTESTFLAGS): Define. 310460484Sobrien 310560484SobrienWed Apr 26 15:54:10 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 310660484Sobrien 310760484Sobrien Support for more portable alignment handling in assembly code, 310860484Sobrien based on patches from Bryan Ford <baford@schirf.cs.utah.edu>: 310960484Sobrien * read.c (potable): Added balign and p2align, for aligning by 311060484Sobrien bytes or powers of two independent of what ".align" does for a 311160484Sobrien given target. 311260484Sobrien * doc/as.texinfo: Document them. 311360484Sobrien 311460484SobrienTue Apr 25 11:12:04 1995 Rob Savoye <rob@thepub.cygnus.com> 311560484Sobrien 311660484Sobrien * configure, configure.in: Look for m68k-*-vxworks* rather than 311760484Sobrien just m68k-wrs-vxworks so gas can be configured for 311860484Sobrien m68k-vxworks5.1. 311960484Sobrien 312060484SobrienFri Apr 21 15:19:06 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 312160484Sobrien 312260484Sobrien * config/tc-sh.c (md_apply_fix): If fx_r_type is zero, handle 312360484Sobrien fx_size of 1, and abort on unrecognized sizes. 312460484Sobrien 312560484Sobrien * config/tc-m68k.c (m68k_ip): Fix bug in last change regarding 312660484Sobrien non-isvar case. 312760484Sobrien 312860484SobrienSun Apr 16 01:52:52 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com> 312960484Sobrien 313060484Sobrien * config/tc-m68k.h (md_relax_table, TC_GENERIC_RELAX_TABLE): 313160484Sobrien Missed this one in 11 Apr changes. 313260484Sobrien 313360484Sobrien * config/tc-i386.h (TC_GENERIC_RELAX_TABLE): Fix typo. 313460484Sobrien 313560484SobrienThu Apr 13 18:18:08 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 313660484Sobrien 313760484Sobrien * config/tc-sh.c (md_convert_frag): Instead of aborting on large 313860484Sobrien displacements, print an error message. Don't invoke the code that 313960484Sobrien followed the abort call until it's been verified. 314060484Sobrien 314160484Sobrien * config/tc-m68k.c (md_show_usage): Add 68060 to list. Split cpu 314260484Sobrien list into three lines. 314360484Sobrien 314460484SobrienThu Apr 13 14:34:36 1995 Torbjorn Granlund <tege@adder.cygnus.com> 314560484Sobrien 314689857Sobrien * config/tc-m68k.c (m68k_init_after_args): Test for m68360. 314760484Sobrien (md_parse_option): Likewise. 314860484Sobrien (md_show_usage): Mention m68360. 314989857Sobrien * config/tc-m68k.h (TARGET_WORD_SIZE): Define. 315060484Sobrien (TARGET_ARCH): Define. 315160484Sobrien 315260484Sobrien * expr.c (integer_constant): If TARGET_WORD_SIZE is defined, 315360484Sobrien sign-extend appropriately. 315460484Sobrien 315560484SobrienThu Apr 13 11:20:17 1995 Michael Meissner <meissner@tiktok.cygnus.com> 315660484Sobrien 315760484Sobrien * config/tc-ppc.c (ppc_elf_validate_fix): Properly use PARAMS to 315860484Sobrien hide prototype from non-ANSI compilers, and don't use ANSI syntax 315960484Sobrien for arguments. 316060484Sobrien 316160484SobrienWed Apr 12 12:20:19 1995 Stan Shebs <shebs@andros.cygnus.com> 316260484Sobrien 316360484Sobrien * mpw-config.in (TDEFINES): Put empty definition into 316460484Sobrien makefile fragment. 316560484Sobrien * mpw-make.in (xmalloc.c.o): Remove. 316660484Sobrien (as.new): Depend on Version.r. 316760484Sobrien (Version.r): Generate from version info. 316860484Sobrien 316960484Sobrien * mpw-make.in: Delete references to hex-value.c. 317060484Sobrien 317160484Sobrien * mpw-config.in: Add mapping from configs to object file formats, 317260484Sobrien get VERSION from Makefile.in and add to mk.tmp. 317360484Sobrien (mips-idt-ecoff) [TDEFINES]: Add TARGET_BYTES_BIG_ENDIAN. 317460484Sobrien * mpw-make.in (VERSION, gC): Don't define. 317560484Sobrien (ALL_CFLAGS): Remove -d flags. 317660484Sobrien (config.h): Remove definition of MPW, add HAVE_STDARG_H, 317760484Sobrien BFD_ASSEMBLER. 317860484Sobrien 317960484Sobrien * mpw-make.in (ALL_CFLAGS): Add definition of HAVE_STDARG_H, 318060484Sobrien include of ::libiberty:. 318160484Sobrien (config.h): Ifdef contents on GAS_VERSION. 318260484Sobrien 318360484Sobrien * mpw-make.in (as.c): Compile with C not gC. 318460484Sobrien (config-stamp): Touch correctly. 318560484Sobrien (install-only): New target. 318660484Sobrien (install): Depend on all and install-only. 318760484Sobrien 318860484Sobrien * mpw-config.in: Parse target and use to generate forward includes 318960484Sobrien to tc-, obj-, and atof- files, use te-generic.h for emulation. 319060484Sobrien * mpw-make.in (VERSION): Define. 319160484Sobrien (as.c): Compile with GCC. 319260484Sobrien (TARG_OBJECTS, CLIBS): Define. 319360484Sobrien (as.new): Use LDFLAGS, TARG_OBJECTS, CLIBS and EXTRALIBS in link 319460484Sobrien command. 319560484Sobrien (config.h, config-stamp): Build. 319660484Sobrien 319760484Sobrien * mpw-make.in (C, CFLAGS): Removed definitions. 319860484Sobrien (ALL_CFLAGS): Define. 319960484Sobrien Set default rule to use {CC} instead of {C}. 320060484Sobrien 320160484Sobrien * mpw-make.in (install): Moved here from mpw-build.in. 320260484Sobrien * mpw-build.in: Removed, functionality in mpw-make.in 320360484Sobrien 320460484Sobrien * mpw-make.in (CFLAGS): Add more include paths. 320560484Sobrien 320660484Sobrien * mpw-config.in (varargs.h, sys/*.h): Don't create when 320760484Sobrien configuring. 320860484Sobrien * mpw-make.in (CFLAGS): Add -w flag. 320960484Sobrien 321060484Sobrien * mpw-make.in: Replace 8-bit chars with their names. 321160484Sobrien 321260484Sobrien * mpw-config.in: New file, MPW version of configure.in. 321360484Sobrien * mpw-make.in: New file, MPW version of Makefile.in. 321460484Sobrien 321560484SobrienTue Apr 11 01:42:36 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 321660484Sobrien 321760484Sobrien * configure.in: Require at least autoconf 2.3, because earlier 321860484Sobrien versions lose on some AIX versions. 321960484Sobrien * configure: Regenerated. 322060484Sobrien 322160484Sobrien * configure.in: Add m68k-*-elf. 322260484Sobrien * config/tc-m68k.c (comment_chars) [OBJ_ELF]: Include '#'. 322360484Sobrien (md_pseudo_table) [OBJ_ELF]: Ignore "swbeg". 322460484Sobrien (md_begin): Set alt_notend_table['&'], so svr4-style immediate 322560484Sobrien operands are accepted. 322660484Sobrien (md_apply_fix): Argument VALP should point to valueT. 322760484Sobrien (md_convert_frag): Argument SEC should be type segT. 322860484Sobrien (md_shortopts) [OBJ_ELF]: Accept 'Q' with an argument. 322960484Sobrien (md_parse_option): Ignore it. 323060484Sobrien (md_convert_frag_1): Add in frag address for the symbol in the 323160484Sobrien displacement calculation. 323260484Sobrien * config/tc-m68k.h (TARGET_FORMAT) [OBJ_ELF]: Use "elf32-m68k". 323360484Sobrien (TARGET_ARCH): Define. 323460484Sobrien (REGISTER_PREFIX_OPTIONAL) [OBJ_ELF]: Default to 0. 323560484Sobrien (LOCAL_LABEL, FAKE_LABEL_NAME, REGISTER_PREFIX_OPTIONAL): Handle 323660484Sobrien these the same way for OBJ_ELF as for M68KCOFF. 323760484Sobrien 323860484Sobrien * gdbinit.in: Add breakpoint in as_abort. 323960484Sobrien 324060484Sobrien * write.c (cvt_frag_to_fill): If offset is less than zero, 324160484Sobrien complain about it specifically, instead of reporting an assertion 324260484Sobrien failure. 324360484Sobrien (relax_segment): Complain about .org backwards, then ignore it. 324460484Sobrien Do generic rs_machine_dependent relaxation only if 324560484Sobrien TC_GENERIC_RELAX_TABLE is defined, and use its value for the base 324660484Sobrien of the table. 324760484Sobrien * tc.h (md_relax_table): Delete declaration. 324860484Sobrien * as.h (struct relax_type): Add forward declaration for type. 324960484Sobrien * config/tc-a29k.c: Deleted md_relax_table. 325060484Sobrien * config/tc-{alpha,arm,h8300,hppa,i860,m88k,mips,ppc,sparc,z8k}.c: 325160484Sobrien Ditto. 325260484Sobrien * config/tc-{h8500,i386,i960,ns32k,sh,tahoe,vax,w65}.h: Declare 325360484Sobrien md_relax_table here, and define TC_GENERIC_RELAX_TABLE to expand 325460484Sobrien to md_relax_table. 325560484Sobrien * config/tc-h8500.c (md_relax_table): No longer const. 325660484Sobrien * config/tc-w65.c (md_relax_table): Ditto. 325760484Sobrien * config/tc-sparc.c (md_short_jump_size, md_long_jump_size): 325860484Sobrien Deleted. 325960484Sobrien * doc/internals.texi: Describe TC_GENERIC_RELAX_TABLE and 326060484Sobrien WORKING_DOT_WORD. Mention md_*_jump_size (but description needs 326160484Sobrien to be fleshed out later). Note m68k PCINDEX mode has been checked 326260484Sobrien in. 326360484Sobrien 326460484SobrienMon Apr 10 15:57:42 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 326560484Sobrien 326660484Sobrien * config/tc-mips.c (nopic_need_relax): New static function, split 326760484Sobrien out from md_estimate_size_before_relax. 326860484Sobrien (md_estimate_size_before_relax): Call it. 326960484Sobrien (load_address, macro): In NO_PIC branches, if nopic_need_relax 327060484Sobrien returns nonzero, don't attempt GP optimization. 327160484Sobrien 327260484Sobrien * config/tc-m68k.c (PCINDEX): New macro. 327360484Sobrien (md_relax_table): No longer const. Add PCINDEX entries. 327460484Sobrien (m68k_ip): For AINDX with simple symbol operand, generate a 327560484Sobrien PCINDEX frag if PC is used, or do normal non-AINDX processing for 327660484Sobrien address register. 327760484Sobrien (m68k_init_after_args): If cpu is 68000 or 68010, fix 327860484Sobrien md_relax_table to prevent relaxation of PCINDEX/BYTE mode to 327960484Sobrien SHORT, since they don't support that mode. 328060484Sobrien (md_convert_frag_1, case PCLEA/LONG): Add 4 to offset, not 2. Add 328160484Sobrien support for new PCINDEX modes. 328260484Sobrien (md_estimate_size_before_relax): Process PCINDEX/SZ_UNDEF mode. 328360484Sobrien 328460484Sobrien * config/tc-m68k.c (md_convert_frag_1, case PCLEA/SHORT): Add 2 to 328560484Sobrien offset. 328660484Sobrien (m68k_ip, case most punctuation/AOFF): If using PC, call add_frag 328760484Sobrien using PCLEA. 328860484Sobrien 328960484Sobrien * config/tc-m68k.c: Don't explicitly include config.h. Deleted a 329060484Sobrien bunch of "#if 0" code and useless comments. 329160484Sobrien (struct m68k_cpu): New type. 329260484Sobrien (archs, n_archs): New variables, with single list of name/enum 329360484Sobrien mapping and aliases. 329460484Sobrien (m68k_ip): Delete the table here. 329560484Sobrien (m68k_init_after_args): Use the new table here instead of 329660484Sobrien open-coding it. 329760484Sobrien (md_parse_option, case 'm'): Ditto. 329860484Sobrien 329960484Sobrien * doc/Makefile.in (Makefile): Fix rule for running config.status. 330060484Sobrien (internals.dvi, internals.ps, internals.ps4): New targets, not 330160484Sobrien built by default. 330260484Sobrien 330360484Sobrien * doc/internals.texi: Add loud disclaimer. Refill to 79 columns, 330460484Sobrien specify fill-column in local-variables section. Change 330560484Sobrien subheadings to subsections so they can be cross-referenced. 330660484Sobrien Describe broken words, frags, frag chains, generic relaxation, 330760484Sobrien relax table, m68k relaxation, m68k addressing modes, test suite 330860484Sobrien code. Add a few words about various file formats. 330960484Sobrien 331060484Sobrien * doc/as.texinfo (m68k): Recommend using `%' with registers as the 331160484Sobrien normal case, instead of the exceptional case. 331260484Sobrien 331360484SobrienThu Mar 30 14:38:47 1995 H.J. Lu (hjl@nynexst.com) 331460484Sobrien 331560484Sobrien * configure.in: Change linux to default to elf. Using 331660484Sobrien i[345]86-*-linuxaout will defaults to a.out. 331760484Sobrien * configure: Rebuild. 331860484Sobrien 331960484SobrienWed Mar 29 17:16:30 1995 Torbjorn Granlund <tege@adder.cygnus.com> 332060484Sobrien 332160484Sobrien * config/tc-m68k.c (md_apply_fix_2): Cast negative offsets to offsetT 332260484Sobrien (for hosting on 64 bit machines). 332360484Sobrien 332460484SobrienTue Mar 21 16:53:27 1995 Ian Lance Taylor <ian@cygnus.com> 332560484Sobrien 332660484Sobrien * config/tc-mips.c (md_show_usage): Mention -mips4 and -m4650. 332760484Sobrien 332860484SobrienFri Mar 17 16:47:13 1995 Stan Shebs <shebs@andros.cygnus.com> 332960484Sobrien 333060484Sobrien * write.c (write_object_file): Add PROGRESS macros. 333160484Sobrien 333260484SobrienFri Mar 17 12:40:34 1995 Jeff Law (law@snake.cs.utah.edu) 333360484Sobrien 333460484Sobrien * config/tc-hppa.c (pa_comm): Make sure to always reset the frag 333560484Sobrien and section for common symbols. 333660484Sobrien 333760484SobrienThu Mar 16 17:26:18 1995 Michael Meissner <meissner@cygnus.com> 333860484Sobrien 333960484Sobrien * config/tc-ppc.c (ppc_elf_validate_fix): Allow non PC relative 334060484Sobrien pointers in the .ctors and .dtors section also when using the 334160484Sobrien -mrelocatable option. 334260484Sobrien (md_parse_option): Support -m403 as a PowerPC computer. 334360484Sobrien (md_show_usage): Ditto. 334460484Sobrien 334560484SobrienWed Mar 15 14:45:42 1995 Ian Lance Taylor <ian@cygnus.com> 334660484Sobrien 334760484Sobrien * ecoff.c (ecoff_build_debug): The cur_scope field of a fil_ptr 334860484Sobrien may be NULL when given strange input. Don't core dump. 334960484Sobrien 335060484SobrienTue Mar 14 21:36:34 1995 Ian Lance Taylor <ian@cygnus.com> 335160484Sobrien 335260484Sobrien * config/tc-mips.c (load_register): Don't use addiu for dli of an 335360484Sobrien unsigned seemingly negative number. Don't bother shifting a zero 335460484Sobrien value. 335560484Sobrien (mips_ip): For case 'j', if there are more alternatives, and the 335660484Sobrien ISA level is at least 3, don't accept an unsigned seemingly 335760484Sobrien negative number. 335860484Sobrien 335960484SobrienTue Mar 14 19:16:43 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 336060484Sobrien 336160484Sobrien * read.c (s_app_line): Fix last patch to deal with a line number 336260484Sobrien of 1. 336360484Sobrien 336460484SobrienTue Mar 14 17:00:57 1995 Michael Meissner <meissner@tiktok.cygnus.com> 336560484Sobrien 336660484Sobrien * config/tc-ppc.c (ppc_elf_validate_fix): Use as_warn_where, not 336760484Sobrien as_bad_where to give a warning instead of an error. 336860484Sobrien 336960484SobrienMon Mar 13 17:03:46 1995 Pat Rankin (rankin@eql.caltech.edu) 337060484Sobrien 337160484Sobrien * config/tc-vax.c (md_assemble): issue a warning if a constant 337260484Sobrien is used as an operand where an immediate value is not allowed. 337360484Sobrien 337460484SobrienFri Mar 10 19:21:19 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 337560484Sobrien 337660484Sobrien * config/obj-coff.c: Redo my 10 Jan change, but get it right this 337760484Sobrien time. :-) 337860484Sobrien (fixup_segment): If linkrelax is set, just return. 337960484Sobrien (write_object_file): Don't treat h8300 and z8k specially with 338060484Sobrien regard to fixups. 338160484Sobrien * config/tc-h8300.c (md_begin): Set linkrelax. 338260484Sobrien * config/tc-z8k.c (md_begin): Ditto. 338360484Sobrien 338460484SobrienThu Mar 9 18:01:37 1995 Ian Lance Taylor <ian@cygnus.com> 338560484Sobrien 338660484Sobrien * config/obj-coff.c (coff_header_append): Check return value of 338760484Sobrien bfd_coff_swap_scnhdr_out. 338860484Sobrien 338960484SobrienThu Mar 9 13:51:30 1995 Doug Evans <dje@canuck.cygnus.com> 339060484Sobrien 339160484Sobrien Delete this patch, it breaks the h8300 assembler. 339260484Sobrien Tue Jan 10 13:34:14 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 339360484Sobrien * config/obj-coff.c (write_object_file): Don't treat h8300 and z8k 339460484Sobrien specially with regard to fixups. 339560484Sobrien 339660484SobrienThu Mar 9 12:28:18 1995 Michael Meissner <meissner@tiktok.cygnus.com> 339760484Sobrien 339860484Sobrien * config/tc-ppc.c (mrelocatable): Change type to boolean. 339960484Sobrien (md_begin): Set the EF_PPC_RELOCATABLE if -mrelocatable. 340060484Sobrien 340160484SobrienWed Mar 8 15:39:39 1995 Ian Lance Taylor <ian@cygnus.com> 340260484Sobrien 340360484Sobrien * config/tc-mips.c (md_begin): Check for a cpu string of r8000 or 340460484Sobrien r10000. If mips_isa is 4, set the machine number to 8000. 340560484Sobrien (append_insn): If mips_isa is at least 4, don't generate nops for 340660484Sobrien coprocessor delays. Check INSN_READ_FPR_R when setting 340760484Sobrien mips_cprmask[1]. 340860484Sobrien (mips_emit_delays): If mips_isa is at least 4, don't generate nops 340960484Sobrien for coprocessor delays. 341060484Sobrien (mips_ip): Check for INSN_ISA4 instructions. Handle new argument 341160484Sobrien types 'h', 'R', 'N', and 'M'. 341260484Sobrien (md_longopts): Accept "mips4". 341360484Sobrien (md_parse_option): Handle -mips4, and -mcpu=10000 and -mcpu=8000. 341460484Sobrien (s_mipsset): Permit .set mips4. 341560484Sobrien 341660484SobrienWed Mar 8 09:36:05 1995 Michael Meissner <meissner@tiktok.cygnus.com> 341760484Sobrien 341860484Sobrien * config/tc-ppc.c (ppc_elf_validate_fix): Allow .stab sections to 341960484Sobrien have non PC relative relocations with -mrelocatable. 342060484Sobrien 342160484SobrienWed Mar 8 02:57:53 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 342260484Sobrien 342360484Sobrien * config/tc-m68k.c (opcode_ptr): Return pointer to const. 342460484Sobrien (md_begin): Make hash table errors fatal. Process opcode aliases 342560484Sobrien after main opcode table. 342660484Sobrien (md_apply_fix_2, case 4): Recode setting of lower_limit to avoid 342760484Sobrien gcc warning. 342860484Sobrien 342960484SobrienTue Mar 7 16:07:10 1995 Ian Lance Taylor <ian@cygnus.com> 343060484Sobrien 343160484Sobrien * doc/as.texinfo: Add documentation for SPARC V9, from Doug Evans 343260484Sobrien <dje@cygnus.com>. 343360484Sobrien 343460484SobrienMon Mar 6 09:58:34 1995 Jeff Law (law@snake.cs.utah.edu) 343560484Sobrien 343660484Sobrien * config/tc-hppa.c: Change all occurences of pa-89 with pa-11 to 343760484Sobrien be consistent with current naming conventions. 343860484Sobrien (md_begin): Set a default architecture and machine type. 343960484Sobrien (pa_ip): If the current instruction specifies a newer machine type 344060484Sobrien than the current machine type, then update the current machine 344160484Sobrien type. 344260484Sobrien (need_pa11_opcode): Likewise. 344360484Sobrien 344460484SobrienSun Mar 5 19:38:09 1995 Jeff Law (law@snake.cs.utah.edu) 344560484Sobrien 344660484Sobrien * config/tc-hppa.c (pa_ip, case 'z'): Don't lose argument 344760484Sobrien relocation bits for absolute calls. 344860484Sobrien 344960484SobrienFri Mar 3 17:41:50 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 345060484Sobrien 345160484Sobrien * config/tc-h8300.* (md_operand): Change empty function to empty 345260484Sobrien macro. 345360484Sobrien 345460484Sobrien * config/tc-h8300.c (build_bytes): Make H8/300-H warning message 345560484Sobrien clearer. 345660484Sobrien 345760484Sobrien * write.c (write_contents): If bfd_set_section_contents fails, 345860484Sobrien print a message and exit, instead of aborting. 345960484Sobrien 346060484SobrienFri Mar 3 16:26:19 1995 Michael Meissner <meissner@tiktok.cygnus.com> 346160484Sobrien 346260484Sobrien * tc.h (md_apply_fix3): If MD_APPLY_FIX3 is defined, declare 346360484Sobrien md_apply_fix3. 346460484Sobrien 346560484Sobrien * write.c (fixup_segment): If MD_APPLY_FIX3 is defined, call 346660484Sobrien md_apply_fix3 with the normal 2 arguments and the current segment 346760484Sobrien pointer instead of md_apply_fix. 346860484Sobrien 346960484Sobrien * config/tc-ppc.h (MD_APPLY_FIX3): Define. 347060484Sobrien 347160484Sobrien * config/tc-ppc.c (ppc_elf_validate_fix): Warn if -mrelocatable 347260484Sobrien and a non PC relative relocation that isn't in the .got2 segment 347360484Sobrien was performed. 347460484Sobrien (md_apply_fix3): Rename from md_apply_fix and take segment pointer 347560484Sobrien as third argument. If ELF object format, call ppc_elf_validate_fix 347660484Sobrien for normal relocations. 347760484Sobrien (md_parse_option): If ELF object format, recognize the 347860484Sobrien -mrelocatable switch. 347960484Sobrien 348060484SobrienThu Mar 2 16:34:44 1995 Ian Lance Taylor <ian@cygnus.com> 348160484Sobrien 348260484Sobrien * config/tc-i386.h (AOUT_MACHTYPE): Define as 100, not 0. 348360484Sobrien 348460484SobrienTue Feb 28 18:29:27 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 348560484Sobrien 348660484Sobrien * config/tc-arm.c, config/tc-arm.h (md_operand): Replaced empty 348760484Sobrien function in .c file with empty macro in .h file. 348860484Sobrien * config/tc-h8500.*, config/tc-hppa.*, config/tc-i386.*, 348960484Sobrien config/tc-i860.*, config/tc-i960.*, config/tc-ns32k.*, 349060484Sobrien config/tc-ppc.*, config/tc-sh.*, config/tc-sparc.*, 349160484Sobrien config/tc-tahoe.*, config/tc-vax.*, config/tc-w65.*, 349260484Sobrien config/tc-z8k.*: Ditto. 349360484Sobrien * config/tc-m68k.*: Ditto. 349460484Sobrien 349560484Sobrien * config/tc-m68k.c (mote_pseudo_table): Removed dots from opcode 349660484Sobrien names. 349760484Sobrien 349860484Sobrien * read.c (s_app_line): Ignore non-positive line numbers. 349960484Sobrien 350060484SobrienTue Feb 28 15:34:14 1995 Ian Lance Taylor <ian@cygnus.com> 350160484Sobrien 350260484Sobrien * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust PLT or 350360484Sobrien GOT relocs either. 350460484Sobrien 350560484SobrienMon Feb 27 13:03:41 1995 Kung Hsu <kung@mexican.cygnus.com> 350660484Sobrien 350760484Sobrien * configure.in: add a29k-*-vxworks configuration. 350860484Sobrien 350960484SobrienFri Feb 24 14:41:15 1995 Ian Lance Taylor <ian@cygnus.com> 351060484Sobrien 351160484Sobrien * config/tc-mips.c (load_register): Take dbl argument to determine 351260484Sobrien handling of signed 32 bit values in 64 bit modes. Change all 351360484Sobrien callers. 351460484Sobrien (macro): Handle M_DLI and M_DLA_AB. 351560484Sobrien 351660484SobrienWed Feb 22 23:10:56 1995 Jeff Law (law@snake.cs.utah.edu) 351760484Sobrien 351860484Sobrien * config/tc-hppa.c (md_apply_fix): Don't subtract the value of the 351960484Sobrien add symbol if it's a common symbol (the value of a common symbol 352060484Sobrien is its size, not a value in the traditional sense). 352160484Sobrien 352260484SobrienWed Feb 22 21:12:28 1995 Ian Lance Taylor <ian@cygnus.com> 352360484Sobrien 352460484Sobrien * config/tc-mips.c (append_insn): If listing_prev_line is called, 352560484Sobrien call frag_grow to make sure there is still room for a variant. 352660484Sobrien 352760484SobrienFri Feb 17 14:50:08 1995 Ian Lance Taylor <ian@cygnus.com> 352860484Sobrien 352960484Sobrien * config/tc-mips.c (md_pseudo_table): Add 2byte, 4byte and 8byte 353060484Sobrien if OBJ_ELF. From gary@Intrepid.COM (Gary Funck). 353160484Sobrien 353260484Sobrien * config/obj-elf.c (elf_frob_symbol): Warn if a symbol is both 353360484Sobrien weak and common. 353460484Sobrien * config/obj-aout.c (obj_aout_frob_symbol): Likewise. 353560484Sobrien 353660484SobrienFri Feb 17 12:43:47 1995 Michael Meissner <meissner@tiktok.cygnus.com> 353760484Sobrien 353860484Sobrien * config/tc-ppc.c (md_pseudo_table): Don't redefine byte under 353960484Sobrien ELF. 354060484Sobrien (ppc_elf_cons): Don't support @pcrel any more, since DIFF_EXPR_OK 354160484Sobrien allows the normal expressions to generate it. 354260484Sobrien (md_apply_fix): Convert BFD_RELOC_32 with pcrel bit set into 354360484Sobrien BFD_RELOC_32_PCREL. Abort if either BFD_RELOC_16 or BFD_RELOC_8 354460484Sobrien need PC relative relocations. 354560484Sobrien 354660484Sobrien * config/tc-ppc.h (DIFF_EXPR_OK): Define to allow PC relative 354760484Sobrien expressions to be handled. 354860484Sobrien 354960484SobrienThu Feb 16 14:30:13 1995 Doug Evans <dje@cygnus.com> 355060484Sobrien 355160484Sobrien * expr.c (operand): Move md_operand handling to default case 355260484Sobrien (so it works). 355360484Sobrien 355460484SobrienWed Feb 15 16:08:47 1995 Jason Molenda <crash@cygnus.com> 355560484Sobrien 355660484Sobrien * config/tc-h8500.c (tc_coff_symbol_emit_hook): Add ignored 355760484Sobrien parameter, to match prototype. 355860484Sobrien 355960484SobrienWed Feb 15 15:07:00 1995 Michael Meissner <meissner@tiktok.cygnus.com> 356060484Sobrien 356160484Sobrien * config/tc-ppc.c (md_pseudo_table): If ELF, go to ppc_elf_cons 356260484Sobrien instead of cons. 356360484Sobrien (md_show_usage): Show all of the PowerPc options. 356460484Sobrien (ppc_elf_suffix): New function to recognize ELF suffixes that 356560484Sobrien specify a relocation, such as @GOT. 356660484Sobrien (ppc_elf_cons): Replacement for the standard cons function that 356760484Sobrien knows about the ELF suffixes. 356860484Sobrien (ppc_fixup): Add reloc field to hold non-standard relocation. 356960484Sobrien (md_assemble): Handle ELF suffixes like @GOT. 357060484Sobrien (md_create_short_jump): Dummy in case WORKING_DOT_WORD is not 357160484Sobrien defined. 357260484Sobrien (md_create_long_jump): Ditto. 357360484Sobrien (md_short_jump_size): Ditto. 357460484Sobrien (md_long_jump_size): Ditto. 357560484Sobrien (md_apply_fix): Handle BFD_RELOC_32_PCREL, BFD_RELOC_LO16, 357660484Sobrien BFD_RELOC_HI16, BFD_RELOC_HI16_S, BFD_RELOC_PPC_TOC16, and 357760484Sobrien BFD_RELOC_16 relocations. If relocation can not be found, print 357860484Sobrien the decimal value of the relocation. 357960484Sobrien 358060484SobrienWed Feb 15 11:46:02 1995 Ian Lance Taylor <ian@cygnus.com> 358160484Sobrien 358260484Sobrien * config/tc-mips.c (md_apply_fix): Accept BFD_RELOC_16, for 358360484Sobrien DWARF. From gary@Intrepid.COM (Gary Funck). 358460484Sobrien 358560484Sobrien * config/tc-mips.c (macro): Handle M_U{L,S}D[_A] (unaligned double 358660484Sobrien loads and stores). 358760484Sobrien 358860484Sobrien * config/tc-i386.c (tc_i386_fix_adjustable): Do adjust global 358960484Sobrien symbols if OBJ_AOUT. 359060484Sobrien 359160484Sobrien * config/tc-mips.c (macro): Don't use the target register as a 359260484Sobrien base register when building the address for M_L{W,D}{L,R}_AB. 359360484Sobrien 359460484SobrienMon Feb 13 14:44:32 1995 Ian Lance Taylor <ian@cygnus.com> 359560484Sobrien 359660484Sobrien * config/tc-mips.c (KT0, KT1): Define. 359760484Sobrien (mips_ip): Recognize $kt0 and $kt1 as register names. 359860484Sobrien 359960484Sobrien * config/tc-sparc.h (tc_fix_adjustable): Define if OBJ_ELF. 360060484Sobrien * config/tc-sparc.c (md_apply_fix): If OBJ_ELF, subtract out the 360160484Sobrien value of a defined symbol; the value was added in by 360260484Sobrien fixup_segment. This was previously corrected, if the reloc was 360360484Sobrien changed to be against a section symbol, in tc_gen_reloc. 360460484Sobrien 360560484SobrienFri Feb 10 14:04:04 1995 Ian Lance Taylor <ian@cygnus.com> 360660484Sobrien 360760484Sobrien * config/tc-i386.c (tc_i386_fix_adjustable): Use S_IS_EXTERN 360860484Sobrien rather than !S_IS_LOCAL. 360960484Sobrien 361060484SobrienThu Feb 9 18:16:34 1995 Ian Lance Taylor <ian@cygnus.com> 361160484Sobrien 361260484Sobrien * config/tc-i386.c (md_assemble): Adjust conditions for changing 361360484Sobrien BFD_RELOC_32 to BFD_RELOC_386_GOTPC to handle a switch in frags. 361460484Sobrien Patch originally from Rob Ryan <robr@cmu.edu>. 361560484Sobrien 361660484Sobrien * config/tc-i386.c: Include subsegs.h. 361760484Sobrien (tc_i386_fix_adjustable): Declare return value. 361860484Sobrien (i386_operand): Don't use an assignment directly as a condition. 361960484Sobrien 362060484SobrienThu Feb 9 10:37:13 1995 Jeff Law (law@snake.cs.utah.edu) 362160484Sobrien 362260484Sobrien * config/tc-hppa.c (md_apply_fix): In some cases subtract the 362360484Sobrien value of the add symbol from valp. Offsets braindamage in the 362460484Sobrien "machine independent" fixup_segment. 362560484Sobrien 362660484SobrienWed Feb 8 18:51:23 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 362760484Sobrien 362860484Sobrien * messages.c (as_abort): New function. 362960484Sobrien * as.h (as_abort): Declare it. 363060484Sobrien (abort): New macro. 363160484Sobrien 363260484Sobrien Thu Jan 19 18:10:05 1995 Pat Rankin (rankin@eql.caltech.edu) 363360484Sobrien 363460484Sobrien * config/vms-conf.h (HAVE_UNISTD_H): define it unconditionally. 363560484Sobrien * config-gas.com: test for availability of <unistd.h>; create a 363660484Sobrien rudimentary one if necessary. 363760484Sobrien 363860484SobrienTue Feb 7 13:34:46 1995 Michael Meissner <meissner@tiktok.cygnus.com> 363960484Sobrien 364060484Sobrien * configure.in: Add powerpc-*-eabi support, which is the same as 364160484Sobrien powerpc-*-elf. 364260484Sobrien (configure): Rebuild with autoconf. 364360484Sobrien 364460484SobrienMon Feb 6 03:37:00 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 364560484Sobrien 364660484Sobrien Changes from Bryan Ford <baford@schirf.cs.utah.edu> for i386 364760484Sobrien 16-bit and msdos support: 364860484Sobrien * config/tc-i386.c (flag_16bit_code): New variable. 364960484Sobrien (set_16bit_code_flag): New function. 365060484Sobrien (md_pseudo_table): Added entries "code16" and "code32". 365160484Sobrien (md_assemble): Ensure that correct data-size prefixes get emitted, 365260484Sobrien based on the current mode. Ensure that 32-bit addressing will 365360484Sobrien always be done. Move segment-prefix handling code. (Why?) Use 365460484Sobrien 16-bit jumps for 16-bit code, 32-bit jumps for 32-bit code. 365560484Sobrien * config/tc-i386.h (MAX_PREFIXES): Bump to 5. 365660484Sobrien (Data16, Data32): Define. 365760484Sobrien * doc/as.texinfo (i386-16bit): New node. 365860484Sobrien * configure.in (i386-*-msdos*): New target, using a.out format. 365960484Sobrien * configure: Regenerated. 366060484Sobrien 366160484SobrienThu Feb 2 15:21:24 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 366260484Sobrien 366360484Sobrien * config/tc-m68k.c (cpu32_control_regs): New macro. 366460484Sobrien (m68k_init_after_args): Use it, for cpu32 processors. 366560484Sobrien 366660484Sobrien Tue Jan 31 17:20:45 1995 Pat Rankin (rankin@eql.caltech.edu) 366760484Sobrien 366860484Sobrien * config/obj-vms.c (vms_tir_stack_psect): new routine; 366960484Sobrien (VMS_Set_Data, VMS_Set_Psect, VMS_Store_PIC_Symbol_Reference, 367060484Sobrien VMS_TBT_Routine_Begin, VMS_TBT_Line_PC_Correlation): use it; 367160484Sobrien (VMS_Global_Symbol_Spec, VMS_Procedure_Entry_Pt): treat 367260484Sobrien Psect_Number as `unsigned'. 367360484Sobrien 367460484Sobrien Thu Jan 26 17:06:28 1995 Pat Rankin (rankin@eql.caltech.edu) 367560484Sobrien 367660484Sobrien * config/obj-vms.c: performance tuning. 367760484Sobrien (VMS_Symbol_type_list): convert from single list head to small 367860484Sobrien array of list heads; 367960484Sobrien (SYMTYP_HASH): new macro for accessing VMS_Symbol_type_list[]; 368060484Sobrien (find_symbol, setup_basic_type, VMS_typedef_parse): use it; 368160484Sobrien (VMS_RSYM_Parse): move S_GET_VALUE() inside switch to avoid 368260484Sobrien calling it for uninteresting cases. 368360484Sobrien 368460484SobrienWed Feb 1 23:52:45 1995 Jeff Law (law@snake.cs.utah.edu) 368560484Sobrien 368660484Sobrien * config/tc-hppa.c (md_apply_fix): Go ahead and call 368760484Sobrien hppa_field_adjust to get a new value for R_DATA_ONE_SYMBOL 368860484Sobrien relocations in SOM. 368960484Sobrien (hppa_fix_adjustable): Refine somewhat. 369060484Sobrien 369160484SobrienFri Jan 27 21:29:53 1995 Michael Meissner <meissner@tiktok.cygnus.com> 369260484Sobrien 369360484Sobrien * config/tc-ppc.h (NO_STRING_ESCAPES): Don't define if we are 369460484Sobrien using ELF. 369560484Sobrien 369660484SobrienThu Jan 26 19:03:42 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 369760484Sobrien 369860484Sobrien * config/tc-h8300.c (get_specific): Add parens around | inside &. 369960484Sobrien (skip_colonthing): Set L_8 if ":8" is specified. 370060484Sobrien 370160484SobrienThu Jan 26 18:38:01 1995 Ian Lance Taylor <ian@cygnus.com> 370260484Sobrien 370360484Sobrien * config/tc-ppc.c (md_begin): Permit mfdec to be duplicated on the 370460484Sobrien 601. Check that the error return from hash_insert is "exists". 370560484Sobrien 370660484SobrienThu Jan 26 11:35:33 1995 Michael Meissner <meissner@cygnus.com> 370760484Sobrien 370860484Sobrien * configure: Add support for configuring powerpc-*-eabi. 370960484Sobrien 371060484Sobrien * config/tc-ppc.c (GOT_symbol): Define if object format is ELF. 371160484Sobrien 371260484Sobrien * config/tc-ppc.h (GLOBAL_OFFSET_TABLE_NAME): Define if object 371360484Sobrien format is ELF and not defined to be "_GLOBAL_OFFSET_TABLE_". 371460484Sobrien 371560484SobrienWed Jan 25 16:23:13 1995 Jim Wilson <wilson@chestnut.cygnus.com> 371660484Sobrien 371789857Sobrien * config/tc-sh.c (little): Add argument IGNORE to avoid 371889857Sobrien compiler warnings. 371960484Sobrien (md_pseudo_table): Add space for consistent formatting. 372060484Sobrien (COND8_RANGE, COND12_RANGE): Delete unused macros. 372160484Sobrien (COND8_F, COND8_M, COND12_F, COND12_M, UNCOND12_F, UNCOND12_M): 372260484Sobrien Correct minimum and maximum branch offsets. Add comments explaining 372360484Sobrien why these numbers are correct. 372460484Sobrien 372560484SobrienWed Jan 25 15:32:09 1995 David Edelsohn <edelsohn@mhpcc.edu> 372660484Sobrien 372760484Sobrien * config/tc-ppc.c (md_parse_option): Accept mpwr2 as a synonym for 372860484Sobrien mpwrx; mppc32, m603, and m604 as synonyms for mppc; and mppc64 and 372960484Sobrien m620 for PowerPC64 mode. 373060484Sobrien (ppc_symbol_new_hook): Add T0 as synonym for TC0 suffix. 373160484Sobrien 373260484SobrienTue Jan 24 16:44:23 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 373360484Sobrien 373460484Sobrien * config/tc-vax.c (vip): Introduce new ptr-to-const local variable 373560484Sobrien for scanning operand string. 373660484Sobrien 373760484Sobrien Sat Jan 21 17:50:38 1995 Pat Rankin (rankin@eql.caltech.edu) 373860484Sobrien 373960484Sobrien * config/vax-inst.h (struct vop, fields `vop_warn', `vop_error'): 374060484Sobrien make them pointers to const char; 374160484Sobrien (struct vit, field `vit_error'): ditto. 374260484Sobrien * config/atof-vax.c (md_atof): rename local `littlenum_pointer' 374360484Sobrien to `littlenumP' to avoid shadowing file scope variable. 374460484Sobrien * config/tc-vax.c (vip_begin, vip_op_defaults, vip_op_1): make 374560484Sobrien string arguments be pointers to const char; 374660484Sobrien (vip): make `alloperr' const char *; 374760484Sobrien (vip_op): make `err' and `wrn' const char *; rename `access' to 374860484Sobrien `access_mode' to avoid shadowing library function. 374960484Sobrien * config/obj-vms.c (`symbol_name'): make it const char *; 375060484Sobrien (get_struct_name): cast one use of `symbol_name' to char * 375160484Sobrien [caller guarantees that it won't modify the pointer's target]; 375260484Sobrien (PUT_COUNTED_STRING): use pointer to const char; 375360484Sobrien (VMS_typedef_parse): make `pnt2' const char *; 375460484Sobrien (Write_VMS_MHD_Records): make `cp' const char *; 375560484Sobrien (VMS_Modify_Psect_Attributes, array `Attributes'): make const, 375660484Sobrien and make field `Name' pointer to const char; 375760484Sobrien 375860484Sobrien * as.h (`seg_name[]' declaration): pointers to const char; 375960484Sobrien (struct _pseudo_type, field `poc_name'): pointer to const char. 376060484Sobrien * subsegs.c (`seg_name[]' definition): ditto; 376160484Sobrien * hash.c (hash_ask): rename argument `access' to `access_type' 376260484Sobrien to avoid shadowing library function. 376360484Sobrien * write.c (variable `the_object_file'): move from file scope 376460484Sobrien to block scope within write_object_file(); free it after use; 376560484Sobrien (fixup_segment): conditionally exclude it for OBJ_VMS. 376660484Sobrien (cvt_frag_to_fill): rename argument `headers' to `headersP' 376760484Sobrien to avoid shadowing file scope variable. 376860484Sobrien 376960484SobrienMon Jan 23 21:42:39 1995 Jeff Law (law@snake.cs.utah.edu) 377060484Sobrien 377160484Sobrien * config/tc-hppa.c (pa_ip, case 'D'): Fix typo which caused 377260484Sobrien miscompilation of "diag" instructions. 377360484Sobrien 377460484SobrienMon Jan 23 15:51:41 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 377560484Sobrien 377660484Sobrien * configure: Regenerated. 377760484Sobrien 377860484Sobrien * config/tc-mips.c: Include libiberty.h. 377960484Sobrien 378060484SobrienMon Jan 23 14:07:58 1995 Ian Lance Taylor <ian@sanguine.cygnus.com> 378160484Sobrien 378260484Sobrien * config/tc-sh.h (tc_init_after_args): Don't define. 378360484Sobrien * config/tc-sh.c (md_begin): Remove unused variable table. 378460484Sobrien (md_assemble): Remove unused variable p. 378560484Sobrien (md_convert_frag): Cast fr_address to unsigned long for printf. 378660484Sobrien (md_apply_fix): Use as_warn_where rather than as_warn. 378760484Sobrien (sh_init_after_args): Remove empty function. 378860484Sobrien 378960484Sobrien * configure.in (i386-*-gnu*elf*): New target. 379060484Sobrien 379160484SobrienSat Jan 21 19:02:23 1995 Ian Lance Taylor <ian@tweedledumb.cygnus.com> 379260484Sobrien 379360484Sobrien * hash.c (hash_ask): If we find the slot after wrapping around, 379460484Sobrien break out of the loop. Fixes bug in Jan 18 change. 379560484Sobrien 379660484SobrienFri Jan 20 17:07:31 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 379760484Sobrien 379860484Sobrien * hash.c (hash_code): Undo last change. 379960484Sobrien 380060484SobrienThu Jan 19 14:49:47 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 380160484Sobrien 380260484Sobrien * config/tc-alpha.c (alpha_ip): Initialize local variables to keep 380360484Sobrien gcc quiet. 380460484Sobrien (gpdisp_hi16_howto): Don't use "const" with reloc_howto_type. 380560484Sobrien (in_range_signed): Add parens around subtraction inside shift. 380660484Sobrien * gasp.c (do_data): Initialize local variable "opname". 380760484Sobrien (istrue): Provide a default case to set "res" and keep "gcc -Wall" 380860484Sobrien quiet. 380960484Sobrien * write.c (write_contents): Deleted unused variable. 381060484Sobrien (print_symbol_value_1): Declare. 381160484Sobrien * hash.c (hash_ask): Delete disabled non-strcmp version of the 381260484Sobrien code, and automatic variables used only in those sections. 381360484Sobrien * write.c (chain_frchains_together_1): Only define local variable 381460484Sobrien "prev_fix" if BFD_ASSEMBLER. 381560484Sobrien * flonum-konst.c (dummy1): Return void. 381660484Sobrien * config/tc-vax.c (md_assemble): Remove two comparisons of 381760484Sobrien unsigned numbers versus zero. 381860484Sobrien * as.h (bcopy): If neither memcpy nor bcopy is defined as a macro, 381960484Sobrien define to use memcpy. 382060484Sobrien 382160484Sobrien * config/tc-alpha.c, config/alpha-opcode.h: Revert 2 June changes. 382260484Sobrien Turns out we never got the assignment done after all. 382360484Sobrien 382460484Sobrien Cleanup of VAX and VMS code, from Pat Rankin: 382560484Sobrien * config/obj-vms.c: Changed exported function names to lower case. 382660484Sobrien (Changed call sites in write.c.) Declare VMS system function 382760484Sobrien names used, conditional on actually being on VMS. Changed many 382860484Sobrien functions that returned no useful value to now be declared to 382960484Sobrien return void. Removed many unused variables. Supply missing 383060484Sobrien return statements or values. Supply `default' case in switch 383160484Sobrien statements. Ensure local variables get initialized. 383260484Sobrien * config/tc-vax.c: Minor changes to silence "gcc -Wall". 383360484Sobrien * config/obj-vms.h, config/tc-vax.h: Added some missing 383460484Sobrien declarations. 383560484Sobrien 383660484SobrienWed Jan 18 13:49:26 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 383760484Sobrien 383860484Sobrien * atof-generic.c (flonum_print) [TRACE]: New function. 383960484Sobrien (atof_generic) [TRACE]: Print multiplier before multiplication, 384060484Sobrien and print multiplication result before and after copy. 384160484Sobrien 384260484Sobrien * flonum-mult.c (flonum_multip): Avoid sign extension problems 384360484Sobrien around multiplication operation. 384460484Sobrien 384560484Sobrien * atof-generic.c (ASSUME_DECIMAL_MARK_IS_DOT): Define. 384660484Sobrien (atof_generic) [ASSUME_DECIMAL_MARK_IS_DOT]: Check for '.' 384760484Sobrien explicitly instead of calling strchr. 384860484Sobrien 384960484Sobrien * config/tc-sparc.c (sparc_ip): When scanning successive opcode 385060484Sobrien table entries, check names for pointer equality before doing 385160484Sobrien string comparisons. 385260484Sobrien 385360484Sobrien * hash.c (hash_ask): Call strcmp instead of expanding it inline. 385460484Sobrien (hash_code): Replaced with a version from bfd. 385560484Sobrien 385660484Sobrien * config/obj-coff.c (write_object_file): If COFF_FLAGS isn't 385760484Sobrien defined, default it to zero. 385860484Sobrien 385960484SobrienWed Jan 18 12:16:07 1995 Ian Lance Taylor <ian@sanguine.cygnus.com> 386060484Sobrien 386160484Sobrien * write.c (fix_new_internal): Clear fx_bsr on those targets which 386260484Sobrien use it. 386360484Sobrien 386460484Sobrien * expr.c (operand): Parenthesize && within ||. 386560484Sobrien * listing.c (listing_newline): Likewise. 386660484Sobrien (list_symbol_table): Use %lu to print sizeof. 386760484Sobrien * symbols.c: Comment out unused function indent. 386860484Sobrien (print_symbol_value_1): Cast pointer to unsigned long for printf. 386960484Sobrien * config/obj-coff.c (do_relocs_for): Only declare symbol_ptr if it 387060484Sobrien will be used. 387160484Sobrien * config/tc-h8300.c (md_begin): Remove unused variable reg. 387260484Sobrien (get_operand): Declare type of parameter direction. Remove unused 387360484Sobrien variable size. 387460484Sobrien (get_specific): Fix comment to avoid nested comments. 387560484Sobrien (check_operand): Cast X_add_number to unsigned long for printf. 387660484Sobrien (build_bytes): Remove unused local variables output_ptr, part, and 387760484Sobrien high. 387860484Sobrien (build_bytes): Cast X_add_number to unsigned long for printf. 387960484Sobrien (clever_message): Remove unused variable scan. 388060484Sobrien (md_assemble): Remove unused variable i. 388160484Sobrien (tc_coff_sizemachdep): Remove unused function. 388289857Sobrien * config/tc-h8300.h (tc_reloc_mangle): Declare. 388360484Sobrien 388460484SobrienTue Jan 17 10:58:06 1995 Ian Lance Taylor <ian@sanguine.cygnus.com> 388560484Sobrien 388660484Sobrien * config/tc-mips.c (mips_4650): New static variable. 388760484Sobrien (md_begin): Handle a cpu string of "4650". If mips_4650 was not 388860484Sobrien initialized, set it to 0. 388960484Sobrien (append_insn): Don't insert nops around HI and LO on a 4650. 389060484Sobrien (mips_emit_delays): Likewise. 389160484Sobrien (mips_ip): Use INSN_ISA mask to check ISA of instruction. Check 389260484Sobrien for INSN_4650. 389360484Sobrien (md_longopts): Add m4650 and no-m4650. 389460484Sobrien (md_parse_option): Handle mips-cpu=4650. Handle -m4650 and 389560484Sobrien -no-m4650. 389660484Sobrien * doc/as.texinfo: Document new MIPS options. 389760484Sobrien 389860484SobrienSat Jan 14 23:48:13 1995 Steve Chamberlain <sac@jonny> 389960484Sobrien 390060484Sobrien * config/tc-w65.c, config/tc-w65.h, config/w65.mt: Newfiles. 390160484Sobrien * config/obj-coff.h: Cope with w65. 390260484Sobrien * configure, configure.in: Recognize w65. 390360484Sobrien 390460484SobrienThu Jan 12 17:56:24 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 390560484Sobrien 390660484Sobrien * app.c (do_scrub_next_char) [__GNUC__ && __OPTIMIZE__]: If `get' 390760484Sobrien function is scrub_from_file, call scrub_from_file directly, and 390860484Sobrien get gcc's inlining capability into the act. 390960484Sobrien 391060484Sobrien * Makefile.in (VMS_OTHER_OBJS): Add ../libiberty/hex.o. 391160484Sobrien (OBJS): Delete hex-value.o. 391260484Sobrien (REAL_SOURCES): Delete hex-value.c. 391360484Sobrien (hex-value.o): Delete dependencies. 391460484Sobrien * hex-value.c: Deleted. 391560484Sobrien * as.c (main): Call hex_init. 391660484Sobrien * expr.c, config/tc-mips.c: Include libiberty.h. Replace 391760484Sobrien hex_value array references with hex_* macros. 391860484Sobrien 391960484SobrienWed Jan 11 17:51:38 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 392060484Sobrien 392160484Sobrien * config/tc-h8300.h (COFF_FLAGS): Don't define. 392260484Sobrien * config/tc-h8500.h (COFF_FLAGS), config/tc-sh.h (COFF_FLAGS), 392360484Sobrien config/tc-z8k.h (COFF_FLAGS): Ditto. 392460484Sobrien 392560484Sobrien * config/obj-coff.c (KEEP_RELOC_INFO): Make sure it's always 392660484Sobrien defined. 392760484Sobrien 392860484Sobrien * config/tc-m68k.c (m68k_ip, cases AOFF and AINDEX): Don't 392960484Sobrien generate 68020 addressing modes for a 68000 processor. 393060484Sobrien (md_estimate_size_before_relax, cases PCREL and PCLEA): Ditto. 393160484Sobrien 393260484SobrienTue Jan 10 13:34:14 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 393360484Sobrien 393460484Sobrien * config/obj-coff.c (write_object_file): Don't treat h8300 and z8k 393560484Sobrien specially with regard to fixups. 393660484Sobrien 393760484SobrienMon Jan 9 16:22:28 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 393860484Sobrien 393960484Sobrien * config/tc-mips.c (RELAX_RELOC1, RELAX_RELOC2): Cast values to 394060484Sobrien bfd_vma before subtracting. 394160484Sobrien 394260484Sobrien * config/obj-coff.c (size_section): Handle rs_space like rs_fill, 394360484Sobrien but make sure fr_symbol is null. 394460484Sobrien (fill_section): Ditto. 394560484Sobrien 394660484SobrienSun Jan 8 16:14:19 1995 Ian Lance Taylor <ian@tweedledumb.cygnus.com> 394760484Sobrien 394860484Sobrien * config/tc-mips.c (mips_ip): Fix handling of floating point 394960484Sobrien values when GPOPT is not defined. 395060484Sobrien 395160484SobrienFri Jan 6 16:59:41 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 395260484Sobrien 395360484Sobrien * gasp.c: Include string.h. Put config.h before other includes. 395460484Sobrien 395560484Sobrien * config/tc-alpha.c (alpha_ip): Delay calls to emit_add64 until 395660484Sobrien after any remaining operands are also known to match. 395760484Sobrien 395860484SobrienFri Dec 30 18:21:41 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 395960484Sobrien 396060484Sobrien * listing.c (list_symbol_table): Build a format string based on 396160484Sobrien the size of the value to be printed, as long as "unsigned long" is 396260484Sobrien at least as wide, after handling the special case of 4-byte 396360484Sobrien values. 396460484Sobrien 396560484Sobrien * Makefile.in (dependencies): Make $(OBJS) depend on as.h and 396660484Sobrien everything it includes. Delete those files from per-file 396760484Sobrien dependencies. 396860484Sobrien 396960484Sobrien * as.h (relax_substateT): Now defined to be unsigned int. 397060484Sobrien (relax_stateT): Separate typedef from enum definition. 397160484Sobrien (enum _relax_state): Reordered for better punctuation. Added new 397260484Sobrien values rs_align_code and rs_space. 397360484Sobrien (lineno, struct lineno_struct): Unused, deleted. 397460484Sobrien 397560484Sobrien * as.h: No longer include assert.h. 397660484Sobrien (as_assert): Declare. 397760484Sobrien (assert): New definition, calls as_assert longer needed. 397860484Sobrien (__PRETTY_FUNCTION__): Provide default for older versions of gcc. 397960484Sobrien * messages.c (as_assert): New function. 398060484Sobrien * gdbinit.in: Put a breakpoint there. 398160484Sobrien 398260484Sobrien * read.c (s_space): Rewrite to handle general expressions. 398360484Sobrien Generate rs_space frags for non-constant values. 398460484Sobrien * write.c (cvt_frag_to_fill): Treat rs_align_code and rs_space 398560484Sobrien like rs_align and rs_org. Verify that fr_offset is non-negative, 398660484Sobrien and force frag type to rs_fill only after assertion checks. 398760484Sobrien (relax_segment): Treat rs_align_code like rs_align. Treat 398860484Sobrien rs_space like rs_org in the first switch; in the second, force the 398960484Sobrien operand to a constant, and use it for the growth size. 399060484Sobrien 399160484SobrienWed Dec 28 20:57:37 1994 Jeff Law (law@snake.cs.utah.edu) 399260484Sobrien 399360484Sobrien * config/tc-hppa.c (pa_subspace): For sections with the ZERO 399460484Sobrien attribute, set the "bss" field in the appropriate seginfo structure. 399560484Sobrien 399660484SobrienWed Dec 28 15:01:01 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 399760484Sobrien 399860484Sobrien * subsegs.h: Include obstack.h. 399960484Sobrien 400060484SobrienTue Dec 27 18:16:04 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 400160484Sobrien 400260484Sobrien * as.h (struct frag): Enable align* components now. 400360484Sobrien 400460484SobrienTue Dec 20 14:56:31 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 400560484Sobrien 400660484Sobrien * frags.c (frag_init): Call obstack_begin on `frags'. 400760484Sobrien * subsegs.c (subsegs_begin): Don't do it here. 400860484Sobrien * as.c (main): Call frag_init before subsegs_begin. 400960484Sobrien 401060484Sobrien * frags.c (frag_append_1_char): New function. 401160484Sobrien * frags.h (frag_append_1_char): Declare it. 401260484Sobrien (FRAG_APPEND_1_CHAR): Call it. Old definition is commented out 401360484Sobrien for now. 401460484Sobrien 401560484Sobrien * as.h (struct frag): Added (but commented out) new fields for 401660484Sobrien tracking current alignment. 401760484Sobrien (frag_now_fix): Changed macro to function declaration. 401860484Sobrien * frags.c (frag_now_fix): Define function here. 401960484Sobrien (frag_new): Use it instead of accessing `frags' directly. 402060484Sobrien * frags.h (frags): Change comment to indicate it shouldn't be 402160484Sobrien accessed directly. 402260484Sobrien * subsegs.h (struct frchain): New field frch_obstack, intended to 402360484Sobrien eventually replace global `frags' obstack. 402460484Sobrien * subsegs.c (subseg_set_rest): Use frag_now_fix instead of 402560484Sobrien accessing `frags' directly. Initialize fields of new frchainS 402660484Sobrien explicitly instead of with memset. 402760484Sobrien * config/obj-coff.c (obj_coff_ln) [!BFD_ASSEMBLER]: Use 402860484Sobrien frag_now_fix. 402960484Sobrien * config/tc-mips.c (s_loc), config/obj-vms.c 403060484Sobrien (vms_resolve_symbol_redef), symbols.c (colon): Likewise. 403160484Sobrien 403260484Sobrien * config/tc-m68k.c (md_apply_fix_2): Use offsetT and addressT 403360484Sobrien instead of long and unsigned long. 403460484Sobrien (md_apply_fix): Cast value before passing it. 403560484Sobrien 403660484Sobrien * config/obj-aout.h, config/obj-coff.c, config/obj-elf.h, 403760484Sobrien config/obj-som.h, config/tc-h8500.c, config/tc-hppa.c, 403860484Sobrien config/tc-hppa.h, config/tc-sh.c, config/tc-z8k.c: Don't rely on 403960484Sobrien use of ".." when including header files. 404060484Sobrien 404160484Sobrien * config/obj-coff.c (fixup_segment): Reformat condition in an `if' 404260484Sobrien statement. 404360484Sobrien 404460484Sobrien * Makefile.in (SUBDIR_INCLUDES): Deleted. 404560484Sobrien 404660484SobrienTue Dec 20 13:40:36 1994 Ian Lance Taylor <ian@sanguine.cygnus.com> 404760484Sobrien 404860484Sobrien * config/obj-coff.h: Include bfd/libcoff.h, not libcoff.h. 404960484Sobrien 405060484SobrienMon Dec 19 16:53:36 1994 Ian Lance Taylor <ian@sanguine.cygnus.com> 405160484Sobrien 405260484Sobrien * config/tc-mips.c (load_register): Rewrite to handle O_big 64 bit 405360484Sobrien constants. 405460484Sobrien (mips_ip): Accept O_big constants in case 'I'. Change case 405560484Sobrien 'i'/'j' to treat an O_big constant as an out of range value. 405660484Sobrien 405760484SobrienMon Dec 19 14:15:07 1994 Jeff Law (law@snake.cs.utah.edu) 405860484Sobrien 405960484Sobrien * config/tc-hppa.c (pa_subspace): Make sure SEC_HAS_CONTENTS is 406060484Sobrien clear for a section with the "ZERO" attribute. 406160484Sobrien 406260484Sobrien * Reduce useless symbols for ELF in an attempt to make smaller 406360484Sobrien objects and speed up the linker. 406460484Sobrien * config/tc-hppa.c (struct call_info): Replace end_symbol field 406560484Sobrien with a size field. 406660484Sobrien (hppa_elf_mark_end_function): Delete unneeded function. 406760484Sobrien (pa_build_unwind_subspace): For the 2nd unwind relocation, use 406860484Sobrien the function symbol + function size instead of a special symbol 406960484Sobrien for the end of the function. 407060484Sobrien (process_exit): Compute the function size here. Don't call 407160484Sobrien hppa_elf_mark_end_of_function anymore. 407260484Sobrien (pa_procend): Likewise. 407360484Sobrien (hppa_fix_adjustable): Only reject 32bit relocations for SOM. 407460484Sobrien (elf_hppa_final_processing): Simplify. 407560484Sobrien 407660484SobrienMon Dec 19 13:49:07 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 407760484Sobrien 407860484Sobrien * configure.in: Recognize mips-sony-bsd and mips-dec-bsd, but 407960484Sobrien reject other vendors until we can be sure we're consistent with 408060484Sobrien bfd. 408160484Sobrien 408260484Sobrien * config/obj-vms.c (Create_VMS_Object_File): Instead of formatting 408360484Sobrien a buffer to pass to `error', just call `as_fatal' directly. 408460484Sobrien (VMS_Psect_Spec): Ditto. 408560484Sobrien (VMS_TBT_Module_Begin, VMS_TBT_Source_File, gen1, 408660484Sobrien VMS_typedef_parse, VMS_LSYM_Parse, VMS_Emit_Globalvalues): Call 408760484Sobrien as_tsktsk instead of printf. 408860484Sobrien (VMS_TBT_Module_Begin, VMS_TBT_Line_PC_Correlation, 408960484Sobrien VMS_TBT_Source_File, VMS_TBT_Source_Lines, 409060484Sobrien VMS_Store_Repeated_Data, VMS_Check_For_Main): Use explicit 409160484Sobrien integers rather than sizeof expressions using basic integer types, 409260484Sobrien in case host and target aren't the same. Use memcpy or COPY_* 409360484Sobrien macros instead of possibly unaligned word or longword assignment. 409460484Sobrien 409560484Sobrien * config/obj-vms.h (OBJ_SYMFIELD_TYPE): New macro. 409660484Sobrien * config/obj-vms.c (VMS_Store_PIC_Symbol_Reference, 409760484Sobrien VMS_Check_For_Main, VMS_write_object_file): Use sy_obj instead of 409860484Sobrien forcing sy_number to hold a pointer. 409960484Sobrien 410060484SobrienFri Dec 16 14:40:16 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 410160484Sobrien 410260484Sobrien * config/tc-sh.c (md_begin): Don't fill in md_relax_table here. 410360484Sobrien (md_relax_table): Use static initialization. 410460484Sobrien 410560484Sobrien * config/tc-h8300.c (parse_exp, get_operands, clever_message, 410660484Sobrien md_assemble, tc_crawl_symbol_chain, md_undefined_symbol, 410760484Sobrien tc_headers_hook, md_operand, md_number_to_chars): Don't use DEFUN. 410860484Sobrien 410960484Sobrien * Makefile.in (CHECKFLAGS): Don't pass AS_FOR_TARGET, 411060484Sobrien CC_FOR_TARGET, OBJDUMP_FOR_TARGET, NM_FOR_TARGET; they're not 411160484Sobrien used. 411260484Sobrien (AS_FOR_TARGET, CC_FOR_TARGET, OBJDUMP, OBJDUMP_FOR_TARGET, NM, 411360484Sobrien NM_FOR_TARGET): Don't define. 411460484Sobrien (VMS_OTHER_OBJS): Add xmalloc.o and xexit.o from libiberty. 411560484Sobrien (tooldir): Use exec_prefix, not libdir. 411660484Sobrien 411760484SobrienFri Dec 16 11:07:10 1994 Stan Shebs <shebs@andros.cygnus.com> 411860484Sobrien 411960484Sobrien * config/obj-coff.h: Include libcoff.h, not ../bfd/libcoff.h. 412060484Sobrien 412160484Sobrien * as.h: Include progress.h. 412260484Sobrien * as.c (main): Call START_PROGRESS and END_PROGRESS. 412360484Sobrien (main, perform_an_assembly_pass): Call PROGRESS. 412460484Sobrien 412560484SobrienFri Dec 16 00:46:08 1994 Ian Lance Taylor <ian@tweedledumb.cygnus.com> 412660484Sobrien 412760484Sobrien * write.c (adjust_reloc_syms): Use bfd_is_und_section and 412860484Sobrien bfd_is_abs_section rather than comparing against &bfd_und_section 412960484Sobrien and &bfd_abs_section. 413060484Sobrien 413160484SobrienThu Dec 15 15:27:14 1994 Jim Wilson <wilson@chestnut.cygnus.com> 413260484Sobrien 413360484Sobrien * config/tc-sh.c (md_begin): Use a local variable when 413460484Sobrien initializing md_relax_table to avoid errors about modifying a 413560484Sobrien const data structure. 413660484Sobrien 413760484SobrienTue Dec 13 15:42:27 1994 Ian Lance Taylor <ian@sanguine.cygnus.com> 413860484Sobrien 413960484Sobrien * config/tc-ppc.c (tc_gen_reloc): Remove OBJ_ELF hack which 414060484Sobrien appears to no longer be needed. 414160484Sobrien 414260484SobrienTue Dec 13 08:04:15 1994 Ian Lance Taylor <ian@cygnus.com> 414360484Sobrien 414460484Sobrien * config/tc-mips.c (macro_build): Accept BFD_RELOC_PCREL* without 414560484Sobrien requiring that the X_op_symbol be in the text_section. 4146218822Sdim (macro): Change the test for a legal expression difference to 414760484Sobrien correspond to changes in pseudo_set in read.c. 414860484Sobrien 414960484SobrienFri Dec 9 21:04:17 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 415060484Sobrien 415160484Sobrien * write.c (write_relocs) [RELOC_EXPANSION_POSSIBLE]: Use 415260484Sobrien bfd_install_relocation. 415360484Sobrien 415460484Sobrien * ecoff.c (ecoff_set_gp_prolog_size): If there is no current 415560484Sobrien routine, just return. 415660484Sobrien 415760484Sobrien * config/tc-alpha.c (alpha_ip, case 'B', subcase 'c'): Use opcode 415860484Sobrien value from pattern instead of assuming jsr. 415960484Sobrien * config/alpha-opcode.h (jmp): Add a "1,Bc" form. 416060484Sobrien 416160484SobrienThu Dec 8 17:48:25 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 416260484Sobrien 416360484Sobrien * Makefile.in (NM_FOR_TARGET): Use ../binutils/nm.new, not just 416460484Sobrien plain nm. 416560484Sobrien 416660484Sobrien * configure.in (ns32k-pc532-mach*): Select correct emulation. 416760484Sobrien (mips-sony-bsd*): Use ecoff. 416860484Sobrien (mips-*-gnu*): New target, using aout format, from Roland McGrath. 416960484Sobrien * configure: Regenerated. 417060484Sobrien 417160484SobrienTue Nov 29 13:58:10 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 417260484Sobrien 417360484Sobrien Use libiberty version of xmalloc: 417460484Sobrien * Makefile.in (REAL_SOURCES): Delete xmalloc.c. 417560484Sobrien (OBJS): Delete xmalloc.o. 417660484Sobrien (xmalloc.o): Delete dependencies. 417760484Sobrien * as.c (main): Call xmalloc_set_program_name once program name is 417860484Sobrien known. 417960484Sobrien 418060484Sobrien * config/tc-alpha.c (in_range_signed, in_range_unsigned): New 418160484Sobrien routines, split from in_range. 418260484Sobrien (in_range): Deleted. All calls changed to in_range_*signed. 418360484Sobrien (create_lita_section): Macro deleted. Single use expanded in 418460484Sobrien place. 418560484Sobrien (alpha_ip): Handle `t' and `8' operand types. 418660484Sobrien (md_apply_fix): Handle BFD_RELOC_12_PCREL. Print name of 418760484Sobrien unhandled relocation types. 418860484Sobrien * config/alpha-opcode.h: Added HALT and DRAINA. Disabled MOVI, 418960484Sobrien since it doesn't work, and isn't supported by the native 419060484Sobrien assembler. 419160484Sobrien 419260484Sobrien * input-scrub.c: Change wording of a comment to avoid interference 419360484Sobrien with Cygnus source-control tools. 419460484Sobrien 419560484Sobrien * as.h (errno) [NEED_DECLARATION_ERRNO]: Declare. 419660484Sobrien 419760484Sobrien * config/tc-m68k.c (init_table): List buscr and pcr control 419860484Sobrien registers. 419960484Sobrien (m68k_ip, case 'J'): Handle them. 420060484Sobrien 420160484Sobrien Delete signal handler code. It's been disabled since March 1993 420260484Sobrien without complaints. 420360484Sobrien * as.c: Don't include signal.h. 420460484Sobrien (got_sig): Unused function deleted, declaration deleted. 420560484Sobrien (SIGTY): Macro deleted. 420660484Sobrien (main): Deleted disabled code for establishing signal handler. 420760484Sobrien 420860484SobrienMon Nov 28 11:37:35 1994 Doug Evans <dje@canuck.cygnus.com> 420960484Sobrien 421060484Sobrien * app.c (do_scrub_next_char): Insert missing newline at end of file 421160484Sobrien like warning says we do. 421260484Sobrien 421360484SobrienMon Nov 28 00:11:15 1994 Jeff Law (law@snake.cs.utah.edu) 421460484Sobrien 421560484Sobrien * config/tc-hppa.h (pa_check_eof): Declare new extern function. 421660484Sobrien (tc_frob_file): Define to call pa_check_eof. 421760484Sobrien 421860484Sobrien * config/tc-hppa.c (pa_check_current_space_and_subspace): New 421960484Sobrien function to verify the current space and subspace are reasonable. 422060484Sobrien Call for the appropriate pseudo-ops and before instruction parsing. 422160484Sobrien (pa_check_eof): New function to verify enter/exit and proc/procend 422260484Sobrien pairs match at EOF. 422360484Sobrien (pa_code): Simplify. 422460484Sobrien 422560484Sobrien * config/obj-som.c: Delete #if 0 code. 422660484Sobrien 422760484SobrienWed Nov 23 19:36:09 1994 Steve Chamberlain (sac@jonny.cygnus.com) 422860484Sobrien 422960484Sobrien * config/obj-coff.h (TARGET_FORMAT): Select between coff-shl and 423060484Sobrien coff-sh. 423160484Sobrien * config/sh.mh (TARG_CPU_DEPENDENTS): Get it right. 423260484Sobrien * config/tc-sh.c (little): New function. 423360484Sobrien (md_parse_option): Notice new option. 423460484Sobrien (build_relax, build_Mytes, md_atof, md_convert_frag, md_apply_fix): 423560484Sobrien Cope with little endian data. 423660484Sobrien * config/tc-sh.h (COFF_MAGIC, LISTING_HEADER): Endian dependent. 423760484Sobrien 423860484SobrienWed Nov 23 10:54:38 1994 Jeff Law (law@snake.cs.utah.edu) 423960484Sobrien 424060484Sobrien * config/tc-hppa.c (tc_gen_reloc, ELF variant): Revert last 424160484Sobrien change. The real bug was in bfd/elfcode.h and has been fixed. 424260484Sobrien 424360484SobrienTue Nov 22 23:31:20 1994 Jeff Law (law@snake.cs.utah.edu) 424460484Sobrien 424560484Sobrien * config/tc-hppa.c (tc_gen_reloc, ELF variant): Add section->vma 424660484Sobrien to the relocation's offset. 424760484Sobrien 424860484SobrienTue Nov 22 14:37:58 1994 Steve Chamberlain (sac@jonny.cygnus.com) 424960484Sobrien 425060484Sobrien * Makefile.in (INSTALL_XFORM): Fix typo. 425160484Sobrien 425260484SobrienTue Nov 22 10:23:25 1994 J.T. Conklin <jtc@rtl.cygnus.com> 425360484Sobrien 425460484Sobrien * config/tc-alpha.c (s_alpha_set): Ignore the .set (no)move and 425560484Sobrien .set (no)volatile directives. 425660484Sobrien 425760484SobrienTue Nov 15 21:44:13 1994 Jeff Law (law@snake.cs.utah.edu) 425860484Sobrien 425960484Sobrien * config/tc-hppa.c (pa_subspace): Make sure to always reset 426060484Sobrien current_subspace. 426160484Sobrien (pa_text, pa_data): Likewise. 426260484Sobrien 426360484Sobrien * config/tc-hppa.c (pa_align): New function. Aligns the current 426460484Sobrien offset within the current subspace along with updating the 426560484Sobrien alignment of the subspace itself. 426660484Sobrien (pa_subspace): Default alignment to one byte rathern than zero 426760484Sobrien bytes to avoid setting alignment to log2(0). 426860484Sobrien (md_pseudo_table): Use pa_alignment for .align. 426960484Sobrien 427060484SobrienTue Nov 15 15:24:45 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 427160484Sobrien 427260484Sobrien * messages.c (as_fatal): Always put a space after "fatal error:" 427360484Sobrien when printing message. 427460484Sobrien 427560484SobrienTue Nov 15 11:10:43 1994 Jeff Law (law@snake.cs.utah.edu) 427660484Sobrien 427760484Sobrien * config/tc-hppa.h (obj_frob_symbol): Delete. 427860484Sobrien (tc_frob_symbol): Make definition conditional on OBJ_SOM or 427960484Sobrien OBJ_ELF. For ELF subtract out symbol->section->vma for non common 428060484Sobrien symbols. 428160484Sobrien 428260484SobrienWed Nov 9 14:53:03 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 428360484Sobrien 428460484Sobrien * config/te-delta.h: New file, derived from te-sysv32.h. 428560484Sobrien 428660484SobrienWed Nov 9 11:52:44 1994 Ian Lance Taylor (ian@cygnus.com) 428760484Sobrien 428860484Sobrien * config/tc-ppc.c (ppc_bf): Always set coff_line_base. 428960484Sobrien 429060484SobrienMon Nov 7 01:58:49 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 429160484Sobrien 429260484Sobrien * Makefile.in (VERSION): Bump to 2.5.3. 429360484Sobrien 429460484Sobrien * configure.in: Compare generic cpu name against "sparc", not 429560484Sobrien "sparc*", since sparc variants should be changed to "sparc". 429660484Sobrien * configure: Regenerated with autoconf 2.1. 429760484Sobrien 429860484Sobrien * config/tc-a29k.c (octal, toHex): Variables deleted. 429960484Sobrien (isoctal): Macro deleted. 430060484Sobrien (md_begin): Don't initialize them. 430160484Sobrien (machine_ip, case 'P'/'A'): For absolute operand, generate an 430260484Sobrien error message if it's out of range. 430360484Sobrien (md_apply_fix, case RELOC_JUMPTARG): Check range for PC-relative 430460484Sobrien jumps. 430560484Sobrien (md_apply_fix): Delete code inside "#if 0". 430660484Sobrien 430760484SobrienThu Nov 3 20:20:40 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 430860484Sobrien 430960484Sobrien * config/go32.mh: Unused file deleted. 431060484Sobrien 431160484Sobrien * read.c (get_absolute_expression): Indicate that the error may 431260484Sobrien merely be that the expression can't currently be reduced. 431360484Sobrien 431460484SobrienThu Nov 3 16:09:59 1994 J.T. Conklin (jtc@rtl.cygnus.com) 431560484Sobrien 431660484Sobrien * config/tc-m68k.h (TARGET_FORMAT): If TE_NetBSD define as 431760484Sobrien "a.out-m68k-netbsd". 431860484Sobrien * config/tc-sparc.h (TARGET_FORMAT): If TE_NetBSD define as 431960484Sobrien "a.out-sparc-netbsd". 432060484Sobrien 432160484Sobrien * config/te-nbsd.h: New file, NetBSD target emulation 432260484Sobrien * config/te-netbsd.h: Removed. 432360484Sobrien * configure.in (i[345]86-*-netbsd*,m68*-*-netbsd*,sparc*-*-netbsd*): 432460484Sobrien Set bfd_gas. Use nbsd emulation. 432560484Sobrien 432660484SobrienThu Nov 3 17:44:47 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 432760484Sobrien 432860484Sobrien Changes from net 2.5.2 release branch: 432960484Sobrien 433060484Sobrien * configure.in: Put AC_DEFINE(sparcv9) on its own line, so that 433160484Sobrien the shell variable settings associated with it are permanent. For 433260484Sobrien CPUs requiring bfd_gas=yes, select it based on CPU only, not 433360484Sobrien individual target names. Handle m68k-hp-hpux*, not just -hpux. 433460484Sobrien 433560484Sobrien * config/tc-z8k.c (tc_coff_symbol_emit_hook): Add dummy argument 433660484Sobrien to match prototype in obj-coff.h. 433760484Sobrien 433860484Sobrien * configure.in: Skip tests for defining WANT_FOPEN_BIN and 433960484Sobrien IBM_COMPILER_SUX. 434060484Sobrien * acconfig.h: Deleted them. 434160484Sobrien * configure, conf.in: Rebuild with autoconf 2.0. 434260484Sobrien * config/go32.cfg, config/vms-conf.h: Updated. 434360484Sobrien 434460484Sobrien * config/tc-m68k.c (md_apply_fix_2, md_convert_frag_1): Always use 434560484Sobrien IBM_COMPILER_SUX version of code, with comments indicating why. 434660484Sobrien 434760484Sobrien * listing.c (file_info): Use text mode when opening file for read. 434860484Sobrien Use "r" directly, no macro. 434960484Sobrien * input-file.c (input_file_open): Don't use FOPEN_RT, just use 435060484Sobrien "r". 435160484Sobrien * read.c (s_include): Ditto. 435260484Sobrien * output-file.c (output_file_create): Try both "wb" and "w", don't 435360484Sobrien bother with FOPEN_* macros. 435460484Sobrien * as.h: Don't include fopen-*.h. 435560484Sobrien 435660484Sobrien * config/alpha-opcode.h: Make "ret" with no operands equivalent to 435760484Sobrien "ret zero,(ra)", to match OSF1 and to be consistent with both 435860484Sobrien one-operand forms. 435960484Sobrien 436060484Sobrien Patches from DJ Delorie: 436160484Sobrien * as.h (alloca): undef alloca before defining it just in case 436260484Sobrien * config/go32.cfg: new file for autoconf values 436360484Sobrien * config/te-go32.h: new file 436460484Sobrien * configure.bat: new for autoconf 436560484Sobrien 436660484Sobrien * config/tc-i386.c (md_assemble): Fix typo in GOTPC check; had = 436760484Sobrien for ==. 436860484Sobrien 436960484Sobrien * configure.in: If target_frag doesn't exist, use /dev/null. 437060484Sobrien 437160484Sobrien * as.c (parse_args): For non-VMS systems, re-add `v' to 437260484Sobrien std_shortopts. Add "verbose" to list of long options. 437360484Sobrien 437460484Sobrien * write.c (adjust_reloc_syms): When generating an absolute section 437560484Sobrien symbol as a placeholder, don't mark it as used in a relocation 437660484Sobrien entry, here. 437760484Sobrien 437860484Sobrien * Makefile.in (comparison): Compare using makefile code from gcc, 437960484Sobrien stripped down to discard subdir stuff and adapted to give a 438060484Sobrien non-zero exit status if either file differs. 438160484Sobrien 438260484SobrienThu Nov 3 15:43:02 1994 Ian Lance Taylor <ian@sanguine.cygnus.com> 438360484Sobrien 438460484Sobrien * config/tc-mips.c (load_address): Fix RELAX_ENCODE arguments for 438560484Sobrien NO_PIC case. 438660484Sobrien 438760484SobrienTue Nov 1 16:10:59 1994 Ian Lance Taylor <ian@sanguine.cygnus.com> 438860484Sobrien 438960484Sobrien * config/tc-mips.c (s_change_sec): If not GPOPT, don't permit 439060484Sobrien switching to the readonly data section. 439160484Sobrien 439260484Sobrien * ecoff.c (ecoff_directive_type): Fix warning message. 439360484Sobrien 439460484SobrienSun Oct 30 00:57:35 1994 Jeff Law (law@snake.cs.utah.edu) 439560484Sobrien 439660484Sobrien * config/tc-hppa.c (pa_proc): Delete disabled code to put each 439760484Sobrien proc in its own subspace, we're not going to use it. 439860484Sobrien 439960484SobrienTue Oct 25 14:44:33 1994 Ian Lance Taylor <ian@sanguine.cygnus.com> 440060484Sobrien 440160484Sobrien * config/tc-mips.c (macro): Ensure that mips2 case of M_LI_DD in 440260484Sobrien .rdata does not become a variant frag. 440360484Sobrien 440460484Sobrien * config/tc-mips.c (mips_cpu): Initialize to -1. 440560484Sobrien (md_begin): Don't mips_cpu if it was already set. 440660484Sobrien (md_parse_option): For -mipsN, don't set mips_cpu if it was 440760484Sobrien already set. For -mcpu=, just set mips_cpu, not mips_isa. 440860484Sobrien 440960484SobrienFri Oct 21 20:42:29 1994 Ian Lance Taylor <ian@sanguine.cygnus.com> 441060484Sobrien 441160484Sobrien * config/tc-mips.c (md_pseudo_table): If OBJ_ELF, handle .section. 441260484Sobrien (s_elf_section): New static function. 441360484Sobrien * ecoff.c (ecoff_build_symbols): Don't abort if we don't recognize 441460484Sobrien the section when setting the storage class; default to sc_Data. 441560484Sobrien 441660484SobrienThu Oct 20 00:43:38 1994 Jeff Law (law@snake.cs.utah.edu) 441760484Sobrien 441860484Sobrien * config/tc-hppa.c (md_apply_fix): Set new_val to 8 for all 441960484Sobrien fixups to branch instructions (not just pc-relative ones) which 442060484Sobrien will generate SOM relocations. 442160484Sobrien 442260484SobrienWed Oct 19 13:41:56 1994 Ian Lance Taylor <ian@sanguine.cygnus.com> 442360484Sobrien 442460484Sobrien * config/tc-a29k.c: Include ctype.h with angle brackets. 442560484Sobrien (define_some_regs): Add new special register names defined on the 442660484Sobrien 29040. 442760484Sobrien (parse_operand): Add argument opt. If non-zero, don't warn about 442860484Sobrien a missing operand. 442960484Sobrien (machine_ip): If handling argument type 'I', pass opt as non-zero 443060484Sobrien to parse_operand. Handle new optional operand type 'I'. 443160484Sobrien (md_undefined_symbol): Handle special register names (srNN). 443260484Sobrien 443360484SobrienTue Oct 18 00:45:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 443460484Sobrien 443560484Sobrien * write.c (renumber_sections): New static BFD_ASSEMBLER function. 443660484Sobrien (write_object_file): Call it after removing gas created sections. 443760484Sobrien 443860484SobrienMon Oct 17 18:06:05 1994 Ian Lance Taylor <ian@sanguine.cygnus.com> 443960484Sobrien 444060484Sobrien * symbols.c (symbol_create): Use udata.p, not just udata. 444160484Sobrien * config/obj-elf.c (obj_ecoff_set_ext): Likewise. 444260484Sobrien (elf_get_extr): Likewise. 444360484Sobrien 444460484Sobrien * read.c (read_a_source_file): The second argument to as_where is 444560484Sobrien unsigned int *, not int *. 444660484Sobrien 444760484SobrienMon Oct 17 02:26:32 1994 Jeff Law (law@snake.cs.utah.edu) 444860484Sobrien 444960484Sobrien * config/tc-hppa.c: Eliminate all uses of fx_addnumber. 445060484Sobrien (tc_gen_reloc): Simplify. It's no longer necessary to set a 445160484Sobrien reloc's addend field to zero for function symbols. 445260484Sobrien (md_apply_fix): Simplify. For fixups which will require a SOM 445360484Sobrien reloc, just clear out the necessary bits in the output file. 445460484Sobrien 445560484SobrienFri Oct 14 19:06:46 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 445660484Sobrien 445760484Sobrien * Makefile.in (BISON): Use bison -y, not bison. 445860484Sobrien 445960484SobrienThu Oct 13 19:22:54 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 446060484Sobrien 446160484Sobrien * Makefile.in (VERSION): Updated to 2.5. 446260484Sobrien (clean-here): Delete stamp-mk.com. 446360484Sobrien (distclean): Delete .gdbinit. 446460484Sobrien * Version 2.5 released. 446560484Sobrien 446660484SobrienWed Oct 12 20:30:51 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 446760484Sobrien 446860484Sobrien * config/te-nbsd532.h: Renamed from te-netbsd532.h. 446960484Sobrien * configure.in, configure: Adjusted. 447060484Sobrien 447160484SobrienWed Oct 12 16:33:38 1994 J.T. Conklin (jtc@phishhead.cygnus.com) 447260484Sobrien 447360484Sobrien * config/cplus-dem.c: Removed. It isn't used. Even if it was, 447460484Sobrien it's better to use the one in libiberty. 447560484Sobrien 447660484SobrienWed Oct 12 18:48:39 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 447760484Sobrien 447860484Sobrien * symbols.c (resolve_symbol_value, case O_symbol): Undo last 447960484Sobrien change; it breaks the rs6000 support, and doesn't seem to be 448060484Sobrien needed. 448160484Sobrien 448260484SobrienWed Oct 12 11:56:50 1994 J.T. Conklin (jtc@phishhead.cygnus.com) 448360484Sobrien 448460484Sobrien * config/tc-i386.h,te-netbsd532.h (TARGET_FORMAT): Changed to 448560484Sobrien a.out-<arch>-netbsd to match corresponding changes in BFD. 448660484Sobrien 448760484SobrienWed Oct 12 11:06:11 1994 Ian Lance Taylor (ian@cygnus.com) 448860484Sobrien 448960484Sobrien * config/tc-ppc.c (ppc_fix_adjustable): Resolve symbol values 449060484Sobrien rather than explicitly adding the frag address. 449160484Sobrien * config/obj-coff.c (coff_frob_symbol): Add a zero entry to mark 449260484Sobrien the end of the line numbers; this replaces the zero entry which 449360484Sobrien used to be added by coff_add_linesym, removed Oct 7. 449460484Sobrien (coff_adjust_section_syms): Ignore sections with no seginfo. 449560484Sobrien 449660484SobrienWed Oct 12 01:41:37 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 449760484Sobrien 449860484Sobrien * Makefile.in (bootstrap, bootstrap2, bootstrap3): Create a 449960484Sobrien "stage" symlink to the appropriate stage* directory, and use it 450060484Sobrien instead in the -B options. 450160484Sobrien (comparison): Revert yesterday's change. 450260484Sobrien 450360484SobrienTue Oct 11 16:48:11 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 450460484Sobrien 450560484Sobrien * config/tc-sparc.c (tc_gen_reloc): For non-a.out relocations, if 450660484Sobrien pc-relative, use fx_offset only, ignore address of relocation. 450760484Sobrien 450860484SobrienTue Oct 11 15:24:00 1994 Ian Lance Taylor <ian@sanguine.cygnus.com> 450960484Sobrien 451060484Sobrien * config/tc-mips.c (mips_ip): Don't use S_IS_LOCAL when checking 451160484Sobrien for an embedded PIC switch expression, since the definition of 451260484Sobrien S_IS_LOCAL was changed. 451360484Sobrien 451460484SobrienTue Oct 11 15:05:11 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com) 451560484Sobrien 451660484Sobrien * Makefile.in (comparison): When comparing as.new or gasp.new, try 451760484Sobrien running the binary through sed to avoid differences due to 451860484Sobrien "stage1" or "stage2" having been written into the binary. 451960484Sobrien 452060484SobrienSat Oct 8 01:48:04 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com) 452160484Sobrien 452260484Sobrien ELF symbol size handling, based on code from Eric Youngdale: 452360484Sobrien * config/obj-elf.h (OBJ_SYMFIELD_TYPE): New macro. Adds an 452460484Sobrien expression pointer to the symbol structure, used for `size' 452560484Sobrien expressions that couldn't be reduced to constants when initially 452660484Sobrien processed. 452760484Sobrien (elf_frob_symbol): Declare. 452860484Sobrien (obj_frob_symbol): Call elf_frob_symbol always, rather than 452960484Sobrien ecoff_frob_symbol only if ECOFF_DEBUGGING defined. 453060484Sobrien * config/obj-elf.c (obj_symbol_new_hook): Deleted unused code. 453160484Sobrien Clear sy_obj field. 453260484Sobrien (obj_elf_size): Deleted unused code. If size is non-reducible 453360484Sobrien expression, allocate some storage for the sy_obj field and copy 453460484Sobrien the expression. 453560484Sobrien (elf_frob_symbol): New function. Computes sizes, calls 453660484Sobrien ecoff_frob_symbol if appropriate. 453760484Sobrien 453860484Sobrien * write.c (fixup_segment): For i386 elf and coff (for now), don't 453960484Sobrien add in value of symbol from another defined section of the file. 454060484Sobrien 454160484SobrienFri Oct 7 17:54:02 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 454260484Sobrien 454360484Sobrien * config/tc-m88k.h (TC_KEEP_FX_OFFSET): Define. 454460484Sobrien * config/obj-coff.c (do_relocs_for): Test only TC_KEEP_FX_OFFSET, 454560484Sobrien rather than both it and TC_M88K. 454660484Sobrien (coff_adjust_section_syms): New function. 454760484Sobrien (coff_frob_section): For non-empty sections, create aux entry for 454860484Sobrien the section symbol, indicating the size. 454960484Sobrien (n_line_nos): New variable. 455060484Sobrien (add_lineno): Increment it. 455160484Sobrien (coff_add_linesym): Increment n_line_nos, don't call add_lineno. 455260484Sobrien (coff_frob_file): New function; map coff_adjust_section_syms over 455360484Sobrien sections. 455460484Sobrien (obj_coff_line): Only reset line_base for .bf symbols. 455560484Sobrien * config/obj-coff.h (coff_adjust_section_syms, coff_frob_file): 455660484Sobrien Declare. 455760484Sobrien (obj_frob_file): New macro. 455860484Sobrien 455960484Sobrien * config/obj-coff.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Renamed from 456060484Sobrien obj_frob_forward_symbol, and rewritten for new parameter list. 456160484Sobrien 456260484Sobrien Mon Oct 3 21:02:38 1994 Pat Rankin (rankin@eql.caltech.edu) 456360484Sobrien 456460484Sobrien * config/obj-vms.h (S_IS_LOCAL): fix obsolete flagseen[] reference. 456560484Sobrien 456660484SobrienWed Oct 5 11:49:26 1994 Ian Lance Taylor <ian@sanguine.cygnus.com> 456760484Sobrien 456860484Sobrien * config/obj-ecoff.c (obj_pseudo_table): Accept .esize and .etype 456960484Sobrien as synonyms for .size and .type. 457060484Sobrien 457160484SobrienWed Oct 5 00:08:10 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 457260484Sobrien 457360484Sobrien * config/obj-coff.c (coff_frob_section): Remove assert about 457460484Sobrien section alignment. 457560484Sobrien * config/tc-sparc.c (md_section_align): Use section alignment, not 457660484Sobrien xvec align_power_min field. 457760484Sobrien 457860484SobrienFri Sep 30 19:05:20 1994 Pat Rankin (rankin@eql.caltech.edu) 457960484Sobrien 458060484Sobrien * vmsconf.sh (make-gas.com): handle DCL verification to enable 458160484Sobrien sensible feedback to the user while gas is being built. 458260484Sobrien 458360484SobrienFri Sep 30 16:23:31 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 458460484Sobrien 458560484Sobrien * Makefile.in (DISTSTUFF): New variable, listing only make-gas.com 458660484Sobrien for now. 458760484Sobrien (diststuff): New target; builds DISTSTUFF. 458860484Sobrien (realclean): Separate target, depend on clean and distclean, then 458960484Sobrien delete DISTSTUFF. 459060484Sobrien * make-gas.com: Deleted. 459160484Sobrien 459260484Sobrien * config/tc-i386.c (i386_validate_fix) [BFD_ASSEMBLER]: New 459360484Sobrien function. Converts reloc for "foo-GOT" to BFD_RELOC_386_GOTOFF 459460484Sobrien reloc for "foo". 459560484Sobrien (i386_operand): Don't look up section symbol for 459660484Sobrien undefined_section. 459760484Sobrien (reloc): Always permit return of 8- and 16-bit relocation types. 459860484Sobrien Add a space after "pc-relative" in the error message. 459960484Sobrien (tc_i386_fix_adjustable) [BFD_ASSEMBLER]: Reject 460060484Sobrien BFD_RELOC_386_GOTOFF relocs. 460160484Sobrien (i386_operand): For any GOTOFF reloc, convert it to a BFD_RELOC_32 460260484Sobrien with a "foo-GOT" value. 460360484Sobrien * config/tc-i386.h (i386_validate_fix): Declare it. 460460484Sobrien (TC_VALIDATE_FIX): New macro -- call it. 460560484Sobrien (NOP_OPCODE): Cast to `char' to avoid compiler warnings. 460660484Sobrien 460760484Sobrien * as.h: If __STDC__ is not defined and varargs.h is available, use 460860484Sobrien it rather than stdarg.h. 460960484Sobrien 461060484Sobrien * write.h (struct fix): Added new bitfield fx_plt, for fixups 461160484Sobrien referring to PLT entries. 461260484Sobrien * write.c (fix_new_internal): Initialize fx_plt to zero. 461360484Sobrien (adjust_reloc_syms): Re-fetch `sym' after top of reduction loop. 461460484Sobrien Don't adjust fx_offset by frag address, since S_GET_VALUE now 461560484Sobrien includes the frag address. 461660484Sobrien (fixup_segment): Changed local var PCREL to type int, added PLT. 461760484Sobrien If PC-relative fixup refers to a PLT entry for a symbol in the 461860484Sobrien current section, don't reduce it. 461960484Sobrien 462060484Sobrien * write.c (adjust_reloc_syms): Exit loop through a label. If 462160484Sobrien DEBUG5 is defined, print out each fixup before and after 462260484Sobrien processing. 462360484Sobrien (fixup_segment): If DEBUG5 is defined, print out each fixup before 462460484Sobrien and after processing. 462560484Sobrien (print_fixup): Added prototype. Show address on first line. Show 462660484Sobrien fx_offset and fx_subsy. [!BFD_ASSEMBLER]: Only show fx_r_type if 462760484Sobrien NEED_FX_R_TYPE is defined. 462860484Sobrien 462960484Sobrien * symbols.c (print_symbol_value_1): Check S_IS_LOCAL, S_IS_EXTERN, 463060484Sobrien S_IS_DEBUG, S_IS_DEFINED also. 463160484Sobrien 463260484SobrienThu Sep 29 18:57:06 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 463360484Sobrien 463460484Sobrien * Makefile.in (all): Depend on .gdbinit. 463560484Sobrien (.gdbinit): Rebuild from gdbinit.in by running config.status. 463660484Sobrien 463760484Sobrien * gdbinit.in: Define new function "pf". Fix doc on "pe" and "ps". 463860484Sobrien 463960484Sobrien * write.c (print_fixup): Print source location on first line. 464060484Sobrien Show fx_r_type and fx_addsy fields. 464160484Sobrien 464260484SobrienWed Sep 28 14:56:39 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 464360484Sobrien 464460484Sobrien * configure.in: Set bfd_gas for all sparc targets in one place, 464560484Sobrien instead of separately for each. Correctly handle user-supplied 464660484Sobrien "--enable-bfd-gas" option. 464760484Sobrien 464860484Sobrien * gdbinit.in: Move "break abort" to end, in case gdb complains. 464960484Sobrien 465060484Sobrien * as.h (PRINTF_WHERE_LIKE, PRINT_LIKE) [USE_STDARG, !__GNUC__]: 465160484Sobrien Use PARAMS macro. 465260484Sobrien 465360484Sobrien * symbols.c (resolve_symbol_value, case O_symbol): Don't do any 465460484Sobrien processing if add_symbol is undefined or in expr_section. 465560484Sobrien (resolve_symbol_value, case O_add): For symbol plus 465660484Sobrien constant-valued symbol, convert to O_symbol and re-reduce. 465760484Sobrien (S_GET_VALUE): If symbol needs resolving, resolve it. 465860484Sobrien (indent_level): No longer static. 465960484Sobrien (print_symbol_value_1): Don't print frag address if it matches 466060484Sobrien zero_address_frag. Don't print "resolving" if already resolved. 466160484Sobrien Print segment name. Don't call print_expr_1 on an undefined 466260484Sobrien symbol. 466360484Sobrien (print_expr_1): Fix whitespace before printing X_add_number. 466460484Sobrien 466560484Sobrien * expr.c (make_expr_symbol): No longer static. Use symbol_create, 466660484Sobrien not symbol_new, for symbols holding expression values. 466760484Sobrien * expr.h (make_expr_symbol): Move declaration here. 466860484Sobrien * write.c (fix_new_exp): Handle O_add by creating an 466960484Sobrien expression-valued symbol, and calling fix_new_exp recursively. 467060484Sobrien (adjust_reloc_syms): If a fixup's symbol value is a sum of an 467160484Sobrien undefined symbol and a constant, fold the constant into the fixup, 467260484Sobrien and refer to the undefined symbol directly. Then process the 467360484Sobrien fixup again from scratch. 467460484Sobrien (write_object_file): Before calling adjust_reloc_syms, make a pass 467560484Sobrien through the symbol list trying to resolve values. 467660484Sobrien 467760484Sobrien * write.c (print_fixup): New routine, for debugging. 467860484Sobrien (write_relocs): Call bfd_install_relocation. Deleted various 467960484Sobrien hacks for working around problems with bfd_perform_relocation. 468060484Sobrien 468160484Sobrien * Makefile.in (VERSION): Update to 2.4.90. 468260484Sobrien 468360484SobrienWed Sep 28 11:50:40 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 468460484Sobrien 468560484Sobrien * Makefile.in (gasp.o): Depends upon config.h. 468660484Sobrien 468760484Sobrien * config/tc-mips.c: Include subsegs.h. 468860484Sobrien (md_apply_fix): If an unconditional b or bal overflows, and we are 468960484Sobrien not assembling PIC code, replace it with a j or jal. 469060484Sobrien 469160484Sobrien * config/tc-mips.c (md_apply_fix): Correct branch overflow test. 469260484Sobrien Use as_bad_where and as_warn_where rather than as_bad and as_warn. 469360484Sobrien 469460484SobrienMon Sep 26 17:15:59 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 469560484Sobrien 469660484Sobrien * write.c (write_relocs): Add file name and line number to 469760484Sobrien as_fatal calls. Handle bfd_reloc_overflow case specifically when 469860484Sobrien RELOC_EXPANSION_POSSIBLE. 469960484Sobrien 470060484SobrienFri Sep 23 16:11:28 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 470160484Sobrien 470260484Sobrien * as.h (USE_STDARG, USE_VARARGS): Define one or neither of these 470360484Sobrien here. Use them for deciding which PRINTF*LIKE macro definitions 470460484Sobrien to use. 470560484Sobrien * messages.c: Use them, instead of NO_STDARG, NO_VARARGS. 470660484Sobrien [!USE_STDARG && !USE_VARARGS] (va_alist, va_dcl, ...): Provide 470760484Sobrien default definitions matching what we were doing before. 470860484Sobrien (as_tsktsk): Remove the non-stdarg, non-varargs version, and 470960484Sobrien always use the varargs form if not using stdarg. It's safe to 471060484Sobrien always use vfprintf, because libiberty will provide it if the 471160484Sobrien native system doesn't. Also, always make format be const. 471260484Sobrien (as_warn, as_warn_where, as_bad, as_bad_where, as_fatal): Ditto. 471360484Sobrien 471460484SobrienFri Sep 23 14:42:34 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 471560484Sobrien 471660484Sobrien * config/tc-mips.c (load_register): Always use addiu when adding a 471760484Sobrien constant to $zero--no need to use daddiu. 471860484Sobrien (macro): Hack the -mips3 overflow tests to not fail when offsetT 471960484Sobrien is only 32 bits. 472060484Sobrien 472160484Sobrien * symbols.h (copy_symbol_attributes): Declare. 472260484Sobrien 472360484SobrienThu Sep 22 21:58:24 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 472460484Sobrien 472560484Sobrien * listing.c: Bugfixes based in part on patches from Paul 472660484Sobrien Kranenburg. 472760484Sobrien (listing_newline): Check filename as well as line number when 472860484Sobrien deciding whether to record it. 472960484Sobrien (list_symbol_table) [S_IS_REGISTER]: Check that S_IS_REGISTER is 473060484Sobrien false (if defined) as well as checking for reg_section. 473160484Sobrien (listing_listing): Iterate fetching lines while line number is too 473260484Sobrien low, and we haven't run off the end of the input file. 473360484Sobrien 473460484Sobrien * config/vms-conf.h: Changed HAVE_DELETE to HAVE_REMOVE. 473560484Sobrien 473660484SobrienThu Sep 22 13:39:10 1994 Kung Hsu (kung@x1.cygnus.com) 473760484Sobrien 473860484Sobrien * ecoff.c (ecoff_generate_asm_lineno): check if 473960484Sobrien current_stabs_filename is NULL before strcmp. 474060484Sobrien * read.c (read_a_source_file): fix a bug in generate_asm_lineno 474160484Sobrien checking. 474260484Sobrien 474360484SobrienWed Sep 21 18:17:35 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 474460484Sobrien 474560484Sobrien * config/ho-*.h: Now-unused files deleted. 474660484Sobrien 474760484Sobrien * symbols.c (copy_symbol_attributes): New function. Copies BFD 474860484Sobrien symbol flags and calls OBJ_COPY_SYMBOL_ATTRIBUTES. 474960484Sobrien (resolve_symbol_value, case O_symbol): Call it, if X_add_number is 475060484Sobrien zero. Don't call obj_frob_forward_symbol. 475160484Sobrien * read.c (pseudo_set): Call copy_symbol_attributes, but only if 475260484Sobrien X_add_number is zero. 475360484Sobrien * config/obj-elf.h (obj_frob_forward_symbol): Deleted. 475460484Sobrien 475560484Sobrien * config/tc-i960.c: Lots of whitespace, comment reformatting, 475660484Sobrien using GNU indent. 475760484Sobrien (strchr): Don't declare. 475860484Sobrien [BFD_ASSEMBLER]: Don't compile md_convert_frag, 475960484Sobrien md_estimate_size_before_relax, md_ri_to_chars, 476060484Sobrien md_create_short_jump, md_create_long_jump. 476160484Sobrien (brtab_emit): Use data_section, not SEG_DATA. 476260484Sobrien 476360484Sobrien Mon Sep 19 17:14:44 1994 Pat Rankin (rankin@eql.caltech.edu) 476460484Sobrien 476560484Sobrien * config/vms-conf.h: new file, manually derived from conf.in. 476660484Sobrien * config-gas.com: use it, and eliminate obsolete "host.h". 476760484Sobrien 476860484SobrienWed Sep 21 11:11:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 476960484Sobrien 477060484Sobrien * config/tc-ppc.c (ppc_current_block): New static variable. 477160484Sobrien (ppc_stabx): Set sy_tc.within of a C_STSYM symbol to 477260484Sobrien ppc_current_block. Don't move around any stab symbol, just those 477360484Sobrien for common symbols. 477460484Sobrien (ppc_bs): Set ppc_current_block. 477560484Sobrien (ppc_es): Clear ppc_current_block. 477660484Sobrien (ppc_frob_symbol): Set the value of a C_STSYM symbol to the offset 477760484Sobrien from the csect of the enclosing block. 477860484Sobrien 477960484Sobrien * config/tc-mips.c (insns_since_cache_access): Remove. 478060484Sobrien (append_insn): Remove setting of insns_since_cache_access, and 478160484Sobrien special 4600 handling; it turns out not to be required. 478260484Sobrien 478360484SobrienTue Sep 20 16:13:18 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 478460484Sobrien 478560484Sobrien * config/tc-mips.c (md_shortopts): Remove E. 478660484Sobrien (md_longopts): Add EB and EL. 478760484Sobrien (md_parse_option): Handle -EB and -EL as separate options, rather 478860484Sobrien than as a single -E option with an argument. 478960484Sobrien 479060484SobrienMon Sep 19 12:42:05 1994 Jeff Law (law@snake.cs.utah.edu) 479160484Sobrien 479260484Sobrien * config/tc-hppa.c (hppa_fix_adjustable): Reject reductions 479360484Sobrien involving global symbols too. 479460484Sobrien 479560484SobrienMon Sep 19 12:12:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 479660484Sobrien 479760484Sobrien * as.h: Test NEED_DECLARATION_*, not NEED_*_DECLARATION. 479860484Sobrien 479960484Sobrien * configure.in: Test for remove, not delete. Fix cross-assembler 480060484Sobrien test. 480160484Sobrien * as.h: Test HAVE_REMOVE, not HAVE_DELETE; define unlink to 480260484Sobrien remove, not delete. 480360484Sobrien 480460484Sobrien * read.c (pseudo_set, case O_symbol): If 480560484Sobrien OBJ_COPY_SYMBOL_ATTRIBUTES is defined, invoke it. 480660484Sobrien [BFD_ASSEMBLER]: Copy BSF_FUNCTION setting too. 480760484Sobrien * config/obj-elf.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Define. 480860484Sobrien 480960484Sobrien Wed Aug 10 19:15:30 1994 Pat Rankin (rankin@eql.caltech.edu) 481060484Sobrien 481160484Sobrien * config/obj-vms.h (DSG_S_C_UBITU, DST_K_VFLAGS_DSC, DST_K_TS_ATOM, 481260484Sobrien many others): new macros; values obtained from "DSTRECRDS.SDL". 481360484Sobrien * config/obj-vms.h (various): use them. 481460484Sobrien (USE_BITSTRING_DESCRIPTOR): new macro, for selecting bitfield 481560484Sobrien representation (only enum bitfields can avoid being bitstrings). 481660484Sobrien (bitfield_suffix, setup_basic_type): new routines. 481760484Sobrien (VMS_typedef_parse): use them. Now recognize bitfields of all 481860484Sobrien integral types, not just type `int'. Caveat: the representation 481960484Sobrien used for bitfields still does not work for objects placed in 482060484Sobrien registers, and gcc's optimizer sometimes puts small structs there. 482160484Sobrien 482260484Sobrien Tue Jun 14 17:31:44 1994 Pat Rankin (rankin@eql.caltech.edu) 482360484Sobrien 482460484Sobrien * read.c (s_text) [#if OBJ_VMS]: clear the IN_DEFAULT_SECTION 482560484Sobrien bit from const_flag. 482660484Sobrien * config/obj-vms.h (IN_DEFAULT_SECTION): define this macro. 482760484Sobrien (tc_frob_label): define this to call vms_check_for_special_label, 482860484Sobrien and declare the latter. 482960484Sobrien * config/obj-vms.c (vax_g_doubles): declare this file-scope 483060484Sobrien variable. 483160484Sobrien (const_flag): initialize to IN_DEFAULT_SECTION instead of 0. 483260484Sobrien (vms_check_for_special_label): new routine (tc_frob_label). 483360484Sobrien (VMS_TBT_Routine_End): don't bother checking for `gcc_compiled.' 483460484Sobrien and `gcc2_compiled.' labels; they won't reach here any more. 483560484Sobrien (VMS_typedef_parse) [case 'r']: for types `double' and `complex 483660484Sobrien double', use `vax_g_doubles' flag to select type of double. 483760484Sobrien (VMS_write_object_file) [traceback setup]: don't pass symbols 483860484Sobrien with the IN_DEFAULT_SECTION attribute to the TBT_Routine_Begin 483960484Sobrien and TBT_Routine_End functions. 484060484Sobrien 484160484Sobrien Mon Jun 6 20:52:20 1994 Pat Rankin (rankin@eql.caltech.edu) 484260484Sobrien 484360484Sobrien * config/obj-vms.c (VMS_TBT_Routine_End): cache the result of 484460484Sobrien S_GET_VALUE() to avoid many repeated function calls. 484560484Sobrien (VMS_Check_For_Main) [#if HACK_DEC_C_STARTUP]: capitalize 484660484Sobrien _C$MAIN_ARGS in advance, in case -h3 (leave symbol name as-is) 484760484Sobrien gets requested. [All the HACK_DEC_C_STARTUP code appears to 484860484Sobrien be obsolete; gcc does it automatically for vms target. It's 484960484Sobrien also misnamed, because it is for the "VAX C" run-time library, 485060484Sobrien not the newer "DEC C" one which has much different startup code.] 485160484Sobrien {various}: use `S_SET_xxx(symbol,new_value)' rather than 485260484Sobrien `S_GET_xxx(symbol) = new_value'. 485360484Sobrien 485460484SobrienMon Sep 19 12:05:03 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 485560484Sobrien 485660484Sobrien * config/obj-coff.c (c_dot_file_symbol): Use bfd_abs_section_ptr, 485760484Sobrien not &bfd_abs_section. 485860484Sobrien 485960484SobrienThu Sep 15 18:36:34 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 486060484Sobrien 486160484Sobrien * expr.c (clean_up_expression): Use addressT, not bfd_vma. 486260484Sobrien 486360484SobrienTue Sep 13 20:05:47 1994 Jeff Law (law@snake.cs.utah.edu) 486460484Sobrien 486560484Sobrien * expr.c (expr): Don't reduce the difference of two symbols in the 486660484Sobrien same frag if the symbols are not in normal sections. 486760484Sobrien 486860484Sobrien * config/obj-som.h (S_SET_OTHER, S_SET_TYPE): Delete a.out crud. 486960484Sobrien (S_SET_DESC, S_GET_OTHER, S_GET_TYPE, S_GET_DESC): Likewise. 487060484Sobrien (obj_attach_unwind_info): Do not define. Not needed anymore. 487160484Sobrien * config/tc-hppa.c: Delete whitespace at EOL. 487260484Sobrien (struct hppa_fix_struct): Delete fx_unwind field and all references. 487360484Sobrien (fix_new_hppa): Last arg is now a pointer to an int. Do not 487460484Sobrien call obj_attach_unwind_info anymore. For SOM R_ENTRY and R_EXIT 487560484Sobrien fixups, store 32bits of unwind information in the fx_addnumber 487660484Sobrien field of the fixup. 487760484Sobrien (md_assemble, pa_entry, process_exit, pa_procend): For SOM R_ENTRY 487860484Sobrien and R_EXIT fixups, pass a NULL pointer to fix_new_hppa, and a 487960484Sobrien pointer to 32 bits of unwind info. 488060484Sobrien (tc_gen_reloc): For SOM R_ENTRY and R_EXIT fixups, set the symbol 488160484Sobrien pointer to the dummy symbol; set the addend field to fx_addnumber. 488260484Sobrien (pa_comm, pa_equ, pa_type_args, pa_import): Use bfd_XXX_section_ptr 488360484Sobrien rather than &bfd_XXX_section. 488460484Sobrien 488560484SobrienTue Sep 13 21:15:36 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 488660484Sobrien 488760484Sobrien * config/tc-i386.c (md_apply_fix_1): For GOTPC relocs, decrement 488860484Sobrien value by one; discard adjustments previously being made. From 488960484Sobrien Eric Youngdale. 489060484Sobrien 489160484Sobrien VMS- and Vax-related changes from Pat Rankin: 489260484Sobrien * Makefile.in (VMS_OTHER_OBJS): add concat, getopt, and getopt1. 489360484Sobrien * vmsconf.sh: no longer have make-gas.com echo text about needing 489460484Sobrien to modify the gcc-vms driver when intending to use with gcc 1.x. 489560484Sobrien * as.c (parse_options): suppress 'v' from std_short_options and 489660484Sobrien eliminate VMS-specific conditional initialization; 489760484Sobrien [default case]: check for '-v' if md_parse_options doesn't recognize 489860484Sobrien an option; 489960484Sobrien [default case, #if VMS]: check for filename argument when '-v' seen; 490060484Sobrien [case 'v']: delete. 490160484Sobrien * config/tc-vax.c (md_assemble): don't rely on `this_add_number' 490260484Sobrien for O_big literal operands (double floats and long long ints); 490360484Sobrien [VMS, md_shortopts]: add second colon after 'v'; 490460484Sobrien (md_parse_options) [VMS, case 'v']: check for argument, so 490560484Sobrien caller can handle `-v' w/o arg. 490660484Sobrien 490760484SobrienTue Sep 13 16:45:08 1994 Steve Chamberlain (sac@jonny.cygnus.com) 490860484Sobrien 490960484Sobrien * config/obj-coff.c (do_relocs_for): If TC_KEEP_FX_OFFSET 491060484Sobrien is defined, put the tx_offset into the r_offset. 491160484Sobrien * config/tc-sh.c (line_comment_chars): Add # 491260484Sobrien (tc_reloc_mangle): Deleted. 491360484Sobrien * config/tc-sh.h (TC_KEEP_FX_OFFSET): Define. 491460484Sobrien (TC_RELOC_MANGLE): Delete. 491560484Sobrien 491660484SobrienTue Sep 13 16:20:36 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 491760484Sobrien 491860484Sobrien * flonum-konst.c: Change preprocessor tests of HO_VMS to just VMS. 491960484Sobrien * hex-value.c: Ditto. 492060484Sobrien * config/obj-vms.c: Ditto. 492160484Sobrien 492260484Sobrien * config/tc-sparc.c (sparc_ip): Replace as_bad/exit sequence with 492360484Sobrien a call to as_fatal. 492460484Sobrien * config/tc-i860.c (i860_ip): Ditto. 492560484Sobrien * config/tc-hppa.c (pa_ip): Ditto. 492660484Sobrien * config/tc-alpha.c (alpha_ip): Ditto. 492760484Sobrien * as.c (parse_args): Ditto. 492860484Sobrien 492960484Sobrien * config/tc-mips.c (mips_ip): Replace as_warn/exit sequence with a 493060484Sobrien call to as_fatal. 493160484Sobrien 493260484Sobrien * write.c (write_contents): Use EXIT_FAILURE. 493360484Sobrien * output-file.c (output_file_create, output_file_close, 493460484Sobrien output_file_create, output_file_close): Ditto. 493560484Sobrien * messages.c (as_fatal): Ditto. 493660484Sobrien * config/obj-som.c (obj_som_version, obj_som_copyright): Ditto. 493760484Sobrien * config/obj-ieee.c (write_object_file): Ditto. 493860484Sobrien * config/obj-coff.c (write_object_file): Ditto. 493960484Sobrien * config/tc-vax.c (main): Use EXIT_SUCCESS. 494060484Sobrien * config/tc-m68k.c (main): Ditto. 494160484Sobrien 494260484Sobrien * hash.c (main): Pass a value to exit(). 494360484Sobrien 494460484Sobrien * as.h (EXIT_SUCCESS, EXIT_FAILURE): Moved here. 494560484Sobrien * as.c: ...from here. 494660484Sobrien (parse_args): Use them always. 494760484Sobrien (main): Use exit rather than return. 494860484Sobrien 494960484Sobrien * Makefile.in (*_FOR_TARGET, INSTALL_XFORM, install, uninstall): 495060484Sobrien Rewrite handling of program_transform_name. 495160484Sobrien 495260484Sobrien * configure.in: Test for functions unlink and delete. 495360484Sobrien * as.h: If unlink isn't available but delete is, define unlink to 495460484Sobrien be delete. 495560484Sobrien 495660484Sobrien Update for autoconf 1.118: 495760484Sobrien * gdbinit.in: New file, created from old .gdbinit. 495860484Sobrien * .gdbinit: Deleted. 495960484Sobrien * aclocal.m4 (GAS_GDBINIT): Deleted. 496060484Sobrien * configure.in: Don't use it. Instead, generate .gdbinit from 496160484Sobrien gdbinit.in. Don't substitute cpu_type, obj_format, emulation, 496260484Sobrien atof. Switched order of AC_LINK_FILES arguments. Use AC_PREREQ 496360484Sobrien to ensure that older versions of autoconf aren't used. 496460484Sobrien * Makefile.in: Added @configure_input@ line. 496560484Sobrien (configure): Deleted rule. 496660484Sobrien 496760484SobrienTue Sep 13 12:08:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 496860484Sobrien 496960484Sobrien * config/obj-coff.c (fixup_segment): After handling the difference 497060484Sobrien of two symbols from the same segment, set fx_subsy to NULL, to 497160484Sobrien satisfy existing TC_COUNT_RELOC macros. 497260484Sobrien 497360484SobrienTue Sep 13 01:47:08 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 497460484Sobrien 497560484Sobrien * aclocal.m4 (GAS_GDBINIT): New macro. 497660484Sobrien * configure.in: Use it. 497760484Sobrien * configure: Regenerated. 497860484Sobrien 497960484SobrienMon Sep 12 20:56:38 1994 Ken Raeburn (raeburn@kr-laptop.cygnus.com) 498060484Sobrien 498160484Sobrien * .gdbinit (pe, ps): Define new commands. 498260484Sobrien * symbols.c (indent_level): New static variable. 498360484Sobrien (indent, print_expr_1, print_symbol_value_1, print_symbol_value, 498460484Sobrien print_expr): New functions. 498560484Sobrien 498660484Sobrien * Makefile.in (config-stamp): Add a "this file generated by make" 498760484Sobrien message to config.h. 498860484Sobrien 498960484Sobrien PIC implementation for i386-linux, based on code from Eric 499060484Sobrien Youngdale and Paul Kranenburg, with some work of my own: 499160484Sobrien 499260484Sobrien * write.c (fixup_segment): Test TC_RELOC_RTSYM_LOC_FIXUP on fixup 499360484Sobrien before processing same-section pcrel relocations. 499460484Sobrien (TC_RELOC_RTSYM_LOC_FIXUP): Default to 1. 499560484Sobrien 499660484Sobrien * expr.c (make_expr_symbol): If operator is O_symbol and 499760484Sobrien X_add_number is zero, just return the symbol. If operator is 499860484Sobrien O_constant, resolve the symbol's value before returning. 499960484Sobrien (operand): Permit use of "[]" for grouping. 500060484Sobrien (clean_up_expression): For difference of two symbols in the same 500160484Sobrien frag, add the difference of their offsets into X_add_number. 500260484Sobrien (expr): Reduce difference of two symbols in same frag to their 500360484Sobrien difference. 500460484Sobrien 500560484Sobrien * config/tc-i386.c (TC_RELOC): New macro. 500660484Sobrien (struct _i386_insn): New field disp_reloc. 500760484Sobrien (GOT_symbol): New variable. 500860484Sobrien (operand_special_chars): Added square-brackets and at-sign. 500960484Sobrien (reloc) [BFD_ASSEMBLER]: Added new argument OTHER; if it is not 501060484Sobrien NO_RELOC, just return it. 501160484Sobrien (reloc) [! BFD_ASSEMBLER]: Add third argument to dummy macro. 501260484Sobrien (BFD_RELOC_386_PLT32, _GOT32, _GOTOFF) [! BFD_ASSEMBLER]: More 501360484Sobrien dummy macros. 501460484Sobrien (tc_i386_fix_adjustable): New function. Returns zero if symbol in 501560484Sobrien fixup is not local, to prevent relocations against externals from 501660484Sobrien being dropped. 501760484Sobrien (md_assemble): Initialize disp_reloc field to NO_RELOC. Pass 501860484Sobrien disp_reloc field to reloc() function, and use TC_RELOC to generate 501960484Sobrien value to pass to fix_new_exp. 502060484Sobrien (md_assemble): Change 32-bit reloc against GOT_symbol into a GOTPC 502160484Sobrien reloc. 502260484Sobrien (i386_operand): Initialize disp_reloc field to NO_RELOC. Handle 502360484Sobrien @GOTOFF, @PLT, @GOT operands. For GOTOFF relocations with local 502460484Sobrien symbols, force generation of the section symbol. 502560484Sobrien (md_estimate_size_before_relax): If GOT_symbol exists, decide 502660484Sobrien we're generating PIC code, and convert relocations against 502760484Sobrien undefined symbols from PCREL to PLT32. 502860484Sobrien (md_apply_fix_1) [OBJ_ELF]: Fix up values for dynamic-linking 502960484Sobrien relocs. 503060484Sobrien (md_undefined_symbol): Notice GLOBAL_OFFSET_TABLE_NAME and set 503160484Sobrien and return GOT_symbol if it matches. 503260484Sobrien (F, MAP): Move macro definitions outside function. 503360484Sobrien (tc_gen_reloc): Only switch on size and pcrel if code wasn't 503460484Sobrien already supplied as PLT32. GOT32, GOTOFF, or GOTPC. Convert 503560484Sobrien BFD_RELOC_32 using GOT_symbol into GOTPC. 503660484Sobrien * config/tc-i386.h (TC_RELOC, tc_fix_adjustable, 503760484Sobrien TC_RELOC_GLOBAL_OFFSET_TABLE, TC_RELOC_RTSYM_LOC_FIXUP): New 503860484Sobrien macros. 503960484Sobrien (NEED_FX_R_TYPE): Define. 504060484Sobrien (LOCAL_LABEL): Accept ".X" prefix too. 504160484Sobrien (GLOBAL_OFFSET_TABLE_NAME): Default to "_GLOBAL_OFFSET_TABLE_". 504260484Sobrien 504360484SobrienMon Sep 12 17:51:39 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 504460484Sobrien 504560484Sobrien * config/obj-elf.c (obj_elf_type): Rewrite to accept syntax 504660484Sobrien reportedly to be used on Irix 6. 504760484Sobrien 504860484Sobrien * config/tc-mips.c (md_pseudo_table): Handle .globl and .global. 504960484Sobrien (s_mips_globl): New static function; needed for Irix 5 support. 505060484Sobrien * ecoff.c (ecoff_build_symbols): If BSF_FUNCTION is set for an 505160484Sobrien external symbol with no type, set the type to st_Proc rather than 505260484Sobrien st_Global. Don't set the index of an external st_Proc or 505360484Sobrien st_StaticProc symbol unless it is also a local symbol. 505460484Sobrien 505560484Sobrien * read.c (read_a_source_file): The second argument to as_where is 505660484Sobrien unsigned int *, not int *. 505760484Sobrien 505860484SobrienThu Sep 8 17:18:24 1994 Kung Hsu (kung@mexican.cygnus.com) 505960484Sobrien 506060484Sobrien * config/obj-ecoff.h : Change names to OBJ_GENERATE_ASM_LINENO, 506160484Sobrien and generate_asm_lineno. 506260484Sobrien * config/obj-elf.h : ditto. 506360484Sobrien * read.h : ditto. 506460484Sobrien * read.c (read_a_source_file): if no file when inst is read, set 506560484Sobrien generate_asm_lineno to true. 506660484Sobrien * ecoff.h : change name to generate_asm_lineno and add function 506760484Sobrien ecoff_no_current_file. 506860484Sobrien * ecoff.c : change name to generate_asm_lineno. 506960484Sobrien * ecoff.c (ecoff_generate_asm_lineno) : new function, to generate 507060484Sobrien ecoff style line for asm file. 507160484Sobrien 507260484SobrienThu Sep 8 19:43:49 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 507360484Sobrien 507460484Sobrien * config/obj-coff.c (size_section): Do an fprintf to stderr rather 507560484Sobrien than a printf. 507660484Sobrien (fixup_segment): Use as_bad_where rather than as_bad. 507760484Sobrien 507860484SobrienWed Sep 7 17:21:12 1994 Steve Chamberlain (sac@jonny.cygnus.com) 507960484Sobrien 508060484Sobrien * config/tc-{h8300,sh}.[ch] (tc_coff_symbol_emit): Function doing 508160484Sobrien nothing becomes macro doing nothing. 508260484Sobrien 508360484SobrienWed Sep 7 19:10:09 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 508460484Sobrien 508560484Sobrien * Makefile.in (Makefile): Depend on config.status. 508660484Sobrien (config.status): Run config.status from . instead of srcdir. 508760484Sobrien 508860484Sobrien * config/tc-i386.c (tc_gen_reloc): Use bfd_get_reloc_code_name to 508960484Sobrien display the name of the relocation type that couldn't be handled. 509060484Sobrien * config/tc-sparc.c (tc_gen_reloc): Likewise. 509160484Sobrien * config/tc-alpha.c (tc_gen_reloc): Likewise. Deleted abort call 509260484Sobrien after call to as_fatal. 509360484Sobrien 509460484Sobrien * configure.in (i386-*-linux*): Don't set bfd_gas. 509560484Sobrien 509660484Sobrien * Makefile.in (CC_FOR_TARGET, NM_FOR_TARGET, OBJDUMP_FOR_TARGET, 509760484Sobrien install, uninstall): Don't use "brokensed" hack any more, the new 509860484Sobrien autoconf code should never let program_transform_name be empty. 509960484Sobrien 510060484Sobrien Update for autoconf beta 1.112: 510160484Sobrien * aclocal.m4 (GAS_CHECK_DECL_NEEDED, GAS_WORKING_ASSERT): New 510260484Sobrien macros. 510360484Sobrien * configure.in: Use them. Use AC_ARG_PROGRAM (now provided by 510460484Sobrien autoconf) instead of my hacked-up AC_PROGRAM_TRANSFORM_NAME. Move 510560484Sobrien test for CROSS_COMPILE just before AC_FUNC_ALLOCA, and emit a 510660484Sobrien message to try to ease confusion about autoconf's 510760484Sobrien "cross-compiling" message. 510860484Sobrien * acconfig.h (NEED_DECLARATION_MALLOC, NEED_DECLARATION_FREE, 510960484Sobrien NEED_DECLARATION_ERRNO): Renamed from NEED_*_DECLARATION. 511060484Sobrien * configure, conf.in: Regenerated. 511160484Sobrien 511260484SobrienWed Sep 7 12:49:55 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 511360484Sobrien 511460484Sobrien * configure.in: Check ${host} and ${target} rather than 511560484Sobrien ${host_canon} and ${target_canon}. 511660484Sobrien * configure: Likewise. 511760484Sobrien 511860484SobrienTue Sep 6 11:42:38 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 511960484Sobrien 512060484Sobrien * config/tc-mips.c (mips_cpu): New static variable. 512160484Sobrien (insns_since_cache_access): New static variable. 512260484Sobrien (md_begin): Set mips_cpu as well as mips_isa. 512360484Sobrien (append_insn): If mips_cpu is 4600, require four nop instructions 512460484Sobrien between an instruction which accesses the cache and certain CACHE 512560484Sobrien instructions. Keep track of the number of instructions seen since 512660484Sobrien an instruction which accesses the cache. 512760484Sobrien (md_parse_option): Set mips_cpu as well as mips_isa. 512860484Sobrien 512960484SobrienMon Sep 5 07:09:00 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com) 513060484Sobrien 513160484Sobrien * doc/Makefile.in (VPATH): Define using @srcdir@. 513260484Sobrien (prefix, program_transform_name, exec_prefix): Use autoconf style 513360484Sobrien @-substitutions. 513460484Sobrien 513560484SobrienSun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org) 513660484Sobrien 513760484Sobrien * config/ho-riscix.h, config/tc-arm.c, config/tc-arm.h: New files 513860484Sobrien * configure.in: Recognize the arm. 513960484Sobrien 514060484SobrienFri Sep 2 16:05:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 514160484Sobrien 514260484Sobrien * ecoff.c (add_file): Don't try to generate line numbers if the 514360484Sobrien symbol table has been frozen. 514460484Sobrien 514560484SobrienThu Sep 1 19:48:01 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 514660484Sobrien 514760484Sobrien * aclocal.m4 (AC_PROG_CC): Use AC_DEFUN, and omit AC_PROVIDE. 514860484Sobrien 514960484Sobrien * configure.in: Handle user-specified bfd-assembler option with 515060484Sobrien separate variable from preferred configuration, until the two are 515160484Sobrien resolved. Indicate bfd_gas=preferred for linux a.out. Use 515260484Sobrien AC_PROGRAM_TRANSFORM_NAME, for which a patch has been sent to djm. 515360484Sobrien * Makefile.in (target_alias, program_transform_name): Define, 515460484Sobrien using autoconf @-substitutions. 515560484Sobrien 515660484SobrienWed Aug 31 17:43:06 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 515760484Sobrien 515860484Sobrien * atof-generic.c: Deleted alloca handling here. 515960484Sobrien 516060484Sobrien * Makefile.in (prefix, exec_prefix): Use @-subtitutions. 516160484Sobrien 516260484Sobrien * aclocal.m4 (AC_OUTPUT_LINKS): Deleted redefinition, since 516360484Sobrien autoconf 1.109 has this fixed. 516460484Sobrien * configure.in: Don't change quote characters around AC_MSG_ERROR 516560484Sobrien invocation. Don't use AC_HEADER_STDC, since it requires running a 516660484Sobrien program. Cache NEED_*_DECLARATION values. 516760484Sobrien * configure, conf.in: Regenerated with a modified autoconf 1.109. 516860484Sobrien 516960484Sobrien * as.h (volatile): Don't test or define here; not needed. 517060484Sobrien (alloca): Replace alloca-conf.h inclusion with code recommended in 517160484Sobrien autoconf documentation. Include config.h first. 517260484Sobrien 517360484SobrienWed Aug 31 11:20:48 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 517460484Sobrien 517560484Sobrien * config/obj-coff.h (S_IS_DEFINED): Absolute symbols are defined 517660484Sobrien also. 517760484Sobrien 517860484Sobrien * configure.in, configure: Initialize bfd_gas to no. 517960484Sobrien 518060484SobrienTue Aug 30 19:31:14 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 518160484Sobrien 518260484Sobrien * as.h: Include alloca-conf.h from "libiberty", not 518360484Sobrien "../libiberty". 518460484Sobrien 518560484SobrienMon Aug 29 16:11:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 518660484Sobrien 518760484Sobrien * config/tc-ppc.c (md_apply_fix): Don't generate a reloc when a 518860484Sobrien symbol is used as an offset into a CSECT that is not a TOC. These 518960484Sobrien types of loads are generated by gcc -mminimal-toc. 519060484Sobrien 519160484SobrienSun Aug 28 13:22:52 1994 Ken Raeburn (raeburn@rtl.cygnus.com) 519260484Sobrien 519360484Sobrien * as.h (flag_*): Added comments describing meanings of some of 519460484Sobrien these variables. 519560484Sobrien (struct frag): Add some comments about the ns32k-specific fields 519660484Sobrien and why they're here. 519760484Sobrien (SIZEOF_STRUCT_FRAG): Cast addresses to char*, not int. 519860484Sobrien (flag_print_statistics): Declare. 519960484Sobrien 520060484Sobrien * as.c (parse_args): Set flag_print_statistics instead of 520160484Sobrien statistics_flag. Options array is now const. Added new option 520260484Sobrien "dump-config"; if specified, print TARGET_ALIAS, TARGET_CANONICAL, 520360484Sobrien TARGET_CPU, TARGET_OBJ_FORMAT, and TARGET_FORMAT, if defined. 520460484Sobrien (main): Change test to check flag_print_statistics. 520560484Sobrien (statistics_flag): Deleted. 520660484Sobrien 520760484Sobrien * frags.c (frag_variant): Removed PCREL_ADJUST and BSR arguments. 520860484Sobrien Always initialize them to zero. 520960484Sobrien * frags.h (frag_variant): Fixed prototype. 521060484Sobrien * config/tc-i960.c (get_cdisp): Don't pass the extra zero args. 521160484Sobrien * config/tc-ns32k.c (convert_iif): Don't pass the arguments; cache 521260484Sobrien the value of frag_now and fill in the fields later. 521360484Sobrien 521460484Sobrien * Makefile.in (distclean, realclean): Remove new 521560484Sobrien configure-generated files. 521660484Sobrien 521760484SobrienSat Aug 27 20:26:12 1994 Ken Raeburn (raeburn@kr-laptop.cygnus.com) 521860484Sobrien 521960484Sobrien Conversion to autoconf: 522060484Sobrien * acconfig.h, aclocal.m4: New files. 522160484Sobrien * configure.in: Rewritten (except for some target-specific code) 522260484Sobrien for autoconf. 522360484Sobrien * conf.in, configure: New files, generated from the above. 522460484Sobrien * Makefile.in: Changed magic sequence indicating insertion of 522560484Sobrien makefile fragments. 522660484Sobrien (VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions 522760484Sobrien from configure. 522860484Sobrien (LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h. 522960484Sobrien (config.status, configure): Rewrite rules. 523060484Sobrien (config-stamp): Depend on conf. Skip variables that configure is 523160484Sobrien now substituting itself. 523260484Sobrien (*.o dependencies): Deleted host.h. 523360484Sobrien (distclean, realclean): Don't delete host.h. 523460484Sobrien * as.c: Don't include stdio.h, string.h, sys/types.h. Include 523560484Sobrien signal.h after as.h. 523660484Sobrien * as.h: Include alloca-conf.h first. Include ctype.h, string.h, 523760484Sobrien strings.h, stdlib.h, unistd.h, sys/types.h, fopen-bin.h, 523860484Sobrien fopen-same.h, as suggested by autoconf test results. 523960484Sobrien [BROKEN_ASSERT]: Don't include assert.h. 524060484Sobrien (strdup): Declare. 524160484Sobrien (volatile, const): Define if not __STDC__ and not already defined. 524260484Sobrien (malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare. 524360484Sobrien (free) [NEED_FREE_DECLARATION]: Declare. 524460484Sobrien * gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't 524560484Sobrien include host.h. 524660484Sobrien (malloc) [NEED_MALLOC_DECLARATION]: Declare. 524760484Sobrien * messages.c: Include as.h first. Include errno.h only if 524860484Sobrien HAVE_ERRNO_H. If HAVE_VARARGS_H and not __STDC__, undefine 524960484Sobrien HAVE_STDARG_H. Set NO_STDARG and NO_VARARGS as appropriate. 525060484Sobrien * doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM, 525160484Sobrien INSTALL_DATA): Use autoconf @-substitutions. 525260484Sobrien 525360484Sobrien * input-file.c: Don't include assert.h here, 'cause as.h already 525460484Sobrien includes it. 525560484Sobrien 525660484Sobrien * config/tc-alpha.c: Added various prototypes for static 525760484Sobrien functions. 525860484Sobrien (in_range): New function, tests whether a value can fit in an 525960484Sobrien N-bit field. 526060484Sobrien (build_mem, build_operate_n): New functions for constructing 526160484Sobrien opcode values. 526260484Sobrien (emit_sll_n, emit_ldah_num, emit_addq_r, emit_lda_n): New 526360484Sobrien functions for emitting single instructions, no longer requiring a 526460484Sobrien recursive call to md_assemble. 526560484Sobrien (emit_add64): New function for expanding a REG:=REG+CONST 526660484Sobrien operation into one or more instructions, to handle wide constants. 526760484Sobrien (clear_insn): New variable. 526860484Sobrien (md_begin): Fill it in with zeros and BFD_RELOC_NONE values. 526960484Sobrien (alpha_ip): Use it to initialize local variable insns. 527060484Sobrien (alpha_ip, label "immediate" and cases 'P', 'G'): Use emit_add64 527160484Sobrien for calculations. 527260484Sobrien 527360484SobrienFri Aug 26 14:46:15 1994 Ken Raeburn (raeburn@kr-laptop.cygnus.com) 527460484Sobrien 527560484Sobrien * subsegs.c (section_symbol): Reverse still-wrong test of 527660484Sobrien EMIT_SECTION_SYMBOLS. 527760484Sobrien 527860484Sobrien * write.c (BFD_FAST_SECTION_FILL): Always define. 527960484Sobrien (write_contents): If fill_size is 1, use memset instead of looping 528060484Sobrien calling memcpy. 528160484Sobrien 528260484SobrienWed Aug 24 12:46:08 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 528360484Sobrien 528460484Sobrien * config/tc-mips.h (LOCAL_LABEL): Define as 0, for compatibility 528560484Sobrien with native MIPS assembler. 528660484Sobrien * configure.in (mips-*-irix*): Don't set emulation. 528760484Sobrien * config/te-irix.h: Remove. 528860484Sobrien 528960484Sobrien * ecoff.c (ecoff_symbol_new_hook): Don't add a new file if we 529060484Sobrien haven't seen any input files yet. 529160484Sobrien * config/tc-alpha.c (md_begin): Just call symbol_create, rather 529260484Sobrien than calling symbol_new and then removing the symbol from the 529360484Sobrien list. 529460484Sobrien 529560484Sobrien * as.c (main): Move a inside the #if 0 block which uses it. 529660484Sobrien * ecoff.c (current_stabs_filename): Make const. 529760484Sobrien * frags.h (frag_align_pattern): Declare. 529860484Sobrien * gasp.c (new_file): Cast isp to long, and use %ld to print it. 529960484Sobrien * config/tc-alpha.h (md_operand): Add cast to void. 530060484Sobrien (alpha_do_align): Declare argument types. 530160484Sobrien (tc_get_register): Declare. 530260484Sobrien (alpha_frob_ecoff_data): Declare. 530360484Sobrien * config/tc-alpha.c: Include <ctype.h>. 530460484Sobrien (s_mask): Don't declare; does not exist. 530560484Sobrien (line_comment_chars): Remove /* from descriptive comment. 530660484Sobrien (tc_get_register): Remove unused local reg. 530760484Sobrien (tc_gen_reloc): Don't bother to compare unsigned to zero. 530860484Sobrien (s_base): Correct warning to actually print register number. 530960484Sobrien (md_begin): Remove unused locals retval, lose, and i. 531060484Sobrien (alpha_fix_adjustable): Move default case inside switch to avoid 531160484Sobrien warning. 531260484Sobrien (load_symbol_address): Remove unused locals reloc_addr, p, sym, 531360484Sobrien and addend. 531460484Sobrien (emit_byte_manip_r): Declare types for all arguments. 531560484Sobrien (emit_extract_r, emit_insert_r, emit_mask_r): Likewise. 531660484Sobrien (emit_sign_extend, emit_bis_r, s_proc): Likewise. 531760484Sobrien (alpha_ip): Use sprint_value to print offsetT value. Remove 531860484Sobrien unused local size. Remove unused label get_macro. 531960484Sobrien (alpha_do_align): Make fill const. 532060484Sobrien (md_apply_fix): Remove unused label check_zov. 532160484Sobrien 532260484Sobrien * configure.in: Recognize i586 as a synonym for i[34]86. 532360484Sobrien 532460484SobrienTue Aug 23 12:32:14 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 532560484Sobrien 532660484Sobrien * config/obj-coff.c (c_line_new): Change line_number argument from 532760484Sobrien unsigned short to int so that the type in the prototype matches 532860484Sobrien the promoted type in the definition. 532960484Sobrien (stack_delete): Comment out; not used. 533060484Sobrien * config/obj-coff.h (tc_coff_symbol_emit_hook): Declare if not 533160484Sobrien BFD_ASSEMBLER, not if BFD_ASSEMBLER. Declare argument type. 533260484Sobrien * config/tc-m68k.h (tc_coff_sizemachdep): Declare. 533360484Sobrien * config/tc-m68k.c (tc_coff_symbol_emit_hook): Add ignored 533460484Sobrien argument. 533560484Sobrien 533660484SobrienTue Aug 16 01:48:20 1994 Jeff Law (law@snake.cs.utah.edu) 533760484Sobrien 533860484Sobrien * gas/config/tc-hppa.c (pa_comm): Undo last change. Set sy_frag for 533960484Sobrien the common symbol to the zero address frag (the correct fix). 534060484Sobrien 534160484SobrienTue Aug 16 01:48:20 1994 Jeff Law (law@snake.cs.utah.edu) 534260484Sobrien 534360484Sobrien * gas/config/tc-hppa.c (pa_comm): Undo last change. Set sy_frag for 534460484Sobrien the common symbol to the zero address frag (the correct fix). 534560484Sobrien 534660484Sobrien * config/tc-hppa.c (pa_comm): Set sy_resolved for the common 534760484Sobrien symbol. 534860484Sobrien 534960484SobrienFri Aug 12 17:51:48 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 535060484Sobrien 535160484Sobrien * config/tc-mips.c (md_begin): Drop "el" from the end of 535260484Sobrien TARGET_CPU. Check for mips64orion. 535360484Sobrien 535460484SobrienTue Aug 9 19:43:45 1994 Stu Grossman (grossman@cygnus.com) 535560484Sobrien 535660484Sobrien * configure.in: Recognize ppc-*-netware. 535760484Sobrien * config/te-ppcnw.h: New file to support Power-PC/Netware 535860484Sobrien configurations. Currently, it just enables the use of backslash 535960484Sobrien escapes in string directives. 536060484Sobrien 536160484SobrienTue Aug 9 11:12:13 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 536260484Sobrien 536360484Sobrien * config/tc-ppc.c (ppc_stabx): Call expression directly, rather 536460484Sobrien than via pseudo_set. If expression is a symbol, move stab symbol 536560484Sobrien to just after symbol from expression. 536660484Sobrien 536760484Sobrien * ecoff.c (ecoff_build_procs): Don't force adr of first fdr to be 536860484Sobrien zero. Undoes change of June 4, 1993. 536960484Sobrien 537060484Sobrien * config/tc-mips.c (md_parse_option): Accept -mcpu=4400, 4600, and 537160484Sobrien orion. 537260484Sobrien 537360484SobrienMon Aug 8 16:28:08 1994 Steve Chamberlain (sac@jonny.cygnus.com) 537460484Sobrien 537560484Sobrien * as.h: Remove FOPEN_WB patch of Aug 6. 537660484Sobrien * configure.in: Configure for ho-go32 correctly. 537760484Sobrien * config/ho-go32.h: Fix copyright. 537860484Sobrien 537960484SobrienMon Aug 8 11:59:51 1994 Jeff Law (law@snake.cs.utah.edu) 538060484Sobrien 538160484Sobrien * gas/config/tc-hppa.c (md_pseudo_table): Delete redundant 538260484Sobrien upper-case versions of the pseudo-ops. 538360484Sobrien 538460484SobrienMon Aug 8 13:42:16 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 538560484Sobrien 538660484Sobrien * config/tc-sparc.c (md_apply_fix): If we are going to generate a 538760484Sobrien non PC relative reloc, don't put the addend in the object file. 538860484Sobrien 538960484SobrienSat Aug 6 01:15:02 1994 Steve Chamberlain (sac@jonny.cygnus.com) 539060484Sobrien 539160484Sobrien * as.h: If FOPEN_WB is not defined, do the right thing in a go32 539260484Sobrien environment. 539360484Sobrien 539460484SobrienMon Jul 11 11:34:52 1994 Steve Chamberlain (sac@jonny.cygnus.com) 539560484Sobrien 539660484Sobrien * config/tc-h8300.c (pint): New function for handling varying 539760484Sobrien size of int pseudo op. 539860484Sobrien * doc/as.texinfo: Fix typo describing .h8300h pseduop. 539960484Sobrien 540060484SobrienMon Aug 1 02:40:43 1994 Jeff Law (law@snake.cs.utah.edu) 540160484Sobrien 540260484Sobrien * config/tc-hppa.c (create_new_space): Initialize sd_subspaces 540360484Sobrien field in the space chain. 540460484Sobrien 540560484Sobrien * config/tc-hppa.c (tc_gen_reloc): Cast return value from 540660484Sobrien hppa_gen_reloc_type. 540760484Sobrien 540860484SobrienThu Jul 28 15:45:37 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 540960484Sobrien 541060484Sobrien * config/tc-sparc.c (sparc_ip): Check more carefully for 541160484Sobrien conflicting architectures. 541260484Sobrien (md_parse_option) [NO_V9]: Complain if v9 was selected. 541360484Sobrien (md_show_usage): Derive architecture list in usage message from 541460484Sobrien architecture_pname array. 541560484Sobrien (cypress): Macro deleted. 541660484Sobrien (op_hash): Don't initialize. 541760484Sobrien (s_common): Use bfd_und_section_ptr instead of bfd_und_section. 541860484Sobrien 541960484Sobrien * config/tc-sparc.c (BSR): New function. 542060484Sobrien (sparc_ip): Use it for right-shift operations of 32 bits or more. 542160484Sobrien 542260484Sobrien * config/tc-sparc.c (sparc_ip): Implement new operand type 'x'. 542360484Sobrien 542460484SobrienTue Jul 26 18:21:24 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 542560484Sobrien 542660484Sobrien * config/obj-coff.h: Moved common includes and TARGET_FORMAT 542760484Sobrien definitions together. 542860484Sobrien (WORKING_DOT_WORD, WARN_SIGNED_OVERFLOW_WORD, 542960484Sobrien OBJ_COFF_OMIT_OPTIONAL_HEADER, BFD_HEADERS, BFD) [!BFD_ASSEMBLER]: 543060484Sobrien Moved these definitions to the start of the file, before the 543160484Sobrien includes. 543260484Sobrien (SYMBOLS_NEED_BACKPOINTERS, OBJ_COFF_MAX_AUXENTRIES): Always 543360484Sobrien define these. 543460484Sobrien (S_GET_ZEROES): Deleted. 543560484Sobrien (S_SET_ZEROES): Moved to obj-coff.c. 543660484Sobrien 543760484Sobrien * config/obj-coff.c (obj_coff_* psuedo-op fns): Deleted 543860484Sobrien forward declarations. 543960484Sobrien (obj_pseudo_table): Moved to one version end of file, 544060484Sobrien conditionalized internally. 544160484Sobrien (stack typedef, stack_init, stack_delete, stack_push, stack_pop, 544260484Sobrien tag_hash, tag_init, tag_insert, tag_find, tag_find_or_make): Moved 544360484Sobrien to one combined version at top of file, unconditional. Deleted 544460484Sobrien forward declarations. 544560484Sobrien (s_get_name): Moved one copy of declarations to start of file. 544660484Sobrien (def_symbol_in_progress): Ditto. Don't initialize. 544760484Sobrien (S_SET_ZEROES): Moved here from obj-coff.h. 544860484Sobrien (write_object_file): If TC_COFF_SET_MACHINE is defined, call it on 544960484Sobrien the file headers. 545060484Sobrien 545160484Sobrien * config/obj-coff.c (seg_info_off_by_4): Now const and static. 545260484Sobrien (SEG_INFO_FROM_SEG_NUMBER): Unused macro deleted. 545360484Sobrien (previous_file_symbol, def_symbol_in_progress, symbol_externP, 545460484Sobrien symbol_extern_lastP, last_functionP) [!BFD_ASSEMBLER]: Don't 545560484Sobrien bother explicitly initializing to zero value. 545660484Sobrien 545760484Sobrien * config/obj-coff.c (fixup_segment) [TC_I960]: Use SF_GET_BALNAME 545860484Sobrien and SF_GET_CALLNAME instead of the TC_S_IS_ versions. 545960484Sobrien 546060484Sobrien * config/tc-i960.h (TC_COFF_SET_MACHINE): New macro. Calls 546160484Sobrien tc_headers_hook. 546260484Sobrien 546360484Sobrien * config/tc-i960.c (targ_has_iclass): Use I_CX | I_CX2 where I_CX 546460484Sobrien was used previously. 546560484Sobrien (tc_headers_hook): If I_CX2 is found, set flags to F_I960CA. 546660484Sobrien 546760484Sobrien * config/tc-i960.c (po_hash): Declaration deleted. 546860484Sobrien (next_object_file_charP): Ditto. 546960484Sobrien (regnames, aregs, coj): Now const. 547060484Sobrien (parse_memop): Static array def_scale now const. 547160484Sobrien (md_begin): Cast away const when passing hash routines addresses 547260484Sobrien of values in regnames or aregs. 547360484Sobrien (md_longopts): Added "link-relax" and "no-relax" hyphenated forms. 547460484Sobrien Continue to accept one-word forms. 547560484Sobrien (struct tabentry, arch_tab): Moved to top level from inside 547660484Sobrien md_parse_option. Now const. 547760484Sobrien (md_show_usage): Use arch_tab to generate usage message. Print 547860484Sobrien hyphenated forms of relax options. 547960484Sobrien 548060484Sobrien * config/tc-i960.h (DEFINE_I960_AOUT, TC_S_IS_*, TC_S_*_SYSPROC, 548160484Sobrien TC_S_FORCE_TO_*): Moved from here... 548260484Sobrien * config/tc-i960.c: ... to here. Changed DEFINE_I960_AOUT stuff 548360484Sobrien to test OBJ_AOUT and OBJ_BOUT directly. 548460484Sobrien 548560484Sobrien * config/tc-i960.h (CTRL, COBR, COJ, REG, MEM*, FBRA, CALLJ, 548660484Sobrien M1-M3, REG_OPC, R_*, SFR, LIT, FP, OP, R, RS, RL, RSL, F, 548760484Sobrien {R,F}{,L}{2,4}, M, SFR_OK, LIT_OK, FP_OK, REG_ALIGN, MEMOP, I_*): 548860484Sobrien Macros deleted. 548960484Sobrien 549060484Sobrien * config/tc-i960.c (ARCH_JX): Define. 549160484Sobrien (arch_tab): Include JX. 549260484Sobrien (targ_has_sfr, targ_has_iclass): Handle JX. 549360484Sobrien (tc_headers_hook): Set flags to F_I960JX for i960JX. 549460484Sobrien 549560484SobrienFri Jul 15 15:36:51 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 549660484Sobrien 549760484Sobrien * subsegs.c (section_symbol): Had last change backwards. 549860484Sobrien 549960484SobrienThu Jul 14 13:21:06 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 550060484Sobrien 550160484Sobrien * config/atof-ns32k.c: Deleted. 550260484Sobrien 550360484Sobrien * config/obj-aout.c (obj_aout_frob_symbol): Use 550460484Sobrien bfd_ind_section_ptr and bfd_und_section_ptr. 550560484Sobrien 550660484Sobrien * subsegs.c (subseg_set_rest): Compare segT values directly, 550760484Sobrien without casting to int first. 550860484Sobrien 550960484Sobrien * config/tc-ns32k.c (md_begin): Return value from hash_insert 551060484Sobrien should be pointer to const. Don't call exit explicitly after 551160484Sobrien calling as_fatal; it won't return. 551260484Sobrien (convert_iif): Make local variable j be pointer to bit_fixS, since 551360484Sobrien that's how it's used. 551460484Sobrien (encode_operand, case 'b'): Ignore sprintf return value. Don't try 551560484Sobrien converting freeptr to int and back. 551660484Sobrien 551760484Sobrien Merged in NS32K support update from Ian Dall (dall@hfrd.dsto.gov.au): 551860484Sobrien 551960484Sobrien * config/te-pc532mach.h: New file. pc532-mach target emulation. 552060484Sobrien 552160484Sobrien * config/te-netbsd532.h: New file. Netbsd532 target emulation. 552260484Sobrien 552360484Sobrien * config/tc-ns32k.h: Add definition of NOP_OPCODE. 552460484Sobrien 552560484Sobrien * config/tc-ns32k.h: Add prototype for fix_new_ns32k_exp. 552660484Sobrien 552760484Sobrien * config/tc-ns32k.h: Add BFD_ASSEMBLER support. 552860484Sobrien 552960484Sobrien * config/tc-ns32k.c (tc_gen_reloc): New function for BFD_ASSEMBLER. 553060484Sobrien 553160484Sobrien * config/tc-ns32k.c (fix_new_ns32k_exp): Get reloc type 553260484Sobrien differently for BFD_ASSEMBLER. 553360484Sobrien 553460484Sobrien * config/tc-ns32k.c (md_estimate_size_before_relax): Get reloc 553560484Sobrien type differently for BFD_ASSEMBLER. 553660484Sobrien 553760484Sobrien * config/tc-ns32k.c (md_create_long_jump): Size of opcode is one 553860484Sobrien not 2. 553960484Sobrien 554060484Sobrien * config/tc-ns32k.c (md_convert_frag): Code for the BFD_ASSEMBLER 554160484Sobrien case. Also use smart md_pcrel_adjust function. 554260484Sobrien 554360484Sobrien * config/tc-ns32k.c (md_apply_fix): Code for the BFD_ASSEMBLER 554460484Sobrien case. Also use smart md_fix_pcrel_adjust function. 554560484Sobrien 554660484Sobrien * config/tc-ns32k.c (md_fix_pcrel_adjust): New function which can 554760484Sobrien find offset from opcode to operand even if in another frag 554860484Sobrien and in the presence of relaxing. 554960484Sobrien 555060484Sobrien * config/tc-ns32k.c (md_pcrel_adjust): New function which can 555160484Sobrien find offset from opcode to operand even if in another frag 555260484Sobrien and in the presence of relaxing. 555360484Sobrien 555460484Sobrien * config/tc-ns32k.c (md_number_to_disp): Check ranges properly. 555560484Sobrien 555660484Sobrien * config/tc-ns32k.c (md_atof): use atof_ieee instead of special 555760484Sobrien atof_ns32k. 555860484Sobrien 555960484Sobrien * config/tc-ns32k.c (reloc): New (static) function for 556060484Sobrien BFD_ASSEMBLER. 556160484Sobrien 556260484Sobrien * config/tc-ns32k.c (convert_iif): More correct pc relative code. 556360484Sobrien md_relax must be able to find opcode address even if in another frag. 556460484Sobrien 556560484Sobrien * config/tc-ns32k.c: More extensive comments. 556660484Sobrien 556760484Sobrien * config/tc-ns32k.c (encode_operand): Support new operand classes I 556860484Sobrien and Z. Drop Q. 556960484Sobrien 557060484Sobrien * config/tc-ns32k.c (fix_new_ns32k_exp): new function and 557160484Sobrien corresponding prototype. 557260484Sobrien 557360484Sobrien * config/tc-ns32k.c: make 32532 default machine instead of 32032. 557460484Sobrien 557560484Sobrien * config/tc-ns32k.c: include opcode/ns32k.h after as.h 557660484Sobrien 557760484Sobrien * aout_gnu.h: r_disp needs to be 2 bits for TC_NS32K 557860484Sobrien 557960484Sobrien * write.h: fx_im_disp needs to be 2 bits big for TC_NS32K 558060484Sobrien 558160484Sobrien * write.c (relax_segment): Use TC_PCREL_ADJUST macro (if defined) 558260484Sobrien instead of adding pcrel_adjust. 558360484Sobrien 558460484Sobrien * write.c (write_object_file): Adjust to_addr for the 558560484Sobrien BROKEN_DOT_WORD feature for the BFD_ASSEMBLER case. 558660484Sobrien 558760484Sobrien * write.c (write_object_file): Use TC_CONS_FIX_NEW if it is defined. 558860484Sobrien 558960484Sobrien * write.c (write_contents): Add code (currently if 559060484Sobrien BFD_FAST_SECTION_FILL is defined) to make large fills a lot faster. 559160484Sobrien 559260484Sobrien * configure.in: Remove ns32k from special FP list. All the ns32k 559360484Sobrien series use ieee float. 559460484Sobrien 559560484Sobrien * configure.in: Add ns32k-pc532-mach and ns32k-pc532-netbsd targets 559660484Sobrien 559760484Sobrien * as.h: include expr.h before targ-env.h. Some target dependent file 559860484Sobrien want to use expr structures. 559960484Sobrien 560060484SobrienWed Jul 13 14:49:05 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 560160484Sobrien 560260484Sobrien * config/tc-m68k.c (m68k_ip): Change rp to be a const pointer. 560360484Sobrien (md_parse_option): Clear cpu field of current_architecture before 560460484Sobrien setting a new cpu type. Clear no_68881 for m68881 or m68882. 560560484Sobrien Clear no_68851 for m68851. 560660484Sobrien 560760484SobrienTue Jul 12 21:27:05 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 560860484Sobrien 560960484Sobrien * config/ho-sysv.h (realloc): Declare. 561060484Sobrien 561160484Sobrien * symbols.c (symbol_create): New function, most of the guts of the 561260484Sobrien old symbol_new function. 561360484Sobrien (symbol_new): Now just checks symbol_table_frozen, calls 561460484Sobrien symbol_create, and enters the symbol into the symbol table. 561560484Sobrien * subsegs.c (section_symbol): If EMIT_SECTION_SYMBOLS is not true, 561660484Sobrien and the symbol table is frozen, call symbol_create instead of 561760484Sobrien symbol_new. 561860484Sobrien * symbols.h (symbol_create, symbol_table_frozen): Declare. 561960484Sobrien 562060484Sobrien * symbols.c (symbol_clear_list_pointers): Always a function now. 562160484Sobrien * struc-symbol.h (symbol_clear_list_pointers): Deleted macro 562260484Sobrien version. 562360484Sobrien 562460484Sobrien * symbols.c (debug_verify_symchain): New macro, defined to be 562560484Sobrien verify_symbol_chain or a cast to void, depending on DEBUG_SYMS. 562660484Sobrien (many functions): Invoke debug_verify_symchain unconditionally. 562760484Sobrien 562860484SobrienTue Jul 12 12:06:42 1994 Kung Hsu (kung@x1.cygnus.com) 562960484Sobrien 563060484Sobrien * config/obj-ecoff.h: change calling interface of 563160484Sobrien OBJ_GENERATE_ASM_LINE_STAB. 563260484Sobrien * config/obj-elf.h: ditto. 563360484Sobrien * read.c (read_a_source_file): ditto. 563460484Sobrien * ecoff.h: change calling interface of 563560484Sobrien ecoff_generate_asm_line_stab. 563660484Sobrien * ecoff.c (add_file): record of filename to handle case of include 563760484Sobrien files, also change default built-in type from int to void for 563860484Sobrien asm file. 563960484Sobrien * ecoff.c (ecoff_generate_asm_line_stab): handle case of include 564060484Sobrien files. 564160484Sobrien 564260484SobrienMon Jul 11 17:20:23 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 564360484Sobrien 564460484Sobrien * config/tc-mips.c (macro): In case M_LA_AB, SVR4_PIC, large 564560484Sobrien constant, and case ldd_std, set mips_optimize to 2 temporarily to 564660484Sobrien avoid inserting an unexpected nop instruction. 564760484Sobrien 564860484SobrienSat Jul 9 00:05:12 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 564960484Sobrien 565060484Sobrien * ecoff.c (ecoff_build_lineno): Handle count correctly for last 565160484Sobrien line number. 565260484Sobrien 565360484SobrienFri Jul 8 15:22:07 1994 Steve Chamberlain (sac@jonny.cygnus.com) 565460484Sobrien 565560484Sobrien * gasp.c (process_pseudo_op): Pass right args to do do_aif. 565660484Sobrien (get_any_string): New arg 'pretend_quote'. 565760484Sobrien (get_and_process, do_formals, macro_expand, do_sdata, 565860484Sobrien process_pseudo_op): Use new arg. 565960484Sobrien 566060484SobrienFri Jul 8 12:23:44 1994 Kung Hsu (kung@mexican.cygnus.com) 566160484Sobrien 566260484Sobrien * config/obj-ecoff.h: define macro OBJ_GENERATE_ASM_LINE_STAB. 566360484Sobrien * config/obj-elf.h: ditto. 566460484Sobrien * read.c (read_a_source_file): generate line stabs for asm file. 566560484Sobrien * read.h: add extern generate_asm_line_stab. 566660484Sobrien * ecoff.h : add prototype for ecoff_generate_asm_line_stab(). 566760484Sobrien * ecoff.c (add_file): if there's no filename provided, set switch 566860484Sobrien to generate line stabs for .s file. 566960484Sobrien * ecoff.c (add_procedure): add stabs symbol for .ent directive. 567060484Sobrien * ecoff.c (generate_ecoff_stab): creates an artificial stabs. 567160484Sobrien * ecoff.c (generate_asm_line_stab): generate a artifitial label 567260484Sobrien for each line and generate a stabn for the line. 567360484Sobrien 567460484SobrienThu Jul 7 17:04:03 1994 Steve Chamberlain (sac@jonny.cygnus.com) 567560484Sobrien 567660484Sobrien * gasp.c (get_any_string): Cope with getting a string with an 567760484Sobrien alternate base specifier. 567860484Sobrien (do_aif, do_aelse): Only enable output if expression is true and previous 567960484Sobrien level was on. 568060484Sobrien (chartype_init): Add BASEBIT chartype. 568160484Sobrien (process_pseudo_op): Notice nesteed AIFs. 568260484Sobrien 568360484SobrienThu Jul 7 12:30:22 1994 Steve Chamberlain (sac@jonny.cygnus.com) 568460484Sobrien 568560484Sobrien * h8300.c (do_a_fix_imm): Code for 2 bit reloc type using in trapa 568660484Sobrien insn. (fix pr 5165, 5174) 568760484Sobrien 568860484SobrienThu Jul 7 11:31:32 1994 Jeff Law (law@snake.cs.utah.edu) 568960484Sobrien 569060484Sobrien * config/tc-hppa.c (R_DLT_REL): If it isn't defined, then define 569160484Sobrien to an appropriate value to avoid losing on old hpux systems. 569260484Sobrien 569360484Sobrien * config/tc-hppa.c (hppa_fix_adjustable): Reject reductions for 569460484Sobrien symbols in DLT relative relocs. 569560484Sobrien (tc_gen_reloc): Zero out the addend field for DLT relative relocs. 569660484Sobrien 569760484SobrienWed Jul 6 01:07:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 569860484Sobrien 569960484Sobrien * config/tc-ppc.c (ppc_tc): If not OBJ_COFF, force TOC entry to 570060484Sobrien align to a four byte boundary. 570160484Sobrien 570260484SobrienTue Jul 5 15:42:09 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 570360484Sobrien 570460484Sobrien * config/tc-alpha.c (load_expression): Handle 32-bit addends. 570560484Sobrien (gpdisp_hi16_howto): Now points to const. 570660484Sobrien (load_insn_table, alpha_ip): Fix uses of const. 570760484Sobrien 570860484Sobrien * doc/internals.texi: Updates to COFF description. Added "@end 570960484Sobrien defmac" as needed, and some extra heading and "@bye" so it'll 571060484Sobrien format as a separate document. 571160484Sobrien 571260484SobrienTue Jul 5 13:54:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 571360484Sobrien 571460484Sobrien * config/obj-elf.h (S_GET_ALIGN, S_SET_ALIGN): Define. 571560484Sobrien * config/obj-elf.c (obj_elf_common): Set alignment of common 571660484Sobrien symbol. 571760484Sobrien * config/tc-sparc.c (s_common): If OBJ_ELF, set alignment of 571860484Sobrien common symbol. 571960484Sobrien 572060484SobrienMon Jul 4 18:29:43 1994 Jeff Law (law@snake.cs.utah.edu) 572160484Sobrien 572260484Sobrien * config/tc-hppa.c (is_complex): New macro. 572360484Sobrien (cons_fix_new_hppa): "Handle" complex expressions. 572460484Sobrien 572560484SobrienFri Jul 1 00:48:12 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 572660484Sobrien 572760484Sobrien * config/obj-coff.c (write_object_file): Set s_align field from 572860484Sobrien section_alignment array. 572960484Sobrien 573060484SobrienThu Jun 30 15:05:28 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 573160484Sobrien 573260484Sobrien * write.c (write_object_file): Use bfd_com_section_ptr. 573360484Sobrien * as.h (absolute_section, undefined_section): Use new BFD macros 573460484Sobrien bfd_abs_section_ptr and bfd_und_section_ptr. 573560484Sobrien 573660484SobrienThu Jun 30 14:36:37 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 573760484Sobrien 573860484Sobrien * config/tc-mips.c (macro): For M_LI_SS, decide how to handle it 573960484Sobrien based on contents of imm_expr and offset_expr, rather than 574060484Sobrien mips_pic. For M_LI_DD, decide how to handle it based on segment 574160484Sobrien name of offset_expr, rather than mips_pic. 574260484Sobrien (mips_ip): If g_switch_value < 4, use immediate values for 'l'. 574360484Sobrien If g_switch_value < 8, use .rdata rather than .lit for 'L'. 574460484Sobrien 574560484SobrienWed Jun 29 17:30:46 1994 Stan Shebs (shebs@andros.cygnus.com) 574660484Sobrien 574760484Sobrien * as.c (show_usage): Break long string into shorter ones. 574860484Sobrien (parse_args): Add -v, prints version id and continues. 574960484Sobrien * config/tc-mips.c (md_show_usage): Break long string. 575060484Sobrien 575160484SobrienMon Jun 27 09:47:16 1994 J.T. Conklin (jtc@phishhead.cygnus.com) 575260484Sobrien 575360484Sobrien * config/tc-i386.c (md_parse_option): Handle "-V" and "-Q" if 575460484Sobrien OBJ_ELF is defined. 575560484Sobrien 575660484SobrienSun Jun 26 16:30:48 1994 Stan Shebs (shebs@andros.cygnus.com) 575760484Sobrien 575860484Sobrien * as.c (main) [HOST_SPECIAL_INIT]: New hook, for host-specific 575960484Sobrien initialization. 576060484Sobrien 576160484SobrienWed Jun 22 00:24:55 1994 Jeff Law (law@snake.cs.utah.edu) 576260484Sobrien 576360484Sobrien * config/tc-hppa.h (obj_frob_symbol): Define for OBJ_ELF. 576460484Sobrien More gas/bfd lossage exposed by the new linker code. 576560484Sobrien 576660484SobrienTue Jun 21 11:32:18 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 576760484Sobrien 576860484Sobrien * subsegs.c (subseg_change): Clear seginfo after allocating it. 576960484Sobrien (subseg_get): Pass actual size of seginfo to memset. 577060484Sobrien 577160484Sobrien * subsegs.c (abs_seg_info, und_seg_info): Define if BFD_ASSEMBLER. 577260484Sobrien (subseg_change): Store seg_info for bfd_abs_section_ptr in 577360484Sobrien abs_seg_info, and store seg_info for bfd_und_section_ptr in 577460484Sobrien und_seg_info. 577560484Sobrien (subseg_get): Likewise. Also, don't set output_section if it is 577660484Sobrien already set. 577760484Sobrien (seg_info): Define as function. 577860484Sobrien * subsegs.h (seg_info): Declare as function rather than defining 577960484Sobrien as macro. 578060484Sobrien * write.c (relax_and_size_seg): Call seg_info rather than 578160484Sobrien bfd_get_section_userdata. 578260484Sobrien 578360484SobrienMon Jun 20 16:30:54 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 578460484Sobrien 578560484Sobrien * configure.in (ppc-*-elf*): New target, like -sysv4*. 578660484Sobrien 578760484Sobrien * expr.c (operand): If "0f" is followed by '\0', don't do eol 578860484Sobrien checks. 578960484Sobrien 579060484SobrienMon Jun 20 15:17:43 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 579160484Sobrien 579260484Sobrien * ecoff.c (ecoff_build_aux): Call swap_tir_out and swap_rndx_out 579360484Sobrien via backend pointer, not directly. 579460484Sobrien 579560484SobrienFri Jun 17 18:05:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 579660484Sobrien 579760484Sobrien * Makefile.in (config-stamp): Make sure there is at least one 579860484Sobrien element in the for loop. 579960484Sobrien 580060484SobrienFri Jun 17 11:01:04 1994 Jeff Law (law@snake.cs.utah.edu) 580160484Sobrien 580260484Sobrien * config/tc-hppa.c: Misc trivial changes to make gcc -Wall happy. 580360484Sobrien 580460484Sobrien * config/tc-hppa.h (elf_hppa_final_processing): Declare. 580560484Sobrien 580660484SobrienWed Jun 15 20:44:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 580760484Sobrien 580860484Sobrien * as.c (parse_args): Cast xmalloc return value. 580960484Sobrien 581060484Sobrien * Makefile.in (config-stamp): If $(defs) contains multiple words, 581160484Sobrien emit a #define line for each. 581260484Sobrien * configure.in: For sparc64 target, use sparc cpu files and add 581360484Sobrien sparcv9 to extra_defs. No longer treat sparc64-*-aout* specially. 581460484Sobrien 581560484Sobrien * config/tc-sparc.c (membar_masks): Now static and const. 581660484Sobrien (md_show_usage) [!NO_V9]: Add -Av9 to usage message. 581760484Sobrien (current_architecture) [sparcv9]: Initialize to v9. 581860484Sobrien (md_begin) [sparcv9]: Don't bother changing it unconditionally 581960484Sobrien here. 582060484Sobrien (s_reserve): Don't pass unexpected argument to as_bad with 582160484Sobrien bad-segment message. 582260484Sobrien 582360484Sobrien * as.h (bfd_alloc_by_size_t) [BFD_ASSEMBLER]: Declare. 582460484Sobrien 582560484Sobrien * config/atof-ieee.c (int_to_gen): Commented out unused routine. 582660484Sobrien 582760484Sobrien * config/tc-vax.c (md_assemble): Removed check of operand section. 582860484Sobrien 582960484Sobrien Fri Jun 3 17:25:08 1994 Pat Rankin (rankin@eql.caltech.edu) 583060484Sobrien 583160484Sobrien * config/obj-vms.h (DBG_S_C_COMPLX4, DBG_S_C_COMPLX8): define 583260484Sobrien these new VMS symbol-type macros for `complex float' and 583360484Sobrien `complex double' support. Their values come from the existing 583460484Sobrien DSC$K_DTYPE_FC and DSC$K_DTYPE_DC macros in <descrip.h>. 583560484Sobrien (DBG_S_C_REAL8_G, DBG_S_C_COMPLX8_G): G_float versions of 583660484Sobrien REAL8 and COMPLX8; not used yet, because gcc outputs the same 583760484Sobrien .stabs for `double' regardless of whether `-mg' is used. 583860484Sobrien * config/obj-vms.c (VMS_typedef_parse) [case 'r']: add entries 583960484Sobrien for gcc2's predefined types "complex float", "complex double", 584060484Sobrien and "complex long double" (identical to complex double). 584160484Sobrien 584260484SobrienWed Jun 15 12:32:55 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 584360484Sobrien 584460484Sobrien * config/obj-coff.c (coff_frob_symbol): Use C_STAT for the .text 584560484Sobrien section symbol, not C_LABEL. 584660484Sobrien 584760484Sobrien * config/tc-mips.c (mips_ip): Permit a modifier in 'o' case, and 584860484Sobrien permit non constant expressions in 'u' case. Lets ``lui 584960484Sobrien $8,%hi(foo); lw $8,%lo(foo)($8)'' work correctly. 585060484Sobrien 585160484SobrienMon Jun 13 12:08:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 585260484Sobrien 585360484Sobrien * config/obj-aout.c (obj_aout_frob_symbol): Warn about an attempt 585460484Sobrien to put a common symbol in a set. 585560484Sobrien 585660484SobrienSat Jun 11 16:41:21 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 585760484Sobrien 585860484Sobrien Add weak symbols as an extension to a.out. 585960484Sobrien * read.c (pseudo_set): Only preserve external bit for OBJ_AOUT and 586060484Sobrien OBJ_BOUT if not BFD_ASSEMBLER. 586160484Sobrien * config/aout_gnu.h (N_WEAKU, N_WEAKA, N_WEAKT, N_WEAKD, N_WEAKB): 586260484Sobrien Define as in ../include/aout/aout64.h. 586360484Sobrien * config/obj-aout.h (OBJ_SYMFIELD_TYPE): If not BFD_ASSEMBLER, 586460484Sobrien define as char. 586560484Sobrien (S_GET_WEAK, S_SET_WEAK): Define if not BFD_ASSEMBLER. 586660484Sobrien * config/obj-aout.c (obj_pseudo_table): Add "weak". 586760484Sobrien (obj_emit_symbols): Adjust type of weak symbols. 586860484Sobrien (obj_aout_weak): New static function. 586960484Sobrien 587060484SobrienFri Jun 10 13:48:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 587160484Sobrien 587260484Sobrien * config/obj-elf.c (obj_elf_section): Don't set any flags based on 587360484Sobrien the type of a special section. 587460484Sobrien 587560484Sobrien * config/ho-sunos.h: Include <stdlib.h>. Don't declare malloc, 587660484Sobrien realloc, free, or atol. 587760484Sobrien 587860484SobrienWed Jun 8 06:28:37 1994 Bill Cox (bill@cygnus.com) 587960484Sobrien 588060484Sobrien * Makefile.in (check): Delete as.new dependency, so that 588160484Sobrien regression test doesn't trigger an assembler build. 588260484Sobrien 588360484SobrienTue Jun 7 13:33:18 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 588460484Sobrien 588560484Sobrien * Makefile.in (mostlyclean, realclean): New targets. 588660484Sobrien * doc/Makefile.in, testsuite/Makefile.in: Likewise. 588760484Sobrien 588860484SobrienMon Jun 6 13:10:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 588960484Sobrien 589060484Sobrien * config/tc-mips.c (RDATA_SECTION_NAME): Define. 589160484Sobrien (macro): Correct M_LI_SS SVR4_PIC/EMBEDDED_PIC case. After M_LI_D 589260484Sobrien or M_L_DOB or label dob, force a new frag to avoid getting 589360484Sobrien confused in tc_gen_reloc. 589460484Sobrien (mips_ip): Use RDATA_SECTION_NAME, not .rdata. 589560484Sobrien (s_change_sec): Likewise. 589660484Sobrien 589760484SobrienFri Jun 3 23:35:36 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 589860484Sobrien 589960484Sobrien * read.c (emit_expr): Use memset to zero out memory, rather than 590060484Sobrien going through md_number_to_chars. This permits handling symbolic 590160484Sobrien arguments when the size is larger than sizeof (valueT), if 590260484Sobrien TC_CONS_FIX_NEW is prepared to handle the case (as it is on MIPS). 590360484Sobrien 590460484SobrienFri Jun 3 12:50:13 1994 David J. MacKenzie (djm@rtl.cygnus.com) 590560484Sobrien 590660484Sobrien * as.c (show_usage), config/tc-alpha.c (md_show_usage), 590760484Sobrien config/tc-mips.c (md_show_usage): Fix up messages. 590860484Sobrien 590960484Sobrien * as.h: Replace flagseen with separate variables. 591060484Sobrien * as.c (parse_args): Set them. Don't accept -1 option, or -v 591160484Sobrien explicitly (it's a synonym for --version). 591260484Sobrien * as.c, input-scrub.c, messages.c, read.c, symbols.c, write.c, 591360484Sobrien config/obj-aout.c, config/obj-aout.h, config/obj-bout.c, 591460484Sobrien config/obj-bout.h, config/obj-coff.c, config/obj-coff.h, 591560484Sobrien config/obj-vms.c, config/tc-hppa.c, config/tc-i386.c, 591660484Sobrien config/tc-i960.c, config/tc-m68k.c, config/tc-mips.c, 591760484Sobrien config/tc-vax.c: Use the new flag variables instead of flagseen. 591860484Sobrien * config/tc-vax.c [OBJ_VMS]: Recognize -+, -1, -v, and document in 591960484Sobrien usage. 592060484Sobrien 592160484Sobrien * as.c (show_usage): Remove target specific messages; 592260484Sobrien instead, call md_show_usage. 592360484Sobrien (parse_args): Use getopt_long_only. Take pointers to argc and 592460484Sobrien argv. 592560484Sobrien (main): Pass parse_args pointers. 592660484Sobrien * as.h: Remove 3 variables that are redundant with flagseen. 592760484Sobrien * as.c, messages.c: Change their users to use flagseen. 592860484Sobrien Define getopt stuff. 592960484Sobrien * tc.h: Update md_parse_option decl. Add md_show_usage decl. 593060484Sobrien * config/tc-*.c: Add md_shortopts, md_longopts, 593160484Sobrien md_longopts_size, md_show_usage. Change calling convention for 593260484Sobrien md_parse_option. Remove md_parse_long_option. 593360484Sobrien * config/tc-ns32k.c: Rename `struct option' to `struct ns32k_option'. 593460484Sobrien * config/tc-i386.h: Don't define md_parse_option. 593560484Sobrien 593660484SobrienThu Jun 2 13:54:46 1994 David J. Mackenzie (djm@rtl.cygnus.com) 593760484Sobrien 593860484Sobrien * as.c (show_usage): New function. 593960484Sobrien (parse_args): Code moved from main. 594060484Sobrien Recognize --help and --version. 594160484Sobrien * config/tc-ns32k.h: Define TC_NS32K. 594260484Sobrien * doc/as.texinfo: Document all of the target-independent command 594360484Sobrien line options. 594460484Sobrien 594560484SobrienThu Jun 2 12:07:25 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 594660484Sobrien 594760484Sobrien * gasp.c (hash_new_table): Clear newly allocated table. 594860484Sobrien 594960484Sobrien * config/tc-m68k.c (enum _register): Add 68060 control registers 595060484Sobrien BUSCR and PCR. 595160484Sobrien (last_movec_reg): New macro. 595260484Sobrien (m68000_control_regs, m68010_control_regs, m68020_control_regs, 595360484Sobrien m68040_control_regs, m68060_control_regs): New arrays. 595460484Sobrien (control_regs): New pointer. 595560484Sobrien (m68k_ip): Use control_regs instead of testing CPU every time. 595660484Sobrien Use last_movec_reg too. In error messages, handle 68060, and 595760484Sobrien print 68060 for mfloat, too. 595860484Sobrien (m68k_init_after_args): Handle "68060". Use m68040up for making 595960484Sobrien m68851 choice. Set control_regs. 596060484Sobrien (md_parse_option): Handle "68060". 596160484Sobrien * configure.in: Setting cpu_type, recognize m68060 too. 596260484Sobrien 596360484Sobrien * config/obj-coff.c (fixup_segment) [!BFD_ASSEMBLER] 596460484Sobrien [DIFF_EXPR_OK]: Do conversion to pc-relative for difference, even 596560484Sobrien if pcrel is already set. 596660484Sobrien 596760484Sobrien * read.c (potable): Add this_gcc_requires_the_gnu_assembler in all 596860484Sobrien lower-case, in case we're ignoring case of opcodes in the input 596960484Sobrien file. 597060484Sobrien 597160484Sobrien * doc/as.texinfo (.section): Document as unavailable for a.out 597260484Sobrien type formats. 597360484Sobrien 597460484Sobrien * config/tc-alpha.c (machine): New variable. 597560484Sobrien (load_insn): New macro. 597660484Sobrien (load_insn_table): New function. 597760484Sobrien (md_begin): Call load_insn_table, once for basic instructions and 597860484Sobrien once for appropriate PAL instruction table. 597960484Sobrien (md_parse_option): Set `machine' based on -m##### arguments. 598060484Sobrien * config/alpha-opcode.h (alpha_pal21064_opcodes): Split out from 598160484Sobrien alpha_opcodes. 598260484Sobrien (alpha_pal21164_opcodes): New table. 598360484Sobrien (NUM21064OPCODES, NUM21164OPCODES): New macros. 598460484Sobrien 598560484Sobrien * configure.in (target i386-*-netbsd0.8): Use 386bsd emulation. 598660484Sobrien 598760484Sobrien * doc/Makefile.in (install-info-gasp): Use $$dir when installing 598860484Sobrien file. 598960484Sobrien 599060484SobrienWed Jun 1 10:48:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 599160484Sobrien 599260484Sobrien * config/tc-mips.c (mips_ip): Force floating point values to be 599360484Sobrien aligned correctly. 599460484Sobrien 599560484SobrienFri May 27 10:05:53 1994 Ken Raeburn (raeburn@cygnus.com) 599660484Sobrien 599760484Sobrien Merged in changes from gas-2.3 net release: 599860484Sobrien 599960484Sobrien * Makefile.in (VERSION): Updated to cygnus-2.3.1. 600060484Sobrien 600160484Sobrien * config/obj-vms.c: Replaced unchecked uses of malloc with 600260484Sobrien xmalloc. 600360484Sobrien 600460484Sobrien * listing.c (list_symbol_table): Only test BFD64, not 600560484Sobrien BFD_ASSEMBLER too. 600660484Sobrien 600760484Sobrien * config/obj-coff.c (fixup_segment) [BFD_ASSEMBLER] 600860484Sobrien [DIFF_EXPR_OK]: Don't check pcrel, just convert it. 600960484Sobrien 601060484Sobrien * config/obj-vms.c: Removed lots of extra semicolons after 601160484Sobrien compound statements. 601260484Sobrien (strchr): Don't declare here. 601360484Sobrien 601460484Sobrien * config/ho-vax.h (realloc): Declare. 601560484Sobrien 601660484Sobrien * config/ho-vms.h (strchr, strdup): Declare. 601760484Sobrien 601860484Sobrien * config/tc-sparc.c (md_parse_option) [OBJ_ELF]: Accept and ignore 601960484Sobrien option `-q'. 602060484Sobrien 602160484Sobrien Wed May 18 20:50:35 1994 Pat Rankin (rankin@eql.caltech.edu) 602260484Sobrien 602360484Sobrien * config/obj-vms.h (DBG_S_C_SQUAD, DBG_S_C_UQUAD): define these 602460484Sobrien new VMS symbol-type macros; signed and unsigned quadword integers, 602560484Sobrien for `long long' support. Their values come from the existing 602660484Sobrien DSC$K_DTYPE_QU and DSC$K_DTYPE_Q macros in <descrip.h>. The 602760484Sobrien VMS debugger now recognizes `long long' variables correctly. 602860484Sobrien * config/obj-vms.c (VMS_typedef_parse) [case 'r']: add entries 602960484Sobrien for gcc2's predefined types "long double" (same as double, as 603060484Sobrien per gcc's current state), "long long int", "long long unsigned 603160484Sobrien int", and final `otherwise' case (to avoid uninitialized type 603260484Sobrien and size fields). [caveat: predefined types "complex int", 603360484Sobrien "complex float", "complex double", and "complex long double" are 603460484Sobrien still missing.] 603560484Sobrien 603660484Sobrien * config/ho-vms.h (EXIT_FAILURE): define as 0x10000002 instead 603760484Sobrien of 0, because the latter indicates success rather than failure 603860484Sobrien when passed to `exit' or return from `main' compiled by gcc2. 603960484Sobrien 604060484Sobrien * config/obj-vms.c (array_suffix, generate_suffix): replace two 604160484Sobrien hardcoded `0xa3's with macro DBG_S_C_ADVANCED_TYPE from obj-vms.h. 604260484Sobrien (VMS_typedef_parse): eliminate redundant if-then-else when 604360484Sobrien allocating new symbol entry and linking it to VMS_Symbol_type_list. 604460484Sobrien 604560484Sobrien Tue May 17 20:47:31 1994 Pat Rankin (rankin@eql.caltech.edu) 604660484Sobrien 604760484Sobrien * config/obj-vms.c (Write_VMS_MHD_Records): don't try to interpret 604860484Sobrien the contents of the GAS_VERSION string when falling back to it for 604960484Sobrien language processor identification. 605060484Sobrien 605160484Sobrien * make-gas.com, vmsconf.sh (ENVIRON): fix misspelling of 605260484Sobrien `psect_attr' in linker options. 605360484Sobrien 605460484Sobrien Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com) 605560484Sobrien 605660484Sobrien * configure.bat: update to latest makefile.in 605760484Sobrien * config/te-go32.h: [new] go32's environment 605860484Sobrien 605960484SobrienFri May 20 17:59:34 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 606060484Sobrien 606160484Sobrien * as.h: Don't declare parameters for strstr. 606260484Sobrien 606360484SobrienThu May 19 15:40:13 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 606460484Sobrien 606560484Sobrien * config/tc-sparc.c (md_section_align): Don't change the size if 606660484Sobrien OBJ_ELF. 606760484Sobrien 606860484SobrienWed May 18 13:08:07 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 606960484Sobrien 607060484Sobrien * Makefile.in (install): Redirect ln output to /dev/null. If ln 607160484Sobrien fails on gasp, install gasp.new, not gasp. 607260484Sobrien 607360484SobrienWed May 18 09:16:36 1994 Jeff Law (law@snake.cs.utah.edu) 607460484Sobrien 607560484Sobrien * config/tc-hppa.c (pa_ip): Use R_HPPA_ABS_CALL, not R_HPPA for 607660484Sobrien absolute calls. 607760484Sobrien 607860484SobrienTue May 17 12:50:46 1994 Jeff Law (law@snake.cs.utah.edu) 607960484Sobrien 608060484Sobrien * config/tc-hppa.c (pa_parse_fp_cmp_cond): Report an error 608160484Sobrien on a partial completer match. 608260484Sobrien 608360484SobrienMon May 16 12:03:49 1994 Jeff Law (law@snake.cs.utah.edu) 608460484Sobrien 608560484Sobrien * config/tc-hppa.c: Change .hppa_unwind to .PARISC.unwind 608660484Sobrien throughout code. 608760484Sobrien (is_complex): Delete definition and support for complex relocation 608860484Sobrien types. 608960484Sobrien (tc_gen_reloc): Delete special unwind crud for ELF. Simplify and 609060484Sobrien rewrite ELF code based on 94-02-02 PA ELF draft spec. 609160484Sobrien (pa_build_unwind_subspace): Use standard PARISC_DIR32 relocs for 609260484Sobrien the unwind descriptors. 609360484Sobrien 609460484SobrienFri May 6 14:13:15 1994 Steve Chamberlain (sac@cygnus.com) 609560484Sobrien 609660484Sobrien * config/go32.mh: New makefile fragment for go32 crossing. 609760484Sobrien * configure.in (host==go32): Use new fragment. 609860484Sobrien 609960484SobrienFri May 6 14:35:58 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 610060484Sobrien 610160484Sobrien * gasp.c: Include libiberty.h. 610260484Sobrien (main): Remove unused variable i. 610360484Sobrien 610460484Sobrien * config/tc-ppc.c (md_begin): When using -many, permit comparison 610560484Sobrien instructions to appear multiple times in the opcode table. 610660484Sobrien 610760484SobrienThu May 5 19:14:43 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 610860484Sobrien 610960484Sobrien * Makefile.in (VERSION): Update to 2.2.90. 611060484Sobrien 611160484Sobrien * symbols.c (symbol_new) [BFD_ASSEMBLER]: Don't permit additions 611260484Sobrien to the symbol table if it's already been set in the output bfd. 611360484Sobrien (symbol_begin) [! EMIT_SECTION_SYMBOLS] [RELOC_REQUIRES_SYMBOL]: 611460484Sobrien Don't use bfd_abs_section.symbol for gas absolute symbol. 611560484Sobrien 611660484Sobrien * doc/Makefile.in (distclean, clean-dvi, clean-info): Delete gasp 611760484Sobrien files too. 611860484Sobrien 611960484SobrienThu May 5 18:12:51 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 612060484Sobrien 612160484Sobrien * config/tc-mips.c (mips_emit_delays): Make call to 612260484Sobrien mips_no_prev_insn unconditional. 612360484Sobrien 612460484SobrienThu May 5 17:25:38 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 612560484Sobrien 612660484Sobrien * config/obj-coff*.*: Merged coffbfd versions into coff versions, 612760484Sobrien with a single "#ifdef BFD_ASSEMBLER" controlling most of it for 612860484Sobrien now. Deleted obj-coffbfd.* files. 612960484Sobrien * configure.in: Always use obj-coff.* for COFF targets. 613060484Sobrien 613160484SobrienWed May 4 13:34:11 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 613260484Sobrien 613360484Sobrien * config/te-dpx2.h (TARGET_FORMAT, REGISTER_PREFIX_OPTIONAL): 613460484Sobrien Define. 613560484Sobrien * configure.in (m68k-bull-sysv3*): Enable. 613660484Sobrien 613760484Sobrien * config/coff_gnu.h: Deleted. 613860484Sobrien 613960484SobrienWed May 4 11:29:17 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 614060484Sobrien 614160484Sobrien * config/tc-m68k.h (TARGET_FORMAT): If not TE_SUN3, define as 614260484Sobrien "a.out-zero.big". 614360484Sobrien 614460484Sobrien * config/obj-coffbfd.c (fixup_segment): Make common symbol and PC 614560484Sobrien relative adjustments when TE_LYNX is defined as well as when 614660484Sobrien TC_I386 is defined. 614760484Sobrien 614860484SobrienWed May 4 02:29:21 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com) 614960484Sobrien 615060484Sobrien * as.h (strstr): Restore declaration. 615160484Sobrien (subseg_get) [BFD_ASSEMBLER]: Declare. 615260484Sobrien 615360484Sobrien * write.c (write_object_file): If obj_adjust_symtab is defined, 615460484Sobrien invoke it. Then call set_symtab, and finally invoke *_frob_file 615560484Sobrien hooks. 615660484Sobrien * config/obj-coff.c (coff_adjust_symtab): Renamed from 615760484Sobrien coff_frob_file. 615860484Sobrien * config/obj-coff.h (coff_adjust_symtab): Changed declaration 615960484Sobrien accordingly. 616060484Sobrien (obj_adjust_symtab): Macro also changed. 616160484Sobrien 616260484Sobrien * configure.in (i386-*-gnu*): New target, handled like i386-mach. 616360484Sobrien 616460484SobrienTue May 3 21:04:16 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 616560484Sobrien 616660484Sobrien * config/obj-coff.h (TARGET_FORMAT) [TC_I960]: Select little 616760484Sobrien endian version. 616860484Sobrien 616960484Sobrien * config/obj-coffbfd.h (TARGET_FORMAT) [TC_I960]: Ditto. 617060484Sobrien 617160484Sobrien * config/obj-coff.c (coff_frob_section): Round up the size of 617260484Sobrien every section to a multiple of the alignment, so that BFD doesn't 617360484Sobrien surprise us. 617460484Sobrien 617560484Sobrien Eliminate many simple differences between the two COFF back ends: 617660484Sobrien 617760484Sobrien * config/obj-coffbfd.c: Removed all uses of DEFUN and DEFUN_VOID. 617860484Sobrien Made minor stylistic changes, deleted some register declarations. 617960484Sobrien (stack_top): Deleted. 618060484Sobrien (symbol_to_chars): Use absolute_section and reg_section instead of 618160484Sobrien the corresponding SEG_* symbols. 618260484Sobrien (obj_coff_endef, tag_find_or_make, fixup_segment): Likewise. 618360484Sobrien (stack typedef, stack_init, stack_delete, stack_push, stack_pop): 618460484Sobrien Moved to just after pseudo-op table. All functions now static. 618560484Sobrien (stack_delete): Removed declaration. 618660484Sobrien (tag_init, tag_insert, tag_find_or_make, tag_find): Moved to just 618760484Sobrien after stack functions. 618860484Sobrien * config/obj-coffbfd.h: Reordered some declarations and macros. 618960484Sobrien (stack_init, stack_delete, stack_push, stack_pop): Don't declare. 619060484Sobrien (stack typedef): Deleted. 619160484Sobrien (SYMBOLS_NEED_BACKPOINTERS): Always undef then define; don't test. 619260484Sobrien (SYM_AUXENT): New macro. 619360484Sobrien (SA_GET_*, SA_SET_*): Define in terms of SYM_AUXENT when feasible. 619460484Sobrien (SF_GET_*, SF_SET_*): Define in terms of SF_GET when feasible. 619560484Sobrien (SA_GET_SYM_TAGNDX, SA_GET_SYM_ENDNDX, SA_SET_SYM_TAGNDX, 619660484Sobrien SA_SET_SYM_ENDNDX, object_headers typedef, data_section_header, 619760484Sobrien text_section_header): Delete non-BFD_HEADERS versions, since we 619860484Sobrien always define that symbol now. 619960484Sobrien 620060484Sobrien * config/obj-coff.c (stack_top): Deleted. 620160484Sobrien (obj_coff_endef, obj_coff_dim, obj_coff_line, obj_coff_size, 620260484Sobrien obj_coff_scl, obj_coff_tag, obj_coff_type, obj_coff_val): Change 620360484Sobrien argument name from "ignored" to "ignore". 620460484Sobrien (obj_coff_val): Use frag_now_fix. 620560484Sobrien (obj_pseudo_table): Removed IGNORE_DEBUG version, since it doesn't 620660484Sobrien get used. 620760484Sobrien (stack typedef, stack_init, stack_delete, stack_push, stack_pop): 620860484Sobrien Moved to just after pseudo-op table. All functions now static. 620960484Sobrien (tag_init, tag_insert, tag_find_or_make, tag_find): Moved to just 621060484Sobrien after stack functions. 621160484Sobrien * config/obj-coff.h: Reordered some declarations and macros. 621260484Sobrien Protected against multiple inclusions. 621360484Sobrien (stack_init, stack_delete, stack_push, stack_pop): Don't declare. 621460484Sobrien (stack typedef): Deleted. 621560484Sobrien (SYMBOLS_NEED_BACKPOINTERS): Always undef then define; don't test. 621660484Sobrien (stdoutput): Deleted declaration. 621760484Sobrien (TARGET_FORMAT) [TC_I386]: Don't define if already defined. 621860484Sobrien 621960484SobrienMon May 2 17:09:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 622060484Sobrien 622160484Sobrien * subsegs.h (segment_info_type): Use fix_tail field even if 622260484Sobrien BFD_ASSEMBLER. 622360484Sobrien * subsegs.c (subseg_change): Initialize fix_tail field. 622460484Sobrien (subseg_get): Likewise. 622560484Sobrien * write.c (frags_chained): New static variable. 622660484Sobrien (fix_new_internal): If frags_chained is set, use fix_root and 622760484Sobrien fix_tail from seg_info (now_seg), rather than frchain_now. 622860484Sobrien (chain_frchains_together_1): Set fix_tail field. 622960484Sobrien (chain_frchains_together): Set frags_chained. 623060484Sobrien 623160484SobrienThu Apr 28 01:39:15 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com) 623260484Sobrien 623360484Sobrien * config/tc-mips.c (s_option): Only refer to g_switch_* variables 623460484Sobrien if GPOPT is defined. 623560484Sobrien (s_abicalls): Ditto. 623660484Sobrien (md_apply_fix): Cast char* to unsigned char* to avoid pointer 623760484Sobrien mismatch. 623860484Sobrien 623960484SobrienWed Apr 27 11:06:32 1994 Steve Chamberlain (sac@cygnus.com) 624060484Sobrien 624160484Sobrien * configure.in (i386-*-go32): Uses coff now. 624260484Sobrien * gasp.c (main): Now takes -D on command line. 624360484Sobrien (show_usage): Describe new options. 624460484Sobrien 624560484SobrienTue Apr 26 17:10:30 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 624660484Sobrien 624760484Sobrien * listing.c (list_symbol_table): Print "NO DEFINED SYMBOLS" and 624860484Sobrien "NO UNDEFINED SYMBOLS" if there aren't any, instead of displaying 624960484Sobrien the header with an empty list. 625060484Sobrien 625160484Sobrien * config/obj-coffbfd.c (fill_section): Check COFF_NOLOAD_PROBLEM 625260484Sobrien also before setting STYP_NOLOAD for .bss section. 625360484Sobrien 625460484Sobrien * config/tc-m68k.c (flag_reg_prefix_optional): New variable. 625560484Sobrien Initialized to value of REGISTER_PREFIX_OPTIONAL, if defined, or 625660484Sobrien zero. 625760484Sobrien (m68k_reg_parse): If flag_reg_prefix_optional is set, permit 625860484Sobrien register prefix to be absent. 625960484Sobrien (m68k_ip_op): Accept `&' also for immediate constants. 626060484Sobrien (insert_reg): Don't bother with (two!?) sanity checks of the 626160484Sobrien symbol table when inserting each register. 626260484Sobrien (m68k_parse_long_option): New function. Set 626360484Sobrien flag_reg_prefix_optional if "register-prefix-optional" is passed. 626460484Sobrien * config/tc-m68k.h (REGISTER_PREFIX): Always define if not already 626560484Sobrien defined. 626660484Sobrien (OPTIONAL_REGISTER_PREFIX): Don't define. 626760484Sobrien (REGISTER_PREFIX_OPTIONAL): If not already defined, define as zero 626860484Sobrien or one depending on M68KCOFF. 626960484Sobrien 627060484Sobrien Some changes to help Apollo support, from troy@cbme.unsw.edu.au: 627160484Sobrien * config/tc-m68k.c (DATA, ADDR, SP, FPREG, COPNUM, BAD, BAC): 627260484Sobrien Define as macros instead of enumerators, since the Apollo compiler 627360484Sobrien can't handle "enumVal1, enumVal2 = enumVal1" when defining an enum 627460484Sobrien type. 627560484Sobrien (make_pcrel_absolute) [NO_PCREL_RELOCS]: New function. 627660484Sobrien (tc_coff_fix2rtype) [NO_PCREL_RELOCS]: Generate only R_RELBYTE, 627760484Sobrien R_DIR16, and R_DIR32 relocs. 627860484Sobrien * config/tc-m68k.h [TE_APOLLO] (COFF_MAGIC, COFF_AOUTHDR_MAGIC): 627960484Sobrien Use Apollo versions. 628060484Sobrien [TE_APOLLO] (OBJ_COFF_OMIT_OPTIONAL_HEADER): Undefine. That is, 628160484Sobrien do include the optional header for Apollo target. 628260484Sobrien (COFF_MAGIC): Don't define as MC68MAGIC if it's already defined. 628360484Sobrien 628460484Sobrien * config/tc-m68k.h [TE_DELTA] (LEX_PCT): Define as 1, so that `%' 628560484Sobrien can be used within a label name. 628660484Sobrien 628760484Sobrien * config/tc-m68k.h (m68k_init_after_args): Declare. 628860484Sobrien (tc_init_after_args): Define as m68k_init_after_args. 628960484Sobrien * config/tc-m68k.c (m68k_init_after_args): New function, 629060484Sobrien containing one-shot code from md_assemble. Added warning for 629160484Sobrien combination of 68040 and 68851. 629260484Sobrien (md_assemble): Startup-time code deleted. 629360484Sobrien 629460484SobrienMon Apr 25 16:19:17 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 629560484Sobrien 629660484Sobrien * doc/Makefile.in (clean, distclean): Remove asconfig.texi. 629760484Sobrien 629860484SobrienSun Apr 24 00:13:08 1994 Jeffrey A. Law (law@snake.cs.utah.edu) 629960484Sobrien 630060484Sobrien * config/tc-hppa.c (pa_ip): 13 bit immediate constant (for break 630160484Sobrien instruction) is unsigned. 630260484Sobrien 630360484SobrienFri Apr 22 17:58:22 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 630460484Sobrien 630560484Sobrien * config/obj-ecoff.c (ecoff_frob_file): Use bfd_ecoff_set_gp_value 630660484Sobrien and bfd_ecoff_set_regmasks to set the GP value and the register 630760484Sobrien masks, rather than using the now obsolete fake .reginfo section. 630860484Sobrien 630960484SobrienFri Apr 22 15:17:06 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 631060484Sobrien 631160484Sobrien * listing.c (list_symbol_table): Don't print register symbols as 631260484Sobrien undefined. 631360484Sobrien 631460484Sobrien * config/obj-coff.c (obj_symbol_new_hook): Don't need to strip 631560484Sobrien underscores, since symbol_new will already have done it. 631660484Sobrien * config/obj-coffbfd.c (obj_symbol_new_hook): Ditto. 631760484Sobrien 631860484Sobrien * as.c (main): If tc_init_after_args is defined, invoke it after 631960484Sobrien all arguments have been processed. 632060484Sobrien 632160484Sobrien Some changes to help Apollo support, from troy@cbme.unsw.edu.au: 632260484Sobrien * as.c (perform_an_assembly_pass) [TE_APOLLO]: Create .wtext 632360484Sobrien section instead of .text. Call create_target_segments. 632460484Sobrien * read.c (demand_copy_string): No longer static. 632560484Sobrien 632660484SobrienThu Apr 21 15:50:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 632760484Sobrien 632860484Sobrien * config/tc-mips.c (append_insn): Permit branches to be switched 632960484Sobrien with the preceding instruction even if .set nobopt has been seen. 633060484Sobrien .set nobopt actually controls whether to bring up an instruction 633160484Sobrien from the branch target, which gas does not currently support. 633260484Sobrien 633360484SobrienWed Apr 20 18:46:14 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 633460484Sobrien 633560484Sobrien * config/obj-coff.h, config/obj-coff.c: Deleted all code used only 633660484Sobrien when BFD_ASSEMBLER is not defined, and all conditionals relating 633760484Sobrien to such code. No such targets remain. 633860484Sobrien 633960484Sobrien Fixes for stabs-in-coff: 634060484Sobrien * config/obj-coff.c: Include subsegs.h. 634160484Sobrien (coff_frob_section): New function. 634260484Sobrien (obj_coff_init_stab_section): New function. 634360484Sobrien * config/obj-coff.h (obj_coff_init_stab_section, 634460484Sobrien coff_frob_section): Declare. 634560484Sobrien (obj_frob_section): New macro; uses coff_frob_section. 634660484Sobrien (INIT_STAB_SECTION): New macro; uses obj_coff_init_stab_section. 634760484Sobrien 634860484Sobrien * config/tc-sparc.c (md_section_align): Always round up to 634960484Sobrien multiple of alignment power specified in bfd target vector. 635060484Sobrien 635160484Sobrien * gasp.c: Include ctype.h. 635260484Sobrien 635360484SobrienMon Apr 18 21:08:01 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 635460484Sobrien 635560484Sobrien * doc/Makefile.in, doc/as.texinfo: Renamed asdoc-config.texi to 635660484Sobrien asconfig.texi. 635760484Sobrien 635860484Sobrien * doc/Makefile.in (install-info-as, install-info-gasp): Get file 635960484Sobrien names from source directory without pathname. 636060484Sobrien 636160484Sobrien * config/obj-vms.c (VMS_write_object_file): While looking for 636260484Sobrien register mask, skip empty fill frags caused by enabling listing 636360484Sobrien output. 636460484Sobrien 636560484Sobrien * config/ho-sysv.h: Include string.h. 636660484Sobrien 636760484Sobrien * doc/internals.texi: New (well, recently added) file. Just added 636860484Sobrien info on as_warn and friends. 636960484Sobrien 637060484SobrienMon Apr 18 14:28:22 1994 Jeffrey A. Law (law@snake.cs.utah.edu) 637160484Sobrien 637260484Sobrien * config/tc-hppa.c (pa_parse_space_stmt): Use the built-in 637360484Sobrien defaults for defined, private, and spnum fields for the 637460484Sobrien $TEXT$ and $PRIVATE$ spaces. Do not clobber spnum. Do 637560484Sobrien not reset the segment if just updating a space. 637660484Sobrien (pa_spaces_begin): Set BFD section flags for all built-in 637760484Sobrien subspaces. 637860484Sobrien 637960484SobrienFri Apr 15 10:51:51 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 638060484Sobrien 638160484Sobrien * ecoff.c (first_proc_ptr): New static variable. 638260484Sobrien (add_procedure): Set first_proc_ptr if it hasn't been set. 638360484Sobrien (ecoff_build_lineno): If the first procedure does not start at 638460484Sobrien address zero, insert a dummy line to compensate. 638560484Sobrien 638660484Sobrien * Makefile.in (bootstrap, bootstrap2, bootstrap3): Make gasp.new 638760484Sobrien as well as as.new. 638860484Sobrien 638960484SobrienThu Apr 14 15:12:36 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 639060484Sobrien 639160484Sobrien * expr.c (operand): Try to parse "0f" and "0b" sequences as 639260484Sobrien floating point and binary numbers respectively; if it doesn't 639360484Sobrien work, treat them as local labels. 639460484Sobrien 639560484Sobrien * Makefile.in: Make $(OBJS) depend on $(ALL_OBJ_DEPS). 639660484Sobrien * configure.in: Set ALL_OBJ_DEPS in output Makefile. 639760484Sobrien 639860484Sobrien Based on suggestions from <BAILEY@hmivax.humgen.upenn.edu> 639960484Sobrien (Charles Bailey): 640060484Sobrien * vmsconf.sh: In generated file, get ".obj" suffix right, build 640160484Sobrien source files from other directories into objects in the current 640260484Sobrien directory, and specify PSECT attributes explicitly to linker. 640360484Sobrien Also added missing label. 640460484Sobrien * Makefile.in (stamp-mk.com): Reference new variable 640560484Sobrien VMS_OTHER_OBJS for list of non-local object files, instead of 640660484Sobrien listing them here. 640760484Sobrien (VMS_OTHER_OBJS): New variable, added more libiberty files. 640860484Sobrien * make-gas.com: Regenerated. 640960484Sobrien 641060484Sobrien * config/ho-vms.h (unlink): Define as delete. 641160484Sobrien 641260484Sobrien * config-gas.com: Fix quoting on TARGET_CANONICAL definition. 641360484Sobrien Delete files before creating them. 641460484Sobrien 641560484SobrienThu Apr 14 13:34:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 641660484Sobrien 641760484Sobrien * Makefile.in (de-stage1, de-stage2, de-stage3): Use rm -f. 641860484Sobrien 641960484Sobrien * config/tc-mips.h (DIFF_EXPR_OK): Define. 642060484Sobrien * config/tc-mips.c (macro_build): Permit BFD_RELOC_PCREL_LO16 for 642160484Sobrien certain cases of 'i', 'j' and 'o'. Change 'u' to take an 642260484Sobrien argument, the reloc type. 642360484Sobrien (load_register): Pass reloc type to macro_build for 'u'. 642460484Sobrien (macro): Likewise. For M_LA_AB permit a difference expression 642560484Sobrien when generating embedded PIC code between an arbitrary symbol and 642660484Sobrien a symbol in the .text section. 642760484Sobrien (mips_force_relocation): Force BFD_RELOC_PCREL_HI16_S and 642860484Sobrien BFD_RELOC_PCREL_LO16 to be emitted. 642960484Sobrien (md_apply_fix): Check that most relocs are not PC relative. 643060484Sobrien Handle BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16. 643160484Sobrien (tc_gen_reloc): Change #error to as_fatal. Handle 643260484Sobrien BFD_RELOC_PCREL_LO16 and BFD_RELOC_PCREL_HI16_S. 643360484Sobrien 643460484SobrienTue Apr 12 18:25:13 1994 Stan Shebs (shebs@andros.cygnus.com) 643560484Sobrien 643660484Sobrien * subsegs.c (subsegs_begin): Call memset with args in the correct 643760484Sobrien order. 643860484Sobrien (subseg_get): Clear newly allocated seginfo, set its pointer slots 643960484Sobrien to NULL instead of 0. 644060484Sobrien 644160484SobrienMon Apr 11 09:00:57 1994 Jeffrey A. Law (law@snake.cs.utah.edu) 644260484Sobrien 644360484Sobrien * config/tc-hppa.c (pa_procend): Handle case where label was 644460484Sobrien defined after the .proc directive. 644560484Sobrien 644660484Sobrien * config/tc-hppa.c (pa_procend): Give an error if we encounter a 644760484Sobrien procend for a procedure without a name. 644860484Sobrien 644960484SobrienThu Apr 7 14:28:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 645060484Sobrien 645160484Sobrien * config/tc-mips.c (macro): Pass NULL for expression argument to 645260484Sobrien macro_build for nori case. 645360484Sobrien (SWITCH_TABLE): Define. 645460484Sobrien (mips_force_relocation): Force a relocation for a switch table 645560484Sobrien entry. 645660484Sobrien (md_apply_fix): Write switch table entry value into file. 645760484Sobrien (tc_gen_reloc): Use BFD_RELOC_GPREL32 for a switch table entry, 645860484Sobrien and set the addend to the difference between the reloc address and 645960484Sobrien the subtrahend. 646060484Sobrien 646160484SobrienThu Apr 7 10:38:18 1994 Jeffrey A. Law (law@snake.cs.utah.edu) 646260484Sobrien 646360484Sobrien * config/tc-hppa.h (elf_tc_symbol): Delete. No longer used. 646460484Sobrien (elf_tc_make_sections): Likewise. 646560484Sobrien (hppa_tc_make_sections, hppa_tc_symbol): Delete extern decls. 646660484Sobrien 646760484Sobrien * config/tc-hppa.c (hppa_tc_make_sections): Delete function. 646860484Sobrien (hppa_tc_symbol): Likewise. 646960484Sobrien 647060484Sobrien * config/obj-elf.c (elf_frob_file): Delete elf_tc_symbol and 647160484Sobrien elf_tc_make_sections stuff. It was there to support PA braindamage 647260484Sobrien which has been fixed, and in the case of elf_tc_make_sections is 647360484Sobrien redundant with elf_tc_final_processing. 647460484Sobrien 647560484SobrienWed Apr 6 20:48:30 1994 Jeffrey A. Law (law@snake.cs.utah.edu) 647660484Sobrien 647760484Sobrien * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the 647860484Sobrien manufacturer. 647960484Sobrien 648060484SobrienTue Apr 5 15:48:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 648160484Sobrien 648260484Sobrien * config/tc-mips.c (mips_ip): For case 'o', when generating 648360484Sobrien embedded PIC code, accept the difference between two local symbols 648460484Sobrien as being constant. 648560484Sobrien (mips_force_relocation): Only force a reloc to be generated for a 648660484Sobrien PC relative fixup. 648760484Sobrien (md_apply_fix): For BFD_RELOC_32 and BFD_RELOC_LO16, put the fixup 648860484Sobrien value into the file if the fixup will not generate a reloc. 648960484Sobrien 649060484SobrienTue Apr 5 11:14:14 1994 Ken Raeburn (raeburn@rtl.cygnus.com) 649160484Sobrien 649260484Sobrien * config/tc-sparc.c (s_reserve): If section passed isn't bss, 649360484Sobrien don't spew remainder of input file in error message. 649460484Sobrien (tc_gen_reloc): If bfd_reloc_type_lookup returns null, print error 649560484Sobrien message with reloc type and try to process remainder of file. 649660484Sobrien 649760484Sobrien * doc/Makefile.in (install-info-as, install-info-gasp): New 649860484Sobrien targets, now explicitly checking $(srcdir) for info files. 649960484Sobrien (install-info): Depend on both of them; do nothing more. 650060484Sobrien 650160484SobrienMon Apr 4 17:06:04 1994 Jeffrey A. Law (law@cygnus.com) 650260484Sobrien 650360484Sobrien * config/tc-hppa.c (tc_gen_reloc): Fix thinko in ELF version. 650460484Sobrien 650560484SobrienMon Apr 4 12:39:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 650660484Sobrien 650760484Sobrien * config/tc-ppc.c (ppc_insert_operand): Check PPC_OPERAND_SIGNED 650860484Sobrien flag rather than signedp field. Only permit extended range if 650960484Sobrien PPC_OPERAND_SIGNOPT flag is set and assembling in 32 bit mode. 651060484Sobrien Based on patch from David Edelsohn (edelsohn@npac.syr.edu). 651160484Sobrien 651260484Sobrien * config/tc-ppc.c (ppc_size): New static variable. 651360484Sobrien (ppc_arch): Check for PPC_OPCODE_PPC before PPC_OPCODE_POWER. 651460484Sobrien (md_begin): If an instruction has a size specific flag set, only 651560484Sobrien add it if we are assembling that size. 651660484Sobrien 651760484SobrienThu Mar 31 16:51:16 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 651860484Sobrien 651960484Sobrien * config/tc-sparc.c (tc_gen_reloc): Add a gruesome hack to get 652060484Sobrien cross section PC relative relocs right for COFF and ELF. 652160484Sobrien 652260484SobrienMon Mar 28 14:38:23 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 652360484Sobrien 652460484Sobrien * config/obj-coff.h (SEPARATE_STAB_SECTIONS): Always define. 652560484Sobrien (OBJ_PROCESS_STAB): Don't define. 652660484Sobrien 652760484SobrienMon Mar 28 12:40:25 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 652860484Sobrien 652960484Sobrien * config/obj-aout.c (obj_aout_frob_symbols): Don't let BFD clobber 653060484Sobrien the type of symbol set symbols which happen to be in the absolute 653160484Sobrien or undefined section. 653260484Sobrien 653360484SobrienMon Mar 28 12:35:00 1994 David Edelsohn (edelsohn@npac.syr.edu) 653460484Sobrien 653560484Sobrien * config/tc-ppc.c (md_parse_option): Add -mpwrx (POWER/2 aka 653660484Sobrien RIOS2), -mpwr (POWER aka RIOS1), -mppc (PowerPC aka MPC603/604), 653760484Sobrien and -many (all architectures). 653860484Sobrien 653960484SobrienSun Mar 27 14:04:19 1994 Jeffrey A. Law (law@snake.cs.utah.edu) 654060484Sobrien 654160484Sobrien * config/tc-hppa.c (tc_gen_reloc): Set addend for relocation 654260484Sobrien involving a function symbol which is not a plabel to zero. 654360484Sobrien (md_apply_fix): Never pass a function symbol to field_adjust. 654460484Sobrien 654560484SobrienFri Mar 25 17:35:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 654660484Sobrien 654760484Sobrien * config/obj-aout.c (obj_aout_frob_symbol): If N_EXT is set for an 654860484Sobrien N_INDR symbol, set BSF_EXPORT and clear BSF_LOCAL. 654960484Sobrien 655060484Sobrien * config/tc-mips.c (append_insn): If EMBEDDED_PIC, don't swap a 655160484Sobrien branch with an instruction that uses $at, in case the branch is 655260484Sobrien later expanded. 655360484Sobrien (macro): If EMBEDDED_PIC, case M_JAL_A may use $at. 655460484Sobrien (md_pcrel_from): If not OBJ_AOUT, return 4 for an undefined symbol 655560484Sobrien to make it pcrel_offset. 655660484Sobrien (tc_gen_reloc): If not OBJ_AOUT, set the reloc addend to 655760484Sobrien reloc->address; another gruesome hack to get gas reloc handling to 655860484Sobrien do the right thing. 655960484Sobrien 656060484SobrienThu Mar 24 21:29:29 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 656160484Sobrien 656260484Sobrien * config/tc-alpha.c (alpha_ip): Only set GP prolog size if using 656360484Sobrien PV register. 656460484Sobrien (T12): New macro. 656560484Sobrien (emit_insn): New function. 656660484Sobrien (md_assemble): Call it. 656760484Sobrien (alpha_force_relocation): Handle BFD_RELOC_26, for call_pal 656860484Sobrien instructions. 656960484Sobrien (lituse_pending): New variable. Set by anything that generates a 657060484Sobrien LITERAL reloc, cleared by anything that generates a LITUSE reloc, 657160484Sobrien tested by code that might want to emit a LITUSE reloc. 657260484Sobrien (emit_unaligned_io): New function. Currently calls md_assemble, 657360484Sobrien but it should eventually be converted to generate the insn itself 657460484Sobrien and call emit_insn directly. 657560484Sobrien (emit_load_unal, emit_store_unal, emit_byte_manip_r, 657660484Sobrien emit_extract_r, emit_insert_r, emit_mask_r, emit_sign_extend, 657760484Sobrien emit_bis_r): Likewise. 657860484Sobrien (alpha_ip, case 'I'): Handle with BFD_RELOC_23. 657960484Sobrien (alpha_ip, label get_macro): Don't emit the final instruction if 658060484Sobrien the opcode is zero. 658160484Sobrien (alpha_ip, case 'B', subcase 'd'): New case, for subword and 658260484Sobrien unaligned memory access macros. 658360484Sobrien (md_apply_fix): Handle BFD_RELOC_26. Generate an error message if 658460484Sobrien the value can't be resolved. 658560484Sobrien 658660484SobrienWed Mar 23 16:06:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 658760484Sobrien 658860484Sobrien * config/tc-mips.c (md_parse_option): For -membedded-pic, force 658960484Sobrien the -G value to 0x7fffffff. For SVR4 PIC options, don't call 659060484Sobrien bfd_set_gp_size here, it's done in md_begin. Don't permit -G with 659160484Sobrien -membedded-pic. 659260484Sobrien (mips_force_relocation): New function. 659360484Sobrien (md_apply_fix): Set fixP->fx_done appropriately. 659460484Sobrien (s_change_sec): For EMBEDDED_PIC, change .data and .rdata to 659560484Sobrien .sdata. 659660484Sobrien * config/tc-mips.h (TC_FORCE_RELOCATION): Define. 659760484Sobrien (mips_force_relocation): Declare. 659860484Sobrien (TC_HANDLE_FX_DONE): Define. 659960484Sobrien 660060484SobrienTue Mar 22 13:58:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 660160484Sobrien 660260484Sobrien * config/tc-mips.c (enum mips_pic_level): New enum. 660360484Sobrien (mips_pic): Change from int to enum mips_pic_level. Change all 660460484Sobrien uses (0 becomes NO_PIC, 2 becomes SVR4_PIC). 660560484Sobrien (load_address): Handle EMBEDDED_PIC. 660660484Sobrien (macro): Handle EMBEDDED_PIC in all PIC cases. 660760484Sobrien (md_parse_option): Accept -membedded-pic to use EMBEDDED_PIC. If 660860484Sobrien OBJ_ELF, accept -KPIC and -call_shared to use SVR4_PIC and accept 660960484Sobrien -non_shared to use NO_PIC (this is how the Irix 5 assembler 661060484Sobrien works). Do not permit -G with SVR4_PIC. 661160484Sobrien (s_abicalls): Warn if -G was used, and force -G 0. 661260484Sobrien (tc_gen_reloc): Set reloc->addend to 0 for a PC relative reloc for 661360484Sobrien anything but a.out, not just for ELF. For ECOFF, don't generate a 661460484Sobrien BFD_RELOC_16_PCREL_S2 reloc unless using EMBEDDED_PIC. 661560484Sobrien 661660484Sobrien * config/obj-ecoff.h (obj_sec_sym_ok_for_reloc): Define to be 1. 661760484Sobrien 661860484SobrienSun Mar 20 16:31:55 1994 Jeffrey A. Law (law@snake.cs.utah.edu) 661960484Sobrien 662060484Sobrien * config/tc-hppa.c (create_new_space): Use ints, not chars as 662160484Sobrien parameters to avoid losing when compiling with HP CC. 662260484Sobrien (create_new_subspace, update_subspace, fix_new_hppa): Likewise. 662360484Sobrien 662460484SobrienSun Mar 20 14:43:14 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 662560484Sobrien 662660484Sobrien * Makefile.in (config-stamp): If `defs' is defined, emit a 662760484Sobrien preprocessor directive to create a macro named by this value into 662860484Sobrien config.new; don't explicitly go for BFD_ASSEMBLER. 662960484Sobrien * configure.in: Define `defs', not `BFDDEF'. Set it to 663060484Sobrien MANY_SEGMENTS for any obj-coffbfd target. 663160484Sobrien * config/obj-coffbfd.h (BFD_HEADERS, BFD): Define. 663260484Sobrien * config/i386coff.mt (TDEFINES): Don't define BFD, MANY_SEGMENTS, 663360484Sobrien or BFD_HEADERS. 663460484Sobrien (LOCAL_LOADLIBES): Deleted. 663560484Sobrien * config/m68kcoff.mt (TDEFINES): Don't define those macros. 663660484Sobrien * config/m88kcoff.mt (TDEFINES): Ditto. 663760484Sobrien * config/ebmon29k.mt: Deleted. 663860484Sobrien * config/h8300hds.mt: Deleted. 663960484Sobrien * config/ic960coff.mt: Deleted. 664060484Sobrien * config/sparc.mt: Deleted. 664160484Sobrien * config/h8300.mt (LOCAL_LOADLIBES, TDEFINES): Deleted. 664260484Sobrien * config/h8500.mt (LOCAL_LOADLIBES, TDEFINES): Deleted. 664360484Sobrien * config/sh.mt (LOCAL_LOADLIBES, TDEFINES): Deleted. 664460484Sobrien * config/z8k.mt (LOCAL_LOADLIBES): Deleted. 664560484Sobrien (TDEFINES): Don't define the coffbfd macros. 664660484Sobrien 664760484Sobrien * Makefile.in: Insert makefile fragments before OBJS definition. 664860484Sobrien (OBJS): Add $(TE_OBJS). 664960484Sobrien 665060484Sobrien * config/obj-coff.c (obj_pseudo_table): Supply "section" 665160484Sobrien unconditionally. 665260484Sobrien 665360484Sobrien * write.c (set_symtab): Define only if BFD_ASSEMBLER. 665460484Sobrien 665560484SobrienSun Mar 20 12:06:05 1994 Jeffrey A. Law (law@snake.cs.utah.edu) 665660484Sobrien 665760484Sobrien * Makefile.in (STAGESTUFF): Add gasp.new. 665860484Sobrien 665960484SobrienFri Mar 18 20:09:16 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 666060484Sobrien 666160484Sobrien * write.c (symbol_table_frozen): New variable, to be set after 666260484Sobrien bfd_set_symtab is called. 666360484Sobrien (dump_section_relocs): Note whether a symbol is a section symbol 666460484Sobrien or not. 666560484Sobrien (adjust_reloc_syms): For now, always supply an absolute symbol for 666660484Sobrien fixups without symbols but not yet `done'. Use section_symbol to 666760484Sobrien get the symbol, instead of going directly for abs_symbol. 666860484Sobrien (write_relocs) [DEBUG4]: Abort if any symbol referred to by a 666960484Sobrien reloc is not a section symbol and is not in the symbol table. 667060484Sobrien (set_symtab): New function, broken out from write_object_file. 667160484Sobrien Counts symbol table instead of relying on an earlier count. 667260484Sobrien (write_object_file): Call set_symtab, but do it after potentially 667360484Sobrien invoking the *_frob_file macros. Don't bother counting symbols. 667460484Sobrien Call symbol_remove, instead of expanding it in place. Moved the 667560484Sobrien conditionalized `object_file_size' declaration down to 667660484Sobrien conditionalized block where it's used. When using the absolute 667760484Sobrien symbol for a fixup without a symbol, set sy_used_in_reloc. 667860484Sobrien (write_object_file) [BFD_ASSEMBLER]: Call section_symbol to get 667960484Sobrien the correct symbol for the absolute section. 668060484Sobrien 668160484Sobrien * subsegs.c (section_symbol): Use symbol_new instead of 668260484Sobrien symbol_make, since we may want it to go into the symbol table. 668360484Sobrien Make the new symbol have internal linkage. If 668460484Sobrien obj_sec_sym_ok_for_reloc says it's okay, use the BFD section 668560484Sobrien symbol with the newly created GAS symbol. 668660484Sobrien (obj_sec_sym_ok_for_reloc): Default to always returning 0. 668760484Sobrien * config/obj-aout.h (obj_sec_sym_ok_for_reloc) [BFD_ASSEMBLER]: 668860484Sobrien New macro. 668960484Sobrien * config/obj-elf.h (obj_sec_sym_ok_for_reloc): New macro. 669060484Sobrien 669160484Sobrien * config/tc-sparc.c: Include subsegs.h. 669260484Sobrien (in_signed_range): New function. 669360484Sobrien (sparc_ip): Use it. 669460484Sobrien (sparc_ip, case 'i'): Use BFD_RELOC_SPARC13, not _BASE13. 669560484Sobrien (sparc_ip, label "immediate"): Reject constants for pcrel 669660484Sobrien instructions only if the relocation type indicates a "call" 669760484Sobrien instruction and the offset is within range of a "jmpl %g0". If 669860484Sobrien it's not in range, use the absolute section symbol plus an offset. 669960484Sobrien (md_apply_fix): Use in_signed_range. Combined _SPARC13 and 670060484Sobrien _BASE13 cases. 670160484Sobrien (tc_gen_reloc): Permit BFD_RELOC_SPARC13. 670260484Sobrien 670360484Sobrien * config/ic960coff.mt (TDEFINES): Fixed typo (MANY_SECTIONS, not 670460484Sobrien MANY_SEGMENTS). 670560484Sobrien 670660484Sobrien * configure.in: Eliminated all targets using obj-coff but not 670760484Sobrien defining BFD_ASSEMBLER; I think all such targets that are 670860484Sobrien supported will be matched by real CPU-OS combinations earlier in 670960484Sobrien the case statement. 671060484Sobrien (targets *-*-coff*, *-sysv*, *-*-sco*, *-*-sysv32): Deleted. Made 671160484Sobrien some comments about the dpx2 configuration, but left it disabled, 671260484Sobrien since it couldn't be reached before. 671360484Sobrien (target a29k-amd-ebmonold): Deleted. 671460484Sobrien 671560484SobrienThu Mar 17 13:36:09 1994 Jeffrey A. Law (law@snake.cs.utah.edu) 671660484Sobrien 671760484Sobrien * config/tc-hppa.c (pa_import): Correctly handle importing of an 671860484Sobrien already defined symbol. 671960484Sobrien 672060484SobrienWed Mar 16 17:11:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 672160484Sobrien 672260484Sobrien * config/tc-mips.c (mips_ip): Only accept overly large values for 672360484Sobrien the 'j' operand if there are no further alternatives for this 672460484Sobrien instruction. 672560484Sobrien 672660484Sobrien * config/obj-coffbfd.c (adjust_stab_section): Initialize 672760484Sobrien stabstrseg to SEG_UNKNOWN, not -1. After loop, check whether it 672860484Sobrien is not SEG_UNKNOWN rather than checking whether it is >= 0. 672960484Sobrien 673060484Sobrien * config/tc-mips.c (mips_align): Take new argument, label, and use 673160484Sobrien it instead of global insn_label. 673260484Sobrien (s_align, s_cons, s_float_cons, s_gpword): Save insn_label before 673360484Sobrien call to mips_emit_delay and pass it to mips_align. 673460484Sobrien 673560484SobrienWed Mar 16 11:54:12 1994 Jeffrey A. Law (law@snake.cs.utah.edu) 673660484Sobrien 673760484Sobrien * config/tc-hppa.c (pa_equ): Handle both .reg and .equ correctly. 673860484Sobrien 673960484Sobrien * config/tc-hppa.c (pa_callinfo): Accept "millicode" as an 674060484Sobrien argument to a .callinfo directive. Don't loop forever on errors. 674160484Sobrien 674260484Sobrien * config/tc-hppa.c (pa_equ): Use pa_parse_number so that we can 674360484Sobrien use pre-defined registers as arguments. 674460484Sobrien 674560484SobrienMon Mar 14 14:29:45 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 674660484Sobrien 674760484Sobrien * write.c (write_object_file): Check both S_IS_LOCAL and 674860484Sobrien S_IS_EXTERNAL when deciding whether to discard a symbol. 674960484Sobrien 675060484Sobrien * config-gas.com: Scan Makefile.in, not version.c, for current 675160484Sobrien version number. Delete all versions of temp files when finished 675260484Sobrien with them. Create config.h. 675360484Sobrien 675460484Sobrien * config/obj-vms.c (VMS_Initialized_Data_Size): Cache symbol 675560484Sobrien values to reduce number of lookups with S_GET_VALUE. Skip debug 675660484Sobrien symbols to avoid "a really nasty bug". (From Holger Teutsch, 675760484Sobrien holger@botbso.rhein-main.de.) 675860484Sobrien (VMS_write_object_file): For "__vt.*" symbols, set S_GET_OTHER 675960484Sobrien field. (Also from Holger Teutsch.) Watch for a would-be register 676060484Sobrien mask that spans frags. 676160484Sobrien 676260484Sobrien * config/obj-coffbfd.c (obj_coff_line): Set symbol lnno field with 676360484Sobrien this_base, not line_base. (Patch from Andreas Arens, 676460484Sobrien ari@obelix.av.rwth-aachen.de.) 676560484Sobrien 676660484Sobrien * config/obj-aout.c (obj_crawl_symbol_chain): Retain symbols that 676760484Sobrien look local if they're exported or undefined. Used to be done for 676860484Sobrien i960 only. 676960484Sobrien 677060484Sobrien * read.c (s_lcomm, s_comm): Print symbol name being redefined. 677160484Sobrien Get it from the looked-up symbol, instead of using the string from 677260484Sobrien the input stream, which is no longer null-terminated. 677360484Sobrien (LEX_PCT): New macro, defaults to 0. 677460484Sobrien (lex_type): Use it for `%'. 677560484Sobrien 677660484Sobrien * config/tc-vax.c (md_parse_option): Handle `-h#' option for VMS. 677760484Sobrien (vip_op): Now static, and returns void. Callers changed. Added 677860484Sobrien forward decl. 677960484Sobrien (vip): Ditto. Call as_fatal directly if a program bug is 678060484Sobrien detected. 678160484Sobrien (op_hash): Let default initialization suffice. 678260484Sobrien 678360484Sobrien * Makefile.in (literal.o): Provide dependencies. 678460484Sobrien 678560484Sobrien * configure.in: Set new makefile variable OPCODES_LIB. 678660484Sobrien * Makefile.in (LIBS): Use it. 678760484Sobrien 678860484Sobrien * Makefile.in (make-gas.com, stamp-mk.com): New targets. 678960484Sobrien * vmsconf.sh: New file. 679060484Sobrien * make-gas.com: Regenerated from new script. 679160484Sobrien 679260484Sobrien * configure.in (sparc*-*-lynxos*): Handle any version number 679360484Sobrien suffix after "lynxos". Set emulation to lynx. 679460484Sobrien 679560484SobrienMon Mar 14 11:30:49 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com) 679660484Sobrien 679760484Sobrien * config/obj-coff.c (obj_coff_section): Delete declaration. 679860484Sobrien 679960484SobrienFri Mar 11 22:25:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 680060484Sobrien 680160484Sobrien * config/tc-ppc.c (md_pcrel_from): Return 0 for undefined ELF 680260484Sobrien symbols. 680360484Sobrien (ppc_is_toc_sym): Change .toc to .got. 680460484Sobrien (md_apply_fix): Change handling of ELF relocs. 680560484Sobrien (tc_gen_reloc): Likewise. 680660484Sobrien 680760484SobrienFri Mar 11 17:42:20 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 680860484Sobrien 680960484Sobrien * config/obj-vms.c (Close_VMS_Object_File): Add comment pointing 681060484Sobrien out some code that doesn't belong in this file. 681160484Sobrien 681260484Sobrien * config/obj-vms.h: Include aout/stab_gnu.h. 681360484Sobrien (N_GSYM, ..., N_LENG): Deleted. 681460484Sobrien (NO_RELOC): Undefine before defining as part of enum reloc_type. 681560484Sobrien 681660484Sobrien * config/tc-alpha.c: Add comment questioning need for all the 681760484Sobrien characters in FLT_CHARS. 681860484Sobrien 681960484Sobrien * as.c (main) [OBJ_VMS]: Don't call output_file_close. 682060484Sobrien 682160484Sobrien * config/obj-ecoff.c (ecoff_frob_file): Set strict order for 682260484Sobrien sections with recognized names, before computing VMA values. 682360484Sobrien 682460484SobrienFri Mar 11 17:56:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 682560484Sobrien 682660484Sobrien * config/tc-mips.c (mips_ip): Accept numbers between 0x8000 and 682760484Sobrien 0xffff for 'j' to be compatible with MIPS assembler. These 682860484Sobrien numbers are actually treated as negative. 682960484Sobrien 683060484SobrienThu Mar 10 13:36:29 1994 Doug Evans (dje@canuck.cygnus.com) 683160484Sobrien 683260484Sobrien * config/tc-sparc.h (LOCAL_LABEL): Local labels are .Lfoo. 683360484Sobrien 683460484SobrienTue Mar 8 21:17:12 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 683560484Sobrien 683660484Sobrien * config/obj-coff.c: Minor formatting/stylistic changes, plus: 683760484Sobrien (obj_coff_section): Declare. 683860484Sobrien (obj_pseudo_table): Make it available only if MANY_SECTIONS. 683960484Sobrien (obj_symbol_to_chars) [CROSS_COMPILE]: Some attemps to make this 684060484Sobrien work. It still doesn't. It now fails to compile, instead of 684160484Sobrien silently compiling to do nothing. 684260484Sobrien * config/obj-coff.h (SEPARATE_STAB_SECTIONS): Define only if 684360484Sobrien MANY_SECTIONS. 684460484Sobrien (OBJ_PROCESS_STAB) [! MANY_SECTIONS]: New macro, just emits 684560484Sobrien warning. 684660484Sobrien 684760484Sobrien Handle Alpha load-immediate-FP pseudo-instructions: 684860484Sobrien * config/alpha-opcode.h (ldif, ldig, ldis, ldit): New patterns. 684960484Sobrien * config/tc-alpha.c (lit8_sec, lit4_sec, lit8_sym, lit4_sym): New 685060484Sobrien variables. 685160484Sobrien (create_literal_section): New function. 685260484Sobrien (create_lita_section): Now a macro. 685360484Sobrien (get_lit8_offset, get_lit4_offset): New functions. 685460484Sobrien (maybe_set_gp): New function. 685560484Sobrien (select_gp_value): Call it. 685660484Sobrien (load_expression): Preserve addend if symbol is a section symbol. 685760484Sobrien (alpha_ip): Handle new operand type `F' for floating-point 685860484Sobrien constants; store them in .lit{4,8} sections. 685960484Sobrien (alpha_ip, case 'G'): Emit LITUSE relocations for symbol exprs. 686060484Sobrien 686160484Sobrien * config/tc-i386.c (smallest_imm_type): Never return Imm1. 686260484Sobrien 686360484SobrienTue Mar 8 14:18:15 1994 Steve Chamberlain (sac@jonny.cygnus.com) 686460484Sobrien 686560484Sobrien * config/obj-coffbfd.c (w_strings): Only copy strings out if 686660484Sobrien their symbols are going to be written. 686760484Sobrien 686860484SobrienTue Mar 8 11:49:27 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 686960484Sobrien 687060484Sobrien * messages.c (as_perror): Declare arguments const. 687160484Sobrien * as.h (as_perror): Change declaration. 687260484Sobrien 687360484SobrienMon Mar 7 16:08:25 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 687460484Sobrien 687560484Sobrien * config/tc-mips.c (load_address): When calling frag_grow, allow 687660484Sobrien for the (up to) two nops which may be inserted by append_insn if 687760484Sobrien mips_optimize is 0. 687860484Sobrien (macro): Likewise. 687960484Sobrien 688060484SobrienThu Mar 3 11:37:55 1994 Doug Evans (dje@canuck.cygnus.com) 688160484Sobrien 688260484Sobrien * config/atof-ieee.c (make_invalid_floating_point_number): 688360484Sobrien Add cast to avoid warning from gcc. 688460484Sobrien 688560484SobrienWed Mar 2 10:31:01 1994 Jeffrey A. Law (law@snake.cs.utah.edu) 688660484Sobrien 688760484Sobrien * config/tc-hppa.c: Add a few casts to make HP C compiler happy. 688860484Sobrien 688960484Sobrien * config/obj-som.c (obj_som_version, obj_som_copyright): Be 689060484Sobrien prepared 689160484Sobrien to handle an error from bfd_som_attach_aux_hdr. 689260484Sobrien 689360484Sobrien * config/tc-hppa.h: Wrap ELF specific decls inside an ifdef. 689460484Sobrien 689560484SobrienMon Feb 28 15:03:26 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 689660484Sobrien 689760484Sobrien * config/tc-alpha.c (md_atof): Omit warning about FP values. 689860484Sobrien (line_comment_chars): Add ! to list. 689960484Sobrien (md_apply_fix): Do process 32- and 64-bit relocations. 690060484Sobrien 690160484Sobrien * config/obj-coffbfd.c (obj_coff_lcomm): Put "#if 0" around the 690260484Sobrien unused parts (most of the function). 690360484Sobrien (obj_coff_init_stab_section): Cast alloca result. 690460484Sobrien 690560484Sobrien * configure.in (i960-*-coff, i960-*-vxworks5.*): Use coffbfd, and 690660484Sobrien gas_target ic960coff. 690760484Sobrien * config/ic960coff.mt: New file. 690860484Sobrien * config/obj-coffbfd.h [TC_I960]: Include coff/i960.h. 690960484Sobrien (TARGET_FORMAT) [TC_I960]: Use coff-Intel-little. 691060484Sobrien * config/te-ic960.h (CROSS_COMPILE): Don't undef this. We'll 691160484Sobrien always build little-endian object files. 691260484Sobrien * config/tc-i960.c (md_reloc_size): Don't define at all if BFD or 691360484Sobrien BFD_ASSEMBLER is defined. 691460484Sobrien (mem_fmt): Since COFF doesn't handle callx relocations yet, treat 691560484Sobrien them like normal 32-bit relocations. 691660484Sobrien (md_apply_fix): For callx relocations, store zero. 691760484Sobrien (tc_bout_fix_to_chars): Store symbol index for all callx 691860484Sobrien relocations, regardless of link-relax setting. 691960484Sobrien (tc_coff_fix2rtype, tc_coff_sizemachdep): New functions. 692060484Sobrien (i960_handle_align) [! OBJ_BOUT]: If link-relax option is 692160484Sobrien selected, print an error message and clear it. 692260484Sobrien * config/tc-i960.h (BFD_ARCH, COFF_FLAGS, COFF_MAGIC, 692360484Sobrien TC_COUNT_RELOC, TC_COFF_FIX2RTYPE, TC_COFF_SIZEMACHDEP, 692460484Sobrien tc_fix_adjustable): New macros. 692560484Sobrien (tc_coff_fix2rtype, tc_coff_sizemachdep): Declare. 692660484Sobrien 692760484SobrienFri Feb 25 20:56:57 1994 Jeffrey A. Law (law@snake.cs.utah.edu) 692860484Sobrien 692960484Sobrien * config/tc-hppa.c (hppa_tc_symbol): Call PA ELF BFD version. 693060484Sobrien (hppa_tc_make_sections): Likewise. 693160484Sobrien (pa_build_symextn_section): Delete unused function. 693260484Sobrien (hppa_tc_make_symextn_section): Likewise. 693360484Sobrien (pa_export): Delete call to pa_build_symextn_section. 693460484Sobrien 693560484Sobrien * config/tc-hppa.h (hppa_tc_symbol): Add extern decl. 693660484Sobrien (elf_hppa_final_processing): Delete extern decl. 693760484Sobrien (hppa_tc_symbol): Delete extern decl. 693860484Sobrien 693960484SobrienFri Feb 25 13:15:31 1994 Ian Lance Taylor (ian@cygnus.com) 694060484Sobrien 694160484Sobrien * config/obj-coffbfd.c (fill_section): Correct test for whether to 694260484Sobrien fill a section (from Minh Tran-Le <TRANLE@intellicorp.com>). 694360484Sobrien 694460484SobrienThu Feb 24 11:30:26 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 694560484Sobrien 694660484Sobrien * configure.in: Don't require version number for i386-*-mach. 694760484Sobrien 694860484Sobrien * read.c (potable): Added ".this_GCC_requires_the_GNU_assembler", 694960484Sobrien which is ignored by gas, but will cause other assemblers to choke. 695060484Sobrien Intended for use by gcc ports that require gas instead of native 695160484Sobrien assemblers. 695260484Sobrien 695360484SobrienThu Feb 24 07:10:31 1994 Jeffrey A. Law (law@snake.cs.utah.edu) 695460484Sobrien 695560484Sobrien * config/ho-hppaosf.h: Fix braino in test for ANSI-C. 695660484Sobrien 695760484SobrienWed Feb 23 16:51:43 1994 Jeffrey A. Law (law@snake.cs.utah.edu) 695860484Sobrien 695960484Sobrien * write.c (write_contents): Give the user a reasonable error 696060484Sobrien message rather than "assertion failed" if bfd_set_section_contents 696160484Sobrien fails. 696260484Sobrien 696360484SobrienTue Feb 22 10:07:32 1994 Ken Raeburn (raeburn@rtl.cygnus.com) 696460484Sobrien 696560484Sobrien * config/ho-mach3.h: New file. 696660484Sobrien 696760484SobrienMon Feb 21 11:41:18 1994 Ian Lance Taylor (ian@cygnus.com) 696860484Sobrien 696960484Sobrien * ecoff.c (ecoff_build_debug): Don't set hdr->magic here. It is 697060484Sobrien now set in bfd/ecofflink.c:ecoff_write_symhdr. 697160484Sobrien 697260484Sobrien * config/obj-coffbfd.c (write_object_file): use bfd_get_error (), 697360484Sobrien not bfd_error. 697460484Sobrien * config/obj-elf.c (elf_frob_file): Likewise. 697560484Sobrien 697660484Sobrien * read.c (s_lcomm): Use an alignment power of 3 for 8 byte .lcomm 697760484Sobrien variables. 697860484Sobrien 697960484Sobrien * config/ho-hpux.h (BROKEN_ASSERT): Define if not __GNUC__. 698060484Sobrien 698160484Sobrien * read.c (read_a_source_file): Use correct arguments to memcpy 698260484Sobrien (broken 19 Jul 1993). From kjd@pescadero.stanford.edu (Kenneth 698360484Sobrien Duda). 698460484Sobrien 698560484SobrienSun Feb 20 18:01:54 1994 Ian Lance Taylor (ian@lisa.cygnus.com) 698660484Sobrien 698760484Sobrien * config/obj-coff.h (obj_coff_section): Declare. 698860484Sobrien * config/obj-coff.c (obj_pseudo_table): For "section", use 698960484Sobrien obj_coff_section. 699060484Sobrien (obj_coff_section): Rewrite. 699160484Sobrien 699260484SobrienFri Feb 18 14:16:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 699360484Sobrien 699460484Sobrien * configure.in (i386-*-mach3*): New target; uses BFD. 699560484Sobrien * config/te-mach.h: New file. 699660484Sobrien * config/obj-aout.c (obj_aout_frob_file): New function. 699760484Sobrien * config/obj-aout.h (obj_aout_frob_file): Declare it. 699860484Sobrien (frob_file): New macro. 699960484Sobrien * config/tc-i386.c (md_apply_fix_1) [TE_Mach]: Don't adjust 700060484Sobrien pcrel32 relocations. 700160484Sobrien * config/tc-i386.h (TARGET_FORMAT) [TE_Mach]: Use a.out-mach3. 700260484Sobrien 700360484Sobrien * write.c (write_object_file): Removed register declarations. 700460484Sobrien 700560484SobrienThu Feb 17 16:25:18 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 700660484Sobrien 700760484Sobrien Some support for PowerPC ELF. 700860484Sobrien * configure.in: If cpu is powerpc*, use ppc. 700960484Sobrien (ppc-*-sysv4*): Use object format elf. 701060484Sobrien * config/tc-ppc.h: Only declare a number of things if OBJ_COFF is 701160484Sobrien defined. 701260484Sobrien (TARGET_ARCH): Make it call ppc_arch. 701360484Sobrien (ppc_arch): Declare. 701460484Sobrien (TARGET_FORMAT): Set based on OBJ_COFF or OBJ_ELF. 701560484Sobrien (NO_STRING_ESCAPES): Define. 701660484Sobrien (LOCAL_LABEL, FAKE_LABEL_NAME): Define for OBJ_ELF. 701760484Sobrien * config/tc-ppc.c: Only define a number of functions of OBJ_COFF 701860484Sobrien is defined. 701960484Sobrien (md_pseudo_table): Most pseudo-ops are OBJ_COFF specific. Added 702060484Sobrien OBJ_COFF specific "bi" and "ei". 702160484Sobrien (md_parse_option): Fix handling of -u. Make -m601 set 702260484Sobrien PPC_OPCODE_601. If OBJ_ELF, accept -V and -Q. 702360484Sobrien (ppc_set_cpu): New function. 702460484Sobrien (ppc_arch): New function. 702560484Sobrien (md_begin): Call ppc_set_cpu. 702660484Sobrien (ppc_insert_operand): For a signed operand accept an unsigned 702760484Sobrien value, for IBM compatibility. 702860484Sobrien (ppc_byte): Don't call stringer for strings; instead, treat two 702960484Sobrien double quotes as a single double quote. 703060484Sobrien (ppc_comm): Set sy_tc.output for a .lcomm symbol. 703160484Sobrien (ppc_biei): New function. 703260484Sobrien (ppc_tc): If not OBJ_COFF, ignore first argument. 703360484Sobrien (ppc_fix_adjustable): Call as_bad_where, not as_bad. 703460484Sobrien (ppc_is_toc_sym): New function. 703560484Sobrien (md_apply_fix): Use ppc_is_toc_sym. Handle BFD_RELOC_16 and 703660484Sobrien BFD_RELOC_8. 703760484Sobrien 703860484SobrienThu Feb 17 09:29:37 1994 David J. Mackenzie (djm@thepub.cygnus.com) 703960484Sobrien 704060484Sobrien * messages.c (as_perror) [BFD_ASSEMBLER]: Use bfd_get_error and 704160484Sobrien bfd_set_error and new error names. 704260484Sobrien 704360484SobrienTue Feb 15 20:23:20 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 704460484Sobrien 704560484Sobrien * configure.in: Support i960-vxworks versions > 5.0 as coff. 704660484Sobrien Default is still bout if no version is specified. 704760484Sobrien 704860484Sobrien * atof-generic.c (atof_generic): Use switch and strcasecmp instead 704960484Sobrien of large number of compares when looking for inf/nan values. 705060484Sobrien 705160484SobrienFri Feb 11 13:13:27 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 705260484Sobrien 705360484Sobrien * config/tc-mips.c (macro): Do unaligned loads and stores 705460484Sobrien correctly when big endian, and give errors on overflow rather than 705560484Sobrien generating incorrect code. 705660484Sobrien 705760484SobrienThu Feb 10 11:24:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 705860484Sobrien 705960484Sobrien * as.c: Include libiberty.h. 706060484Sobrien 706160484Sobrien * read.c (do_align): Don't define label just_record_alignment 706260484Sobrien unless it might be used. 706360484Sobrien 706460484Sobrien * as.c (main): If md_parse_long_option is defined, call it with a 706560484Sobrien long option. 706660484Sobrien * config/tc-mips.h (md_parse_long_option): Define. 706760484Sobrien * config/tc-mips.c (mips_trap): New static variable. 706860484Sobrien (md_begin): Report an error if mips_trap is set at ISA level 1. 706960484Sobrien (macro): If mips_trap, use trap instructions instead of break 707060484Sobrien instructions for overflow and divide by zero detection. 707160484Sobrien (mips_parse_long_option): New function. Support --trap, 707260484Sobrien --no-break, --break and --no-trap. 707360484Sobrien * doc/as.texinfo: Document new options. 707460484Sobrien 707560484Sobrien * read.c (potable): Add "zero". 707660484Sobrien * config/tc-i386.c (md_pseudo_table): Remove "zero". 707760484Sobrien * config/tc-m88k.c (md_pseudo_table): Likewise. 707860484Sobrien 707960484SobrienThu Feb 10 01:24:27 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 708060484Sobrien 708160484Sobrien * config/tc-sparc.c (sparc_ip): Reject integer values for 708260484Sobrien pc-relative operand fields. This forces "call 0" to become "jmpl 708360484Sobrien %g0,%o7" with no relocations needed. 708460484Sobrien 708560484SobrienWed Feb 9 13:08:32 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 708660484Sobrien 708760484Sobrien * as.h (xmalloc, xrealloc): Declare using PTR rather than char *. 708860484Sobrien * xmalloc.c (xmalloc, xrealloc): Use PTR rather than char *. 708960484Sobrien 709060484Sobrien * app.c (do_scrub_next_char): If NO_STRING_ESCAPES is defined, 709160484Sobrien don't treat backslash specially inside strings. 709260484Sobrien * read.c (next_char_of_string): Likewise. 709360484Sobrien 709460484SobrienWed Feb 9 09:42:45 1994 Stan Shebs (shebs@andros.cygnus.com) 709560484Sobrien 709660484Sobrien * config/obj-coffbfd.c (obj_coff_init_stab_section): Use memset 709760484Sobrien instead of memcpy to zero the initial stab symbol, duh. 709860484Sobrien * config/obj-elf.c (obj_elf_init_stab_section): Ditto. 709960484Sobrien * config/obj-som.c (obj_som_init_stab_section): Ditto. 710060484Sobrien 710160484SobrienTue Feb 8 17:25:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 710260484Sobrien 710360484Sobrien * write.c (fixup_segment): Use as_bad_where, not as_bad. 710460484Sobrien 710560484Sobrien * subsegs.c (subseg_set_rest): Call memset with the arguments in 710660484Sobrien the right order. Explicitly clear fix_root and fix_tail fields. 710760484Sobrien 710860484SobrienTue Feb 8 16:00:25 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 710960484Sobrien 711060484Sobrien * config/obj-coff.c (coff_frob_symbol): For abs_symbol, set *punt 711160484Sobrien and do nothing else. 711260484Sobrien 711360484Sobrien * symbols.c (symbol_begin): Initialize value of abs_symbol 711460484Sobrien properly. 711560484Sobrien 711660484Sobrien * write.c (adjust_reloc_syms): Use abs_symbol instead of calling 711760484Sobrien section_symbol. 711860484Sobrien 711960484Sobrien * ecoff.c (ecoff_build_debug): Fix "/*" in comment to silence 712060484Sobrien complaint from "gcc -Wall". 712160484Sobrien 712260484Sobrien * configure.in (alpha-*-netware*): New target, like alpha-*-osf*. 712360484Sobrien 712460484Sobrien * config/tc-alpha.c (GP_ADJUSTMENT): Move definition to start of 712560484Sobrien file. 712660484Sobrien (tc_gen_reloc): Remove uninitialized variable `code', and code 712760484Sobrien that tried to use it (incorrectly). For LITERAL reloc, set addend 712860484Sobrien to negative of GP value. 712960484Sobrien (load_symbol_address): Don't adjust return value by GP_ADJUSTMENT. 713060484Sobrien 713160484Sobrien * write.c (write_relocs): Print some sensible error message if 713260484Sobrien bfd_perform_relocation returns bfd_reloc_overflow. 713360484Sobrien 713460484SobrienMon Feb 7 15:49:24 1994 Jeffrey A. Law (law@snake.cs.utah.edu) 713560484Sobrien 713660484Sobrien * configure.in (hppa*-*elf*): New configuration for PA ELF. 713760484Sobrien (hppa*-*-osf*): Default object format is SOM. 713860484Sobrien 713960484SobrienMon Feb 7 16:07:35 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 714060484Sobrien 714160484Sobrien * config/tc-alpha.c (md_atof): Warn that floating-point values 714260484Sobrien might not assemble properly. 714360484Sobrien 714460484Sobrien * configure.in (target alpha-*-osf*): Don't set "dev=yes" any 714560484Sobrien more. 714660484Sobrien 714760484Sobrien * config/tc-alpha.c (load_expression): Parenthesize operations in 714860484Sobrien range checking, to avoid precedence questions. 714960484Sobrien 715060484Sobrien * config/tc-alpha.c (addr32): New static variable. 715160484Sobrien (md_parse_option): Set it for "-32addr". 715260484Sobrien (load_symbol_address): If addr32 is set, use ldl instead of ldq. 715360484Sobrien 715460484Sobrien * atof-generic.c (atof_generic): Calculate maximum_useful_digits 715560484Sobrien and more_than_enough_bits_for_digits in integer arithmetic, to 715660484Sobrien eliminate the only sources of dependence on floating point 715760484Sobrien support, which doesn't work yet on the Alpha. 715860484Sobrien 715960484SobrienMon Feb 7 03:56:05 1994 Ken Raeburn (raeburn@cambridge.cygnus.com) 716060484Sobrien 716160484Sobrien * ecoff.c (ecoff_build_debug) [TC_ALPHA]: Specify version stamp as 716260484Sobrien 0x30b for Alpha for now, until ".verstamp" is handled. 716360484Sobrien 716460484Sobrien * literal.c (add_to_literal_pool): Use seginfo->frchainP, which 716560484Sobrien actually refers to the literal pool section, rather than 716660484Sobrien frchain_now, which refers to whatever section the assembler was 716760484Sobrien in. 716860484Sobrien 716960484Sobrien * write.c (fixup_segment): Only do range checking if size of fixup 717060484Sobrien is smaller than word size. Otherwise, we always wind up with 717160484Sobrien zeros. 717260484Sobrien 717360484Sobrien * config/tc-alpha.c (md_section_align): Change second argument and 717460484Sobrien return type to valueT, to agree with tc.h. 717560484Sobrien (alpha_do_align): Local static array nop_pattern is now unsigned 717660484Sobrien char, to avoid overflow warnings. 717760484Sobrien * config/tc-alpha.h (md_section_align): Delete declaration. 717860484Sobrien 717960484Sobrien * config/obj-ecoff.c (ecoff_frob_file): Ensure that ecoff_data for 718060484Sobrien output bfd is non-null before indirecting through it. 718160484Sobrien 718260484Sobrien * config/tc-alpha.c (alpha_frob_ecoff_data): Renamed from 718360484Sobrien alpha_frob_file. 718460484Sobrien * config/tc-alpha.h (tc_frob_file): Macro deleted. 718560484Sobrien * config/obj-ecoff.c (ecoff_frob_file) [TC_ALPHA]: Call 718660484Sobrien alpha_frob_ecoff_data, then fill in optional-header info with gp 718760484Sobrien value and register masks. 718860484Sobrien 718960484SobrienSun Feb 6 16:13:47 1994 Jeffrey A. Law (law@snake.cs.utah.edu) 719060484Sobrien 719160484Sobrien * configure.in (hiux): Fixes from m-kasahr@sramhc.sra.co.JP. 719260484Sobrien 719360484Sobrien * config/obj-som.c (obj_som_init_stab_section): Same change 719460484Sobrien as coffbfd and elf below. Zero the initial stab symbol after 719560484Sobrien allocating it. 719660484Sobrien 719760484SobrienSat Feb 5 12:30:32 1994 Stan Shebs (shebs@andros.cygnus.com) 719860484Sobrien 719960484Sobrien * config/obj-coffbfd.c (obj_coff_init_stab_section): Zero the 720060484Sobrien initial stab symbol after allocating it. 720160484Sobrien * config/obj-elf.c (obj_elf_init_stab_section): Ditto. 720260484Sobrien 720360484SobrienSat Feb 5 11:53:31 1994 Jeffrey A. Law (law@snake.cs.utah.edu) 720460484Sobrien 720560484Sobrien * config/tc-hppa.c (pa_ip): addb[tf] should only accept 720660484Sobrien non-negated condition completers. Add support for addb pseudo-op 720760484Sobrien which accepts both negated and non-negated completers. 720860484Sobrien 720960484SobrienSat Feb 5 00:15:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 721060484Sobrien 721160484Sobrien * configure.in (rs6000*): Use cpu_type ppc. 721260484Sobrien (ppc-*-aix*): New target; use coff and force bfd_gas. 721360484Sobrien * config/tc-ppc.h, config/tc-ppc.c: New files for PowerPC/POWER 721460484Sobrien (RS/6000) support. At the moment, only XCOFF is supported. 721560484Sobrien 721660484Sobrien * config/obj-coff.c (SA_SET_SYM_ENDNDX): Made non-static. 721760484Sobrien (S_SET_DATA_TYPE): Likewise. 721860484Sobrien (coff_last_function): Renamed from local static last_functionP in 721960484Sobrien coff_frob_symbol and made externally visible. 722060484Sobrien (coff_frob_symbol): New local static set_end; use it to try to 722160484Sobrien avoid calling SA_SET_SYM_ENDNDX on a symbol that will be punted. 722260484Sobrien * config/obj-coff.h (S_SET_DATA_TYPE): Declare. 722360484Sobrien (SA_SET_SYM_ENDNDX): Declare. 722460484Sobrien (coff_last_function): Declare. 722560484Sobrien 722660484Sobrien * expr.c (operand): If DOLLAR_DOT is defined, accept `$' as 722760484Sobrien equivalent to `.' to mean the current location. 722860484Sobrien 722960484Sobrien * read.c (LEX_BR): If not defined, define as 0. 723060484Sobrien (lex_type): Use LEX_BR as the type of `{',`}',`[',`]'. 723160484Sobrien 723260484Sobrien * symbols.c (symbol_new): If tc_canonicalize_symbol_name is 723360484Sobrien defined, call it with preserved_copy_of_name. If 723460484Sobrien tc_symbol_new_hook is defined, call it on the new symbol. 723560484Sobrien (symbol_find_base): If tc_canonicalize_symbol_name is defined, 723660484Sobrien call it on a copy of the name argument. 723760484Sobrien 723860484Sobrien * write.c (write_object_file): Simplified usage of obj_frob_symbol 723960484Sobrien and tc_frob_symbol. Always call both if the symbol is going to be 724060484Sobrien output. 724160484Sobrien 724260484Sobrien * write.c (relax_segment): Use %ld rather than %d when printing 724360484Sobrien fragP->fr_var, and cast it to long. 724460484Sobrien 724560484Sobrien Changed relocs to be based on subsegments (when BFD_ASSEMBLER). 724660484Sobrien * subsegs.h (struct frchain): If BFD_ASSEMBLER, added new fields 724760484Sobrien fix_root and fix_tail. 724860484Sobrien (segment_info_type): If BFD_ASSEMBLER, don't define fix_tail 724960484Sobrien field. 725060484Sobrien * write.c (fix_new_internal): If BFD_ASSEMBLER, set fix_rootP and 725160484Sobrien fix_tailP based on frchain_now, not seg_info (now_seg). 725260484Sobrien (chain_frchains_together_1): Chain the subsegment relocs together. 725360484Sobrien * subsegs.c (subseg_change): Don't clear fix_tail field. 725460484Sobrien (subseg_get): Likewise. 725560484Sobrien * literal.c (add_to_literal_pool): Look through the relocs via 725660484Sobrien frchain_now, not seginfo. 725760484Sobrien 725860484SobrienThu Feb 3 23:07:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 725960484Sobrien 726060484Sobrien * config/obj-ecoff.h (TARGET_SYMBOL_FIELDS): Changed 726160484Sobrien ecoff_undefined to ecoff_extern_size. 726260484Sobrien * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): Likewise. 726360484Sobrien * config/tc-mips.c (s_extern): Set ecoff_extern_size to the 726460484Sobrien external symbol size, rathern than setting the symbol value. 726560484Sobrien (md_estimate_size_before_relax): Check both ecoff_extern_size and 726660484Sobrien symbol value to see if GP referencing can be used. 726760484Sobrien * ecoff.c (ecoff_symbol_new_hook): Clear ecoff_extern_size, not 726860484Sobrien ecoff_undefined. 726960484Sobrien (ecoff_frob_symbol): Don't check ecoff_undefined. 727060484Sobrien (ecoff_build_symbols): Get size of an undefined symbol from 727160484Sobrien sym->ecoff_extern_size, not S_GET_VALUE (sym). 727260484Sobrien 727360484SobrienWed Feb 2 13:55:08 1994 Jeffrey A. Law (law@snake.cs.utah.edu) 727460484Sobrien 727560484Sobrien * Makefile.in: Avoid bug in losing hpux sed. 727660484Sobrien 727760484SobrienWed Feb 2 11:40:11 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 727860484Sobrien 727960484Sobrien * config/tc-mips.c (file_mips_isa): New static variable. 728060484Sobrien (md_begin): Set it. 728160484Sobrien (s_mipsset): Add support for .set mipN to set the ISA level. 728260484Sobrien 728360484Sobrien * gasp.c (kinfo): Fully bracket initializer. 728460484Sobrien 728560484SobrienTue Feb 1 19:28:12 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 728660484Sobrien 728760484Sobrien * gasp.c (malloc): Don't declare, since host.h or system header 728860484Sobrien files may declare it differently. 728960484Sobrien 729060484Sobrien * config/atof-ieee.c (int_to_gen): Now static. 729160484Sobrien 729260484Sobrien * config/ho-i386aix.h: Include sys/types.h and stdlib.h, not 729360484Sobrien ho-sysv.h. Based loosely on a patch from Minh Tran-Le. 729460484Sobrien 729560484SobrienTue Feb 1 10:50:17 1994 Steve Chamberlain (sac@jonny.cygnus.com) 729660484Sobrien 729760484Sobrien * gasp.c: Include host.h. 729860484Sobrien 729960484SobrienTue Feb 1 12:13:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 730060484Sobrien 730160484Sobrien * config/tc-mips.c (mips_ip): Make an unsupported instruction a 730260484Sobrien warning, not an error. 730360484Sobrien 730460484Sobrien * config/obj-coff.c (dot_text_symbol, dot_data_symbol, 730560484Sobrien dot_bss_symbol): Don't define if BFD_ASSEMBLER. 730660484Sobrien (obj_symbol_to_chars): bfd_coff_swap_aux_out now takes more 730760484Sobrien arguments. 730860484Sobrien (coff_line_base): Renamed from line_base. Changed all uses. 730960484Sobrien (coff_add_linesym): Renamed from add_line_sym. Made non-static. 731060484Sobrien Changed all uses. 731160484Sobrien * config/obj-coff.h: If TC_PPC, include coff/rs6000.h. 731260484Sobrien (S_SET_STORAGE_CLASS, S_GET_STORAGE_CLASS): Declare if 731360484Sobrien BFD_ASSEMBLER. 731460484Sobrien (coff_line_base): Declare. 731560484Sobrien (coff_add_linesym): Declare if BFD_ASSEMBLER. 731660484Sobrien * config/obj-coffbfd.c (symbol_to_chars): bfd_coff_swap_aux_out 731760484Sobrien now takes more arguments. 731860484Sobrien 731960484SobrienMon Jan 31 17:55:14 1994 Stan Shebs (shebs@andros.cygnus.com) 732060484Sobrien 732160484Sobrien * as.c (statistics_flag): Renamed from quiet_flag. 732260484Sobrien (main): Get statistics with --statistics instead of -noquiet. 732360484Sobrien 732460484SobrienMon Jan 31 07:19:30 1994 Steve Chamberlain (sac@jonny.cygnus.com) 732560484Sobrien 732660484Sobrien * Makefile.in: Support for Gnu ASsembler Preprocessor. 732760484Sobrien * gasp.c: New file. 732860484Sobrien * read.c (s_lcomm): Align lcomm data. 732960484Sobrien * config/tc-z8k.c (tc_reloc_mangle): Don't allow subtraction 733060484Sobrien from different sections. 733160484Sobrien 733260484SobrienSun Jan 30 14:58:26 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 733360484Sobrien 733460484Sobrien * write.c (write_object_file): If tc_frob_file is defined, call it 733560484Sobrien just before calling obj_frob_file. 733660484Sobrien * config/tc-alpha.c (alpha_gp_value): Renamed from gp_value 733760484Sobrien (references changed), and made non-static. 733860484Sobrien (getExpression): Return void. 733960484Sobrien (select_gp_value): Abort if gp_value is non-zero. Delete call to 734060484Sobrien non-existent bfd_set_gp_value. 734160484Sobrien (alpha_validate_fix): Function deleted. 734260484Sobrien (alpha_frob_symbol): Function deleted. 734360484Sobrien (alpha_local_label): Function deleted. 734460484Sobrien (alpha_frob_file): Renamed from alpha_end. 734560484Sobrien * config/tc-alpha.h (alpha_frob_symbol, alpha_validate_fix, 734660484Sobrien alpha_local_label, alpha_end): Declarations deleted. 734760484Sobrien (alpha_gp_value, alpha_frob_file): Declare. 734860484Sobrien (tc_frob_symbol, TC_VALIDATE_FIX, md_end): Macros deleted. 734960484Sobrien (LOCAL_LABEL): Move code here from tc-alpha.c:alpha_local_label. 735060484Sobrien (md_convert_frag): Simplified slightly. 735160484Sobrien (tc_frob_file): New macro. 735260484Sobrien 735360484Sobrien * read.c (do_align): New function, most of guts of s_align_* 735460484Sobrien functions. Look for md_do_align macro, give it a chance to bypass 735560484Sobrien all but recording of section alignment. 735660484Sobrien (s_align_bytes, s_align_ptwo): Call do_align. 735760484Sobrien (s_lcomm) [TC_ALPHA]: Align object to largest power of two that 735860484Sobrien divides object size. 735960484Sobrien 736060484Sobrien * frags.c (frag_align_pattern): New function. 736160484Sobrien (frag_align): Rewrite for clarity. 736260484Sobrien 736360484Sobrien * config/tc-vax.c (md_assemble): Handle O_constant expression. 736460484Sobrien (vip_begin): Returns pointer to const char. Cast hash_insert arg 736560484Sobrien to PTR to avoid compiler complaints about const. 736660484Sobrien (md_begin): Local variable errtxt must point to const. 736760484Sobrien 736860484Sobrien * configure.in: Handle host vax-*-ultrix* like vax-*-bsd*. Don't 736960484Sobrien bother with *-*-ultrix or *-*-sysv*, except *-*-sysv, since only 737060484Sobrien the last has an existing host support file. Do handle vax-bsd and 737160484Sobrien vax-ultrix targets. 737260484Sobrien 737360484SobrienFri Jan 28 11:26:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 737460484Sobrien 737560484Sobrien * config/obj-coff.c (obj_coff_section_header_append): Do not 737660484Sobrien declare if BFD_ASSEMBLER. 737760484Sobrien (stack_pop): Correct test for stack underflow. 737860484Sobrien (obj_coff_endef, obj_coff_dim, obj_coff_line, obj_coff_size, 737960484Sobrien obj_coff_scl, obj_coff_tag, obj_coff_type, obj_coff_val): Declare 738060484Sobrien type of ignored argument to avoid gcc warning. 738160484Sobrien (align): Removed unused function. 738260484Sobrien 738360484SobrienThu Jan 27 18:14:19 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 738460484Sobrien 738560484Sobrien * config/tc-alpha.c, config/tc-alpha.h, config/alpha-opcode.h: New 738660484Sobrien files, based on port of gas-1.38 contributed by CMU, using a.out 738760484Sobrien variant. Updated for gas-2.x and ECOFF. Floating-point constants 738860484Sobrien are still broken, bootstrap testing incomplete. 738960484Sobrien 739060484Sobrien * literal.c: Comment changes. 739160484Sobrien 739260484Sobrien * listing.c (listing_source_file): Check for null listing_tail 739360484Sobrien before indirecting through it. 739460484Sobrien 739560484Sobrien * expr.h (struct expressionS): Added struct tag. 739660484Sobrien 739760484Sobrien * as.h: If __GNUC__ and inline are both undefined, define inline 739860484Sobrien away. 739960484Sobrien 740060484Sobrien * write.c (cvt_frag_to_fill): Don't assume that fr_var for 740160484Sobrien rs_align or rs_org frags will be 1. 740260484Sobrien (relax_segment): For rs_align, if fr_var is not 1, complain if 740360484Sobrien required padding is not a multiple of the size of the pad pattern. 740460484Sobrien (fixup_segment): Leave gp-relative relocations alone. For pcrel 740560484Sobrien relocations referring to the same segment, clear fx_pcrel when 740660484Sobrien clearing fx_addsy. 740760484Sobrien * as.h: Adjust comments on rs_align. 740860484Sobrien 740960484Sobrien * atof-generic.c: Some reformatting. 741060484Sobrien (atof_generic): Be careful when mixing signed/unsigned values of 741160484Sobrien different sizes. 741260484Sobrien 741360484Sobrien * write.c, config/obj-{aout,bout,coff*}.c, config/tc-sparc.c: 741460484Sobrien Query the fx_done field instead of fx_addsy to see if the fixup 741560484Sobrien still needs to be applied. Set fx_done and clear fx_addsy both, 741660484Sobrien for now. If TC_HANDLES_FX_DONE isn't defined, assume md_apply_fix 741760484Sobrien will only clear fx_addsy, and set fx_done accordingly after 741860484Sobrien returning. 741960484Sobrien * config/tc-sparc.h (TC_HANDLES_FX_DONE): Define. 742060484Sobrien * config/tc-sparc.c (md_apply_fix): Set fx_done for non-pcrel fix 742160484Sobrien with no fx_addsy. 742260484Sobrien 742360484Sobrien * symbols.c (dot_text_symbol, dot_data_symbol, dot_bss_symbol): 742460484Sobrien Deleted. 742560484Sobrien (symbol_begin): Moved to end of file, so function inlining can 742660484Sobrien work better. 742760484Sobrien (fb_label_count, fb_label_max): Default C static initializers are 742860484Sobrien sufficient. 742960484Sobrien * symbols.h (dot_text_symbol, dot_data_symbol, dot_bss_symbol): 743060484Sobrien Declarations deleted. 743160484Sobrien * config/obj-coff.c (dot_text_symbol, dot_data_symbol, 743260484Sobrien dot_bss_symbol): Defined here, static. 743360484Sobrien 743460484Sobrien * config/obj-aout.c [BFD_ASSEMBLER]: Undef NO_RELOC before 743560484Sobrien including aout/aout64.h. 743660484Sobrien 743760484Sobrien * write.c (write_object_file): If EMIT_SECTION_SYMBOLS is false, 743860484Sobrien don't write out a section symbol even if it's used in a 743960484Sobrien relocation; assume relocations will handle section numbers 744060484Sobrien somehow. Rename "punt_it" label to "punt_it_if_unused" to reflect 744160484Sobrien it's true use. 744260484Sobrien (EMIT_SECTION_SYMBOLS): Default to 1. 744360484Sobrien (adjust_reloc_syms): Don't create a new symbol for an absolute 744460484Sobrien reference; just use the absolute section symbol. 744560484Sobrien (write_relocs): Make printout of reloc values dependent on flag 744660484Sobrien DEBUG3, not DEBUG2. 744760484Sobrien * config/obj-aout.h (EMIT_SECTION_SYMBOLS): Define as 0. 744860484Sobrien * config/obj-ecoff.h (EMIT_SECTION_SYMBOLS): Ditto. 744960484Sobrien 745060484SobrienThu Jan 27 16:43:51 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 745160484Sobrien 745260484Sobrien * read.c (lex_type): No longer make '{' a valid character for 745360484Sobrien symbol names. 745460484Sobrien 745560484Sobrien * as.c (main): Print long values using %ld. 745660484Sobrien 745760484Sobrien * messages.c (as_warn_internal): New static function. 745860484Sobrien (as_warn, 3 versions): Use as_warn_internal. 745960484Sobrien (as_warn_where, 3 versions): New function. 746060484Sobrien * as.h (as_warn_where): Declare. 746160484Sobrien 746260484SobrienTue Jan 25 18:30:34 1994 Stan Shebs (shebs@andros.cygnus.com) 746360484Sobrien 746460484Sobrien * as.c (quiet_flag): New flag. 746560484Sobrien (main): If -noquiet given, display execution time and memory used. 746660484Sobrien 746760484SobrienTue Jan 25 15:53:11 1994 Jeffrey A. Law (law@snake.cs.utah.edu) 746860484Sobrien 746960484Sobrien * doc/{all.texi,as.texinfo}: Add documentation for HPPA port. 747060484Sobrien 747160484SobrienMon Jan 24 19:18:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 747260484Sobrien 747360484Sobrien * ecoff.c (ecoff_frob_symbol): New function. Put undefined 747460484Sobrien symbols of known size in the undefined section. Put small common 747560484Sobrien symbols in a .scommon section. 747660484Sobrien * ecoff.h (ecoff_frob_symbol): Declare. 747760484Sobrien * config/obj-ecoff.h (obj_frob_symbol): Define. 747860484Sobrien * config/obj-elf.c (obj_elf_write_symbol_p, obj_elf_write_symbol, 747960484Sobrien obj_elf_frob_symbol): Removed unused functions. 748060484Sobrien * config/obj-elf.h (obj_frob_symbol, obj_write_symbol): Removed 748160484Sobrien unused macros. 748260484Sobrien (obj_elf_frob_symbol, obj_elf_write_symbol): Removed declarations 748360484Sobrien of unused functions. 748460484Sobrien (obj_frob_symbol): Define if ECOFF_DEBUGGING. 748560484Sobrien 748689857Sobrien * config/tc-mips.c (g_switch_seen): New static variable. 748760484Sobrien (md_parse_option): Set g_switch_seen for -G option. 748860484Sobrien (s_option): If creating PIC code, force the GP size to be 0. Warn 748960484Sobrien if -G switch used with a non-zero value. 749060484Sobrien 749160484Sobrien * symbols.c (S_IS_COMMON): Use bfd_is_com_section rather than 749260484Sobrien comparing against bfd_com_section. 749360484Sobrien 749460484SobrienMon Jan 24 14:12:25 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 749560484Sobrien 749660484Sobrien * read.c (s_lcomm): Treat Alpha like MIPS in handling of .sbss 749760484Sobrien section. 749860484Sobrien 749960484SobrienThu Jan 20 13:17:58 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 750060484Sobrien 750160484Sobrien * expr.c (operand): For floating point operand with unusual fp 750260484Sobrien char from FLT_CHARS, preserve the character. Patch from Lisa 750360484Sobrien Repka. 750460484Sobrien 750560484SobrienWed Jan 19 23:15:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 750660484Sobrien 750760484Sobrien * config/tc-mips.c (md_pseudo_table): Add all data allocation 750860484Sobrien pseudo-ops: .hword, .int, .long, .octa, .quad, .short, .single. 750960484Sobrien 751060484SobrienTue Jan 18 15:51:59 1994 Steve Chamberlain (sac@jonny.cygnus.com) 751160484Sobrien 751260484Sobrien * config/obj-coffbfd.c (obj_coff_endef): For C_EFCN, C_BLOCK and 751360484Sobrien C_FCN assume .val has been set to . 751460484Sobrien 751560484SobrienTue Jan 18 16:19:58 1994 Jeffrey A. Law (law@snake.cs.utah.edu) 751660484Sobrien 751760484Sobrien * config/tc-hppa.c: Disable multiple $CODE$ subspace code. It 751860484Sobrien confuses GDB for some unknown reason. 751989857Sobrien * config/obj-som.c: Likewise. 752060484Sobrien 752160484SobrienTue Jan 18 19:05:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 752260484Sobrien 752360484Sobrien * literal.c (add_to_literal_pool): Handle duplicates of values 752460484Sobrien already written to literal pool. 752560484Sobrien 752660484SobrienTue Jan 18 17:23:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 752760484Sobrien 752860484Sobrien * config/obj-aout.c (obj_aout_frob_symbol): Try to get symbols 752960484Sobrien with explicitly marked stabs through BFD: if a symbol marked 753060484Sobrien N_UNDF | N_EXT is in the absolute section, move it to the 753160484Sobrien undefined section; move a symbol marked N_INDR into 753260484Sobrien bfd_ind_section and set the BSF_INDIRECT flag; set the 753360484Sobrien BSF_WARNING flag for a symbol makred N_WARNING. 753460484Sobrien 753560484SobrienMon Jan 17 15:40:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 753660484Sobrien 753760484Sobrien * ecoff.h (ecoff_set_gp_prolog_size): Declare. 753860484Sobrien * ecoff.c (ecoff_set_gp_prolog_size): Return type is void. 753960484Sobrien 754060484SobrienMon Jan 17 00:18:55 1994 Jeffrey A. Law (law@snake.cs.utah.edu) 754160484Sobrien 754260484Sobrien * config/tc-hppa.c (pa_ip): Explicitly check for comma before 'u' 754360484Sobrien and 'f' template operand. 754460484Sobrien 754560484Sobrien * config/tc-hppa.c (pa_ip): Handle 'N', 'O', 'o', '0', '1', 'u', 754660484Sobrien and '2' in copr and sfu instruction templates. 754760484Sobrien 754860484SobrienSun Jan 16 16:44:23 1994 Jeffrey A. Law (law@snake.cs.utah.edu) 754960484Sobrien 755060484Sobrien * as.h (subseg_force_new): Add prototype. 755160484Sobrien 755260484SobrienSat Jan 15 09:20:55 1994 Doug Evans (dje@canuck.cygnus.com) 755360484Sobrien 755460484Sobrien * app.c (do_scrub_next_char): Allow lines like " foolab :". 755560484Sobrien 755660484Sobrien * read.c (emit_expr): Fix computation of mask. 755760484Sobrien * config/obj-elf.c (obj_elf_section): Fix loop termination test. 755860484Sobrien 755960484SobrienThu Jan 13 16:15:15 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 756060484Sobrien 756160484Sobrien * ecoff.c (ecoff_set_gp_prolog_size): New function. 756260484Sobrien (current_file_idx): New static variable. 756360484Sobrien (add_file): Use and increment current_file_idx instead of indx 756460484Sobrien parameter. 756560484Sobrien 756660484Sobrien * struc-symbol.h (struct symbol): Make all bitfields unsigned. 756760484Sobrien 756860484Sobrien * config/tc-i960.c (i960_validate_fix): Added argument 756960484Sobrien add_symbolPP. Indirect through it to get "add_symbolP". 757060484Sobrien * config/tc-i960.h (i960_validate_fix): Supply prototype. 757160484Sobrien (TC_VALIDATE_FIX): Pass address of add_symbolP. 757260484Sobrien 757360484Sobrien * configure.in (i386-*-netbsd*): New target, using te-netbsd.h. 757460484Sobrien (i386-*-netbsd0.8): New target, like 386bsd. 757560484Sobrien 757660484Sobrien * configure.in: Set BFDDEF in Makefile to "define" or "undef". 757760484Sobrien * Makefile.in (config.h): Protect against multiple inclusions. 757860484Sobrien Define or undef BFD_ASSEMBLER as specified by $(BFDDEF). 757960484Sobrien (ALL_CFLAGS): Omit $(BFDDEF). 758060484Sobrien * as.h: Include config.h. 758160484Sobrien (struct symbol): Added forward declaration. 758260484Sobrien (add_to_literal_pool): Fix declaration. 758360484Sobrien * as.c: Don't include config.h. 758460484Sobrien 758560484Sobrien * literal.c (add_to_literal_pool): Take symbol and addend as 758660484Sobrien arguments, instead of expression, for now. Fix calculation of 758760484Sobrien offset to return. 758860484Sobrien 758960484Sobrien * subsegs.h (segment_info_type) [NEED_LITERAL_POOL]: Add field 759060484Sobrien literal_pool_size. 759160484Sobrien 759260484SobrienThu Jan 13 12:14:21 1994 Jeffrey A. Law (law@snake.cs.utah.edu 759360484Sobrien 759460484Sobrien * subsegs.c (subseg_get): Accept new argument "force_new". If 759560484Sobrien set then a new segment is always created. All callers changed. 759660484Sobrien (subseg_force_new): New function. Similar to subseg_new, but 759760484Sobrien always force a new segment to be created. 759860484Sobrien 759960484Sobrien * config/obj-som.c (som_frob_file): Call adjust_code_sections 760060484Sobrien for each section. 760160484Sobrien (adjust_code_sections): New function. Adjusts the VMA for all the 760260484Sobrien $CODE$ subspaces. 760360484Sobrien 760460484Sobrien * config/tc-hppa.c (md_assemble): Also handle creating a fixup 760560484Sobrien for the unwind descriptors if a function's label follows the 760660484Sobrien .PROC and .ENTRY directives. 760760484Sobrien (pa_entry): Don't set BSF_FUNCTION for the label symbol here; it 760860484Sobrien is done elsewhere. Don't create a fixup for the unwind 760960484Sobrien descriptors if the function's label has not been defined yet. 761060484Sobrien (pa_proc): For SOM, place each procedure within a new $CODE$ 761160484Sobrien subspace. Adjust the segment and frag for the associated 761260484Sobrien function label if it exists. 761360484Sobrien 761460484SobrienWed Jan 12 22:05:33 1994 Jeffrey A. Law (law@snake.cs.utah.edu) 761560484Sobrien 761660484Sobrien * config/tc-hppa.c (hppa_fix_struct): Add new "segment" field. 761760484Sobrien (hppa_fix_new): Initialize segment field. 761860484Sobrien (md_apply_fix): Do nothing for pc-relative fixup which involves 761960484Sobrien crossing a segment boundary. 762060484Sobrien (pa_procend): Undefine the current label after handling .PROC 762160484Sobrien and .PROCEND directives. 762260484Sobrien (dummy_symbol): Make type "symbolS *". Change references as 762360484Sobrien appropriate. 762460484Sobrien 762560484SobrienWed Jan 12 13:29:31 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 762660484Sobrien 762760484Sobrien * read.c (read_a_source_file): Cast array argument to unsigned 762860484Sobrien char. 762960484Sobrien * write.c (adjust_reloc_syms): Remove unused variable symseginfo. 763060484Sobrien (write_object_file): Don't define punt_it if it won't be used. 763160484Sobrien (fixup_segment): Don't define skip if it won't be used. 763260484Sobrien 763360484Sobrien * config/tc-mips.h (TARGET_FORMAT): Define as mips_target_format. 763460484Sobrien (mips_target_format): Declare. 763560484Sobrien * config/tc-mips.c (mips_target_format): Define with appropriate 763660484Sobrien default definition. 763760484Sobrien (md_parse_option): If -EL or -EB is used, change byte_order and 763860484Sobrien mips_target_format as appropriate. 763960484Sobrien 764060484SobrienTue Jan 11 21:52:36 1994 Jeffrey A. Law (law@snake.cs.utah.edu) 764160484Sobrien 764260484Sobrien * app.c (do_scrub_next_char): Another attempt to fix bugs 764360484Sobrien dealing with labels without colons (for HPPA and MRI). 764460484Sobrien 764560484SobrienTue Jan 11 17:01:06 1994 Doug Evans (dje@canuck.cygnus.com) 764660484Sobrien 764760484Sobrien * config/tc-sparc.c (sparc_ip): Truncate args to %hi/%lo to 32 bits. 764860484Sobrien 764960484Sobrien * expr.c (integer_constant): Fix computation of too_many_digits. 765060484Sobrien Variable digit_2 renamed to start. Fix check for whether number 765160484Sobrien will fit in 32 bits. 765260484Sobrien * read.c (emit_expr): Use valueT instead of long. 765360484Sobrien 765460484SobrienTue Jan 11 13:01:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 765560484Sobrien 765660484Sobrien * config/obj-elf.c: If TC_MIPS, include elf/mips.h. 765760484Sobrien (special_sections): Define. 765860484Sobrien (obj_elf_special_section): Get default types and attributes from 765960484Sobrien list of special sections. 766060484Sobrien * config/tc-mips.c (ELF_TC_SPECIAL_SECTIONS): Define. 766160484Sobrien 766260484Sobrien * config/obj-ecoff.c (ecoff_frob_file): Force .sdata and .sbss 766360484Sobrien sections to be close together. 766460484Sobrien 766560484Sobrien * config/tc-mips.c (macro): Corrected $at warnings in a couple of 766660484Sobrien spots. 766760484Sobrien 766860484Sobrien * listing.c (listing_prev_line): New function. 766960484Sobrien * listing.c: Include subsegs.h. 767060484Sobrien (listing_prev_line): New function. 767160484Sobrien (calc_hex): Reset byte_in_frag to zero for each new frag. 767260484Sobrien * config/tc-mips.c (append_insn): Call listing_prev_line after 767360484Sobrien emitting nop instructions. 767460484Sobrien * Makefile.in (listing.o): Depends upon subsegs.h. 767560484Sobrien 767660484SobrienMon Jan 10 09:52:23 1994 Jeffrey A. Law (law@snake.cs.utah.edu) 767760484Sobrien 767860484Sobrien * config/tc-hppa.c (pa_ip): Put check for missing label on .PROC 767960484Sobrien here. Handle case where label may be defined after the .PROC. 768060484Sobrien (pa_proc): It is not an error if the procedure's label isn't 768160484Sobrien defined before the .PROC directive. 768260484Sobrien 768360484SobrienSun Jan 9 04:43:30 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com) 768460484Sobrien 768560484Sobrien * config/te-netbsd.h: New file. 768660484Sobrien * config/tc-i386.h (TARGET_FORMAT) [TE_NetBSD]: Use bfd target 768760484Sobrien a.out-netbsd-386 for this configuration. 768860484Sobrien 768960484SobrienFri Jan 7 17:38:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 769060484Sobrien 769160484Sobrien * ecoff.c (ecoff_stab): Don't clobber the ECOFF symbol information 769260484Sobrien with the associated stabs information. 769360484Sobrien (ecoff_build_symbols): Never set the type of stabs symbols to 769460484Sobrien st_Global. Don't update the symbol index or ifd if the gas symbol 769560484Sobrien is not the same as the ECOFF symbol (which is now the case for 769660484Sobrien stabs symbols). 769760484Sobrien 769860484SobrienFri Jan 7 11:14:07 1994 Stan Shebs (shebs@andros.cygnus.com) 769960484Sobrien 770060484Sobrien * config/tc-mips.c (macro): Add a LOSING_COMPILER ifdef that 770160484Sobrien splits the function. 770260484Sobrien (macro2): New function, if LOSING_COMPILER defined. 770360484Sobrien 770460484SobrienFri Jan 7 09:38:25 1994 Steve Chamberlain (sac@cygnus.com) 770560484Sobrien 770660484Sobrien * config/obj-coffbfd.c (fill_section): Don't ever fill past the 770760484Sobrien end of a section. (write_object_file): Temporary fix - setup 770860484Sobrien stdoutput. 770960484Sobrien 771060484SobrienThu Jan 6 18:05:21 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 771160484Sobrien 771260484Sobrien * config/tc-sparc.c (tc_gen_reloc): Fix handling of addends in 771360484Sobrien non-pcrel_offset relocations. 771460484Sobrien 771560484SobrienThu Jan 6 01:06:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 771660484Sobrien 771760484Sobrien * config/tc-mips.c (mips_ip): Warn about using $1 as well as $at 771860484Sobrien without .set noat. 771960484Sobrien 772060484SobrienWed Jan 5 14:22:22 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 772160484Sobrien 772260484Sobrien * literal.c: New file. 772360484Sobrien * Makefile.in (REAL_SOURCES, OBJS): List it. 772460484Sobrien 772560484Sobrien * as.h (DEBUG): Don't define. 772660484Sobrien (struct expressionS, struct fix): Declare in case they're used in 772760484Sobrien prototypes. 772860484Sobrien (add_to_literal_pool) [BFD_ASSEMBLER]: Declare. 772960484Sobrien 773060484Sobrien * config/tc-mips.h (TARGET_FORMAT) [OBJ_AOUT]: Fix for new names 773160484Sobrien in bfd. 773260484Sobrien 773360484Sobrien * subsegs.c (subseg_get): New function. Creates segment if 773460484Sobrien needed, returns pointer, but doesn't change current segment. 773560484Sobrien (subseg_new): Use it. 773660484Sobrien 773760484SobrienTue Jan 4 15:12:43 1994 Stan Shebs (shebs@andros.cygnus.com) 773860484Sobrien 773960484Sobrien * Makefile.in (INCLUDES): Add $(srcdir)/.. to places to search. 774060484Sobrien * config/obj-ecoff.c: Include files as "bfd/" instead of "../bfd/". 774160484Sobrien * app.c, flonum.h, hex-value.c (const): Change #if to be more 774260484Sobrien portable. 774360484Sobrien 774460484SobrienTue Jan 4 22:11:34 1994 Rob Savoye (rob@darkstar.cygnus.com) 774560484Sobrien 774660484Sobrien * config/ho-vsta.h, configure.in: Add support for VSTa 774760484Sobrien micro-kernel. 774860484Sobrien 774960484SobrienThu Dec 30 15:27:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 775060484Sobrien 775160484Sobrien * write.c (write_relocs): bfd_perform_relocation now takes an 775260484Sobrien additional argument, to return an error string (which we ignore). 775360484Sobrien 775460484SobrienWed Dec 29 14:37:26 1993 Ken Raeburn (raeburn@cujo.cygnus.com) 775560484Sobrien 775660484Sobrien * write.h (struct fix): Field tc_fix_data should be type PTR, not 775760484Sobrien void*, for compatibility with non-ANSI compilers. Added 775860484Sobrien single-bit field "fx_done". 775960484Sobrien 776060484SobrienSun Dec 26 14:31:47 1993 Torbjorn Granlund (tege@adder.cygnus.com) 776160484Sobrien 776289857Sobrien * config/tc-hppa.c (pre_defined_registers): Convert to lower case. 776360484Sobrien Delete spurious register names "%r4L", etc. 776460484Sobrien (selector_table): Sort and convert to lower case. 776560484Sobrien (cons_fix_new_hppa): `reloc_type' => `rel_type'. 776660484Sobrien (pa_ip): Always use strcmp for non-text and strcasecmp for text. 776760484Sobrien (reg_name_search): Rewrite to call strcasecmp only once per 776860484Sobrien iteration. 776960484Sobrien (pa_chk_field_selector): Rewrite to use binary search. 777060484Sobrien (pa_parse_neg_add_cmpltr): Use strcasecmp for completer comparisons. 777160484Sobrien (pa_parse_space_stmt): $TEXT$ and $PRIVATE$ are symbols; use case 777260484Sobrien sensitive comparisons. 777360484Sobrien (pa_parse_space_stmt): Canonicalize strncasecmp arg to lower case. 777460484Sobrien (pa_space): "$text$" => "$TEXT$"; "$private$" => "$PRIVATE$". Use 777560484Sobrien case sensitive comparison for all symbolic names. 777660484Sobrien (pa_subspace): Canonicalize strncasecmp arg to lower case. 777760484Sobrien (pa_subspace_start): Use case sensitive comparison for symbolic names. 777860484Sobrien 777960484SobrienMon Dec 20 10:37:48 1993 Ken Raeburn (raeburn@cujo.cygnus.com) 778060484Sobrien 778160484Sobrien * write.c (adjust_reloc_syms) [RELOC_REQUIRES_SYMBOL]: If no 778260484Sobrien symbol is present (i.e., relocation against absolute), create a 778360484Sobrien phony local symbol, and use it in the reloc. 778460484Sobrien (fixup_segment): When adjusting a reloc with an absolute symbol, 778560484Sobrien have TC_FORCE_RELOCATION control clearing add_symbolP too. 778660484Sobrien * config/tc-sparc.h (RELOC_REQUIRES_SYMBOL): Define, for OBJ_COFF. 778760484Sobrien 778860484Sobrien * symbols.c (S_IS_EXTERNAL, S_IS_LOCAL): Don't use both BSF_EXPORT 778960484Sobrien and BSF_GLOBAL, since they're the same. 779060484Sobrien 779160484Sobrien * as.c (main): Only invoke md_end if it's defined as a macro. 779260484Sobrien * tc.h (md_end): Don't declare it. 779360484Sobrien * config/tc-*.[ch] (md_end): Deleted, in cases where it doesn't do 779460484Sobrien anything. 779560484Sobrien * config/tc-vax.c (vip_end): Deleted null function. 779660484Sobrien * config/tc-mips.c (md_mips_end): Renamed from md_end. 779760484Sobrien * config/tc-mips.h (md_mips_end): Declare. 779860484Sobrien (md_end): New macro, calls md_mips_end. 779960484Sobrien 780060484Sobrien * write.c (write_object_file): Don't close output file. 780160484Sobrien * as.c (main): Close output file (if needed) after calling 780260484Sobrien listing_print, which should be after calling write_object_file, 780360484Sobrien which sets the frag addresses. 780460484Sobrien 780560484Sobrien * config/obj-coff.c (obj_coff_dim, obj_coff_endef, obj_coff_line, 780660484Sobrien obj_coff_scl, obj_coff_size, obj_coff_tag, obj_coff_type, 780760484Sobrien obj_coff_val): Add unused int argument to satisfy prototypes; goes 780860484Sobrien with Ian's 10 Sep changes. 780960484Sobrien (S_GET_DATA_TYPE, S_SET_DATA_TYPE, S_GET_STORAGE_CLASS, 781060484Sobrien S_SET_STORAGE_CLASS): Now function instead of macros. 781160484Sobrien (obj_emit_lineno) [BFD_ASSEMBLER]: Deleted. 781260484Sobrien (tag_insert): Local var ERROR_STRING is const. Use "const" not 781360484Sobrien "CONST" for argument NAME. Fixed prototype. 781460484Sobrien (coff_frob_symbol): Removed explicit "#if 1" directive. If 781560484Sobrien S_IS_EXTERNAL, set storage class to C_EXT. 781660484Sobrien (s_get_name): Use "const" not "CONST". 781760484Sobrien * config/obj-coff.h (S_GET_DATA_TYPE, S_SET_DATA_TYPE, 781860484Sobrien S_GET_STORAGE_CLASS, S_SET_STORAGE_CLASS): Deleted. 781960484Sobrien (obj_emit_lineno): Declare only for non-BFD_ASSEMBLER. For 782060484Sobrien BFD_ASSEMBLER, define as macro that aborts. 782160484Sobrien (obj_extra_stuff, tc_headers_hook): Declare only for 782260484Sobrien non-BFD_ASSEMBLER. 782360484Sobrien (coff_frob_symbol): Fix prototype. 782460484Sobrien 782560484SobrienSun Dec 19 00:37:20 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 782660484Sobrien 782760484Sobrien * config/tc-sparc.c (tc_gen_reloc): Test of pcrel_offset had sense 782860484Sobrien reversed. 782960484Sobrien 783060484SobrienThu Dec 16 21:13:11 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 783160484Sobrien 783260484Sobrien * config/tc-hppa.c (md_begin): Initialize "dummy_label". 783360484Sobrien (tc_gen_reloc, SOM version): For relocations which have no symbol, 783460484Sobrien set sym_ptr_ptr to dummy_label. Avoids lossage in generic BFD code. 783560484Sobrien 783660484SobrienThu Dec 16 16:07:56 1993 Ken Raeburn (raeburn@cujo.cygnus.com) 783760484Sobrien 783860484Sobrien * read.c (lex_type): No longer make '[' a valid character for 783960484Sobrien symbol names. 784060484Sobrien 784160484Sobrien * config/tc-vax.c (tc_aout_fix_to_chars): Local variable 784260484Sobrien NBYTES_R_LENGTH now const. 784360484Sobrien 784460484Sobrien * config/obj-*.c, config/tc-*.c: Omit superfluous "return" 784560484Sobrien statements at ends of functions. Don't check for null return from 784660484Sobrien hash_new, since it won't return at all if there's no memory 784760484Sobrien available. Also, check for null return from hash_insert, rather 784860484Sobrien than zero-length string, as success indicator. 784960484Sobrien 785060484Sobrien * subsegs.c (section_symbol): New function. 785160484Sobrien * subsegs.h (section_symbol): Declare. 785260484Sobrien * write.c (adjust_reloc_syms): Use it. 785360484Sobrien 785460484SobrienWed Dec 15 15:39:53 1993 Ken Raeburn (raeburn@cujo.cygnus.com) 785560484Sobrien 785660484Sobrien * Makefile.in (RUNTEST): New variable. 785760484Sobrien (CHECKFLAGS): Pass it down. 785860484Sobrien 785960484Sobrien * ecoff.c (ecoff_directive_frame): Permit extra trailing operands; 786060484Sobrien unused for now, but supplied by Alpha OSF1 compiler. 786160484Sobrien 786260484Sobrien * as.h: Protect against multiple inclusions. 786360484Sobrien (int_to_gen): Don't declare. 786460484Sobrien 786560484Sobrien * config/atof-vax.c (atof_vax): NULL is not a valid character 786660484Sobrien constant. 786760484Sobrien 786860484SobrienTue Dec 14 21:38:25 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 786960484Sobrien 787060484Sobrien * configure.in (hppa*-*-osf*): Do not consider this a developmental 787160484Sobrien configuration. 787260484Sobrien 787360484Sobrien * config/tc-hppa.c (md_apply_fix): Handle cases where no 787460484Sobrien relocation will be emitted for 32bit formats. 787560484Sobrien 787660484SobrienMon Dec 13 23:33:40 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 787760484Sobrien 787860484Sobrien * config/tc-hppa.c (md_apply_fix): Do not call hppa_field_adjust 787960484Sobrien for any of the 'T' field selectors. 788060484Sobrien 788160484SobrienSat Dec 11 11:23:12 1993 Steve Chamberlain (sac@thepub.cygnus.com) 788260484Sobrien 788360484Sobrien * config/tc-h8500.c (build_bytes): Get reloc type right for a 788460484Sobrien %page operation. (md_assemble): Don't modify input_line_pointer. 788560484Sobrien (mdcoff_sizemachdep): New function. 788660484Sobrien * config/tc-h8500.h (TC_COFF_SIZEMACHDEP): New macro. 788760484Sobrien * config/tc-z8k.c (get_operand): Delete bogus check. 788860484Sobrien 788960484SobrienWed Dec 8 16:31:51 1993 Ken Raeburn (raeburn@rtl.cygnus.com) 789060484Sobrien 789160484Sobrien * write.c (number_to_chars_*): Delete bogus range check. 789260484Sobrien 789360484Sobrien * output-file.c (TARGET_ARCH): No default. 789460484Sobrien 789560484SobrienTue Dec 7 16:02:53 1993 Steve Chamberlain (sac@jonny.cygnus.com) 789660484Sobrien 789760484Sobrien * config/tc-sh.c (md_convert_frag): Truncate disps before calling 789860484Sobrien md_number_to_chars. (md_assemble): Don't modify 789960484Sobrien input_line_pointer. 790060484Sobrien 790160484SobrienMon Dec 6 11:49:03 1993 Doug Evans (dje@canuck.cygnus.com) 790260484Sobrien 790360484Sobrien * config/tc-h8300.c (md_assemble): Don't update input_line_pointer. 790460484Sobrien 790560484SobrienMon Dec 6 11:20:02 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 790660484Sobrien 790760484Sobrien * config/obj-som.[ch] (obj_read_begin_hook): Remove last change. 790860484Sobrien Breaks with the HP compilers. 790960484Sobrien 791060484Sobrien * config/tc-hppa.c (struct call_info): Remove fields which were 791160484Sobrien set but never used. Remove all code which sets those fields. 791260484Sobrien (struct subspace_dictionary_chain): Likewise. 791360484Sobrien (struct space_dictionary_chain): Likewise. 791460484Sobrien (pa_desc): Delete useless function. Delete all references. 791560484Sobrien (hppa_tc_make_sections): No need to count the number of symbols for 791660484Sobrien the symbol extension section. 791760484Sobrien 791860484SobrienSun Dec 5 17:05:29 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 791960484Sobrien 792060484Sobrien * config/obj-som.c (obj_som_version): Pass version string to 792160484Sobrien SOM BFD backend. 792260484Sobrien (obj_som_copyright): New function. Much like obj_som_version. 792360484Sobrien 792460484Sobrien * config/tc-hppa.c (obj_copyright): Define as appropriate for 792560484Sobrien SOM and ELF. 792660484Sobrien (pa_copyright): Just a stub now. 792760484Sobrien 792860484Sobrien * config/obj-som.c (obj_read_begin_hook): Delete unused function. 792960484Sobrien * config/obj-som.h (obj_read_begin_hook): Provide dummy definition. 793060484Sobrien (TARGET_SYMBOL_FIELDS): Delete. SOM isn't making use of them. 793160484Sobrien 793260484Sobrien * config/tc-hppa.c (tc_gen_reloc, SOM version): Handle relocation 793360484Sobrien expansion due to rounding mode selectors. Handle R_[RDSN]_MODE 793460484Sobrien relocations for selecting the current rounding mode. 793560484Sobrien 793660484Sobrien * config/tc-hppa.c (evaluate_absolute): Support e_rrsel and 793760484Sobrien e_rlsel field selectors. 793860484Sobrien 793960484SobrienFri Dec 3 18:33:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 794060484Sobrien 794160484Sobrien * config/obj-elf.h: If ECOFF_DEBUGGING, undef 794260484Sobrien SEPARATE_STAB_SECTIONS and INIT_STAB_SECTION, and define 794360484Sobrien OBJ_PROCESS_STAB to call ecoff_stab. 794460484Sobrien * config/obj-elf.c: Don't compile obj_elf_init_stab_section if 794560484Sobrien INIT_STAB_SECTION is not defined. 794660484Sobrien 794760484SobrienFri Dec 3 10:56:40 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 794860484Sobrien 794960484Sobrien * config/tc-hppa.c (md_apply_fix): Delete old wrapper function. 795060484Sobrien (md_apply_fix_1): Rename to md_apply_fix. Fix argument decls. 795160484Sobrien Fix comments in various places. Always return a value. 795260484Sobrien Avoid dereferencing a NULL fx_addsy. 795360484Sobrien (hppa_force_relocation): Avoid dereferencing a NULL fx_addsy. 795460484Sobrien 795560484Sobrien Fri Dec 3 09:47:30 1993 Pete Hoogenboom (hoogen@cs.utah.edu) 795660484Sobrien 795789857Sobrien * config/tc-hppa.c: (tc_gen_reloc): Addend for a plabel relocation should 795860484Sobrien be either 0 or 2 (no static link or static link required). Always 795960484Sobrien assume no static link. 796060484Sobrien 796160484SobrienThu Dec 2 11:52:21 1993 Ken Raeburn (raeburn@cygnus.com) 796260484Sobrien 796360484Sobrien * config/tc-sparc.c (tc_gen_reloc): Make adjustment to addend be 796460484Sobrien dependent on howto fields, not on format flavour. 796560484Sobrien 796660484Sobrien * struc-symbol.h (struct symbol): New fields sy_obj and sy_tc, 796760484Sobrien defined as types OBJ_SYMFIELD_TYPE and TC_SYMFIELD_TYPE, if those 796860484Sobrien macros are defined. 796960484Sobrien * config/obj-coff.h (TC_SYMFIELD_TYPE, OBJ_SYMFIELD_TYPE): Define. 797060484Sobrien (TARGET_SYMBOL_FIELDS, I960_SYM_FIELDS): Don't define. 797160484Sobrien (sy_tc, sy_obj): Define so that the fields look like they used to, 797260484Sobrien until all references get changed. 797360484Sobrien 797460484Sobrien * write.c (fixup_segment): Lots of variables no longer register. 797560484Sobrien Reordered some code for easier reading. 797660484Sobrien * config/obj-coff.c (obj_coff_dim): dim_index no longer register. 797760484Sobrien Deleted superfluous return statement. 797860484Sobrien (obj_coff_line, obj_coff_size, obj_coff_scl, obj_coff_type, 797960484Sobrien obj_coff_val, tag_init, tag_insert): Deleted superfluous return 798060484Sobrien statement. 798160484Sobrien (align, obj_coff_section): Deleted debugging printfs. 798260484Sobrien * config/tc-i386.c (md_assemble): Discard some register decls. 798360484Sobrien Use assignment rather than memcpy to copy template. 798460484Sobrien (op_hash, reg_hash, prefix_hash): Default C initialization of 798560484Sobrien statics is sufficient. 798660484Sobrien * config/tc-sparc.c (print_insn): Array Reloc is now const, and 798760484Sobrien points to const. 798860484Sobrien 798960484Sobrien * config/obj-coff.h (TARGET_FORMAT): Only use coff-sparc-lynx if 799060484Sobrien TE_LYNX; use coff-sparc otherwise. 799160484Sobrien [USE_NATIVE_HEADERS]: Delete this code; it isn't used. 799260484Sobrien 799360484Sobrien * write.c (fixup_segment): Call TC_VALIDATE_FIX, if defined, 799460484Sobrien before processing a fixup. Call TC_ADJUST_RELOC_COUNT just before 799560484Sobrien returning. Remove some i960-coff-specific code. 799660484Sobrien (TC_ADJUST_RELOC_COUNT): Default to doing nothing. 799760484Sobrien * config/tc-i960.h (TC_ADJUST_RELOC_COUNT) [OBJ_COFF]: Define. 799860484Sobrien (i960_validate_fix): Declare. 799960484Sobrien (TC_VALIDATE_FIX): Define. 800060484Sobrien * config/tc-i960.c (i960_validate_fix): New function. 800160484Sobrien 800260484Sobrien * write.c (number_to_chars_littleendian): New function. Write out 800360484Sobrien bytes in little endian order, doing size and range checking. 800460484Sobrien (number_to_chars_bigendian): New function, similar. 800560484Sobrien * write.h: Declare them. 800660484Sobrien * config/tc-*.c (md_number_to_chars): Use them. 800760484Sobrien * config/tc-vax.c (md_apply_fix): Ditto. 800860484Sobrien * config/tc-i386.c (md_apply_fix): Ditto. 800960484Sobrien 801060484Sobrien * config/obj-coff.c: Rearranged code for handling line number 801160484Sobrien data. 801260484Sobrien (line_fsym): Renamed from function_lineoff in BFD_ASSEMBLER case, 801360484Sobrien since the usage is different from non-BFD_ASSEMBLER case. 801460484Sobrien (in_function, clear_function, set_function): New macros, to 801560484Sobrien combine some of the functionality implemented in differnet ways in 801660484Sobrien BFD_ASSEMBLER and non-... code. Used in other functions that used 801760484Sobrien to check function_lineoff &c. 801860484Sobrien (obj_emit_lineno): Split into two copies, one for BFD_ASSEMBLER, 801960484Sobrien one for not. Non-BFD_ASSEMBLER version now has temporary variable 802060484Sobrien to contain char* pointer pointed to by char** argument. Always 802160484Sobrien follow CROSS_COMPILE code; easier to read that way. 802260484Sobrien (obj_coff_ln): Don't call add_lineno or c_line_new if appline is 802360484Sobrien set. 802460484Sobrien (obj_coff_endef) [BFD_ASSEMBLER]: Don't do anything special for 802560484Sobrien ".bf", it's been done elsewhere. 802660484Sobrien (coff_frob_symbol): If ilne number data is pending, call 802760484Sobrien add_linesym to flush it. 802860484Sobrien (coff_frob_file): Don't do that here. 802960484Sobrien * config/obj-coff.h (coff_frob_file): Declare. 803060484Sobrien (obj_frob_file): Define, to call it. 803160484Sobrien 803260484Sobrien * config/tc-sparc.h (md_create_short_jump, md_create_long_jump, 803360484Sobrien md_estimate_size_before_relax: Define them as macros calling 803460484Sobrien as_fatal. 803560484Sobrien * config/tc-sparc.c: Don't define them as functions. 803660484Sobrien 803760484Sobrien * configure.in: Handle target alpha-*-osf*. (No cpu files yet.) 803860484Sobrien 803960484SobrienWed Dec 1 23:37:14 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 804060484Sobrien 804160484Sobrien * Makefile (clean): Depend on clean-here. 804260484Sobrien 804360484SobrienWed Dec 1 11:35:21 1993 Ken Raeburn (raeburn@cujo.cygnus.com) 804460484Sobrien 804560484Sobrien * config/ho-go32.h: Include fopen-bin.h. 804660484Sobrien * as.h: If FOPEN_WB isn't defined, include fopen-same.h. 804760484Sobrien * output-file.c (output_file_create): Use FOPEN_WB instead of "w". 804860484Sobrien * input-file.c (input_file_open): Use FOPEN_RT instead of "r". 804960484Sobrien * listing.c (file_info): Use FOPEN_RB instead of "rb". 805060484Sobrien * read.c (s_include): Use FOPEN_RT instead of "r". 805160484Sobrien 805260484Sobrien * stabs.c: Include obstack.h. 805360484Sobrien 805460484Sobrien * tc.h (md_create_long_jump): Don't declare if it's already 805560484Sobrien defined as a macro. 805660484Sobrien (md_create_short_jump, md_estimate_size_before_relax): Ditto. 805760484Sobrien 805860484Sobrien * messages.c (as_perror) [BFD_ASSEMBLER]: Use bfd_errmsg instead 805960484Sobrien of strerror. Clear bfd_error. 806060484Sobrien 806160484Sobrien * config/te-lynx.h (LOCAL_LABELS_FB): Define, if not already 806260484Sobrien defined. 806360484Sobrien 806460484SobrienWed Dec 1 10:41:56 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 806560484Sobrien 806660484Sobrien * config/tc-hppa.c (hppa_elf_mark_end_of_function): New function. 806760484Sobrien (pa_process_exit, pa_procend): Call it for ELF objects. 806860484Sobrien 806960484SobrienWed Dec 1 12:10:41 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 807060484Sobrien 807160484Sobrien * config/tc-mips.c (macro): Subtract 8 from offset in non PIC l.d 807260484Sobrien case. See comment. From wilson@cygnus.com: for M_L_DAB, set 807360484Sobrien coproc before doing goto ld. 807460484Sobrien 807560484SobrienTue Nov 30 13:40:30 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 807660484Sobrien 807760484Sobrien * write.c (TC_FORCE_RELOCATION): Provide a default definition. 807860484Sobrien (fixup_segment): Allow the target machine to specify that a 807960484Sobrien relocation must be generated for a particular fixup. Remove 808060484Sobrien #ifndef TC_HPPA hack. 808160484Sobrien 808260484Sobrien * config/tc-hppa.h (TC_FORCE_RELOCATION): Define. 808360484Sobrien 808460484Sobrien * config/tc-hppa.c (md_apply_fix_1): Never change fx_addsy to 808560484Sobrien be NULL. Only fixup_segment is supposed to do that. 808660484Sobrien (hppa_force_relocation): New function. 808760484Sobrien 808860484SobrienTue Nov 30 11:21:41 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 808960484Sobrien 809060484Sobrien * Makefile.in (stabs.o): Added dependencies. 809160484Sobrien 809260484Sobrien * config/obj-ecoff.c (ecoff_frob_file): Don't call bfd_set_symtab. 809360484Sobrien 809460484SobrienSun Nov 28 12:11:40 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 809560484Sobrien 809660484Sobrien * app.c (do_scrub_next_char): Output a TAB before any 809760484Sobrien .app* directive. 809860484Sobrien 809960484Sobrien * config/tc-hppa.c (fix_new_hppa): Make sure a sub_symbol 810060484Sobrien exists before trying to peek at its name. 810160484Sobrien (pa_space): Do not call pa_align_subseg. See hppa/unsorted/align3.s 810260484Sobrien for testcase. 810360484Sobrien (pa_align_subseg): Delete unused/unwanted function. 810460484Sobrien 810560484SobrienSat Nov 27 22:49:07 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 810660484Sobrien 810760484Sobrien * read.c (read_a_source_file): Fix test for when to stick a colon 810860484Sobrien on the end of a label. Make code conditional on either MRI or 810960484Sobrien LABELS_WITHOUT_COLONS. 811060484Sobrien 811160484Sobrien * app.c (do_scrub_next_char): If a line begins with whitespace, leave 811260484Sobrien the single whitespace character alone. Eat all others. 811360484Sobrien 811460484Sobrien * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define. 811560484Sobrien 811660484SobrienWed Nov 24 01:22:54 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 811760484Sobrien 811860484Sobrien * config/tc-hppa.c (pa_procend): Do not call process_exit. 811960484Sobrien (exit_processing_complete): Delete unwanted variable and all 812060484Sobrien references. 812160484Sobrien 812260484SobrienWed Nov 24 02:31:38 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 812360484Sobrien 812460484Sobrien * ecoff.c (ecoff_setup_ext): Renamed from ecoff_build_ext. 812560484Sobrien Changed to not actually build the external symbol information, as 812660484Sobrien that is now done by the ECOFF back end. 812760484Sobrien (ecoff_build_debug): Changed accordingly. 812860484Sobrien * ecoff.h (obj_ecoff_set_ext): Declare. obj-format.c function 812960484Sobrien called by ecoff_setup_ext. 813060484Sobrien * config/obj-ecoff.c (ecoff_frob_file): If debug_info count is 0, 813160484Sobrien set corresponding pointer to NULL. Don't set raw_size and 813260484Sobrien raw_syments. 813360484Sobrien (obj_ecoff_set_sym_index): Removed. 813460484Sobrien (obj_ecoff_set_ext): New function. 813560484Sobrien * config/obj-ecoff.h (obj_set_sym_index): Don't define. 813660484Sobrien (obj_ecoff_set_sym_index): Don't declare. 813760484Sobrien * config/obj-elf.c (obj_ecoff_set_ext, elf_get_extr, 813860484Sobrien elf_set_index): New functions used for ECOFF_DEBUGGING. 813960484Sobrien (elf_frob_file): Reworked ECOFF debug generation to use 814060484Sobrien new functions in bfd/ecofflink.c. 814160484Sobrien 814260484SobrienSun Nov 21 23:54:52 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 814360484Sobrien 814460484Sobrien * config/tc-hppa.c (pa_def_subspaces): Only create the unwind 814560484Sobrien subspace for ELF. In the SOM world, the linker is responsible 814660484Sobrien for creating the unwind subspaces. 814760484Sobrien 814860484SobrienFri Nov 19 16:25:09 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 814960484Sobrien 815060484Sobrien * config/obj-coffbfd.c: Use PARAMS rather than EXFUN. 815160484Sobrien (yank_symbols): Don't call S_SET_EXTERNAL if the storage class is 815260484Sobrien already set. Fixes .def var; .val external_var; .scl 3; .endef. 815360484Sobrien (adjust_stab_section): Make static. Declare return type. Remove 815460484Sobrien unused variables. 815560484Sobrien 815660484Sobrien * config/tc-i386.h: Declare tc_coff_fix2rtype and 815760484Sobrien tc_coff_sizemachdep. 815860484Sobrien 815960484SobrienFri Nov 19 04:33:59 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 816060484Sobrien 816160484Sobrien * write.c (write_object_file): Disable obj_check_file_symbols 816260484Sobrien hook; only back end using it wasn't using it correctly. 816360484Sobrien (write_object_file): Always call obj_frob_symbol and 816460484Sobrien tc_frob_symbol; always retain symbol if it's used by a relocation, 816560484Sobrien regardless of what these routines indicate. 816660484Sobrien * config/obj-coff.c (coff_frob_symbol): Renamed from 816760484Sobrien coff_check_file_symbols. 816860484Sobrien * config/obj-coff.h (obj_check_file_symbols): Deleted. 816960484Sobrien (coff_frob_symbol): Declare. 817060484Sobrien (obj_frob_symbol): Call it. 817160484Sobrien 817260484Sobrien * config/obj-coff.c (obj_crawl_symbol_chain, obj_emit_strings, 817360484Sobrien obj_pre_write_hook): Don't define for BFD_ASSEMBLER. 817460484Sobrien (c_section_header): Ditto. Delete superfluous return at end of 817560484Sobrien function. 817660484Sobrien 817760484Sobrien * config/obj-coff.h [TC_SPARC]: Include coff/sparc.h, and specify 817860484Sobrien coff-sparc-lynx. 817960484Sobrien (SA_GET_SYM_TAGNDX): Use BFD_HEADERS version for BFD_ASSEMBLER 818060484Sobrien too. 818160484Sobrien (c_section_header): Rewrite prototype so that it contains no 818260484Sobrien preprocessing directives. Don't declare it at all if 818360484Sobrien BFD_ASSEMBLER. 818460484Sobrien 818560484Sobrien * configure.in (sparc*-*-lynxos): New target, using coff and 818660484Sobrien BFD_ASSEMBLER. 818760484Sobrien 818860484Sobrien * stabs.c: New file. 818960484Sobrien * Makefile.in (REAL_SOURCES, OBJS): List it. 819060484Sobrien * read.c (STAB_SECTION_NAME, STAB_STRING_SECTION_NAME, 819160484Sobrien get_stab_string_offset, s_stab_generic, s_stab, s_xstab, s_desc): 819260484Sobrien Moved to new file. 819360484Sobrien 819460484Sobrien * config/tc-sparc.c (tc_gen_reloc): Handle coff files like elf 819560484Sobrien files. 819660484Sobrien 819760484SobrienWed Nov 17 17:23:53 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 819860484Sobrien 819960484Sobrien * configure.in (mips-*-irix5*): New target. Use elf and mips-big. 820060484Sobrien * config/obj-elf.c: If ECOFF_DEBUGGING, include ecoff.h. 820160484Sobrien (obj_pseudo_table): If ECOFF_DEBUGGING, define ECOFF 820260484Sobrien pseudo-ops. 820360484Sobrien (obj_read_begin_hook): If ECOFF_DEBUGGING, call 820460484Sobrien ecoff_read_begin_hook. 820560484Sobrien (obj_symbol_new_hook): If ECOFF_DEBUGGING, call 820660484Sobrien ecoff_symbol_new_hook. 820760484Sobrien (obj_elf_init_stab_section): Cast alloca result. 820860484Sobrien (elf_frob_file): If ECOFF_DEBUGGING, finish up ECOFF debugging 820960484Sobrien information and write it out into .mdebug section. 821060484Sobrien * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): New macro. 821160484Sobrien (TARGET_SYMBOL_FIELDS): Use ELF_TARGET_SYMBOL_FIELDS. 821260484Sobrien (ECOFF_DEBUGGING): Define if TC_MIPS. 821360484Sobrien (TARGET_SYMBOL_FIELDS): If ECOFF_DEBUGGING, override to add 821460484Sobrien fields required by ECOFF. 821560484Sobrien * config/tc-mips.c: Check ECOFF_DEBUGGING rather than 821660484Sobrien OBJ_ECOFF in many cases. 821760484Sobrien (mips_any_noreorder): New variable. 821860484Sobrien (mips_cprestore_offset): Initialize to -1. 821960484Sobrien (mips_frame_reg): New variable. 822060484Sobrien (RELAX_ENCODE, RELAX_OLD, RELAX_NEW, RELAX_RELOC1, 822160484Sobrien RELAX_RELOC2, RELAX_RELOC3, RELAX_WARN): New macros. 822260484Sobrien (md_pseudo_table): Handle "gpword" and "cpadd". 822360484Sobrien (md_begin): Initialize ok to false. If OBJ_ELF, set alignment 822460484Sobrien of text, data and bss sections to 4. Set alignment of 822560484Sobrien .reginfo section to 2. If ECOFF_DEBUGGING, create .mdebug 822660484Sobrien section. 822760484Sobrien (ALIGN_ERR, ALIGN_ERR2): Removed unused and useless alignment 822860484Sobrien check. 822960484Sobrien (append_insn, macro_build, macro_build_lui): Take place 823060484Sobrien argument. Changed all callers. 823160484Sobrien (append_insn): If appending a nop, don't emit one. 823260484Sobrien (macro_build): Changed assertion for 'i', 'j', 'o' case. 823360484Sobrien (gp_reference): Removed. 823460484Sobrien (load_address): New function. 823560484Sobrien (macro): If mips_noreorder is used, set mips_any_noreorder. 823660484Sobrien Extensive changes to handle GP and PIC symbols differently. 823760484Sobrien Build both possible code choices using a variant frag, and 823860484Sobrien make a final decision at the end of assembly when all 823960484Sobrien information is known. Added PIC support for all symbol 824060484Sobrien references. 824160484Sobrien (mips_ip): Don't permit anything but a number after $ for a 824260484Sobrien coprocessor register. Don't use .lit4 or .lit8 sections when 824360484Sobrien generating PIC code. If OBJ_ELF, set alignment of .lit4 or 824460484Sobrien .lit8 section to 4. 824560484Sobrien (md_apply_fix): Accept and ignore GOT16 and GPREL32 relocs. 824660484Sobrien (s_change_sec): Set alignment of ELF .rodata or .sdata section 824760484Sobrien to 4. 824860484Sobrien (s_mipsset): If .set noreorder, set mips_any_noreorder. 824960484Sobrien (s_cpload): Ignore .cpload if not generating PIC code. Warn 825060484Sobrien if .cpload is not in noreorder section. 825160484Sobrien (s_cprestore): Ignore .cprestore if not generating PIC code. 825260484Sobrien (s_gpword, s_cpadd): New functions. 825360484Sobrien (tc_get_register): Added frame argument; if true, set 825460484Sobrien mips_frame_reg to return value. Changed all callers. 825560484Sobrien (md_estimate_size_before_relax): Don't error out, but instead 825660484Sobrien determine how much a frag should grow. 825760484Sobrien (tc_gen_reloc): Return multiple relocs if appropriate, as 825860484Sobrien determined by md_estimate_size_before_relax. 825960484Sobrien (md_convert_frag): New function. 826060484Sobrien (mips_elf_final_processing): Set ELF header flags based on 826160484Sobrien mips_any_noreorder and mips_pic. 826260484Sobrien * config/tc-mips.h (RELOC_EXPANSION_POSSIBLE): Define. 826360484Sobrien (MAX_RELOC_EXPANSION): Define to be 3. 826460484Sobrien (md_relax_frag): Define to be 0. 826560484Sobrien (md_convert_frag): Don't define. 826660484Sobrien (tc_get_register): Changed declaration. 826760484Sobrien 826860484Sobrien * ecoff.h, ecoff.c: New files pulled out of config/obj-ecoff.c to 826960484Sobrien support generating ECOFF debugging information for MIPS ELF 827060484Sobrien targets. Compiled only if ECOFF_DEBUGGING is defined. Changed 827160484Sobrien handling of external symbols: it now always generates exactly 827260484Sobrien those external symbols that are defined in the global symbol list. 827360484Sobrien * Makefile.in (REAL_SOURCES): Added ecoff.c. 827460484Sobrien (REAL_HEADERS): Added ecoff.h. 827560484Sobrien (OBJS): Added ecoff.o. 827660484Sobrien (ecoff.o): New target. 827760484Sobrien * config/obj-ecoff.c: Almost entirely moved into ecoff.c. 827860484Sobrien Remaining code mostly just calls ecoff.c code. 827960484Sobrien * config/obj-ecoff.h: Define ECOFF_DEBUGGING. 828060484Sobrien (TARGET_SYMBOL_FIELDS): Make ecoff_symbol a pointer to a 828160484Sobrien struct localsym. 828260484Sobrien (obj_read_begin_hook, obj_symbol_new_hook): Define to call 828360484Sobrien functions in ecoff.c. 828460484Sobrien (ecoff_stab): Don't declare (now declared in ecoff.h). 828560484Sobrien (obj_set_sym_index): Define. 828660484Sobrien (obj_ecoff_set_sym_index): Declare. 828760484Sobrien 828860484Sobrien * frags.h (frag_grow): Declare. 828960484Sobrien * frags.c (frag_grow): Made non-static. 829060484Sobrien 829160484Sobrien * write.c (is_dnrange): Do not define if md_relax_frag is defined. 829260484Sobrien (relax_segment): If md_relax_frag is defined, use it to handle a 829360484Sobrien frag of type rs_machine_dependent rather than looking through 829460484Sobrien md_relax_table. 829560484Sobrien 829660484Sobrien * read.c (read_a_source_file): If we find a bad pseudo-op, 829760484Sobrien do a continue to go on to the next line rather than a break. 829860484Sobrien Removed duplicate bad pseudo-op code which was never executed. 829960484Sobrien 830060484Sobrien * read.c (s_lcomm): Do not require a comma after the name. 830160484Sobrien 830260484Sobrien * subsegs.h (segment_info_type): Changed hadone field to bitfield. 830360484Sobrien Added bss bitfield. 830460484Sobrien * as.c (perform_an_assembly_pass): Set bss flag for bss_section. 830560484Sobrien * read.c (s_lcomm): Set bss flag for .sbss section if used. 830660484Sobrien * write.c (relax_and_size_seg): Don't set SEC_HAS_CONTENTS for a 830760484Sobrien bss section. Set SEC_RELOC if there are any relocations, even for 830860484Sobrien a zero size section. 830960484Sobrien 831060484Sobrien * write.c (write_relocs): In RELOC_EXPANSION_POSSIBLE case, base 831160484Sobrien data offset on reloc[0]->address rather than reloc[j]->address, so 831260484Sobrien that multiple relocs can affect different memory locations. 831360484Sobrien 831460484Sobrien * write.c (chain_frchains_together, relax_and_size_seg, 831560484Sobrien adjust_reloc_syms, write_relocs): Make third argument PTR, not 831660484Sobrien char *, to match definition of bfd_map_over_sections. 831760484Sobrien 831860484Sobrien * app.c (do_scrub_next_char): Don't interpret a comment character 831960484Sobrien as starting a CPP line directive unless it is a '#' and is the 832060484Sobrien very first characters on the line (i.e., do not permit leading 832160484Sobrien whitespace). 832260484Sobrien 832360484Sobrien * messages.c (identify): Make file argument non-const, to match 832460484Sobrien callers. 832560484Sobrien 832660484SobrienTue Nov 16 20:38:21 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 832760484Sobrien 832860484Sobrien * config/tc-hppa.c (pa_ip): Fix thinko in 21bit range check. 832960484Sobrien 833060484SobrienSat Nov 13 18:22:48 1993 Steve Chamberlain (sac@jonny.cygnus.com) 833160484Sobrien 833260484Sobrien * config/tc-sh.c (md_apply_fix): Cope with IMM16 type too. 833360484Sobrien * config/tc-z8k.c (build_bytes, md_apply_fix): Understand nDISP7 833460484Sobrien relocs. 833560484Sobrien 833660484SobrienFri Nov 12 16:51:47 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 833760484Sobrien 833860484Sobrien * config/tc-hppa.[ch]: Fix assorted trivial indention problems. 833960484Sobrien * config/obj-som.c (obj_som_version): Add missing ';'. 834060484Sobrien (som_frob_file): Delete whitespace at EOL. 834160484Sobrien 834260484SobrienFri Nov 12 15:26:21 1993 Ken Raeburn (raeburn@cygnus.com) 834360484Sobrien 834460484Sobrien * Makefile.in (VERSION): Updated following 2.2 release. 834560484Sobrien 834660484SobrienFri Nov 12 14:52:17 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 834760484Sobrien 834860484Sobrien * config/tc-hppa.c (hppa_fix_struct): Use a real type for the 834960484Sobrien field selector, rather than an int. All uses of field selectors 835060484Sobrien fixed. 835160484Sobrien (tc_gen_reloc): For SOM PLABELs, always set addend to zero for now. 835260484Sobrien (md_apply_fix_1): Do not call hppa_field_adjust for any PLABEL 835360484Sobrien field. 835460484Sobrien 835560484Sobrien Thu Nov 11 15:49:08 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 835660484Sobrien 835760484Sobrien * config/tc-hppa.c (pa_type_args): For .import statements, 835860484Sobrien silently ignore attempt to change the symbol type for a function 835960484Sobrien from ST_ENTRY to ST_CODE on .import. 836060484Sobrien 836160484SobrienWed Nov 10 16:19:13 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 836260484Sobrien 836360484Sobrien * write.h (fixS): Rename fx_callj field to fx_tcbit. 836460484Sobrien * write.c, config/obj-coff.c, config/obj-coffbfd.c, 836560484Sobrien config/tc-i960.c: Corresponding changes. 836660484Sobrien 836760484SobrienTue Nov 9 00:49:01 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 836860484Sobrien 836960484Sobrien * Makefile.in (distclean): Delete config-stamp and config.h 837060484Sobrien 837160484Sobrien * config/tc-hppa.c (evaluate_absolute): Avoid relying on 837260484Sobrien ANSI-C features. 837360484Sobrien 837460484Sobrien * config/tc-hppa.c (pa_type_args): Renamed from pa_export_args. 837560484Sobrien Accept new argument "is_export". All callers changed. When 837660484Sobrien processing a .export directive for a function, do not allow 837760484Sobrien the user to set the type to "CODE", instead warn and set the 837860484Sobrien type to "ENTRY". 837960484Sobrien 838060484SobrienMon Nov 8 12:05:07 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 838160484Sobrien 838260484Sobrien * config/tc-mips.c (mips_ip, printInsn): Handle 'k' (from Ted 838360484Sobrien Lemon <mellon@pepper.ncd.com>). 838460484Sobrien (mips_ip): Permit odd numbered floating point registers if -mips3. 838560484Sobrien (macro): Use BFD_RELOC_MIPS_LITERAL relocation for M_LI_SS. 838660484Sobrien 838760484SobrienMon Nov 8 07:45:01 1993 Doug Evans (dje@canuck.cygnus.com) 838860484Sobrien 838960484Sobrien * configure.in: Remove h8300h, we have multilib now. 839060484Sobrien 839160484SobrienMon Nov 8 06:09:18 1993 D. V. Henkel-Wallace (gumby@cirdan.cygnus.com) 839260484Sobrien 839360484Sobrien * configure.in: Support generic netware as being ELF format. 839460484Sobrien Recognise unixware if the user supplies it. 839560484Sobrien 839660484SobrienSun Nov 7 01:02:08 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 839760484Sobrien 839860484Sobrien * First cut at cleaning up PA instruction parsing. 839960484Sobrien * config/tc-hppa.c (pa_get_absolute_expression): Accept pointer to 840060484Sobrien insn structure as an argument, and a pointer to a string. All 840160484Sobrien callers changed. Always read any field selector here. Call 840260484Sobrien evaluate absolute to get a return value. 840360484Sobrien (evaluate_absolute): Addept pointer to insn structure as its 840460484Sobrien argument. All callers changed. 840560484Sobrien (INSERT_FIELD_AND_CONTINUE): New macro for inserting a bitfield 840660484Sobrien into an instruction and continuing the main pa_ip loop. 840760484Sobrien (CHECK_FIELD): New macro for simple range checking of fields. 840860484Sobrien (pa_ip): Delete unused variables. Use INSERT_FIELD_AND_CONTINUE 840960484Sobrien and CHECK_FIELD. All immediate fields now pass through 841060484Sobrien pa_get_absolute_expression which will also handle field selectors. 841160484Sobrien Delete dead code. Simplify. 841260484Sobrien (md_apply_fix_1): Use CHECK_FIELD to verify any fixes that are 841360484Sobrien applied are in range. Use bfd_put_32 rather than inserting each 841460484Sobrien byte of the fixed instrution into the buffer ourselves. 841560484Sobrien 841660484Sobrien * write.c (fixup_segment): Delete {SEG,GLOBAL}_DIFF_ALLOWED code, 841760484Sobrien it was PA specific and is no longer needed (it's now handled 841860484Sobrien within the PA backend). 841960484Sobrien * config/tc-hppa.h (SEG_DIFF_ALLOWED): Delete definition. 842060484Sobrien * config/tc-hppa.c (fix_new_hppa): If the subtract symbol for 842160484Sobrien a fixup is $global$ change it to NULL as $global$ is really only 842260484Sobrien needed long enough to determine the base type of relocation to use. 842360484Sobrien 842460484Sobrien * config/tc-hppa.c (create_new_subspace): Initialize subspace_defined. 842560484Sobrien 842660484Sobrien * config/tc-hppa.c (pa-ip, case 'z'): Make field selectors work 842760484Sobrien for 'z' operands (target of ble branch). 842860484Sobrien 842960484SobrienSat Nov 6 22:41:57 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 843060484Sobrien 843160484Sobrien * config/tc-hppa.c: (update_subspace): Fix type and name of last 843260484Sobrien parameter. All callers fixed. 843360484Sobrien (md_begin, pa_chk_field_selector, pa_entry): Lint. 843460484Sobrien 843560484Sobrien * config/tc-hppa.c (cons_fix_new_hppa): Reset field selector 843660484Sobrien to default state after it's been used. 843760484Sobrien 843860484SobrienFri Nov 5 12:08:21 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 843960484Sobrien 844060484Sobrien * config/obj-som.c (obj_som_init_stab_section): Change 844160484Sobrien space/subspace sort keys for the stab sections so as to avoid 844260484Sobrien bugs in the hp linker and pxdb. 844360484Sobrien 844460484SobrienThu Nov 4 17:00:05 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 844560484Sobrien 844660484Sobrien * write.c (chain_frchains_together): Update pointer to last 844760484Sobrien frag for a segment in the seginfo structure. 844860484Sobrien 844960484SobrienThu Nov 04 09:09:35 1993 Jeffrey Wheat (cassidy@cygnus.com) 845060484Sobrien 845160484Sobrien * Makefile.in: Changed RUNTESTFLAGS to RUNTEST_FLAGS 845260484Sobrien 845360484SobrienWed Nov 3 12:16:27 1993 Ken Raeburn (raeburn@rover.cygnus.com) 845460484Sobrien 845560484Sobrien * write.c (fixup_segment): Handle conversion of subtraction to 845660484Sobrien pc-relative addressing even if pc-relative flag is already set. 845760484Sobrien 845860484Sobrien * config/tc-m68k.c (m68k_ip_op): Use strchr, not index. Don't 845960484Sobrien declare either. 846060484Sobrien 846160484Sobrien * doc/Makefile.in (distclean): Delete intermediate files from dvi 846260484Sobrien build, but not the dvi or info files. 846360484Sobrien * Makefile.in (clean-here): New target; cleans up current 846460484Sobrien directory only. 846560484Sobrien (distclean): Use it instead of clean. 846660484Sobrien 846760484Sobrien * read.c (s_xstab): Don't use alloca. 846860484Sobrien 846960484Sobrien * messages.c (identify): New routine; print message identifying 847060484Sobrien following messages as coming from assembler. 847160484Sobrien (as_show_where, as_bad_internal, as_bad_where): Call it. 847260484Sobrien (as_fatal): Don't need to identify program any more. 847360484Sobrien 847460484SobrienTue Nov 2 18:04:11 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 847560484Sobrien 847660484Sobrien * config/tc-sparc.c (sparc_ip): Add default case to reloc switch. 847760484Sobrien 847860484Sobrien * read.c (s_lcomm): Put small objects in .sbss for MIPS ELF as 847960484Sobrien well as MIPS ECOFF. 848060484Sobrien (get_stab_string_offset): Remove unused variable aligned. 848160484Sobrien 848260484SobrienTue Nov 2 15:07:07 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 848360484Sobrien 848489857Sobrien * config/tc-hppa.c: Add %dp and %rp as synonyms for %r27 and %r2 in the 848560484Sobrien predefined register table. 848660484Sobrien (pa_parse_number): Handle %rp in common register shortcut code. 848760484Sobrien Consistently set return value to -1 for an error. Clean up error 848860484Sobrien messages and only print them when "print_errors" is true. Handle 848960484Sobrien empty string case like the HP assembler -- assume a value of 849060484Sobrien zero. 849160484Sobrien 849260484Sobrien * config/ho-hpux.h: Do not include ho-sysv.h. Instead include 849360484Sobrien standard hpux include files to pick up various function decls. 849460484Sobrien 849560484Sobrien * config/ho-hppaosf.h: Delete _IO* macros. They are defined in 849660484Sobrien stdio.h. Delete bogus declaration of free. Get path to 849760484Sobrien alloca-conf.h right. 849860484Sobrien 849960484SobrienTue Nov 2 13:57:30 1993 Ken Raeburn (raeburn@rover.cygnus.com) 850060484Sobrien 850160484Sobrien * expr.c (operand): Fix checks for characters following "0b" or 850260484Sobrien "0f". 850360484Sobrien 850460484SobrienMon Nov 1 21:37:04 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 850560484Sobrien 850660484Sobrien * config/obj-som.h (obj_attach_unwind_info): Define as a hook 850760484Sobrien so GAS can attach unwind descriptor information to a BFD symbol. 850860484Sobrien * config/tc-hppa.c (fix_new_hppa): If necessary attach unwind 850960484Sobrien descriptor information to the BFD symbol. 851060484Sobrien (md_apply_fix): R_HPPA_ENTRY and R_HPPA_EXIT can never be "applied", 851160484Sobrien they are simply markers. Make R_HPPA_UNWIND_* handling OBJ_ELF 851260484Sobrien dependent. 851360484Sobrien (pa_build_unwind_subspace): Whole function is OBJ_ELF dependent. 851460484Sobrien (pa_entry): Build a R_HPPA_ENTRY relocation when configured for SOM. 851560484Sobrien (pa_exit): Likewise, but built a R_HPPA_EXIT relocation. Do not 851660484Sobrien build "end-of-function" symbols for SOM, they are not needed. 851760484Sobrien 851860484Sobrien * config/tc-hppa.c (process_exit): Create temporary symbols with 851960484Sobrien correct prefixes so they can be eliminated later. 852060484Sobrien 852160484Sobrien * config/tc-hppa.c (call_info struct): Delete unused "frame" field. 852260484Sobrien (pa_callinfo): Insert framesize into the unwind information as 852360484Sobrien soon as it's available. 852460484Sobrien (pa_build_unwind_subspace): Do not insert framesize into the unwind 852560484Sobrien information here. 852660484Sobrien 852760484Sobrien * Add support for marker type relocations. These mark areas 852860484Sobrien of interest to the linker. ENTRY/EXIT relocations for SOM are 852960484Sobrien an example of marker relocations. 853060484Sobrien * write.c (write_relocs): Instead of assuming size of a relocation 853160484Sobrien is 4 bytes, pick up the size from relocation itself. 853260484Sobrien (fixup_segment): Do not complain that a value is too small for 853360484Sobrien marker relocations. 853460484Sobrien 853560484Sobrien * struc-symbol.h: Add new "sy_used" field to the symbol structure. 853660484Sobrien * expr.c (operand): Set sy_used for any symbol used as an operand. 853760484Sobrien (expr): Likewise for any symbol used in an expression. 853860484Sobrien * config/tc-hppa.h (tc_frob_symbol): Define. Punt imported 853960484Sobrien symbols which are never used and absolute symbols which local scope. 854060484Sobrien 854160484Sobrien * config/obj-som.h (obj_frob_file): Define. 854260484Sobrien * config/obj-som.c (obj_som_init_stab_section): Set alignment 854360484Sobrien of stab sections. Make space for the special stab entry. 854460484Sobrien (adjust_stab_sections): Adjust the special entry in the 854560484Sobrien stabs section. 854660484Sobrien (som_frob_file): New function. Simply calls adjust_stab_sections 854760484Sobrien for each section. 854860484Sobrien 854960484SobrienMon Nov 1 17:54:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 855060484Sobrien 855160484Sobrien * config/tc-mips.c (PIC_CALL_REG, SP, FP): Define. 855260484Sobrien (mips_pic, mips_cprestore_offset): New static variables. 855360484Sobrien (md_pseudo_table): Handle .abicalls, .cpload, and .cprestore. 855460484Sobrien Ignore .bgnb and .endb. 855560484Sobrien (gp_reference): _gp_disp is never addressed off GP. 855660484Sobrien (macro_build): Ignore macros while searching for insn. For cases 855760484Sobrien i, j, and o, accept the reloc type as an argument rather than 855860484Sobrien assuming BFD_RELOC_LO16. Don't try to convert BFD_RELOC_LO16 to 855960484Sobrien BFD_RELOC_MIPS_GPREL. Added new case a. 856060484Sobrien (set_at, load_register, macro): Changed calls to macro_build to 856160484Sobrien pass new argument for i, j and o cases. 856260484Sobrien (macro): Handle M_JAL_1, M_JAL_2 and M_JAL_A. These require 856360484Sobrien special handling when generating SVR4 PIC code. 856460484Sobrien (mips_ip, tc_get_register, s_frame): Use macros FP, SP, GP and AT 856560484Sobrien rather than hard coded constants. 856660484Sobrien (md_apply_fix): Handle BFD_RELOC_MIPS_LITERAL and 856760484Sobrien BFD_RELOC_MIPS_CALL16. 856860484Sobrien (s_option): Set mips_pic based on .option picN. 856960484Sobrien (s_abicalls): New function; set mips_pic to 2. 857060484Sobrien (s_cpload): New function; handle .cpload. 857160484Sobrien (s_cprestore): New function; handle .cprestore. 857260484Sobrien 857360484Sobrien * config/obj-ecoff.c (obj_pseudo_table): Add entries for .bgnb, 857460484Sobrien .endb and .verstamp, setting them to s_ignore. 857560484Sobrien 857660484SobrienSun Oct 31 00:36:40 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 857760484Sobrien 857860484Sobrien * config/tc-hppa.c (subspace_dictionary_chain): Add new ssd_defined 857960484Sobrien field. Define SUBSPACE_DEFINED accessor macro. 858060484Sobrien (pa_subspace): Allow user to override subspace attributes for 858160484Sobrien built-in subspaces. Set ssd_defined at the end of fcn -- that 858260484Sobrien way the attributes can only be changed once. Pass newly allocated 858360484Sobrien name to is_defined_subspace, not a pointer to the input line. 858460484Sobrien Fix typo in space/subspace rework. 858560484Sobrien (is_defined_subspace): Delete unused 2nd arg. All callers changed. 858660484Sobrien 858760484Sobrien * config/tc-hppa.c (pa_import): If currently in the text segment 858860484Sobrien and a symbol is imported without type information, set BSF_FUNCTION 858960484Sobrien for the symbol. 859060484Sobrien * write.c (relax_and_size_seg): Correct test to determine if 859160484Sobrien the section's size was rounded up. 859260484Sobrien 859360484Sobrien * config/obj-som.h (obj_set_symbol_type): Define a hook so GAS 859460484Sobrien can properly set all the SOM symbol types. 859560484Sobrien * config/tc-hppa.c (pa_symbol_type): New enum to represent the 859660484Sobrien symbol types which can be set from an IMPORT/EXPORT statement. 859760484Sobrien (pa_export_args): Set the pa_symbol_type type based on arguments. 859860484Sobrien If defined, call obj_set_symbol_type to pass this information on 859960484Sobrien to the BFD backend. 860060484Sobrien 860160484Sobrien * read.c (get_stab_string_offset): Set SEC_DEBUGGING for any 860260484Sobrien stab section we make. 860360484Sobrien (s_stab_generic): Likewise. 860460484Sobrien 860560484SobrienSat Oct 30 14:26:20 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 860660484Sobrien 860760484Sobrien * Allow backends to override the value of the fake label. 860860484Sobrien * write.h (LOCAL_LABEL): Delete DOT_LABEL_PREFIX code. Instead 860960484Sobrien assume backends will define LOCAL_LABEL if anything other than 861060484Sobrien 'L' is used to denote a local label. 861160484Sobrien (FAKE_LABEL_NAME): New macro. Defines the default name used for 861260484Sobrien the "fake" label. 861360484Sobrien * expr.c (make_expr_symbol): Delete DOT_LABEL_PREFIX code 861460484Sobrien and instead simply use the string defined by FAKE_LABEL_NAME. 861560484Sobrien (operand): Likewise. 861660484Sobrien * read.c (s_stab_generic): Likewise. 861760484Sobrien * config/tc-hppa.h (FAKE_LABEL_NAME): Define as L$0\001 so it's 861860484Sobrien known to be a local label. 861960484Sobrien * config/tc-i386.h (DOT_LABEL_PREFIX): Delete. 862060484Sobrien (LOCAL_LABEL, FAKE_LABEL_NAME): Define. 862160484Sobrien * config/tc-m68k.h (DOT_LABEL_PREFIX): Delete. 862260484Sobrien (LOCAL_LABEL, FAKE_LABEL_NAME): Define. 862360484Sobrien * config/te-sco386.h (DOT_LABEL_PREFIX): Delete. 862460484Sobrien (LOCAL_LABEL, FAKE_LABEL_NAME): Define. 862560484Sobrien 862660484Sobrien Rework space/subspace handling in PA code to fully support 862760484Sobrien SOM spaces/subspaces. 862860484Sobrien * config/tc-hppa.c (USE_ALIASES): New object-format dependent define 862960484Sobrien to control the use of space/subspace name aliases. 863060484Sobrien (update_subspace): Accept space chain entry for containing space 863160484Sobrien as a new parameter. All callers changed. 863260484Sobrien (pa_get_label): Use current_space rather than pa_segment_to_space. 863360484Sobrien (pa_define_label): Likewise. 863460484Sobrien (pa_undefine_label): Likewise. 863560484Sobrien (md_begin): Change into the (possibly modified) text_section. 863660484Sobrien (pa_parse_space_stmt): Create a new segment/space if create_flag 863760484Sobrien is true, and the space name is not one of the two predefined spaces. 863860484Sobrien (pa_subspace): Use current_space rather than a lookup via 863960484Sobrien pa_segment_to_space. Reset BFD section flags as required by 864060484Sobrien the .subspace directive. Likewise for the section alignment. 864160484Sobrien Pass the current space to update_subspace and create_new_subspace. 864260484Sobrien (pa_spaces_begin): Only use space/subspace aliases if USE_ALIASES 864360484Sobrien is true. When not using aliases, create a BFD section for each 864460484Sobrien subspace encountered. When not using aliases replace the default 864560484Sobrien text, data, and bss segments with new ones. 864660484Sobrien (create_new_subspace): When not using aliases each subspace has a 864760484Sobrien section/segment and subsegments are not needed, so set the subsegment 864860484Sobrien to zero. 864960484Sobrien 865060484Sobrien * config/tc-hppa.c (pa_parse_space_stmt): If needed, call 865160484Sobrien obj_set_section_attributes to pass space attributes to the 865260484Sobrien BFD backend. 865360484Sobrien (create_new_space): Likewise. 865460484Sobrien (create_new_subspace): Likewise for subspace attributes using 865560484Sobrien obj_set_subsection_attributes. 865660484Sobrien (update_subspace): Likewise for subspace attributes using 865760484Sobrien obj_set_subsection_attributes. 865860484Sobrien 865960484Sobrien * config/tc-hppa.c (pa_parse_space_stmt): Get segment and sort key 866060484Sobrien for $TEXT$ and $PRIVATE$ from the default space structure. 866160484Sobrien 866260484Sobrien * config/tc-hppa.c (pa_export_args): Always set BSF_FUNCTION 866360484Sobrien as appropriate for the given type. 866460484Sobrien 866560484Sobrien * config/tc-hppa.c (tc_gen_reloc): Preliminary stab at handling 866660484Sobrien SOM relocations. 866760484Sobrien 866860484Sobrien * config/tc-hppa.c (pa_comm): Delete incorrect check for symbol 866960484Sobrien redefinition. 867060484Sobrien 867160484Sobrien * config/obj-som.[ch]: New files for SOM support. Note SOM 867260484Sobrien support is not yet complete in GAS or BFD. 867360484Sobrien 867460484Sobrien * config/ho-hppabsd.h: Delete IO* macros, they are defined in 867560484Sobrien stdio.h. Delete declaration of free. Include stdlib.h, unistd.h, 867660484Sobrien and string.h. 867760484Sobrien 867860484SobrienFri Oct 29 13:26:12 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 867960484Sobrien 868060484Sobrien * Allow backends to override the section names used for embedded 868160484Sobrien stabs support. Needed for SOM. 868260484Sobrien * read.c (STAB_SECTION_NAME): Default the name of the stab section 868360484Sobrien to ".stab". 868460484Sobrien (STAB_STRING_SECTION_NAME): Likewise for the stab strings section. 868560484Sobrien (get_stab_string_offset): Is now passed the full name for the 868660484Sobrien stab string section rather than a name prefix. All references 868760484Sobrien changed. 868860484Sobrien (s_stab_generic): New argument for the stab string section name. 868960484Sobrien all references changed. 869060484Sobrien (s_xstab): Append "str" to the stab section name to get the 869160484Sobrien stab string section name. 869260484Sobrien * config/obj-coffbfd.c (obj_coff_init_stab_section): Append "str" 869360484Sobrien to stab section name to get the stab string section name. Pass 869460484Sobrien the full name of the stab string section to get_stab_string_offset. 869560484Sobrien * config/obj-elf.c (obj_elf_init_stab_section): Likewise. 869660484Sobrien 869760484Sobrien * config/tc-hppa.c (md_begin): Disable "-R" option to fold 869860484Sobrien textand data segments. Warn user "-R" is unsupported on the 869960484Sobrien PA. 870060484Sobrien 870160484SobrienThu Oct 28 12:36:13 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 870260484Sobrien 870360484Sobrien * config/tc-hppa.c (md_pseudo_table): Default alignment is 8 for 870460484Sobrien .align and .ALIGN directives. 870560484Sobrien 870660484Sobrien * config/tc-hppa.c (pa_space): Do not report an error for a .space 870760484Sobrien directive which does not define a "well-known" space and does 870860484Sobrien not include a space number as an argument. 870960484Sobrien 871060484Sobrien * config/tc-hppa.c (pa_def_subspaces): Correct initialization of the 871160484Sobrien "defined", "loadable", "code_only" and "space_index" fields. 871260484Sobrien (pa_def_spaces): Correct initialization of the "spnum", "defined", 871360484Sobrien and "private" fields. 871460484Sobrien 871560484Sobrien * write.h (struct fix): Add new tc_fix_data field for the various 871660484Sobrien backends to attach machine dependent fixup information to. 871760484Sobrien * write.c (fix_new_internal): Initialize new tc_fix_data field. 871860484Sobrien * config/tc-hppa.c (hppa_fix_struct): Delete unnecessary fix_fixP and 871960484Sobrien fx_next fields. 872060484Sobrien (hppa_find_hppa_fix): Delete unnecessary function. Fix all 872160484Sobrien callers to get HPPA fixup information from the tc_fix_data field 872260484Sobrien in the GAS fixup. 872360484Sobrien (hppa_fix_root): Delete unnecessary variable. 872460484Sobrien (fix_new_hppa): Attach HPPA fixup data to the GAS fixup. 872560484Sobrien 872660484Sobrien * config/tc-hppa.c (pa_set_start_symbol); Delete unwanted 872760484Sobrien function. Fix all callers. 872860484Sobrien (subspace_dictionary_chain): Delete unused ssd_start_sym field. 872960484Sobrien 873060484Sobrien * config/tc-hppa.c (hppa_fix_adjustable): New function to determine 873160484Sobrien if a particular fixup is adjustable. 873260484Sobrien * config/tc-hppa.h (tc_fix_adjustable): Call hppa_fix_adjustable to 873360484Sobrien perform the real work. 873460484Sobrien 873560484Sobrien * config/tc-hppa.h (RELOC_EXPANSION_POSSIBLE): Move definition out 873660484Sobrien of OBJ_XXX conditionals. 873760484Sobrien (MAX_RELOC_EXPANSION): Likewise. 873860484Sobrien 873960484Sobrien * config/tc-hppa.c (log2): Renamed from is_power_of_2. Fix all 874060484Sobrien callers. Now returns log2 (N) for positive N which are an exact 874160484Sobrien power of two or -1 for an error. 874260484Sobrien 874360484Sobrien * config/tc-hppa.c (pa_callinfo): Range check values provided for 874460484Sobrien ENTRY_GR, ENTRY_FR and ENTRY_SR. Properly adjust vaues before 874560484Sobrien inserting them into the unwind table. 874660484Sobrien 874760484Sobrien * config/tc-hppa.c (NEEDS_FIXUP): Delete definition and all references. 874860484Sobrien (hppa_gen_reloc_type): New object format dependent macro. 874960484Sobrien (pa_ip): Delete tons of code which was either OBJ_SOM or OBJ_ELF 875060484Sobrien conditional. The code can (and will) be shared between SOM & ELF 875160484Sobrien formats in the near future. 875260484Sobrien (cons_fix_new_hppa, md_apply_fix_1): Likewise. 875360484Sobrien (pa_build_unwind_subspace, process_exit, pa_exit): Likewise. 875460484Sobrien (tc_gen_reloc): Use hppa_gen_reloc rather than an object format 875560484Sobrien specific call. 875660484Sobrien 875760484Sobrien * config/tc-hppa.c (pa_comm): Set the segment for a common symbol 875860484Sobrien to bfd_und_section. 875960484Sobrien 876060484Sobrien * config/obj-elf.h (obj_elf_version): Add extern prototype. 876160484Sobrien 876260484Sobrien * configure.in (hppa-*-bsd*): New configuration. 876360484Sobrien BFD is always used for GAS generating SOM objects. 876460484Sobrien 876560484Sobrien * write.c (adjust_reloc_syms): Set sy_used_in_reloc if an 876660484Sobrien adjustment is rejected by the target machine. 876760484Sobrien 876860484Sobrien * config/tc-hppa.c (pa_big_cons): Delete function and its 876960484Sobrien declaration. All callers changed to use pa_cons. 877060484Sobrien 877160484Sobrien * write.c (fixup_segment): Fix indention and open/close brace 877260484Sobrien problem. 877360484Sobrien 877460484Sobrien From Pete Hoogenboom: 877560484Sobrien * config/tc-hppa.c (md_atof): Return a NULL on success rather than 877660484Sobrien an empty string. 877760484Sobrien 877860484Sobrien * config/tc-hppa.c (pa_parse_space_stmt): Advance 877960484Sobrien input_line_poitner when an invalid argument is encountered. 878060484Sobrien 878160484SobrienThu Oct 28 13:09:26 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 878260484Sobrien 878360484Sobrien * config/tc-a29k.c (md_begin): When opcodes are mashed together in 878460484Sobrien the table, require that the one without bit 0x1000000 set come 878560484Sobrien first. Require further that it be case 'b' or 'P'. The a29k 878660484Sobrien opcode table already meets these constraints. 878760484Sobrien (machine_ip): When handling case 'i' or 'A', make sure that the 878860484Sobrien appropriate opcode really exists by looking at the next entry in 878960484Sobrien the opcode table. 879060484Sobrien 879160484SobrienWed Oct 27 11:48:56 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 879260484Sobrien 879360484Sobrien * config/tc-m68k.c (m68k_ip): Adjust offsets for PC relative 879460484Sobrien fixups. Add 6 for long 7.3 case, 2 for short 7.2 case. 879560484Sobrien 879660484Sobrien * config/obj-ecoff.c (obj_ecoff_ent): Ignore an optional number 879760484Sobrien after a .ent directive. 879860484Sobrien 879960484Sobrien * config/tc-mips.c (mips_ip): Handle '>' case (shift amount 880060484Sobrien between 32 and 63 for double shift instruction). Do & 0x1f rather 880160484Sobrien than % 32. 880260484Sobrien (printInsn): Handle '>'. 880360484Sobrien 880460484SobrienTue Oct 26 16:58:36 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 880560484Sobrien 880660484Sobrien * config/tc-ns32k.c (tc_aout_fix_to_chars): Output the symbol 880760484Sobrien number in the right place. Untested. Probably does not work for 880860484Sobrien cross assembly. From cagney@cs.adelaide.edu.au (Andrew Cagney). 880960484Sobrien 881060484Sobrien * config/tc-m68k.c (md_apply_fix_2): Error if a short branch uses 881160484Sobrien an illegal offset of 0 or -1. 881260484Sobrien 881360484Sobrien * config/obj-elf.c (obj_elf_init_stab_section): Align .stab 881460484Sobrien section to a longword boundary. 881560484Sobrien 881660484SobrienTue Oct 26 10:24:31 1993 Ken Raeburn (raeburn@cygnus.com) 881760484Sobrien 881860484Sobrien * Makefile.in (CHECKFLAGS): Pass down RUNTESTFLAGS. 881960484Sobrien 882060484Sobrien From Jeff Law: 882160484Sobrien * config/tc-hppa.c (tc_gen_reloc): ELF32_HPPA_R_ADDEND -> 882260484Sobrien HPPA_R_ADDEND. 882360484Sobrien 882460484SobrienMon Oct 25 14:06:17 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 882560484Sobrien 882660484Sobrien * config/tc-sparc.c (sparc_ip): Fix up membar argument handling. 882760484Sobrien 882860484SobrienMon Oct 25 11:17:58 1993 Steve Chamberlain (sac@phydeaux.cygnus.com) 882960484Sobrien 883060484Sobrien * config/tc-sh.c (build_Mbytes): Write the relocs to the correct 883160484Sobrien address. (md_assemble): Make error handling a bit more graceful. 883260484Sobrien (md_apply_fix): Don't warn on non aligned displacement. 883360484Sobrien 883460484Sobrien * config/tc-z8k.c (get_specific, built_bytes): Understand all the 883560484Sobrien aspects of lda. 883660484Sobrien 883760484SobrienMon Oct 25 10:20:31 1993 Ken Raeburn (raeburn@rover.cygnus.com) 883860484Sobrien 883960484Sobrien * doc/Makefile.in (install-info): Use "$<*" so VPATH will find 884060484Sobrien as.info* even if they're in $(srcdir) (e.g., for FSF 884160484Sobrien distributions). 884260484Sobrien 884360484Sobrien * write.c (write_relocs): For relocs that are pc_relative and 884460484Sobrien pcrel_offset and not partial_inplace, adjust reloc->addend to 884560484Sobrien compensate for a bfd_perform_relocation bug. 884660484Sobrien 884760484Sobrien * config/tc-sparc.h: Removed remaining non-BFD_ASSEMBLER code. 884860484Sobrien * config/tc-sparc.c: Ditto. 884960484Sobrien (tc_gen_reloc): Include fx_offset for pcrel fixups. 885060484Sobrien 885160484SobrienSun Oct 24 16:49:00 1993 Jim Wilson (wilson@x1.cygnus.com) 885260484Sobrien 885389857Sobrien * config/tc-mips.c (md_pseudo_table): Add dword pseudo op. 885460484Sobrien 885560484SobrienFri Oct 22 20:40:56 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) 885660484Sobrien 885760484Sobrien * messages.c: replaced all variables called Format with 'format', 885860484Sobrien for consistency throughout 885960484Sobrien 886060484Sobrien * configure.in: handle mips*- instead of mips, mips*el for little 886160484Sobrien endian configurations 886260484Sobrien 886360484SobrienFri Oct 22 14:45:49 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 886460484Sobrien 886560484Sobrien * input-scrub.c (physical_input_file, logical_input_file, 886660484Sobrien physical_input_line, logical_input_line): Made static. 886760484Sobrien (as_where): Return current file name and line number, don't print 886860484Sobrien them out. 886960484Sobrien * messages.c (as_show_where): New static function. Other 887060484Sobrien functions use it instead of as_where. 887160484Sobrien (as_bad_internal): New static function. 887260484Sobrien (as_bad): Use as_bad_internal. 887360484Sobrien (as_bad_where): New function, like as_bad but taking a file name 887460484Sobrien and line number. 887560484Sobrien * as.h (as_bad_where): Declare. 887660484Sobrien (as_where): Change prototype for new arguments. 887760484Sobrien * write.h (fixS): Added fields fx_file and fx_line. 887860484Sobrien * write.c (fix_new_internal): Save file and line number in fix. 887960484Sobrien (fixup_segment): Use as_bad_where, not as_bad. 888060484Sobrien * input-file.c (f_in, file_name): Made static. 888160484Sobrien * cond.c (struct file_line): Just use file and line fields. 888260484Sobrien (s_else): Use as_where and as_bad_where, not get_file_line and 888360484Sobrien set_file_line. 888460484Sobrien (get_file_line, set_file_line): Removed. 888560484Sobrien * listing.c (listing_newline): Use as_where. 888660484Sobrien * config/obj-coffbfd.c (obj_coff_init_stab_section): Use as_where. 888760484Sobrien * config/obj-ecoff.c (add_file): Use as_where. 888860484Sobrien * config/obj-elf.c (obj_elf_init_stab_section): Use as_where. 888960484Sobrien * config/tc-m68k.c (md_apply_fix_2): Use as_bad_where. 889060484Sobrien * config/tc-mips.c (tc_gen_reloc): Use as_bad_where, not assert. 889160484Sobrien 889260484SobrienThu Oct 21 12:52:01 1993 Ken Raeburn (raeburn@cygnus.com) 889360484Sobrien 889460484Sobrien * config/tc-m68k.h: Don't define REGISTER_PREFIX or 889560484Sobrien OPTIONAL_REGISTER_PREFIX if either is already defined. 889660484Sobrien 889760484Sobrien * config/tc-m68k.c (m68k_ip): Delete some code in "#if 0". 889860484Sobrien 889960484Sobrien * configure.in: Set bfd_gas for all sparc targets. Added facility 890060484Sobrien for keeping or rejecting configurations still under development; 890160484Sobrien default is to assume production environment, and reject configs 890260484Sobrien still being worked on. Mark Elf configurations (except sparc and 890360484Sobrien i386) as developmental. Deleted cases matching some generic names 890460484Sobrien in favor of more specific names. (E.g., when we get Alpha 890560484Sobrien support, we'll still only support VMS for Vax.) 890660484Sobrien 890760484Sobrien * config/tc-sparc.h (md_end): New macro. 890860484Sobrien * config/tc-sparc.c (md_end): Function deleted. 890960484Sobrien (BFD_RELOC_*): Delete macros that used to help keep the non-bfd 891060484Sobrien version compiling. All sparc targets will use bfd now. 891160484Sobrien * tc.h (md_end): Don't declare if it's defined as a macro. 891260484Sobrien 891360484Sobrien Changes from Jeff Law and Peter Hoogenboom: 891460484Sobrien 891560484Sobrien * read.c (next_char_of_string): Limit octal character constants to 891660484Sobrien three digits. 891760484Sobrien 891860484Sobrien * config/tc-hppa.h: Major cleanup. Use GNU-style comments. Warn 891960484Sobrien against placing additional object-file dependent code here. Warn 892060484Sobrien against contaminating all of GAS with the internals of tc-hppa.c 892160484Sobrien through inclusion of tc-hppa.h. Delete all forward declarations 892260484Sobrien for functions only used within tc-hppa.c, likewise for structures, 892360484Sobrien variables, and #defines. Try to group OBJ_ELF and OBJ_SOM 892460484Sobrien conditional code in a few small places. 892560484Sobrien 892660484Sobrien * config/tc-hppa.c: Major cleanup. Use GNU-style comments. Group 892760484Sobrien structures, global variables, forward declarations together. 892860484Sobrien Reduce (or in some cases eliminate) OBJ_ELF and OBJ_SOM 892960484Sobrien conditional code -- try to group conditional code together 893060484Sobrien into a few places. Make all functions and variables which 893160484Sobrien are only used within tc-hppa.c static. PARAMize all functions. 893260484Sobrien Add comments to functions. Delete unused functions, variables, 893360484Sobrien #defines, etc. Delete unused members within structures. Delete 893460484Sobrien ldil;ble hacks -- it is believed they were installed to work 893560484Sobrien around old gas bugs. Avoid using mixed case for local 893660484Sobrien functions, variables, and structures. Fix formatting problems 893760484Sobrien not found by GNU-indent. Add FIXME notices for things which 893860484Sobrien should be worked on the near future. Delete lots of old 893960484Sobrien useless (1.36 PA-SOM) code. 894060484Sobrien 894160484Sobrien * config/tc-hppa.c: (fix_new_hppa): Initialize the fx_r_type 894260484Sobrien field of the fixS structure. Needed to build unwind 894360484Sobrien descriptors correctly. 894460484Sobrien 894560484Sobrien * write.c: (fixup_segment): Allow expressions such as 894660484Sobrien sym1-sym2+const as long as sym2 is $global$. 894760484Sobrien 894860484Sobrien * write.c (adjust_reloc_syms): Provide a hook so that a target 894960484Sobrien cpu configuration can reject certain relocation reductions. 895089857Sobrien * config/tc-hppa.h (tc_fix_adjustable): New macro. Only accept relocations 895160484Sobrien which do not involve function symbols. 895260484Sobrien 895360484Sobrien * config/tc-hppa.h: Reindent with GNU-indent. Delete references 895460484Sobrien to OBJ_OSFROSE. Fix typos (OBJ_SOME -> OBJ_SOM). Delete unused 895560484Sobrien STAB_FIXUP macro. 895660484Sobrien * config/tc-hppa.c: Likewise. 895760484Sobrien 895860484Sobrien * config/tc-hppa.c (md_apply_fix_1): Use elf_symbol_type, instead 895960484Sobrien of elf32_symbol_type. 896060484Sobrien (pa_export_args): Likewise. 896160484Sobrien (elf_hppa_final_processing): Likewise. 896260484Sobrien (pa_desc): Do not call obj_elf_desc. (Is pa_desc even needed 896360484Sobrien anymore?) 896460484Sobrien (hppa_tc_make_sections): Do not declare elf_get_symtab_map any 896560484Sobrien ore. 896660484Sobrien 896760484Sobrien * config/tc-hppa.c: (md_section_align): Align all sections to 896860484Sobrien a multiple of the section alignment rather than always a 896960484Sobrien multiple of 8. 897060484Sobrien 897160484Sobrien * config/tc-hppa.c (hppa_tc_symbol): If the argument relocation 897260484Sobrien bits are zero (eg they specify no relocations), then do not even 897360484Sobrien bother adding their entries to thesymextn section. 897460484Sobrien 897560484SobrienThu Oct 21 15:44:55 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 897660484Sobrien 897760484Sobrien * config/tc-sparc.c (md_parse_option): Accept and ignore -sparc 897860484Sobrien option, which is used by the SunOS make default .s.o rule. 897960484Sobrien 898060484SobrienWed Oct 20 12:26:33 1993 Ken Raeburn (raeburn@rover.cygnus.com) 898160484Sobrien 898260484Sobrien * config/tc-sparc.c (sparc_ip, label "immediate"): Convert relocs 898360484Sobrien operating on upper 32 bits of immediate constants to lower-half 898460484Sobrien relocs with adjusted constants. 898560484Sobrien 898660484SobrienTue Oct 19 18:13:26 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 898760484Sobrien 898860484Sobrien * config/tc-m68k.h (AOUT_MACHTYPE): Define to be external variable 898960484Sobrien m68k_aout_machtype. 899060484Sobrien * config/tc-m68k.c (omagic): Remove obsolete and unused variable. 899160484Sobrien (m68k_aout_machtype): New variable, if OBJ_AOUT. 899260484Sobrien (md_assemble): Initialize m68k_aout_machtype based on 899360484Sobrien current_architecture, if OBJ_AOUT. 899460484Sobrien (md_parse_option): Remove obsolete reference to omagic. 899560484Sobrien 899660484SobrienThu Oct 14 16:51:00 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 899760484Sobrien 899860484Sobrien * config/tc-mips.c (md_pseudo_table): Ignore .livereg pseudo-op. 899960484Sobrien (s_option): Ignore .option O* and .option pic*. 900060484Sobrien (s_ent): Skip whitespace between symbol and optional digit. 900160484Sobrien (my_getSmallExpression): Handle ($xx) correctly: assume 0($xx). 900260484Sobrien 900360484Sobrien * app.c (do_scrub_next_char): Always accept 'x' and 'X' as escape 900460484Sobrien characters in state 6. 900560484Sobrien * read.c (next_char_of_string): Accept \Xh* and \xh* where h* are 9006130561Sobrien hexadecimal digits. 900760484Sobrien 900860484Sobrien * config/tc-i386.c (md_apply_fix_1): Make cross segment calls work 900960484Sobrien for ELF by hacking around bizarre bfd_perform_relocation behaviour 901060484Sobrien that I don't dare change. 901160484Sobrien 901260484SobrienThu Oct 14 11:33:25 1993 Michael Meissner (meissner@osf.org) 901360484Sobrien 901460484Sobrien * config/tc-i386.c: (md_begin): Do not zero static arrays. Don't 901560484Sobrien call strchr for each character to see if it is a special char, 901660484Sobrien instead add a second loop over special_chars. Set alignment 901760484Sobrien of text, data and bss sections to 4. 901860484Sobrien (pi, te, pt, pe, ps): Add declarations so that DEBUG386 can be 901960484Sobrien used again. 902060484Sobrien (reloc): Don't return 8 and 16 bit non-PC relative relocations on 902160484Sobrien ELF, since the ELF object format does not have these type of 902260484Sobrien relocations. Change the abort into as as_bad and return 902360484Sobrien BFD_RELOC_NONE to silence compiler warnings. 902460484Sobrien (md_assemble): Keep track of the instruction size. Allow white 902560484Sobrien space between the $ and the constant for compatibility with older 902660484Sobrien gases and other assemblers. 902760484Sobrien (i386_operand): Skip spaces between $ and expression. 902860484Sobrien (tc_gen_reloc): Don't allow anything but 32 bit relocations on 902960484Sobrien ELF. Convert abort into an as_bad and assert into as_fatal. 903060484Sobrien 903160484SobrienWed Oct 13 16:50:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 903260484Sobrien 903360484Sobrien * config/obj-coffbfd.c (fixup_segment) [DIFF_EXPR_OK]: If 903460484Sobrien sub_symbolP is in the current segment, convert to a PC-relative 903560484Sobrien fixup and discard the symbol. 903660484Sobrien 903760484SobrienWed Oct 13 14:00:02 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 903860484Sobrien 903960484Sobrien * config/obj-ecoff.c (ecoff_build_symbols): Handle st_End symbol 904060484Sobrien for st_StaticProc just like st_Proc. 904160484Sobrien 904260484Sobrien * write.c (relax_and_size_all_segments): Moved #endif for OBJ_BOUT 904360484Sobrien so that OBJ_BOUT doesn't forget to adjust all the fragments in the 904460484Sobrien .bss section. 904560484Sobrien 904660484SobrienTue Oct 12 17:26:15 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 904760484Sobrien 904860484Sobrien * config/tc-mips.c: If OBJ_ELF, include elf/mips.h. 904960484Sobrien (mips_regmask_frag): New static variable, if OBJ_ELF. 905060484Sobrien (md_begin): If OBJ_ELF, create .reginfo section and set 905160484Sobrien mips_regmask_frag to a frag. 905260484Sobrien (mips_elf_final_processing): New function, if OBJ_ELF. Set 905360484Sobrien mips_regmask_frag to register mask information. 905460484Sobrien * config/tc-mips.h (elf_tc_final_processing): New macro, defined 905560484Sobrien if OBJ_ELF. 905660484Sobrien 905760484SobrienTue Oct 12 03:33:26 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 905860484Sobrien 905960484Sobrien * messages.c (as_fatal): Use myname when printing messages. 906060484Sobrien 906160484Sobrien * config/tc-i960.c (md_begin): Use null pointer, not empty string, 906260484Sobrien as initial "return" value in case hashing isn't needed. 906360484Sobrien 906460484Sobrien * config/tc-a29k.c (md_atof): Return null, not empty string, on 906560484Sobrien success. 906660484Sobrien * config/tc-h8300.c (md_atof), config/tc-h8500.c (md_atof), 906760484Sobrien config/tc-hppa.c (md_atof), config/tc-i860.c (md_atof), 906860484Sobrien config/tc-i960.c (md_atof), config/tc-m88k.c (md_atof), 906960484Sobrien config/tc-ns32k.c (md_atof), config/tc-sh.c (md_atof): Ditto. 907060484Sobrien 907160484SobrienMon Oct 11 16:46:31 1993 Steve Chamberlain (sac@phydeaux.cygnus.com) 907260484Sobrien 907360484Sobrien fix for pr 3571 907460484Sobrien * config/tc-h8300.c (get_specific): Special action if 8 bit 907560484Sobrien address seen. (check_operand): Don't complain if truncating top 907660484Sobrien bits of an 8 bit address. (build_bytes): Allow an immediate and 907760484Sobrien an absolute in the same insn. 907860484Sobrien 907960484SobrienMon Oct 11 17:18:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 908060484Sobrien 908160484Sobrien * write.c (write_contents): Don't crash if seginfo is NULL. 908260484Sobrien 908360484Sobrien * config/obj-ecoff.c (ecoff_frob_file): Write out register masks 908460484Sobrien by modifying .reginfo section, not by directly modifying BFD 908560484Sobrien backend data. 908660484Sobrien 908760484SobrienMon Oct 11 14:11:32 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) 908860484Sobrien 908960484Sobrien * config/ho-sunos.h: remove extern time declaration 909060484Sobrien 909160484SobrienMon Oct 11 16:14:43 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 909260484Sobrien 909360484Sobrien * messages.c (as_fatal): Do mention that it's the assembler that 909460484Sobrien got the fatal error. 909560484Sobrien 909660484SobrienFri Oct 8 14:09:35 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 909760484Sobrien 909860484Sobrien * config/tc-mips.c (mips_gprmask, mips_cprmask): New variables to 909960484Sobrien hold register masks. 910060484Sobrien (md_begin): Initialize them to zero. 910160484Sobrien (append_insn): Update mips_gprmask and mips_cprmask. Also add 910260484Sobrien register variables pinfo and prev_pinfo. 910360484Sobrien * config/tc-mips.h (mips_gprmask, mips_cprmask): Declare. 910460484Sobrien * config/obj-ecoff.c (ecoff_frob_file): If TC_MIPS, set gprmask 910560484Sobrien and cprmask from mips_gprmask and mips_cprmask. 910660484Sobrien 910760484Sobrien * config/tc-mips.h: Define TARGET_FORMAT if OBJ_ELF. 910860484Sobrien * config/tc-mips.c (GPOPT): Define if OBJ_ECOFF or OBJ_ELF. 910960484Sobrien (various): Change all references to GP references to apply if 911060484Sobrien GPOPT, not if OBJ_ECOFF. 911160484Sobrien (s_change_sec): Rearrange somewhat. If OBJ_ELF, use .rodata 911260484Sobrien instead of .rdata. If OBJ_ELF, set section flags for .rodata and 911360484Sobrien .sdata sections. 911460484Sobrien (s_frame, s_loc, s_mask): Comment out entire functions, rather 911560484Sobrien than just body. They're not used anyhow. 911660484Sobrien * configure.in: Set cpu_type to mips for mips*. Accept 911760484Sobrien mips-*-elfl* and mips-*-elf*. 911860484Sobrien 911960484SobrienThu Oct 7 18:36:29 1993 Michael Meissner (meissner@osf.org) 912060484Sobrien 912160484Sobrien * config/obj-elf.c (obj_elf_common): Allow the alignment field to 912260484Sobrien not be specified. 912360484Sobrien 912460484SobrienWed Oct 6 13:01:34 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 912560484Sobrien 912660484Sobrien * config/tc-mips.c (cons_fix_new_mips): New function. Turn 912760484Sobrien BFD_RELOC_64 into BFD_RELOC_32. 912860484Sobrien * config/tc-mips.h (TC_CONS_FIX_NEW): Define. 912960484Sobrien (cons_fix_new_mips): Declare. 913060484Sobrien 913160484Sobrien Changes to let cons handle bignums like general expressions. 913260484Sobrien * expr.h (expressionS): New field X_unsigned. 913360484Sobrien * expr.c (operand): Initialize X_unsigned to 1. Set it to 0 for 913460484Sobrien unary minus case. 913560484Sobrien (expr) Fix typo resultP to right if missing operand. Set 913660484Sobrien X_unsigned to 1 when building new expression. 913760484Sobrien * read.c (potable): Make "octa" and "quad" call cons, not 913860484Sobrien big_cons. 913960484Sobrien (cons): Handle bignums. If given an O_constant (small integer) to 914060484Sobrien fill a big space, turn it into a bignum. 914160484Sobrien (parse_bitfield_cons): Set X_unsigned field. 914260484Sobrien (bignum_low, bignum_limit, bignum_high, grow_bignum, big_cons): 914360484Sobrien Removed. 914460484Sobrien * read.h (big_cons): Remove prototype. 914560484Sobrien * symbols.c (resolve_symbol_value): Don't give a warning if a 914660484Sobrien symbol in expr_section can not be resolved. 914760484Sobrien (S_SET_VALUE): Clear X_unsigned. 914860484Sobrien * write.c (write_object_file): If resolve_symbol_value failed on a 914960484Sobrien symbol we are writing out, give a warning. 915060484Sobrien * config/tc-h8500.c (parse_reglist): Set X_unsigned. 915160484Sobrien * config/tc-hppa.c (md_pseudo_table): Change "octa" and "quad" to 915260484Sobrien call pa_cons, not pa_big_cons. 915360484Sobrien (pa_big_cons): Remove. 915460484Sobrien * config/tc-hppa.h (pa_big_cons): Remove declaration. 915560484Sobrien * config/tc-i960.c (md_pseudo_table): Change "quad" to call cons, 915660484Sobrien not big_cons. 915760484Sobrien 915860484SobrienTue Oct 5 10:53:36 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) 915960484Sobrien 916060484Sobrien * doc/as.texinfo (Copying): new node, to handle the recent changes 916160484Sobrien in the texinfo/gpl.texinfo file 916260484Sobrien 916360484SobrienMon Oct 4 17:10:15 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 916460484Sobrien 916560484Sobrien * read.c (big_cons): Handle "0" correctly. 916660484Sobrien 916760484Sobrien * config/tc-mips.c (md_begin): Set target_big_endian correctly. 916860484Sobrien 916960484SobrienMon Oct 4 15:37:57 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 917060484Sobrien 917160484Sobrien * config/tc-m68k.c (m68k_ip): Mode 7.3 operand using PC should 917260484Sobrien have pc-relative fixup. 917360484Sobrien (md_parse_option): Move "-k" case down near "-pic" case. 917460484Sobrien 917560484Sobrien * configure.in: Alphabetize list of cpu type alternatives. Enable 917660484Sobrien OS values of "linux*elf*" and "linux*coff*" to select those 917760484Sobrien formats, with linux emulation. Don't bother checking for upper- 917860484Sobrien or mixed-case versions of "ose". 917960484Sobrien 918060484SobrienThu Sep 30 11:05:35 1993 Steve Chamberlain (sac@phydeaux.cygnus.com) 918160484Sobrien 918260484Sobrien * config/z8k.c (md_pseudo_table): add "unseg". 918360484Sobrien 918460484SobrienWed Sep 29 16:15:11 1993 K. Richard Pixley (rich@sendai.cygnus.com) 918560484Sobrien 918660484Sobrien * config/m88k-opcode.h (m88k_opcodes): correct a few mistakes 918760484Sobrien found while extending the dissassembler. 918860484Sobrien 918960484SobrienTue Sep 28 12:02:04 1993 Stan Shebs (shebs@rtl.cygnus.com) 919060484Sobrien 919160484Sobrien * configure.in: Split i386 LynxOS out from other coff targets, 919260484Sobrien add a specific Lynx emulation. 919360484Sobrien Add m68k LynxOS target. 919460484Sobrien * config/tc-i386.c: Define specific Lynx target format. 919560484Sobrien * config/tc-m68k.c: Define specific Lynx target format. 919660484Sobrien * config/te-lynx.h: New file. 919760484Sobrien 919860484Sobrien * config/obj-coffbfd.h: Don't set TARGET_FORMAT to be 919960484Sobrien "coff-{i386,m68k}" if TARGET_FORMAT already defined. 920060484Sobrien (INIT_STAB_SECTION): Define. 920160484Sobrien * config/obj-coffbfd.c: Include <time.h>. 920260484Sobrien (write_object_file): Look for .stab sections and call 920360484Sobrien adjust_stab_section. 920460484Sobrien (adjust_stab_section): New function, fills in the first symbol 920560484Sobrien of a stab section with number of symbols and string table size. 920660484Sobrien (obj_coff_init_stab_section): New function, creates the initial 920760484Sobrien symbol for a stab section. 920860484Sobrien 920960484SobrienMon Sep 27 15:21:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 921060484Sobrien 921160484Sobrien * config/atof-vax.c (md_atof): Return null on success instead of 921260484Sobrien empty string. 921360484Sobrien * config/atof-tahoe.c (md_atof): Ditto. 921460484Sobrien * read.c (float_cons): Expect a null pointer for success, not an 921560484Sobrien empty string. 921660484Sobrien 921760484Sobrien * hash.c (hash_insert, hash_jam, hash_grow): Return null pointer 921860484Sobrien on success, instead of empty string. All callers changed. 921960484Sobrien 922060484Sobrien * config/tc-vax.c: Use PARAMS in declarations. 922160484Sobrien (vip_op): Use NULL instead of empty string for success in error 922260484Sobrien and warning fields. 922360484Sobrien 922460484SobrienSun Sep 26 23:45:29 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 922560484Sobrien 922660484Sobrien * expr.c (expr) [DIFF_EXPR_OK]: Permit subtraction of two symbols 922760484Sobrien in different defined segments. 922860484Sobrien 922960484Sobrien * write.c (relax_segment): Localize "aim" variable. If 923060484Sobrien DIFF_EXPR_OK, don't impose checks on symbol segment types. 923160484Sobrien (fixup_segment) [DIFF_EXPR_OK]: If sub_symbolP is in the current 923260484Sobrien segment, convert to a PC-relative fixup and discard the symbol. 923360484Sobrien 923460484Sobrien * config/tc-m68k.c (flag_want_pic): New variable, mostly ignored. 923560484Sobrien (md_parse_option) [TE_SUN3]: Set it for "-k". 923660484Sobrien (m68k_ip): Generate proper fixup for mode 7.3. 923760484Sobrien * config/tc-m68k.h (DIFF_EXPR_OK): Define. 923860484Sobrien 923960484SobrienSat Sep 25 05:08:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 924060484Sobrien 924160484Sobrien * config/tc-m68k.c (struct m68k_incant, getone, gettwo): Moved 924260484Sobrien earlier in the file. 924360484Sobrien (insop, add_exp): Now defined as functions, for readability. 924460484Sobrien (insop): Now takes two arguments; callers changed. 924560484Sobrien 924660484SobrienFri Sep 24 12:37:59 1993 K. Richard Pixley (rich@sendai.cygnus.com) 924760484Sobrien 924860484Sobrien * config/tc-m88k.c (get_o6): new function. 924960484Sobrien (get_bf, get_cmp, get_cnd, get_cr, get_fcr, get_imm16, get_reg, 925060484Sobrien get_vec9, getval, get_pcr, calcop, match_name): make static and 925160484Sobrien prototype. 925260484Sobrien (s_file): remove extraneous forward decl. 925360484Sobrien (md_begin): add const to retval decl. 925460484Sobrien (calcop): cope with instructions without arguments. Handle 'o' 925560484Sobrien type argument, the o6 field of the prot insn. 925660484Sobrien (md_estimate_size_before_relax): return a dummy value. 925760484Sobrien 925860484Sobrien * config/m88k-opcode.h (m88k_opcodes): comment change; o6 field is 925960484Sobrien in bits 10 through 7. flt.[dxs]s requires an r register in the 926060484Sobrien second argument. New instruction lda.x. New instruction muls 926160484Sobrien (alias for mul). 926260484Sobrien 926360484SobrienFri Sep 24 13:43:30 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 926460484Sobrien 926560484Sobrien * Makefile.in (distclean): Recurse like clean. 926660484Sobrien * doc/Makefile.in (distclean): New target. 926760484Sobrien 926860484Sobrien * config/tc-mips.c (md_begin): Set BFD architecture and machine 926960484Sobrien based on MIPS ISA level. 927060484Sobrien 927160484SobrienThu Sep 23 17:58:58 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 927260484Sobrien 927360484Sobrien * as.c (main): "exhausted", not "exhuasted". 927460484Sobrien 927560484Sobrien * struc-symbol.h (struct symbol): Add sy_used_in_reloc field. 927660484Sobrien * write.c (adjust_reloc_syms): Set sy_used_in_reloc. 927760484Sobrien (write_object_file): Never strip symbols with sy_used_in_reloc 927860484Sobrien set. 927960484Sobrien 928060484Sobrien * config/obj-elf.c (obj_elf_section): Rewrote to handle both 928160484Sobrien Solaris and SVR4 style .section pseudo-ops. 928260484Sobrien (obj_elf_ident): Set SEC_READONLY for .comment section. 928360484Sobrien * config/tc-sparc.c (md_apply_fix): If this is ELF, and we're 928460484Sobrien generating a reloc, don't apply a fix. 928560484Sobrien 928660484SobrienThu Sep 23 13:16:58 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 928760484Sobrien 928860484Sobrien * config/obj-coffbfd.c (relax_align): Now static. 928960484Sobrien 929060484SobrienMon Sep 20 19:23:35 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 929160484Sobrien 929260484Sobrien * read.c (get_stab_string_offset): Make non-static. Make 929360484Sobrien arguments const. Don't align strings to 4 byte boundaries. 929460484Sobrien * read.h: Declare get_stab_string_offset. 929560484Sobrien * config/obj-elf.c (obj_elf_section): Set SEC_ALLOC as well as 929660484Sobrien SEC_LOAD for progbits section. 929760484Sobrien (obj_elf_init_stab_section): New function. 929860484Sobrien (adjust_stab_sections): Add casts to avoid warnings. 929960484Sobrien * config/obj-elf.h (INIT_STAB_SECTION): Call 930060484Sobrien obj_elf_init_stab_section. 930160484Sobrien (OBJ_PROCESS_STAB): Removed definition. 930260484Sobrien 930360484SobrienFri Sep 17 18:12:34 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 930460484Sobrien 930560484Sobrien * config/obj-elf.h (S_GET_SIZE): Define. 930660484Sobrien (obj_frob_forward_symbol): Define. 930760484Sobrien * config/tc-i386.c (line_comment_chars): Initialize in all cases. 930860484Sobrien 930960484SobrienThu Sep 16 14:23:08 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 931060484Sobrien 931160484Sobrien * tc.h: Declare tc_gen_reloc differently depending upon 931260484Sobrien RELOC_EXPANSION_POSSIBLE. 931360484Sobrien * config/obj-elf.c (obj_elf_section): Only set flags when first 931460484Sobrien creating the section. 931560484Sobrien 931660484SobrienWed Sep 15 12:15:53 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 931760484Sobrien 931860484Sobrien * config/tc-mips.c (append_insn): Don't swap a trap instruction 931960484Sobrien with a branch. 932060484Sobrien 932160484SobrienTue Sep 14 13:31:04 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 932260484Sobrien 932360484Sobrien * config/obj-elf.c (obj_elf_data, obj_elf_text): New functions; 932460484Sobrien set previous_section and previous_subsection and then call s_data 932560484Sobrien and s_text, respectively. 932660484Sobrien (obj_pseudo_table): Add data and text. 932760484Sobrien (obj_elf_section): Add SEC_LOAD to default initialization of 932860484Sobrien flags. Treat .rodata1 like .rodata. Set SEC_LOAD as well as 932960484Sobrien SEC_ALLOC for "alloc" string. Don't bother trying to find the 933060484Sobrien section; just use subseg_new. 933160484Sobrien 933260484Sobrien * read.c (change_to_section): Removed. This is now done by 933360484Sobrien subseg_new. 933460484Sobrien (get_stab_string_offset): Rearranged somewhat. Create the section 933560484Sobrien using subseg_new. Store the string index in seg_info, rather than 933660484Sobrien in a static variable. Force the first string to be empty. Use 933760484Sobrien frag_more rather than FRAG_APPEND_1_CHAR. 933860484Sobrien (s_stab_generic): Rewrote. 933960484Sobrien * subsegs.h (segment_info_type): Added stabu union. 934060484Sobrien * subsegs.c (subseg_new): Initialize stab_string_size to 0. 934160484Sobrien * config/obj-aout.c: Don't include aout/stab_gnu.h. 934260484Sobrien (obj_aout_stab, obj_aout_desc): Removed. 934360484Sobrien (obj_pseudo_table): Removed desc and stabX entries. 934460484Sobrien * config/obj-bout.c: Same changes as config/obj-aout.c. 934560484Sobrien * config/obj-bout.h (S_SET_TYPE): Define. 934660484Sobrien (tc_bout_fix_to_chars): Declare. 934760484Sobrien * config/obj-coff.c (obj_coff_stab): Removed. 934860484Sobrien (obj_pseudo_table): Removed desc and stabX entries. 934960484Sobrien * config/obj-coff.h (SEPARATE_STAB_SECTIONS): Define. 935060484Sobrien * config/obj-coffbfd.c (current_stab_symbol): Removed. 935160484Sobrien * config/obj-coffbfd.h (obj_symbol_type): Removed n_strx, n_type, 935260484Sobrien n_other, n_desc and n_value fields. 935360484Sobrien (S_{S,G}ET_{OFFSET,OTHER,TYPE,DESC}): Removed. 935460484Sobrien (MAKE_STAB_SYMBOL): Removed. 935560484Sobrien * config/obj-ecoff.c (obj_ecoff_stab): Renamed to ecoff_stab. 935660484Sobrien Changed arguments and removed parsing code. 935760484Sobrien (obj_pseudo_table): Removed stabX entries. 935860484Sobrien * config/obj-ecoff.h (ecoff_stab): Declare. 935960484Sobrien (OBJ_PROCESS_STAB): Define. 936060484Sobrien * config/obj-elf.c: Don't include aout/stab_gnu.h. 936160484Sobrien (obj_elf_stab, obj_elf_xstab, obj_elf_desc, 936260484Sobrien elf_stab_symbol_string, elf_stab_symbol, obj_elf_stab_generic): 936360484Sobrien Removed. 936460484Sobrien (obj_pseudo_table): Removed desc, stabX and xstabs entries. 936560484Sobrien (obj_elf_version): Use subseg_new, not bfd_make_section. Don't 936660484Sobrien set SEC_LOAD for .note section. 936760484Sobrien (adjust_stab_sections): Get frag pointer from seg_info, rather 936860484Sobrien than looking through frags. 936960484Sobrien * config/obj-elf.h (S_{S,G}ET_{OTHER,TYPE,DESC}): Removed. 937060484Sobrien (SEPARATE_STAB_SECTIONS, INIT_STAB_SECTION, OBJ_PROCESS_STAB): 937160484Sobrien Define. 937260484Sobrien * config/obj-vms.c (obj_aout_stab): Removed. 937360484Sobrien (obj_pseudo_table): Removed stabX entries. 937460484Sobrien * config/obj-vms.h (S_SET_TYPE): Define. 937560484Sobrien 937660484Sobrien * as.h: Declare listing. 937760484Sobrien * read.c: Don't declare listing. 937860484Sobrien (emit_expr): Cast fix_new_exp argument. 937960484Sobrien (parse_bitfield_cons): Correct printf format. 938060484Sobrien * symbols.c (symbol_new): Add cast to avoid warning. 938160484Sobrien * write.h: Declare text_last_frag and data_last_frag. 938260484Sobrien * config/obj-bout.c (obj_bout_line): Added dummy argument. 938360484Sobrien * config/obj-coffbfd.c: Add some casts to avoid warnings. 938460484Sobrien * config/tc-a29k.c: Likewise. 938560484Sobrien * config/tc-i960.c: Likewise. Also fully bracket structure 938660484Sobrien initializations, fix printf formats, and remove unused variables. 938760484Sobrien 938860484SobrienMon Sep 13 16:48:38 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 938960484Sobrien 939060484Sobrien * read.c (s_desc): Only compile and use if S_SET_DESC is defined. 939160484Sobrien * struc-symbol.h: Declare verify_symbol_chain and 939260484Sobrien verify_symbol_chain_2 even if not SYMBOLS_NEED_BACKPOINTERS. 939360484Sobrien * symbols.c (verify_symbol_chain): Removed useless expression. 939460484Sobrien * write.c (headers, the_object_file): Only use if not 939560484Sobrien BFD_ASSEMBLER and not BFD. 939660484Sobrien (fixup_segment, cvs_frag_to_fill): Only use if BFD_ASSEMBLER or 939760484Sobrien not BFD. 939860484Sobrien (merge_data_into_text): Only use if BFD_ASSEMBLER or (not BFD and 939960484Sobrien not OBJ_AOUT). 940060484Sobrien * write.h: Declare relax_segment. 940160484Sobrien * config/obj-coffbfd.c (stack_pop, stack_push, stack_init): Made 940260484Sobrien static. 940360484Sobrien (stack_top): Commented out, since it's not used. 940460484Sobrien Fixed up pseudo-op functions to take an ignored int argument. 940560484Sobrien (size_section): Added default BAD_CASE to switch. 940660484Sobrien Changed bzero calls to memset. 940760484Sobrien * config/obj-coffbfd.h (S_IS_LOCAL): Call strchr on S_GET_NAME 940860484Sobrien (s), not on s itself. 940960484Sobrien * config/tc-a29k.c (s_use): Take ignored int argument. Only 941060484Sobrien define if OBJ_COFF is not defined. 941160484Sobrien * config/tc-i386.c: (fits_in_signed_byte, smallest_imm_type): Make 941260484Sobrien argument signed again. 941360484Sobrien * config/tc-m68k.c (s_bss, s_even, s_proc): Take ignored int 941460484Sobrien argument. 941560484Sobrien (m68k_ip): Fully bracket initialization of archs. 941660484Sobrien Correct several formats for __LINE__ to be %d rather than %s. 941760484Sobrien (init_table): Fully bracket initialization. 941860484Sobrien Cast values larger than 0x7f assigned to fr_opcode to char. 941960484Sobrien 942060484Sobrien * subsegs.c: Renamed non-BFD_ASSEMBLER subseg_new to subseg_set. 942160484Sobrien Wrote non-BFD_ASSEMBLER subseg_new. Now subseg_new always takes a 942260484Sobrien section name, and subseg_set always takes a segT. Changed all 942360484Sobrien callers as appropriate. 942460484Sobrien * config/obj-coffbfd.c (change_to_section): Renamed to 942560484Sobrien obj_coff_add_segment. Corrected. Made callers use subseg_new. 942660484Sobrien * config/obj-coffbfd.h (obj_segment_name, obj_add_segment): 942760484Sobrien Define. 942860484Sobrien 942960484SobrienMon Sep 13 13:15:03 1993 Doug Evans (dje@canuck.cygnus.com) 943060484Sobrien 943160484Sobrien * config/tc-sparc.h (LOCAL_LABEL): Remove test for name[0] == 'L'. 943260484Sobrien 943360484SobrienFri Sep 10 11:22:08 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 943460484Sobrien 943560484Sobrien * config/obj-elf.h (S_SET_SIZE): Actually set the size. 943660484Sobrien 943760484Sobrien Gcc lint. 943860484Sobrien * Added a number of casts to function calls. 943960484Sobrien * app.c (do_scrub_begin), as.c (main), expr.c (integer_constant, 944060484Sobrien operand, expr), read.c (read_begin, HANDLE_CONDITIONAL_ASSEMBLY, 944160484Sobrien read_a_source_file, s_align_bytes, demand_empty_rest_of_line, 944260484Sobrien ignore_rest_of_line, big_cons, is_it_end_of_statement, s_ignore), 944360484Sobrien read.h (is_name_beginner, is_part_of_name), config/obj-elf.c 944460484Sobrien (obj_elf_section), config/tc-i386.c (parse_register), 944560484Sobrien config/tc-sparc.c (isoctal, s_proc): Cast char 944660484Sobrien array indices to unsigned char. 944760484Sobrien * app.c (process_escape): Make static. Add prototype. Change 944860484Sobrien argument from char to int. 944960484Sobrien * as.c: Include output-file.h for prototypes. Comment out unused 945060484Sobrien function got_sig. 945160484Sobrien * Makefile.in (as.o): Depend on output-file.h. 945260484Sobrien * as.h (BAD_CASE): Cast val argument to long, and use %ld. 945360484Sobrien (pseudo_typeS): Add prototype to poc_handler field. 945460484Sobrien (print_version_id): Add prototype. 945560484Sobrien (xmalloc, xrealloc): Change size arguments to unsigned long. 945660484Sobrien (do_scrub_next_char): Add prototypes for function arguments. 945760484Sobrien (had_errors, had_warnings, scrub_from_file): Remove duplicate 945860484Sobrien declarations. 945960484Sobrien * atof-generic.c (atof_generic): Make size variables unsigned. 946060484Sobrien * cond.c (ignore_input): Removed unused local variable ptr. 946160484Sobrien * expr.c (floating_constant, integer_constant): Make static. Add 946260484Sobrien prototypes. 946360484Sobrien * flonum-copy.c (flonum_copy): Make size variables unsigned. 946460484Sobrien * frags.h: Add prototype for frag_init. 946560484Sobrien * hash.h, hash.c: Change hash values from char * to PTR, make hash 946660484Sobrien strings const, make returned error strings const char *. Added 946760484Sobrien prototypes for functions. 946860484Sobrien * input-file.h, input-file.c (input_file_buffer_size): Return 946960484Sobrien unsigned int. 947060484Sobrien * input-scrub.c (buffer_length): Make unsigned. 947160484Sobrien (input_scrub_push, input_scrub_pop): Make static. 947260484Sobrien * listing.c (list_symbol_table): Cast sprintf argument to unsigned 947360484Sobrien long and use %lx. Print name of segment rather than address of 947460484Sobrien structure. 947560484Sobrien (listing_list, listing_title): Change argument to int. 947660484Sobrien (listing_eject, listing_flags, listing_psize): Add int argument. 947760484Sobrien * listing.h: Corresponding declaration changes. 947860484Sobrien * obj.h (obj_emit_symbols): Rename prototype argument to avoid 947960484Sobrien shadowing. 948060484Sobrien * read.h: Change get_absolute_expression prototype to return 948160484Sobrien offsetT. Add prototype for next_char_of_string. Various 948260484Sobrien prototype changes. 948360484Sobrien * read.c: Remove prototype for next_char_of_string. 948460484Sobrien (pobegin): Make errtxt const. Make new_length, tmp_len and num 948560484Sobrien unsigned. 948660484Sobrien (s_abort, s_align_ptwo, s_comm, s_data, s_app_line, s_fill, 948760484Sobrien s_globl, s_lsym, s_org, s_set, s_text, s_desc): Add int argument. 948860484Sobrien Change all callers. 948960484Sobrien (s_comm): Change temp from valueT to offsetT. Cast to long when 949060484Sobrien printing and use %ld (only for error messages anyhow). 949160484Sobrien (s_long, s_int): Remove unused functions. 949260484Sobrien (cons): Change argument to int. 949360484Sobrien (emit_expr): Use %lx when printing longs. 949460484Sobrien (get_absolute_expression): Return offsetT, not long. 949560484Sobrien (get_stab_string_offset): Comment out unless 949660484Sobrien SEPARATE_STAB_SECTIONS. 949760484Sobrien (s_stab_generic): Remove unused offset. Define seg_is_new only 949860484Sobrien if SEPARATE_STAB_SECTIONS. Use toP only in local block. 949960484Sobrien * struc-symbol.h (verify_symbol_chain_2): Add prototype. 950060484Sobrien * symbols.c: Remove nested comment. 950160484Sobrien (symbol_new): Rename value to valu. 950260484Sobrien (colon): Use %ld and cast to long in error message. 950360484Sobrien * symbols.h: Remove duplicate verify_symbol_chain declaration. 950460484Sobrien * tc.h: Remove unused md_emit_relocations declaration. 950560484Sobrien (tc_gen_reloc): Add declaration. 950660484Sobrien * write.c (cvt_frag_to_fill): Change first argument name depending 950760484Sobrien on BFD_ASSEMBLER. 950860484Sobrien (write_relocs): Remove unused offset, frags. Remove tc_gen_reloc 950960484Sobrien declarations. Make n unsigned. 951060484Sobrien (write_contents): Remove unused i, n, relocs, fixp. Rename frags 951160484Sobrien to f to avoid shadowing. 951260484Sobrien (write_object_file): Define fragP only if not BFD_ASSEMBLER or not 951360484Sobrien WORKING_DOT_WORD. Remove unused keep. Only declare punt and 951460484Sobrien punt_it if they will be used. Make i and n unsigned. 951560484Sobrien (fixup_segment): Cast to long and use %ld in error message. 951660484Sobrien * xmalloc.c (xmalloc, xrealloc): Make size argument unsigned. 951760484Sobrien * config/obj-aout.h: Remove nested comment. Add prototype for 951860484Sobrien obj_aout_frob_symbol. 951960484Sobrien (obj_aout_line, obj_aout_desc): Add int argument. 952060484Sobrien * config/obj-ecoff.c: Changed build routines to use an unsigned 952160484Sobrien offset. 952260484Sobrien (add_string): Make len unsigned long. 952360484Sobrien (obj_ecoff_stab): Use %lu in error message. 952460484Sobrien * config/obj-elf.c (obj_elf_common): Comment out unused label 952560484Sobrien allocate_bss. 952660484Sobrien (obj_elf_frob_symbol): Return 0 (currently broken). 952760484Sobrien (obj_elf_desc, obj_elf_version, obj_elf_size, obj_elf_type, 952860484Sobrien obj_elf_ident, obj_elf_weak, obj_elf_local, obj_elf_common, 952960484Sobrien obj_elf_line, obj_elf_previous): Add int argument. 953060484Sobrien (obj_elf_write_symbol_p): Make static. 953160484Sobrien * config/obj-elf.h (obj_elf_write_symbol): Add prototype. 953260484Sobrien * config/tc-hppa.h: Remove declarations of functions declared in 953360484Sobrien read.h. 953460484Sobrien * config/tc-i386.c (ENCODE_RELAX_STATE): Cast to relax_substateT. 953560484Sobrien (s_bss): Add int argument. 953660484Sobrien (fits_in_signed_byte, smallest_imm_type): Make argument unsigned. 953760484Sobrien (dummy): Remove unused function. 953860484Sobrien (md_assemble): Rename local o to op to avoid shadowing. 953960484Sobrien (tc_gen_reloc): Rename local reloc to rel to avoid shadowing. 954060484Sobrien * config/tc-m68k.c (s_data1, s_data2): Add int argument. 954160484Sobrien * config/tc-mips.c (mips_ip, md_apply_fix): Cast to long and use 954260484Sobrien %ld in error messages. 954360484Sobrien * config/tc-sparc.c: Remove duplicate declarations. 954460484Sobrien (getExpression): Rewrite condition to avoid empty conditional 954560484Sobrien body. 954660484Sobrien (s_reg, s_proc, s_reserve, s_common, s_seg, s_xword): Add int 954760484Sobrien argument. 954860484Sobrien 954960484SobrienThu Sep 9 17:10:00 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 955060484Sobrien 955160484Sobrien Changes from Jeff Law: 955260484Sobrien 955360484Sobrien * config/tc-hppa.c (md_assemble): Fix typo. 955460484Sobrien (pa_ip): Delete unused variables and labels. Do not check for 955560484Sobrien unsigned values being < 0, it can't happen. 955660484Sobrien (is_same_frag): Return a value in recursive call case. 955760484Sobrien (pa_callinfo): Delete unused variables and labels. 955860484Sobrien (pa_comm): Likewise. 955960484Sobrien (pa_copyright): Likewise. 956060484Sobrien (pa_export): Likewise. 956160484Sobrien (pa_import): Likewise. 956260484Sobrien (pa_param): Likewise. 956360484Sobrien (pa_space): Likewise. 956460484Sobrien (pa_subspace): Likewise. 956560484Sobrien 956660484SobrienThu Sep 9 15:05:34 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 956760484Sobrien 956860484Sobrien * read.c (get_stab_string_offset, s_stab_generic): If 956960484Sobrien BFD_ASSEMBLER, call subseg_set rather than subseg_new. 957060484Sobrien 957160484SobrienWed Sep 8 15:09:17 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 957260484Sobrien 957360484Sobrien * config/obj-elf.c (obj_elf_section): Set SEC_LOAD when using 957460484Sobrien default flag values. 957560484Sobrien 957660484SobrienTue Sep 7 10:22:52 1993 Stan Shebs (shebs@rtl.cygnus.com) 957760484Sobrien 957860484Sobrien * read.c: (change_to_section): Don't include body if not MANY_SECTIONS. 957960484Sobrien 958060484Sobrien * read.c: (s_stab, s_xstab, s_desc): New functions to parse 958160484Sobrien various stab-related directives. 958260484Sobrien * read.h: (s_stab, s_xstab, s_desc): New function prototypes. 958360484Sobrien * write.c: (merge_data_into_text): Fix ifdef tangle. 958460484Sobrien * config/obj-coffbfd.c (current_stab_symbol): Fake symbol 958560484Sobrien for stab reader to use. 958660484Sobrien * config/obj-coffbfdh.h (obj_symbol_type): Added fields for 958760484Sobrien stab reader, macros to access. 958860484Sobrien 958960484SobrienFri Sep 3 16:44:03 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 959060484Sobrien 959160484Sobrien * config/obj-elf.h (elf_symbol): No longer special-cased on 959260484Sobrien sparcv9, since elf_symbol_type is now independent of size. 959360484Sobrien 959460484Sobrien * config/obj-elf.h (elf_symbol): Fixed name of elf_symbol_type. 959560484Sobrien 959660484Sobrien * config/tc-hppa.h (struct default_subspace_dict, struct 959760484Sobrien default_space_dict): Field "sort" is now unsigned char. 959860484Sobrien 959960484Sobrien * config/tc-hppa.c (pa_def_subspaces, pa_def_spaces): Align 960060484Sobrien columns for easier reading. 960160484Sobrien (bcmp, index): Deleted USG-specific definitions. Should be dealt 960260484Sobrien with in ho-*.h, or in libiberty. Changed mention of index to 960360484Sobrien strchr. 960460484Sobrien (label_symbolP, label_symbol_defined, callinfo_found, 960560484Sobrien within_entry_exit, exit_processing_complete, within_procedure, 960660484Sobrien pa_def_subspaces, pa_def_spaces, pa_pseudo_op_moves_pc, 960760484Sobrien label_symbols_rootP, pa_get_label, pa_label_is_defined, 960860484Sobrien pa_undefine_label): Now static. 960960484Sobrien (movers): Now const, in addition to pointing to const data. 961060484Sobrien * config/tc-hppa.h (label_symbolS_rootP, pa_get_label, 961160484Sobrien pa_label_is_defined, pa_undefine_label, pa_pseudo_op_moves_pc): 961260484Sobrien Delete declarations. 961360484Sobrien 961460484Sobrien Merged more changes from Jeff Law and Pete Hoogenboom: 961560484Sobrien 961660484Sobrien * config/tc-hppa.c (pa_def_subspaces, pa_def_subspaces): Remove 961760484Sobrien entries for .stab and .stabstr. 961860484Sobrien 961960484Sobrien * config/obj-elf.c: (elf_stab_symbol_string): Set the 962060484Sobrien SEC_LOAD attribute for the .stabstr section. 962160484Sobrien (obj_elf_stab_generic): Set the SEC_LOAD attribute for the 962260484Sobrien .stab section. 962360484Sobrien (obj_elf_stab_generic): Change '#if 1' to '#if 0'. 962460484Sobrien (obj_elf_stab_generic): Incorrect byte count on call to 962560484Sobrien md_number_to_chars function. 962660484Sobrien 962760484Sobrien * config/tc-hppa.c (hppa_tc_symbol): Static functions need 962860484Sobrien argument relocation bits too. 962960484Sobrien 963060484Sobrien * config/tc-hppa.c (pa_stringer): Correctly handle escaping 963160484Sobrien characters which should appear unaltered in the output string (for 963260484Sobrien example an escaped double-quote). 963360484Sobrien 963460484Sobrien * config/tc-hppa.c (pa_parse_nonneg_cmpsub_cmpltr): Always 963560484Sobrien initialize name. 963660484Sobrien (pa_parse_neg_cmpsub_cmpltr): Likewise. 963760484Sobrien (pa_parse_nonneg_add_cmpltr): Likewise. 963860484Sobrien (pa_parse_neg_add_cmpltr): Likewise. 963960484Sobrien 964060484Sobrien * config/tc-hppa.h (parse_cons_expression_hppa): Remove prototype 964160484Sobrien for now. 964260484Sobrien (cons_fix_new_hppa): Likewise. 964360484Sobrien * config/tc-hppa.c (md_apply_fix): Fix type of valp to match 964460484Sobrien prototype. 964560484Sobrien 964660484Sobrien * config/tc-hppa.c: Include libhppa.h. 964760484Sobrien 964860484Sobrien * config/tc-hppa.h: Delete extern declarations of functions 964960484Sobrien found in libhppa.h. 965060484Sobrien 965160484Sobrien * config/tc-hppa.c (pa_space): Rework to avoid unwanted #ifdef 965260484Sobrien OBJ_ELF conditionals. 965360484Sobrien * config/tc-hppa.h (LOCAL_LABEL): Correctly identify local labels 965460484Sobrien on the PA. 965560484Sobrien 965660484SobrienThu Sep 2 10:43:57 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 965760484Sobrien 965860484Sobrien * config/tc-mips.c (macro_build): Accept 'z', and ignore it. 965960484Sobrien (macro): Use "z,s,t" for div instructions to match corresponding 966060484Sobrien change in opcode table. 966160484Sobrien (mips_ip): Added 'z'--must be zero register. 966260484Sobrien 966360484SobrienWed Sep 1 15:56:42 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 966460484Sobrien 966560484Sobrien * write.c (write_relocs) [RELOC_EXPANSION_POSSIBLE]: Declare 966660484Sobrien tc_gen_reloc correctly. 966760484Sobrien 966860484Sobrien * configure.in: Use "case" instead of "if" when possible. Rewrote 966960484Sobrien Makefile editing to reduce work done. Treat "hppa*" as "hppa". 967060484Sobrien 967160484SobrienWed Sep 1 12:19:07 1993 K. Richard Pixley (rich@sendai.cygnus.com) 967260484Sobrien 967360484Sobrien * config/obj-coffbfd.c (obj_coff_section): add 'd' as an alias for 967460484Sobrien section type of data. 'd' seems to be used for m88k. 967560484Sobrien 967660484SobrienWed Aug 25 22:33:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 967760484Sobrien 967860484Sobrien * config/tc-mips.c (mips_align, s_stringer, s_cons, s_float_cons, 967960484Sobrien s_mips_space): Set insn_label to NULL to avoid changing it at the 968060484Sobrien next .align statement. 968160484Sobrien (append_insn): Don't swap jal with instruction that sets the 968260484Sobrien register that jal sets. 968360484Sobrien 968460484SobrienWed Aug 25 16:15:57 1993 K. Richard Pixley (rich@sendai.cygnus.com) 968560484Sobrien 968660484Sobrien * configure.in: recognize m88110. 968760484Sobrien 968860484SobrienWed Aug 25 13:37:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 968960484Sobrien 969060484Sobrien Merged changes from Pete Hoogenboom and Jeff Law at Utah: 969160484Sobrien * config/tc-hppa.c (pa_build_unwind_subspace): SEC_ALLOC should 969260484Sobrien not be on for .hppa_unwind. 969360484Sobrien (md_pseudo_table): .PARAM and .param are valid pseudo-ops for GAS. 969460484Sobrien (pa_param): New function to handle .PARAM directives. 969560484Sobrien (pa_ip): Pass "isbranch" argument down to pa_parse_*_compltr 969660484Sobrien functions. Handle '|' for movb; allow movb,n. 969760484Sobrien (pa_parse_nonneg_cmpsub_cmpltr): Delete old useless 969860484Sobrien version. Handle cases where no completer exists for 969960484Sobrien comb,n or addb,n. 970060484Sobrien (pa_parse_neg_cmpsub_cmpltr): Handle cases where no 970160484Sobrien completer exists for comb,n or addb,n. Make logic 970260484Sobrien mirror that of pa_parse_nonneg_cmpsub_cmpltr. 970360484Sobrien (pa_parse_nonneg_add_cmpltr): Likewise. 970460484Sobrien (pa_parse_neg_add_cmpltr): Likewise. 970589857Sobrien * config/tc-hppa.h (pa_param): Declare. 970660484Sobrien 970760484SobrienTue Aug 24 15:41:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 970860484Sobrien 970960484Sobrien * config/tc-hppa.c (hppa_tc_make_symextn_section): Now static. 971060484Sobrien Added forward declaration. 971160484Sobrien 971260484Sobrien Merged changes from Pete Hoogenboom and Jeff Law at Utah: 971360484Sobrien 971460484Sobrien * config/obj-elf.c (elf_frob_file): Arguments were incorrect on 971560484Sobrien call to elf_tc_make_sections. 971660484Sobrien (obj_elf_version): A .note section shouldn't have the SEC_ALLOC 971760484Sobrien attribute. 971860484Sobrien 971960484Sobrien * config/tc-hppa.c (hppa_tc_make_sections): Add some processing to 972060484Sobrien handle symbol extension sections. 972160484Sobrien 972260484Sobrien * config/tc-hppa.c (pa_build_symextn_section): New function to 972360484Sobrien create a symbol extension section. 972460484Sobrien (pa_export_args): Make call to pa_build_symextn_section. 972560484Sobrien (hppa_tc_symbol, hppa_tc_make_sections, 972660484Sobrien hppa_tc_make_symextn_section): New functions. 972760484Sobrien * config/tc-hppa.h: Update elf_tc_symbol and elf_tc_make_sections 972860484Sobrien macros. 972960484Sobrien 973060484Sobrien * read.c (emit_expr): Place check for TC_CONS_FIX_NEW in the 973160484Sobrien BFD_ASSEMBLER branch as well. 973260484Sobrien 973360484Sobrien * config/tc-hppa.h: If ELF is the target object format, define 973460484Sobrien some ELF- and hppa-specific types and constants. 973560484Sobrien 973660484Sobrien * config/tc-hppa.c (getExpression): Fix a typo. 973760484Sobrien 973860484Sobrien * read.c (read_a_source_file): Use TC_EQUAL_IN_INSN to determine 973960484Sobrien if a `=' is part of an instruction. 974060484Sobrien (read_a_source_file): Handle case where end-of-line markers are 974160484Sobrien also used within instructions. 974260484Sobrien * config/tc-hppa.h (TC_EQUAL_IN_INSN, TC_EOL_IN_INSN): Define. 974360484Sobrien 974460484Sobrien * config/tc-hppa.c (md_apply_fix_1): Keep relocations for 974560484Sobrien out-of-range branches/'calls using "bl" or calls which may need 974660484Sobrien argument relocation stubs. Do not need/keep relocations for 974760484Sobrien conditional branches. 974860484Sobrien (elf_hppa_final_processing): Fix calculation of function size. 974960484Sobrien 975060484Sobrien * config/obj-elf.c (obj_elf_version): Mark .note section as 975160484Sobrien READONLY. 975260484Sobrien 975360484Sobrien * config/tc-hppa.c (parse_cons_expression_hppa): Pass exp, not the 975460484Sobrien address of exp, to expression. 975560484Sobrien (pa_build_unwind_subspace): Turn SEC_HAS_CONTENTS flag on. 975660484Sobrien (md_apply_fix_1): Delete unwanted comments. 975760484Sobrien (process_exit): Symbols marking the end of a function are always 975860484Sobrien BSF_LOCAL. 975960484Sobrien 976060484Sobrien * config/tc-hppa.c: Include elf32-hppa.h from BFD tree. 976160484Sobrien (pa_space): Declare and initialize gdb_section. 976260484Sobrien 976360484Sobrien * config/obj-elf.c (elf_frob_file): Change 976460484Sobrien elf_tc_final_processing_hook to elf_tc_final_processing. 976560484Sobrien 976660484Sobrien * config/tc-hppa.c (fix_new_hppa): Fix argument list to match 976760484Sobrien argument type declarations. 976860484Sobrien (getExpression): Fix typo. 976960484Sobrien (pa_export_args): Change elf_symbol_type to elf32_symbol_type. 977060484Sobrien (elf_hppa_final_processing): Likewise. Name changed from 977160484Sobrien elf_hppa_final_processing_hook. 977260484Sobrien (start_symbol_root, start_symbol_last): Deleted. 977360484Sobrien 977460484Sobrien * config/tc-hppa.h (TC_PARSE_CONS_EXPRESSION): Fix typo. 977560484Sobrien 977660484Sobrien * config/tc-hppa.h: Replace "symbolS" with "struct symbol" to 977760484Sobrien avoid changing include ordering. 977860484Sobrien 977960484Sobrien * config/tc-hppa.c (pa_ip, case 'y'): Handle just like 't'. 978060484Sobrien 978160484SobrienMon Aug 23 12:47:58 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 978260484Sobrien 978360484Sobrien * config/tc-mips.c (set_at): Added unsignedp argument. Use 978460484Sobrien load_register. 978560484Sobrien (set_at_unsigned): Removed; changed callers to use set_at. 978660484Sobrien (load_register): Removed unused ip argument. Changed callers. 978760484Sobrien (append_insn): Don't swap branch and branch likely. 978860484Sobrien (macro_build): Handle 'u'. 978960484Sobrien (load_register): Handle 64 bit constants. 979060484Sobrien (macro): Added M_DABS, removed M_ABSU. Numerous changes to 979160484Sobrien support 64 bit constants. 979260484Sobrien (mips_ip): Use hex constants in range checks for clarity. 979360484Sobrien (md_number_to_chars): Support 8 byte values. 979460484Sobrien 979560484SobrienFri Aug 20 16:50:59 1993 K. Richard Pixley (rich@sendai.cygnus.com) 979660484Sobrien 979760484Sobrien * config/tc-m88k.h: updated copyrights. 979860484Sobrien (TC_CONS_RELOC): declare to be RELOC_32. 979960484Sobrien 980060484SobrienFri Aug 20 11:16:44 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 980160484Sobrien 980260484Sobrien * config/tc-mips.c (mips_isa): New static variable. 980360484Sobrien (md_begin): Initialize mips_isa based on TARGET_CPU. Don't sanity 980460484Sobrien check macros. Set text alignment and GP size here. 980560484Sobrien (md_assemble): Don't set text alignment and GP size here. 980660484Sobrien (append_insn): Don't insert NOPs for load delays if mips_isa >= 2. 980760484Sobrien Use the right mask and shift for WRITE_FPR_T and WRITE_FPR_S. Add 980860484Sobrien a NOP after a branch likely. 980960484Sobrien (mips_emit_delays): Don't insert NOPS for load delays if mips_isa 981060484Sobrien >= 2. 981160484Sobrien (macro): Support r6000 and r4000 macros. 981260484Sobrien (mips_ip): Check insn ISA level against mips_isa before using it. 981360484Sobrien Added 'x' case for ignored register. 981460484Sobrien (md_parse_option): Handle -mipsN and -mcpu=XX. 981560484Sobrien 981660484SobrienFri Aug 20 01:26:52 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 981760484Sobrien 981860484Sobrien * config/tc-i386.c (md_pseudo_table) [OBJ_ELF]: Handle ".zero". 981960484Sobrien 982060484SobrienThu Aug 19 12:15:18 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 982160484Sobrien 982260484Sobrien * config/tc-sparc.c (s_local): Function moved and renamed... 982360484Sobrien * config/obj-elf.c (obj_elf_local): ...to here. 982460484Sobrien * config/tc-sparc.c (md_pseudo_table), config/obj-elf.c 982560484Sobrien (obj_pseudo_table): Move handling of ".local". 982660484Sobrien 982760484Sobrien * tc.h (md_parse_option): Don't declare if defined as a macro. 982860484Sobrien 982960484Sobrien * config/tc-i386.h (NO_RELOC) [BFD_ASSEMBLER]: Define as 983060484Sobrien BFD_RELOC_NONE. 983160484Sobrien (md_parse_option): New macro, converted from function. 983260484Sobrien * config/tc-i386.c (md_parse_option): Function deleted. 983360484Sobrien (comment_chars) [OBJ_ELF]: Include "/". 983460484Sobrien (line_comment_chars) [OBJ_ELF || TE_I386AIX]: Don't include "/". 983560484Sobrien (md_assemble): Cast 0xe9 to char explicitly, to avoid compiler 983660484Sobrien warning. 983760484Sobrien (md_assemble, md_estimate_size_before_relax, md_create_long_jump): 983860484Sobrien Call reloc for fix_new type, or use correct enumerator, instead of 983960484Sobrien always using NO_RELOC. 984060484Sobrien (i386_operand): Change "ifndef I386COFF" to "ifdef OBJ_AOUT" for 984160484Sobrien tests for valid section. 984260484Sobrien (md_convert_frag) [BFD_ASSEMBLER]: Compensate for frag start 984360484Sobrien address. 984460484Sobrien (md_apply_fix_1) [BFD_ASSEMBLER]: For pc-relative reloc with 984560484Sobrien symbol, compensate for location of reloc. 984660484Sobrien (reloc, BFD_RELOC_32, BFD_RELOC_32_PCREL) [!BFD_ASSEMBLER]: Define 984760484Sobrien to return zero. 984860484Sobrien 984960484SobrienWed Aug 18 16:51:29 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 985060484Sobrien 985160484Sobrien * config/obj-elf.c: Undef NO_RELOC before including aout/aout64.h. 985260484Sobrien (obj_elf_weak): New function. 985360484Sobrien (obj_pseudo_table): Handle ".weak". 985460484Sobrien (obj_elf_section): If section directive includes a string, ignore 985560484Sobrien it for now. Accept "progbits" flag. 985660484Sobrien (obj_elf_type): Accept `@' before flag name. 985760484Sobrien 985860484Sobrien * write.c (relax_and_size_seg) [BFD_ASSEMBLER]: Get rid of `if(1)' 985960484Sobrien condition. 986060484Sobrien (fixup_segment) [BFD_ASSEMBLER]: Use bfd_is_com_section, rather 986160484Sobrien than checking for bfd_com_section directly. 986260484Sobrien (fixup_segment): Simplify range check. 986360484Sobrien (fixup_segment) [OBJ_COFF && TC_I960]: Simplify cpp condition 986460484Sobrien test. 986560484Sobrien 986660484Sobrien * symbols.h (S_SET_WEAK): Declare. 986760484Sobrien * symbols.c (S_SET_WEAK): New function. 986860484Sobrien (S_SET_EXTERNAL, S_CLEAR_EXTERNAL): Don't bother with BSF_EXPORT, 986960484Sobrien it's not a separate flag any more. Clear BSF_WEAK. 987060484Sobrien 987160484Sobrien * read.c (potable): Treat "string" like "asciz". 987260484Sobrien 987360484SobrienWed Aug 18 15:30:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 987460484Sobrien 987560484Sobrien * config/tc-mips.c (append_insn): Don't swap branch instructions 987660484Sobrien if .set nobopt or .set volatile. 987760484Sobrien (gp_reference): .lit8 and .lit4 are accessed via the GP register. 987860484Sobrien (macro): Added cases M_LI_S, M_LI_SS. Fixed M_LI_D and M_LI_DD. 987960484Sobrien (mips_ip): Added cases 'F', 'L', 'f', 'l' for floating point. 988060484Sobrien * config/obj-ecoff.c: Renamed some variables to avoid shadow 988160484Sobrien warnings. 988260484Sobrien 988360484SobrienMon Aug 16 14:16:02 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) 988460484Sobrien 988560484Sobrien * config/obj-coff.h (S_IS_COMMON): add missing backslash 988660484Sobrien 988760484Sobrien * configure.in (z8k-*-{coff,sim}): use coffbfd for this target 988860484Sobrien 988960484SobrienThu Aug 12 11:47:58 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 989060484Sobrien 989160484Sobrien * config/tc-mips.c (mips_ip): Suggested by 989260484Sobrien davidj@ICSI.Berkeley.EDU (David Johnson): Don't accept symbolic 989360484Sobrien names for 'E' and 'G' argument types (coprocessor registers) and 989460484Sobrien don't warn if $1 is used on the coprocessor. 989560484Sobrien (macro): Handle M_{L,S}WC{0,2,3}_AB correctly. 989660484Sobrien 989760484SobrienMon Aug 9 12:09:14 1993 Doug Evans (dje@canuck.cygnus.com) 989860484Sobrien 989960484Sobrien * read.c (emit_expr): Use BFD_RELOC_16 for 2-byte values. 990060484Sobrien * config/tc-sparc.c (md_apply_fix, tc_gen_reloc): Handle 990160484Sobrien BFD_RELOC_16. 990260484Sobrien * config/tc-sparc.h (WORKING_DOT_WORD): Define. 990360484Sobrien 990460484SobrienMon Aug 9 13:36:22 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 990560484Sobrien 990660484Sobrien * write.c (merge_data_into_text): Define only if BFD_ASSEMBLER is 990760484Sobrien defined or BFD is not. 990860484Sobrien (relax_and_size_all_segments): Declare local variable fragP. 990960484Sobrien 991060484SobrienFri Aug 6 15:22:53 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 991160484Sobrien 991260484Sobrien * config/tc-sparc.c (md_apply_fix, case BFD_RELOC_32): Fill in 991360484Sobrien bytes with real values, not zeros. 991460484Sobrien 991560484SobrienFri Aug 6 10:57:59 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 991660484Sobrien 991760484Sobrien * configure.in (mips-*-riscos*, mips-*-sysv*): New (untested) 991860484Sobrien targets, using ecoff and mips-big. 991960484Sobrien 992060484Sobrien * config/tc-mips.c (mips_ip): From davidj@ICSI.Berkeley.EDU (David 992160484Sobrien Johnson): Added case for 'C' for coprocessor instruction codes. 992260484Sobrien 992360484SobrienThu Aug 5 13:08:56 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 992460484Sobrien 992560484Sobrien * config/tc-sparc.c (md_apply_fix, case BFD_RELOC_64): Fill in 992660484Sobrien bytes with real values, not zeros. 992760484Sobrien (md_pseudo_table): Call cons for .uaxword. 992860484Sobrien 992960484Sobrien * config/obj-elf.c (obj_pseudo_table): Handle ".8byte". 993060484Sobrien 993160484Sobrien * read.c (emit_expr): Use BFD_RELOC_64 for 8-byte expressions. 993260484Sobrien 993360484Sobrien * write.c (write_object_file): Test DEBUG_SYMS instead of DEBUG 993460484Sobrien for verifying symbol chain. 993560484Sobrien (merge_data_into_text, relax_and_size_all_segments): New 993660484Sobrien functions, split out from write_object_file. 993760484Sobrien 993860484SobrienTue Aug 3 15:43:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 993960484Sobrien 994060484Sobrien * config/obj-elf.c (obj_elf_stab_generic, in disabled code): If 994160484Sobrien debug section is new, allocate an extra 12 bytes at its start. If 994260484Sobrien ".stabs" type is N_SO, fill in filename symbol field of that first 994360484Sobrien entry. Return early if "goof", to simplify later code slightly. 994460484Sobrien (adjust_stab_sections): New function. 994560484Sobrien (elf_frob_file): Apply adjust_stab_sections to each section. 994660484Sobrien 994760484Sobrien * config/obj-elf.c (obj_elf_section, obj_elf_previous): No longer 994860484Sobrien static. 994960484Sobrien * config/obj-elf.h (obj_elf_section, obj_elf_previous): Declare. 995060484Sobrien * config/tc-sparc.c (md_pseudo_table): Call them for "pushsection" 995160484Sobrien and "popsection", and call cons for "uaword" and "uahalf". 995260484Sobrien 995360484Sobrien * config/obj-elf.c (obj_elf_version): Use English in error 995460484Sobrien messages. 995560484Sobrien 995660484SobrienTue Aug 3 11:29:06 1993 Ian Lance Taylor (ian@cygnus.com) 995760484Sobrien 995860484Sobrien * config/obj-ecoff.c: Updated for BFD ECOFF changes. Now gets the 995960484Sobrien swapping routines and external structure sizes via the 996060484Sobrien ecoff_backend information. No longer includes coff/mips.h. 996160484Sobrien 996260484SobrienMon Aug 2 17:35:48 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 996360484Sobrien 996460484Sobrien * config/obj-ecoff.c (get_tag): Save tag name in permanent memory 996560484Sobrien and in hash_ptr->string. 996660484Sobrien 996760484Sobrien * app.c (do_scrub_next_char): Reset state to 0 after .appline if 996860484Sobrien file name is not seen. 996960484Sobrien 997060484SobrienMon Aug 2 11:51:41 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 997160484Sobrien 997260484Sobrien * config/tc-sparc.c (md_apply_fix, case BFD_RELOC_64): New case, 997360484Sobrien parallel to BFD_RELOC_32. 997460484Sobrien (tc_gen_reloc): Accept BFD_RELOC_64. 997560484Sobrien 997660484SobrienThu Jul 29 22:21:28 1993 Ian Lance Taylor (ian@cygnus.com) 997760484Sobrien 997860484Sobrien * write.c: Don't use short int in a prototype. 997960484Sobrien 998060484Sobrien * expr.c (operand): Make return value simply depend on contents of 998160484Sobrien returned expression. 998260484Sobrien 998360484SobrienThu Jul 29 18:38:37 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) 998460484Sobrien 998560484Sobrien * configure.in: sparc*-aout and sparc*-vxworks are BFD assemblers 998660484Sobrien 998760484SobrienThu Jul 29 18:38:37 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) 998860484Sobrien 998960484Sobrien * config/ho-sunos.h: remove some old function decls that conflict 999060484Sobrien w/ ANSI, and which weren't needed anyway 999160484Sobrien 999260484SobrienWed Jul 28 16:34:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 999360484Sobrien 999460484Sobrien * config/obj-elf.h (obj_frob_symbol): Renamed from tc_frob_symbol, 999560484Sobrien and disabled since it breaks Ian's new symbol-value code. 999660484Sobrien 999760484Sobrien * expr.c (integer_constant): Accept more digits if BFD64. 999860484Sobrien 999960484SobrienWed Jul 28 11:30:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 1000060484Sobrien 1000160484Sobrien * config/tc-m68k.c (m68k_ip): If we have a normal constant when we 1000260484Sobrien expect a bignum, turn it into a bignum. Output extra zeroes 1000360484Sobrien before a short bignum, rather than after. 1000460484Sobrien 1000560484SobrienTue Jul 27 15:54:27 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1000660484Sobrien 1000760484Sobrien * symbols.c (symbol_new): Conditionalize verify_symbol_chain call 1000860484Sobrien on DEBUG_SYMS, not DEBUG. 1000960484Sobrien (symbol_remove): Likewise. 1001060484Sobrien (symbol_insert): Likewise. 1001160484Sobrien 1001260484SobrienTue Jul 27 08:45:05 1993 Ian Lance Taylor (ian@cygnus.com) 1001360484Sobrien 1001460484Sobrien * config/tc-mips.c (mips_optimize): New static variable. 1001560484Sobrien (append_insn): If mips_optimize == 0, always insert NOP 1001660484Sobrien instructions. If mips_optimize < 2, don't swap branches. 1001760484Sobrien (md_parse_option): If -Ox or -gx, set mips_optimize accordingly. 1001860484Sobrien 1001960484SobrienMon Jul 26 18:02:43 1993 K. Richard Pixley (rich@sendai.cygnus.com) 1002060484Sobrien 1002160484Sobrien * Makefile.in (clean): if testsuite does not exist, then skip it. 1002260484Sobrien 1002360484SobrienFri Jul 23 14:13:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 1002460484Sobrien 1002560484Sobrien * config/tc-mips.c (prev_insn_unreordered, 1002660484Sobrien prev_prev_insn_unreordered): New static variables. 1002760484Sobrien (append_insn): Don't swap branch instruction if 1002860484Sobrien prev_prev_insn_unreordered (see comment). 1002960484Sobrien (mips_no_prev_insn): Clear the unreordered variables. 1003060484Sobrien (s_mipsset): When turning on reordering, set the unreordered 1003160484Sobrien variables. 1003260484Sobrien 1003360484SobrienFri Jul 23 13:09:44 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1003460484Sobrien 1003560484Sobrien * config/obj-elf.c (obj_elf_section): Sections ".init" and ".fini" 1003660484Sobrien are also magic, and have special default flag settings. 1003760484Sobrien (obj_elf_frob_symbol): Since the return value from this function 1003860484Sobrien isn't used, don't bother calling obj_elf_write_symbol_p, since it 1003960484Sobrien doesn't accomplish anything else. 1004060484Sobrien 1004160484Sobrien * config/tc-sparc.c (md_section_align): Round up section size only 1004260484Sobrien for a.out format. 1004360484Sobrien 1004460484Sobrien * symbols.c: Don't define DEBUG by default. 1004560484Sobrien 1004660484SobrienThu Jul 22 12:09:41 1993 Ian Lance Taylor (ian@cygnus.com) 1004760484Sobrien 1004860484Sobrien * write.c (fix_new_exp): Handle a O_uminus expression. 1004960484Sobrien 1005060484Sobrien * expr.c (expr): Don't let absolute_section override 1005160484Sobrien undefined_section for the return value. 1005260484Sobrien 1005360484Sobrien * read.c (read_a_source_file): In NO_PSEUDO_DOT case, if we find a 1005460484Sobrien pseudo-op with a poc_handler field of NULL, ignore it and treat it 1005560484Sobrien as an instruction instead. 1005660484Sobrien * config/tc-m88k.c (md_pseudo_table): Add "set" with a NULL 1005760484Sobrien poc_handler field. 1005860484Sobrien 1005960484Sobrien * config/tc-h8500.c (md_begin): Use a local variable when 1006060484Sobrien initializing md_relax_table to avoid warnings about modifying a 1006160484Sobrien supposedly const data structure. 1006260484Sobrien 1006360484SobrienThu Jul 22 10:58:51 1993 Brendan Kehoe (brendan@lisa.cygnus.com) 1006460484Sobrien 1006560484Sobrien * config/obj-aout.c: Only include aout/aout64.h if BFD_ASSEMBLER 1006660484Sobrien is defined. 1006760484Sobrien 1006860484SobrienWed Jul 21 17:32:02 1993 Fred Fish (fnf@deneb.cygnus.com) 1006960484Sobrien 1007060484Sobrien * configure.in (case ${host}): Map *-*-sysv4* to gas_host=sysv. 1007160484Sobrien * configure.in (case ${generic_target}): Add i[34]86-*-sysv4* 1007260484Sobrien case to set obj_format=elf. Must go before i386-*-sysv* case that 1007360484Sobrien sets obj_format=coffbsd. Add *-*-sysv4* to *-*-elf and 1007460484Sobrien *-*-solaris case, and move to before *-sysv* case that wants to 1007560484Sobrien set obj_format to coff. 1007660484Sobrien * config/tc-i386.c (i386_operand): Change all 'exp.X_op' to 1007760484Sobrien 'exp->X_op'. 1007860484Sobrien * config/tc-i386.c (md_apply_fix): Fix valp to be 'valueT *' for 1007960484Sobrien BFD_ASSEMBLER case. 1008060484Sobrien 1008160484SobrienWed Jul 21 12:47:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 1008260484Sobrien 1008360484Sobrien * config/obj-aout.c: Include aout/aout64.h. 1008460484Sobrien (obj_aout_frob_symbol): Set BSF_DEBUGGING for a constructor 1008560484Sobrien symbol, so that BFD doesn't tamper with the type. 1008660484Sobrien 1008760484Sobrien * read.c (read_a_source_file): If NO_PSEUDO_DOT is defined, look 1008860484Sobrien up opcodes as pseudo-ops even if they don't start with '.'. 1008960484Sobrien * config/tc-m88k.h (NO_PSEUDO_DOT): Define. 1009060484Sobrien * config/tc-m88k.c (md_assemble): Removed special pseudo-op 1009160484Sobrien handling. 1009260484Sobrien (md_apply_fix): Set fx_offset to the upper 16 bits of the reloc. 1009360484Sobrien Output the low 16 bits for RELOC_HI16, not the high 16 bits. 1009460484Sobrien * config/obj-coffbfd.c (do_relocs_for): If TC_M88K, set the 1009560484Sobrien r_offset field of the reloc to the fixup offset. 1009660484Sobrien (fixup_segments): If TC_M88K, don't warn about fixup overflows. 1009760484Sobrien * doc/as.texinfo: Minor updates. 1009860484Sobrien 1009960484SobrienTue Jul 20 19:28:56 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 1010060484Sobrien 1010160484Sobrien * Extensive changes to permit symbols to contain any expression 1010260484Sobrien type and to delay the computation of the expression until the 1010360484Sobrien value is actually needed. This permits setting symbols to values 1010460484Sobrien calculated based on object code size. Expressions were changed to 1010560484Sobrien no longer be in a section, to stop the overloading of segment and 1010660484Sobrien expression type that previously occurred. 1010760484Sobrien 1010860484Sobrien * as.c (big_section, pass1_section, diff_section, absent_section): 1010960484Sobrien Removed. 1011060484Sobrien (expr_section): Added (used for dummy symbols which hold 1011160484Sobrien intermediate expression values). 1011260484Sobrien (perform_an_assembly_pass): Create expr_section, do not create the 1011360484Sobrien sections now removed. 1011460484Sobrien * as.h (segT): Removed SEG_ABSENT, SEG_PASS1, SEG_BIG, and 1011560484Sobrien SEG_DIFFERENCE. Added SEG_EXPR. 1011660484Sobrien (SEG_NORMAL): Corresponding changes. 1011760484Sobrien * subsegs.c (seg_name, subsegs_begin): Changed accordingly. 1011860484Sobrien * write.c (write_object_file): Ditto. 1011960484Sobrien * config/obj-aout.c (seg_N_TYPE): Ditto. 1012060484Sobrien * config/obj-bout.c (seg_N_TYPE): Ditto. 1012160484Sobrien * config/obj-coff.c (seg_N_TYPE): Ditto. 1012260484Sobrien * config/obj-coffbfd.c (seg_N_TYPE): Ditto. 1012360484Sobrien * config/obj-vms.c (seg_N_TYPE): Ditto. 1012460484Sobrien 1012560484Sobrien * expr.h (operatorT): Moved in from expr.c, added some values. 1012660484Sobrien (expressionS): Added X_op field, removed X_seg field; renamed 1012760484Sobrien X_subtract_symbol to X_op_symbol. 1012860484Sobrien * expr.c: Extensive changes to assign expression types rather than 1012960484Sobrien sections and to simplify the parsing. 1013060484Sobrien * write.c (fix_new_internal): New static function. 1013160484Sobrien (fix_new): Removed sub_symbol argument. 1013260484Sobrien (fix_new_exp): New function, takes expression argument. 1013360484Sobrien * write.h: Prototype changes for fix_new and fix_new_exp. 1013460484Sobrien * cond.c (s_if): Changed accordingly. 1013560484Sobrien * read.c (s_lsym, pseudo_set, emit_expr, parse_bitfield_cons, 1013660484Sobrien parse_repeat_cons, get_segmented_expression, 1013760484Sobrien get_known_segmented_expression, get_absolute_expression): Ditto. 1013860484Sobrien * symbols.c (resolve_symbol_value, S_GET_VALUE, S_SET_VALUE): 1013960484Sobrien Ditto. 1014060484Sobrien * write.c (write_object_file): Ditto. 1014160484Sobrien * config/obj-coff.c (obj_coff_def, obj_coff_val): Ditto. 1014260484Sobrien * config/obj-coffbfd.c (obj_coff_def, obj_coff_val, 1014360484Sobrien obj_coff_endef, yank_symbols): Ditto. 1014460484Sobrien * config/obj-elf.c (obj_elf_stab_generic, obj_elf_size): Ditto. 1014560484Sobrien * config/tc-a29k.c (md_assemble, parse_operand, machine_ip, 1014660484Sobrien print_insn, md_operand): Ditto. 1014760484Sobrien * config/tc-h8300.c (parse_exp, colonmod24, check_operand, 1014860484Sobrien do_a_fix_imm, build_bytes): Ditto. 1014960484Sobrien * config/tc-h8500.c (parse_exp, skip_colonthing, parse_reglist, 1015060484Sobrien get_specific, check, insert, md_convert_frag): Ditto. 1015160484Sobrien * config/tc-hppa.c (the_insn, fix_new_hppa, cons_fix_new_hppa, 1015260484Sobrien md_assemble, pa_ip, getExpression, getAbsoluteExpression, 1015360484Sobrien evaluateAbsolute, pa_build_unwind_subspace, pa_entry, 1015460484Sobrien process_exit): Ditto. 1015560484Sobrien * config/tc-hppa.h (STAB_FIXUP, is_DP_relative, is_PC_relative, 1015660484Sobrien is_complex): Ditto. 1015760484Sobrien * config/tc-i386.c (pe, md_assemble, i386_operand, 1015860484Sobrien md_estimate_size_before_relax, md_create_long_jump): Ditto. 1015960484Sobrien * config/tc-i860.c (md_assemble, getExpression, print_insn): 1016060484Sobrien Ditto. 1016160484Sobrien * config/tc-i960.c (parse_expr, subs, segs, md_convert_frag, 1016260484Sobrien get_cdisp, mem_fmt, parse_ldconst, relax_cobr, s_sysproc, 1016360484Sobrien i960_handle_align): Ditto. 1016460484Sobrien * config/tc-m68k.c (struct m68k_exp, struct m68k_it, seg, op, 1016560484Sobrien subs, add_fix, isvar, m68k_ip, md_assemble, md_convert_frag_1, 1016660484Sobrien md_estimate_size_before_relax, md_create_long_jump, get_num): 1016760484Sobrien Ditto. 1016860484Sobrien * config/tc-m88k.c (md_assemble, get_imm16, get_pcr, 1016960484Sobrien md_create_short_jump, md_create_long_jump): Ditto. 1017060484Sobrien * config/tc-mips.c (md_assemble, append_insn, gp_reference, 1017160484Sobrien macro_build, macro, my_getExpression): Ditto. Also removed 1017260484Sobrien get_optional_absolute_expression; just use get_absolute_expression 1017360484Sobrien instead. 1017460484Sobrien * config/tc-ns32k.c (get_addr_mode, evaluate_expr, convert_iif, 1017560484Sobrien fix_new_ns32k, fix_new_ns32k_exp, cons_fix_new_ns32k): Ditto. 1017660484Sobrien * config/tc-ns32k.h (fix_new_ns32k prototype): Ditto. 1017760484Sobrien * config/tc-sh.c (parse_exp, check, insert, md_convert_frag): 1017860484Sobrien Ditto. 1017960484Sobrien * config/tc-sparc.c (md_assemble, sparc_ip, getExpression, 1018060484Sobrien print_insn): Ditto. 1018160484Sobrien * config/tc-tahoe.c (struct top, md_estimate_size_before_relax, 1018260484Sobrien tip_op, md_assemble): Ditto. 1018360484Sobrien * config/tc-vax.c (seg_of_operand, md_assemble, 1018460484Sobrien md_estimate_size_before_relax, md_create_long_jump): Ditto. 1018560484Sobrien * config/tc-z8k.c (parse_exp, check_operand, newfix): Ditto. 1018660484Sobrien 1018760484SobrienTue Jul 20 12:17:16 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) 1018860484Sobrien 1018960484Sobrien * configure.in: i386-lynx is the same as i386-coff 1019060484Sobrien 1019160484SobrienMon Jul 19 15:21:20 1993 Ken Raeburn (raeburn@rtl.cygnus.com) 1019260484Sobrien 1019360484Sobrien * config/obj-elf.c (obj_elf_previous): New function. 1019460484Sobrien (previous_section, previous_subsection): New vars. 1019560484Sobrien (obj_elf_section): Save current place in case DWARF code wants us 1019660484Sobrien to pop back to it. Handle unquoted section name as well as quoted 1019760484Sobrien section name. Don't crash on invalid strings. 1019860484Sobrien (obj_pseudo_table): Handle new pseudos "previous", "2byte", and 1019960484Sobrien "4byte". 1020060484Sobrien 1020160484Sobrien * config/obj-elf.h: Don't include struc-symbol.h. 1020260484Sobrien (obj_elf_frob_symbol): Declare arg as struct symbol *. 1020360484Sobrien 1020489857Sobrien * config/tc-sparc.h (LOCAL_LABEL) [OBJ_ELF]: Local labels can start with 1020560484Sobrien "L" or "_.L_". 1020660484Sobrien 1020760484Sobrien * write.c (write_relocs): New function, split off from 1020860484Sobrien write_contents. Use memset instead of bzero. 1020960484Sobrien (write_object_file): Apply write_relocs to each section before 1021060484Sobrien applying write_contents. 1021160484Sobrien 1021260484Sobrien * read.c (read_begin): Call obstack_begin with values closer to 1K 1021360484Sobrien multiples. 1021460484Sobrien (read_a_source_file, big_cons, float_cons): Use memcpy instead of 1021560484Sobrien bcopy. 1021660484Sobrien 1021760484SobrienMon Jul 19 14:30:00 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 1021860484Sobrien 1021960484Sobrien * config/tc-m68k.c (m68k_ip_op): Don't decrement strend when 1022060484Sobrien calculating opP->isiz; this permits the expression size to be 1022160484Sobrien determined as well, later on. 1022260484Sobrien 1022360484Sobrien * expr.c (clean_up_expression): Don't cancel the subtraction of 1022460484Sobrien undefined symbols. 1022560484Sobrien 1022660484Sobrien * read.c (s_data), config/obj-coffbfd.c (obj_coff_data): If -R, 1022760484Sobrien switch to text section rather than data section. 1022860484Sobrien 1022960484SobrienMon Jul 19 12:35:39 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1023060484Sobrien 1023160484Sobrien * config/tc-m68k.c (m68k_ip, case AINDX): Add 6 to operand 1023260484Sobrien expression (to take the pc-rel instruction itself into account) 1023360484Sobrien before using the expression, instead of after. 1023460484Sobrien 1023560484SobrienFri Jul 16 08:56:04 1993 Ian Lance Taylor (ian@cygnus.com) 1023660484Sobrien 1023760484Sobrien * read.c (float_cons): Simplified parsing logic. If 1023860484Sobrien REPEAT_CONS_EXPRESSIONS is defined, accept a repeat count. 1023960484Sobrien 1024060484Sobrien * symbols.c (colon): Rather than a special case for TC_HPPA, 1024160484Sobrien use new macro tc_frob_label. 1024260484Sobrien * config/tc-hppa.h (tc_frob_label): Define. 1024360484Sobrien 1024460484Sobrien * config/tc-mips.c: Many changes to support simple assembler 1024560484Sobrien optimization. 1024660484Sobrien (insn_label, prev_insn, prev_prev_insn, dummy_opcode, 1024760484Sobrien prev_insn_valid, prev_insn_frag, prev_insn_where, 1024860484Sobrien prev_insn_fixp, prev_insn_is_delay_slot): New static 1024960484Sobrien variables. 1025060484Sobrien (insn_uses_reg, mips_no_prev_insn, mips_emit_delays, 1025160484Sobrien mips_align, s_stringer, s_mips_space): New static functions. 1025260484Sobrien (mips_define_label): New global function. 1025360484Sobrien (md_pseudo_table): For "ascii", "asciz", "asciiz", call 1025460484Sobrien s_stringer. Changed argument to float_cons from 0 or 1 to 'f' 1025560484Sobrien or 'd'. For "space" call s_mips_space. 1025660484Sobrien (md_begin): Call mips_no_prev_insn. 1025760484Sobrien (append_insn): Only insert necessary NOP instructions. 1025860484Sobrien (macro): Call mips_emit_delays before setting mips_noreorder. 1025960484Sobrien Increment and decrement mips_noreorder rather than using 1026060484Sobrien save_reorder_condition. Don't bother to use noreorder in 1026160484Sobrien M_L_DOB and M_L_DAB, since append_insn will not insert a NOP. 1026260484Sobrien (md_atof): Handle floating point numbers correctly for both 1026360484Sobrien big and little endian targets. 1026460484Sobrien (s_align, s_cons): Call mips_align rather than frag_align. 1026560484Sobrien (s_change_seg, s_cons): Call mips_emit_delays. 1026660484Sobrien (s_float_cons): Let float_cons do the work. 1026760484Sobrien (s_mipsset): Call mips_emit_delays when setting noreorder. 1026860484Sobrien * config/tc-mips.h (tc_frob_label): Define to be 1026960484Sobrien mips_define_label. 1027060484Sobrien 1027160484Sobrien * config/obj-ecoff.c (ecoff_build_symbols, ecoff_build_procs, 1027260484Sobrien ecoff_frob_files): Consistently use S_GET_VALUE rather than 1027360484Sobrien bfd_asymbol_value. Warn if taking difference of symbols in 1027460484Sobrien different segments. 1027560484Sobrien 1027660484SobrienThu Jul 15 11:51:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 1027760484Sobrien 1027860484Sobrien * config/obj-ecoff.c (ecoff_frob_file): Discard all open scopes, 1027960484Sobrien with a warning. 1028060484Sobrien 1028160484Sobrien * config/obj-coffbfd.c (fixup_segment): If TC_M88K, don't adjust 1028260484Sobrien by md_pcrel_from if we are relocating against a symbol (we still 1028360484Sobrien need md_pcrel_from for a PC relative relocation within the same 1028460484Sobrien file). 1028560484Sobrien * config/tc-m88k.c (md_pcrel_from): Corrected return value. 1028660484Sobrien (omagic): Removed unused variable. 1028760484Sobrien 1028860484Sobrien * Preliminary support for m88k-coff. 1028960484Sobrien * configure.in (m88k-*-coff*): New target. Use coffbfd and 1029060484Sobrien m88kcoff. 1029160484Sobrien * config/m88kcoff.mt: New file. 1029260484Sobrien * read.c (lex_type): New macro LEX_AT to set lex type of '@'. 1029360484Sobrien (pseudo_set): Handle difference of symbols in different fragments 1029460484Sobrien by saving the entire expression as the value of the symbol. 1029560484Sobrien * symbols.c (resolve_symbol_value): Resolve difference 1029660484Sobrien expressions. 1029760484Sobrien * config/obj-coffbfd.c (obj_pseudo_table): If TC_M88K, accept 1029860484Sobrien "sdef" as a synonym for "def". 1029960484Sobrien * config/obj-coffbfd.h: If TC_M88K, include coff/m88k.h and set 1030060484Sobrien TARGET_FORMAT. 1030160484Sobrien (S_IS_LOCAL): Any symbol which includes \001 in the name is local. 1030260484Sobrien * config/tc-m88k.c, config/tc-m88k.h: Numerous changes to bring 1030360484Sobrien m88k port up to date, and to add COFF support. 1030460484Sobrien 1030560484SobrienWed Jul 14 15:09:32 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 1030660484Sobrien 1030760484Sobrien * Removed sy_forward and replaced it with an undefined expression 1030860484Sobrien as the value of a symbol. 1030960484Sobrien * struc-symbol.h (struct symbol): Removed sy_forward field. Added 1031060484Sobrien sy_resolved and sy_resolving single bit fields. 1031160484Sobrien * symbols.c (symbol_new): Don't initialize sy_forward field. 1031260484Sobrien (resolve_symbol_value): New function to adjust symbol value by 1031360484Sobrien fragment address, using recursion to resolve forward symbols. 1031460484Sobrien * symbols.h: Added prototype for new function. 1031560484Sobrien * read.c (pseudo_set): Set symbolP->sy_value to an undefined 1031660484Sobrien expression rather than setting symbolP->sy_forward. 1031760484Sobrien * write.c (write_object_file): Use resolve_symbol_value on 1031860484Sobrien symbols, keeping the common case (the old behaviour) inline. 1031960484Sobrien * config/obj-aout.c (obj_aout_frob_symbol): Removed sy_forward 1032060484Sobrien handling (subsumed by write.c change). 1032160484Sobrien * config/obj-coff.c, config/obj-coffbfd.c (obj_coff_val): Set 1032260484Sobrien sy_value rather than sy_forward. 1032360484Sobrien * config/obj-coffbfd.c (obj_coff_endef, yank_symbols): Check 1032460484Sobrien expression segment rather than sy_forward. 1032560484Sobrien (yank_symbols): Use resolve_symbol_value. 1032660484Sobrien (crawl_symbols): Removed extra pass over symbols. 1032760484Sobrien * config/obj-aout.c, config/obj-bout.c, config/obj-coff.c, 1032860484Sobrien config/obj-vms.c (obj_crawl_symbol_chain): Removed extra pass over 1032960484Sobrien symbols which handled sy_forward; use resolve_symbol_value 1033060484Sobrien instead. 1033160484Sobrien * config/obj-coff.h, config/obj-coffbfd.h (obj_frob_forward_symbol): 1033260484Sobrien Define. 1033360484Sobrien * config/obj-elf.c (obj_elf_stab_generic): Check expression 1033460484Sobrien segment rather than sy_forward. 1033560484Sobrien * config/obj-vms.c (VMS_Check_For_Main): Don't initialize 1033660484Sobrien sy_forward; do initialize sy_resolved and sy_resolving. 1033760484Sobrien * config/tc-hppa.h (STAB_FIXUP): Use sy_value, not sy_forward. 1033860484Sobrien 1033960484Sobrien * Changes to keep a full expression as the value of a symbol, not 1034060484Sobrien just a longword: 1034160484Sobrien * struc-symbol.h: New field sy_value. 1034260484Sobrien * as.h: Include expr.h before struc-symbol.h. 1034360484Sobrien * expr.h: Use struct symbol rather than symbolS. 1034460484Sobrien * symbols.c (S_GET_VALUE, S_SET_VALUE): Rewrote to retrieve value 1034560484Sobrien of sy_value field; compile unconditionally, not just if 1034660484Sobrien BFD_ASSEMBLER. 1034760484Sobrien * symbols.h: Compile S_{SG}ET_VALUE prototypes unconditionally. 1034860484Sobrien * write.c (write_object_file): Set BFD symbol value to gas symbol 1034960484Sobrien value. 1035060484Sobrien * config/obj-aout.h, config/obj-bout.h, config/obj-coff.h, 1035160484Sobrien config/obj-coffbfd.h, config/obj-generic.h, config/obj-vms.h 1035260484Sobrien (S_GET_VALUE, S_SET_VALUE): Removed macro definitions. 1035360484Sobrien * config/obj-ieee.c (S_GET_VALUE, S_SET_VALUE): Removed. 1035460484Sobrien * config/obj-coff.h, obj-coffbfd.h: Rewrote several macros to use 1035560484Sobrien S_GET_VALUE rather than ost_entry.n_value. 1035660484Sobrien * config/obj-aout.c (obj_symbol_to_chars), config/obj-bout.c 1035760484Sobrien (obj_symbol_to_chars), config/obj-coff.c (obj_symbol_to_chars), 1035860484Sobrien config/obj-coffbfd.c (symbol_to_chars): Get value to write out 1035960484Sobrien using S_GET_VALUE--don't assume it is already set. 1036060484Sobrien * config/obj-ieee.c (do_symbols): Set BFD symbol value to gas 1036160484Sobrien symbol value. 1036260484Sobrien * config/obj-vms.c (various): Don't assign directly to 1036360484Sobrien S_GET_VALUE; use S_SET_VALUE instead. 1036460484Sobrien 1036560484SobrienWed Jul 14 09:35:23 1993 Doug Evans (dje@canuck.cygnus.com) 1036660484Sobrien 1036760484Sobrien * configure.in: Make sparc64-*-aout* use bfd gas. 1036860484Sobrien 1036960484Sobrien * configure.in: Recognize h8300h. 1037060484Sobrien 1037160484SobrienTue Jul 13 12:09:44 1993 Steve Chamberlain (sac@phydeaux.cygnus.com) 1037260484Sobrien 1037360484Sobrien * config/tc-h8500.c (line_comment_chars): Add hash. 1037460484Sobrien (parse_exp, skip_colonthing, build_bytes): Add support for 1037560484Sobrien R_H8500_HIGH16 relocation type. 1037660484Sobrien 1037760484SobrienMon Jul 12 11:15:34 1993 Ken Raeburn (raeburn@deneb.cygnus.com) 1037860484Sobrien 1037960484Sobrien * config/obj-elf.c (obj_elf_section): Allow `@' to introduce an 1038060484Sobrien attribute name. Handle `execinstr' attribute. 1038160484Sobrien 1038260484SobrienMon Jul 12 07:22:28 1993 Ian Lance Taylor (ian@cygnus.com) 1038360484Sobrien 1038460484Sobrien * config/tc-mips.c (mips_ip): Don't warn on 'i' or 'j' mismatch if 1038560484Sobrien there is another alternative for the instruction. 1038660484Sobrien 1038760484SobrienFri Jul 9 17:31:34 1993 Roland H. Pesch (pesch@fowanton.cygnus.com) 1038860484Sobrien 1038960484Sobrien * doc/as.texinfo: updates for H8/300H 1039060484Sobrien 1039160484SobrienThu Jul 8 14:41:43 1993 Mark Eichin (eichin@cygnus.com) 1039260484Sobrien 1039360484Sobrien * config/tc-i960.c (md_create_short_jump, md_create_long_jump, 1039460484Sobrien md_number_to_chars, md_section_align): Adjusted to use valueT, 1039560484Sobrien addressT, to match tc.h. 1039660484Sobrien 1039760484SobrienThu Jul 8 14:15:05 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1039860484Sobrien 1039960484Sobrien * config/tc-sparc.c (s_common): Revamp to handle both syntaxes, 1040060484Sobrien independent of format. 1040160484Sobrien 1040260484SobrienThu Jul 8 07:25:25 1993 Doug Evans (dje@canuck.cygnus.com) 1040360484Sobrien 10404130561Sobrien * config/tc-h8300.h (TC_CONS_RELOC): Use R_RELLONG if H8/300H. 1040560484Sobrien 1040660484SobrienWed Jul 7 18:11:07 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com) 1040760484Sobrien 1040860484Sobrien * configure.in: define CROSS=-DCROSS_COMPILE if it is a cross 1040960484Sobrien build; also recognize h8300-*-coff 1041060484Sobrien 1041160484SobrienWed Jul 7 10:21:24 1993 Ian Lance Taylor (ian@cygnus.com) 1041260484Sobrien 1041360484Sobrien * symbols.c (fb_label_instance, fb_label_instance_inc): Don't dump 1041460484Sobrien core just because somebody uses a label before it is defined. 1041560484Sobrien 1041660484Sobrien * config/mips-opcode.h: Moved to opcode/mips.h. 1041760484Sobrien * config/tc-mips.c: Include opcode/mips.h rather than 1041860484Sobrien mips-opcode.h. 1041960484Sobrien (append_insn): An extra NOP is only needed after instructions 1042060484Sobrien which set HI or LO, not after instructions which read it. 1042160484Sobrien (macro_build, mips_ip): Support new 'E', 'G' and 'B' arguments. 1042260484Sobrien (macro): cfc1 and ctc1 now take "t,G" rather than "t,d". 1042360484Sobrien * config/tc-mips.h (struct mips_opcode): Don't define. 1042460484Sobrien * config/mips-big.mt, config/mips-lit.mt (TARG_CPU_DEPENDENTS): 1042560484Sobrien Set to $(srcdir)/../include/opcode/mips.h. 1042660484Sobrien 1042760484Sobrien Get the MIPS assembler up to speed with other gas changes: 1042860484Sobrien 1042960484Sobrien * config/obj-ecoff.c (ecoff_set_vma, ecoff_frob_symbol): 1043060484Sobrien Removed; don't change the symbol value. 1043160484Sobrien (ecoff_build_symbols, ecoff_build_procs, ecoff_frob_file): Use 1043260484Sobrien bfd_asymbol_value rather than S_GET_VALUE to include section 1043360484Sobrien vma in symbol value. 1043460484Sobrien (ecoff_frob_file): Ignore BSF_SECTION_SYM symbols, since ECOFF 1043560484Sobrien doesn't output them. Set the vma of sections. 1043660484Sobrien * config/obj-ecoff.h: Don't define obj_frob_symbol. 1043760484Sobrien * config/tc-mips.c (tc_gen_reloc): Adjustment by section vma is no 1043860484Sobrien longer necessary. 1043960484Sobrien (various): use valueT rather than long. 1044060484Sobrien 1044160484SobrienWed Jul 7 08:33:30 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1044260484Sobrien 1044360484Sobrien * config/tc-sparc.h (ENV64): Define for v9. 1044460484Sobrien 1044560484Sobrien * config/tc-sparc.c (s_xword): For numbers, call big_cons. 1044660484Sobrien (sparc_ip, md_apply_fix, tc_gen_reloc): Handle some sparc64 1044760484Sobrien relocation types. 1044860484Sobrien (md_number_to_chars): Handle 8-byte value. 1044960484Sobrien 1045060484Sobrien * config/obj-elf.h (elf_symbol): For v9, use 64-bit symbol type. 1045160484Sobrien 1045260484Sobrien * as.h (valueT): Typedef moved here. 1045360484Sobrien * struc-symbol.h (valueT): ...from here. 1045460484Sobrien * write.c (write_object_file): Locals from_addr, to_addr, 1045560484Sobrien table_addr are now addressT. Supply prototype for bfd_alloc for 1045660484Sobrien now. 1045760484Sobrien (fixup_segment): Local add_number is now valueT. Correct some 1045860484Sobrien range-checking bugs. 1045960484Sobrien (relax_align): Type `int' should be sufficient for the exponent. 1046060484Sobrien (fix_new): Argument offset is type offsetT. Locals size and 1046160484Sobrien newsize are type valueT. 1046260484Sobrien * write.h (struct fix): Fields fx_offset and fx_addnumber are now 1046360484Sobrien type valueT. 1046460484Sobrien (fix_new): Fix prototype. 1046560484Sobrien * symbols.c (symbol_new): Symbol value is type valueT. 1046660484Sobrien (S_SET_VALUE, S_GET_VALUE): Likewise. 1046760484Sobrien (S_IS_*): Specify int return type explicitly. 1046860484Sobrien * symbols.h (symbol_new, S_GET_VALUE, S_SET_VALUE): Fixed 1046960484Sobrien prototypes. 1047060484Sobrien * read.c (s_comm): Values read are type valueT. 1047160484Sobrien * expr.h (expressionS): Field X_add_number is an offsetT. 1047260484Sobrien * tc.h (md_create_long_jump, md_create_short_jump, 1047360484Sobrien md_section_align): Addresses are now type addressT. 1047460484Sobrien (md_number_to_chars, md_apply_fix): Pass value as valueT. 1047560484Sobrien * config/tc-i386.c (md_create_short_jump, md_create_long_jump, 1047660484Sobrien md_number_to_chars, md_section_align): Adjusted. 1047760484Sobrien * config/tc-sparc.c (sparc_ip): Initialize `len' variable to make 1047860484Sobrien gcc shut up. 1047960484Sobrien (md_create_short_jump, md_create_long_jump, md_number_to_chars, 1048060484Sobrien md_section_align): Adjusted. 1048160484Sobrien 1048260484Sobrien * config/tc-sparc.c (s_reserve): Permit use for other than a.out 1048360484Sobrien format. 1048460484Sobrien (s_common): Handle Solaris-2 version. 1048560484Sobrien 1048660484Sobrien * config/ho-generic.h (free): Returns void if __STDC__. 1048760484Sobrien 1048860484Sobrien * config/obj-elf.h (obj_elf_frob_symbol, elf_frob_file, 1048960484Sobrien elf_file_symbol): Declare. 1049060484Sobrien 1049160484Sobrien * expr.c (floating_constant, integer_constant): Now return void. 1049260484Sobrien 1049360484SobrienThu Jul 1 12:13:43 1993 Ian Lance Taylor (ian@cygnus.com) 1049460484Sobrien 1049560484Sobrien * configure.in: Match on sparc*-fujitsu-none rather than 1049660484Sobrien sparclite*-fujitsu-none. 1049760484Sobrien 1049860484SobrienWed Jun 30 11:12:02 1993 Ian Lance Taylor (ian@cygnus.com) 1049960484Sobrien 1050060484Sobrien * read.c (cons): Conditionalize parsing of expression. Move 1050160484Sobrien putting value into object file into separate function. Separate 1050260484Sobrien out MRI and WANT_BITFIELDS cases into separate functions. 1050360484Sobrien (emit_expr): New function to write data into object file. 1050460484Sobrien Conditionalize on TC_CONS_FIX_NEW and TC_CONS_RELOC rather than on 1050560484Sobrien processor types. 1050660484Sobrien (parse_bitfield_cons): New function to parse bitfield expressions 1050760484Sobrien as used by i960 assemblers. Only compiled if 1050860484Sobrien BITFIELD_CONS_EXPRESSIONS is defined. 1050960484Sobrien (parse_mri_cons): New function to parse MRI style strings. Only 1051060484Sobrien compiled if MRI is defined. 1051160484Sobrien (parse_repeat_cons): New function to parse repeat counts. Only 1051260484Sobrien compiled if REPEAT_CONS_EXPRESSIONS is defined. 1051360484Sobrien * read.h (emit_expr): Added declaration of new function. 1051460484Sobrien * config/tc-a29k.h (TC_CONS_RELOC): Define to be RELOC_32. 1051560484Sobrien * config/tc-h8300.h (TC_CONS_RELOC): Define to be R_RELWORD. 1051660484Sobrien * config/tc-hppa.c (parse_cons_expression_hppa): New function to 1051760484Sobrien parse a HPPA expression, rather than special case in cons 1051860484Sobrien function. 1051960484Sobrien (cons_fix_new_hppa): New function to emit an HPPA fixup, rather 1052060484Sobrien than special case in emit_expr function. 1052160484Sobrien * config/tc-hppa.h (TC_PARSE_CONS_EXPRESSION, TC_CONS_FIX_NEW): 1052260484Sobrien Define to use new functions from tc-hppa.c. 1052360484Sobrien * config/tc-i960.h (BITFIELD_CONS_EXPRESSIONS): Define. 1052460484Sobrien (WANT_BITFIELDS): Removed; now obsolete. 1052560484Sobrien * config/tc-mips.h (REPEAT_CONS_EXPRESSIONS): Define. 1052660484Sobrien * config/tc-ns32k.c (cons_fix_new_ns32k): New function to emit an 1052760484Sobrien NS32K fixup, rather than special case in emit_expr function. 1052860484Sobrien * config/tc-ns32k.h (TC_CONS_FIX_NEW): Define to be 1052960484Sobrien cons_fix_new_ns32k. Also use PARAMS rather than checking 1053060484Sobrien __STDC__. 1053160484Sobrien * config/tc-sparc.h (TC_CONS_RELOC): Define to RELOC_32. 1053260484Sobrien 1053360484Sobrien * write.c (relax_and_size_seg, adjust_reloc_syms, write_contents): 1053460484Sobrien Don't core dump if gas has no information about a section. 1053560484Sobrien 1053660484SobrienWed Jun 30 06:21:27 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1053760484Sobrien 1053860484Sobrien * config/tc-sparc.c (md_begin): If sparcv9 is defined, reset 1053960484Sobrien current_architecture to v9 automatically. 1054060484Sobrien 1054160484Sobrien * config/tc-sparc.h (TARGET_FORMAT): Use elf64-sparc for v9. 1054260484Sobrien 1054360484Sobrien * config/tc-sparc64.h, config/tc-sparc64.c: New files. 1054460484Sobrien * configure.in: Use sparc64 cpu files for v9, and default to elf 1054560484Sobrien format. 1054660484Sobrien 1054760484Sobrien * write.c (relax_and_size_seg): Always fully process a section. 1054860484Sobrien Section size is last frag's (vm)address plus its size. If no 1054960484Sobrien relocations are present, force SEC_RELOC flag clear. 1055060484Sobrien (dump_section_relocs): New debugging routine. 1055160484Sobrien (adjust_reloc_syms): New routine, broken out from write_contents. 1055260484Sobrien Don't adjust relocs that are already relative to section symbol. 1055360484Sobrien Look for obj_fix_adjustable macro to know what else to skip, 1055460484Sobrien instead of obj_write_symbol. Look for section symbol stored in 1055560484Sobrien section information. 1055660484Sobrien (write_object_file): Map adjust_reloc_syms over all sections. 1055760484Sobrien (write_contents): Clear SEC_RELOC flag if no relocations are 1055860484Sobrien found. 1055960484Sobrien 1056060484Sobrien * as.h (__PTR_TO_INT, __INT_TO_PTR): New versions for Saber, to 1056160484Sobrien keep it quiet. 1056260484Sobrien 1056360484Sobrien * write.c (remove_subsegs): Don't define for BFD_ASSEMBLER. 1056460484Sobrien 1056560484SobrienFri Jun 25 14:42:53 1993 K. Richard Pixley (rich@sendai.cygnus.com) 1056660484Sobrien 1056760484Sobrien * Makefile.in (all, dvi, info, install-info, clean-info): do not 1056860484Sobrien echo recursion lines. 1056960484Sobrien (install-info, clean-info): collapse into the dvi and info rule. 1057060484Sobrien 1057160484SobrienFri Jun 25 10:47:24 1993 Doug Evans (dje@canuck.cygnus.com) 1057260484Sobrien 1057360484Sobrien * config/tc-sparc.c (sparc_ip): Remove support for %d/%q fp regs. 1057460484Sobrien All fp regs are now specified as %f. 1057560484Sobrien (priv_reg_table): fpq -> fq. 1057660484Sobrien 1057760484SobrienFri Jun 25 03:43:06 1993 Ken Raeburn (raeburn@poseidon.cygnus.com) 1057860484Sobrien 1057960484Sobrien * as.h (strstr): Disable declaration for now. 1058060484Sobrien (fprint_value, sprint_value): Declare. 1058160484Sobrien 1058260484Sobrien * subsegs.c (subseg_new_rest): Use memset to clear new frag. 1058360484Sobrien (subseg_new) [BFD_ASSEMBLER]: Initialize all seginfo fields. 1058460484Sobrien 1058560484Sobrien * expr.c (expr_part): Made sanity checks a.out-specific. 1058660484Sobrien (expr): Disabled sanity checks. 1058760484Sobrien 1058860484Sobrien * subsegs.h (segment_info_type) [BFD_ASSEMBLER]: Add field for 1058960484Sobrien section symbol. 1059060484Sobrien * subsegs.c (subseg_change): Initialize section symbol pointer 1059160484Sobrien when setting up a new section. 1059260484Sobrien 1059360484Sobrien * symbols.c (symbol_new) [BFD_ASSEMBLER]: Point BFD symbol's udata 1059460484Sobrien field back at gas symbol structure. 1059560484Sobrien 1059660484Sobrien * symbols.c (colon): Cast obstack_next_free value to char* before 1059760484Sobrien doing arithmetic on it. 1059860484Sobrien * subsegs.c (subseg_new_rest): Likewise. 1059960484Sobrien * as.h (frag_now_fix): Likewise. 1060060484Sobrien 1060160484Sobrien * config/obj-elf.c (elf_file_symbol): Use subseg_new instead of 1060260484Sobrien calling bfd_make_section_old_way directly, and call subseg_set 1060360484Sobrien instead of subseg_change. Now returns void. 1060460484Sobrien (obj_elf_write_symbol): Only check local symbols for now. 1060560484Sobrien (elf_stab_symbol): Now static and void, and disabled until it 1060660484Sobrien works completely. 1060760484Sobrien (obj_elf_size): For expression values, fail silently for now. 1060860484Sobrien (obj_symbol_new_hook): Do nothing. 1060960484Sobrien 1061060484Sobrien * config/tc-sparc.c (tc_gen_reloc): Handle BFD_RELOC_SPARC_WDISP22 1061160484Sobrien relocation. 1061260484Sobrien (s_local) [OBJ_ELF]: New function. 1061360484Sobrien (md_pseudo_table) [OBJ_ELF]: Call it for "local". 1061460484Sobrien (s_common): Rearrange to handle Solaris .common pseudo, which may 1061560484Sobrien sometimes use bss space instead of common. 1061660484Sobrien * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Add new `local' field. 1061760484Sobrien 1061860484SobrienThu Jun 24 16:33:53 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 1061960484Sobrien 1062060484Sobrien * configure.in: set host config to hpux for hppa*-hp-hpux 1062160484Sobrien 1062260484SobrienThu Jun 24 13:35:06 1993 Ken Raeburn (raeburn@poseidon.cygnus.com) 1062360484Sobrien 1062460484Sobrien * app.c (app_pop, app_push): Fix bug reported by Chris Arthur. 1062560484Sobrien 1062660484SobrienTue Jun 22 01:04:23 1993 Ken Raeburn (raeburn@poseidon.cygnus.com) 1062760484Sobrien 1062860484Sobrien * subsegs.c (subseg_new): Don't special-case a.out -R flag here. 1062960484Sobrien * config/obj-aout.c (s_sect): Do it here. 1063060484Sobrien 1063160484Sobrien * as.h (BAD_CASE): Don't make some lame compilers think we want 1063260484Sobrien substitution inside strings. 1063360484Sobrien 1063460484Sobrien * as.c (print_version_id): New function, split off from main. 1063560484Sobrien (main): Call it. 1063660484Sobrien * config/tc-sparc.c (md_parse_option) [OBJ_ELF]: Print version id 1063760484Sobrien for -V. Ignore -Q and -s options for now. 1063860484Sobrien 1063960484SobrienMon Jun 21 17:37:59 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 1064060484Sobrien 1064160484Sobrien * Makefile.in: make installation & builds work again for crosses 1064260484Sobrien 1064360484SobrienSun Jun 20 18:18:26 1993 Ken Raeburn (raeburn@poseidon.cygnus.com) 1064460484Sobrien 1064560484Sobrien * listing.c (list_symbol_table): Rewrite to print wide (>32 bits) 1064660484Sobrien symbol values correctly. 1064760484Sobrien 1064860484Sobrien * write.c (write_object_file): Deleted unused variables. 1064960484Sobrien (fixup_segment): Use sprint_value. 1065060484Sobrien 1065160484Sobrien * messages.c (sprint_value, fprint_value): New routines. 1065260484Sobrien 1065360484Sobrien * config/obj-elf.c (elf_stab_symbol): Now returns void. 1065460484Sobrien (obj_elf_stab_generic): Fix typo in logic. 1065560484Sobrien 1065660484Sobrien * Makefile.in (INCLUDES): Look in ../bfd for bfd.h. 1065760484Sobrien 1065860484Sobrien * as.h (addressT, offsetT): New types, using BFD types if 1065960484Sobrien available. 1066060484Sobrien (relax_addressT, struct frag): Use them. 1066160484Sobrien * struc-symbol.h (valueT, struct broken_word): Likewise. 1066260484Sobrien 1066360484Sobrien * as.h (subseg_new) [BFD_ASSEMBLER]: Name argument is const. 1066460484Sobrien * subsegs.c (subseg_new) [BFD_ASSEMBLER]: Name argument is const. 1066560484Sobrien 1066660484SobrienThu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com) 1066760484Sobrien 1066860484Sobrien * Makefile.in: canonicalize install.sh; for use within 1066960484Sobrien this directory (and subdirs) 1067060484Sobrien 1067160484SobrienSun Jun 20 02:34:04 1993 Ashley Saulsbury (ans@sics.se) 1067260484Sobrien 1067360484Sobrien * m88k-opcode.h : fixed tiny tiny mistake - xcr was incorrectly 1067460484Sobrien specified, should have both S1 and S2 fields identical 1067560484Sobrien If only finding the problem was as fast as fixing the bug !!!! 1067660484Sobrien 1067760484SobrienTue Jun 15 16:01:57 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1067860484Sobrien 1067960484Sobrien * write.c (write_contents): Do write out non-loadable sections. 1068060484Sobrien Debug sections can fall in this category. 1068160484Sobrien 1068260484Sobrien * read.c (s_app_file): Call elf_file_symbol for ELF files. 1068360484Sobrien * config/obj-elf.c (elf_file_symbol): New function. 1068460484Sobrien 1068560484Sobrien * config/obj-elf.c (elf_stab_symbol_string): Renamed from pa_..., 1068660484Sobrien added argument to specify section base name. 1068760484Sobrien (obj_elf_stab_generic): Renamed from ..._stab. New argument 1068860484Sobrien specifies section base name. 1068960484Sobrien (obj_elf_stab): New function, calls obj_elf_stab_generic with 1069060484Sobrien ".stab" as section base name. 1069160484Sobrien (obj_elf_xstab): New function, calls obj_elf_stab_generic. 1069260484Sobrien (obj_elf_type): Handle "object". Use bitwise-or to merge in 1069360484Sobrien symbol flags rather than simply replacing, so global/local flags 1069460484Sobrien are preserved. 1069560484Sobrien (obj_elf_ident): Rewrite. 1069660484Sobrien 1069760484SobrienTue Jun 15 17:03:25 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 1069860484Sobrien 1069960484Sobrien * Makefile.in: remove parentdir support; use INSTALL_XFORM 1070060484Sobrien 1070160484SobrienWed Jun 9 11:26:07 1993 Ian Lance Taylor (ian@cygnus.com) 1070260484Sobrien 1070360484Sobrien * config/tc-i386.c (md_pseudo_table): .align uses a power of two 1070460484Sobrien for any a.out target, not just Linux and 386BSD. 1070560484Sobrien * config/tc-i386.h (DOT_LABEL_PREFIX): Do not define for any a.out 1070660484Sobrien target. 1070760484Sobrien 1070860484SobrienMon Jun 7 13:33:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1070960484Sobrien 1071060484Sobrien * config/tc-m88k.c: Don't include flonum.h, md.h, m88k.h. They 1071160484Sobrien don't exist or duplicate other inclusions. 1071260484Sobrien 1071360484Sobrien * config/tc-vax.h (NO_RELOC): Define. 1071460484Sobrien 1071560484SobrienMon Jun 7 09:55:03 1993 Doug Evans (dje@canuck.cygnus.com) 1071660484Sobrien 1071760484Sobrien * config/tc-sparc.c (sparc_ip): Fix parsing of asi number. 1071860484Sobrien Fix error message. 1071960484Sobrien 1072060484SobrienSat Jun 5 19:32:52 1993 Torbjorn Granlund (tege@nada.kth.se) 1072160484Sobrien 1072260484Sobrien * gas/config/m88k-opcode.h (m88k_opcodes): Add 88110 instructions. 1072360484Sobrien * gas/config/tc-m88k.c (get_reg): New arg reg_prefix. Compare first 1072460484Sobrien char to reg_prefix instead of to 'r'. 1072560484Sobrien (calcop): Change calls to get_reg. 1072660484Sobrien (calcop): Handle new case 'x' to set reg_prefix. 1072760484Sobrien (calcop): Set reg_prefix to 'r' after each call to get_reg. 1072860484Sobrien (cmpslot): Add 88110 conditions. 1072960484Sobrien 1073060484Sobrien * gas/config/m88k-opcode.h: Swap cases for "rot" for consistency. 1073160484Sobrien 1073260484Sobrien * gas/config/tc-m88k.c (get_bf): Always restore input_line_pointer 1073360484Sobrien before returning. 1073460484Sobrien 1073560484Sobrien * gas/config/m88k-opcode.h (m88k_opcodes): Make equal mnemonics 1073660484Sobrien adjacent; mov.s and mov.d swapped. 1073760484Sobrien (m88k_opcodes): Fix typo `r2' -> `2'. 1073860484Sobrien 1073960484SobrienFri Jun 4 15:59:31 1993 Steve Chamberlain (sac@phydeaux.cygnus.com) 1074060484Sobrien 1074160484Sobrien * config/h8300.c: Support for H8/300-H opcodes. 1074260484Sobrien 1074360484Sobrien * config/obj-coffbfd.c (w_strings): String table length is 4 1074460484Sobrien bytes, no matter what the host int size is. 1074560484Sobrien 1074660484Sobrien * configure.in (alpha-*-osf*): New. 1074760484Sobrien 1074860484SobrienFri Jun 4 07:51:18 1993 Ian Lance Taylor (ian@cygnus.com) 1074960484Sobrien 1075060484Sobrien * configure.in (mips-*-ecoffl*): New target; use ecoff and 1075160484Sobrien mips-lit. 1075260484Sobrien (mips-*-ecoff*): Added trailing '*'. 1075360484Sobrien 1075460484Sobrien * config/obj-ecoff.c (ecoff_build_procs): Force the adr of the 1075560484Sobrien first FDR in a file to be zero. 1075660484Sobrien 1075760484SobrienThu Jun 3 14:09:59 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1075860484Sobrien 1075960484Sobrien * Makefile.in (VERSION): Jump to 2.1.4. 1076060484Sobrien 1076160484Sobrien * config/ho-hppabsd.h: New file, from Peter Hoogenboom. 1076260484Sobrien 1076360484Sobrien * config/tc-mips.c (md_assemble): Call bfd_set_gp_size only for 1076460484Sobrien ECOFF format. 1076560484Sobrien 1076660484SobrienTue Jun 1 15:21:57 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1076760484Sobrien 1076860484Sobrien * config/tc-m68k.c (md_assemble): The 68040 cpu doesn't want a 1076960484Sobrien separate '851 mmu. 1077060484Sobrien 1077160484Sobrien * config/obj-elf.c, config/obj-elf.h: Update for new type, macro, 1077260484Sobrien and routine names. Assuming 32 bits for now. 1077360484Sobrien 1077460484Sobrien * config/obj-elf.c (elf_frob_file): Look for macro 1077560484Sobrien elf_tc_final_processing_hook, instead of assuming a function 1077660484Sobrien always exists. 1077760484Sobrien * config/tc-hppa.c (elf_hppa_final_processing_hook): Renamed from 1077860484Sobrien tc_final_processing_hook. 1077960484Sobrien * config/tc-hppa.h (elf_tc_final_processing_hook): Use it. 1078060484Sobrien 1078160484Sobrien * config/tc-hppa.h (elf_tc_symbol, elf_tc_make_sections): Macros 1078260484Sobrien moved here from obj-elf.h. 1078360484Sobrien * config/obj-elf.h: Don't include CPU-specific header files. 1078460484Sobrien 1078560484SobrienSun May 30 16:49:37 1993 Peter Hoogenboom (hoogen@fast.cs.utah.edu) 1078660484Sobrien 1078760484Sobrien * configure.in: configurations should match on 'hppa*' not 'hppa'. 1078860484Sobrien 1078960484Sobrien * read.c: Add support for HPPA assembly language syntax (denoted 1079060484Sobrien with '#ifdef TC_HPPA'). 1079160484Sobrien 1079260484Sobrien * symbols.c: Add support for HPPA assembly language syntax (denoted 1079360484Sobrien with '#ifdef TC_HPPA'). 1079460484Sobrien 1079560484Sobrien * write.c (write_contents): Add support for HPPA-style 1079660484Sobrien relocations. 1079760484Sobrien 1079860484Sobrien * config/obj-elf.c: Stab symbols weren't written properly. 1079960484Sobrien (obj_elf_version): 1080060484Sobrien (obj_elf_desc): 1080160484Sobrien (obj_elf_write_symbol): 1080260484Sobrien (obj_elf_write_symbol_p): 1080360484Sobrien (obj_elf_frob_symbol): 1080460484Sobrien (elf_stab_symbol): 1080560484Sobrien (elf_frob_file): 1080660484Sobrien 1080760484Sobrien * config/tc-hppa.c: Support for HPPA symbol extension sections. 1080860484Sobrien Remove some unused code. Support for HPPA assembly language 1080960484Sobrien syntax. 1081060484Sobrien 1081160484Sobrien * app.c: 1081260484Sobrien 1081360484Sobrien * symbols.c: 1081460484Sobrien 1081560484Sobrien * config/obj-elf.h: 1081660484Sobrien (obj_write_symbol): 1081760484Sobrien (obj_frob_file): 1081860484Sobrien (elf_tc_symbol): 1081960484Sobrien (elf_tc_make_sections): 1082060484Sobrien 1082160484Sobrien * config/tc-hppa.h: 1082260484Sobrien 1082360484SobrienSun May 30 21:44:45 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com) 1082460484Sobrien 1082560484Sobrien * config/obj-ecoff.c (obj_read_begin_hook, add_file): Assume 1082660484Sobrien hash_new will have succeeded if it returns. 1082760484Sobrien * config/tc-a29k.c (md_begin): Likewise. 1082860484Sobrien 1082960484Sobrien * config/tc-i386.c (tc_aout_fix_to_chars): Now nbytes_r_length is 1083060484Sobrien const. 1083160484Sobrien (mode_from_disp_size, opcode_suffic_to_type): Now inline under 1083260484Sobrien gcc. 1083360484Sobrien (fits_in_{signed,unsigned}_{byte,word}): Likewise. 1083460484Sobrien 1083560484Sobrien * expr.c: Delete register declarations; gcc ignores them anyways. 1083660484Sobrien 1083760484SobrienFri May 28 19:03:32 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1083860484Sobrien 1083960484Sobrien * hash.c (hash_new): Use xmalloc, since many callers don't check 1084060484Sobrien for failure. 1084160484Sobrien 1084260484SobrienThu May 27 13:02:15 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1084360484Sobrien 1084460484Sobrien * frags.c (zero_address_frag, bss_address_frag): These are 1084560484Sobrien external. 1084660484Sobrien 1084760484Sobrien * tc.h (md_reloc_size): This is const. 1084860484Sobrien * config/tc-{a29k,h8300,h8500,i386,i860,i960,m68k,ns32k,z8k}.c 1084960484Sobrien (md_reloc_size): Now const. 1085060484Sobrien 1085160484Sobrien * config/aout_gnu.h (enum machine_type, enum reloc_type): Delete 1085260484Sobrien trailing commas. 1085360484Sobrien * as.h (enum _segT): Ditto. 1085460484Sobrien 1085560484Sobrien * struc-symbol.h (N_TYPE_seg): This should be const. 1085660484Sobrien 1085760484SobrienThu May 27 11:43:59 1993 Michael Meissner (meissner@osf.org) 1085860484Sobrien 1085960484Sobrien * config/obj-ecoff.c (add_file): Cast file_name to char * in 1086060484Sobrien listing_source_file call. 1086160484Sobrien 1086260484Sobrien * config/obj-elf.c (elf_stab_symbol_string): Cast first argument 1086360484Sobrien of subseg_new call to eliminate const attribute. 1086460484Sobrien (obj_elf_stab): Ditto. 1086560484Sobrien (obj_symbol_new_hook): Cast first argument of bzero call to char *. 1086660484Sobrien 1086760484Sobrien * read.c (s_align_bytes): Properly record alignment. 1086860484Sobrien 1086960484Sobrien * expr.c (__): Undefine __ macro before use, since OSF/1 uses it 1087060484Sobrien for the prototype/no prototype macro. 1087160484Sobrien 1087260484Sobrien * as.c (got_sig): Don't do return ((SIGTY) 0), SIGTY might well be 1087360484Sobrien void. 1087460484Sobrien 1087560484Sobrien * as.h (relax_stateT enum): Delete trailing comma. 1087660484Sobrien 1087760484SobrienThu May 27 11:07:50 1993 Ian Lance Taylor (ian@cygnus.com) 1087860484Sobrien 1087960484Sobrien * app.c (do_scrub_begin): Let line_comment_chars override 1088060484Sobrien comment_chars. 1088160484Sobrien (do_scrub_next_char): If a line comment character is not at the 1088260484Sobrien start of a line, treat it as a comment character if it is one. 1088360484Sobrien For a CPP line comment use pseudo-op .appline rather than .line. 1088460484Sobrien * input-scrub.c (logical_input_line): Make int rather than 1088560484Sobrien unsigned. 1088660484Sobrien (input_scrub_push, input_scrub_begin): Initialize 1088760484Sobrien logical_input_line to -1 rather than 0. 1088860484Sobrien (bump_line_counters): Increment logical_input_line. 1088960484Sobrien (new_logical_line): If line_number is -2, decrement 1089060484Sobrien logical_input_line. 1089160484Sobrien (as_where): Use logical_input_line even if it is 0. 1089260484Sobrien * read.h (s_app_file prototype): Now takes an int argument. 1089360484Sobrien * read.c (potable): Make .appfile call s_app_file with 1. New 1089460484Sobrien .appline pseudo-op calls s_app_line. 1089560484Sobrien (s_app_file): If .appfile, call new_logical_line with -2 to 1089660484Sobrien account for newline inserted by do_scrub_next_char. If listing, 1089760484Sobrien call listing_source_file. 1089860484Sobrien (s_app_line): New function to handle fake pseudo-op .appline. 1089960484Sobrien * config/obj-coff.c (obj_pseudo_table): Make .appline call 1090060484Sobrien obj_coff_ln. 1090160484Sobrien (obj_coff_ln): Added argument to indicate whether .appline. 1090260484Sobrien * config/obj-coffbfd.c (obj_pseudo_table): Make .appline call 1090360484Sobrien obj_coff_ln. 1090460484Sobrien (obj_coff_ln): Added argument to indicate whether .appline. 1090560484Sobrien * config/tc-mips.c (s_file): Pass argument to s_app_file. 1090660484Sobrien 1090760484SobrienTue May 25 11:59:07 1993 Ian Lance Taylor (ian@cygnus.com) 1090860484Sobrien 1090960484Sobrien * config/obj-bout.h (S_GET_VALUE): Removed unnecessary cast. 1091060484Sobrien 1091160484SobrienThu May 20 19:14:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1091260484Sobrien 1091360484Sobrien * config/tc-m68k.c (md_apply_fix_2): Straighten out check for 1091460484Sobrien invalid values. 1091560484Sobrien 1091660484SobrienWed May 19 07:33:17 1993 Steve Chamberlain (sac@phydeaux.cygnus.com) 1091760484Sobrien 1091860484Sobrien * config/tc-h5000.c (build_bytes): Understand @rd mode and build 1091960484Sobrien relocations correctly. 1092060484Sobrien 1092160484SobrienMon May 17 15:06:26 1993 Ken Raeburn (raeburn@deneb.cygnus.com) 1092260484Sobrien 1092360484Sobrien * Makefile.in (FLAGS_TO_PASS): Leave out TEXI2DVI for now, because 1092460484Sobrien it's wrong. 1092560484Sobrien 1092660484Sobrien * config/tc-m68k.c (md_apply_fix_2): Apply range checks and warn 1092760484Sobrien if value is out of range. 1092860484Sobrien 1092960484Sobrien Patch from Minh Tran-Le: 1093060484Sobrien * config/tc-i386.c (i386_operand): For in/out port register used 1093160484Sobrien as base reg, include InOutPortReg in operand type. 1093260484Sobrien (MATCH): Accept overlap value of InOutPortReg. 1093360484Sobrien 1093460484SobrienMon May 17 09:29:34 1993 Ian Lance Taylor (ian@cygnus.com) 1093560484Sobrien 1093660484Sobrien * config/obj-ecoff.c (add_file, obj_ecoff_loc, obj_ecoff_stab): 1093760484Sobrien Add calls to listing routines to produce combined source/assembler 1093860484Sobrien listings. 1093960484Sobrien (obj_ecoff_stab): Create a file pointer if none used yet. 1094060484Sobrien (ecoff_frob_file): Set symcount to correct value. 1094160484Sobrien 1094260484SobrienFri May 14 06:53:33 1993 Ken Raeburn (raeburn@deneb.cygnus.com) 1094360484Sobrien 1094460484Sobrien * Makefile.in (VERSION): Bump to version 2.1, in preparation for 1094560484Sobrien release. 1094660484Sobrien 1094760484Sobrien * config/obj-aout.h (H_GET_HEADER_SIZE, H_SET_SYMBOL_TABLE_SIZE): 1094860484Sobrien Define in terms of constants, not C structure sizes. 1094960484Sobrien 1095060484Sobrien * config/tc-rs6000.c, config/tc-rs6000.h: Delete empty files. 1095160484Sobrien 1095260484SobrienThu May 13 17:01:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1095360484Sobrien 1095460484Sobrien * config/obj-aout.c (obj_header_append): Don't define if it's 1095560484Sobrien defined as a macro. 1095660484Sobrien * config/obj-hp300.h (obj_header_append): Define it as a macro. 1095760484Sobrien * config/obj-hp300.c (hp300_header_append): New function. 1095860484Sobrien 1095960484Sobrien * Makefile.in (distclean): Don't bother cleaning up doc files; 1096060484Sobrien they aren't going to be in this directory. 1096160484Sobrien 1096260484SobrienThu May 13 07:51:35 1993 Ian Lance Taylor (ian@cygnus.com) 1096360484Sobrien 1096460484Sobrien * config/obj-ecoff.c (ecoff_build_symbols): Handle absolute 1096560484Sobrien symbols. 1096660484Sobrien 1096760484Sobrien * tc.h (TC_COFF_SIZEMACHDEP): Don't define here. 1096860484Sobrien * config/tc-sh.h (TC_COFF_SIZEMACHDEP): Define here instead. 1096960484Sobrien 1097060484SobrienMon May 10 06:01:12 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com) 1097160484Sobrien 1097260484Sobrien * config/obj-vms.c (VMS_Symbol_type_list): Don't bother with 1097360484Sobrien initialization. 1097460484Sobrien 1097560484Sobrien * configure.in (targets): Treat m68*-*-sysv* like m68k-*-coff. 1097660484Sobrien 1097760484SobrienWed May 5 14:00:49 1993 Ian Lance Taylor (ian@cygnus.com) 1097860484Sobrien 1097960484Sobrien * config/tc-mips.c (macro): Correct floating point double word 1098060484Sobrien loads and stores for big endian target. 1098160484Sobrien 1098260484SobrienWed May 5 08:39:21 1993 Ken Raeburn (raeburn@deneb.cygnus.com) 1098360484Sobrien 1098460484Sobrien * config/tc-i386.c: Replace SEG_* with *_section, fix up subseg_* 1098560484Sobrien calls. Deleted some unused code. 1098660484Sobrien * config/obj-coff.c: Likewise. 1098760484Sobrien 1098860484Sobrien ELF support, mostly contributed by Utah: 1098960484Sobrien * config/obj-elf.c (obj_elf_section, obj_elf_stab, obj_elf_line, 1099060484Sobrien obj_elf_type): Rewrite. 1099160484Sobrien (obj_elf_frob_symbol, elf_stab_symbol_string, elf_stab_symbol, 1099260484Sobrien obj_elf_desc, obj_elf_version, obj_symbol_new_hook, obj_elf_size): 1099360484Sobrien New functions. 1099460484Sobrien (obj_elf_ident): Dummy. 1099560484Sobrien * config/obj-elf.h (FALSE, TRUE, S_*, tc_frob_symbol, 1099660484Sobrien TARGET_SYMBOL_FIELDS): New macros. 1099760484Sobrien (gdb_section): New variable decl. 1099860484Sobrien 1099960484Sobrien * config/tc-i386.c (md_atof): Return zero, not empty string, on 1100060484Sobrien success. 1100160484Sobrien 1100260484Sobrien BFD_ASSEMBLER conditional changes: 1100360484Sobrien * config/obj-coff.c (lineno_rootP, seg_N_TYPE, *_section_header): 1100460484Sobrien Don't define these. 1100560484Sobrien (SA_SET_SYM_ENDNDX, SA_SET_SYM_TAGNDX): New functions. 1100660484Sobrien (fetch_coff_debug_section): Ditto. 1100760484Sobrien (obj_coff_endef): Call fetch_coff_debug_section. 1100860484Sobrien (struct line_no): New type. 1100960484Sobrien (c_symbol_merge): New way for copying aux fields. 1101060484Sobrien (c_dot_file_symbol): Put symbol in absolute section, and set flag 1101160484Sobrien BSF_DEBUGGING. 1101260484Sobrien (function_lineoff): New symbol. 1101360484Sobrien (function_lineoff, text_lineno_number, our_lineno_number, 1101460484Sobrien lineno_lastP): Don't define. 1101560484Sobrien (c_line_new): Don't define. 1101660484Sobrien (obj_emit_lineno, obj_coff_endef): Use abort calls as, uh, 1101760484Sobrien placeholders, until 1101860484Sobrien line-number recording gets implemented. 1101960484Sobrien (obj_new_symbol_hook): New code for handling aux fields. 1102060484Sobrien (add_lineno, add_linesym): New functions. 1102160484Sobrien (obj_coff_ln): Call add_lineno, not c_line_new. 1102260484Sobrien (obj_coff_endef): New code for handling symbol names. New lineno 1102360484Sobrien code. Look for section name "*DEBUG*" for debugging section. 1102460484Sobrien (align, coff_check_file_symbols, obj_coff_section, 1102560484Sobrien coff_frob_file): New functions. 1102660484Sobrien * config/obj-coff.h: Reordered some includes. 1102760484Sobrien (BYTE_ORDERING, FILE_HEADER_MAGIC, seg_N_TYPE, N_TYPE_seg, 1102860484Sobrien DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE, AOUTHDR, AOUTHDRSIZE): Don't 1102960484Sobrien define these. 1103060484Sobrien (TARGET_SYMBOL_FIELDS, I960_SYM_FIELDS): New macros. 1103160484Sobrien (SYM_AUXENT): New macro (for non-BFD_ASSEMBLER too) for accessing 1103260484Sobrien aux entries. Most SA_* macros now use it unconditionally. 1103360484Sobrien (S_*): Use `bsym' field, and access BFD private data. 1103460484Sobrien (SF_*): Use `sy_flags' symbol field for most of these. 1103560484Sobrien (H_*, object_headers, lineno, lineno_*P, OBJ_EMIT_LINENO): Don't 1103660484Sobrien define. 1103760484Sobrien (*_section_header): Don't define. 1103860484Sobrien * config/tc-i386.c (md_convert_frag, md_apply_fix): Changed 1103960484Sobrien interface. 1104060484Sobrien (tc_gen_reloc) [I386COFF]: New function. 1104160484Sobrien (tc_aout_fix_to_chars, tc_coff_fix2rtype): Don't define. 1104260484Sobrien * config/tc-i386.h (TARGET_ARCH, TARGET_BYTES_BIG_ENDIAN): New 1104360484Sobrien macros. 1104460484Sobrien 1104560484Sobrien * config/obj-coff.c (stack_init): Don't do assignments inside 1104660484Sobrien conditions. 1104760484Sobrien (obj_coff_def): Simplified handling of symbol name a bit. 1104860484Sobrien (tag_insert): Name argument is now pointer to CONST. 1104960484Sobrien (obj_crawl_symbol_chain): Commented out. 1105060484Sobrien 1105160484Sobrien * config/obj-coff.h: Use PARAMS macro in prototypes. 1105260484Sobrien 1105360484Sobrien * write.c (relax_and_size_seg) [BFD_ASSEMBLER]: Don't indirect 1105460484Sobrien through frchainP pointer if it is null. 1105560484Sobrien 1105660484Sobrien * configure.in: Warn if BFD mode is explicitly turned off but is 1105760484Sobrien required by specified target. 1105860484Sobrien (mips ecoff targets): Don't need to set bfd_gas here; it gets 1105960484Sobrien taken care of later. 1106060484Sobrien 1106160484Sobrien * config/obj-coffbfd.c (crawl_symbols): Don't clear sy_forward 1106260484Sobrien field. 1106360484Sobrien (yank_symbols): Merge symbols only if sy_forward is null. 1106460484Sobrien 1106560484Sobrien * config/tc-m68k.h (AOUT_MACHTYPE): Don't define if already 1106660484Sobrien defined. 1106760484Sobrien 1106860484Sobrien * tc.h (md_convert_frag) [BFD_ASSEMBLER]: Section arg is not 1106960484Sobrien pointer. 1107060484Sobrien * config/tc-m68k.c (md_convert_frag) [BFD_ASSEMBLER]: Ditto. 1107160484Sobrien 1107260484Sobrien * config/tc-sparc.h (LOCAL_LABEL) [OBJ_ELF]: Anything starting 1107360484Sobrien with "." is a local label. 1107460484Sobrien 1107560484Sobrien * config/te-hppa.h, config/tc-hppa.h, config/tc-hppa.c: New config 1107660484Sobrien files. 1107760484Sobrien 1107860484Sobrien * config/te-linux.h, config/te-386bsd.h: New config files. 1107960484Sobrien * configure.in (i386-*-linux, i386-*-bsd): Use them. 1108060484Sobrien * config/tc-i386.h (TARGET_FORMAT): Select format based on target 1108160484Sobrien environment. 1108260484Sobrien (DOT_LABEL_PREFIX): Don't define for 386bsd or Linux. 1108360484Sobrien 1108460484SobrienWed May 5 13:14:01 1993 Ian Lance Taylor (ian@cygnus.com) 1108560484Sobrien 1108660484Sobrien * config/obj-ecoff.c (init_file): Set fMerge to 0 since dbx seems 1108760484Sobrien to want it that way. 1108860484Sobrien (ecoff_build_symbols): Turn local st_Proc symbols into 1108960484Sobrien st_StaticProc symbols. Set index field of external st_Proc and 1109060484Sobrien st_staticProc symbols correctly. 1109160484Sobrien * config/tc-mips.h (NO_LISTING): Don't define. People might want 1109260484Sobrien listings. 1109360484Sobrien 1109460484SobrienTue May 4 21:22:54 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1109560484Sobrien 1109660484Sobrien * config/obj-hp300.h, config/obj-hp300.c, config/te-hp300.h: New 1109760484Sobrien files. 1109860484Sobrien * configure.in (m68k-*-hpux): Use them. 1109960484Sobrien 1110060484Sobrien * config/obj-aout.c (obj_pre_write_hook): Use AOUT_VERSION if 1110160484Sobrien defined, otherwise zero. 1110260484Sobrien 1110360484Sobrien * config/aout_gnu.h (OMAGIC): Don't define if already defined. 1110460484Sobrien 1110560484SobrienMon May 3 15:59:32 1993 Steve Chamberlain (sac@thepub.cygnus.com) 1110660484Sobrien 1110760484Sobrien * config/tc-sparc.c (sparc_ip): Allow any abs expression as an 1110860484Sobrien address space number. 1110960484Sobrien 1111060484SobrienWed Apr 28 19:11:22 1993 Ken Raeburn (raeburn@deneb.cygnus.com) 1111160484Sobrien 1111260484Sobrien * config/obj-aout.h (TARGET_DEFAULT): Don't default this at all. 1111360484Sobrien 1111460484Sobrien * config/tc-a29k.c: Include ctype.h. 1111560484Sobrien (define_some_regs): Added special-purpose registers for 29050. 1111660484Sobrien 1111760484Sobrien * config/tc-i386.c (comment_chars) [TE_I386AIX]: Include "/". 1111860484Sobrien 1111960484Sobrien * config/obj-coffbfd.c (fill_section): Don't set STYP_REG here. 1112060484Sobrien (change_to_section): Set it here instead. 1112160484Sobrien 1112260484SobrienWed Apr 28 13:40:29 1993 Ian Lance Taylor (ian@rtl.cygnus.com) 1112360484Sobrien 1112460484Sobrien * config/obj-ecoff.c (obj_symbol_new_hook): Make up a .file if one 1112560484Sobrien hasn't been seen yet. 1112660484Sobrien (add_ecoff_symbol): Don't refer to cur_file_ptr if it is NULL. 1112760484Sobrien 1112860484SobrienMon Apr 26 18:29:05 1993 Steve Chamberlain (sac@thepub.cygnus.com) 1112960484Sobrien 1113089857Sobrien * config/tc-sh.c, config/tc-sh.h: New files supporting Hitachi 1113160484Sobrien SH. 1113260484Sobrien 1113360484SobrienMon Apr 26 12:28:27 1993 Ian Lance Taylor (ian@cygnus.com) 1113460484Sobrien 1113560484Sobrien * expr.c (operand): Fix unary plus operator (previously was the 1113660484Sobrien same as '~' operator!). 1113760484Sobrien 1113860484SobrienWed Apr 21 00:20:11 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1113960484Sobrien 1114060484Sobrien * write.c (cvt_frag_to_fill): Define even if BFD is defined. 1114160484Sobrien (write_object_file): Do define if BFD_ASSEMBLER. Invoke 1114260484Sobrien obj_check_file_symbols if defined. Call verify_symbol_chain_2 1114360484Sobrien instead of open-coding it. Fix some bugs in patching up symbol 1114460484Sobrien chain. 1114560484Sobrien (relax_segment): Make some code we "ought to be able to" use for 1114660484Sobrien all targets no longer conditionalized on ns32k target; instead, do 1114760484Sobrien it always, and if the appropriate conditions fail, abort. 1114860484Sobrien 1114960484Sobrien * symbols.c (DEBUG): Enabled. 1115060484Sobrien (symbol_new): Make sure bfd_make_empty_symbol works. 1115160484Sobrien (verify_symbol_chain_2): New function; takes one symbol as 1115260484Sobrien argument, anywhere in the chain. 1115360484Sobrien (dollar_label*): Use default initializers. 1115460484Sobrien 1115560484Sobrien * as.c (perform_an_assembly_pass): Call md_begin here... 1115660484Sobrien (main): ...and not here. 1115760484Sobrien 1115860484Sobrien * config/tc-m68k.h (TARGET_FORMAT): Use a.out-sunos-big for a.out. 1115960484Sobrien (tc_frob_symbol): New macro: Get rid of symbols in reg_section. 1116060484Sobrien 1116160484Sobrien * config/tc-m68k.c (omagic): Don't define for BFD_ASSEMBLER. 1116260484Sobrien (add_fix, add_frag): Now functions instead of macros. 1116360484Sobrien (m68k_reg_parse, m68k_ip, md_estimate_size_before_relax, get_num, 1116460484Sobrien s_data1, s_data2, s_bss): Use new *_section names, for 1116560484Sobrien compatibility with BFD_ASSEMBLER mode; rewrite switch statements 1116660484Sobrien to handle non-integral segT. 1116760484Sobrien (tc_coff_fix2rtype, tc_aout_fix_to_chars, 1116860484Sobrien tc_coff_symbol_emit_hook): Don't define for BFD_ASSEMBLER. 1116960484Sobrien (tc_gen_reloc): New routine for BFD_ASSEMBLER. 1117060484Sobrien (md_apply_fix, md_apply_fix_2): Renamed old md_apply_fix to 1117160484Sobrien md_apply_fix_2; new md_apply_fix definition varies interface 1117260484Sobrien depending on BFD_ASSEMBLER. 1117360484Sobrien (md_convert_frag, md_convert_frag_1): Likewise. Use new *_section 1117460484Sobrien names. 1117560484Sobrien 1117660484Sobrien * config/obj-vms.c: Include config.h. 1117760484Sobrien (version_string): Delete declaration. 1117860484Sobrien (Write_VMS_MHD_Records): Use GAS_VERSION instead. 1117960484Sobrien (vms_resolve_symbol_redef): New function, taken from VMS code in 1118060484Sobrien symbols.c. 1118160484Sobrien (_doprnt): Deleted. 1118260484Sobrien (VMS_Store_Struct, VMS_Def_Struct, VMS_Set_Struct, 1118360484Sobrien VMS_TBT_Block_End, get_VMS_time_on_unix, generate_suffix, 1118460484Sobrien VMS_Psect_Spec): Fixed to compile under traditional C. 1118560484Sobrien * config/obj-vms.h: Use PARAMS macro. 1118660484Sobrien (vms_resolve_symbol_redef): Declare. 1118760484Sobrien (RESOLVE_SYMBOL_REDEFINITION): New macro. 1118860484Sobrien * symbols.c (colon): Remove some VMS-specific code, look for 1118960484Sobrien RESOLVE_SYMBOL_REDEFINITION macro instead. 1119060484Sobrien 1119160484Sobrien * config/tc-m68k.c (m68k_ip): Don't try expanding DBcc 1119260484Sobrien instructions. 1119360484Sobrien 1119460484Sobrien * config/tc-i386.c: Reordered some functions so inlining might 1119560484Sobrien work. Use PARAMS in function declarations. 1119660484Sobrien (reloc): New routine. 1119760484Sobrien (md_assemble): Rearrange switch statements to work with 1119860484Sobrien non-integral segT. 1119960484Sobrien 1120060484Sobrien * struc-symbol.h [BFD_ASSEMBLER]: Undefine 1120160484Sobrien SYMBOLS_NEED_BACKPOINTERS before defining it. 1120260484Sobrien 1120360484Sobrien * subsegs.c (subseg_new_rest): Now static. 1120460484Sobrien 1120560484Sobrien * read.c (pseudo_set): Better error message for difference of 1120660484Sobrien symbols in different frags. 1120760484Sobrien 1120860484Sobrien * Makefile.in (check): Pass down some new variables, indicating 1120960484Sobrien pathname or program name for cc, nm, objdump. 1121060484Sobrien 1121160484Sobrien * as.h (OUTPUT_FLAVOR): New macro. 1121260484Sobrien * config/tc-sparc.c (tc_gen_reloc): Use OUTPUT_FLAVOR. 1121360484Sobrien 1121460484Sobrien * configure.in: Initialize bfd_gas properly. Warn that ELF 1121560484Sobrien support is incomplete. 1121660484Sobrien 1121760484SobrienThu Apr 15 22:39:05 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1121860484Sobrien 1121960484Sobrien * read.c (float_cons): Accept null pointer return from md_atof. 1122060484Sobrien * config/tc-m68k.c (md_atof): Return null for success. 1122160484Sobrien * config/tc-sparc.c (md_atof): Ditto. 1122260484Sobrien 1122360484SobrienThu Apr 15 16:04:39 1993 Roland H. Pesch (pesch@fowanton.cygnus.com) 1122460484Sobrien 1122560484Sobrien * doc/as.texinfo: formatting and comment cleanups; show SPARC 1122660484Sobrien alternative options in same style as other machines; simplify some 1122760484Sobrien conditional use; include GPL as separate file (from texinfo dir) 1122860484Sobrien 1122960484Sobrien * doc/Makefile.in: (as.info) include directory containing GPL in 1123060484Sobrien makeinfo search path 1123160484Sobrien 1123260484Sobrien * doc/h8.texi: new file; conditional settings for GAS manual 1123360484Sobrien on Hitachi chips 1123460484Sobrien 1123560484SobrienTue Apr 13 15:31:40 1993 Roland H. Pesch (pesch@fowanton.cygnus.com) 1123660484Sobrien 1123760484Sobrien * doc/as.texinfo: mention SPARC architecture options. 1123860484Sobrien 1123960484SobrienFri Apr 9 17:43:11 1993 Ken Raeburn (raeburn@cygnus.com) 1124060484Sobrien 1124160484Sobrien * configure.in: Rearranged whitespace in per-host/per-target 1124260484Sobrien sections. Added hooks for dropping in HPPA support (not included 1124360484Sobrien yet). Separate out overrides of variables based on target format 1124460484Sobrien and bfd-gas selection from actual target-specific commands. Add 1124560484Sobrien error message for recognized but unsupported format name. 1124660484Sobrien 1124760484SobrienFri Apr 9 09:05:47 1993 Ian Lance Taylor (ian@cygnus.com) 1124860484Sobrien 1124960484Sobrien * config/obj-ecoff.h (ecoff_build_lineno): Make ilineMax in 1125060484Sobrien symbolic header match cline in FDR; the native linker seems to 1125160484Sobrien want that. 1125260484Sobrien 1125360484SobrienThu Apr 8 15:51:28 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 1125460484Sobrien 1125560484Sobrien * doc/Makefile.in: as.texinfo is in $(srcdir). Use 1125660484Sobrien $(srcdir)/as.texinfo explicitly in several places 1125760484Sobrien 1125860484SobrienThu Apr 8 15:15:02 1993 Roland H. Pesch (pesch@fowanton.cygnus.com) 1125960484Sobrien 1126060484Sobrien * doc/Makefile.in: update dvi, clean targets for new source 1126160484Sobrien file structure 1126260484Sobrien 1126360484SobrienThu Apr 8 12:52:46 1993 Ian Lance Taylor (ian@cygnus.com) 1126460484Sobrien 1126560484Sobrien * config/ho-decstatn.h: Define BROKEN_ASSERT if not __GNUC__, 1126660484Sobrien rather than undefining know. 1126760484Sobrien * configure.in: Match ultrix*, not just ultrix. 1126860484Sobrien 1126960484SobrienWed Apr 7 20:18:10 1993 Roland H. Pesch (pesch@fowanton.cygnus.com) 1127060484Sobrien 1127160484Sobrien * doc/as.texinfo: converted conditional markup to use new 1127260484Sobrien Texinfo facilities, avoiding m4. 1127360484Sobrien 1127460484Sobrien * doc/as-all.texinfo, all.m4, pretex.m4: deleted. 1127560484Sobrien 1127660484Sobrien * doc/Makefile.in: recast doc configuration to use a link to an 1127760484Sobrien included texinfo file. 1127860484Sobrien 1127960484Sobrien * doc/all.texi: settings for generic form of documentation. 1128060484Sobrien 1128160484SobrienTue Apr 6 11:56:21 1993 Ian Lance Taylor (ian@cygnus.com) 1128260484Sobrien 1128360484Sobrien * read.c (cons): Zero out frag when creating reloc. 1128460484Sobrien 1128560484SobrienMon Apr 5 09:41:58 1993 Ian Lance Taylor (ian@cygnus.com) 1128660484Sobrien 1128760484Sobrien * config/tc-mips.c (gp_reference): Certain magic symbols can never 1128860484Sobrien be referenced off the GP register. 1128960484Sobrien 1129060484Sobrien * app.c (do_scrub_next_char): Handle states 9 and 10 correctly 1129160484Sobrien when dealing with characters of type LEX_IS_TWOCHAR_COMMENT_1ST, 1129260484Sobrien LEX_IS_STRINGQUOTE, and LEX_IS_ONECHAR_QUOTE. 1129360484Sobrien 1129460484Sobrien * config/te-irix.h: New file; irix needs a different LOCAL_LABEL 1129560484Sobrien definition from other MIPS targets. 1129660484Sobrien * configure.in (mips-*-irix): Use emulation irix. 1129760484Sobrien 1129860484SobrienSun Apr 4 15:21:09 1993 Steve Chamberlain (sac@thepub.cygnus.com) 1129960484Sobrien 1130060484Sobrien * config/tc-h8500.c: Get relax size of branch instructions right, 1130160484Sobrien (get_operand): Parse @sp+ correctly. 1130260484Sobrien 1130360484SobrienFri Apr 2 15:59:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1130460484Sobrien 1130560484Sobrien * subsegs.h (segment_info_type) [BFD_ASSEMBLER]: Don't include 1130660484Sobrien COFF section header field. 1130760484Sobrien 1130860484Sobrien * configure.in: Print error message if host or target is not 1130960484Sobrien supported. 1131060484Sobrien 1131160484Sobrien * configure.in: If with-bfd-assembler, use obj-coff instead of 1131260484Sobrien obj-coffbfd. 1131360484Sobrien 1131460484Sobrien * config/ho-generic.h: Include string.h. 1131560484Sobrien 1131660484SobrienFri Apr 2 08:54:57 1993 Ian Lance Taylor (ian@cygnus.com) 1131760484Sobrien 1131860484Sobrien * config/tc-mips.h (LOCAL_LABEL): Treat any label starting with 1131960484Sobrien '$' as local, for any object file format. 1132060484Sobrien 1132160484Sobrien * config/tc-mips.c (macro): Optimizations to branching code and a 1132260484Sobrien couple of bug fixes from ralphc@pyrps5.eng.pyramid.com (Ralph 1132360484Sobrien Campbell). 1132460484Sobrien 1132560484Sobrien * config/ho-irix.h: New file; if not gcc, define BROKEN_ASSERT. 1132660484Sobrien * configure.in (mips-sgi-irix*): Set gas_host to irix. 1132760484Sobrien 1132860484SobrienWed Mar 31 17:53:54 1993 Ian Lance Taylor (ian@cygnus.com) 1132960484Sobrien 1133060484Sobrien * subsegs.c (subseg_new): Set output_section of new section. 1133160484Sobrien * as.c (perform_an_assemly_pass): Don't set output_section here. 1133260484Sobrien * expr.c (expr_part, expr): Turn off section assertions for ECOFF, 1133360484Sobrien since it has additional sections. 1133460484Sobrien * read.c (s_lcomm): For MIPS ECOFF, put small objects in .sbss, 1133560484Sobrien not bss_section. 1133660484Sobrien * config/obj-ecoff.h (TARGET_SYMBOL_FIELDS): Added 1133760484Sobrien ecoff_undefined field. 1133860484Sobrien * config/obj-ecoff.c (obj_symbol_new_hook): Initialize 1133960484Sobrien ecoff_undefined field. 1134060484Sobrien (add_file): If using stabs, just output a stabs symbol rather than 1134160484Sobrien creating a new fdr. 1134260484Sobrien (obj_ecoff_begin, obj_ecoff_bend): Ignore line number by reading 1134360484Sobrien it with get_absolute_expression, rather than skipping it by hand. 1134460484Sobrien (obj_ecoff_loc): If using stabs, just output a stabs symbol rather 1134560484Sobrien than ECOFF line number information. 1134660484Sobrien (obj_ecoff_stab): Accept non-zero values for stabs line number. 1134760484Sobrien (ecoff_build_symbols): Set ifilesym correctly. Set storage class 1134860484Sobrien to small, undefined and/or readonly sections if appropriate. 1134960484Sobrien Don't output symbol names containing \001 characters. 1135060484Sobrien (ecoff_frob_file): Make sure at least one fdr is output. 1135160484Sobrien * config/tc-mips.h: Define TC_MIPS. 1135260484Sobrien * config/tc-mips.c (g_switch_value): New static variable. 1135360484Sobrien (md_assemble): Set gp size of output BFD. 1135460484Sobrien (gp_reference): New function; returns 1 if expression can be 1135560484Sobrien accesssed via gp. Always returns 0 if not using ECOFF. 1135660484Sobrien (macro_build): Convert BFD_RELOC_LO16 to BFD_RELOC_MIPS_GPREL if 1135760484Sobrien possible. 1135860484Sobrien (macro): Generate sequences using gp if possible. 1135960484Sobrien (md_parse_option): Ignore -EL and -EB. Parse -G. 1136060484Sobrien (md_apply_fix): Added BFD_RELOC_MIPS_GPREL to ignored case. 1136160484Sobrien (s_change_sec): Handle .rdata and .sdata for ECOFF. 1136260484Sobrien (s_extern): Mark symbol as external. Set ecoff_undefined field. 1136360484Sobrien 1136460484SobrienTue Mar 30 10:11:41 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1136560484Sobrien 1136660484Sobrien * output-file.c (output_file_create): Don't call as_perror for 1136760484Sobrien filename rejected by application. 1136860484Sobrien 1136960484Sobrien * as.c (main) [BFD_ASSEMBLER]: If errors occur, close and unlink 1137060484Sobrien the output file. 1137160484Sobrien 1137260484Sobrien * doc/as.texinfo: Don't use @value in node names for the moment; 1137360484Sobrien references don't appear to work right. 1137460484Sobrien 1137560484Sobrien * as.h (const, volatile): Put these definitions back, and use 1137660484Sobrien them. 1137760484Sobrien 1137860484Sobrien * doc/as.texinfo: First pass at using new texinfo features -- 1137960484Sobrien variables, conditional tests. Far from complete. 1138060484Sobrien 1138160484SobrienMon Mar 29 16:05:40 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1138260484Sobrien 1138360484Sobrien * read.c: Temporary hack to handle some 64-bit constants. This 1138460484Sobrien should be redone later. 1138560484Sobrien (target_big_endian): Declare. 1138660484Sobrien (big_cons): If it's set, reverse order of bytes being copied. 1138760484Sobrien * config/tc-sparc.c (md_begin): Set target_big_endian. 1138860484Sobrien 1138960484Sobrien * read.c (s_ignore): Delete declaration of is_end_of_line. 1139060484Sobrien 1139160484Sobrien * config/obj-coffbfd.c (yank_symbols): Build list of file symbol 1139260484Sobrien forward pointers properly. 1139360484Sobrien 1139460484SobrienMon Mar 29 13:47:33 1993 Steve Chamberlain (sac@thepub.cygnus.com) 1139560484Sobrien 1139660484Sobrien * config/obj-coffbfd.c (do_relocs_for): Fix bug where nrelocs 1139760484Sobrien wasn't being stored into scnhdr. 1139860484Sobrien * config/obj-coffbfd.h: Add prototype of s_get_segment. 1139960484Sobrien * read.c (TC_START_LABEL): Default definition. 1140060484Sobrien (read_a_source_file): Use TC_START_LABEL macro to work out 1140160484Sobrien if a label has been seen. 1140260484Sobrien 1140360484SobrienMon Mar 29 12:56:56 1993 Ian Lance Taylor (ian@cygnus.com) 1140460484Sobrien 1140560484Sobrien * configure.in: Set BFDDEF and BFDLIB at the top of Makefile, not 1140660484Sobrien the bottom (make expands variables in dependencies when the 1140760484Sobrien dependencies are read, not when they are used). 1140860484Sobrien 1140960484Sobrien * config/obj-coffbfd.c (fill_section): Don't set NOLOAD bit for 1141060484Sobrien a29k .bss section; the mondfe program doesn't like it. 1141160484Sobrien 1141260484SobrienSun Mar 28 08:12:53 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com) 1141360484Sobrien 1141460484Sobrien * config/tc-m68k.c: Use PARAMS macro, and use CONST instead of 1141560484Sobrien const. 1141660484Sobrien (current_architecture): Don't need initializer. 1141760484Sobrien 1141860484SobrienFri Mar 26 08:12:48 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1141960484Sobrien 1142060484Sobrien * doc/none.m4: Define Z8000. 1142160484Sobrien * doc/Makefile.in (as-*.texinfo): Refer to $(srcdir). Remove the 1142260484Sobrien texinfo file before recreating it. 1142360484Sobrien (TEXI2DVI): Need to set TEXINPUTS if "make as.dvi" is to work in 1142460484Sobrien this directory. 1142560484Sobrien (srcdir): Delete second, bogus definition. 1142660484Sobrien (as.info): Look for as-*.texinfo in current directory rather than 1142760484Sobrien in $(srcdir). 1142860484Sobrien (as.dvi): Ditto. 1142960484Sobrien (dvi): New rule. 1143060484Sobrien * doc/configure.in: Create links to all as-*.texinfo files in the 1143160484Sobrien source directory, if that's not the current directory. 1143260484Sobrien 1143360484Sobrien * configure.in (per-host): Accept MIPS host with BSD version 1143460484Sobrien number. 1143560484Sobrien (per-target): Classify i486 as i386. Use generic cpu_type instead 1143660484Sobrien of target_cpu in selecting format etc. 1143760484Sobrien 1143860484Sobrien * app.c (do_scrub_next_char): Use .appfile, not .app-file. 1143960484Sobrien * read.c (potable): Change .app-file to .appfile. 1144060484Sobrien 1144160484Sobrien * config/ho-decstatn.h: Renamed from ho-decstation.h. 1144260484Sobrien * configure.in: Adjusted. 1144360484Sobrien 1144460484Sobrien * config/obj-bfd-sunos.*: Unused; deleted. 1144560484Sobrien 1144660484Sobrien * Makefile.in (version.c, vers-stamp): Deleted. 1144760484Sobrien (config.h): Define GAS_VERSION. 1144860484Sobrien * as.c (version_string): Deleted declaration. 1144960484Sobrien (main): Look for GAS_VERSION instead. 1145060484Sobrien 1145160484Sobrien * doc/as.texinfo: Updated description of -a* (listing) options, 1145260484Sobrien and describe how to pass them through from gcc. 1145360484Sobrien 1145460484Sobrien * config/obj-coffbfd.c (do_relocs_for): Don't allocate storage or 1145560484Sobrien process relocs if there aren't any relocs to process. Avoids 1145660484Sobrien malloc/free bug on SCO too. 1145760484Sobrien 1145860484Sobrien * as.h: Move local include files below system include files, to 1145960484Sobrien avoid some redefinition complaints on some systems. 1146060484Sobrien (const, volatile): Don't need these conditionally defined if we 1146160484Sobrien use CONST and VOLATILE from ansidecl.h. 1146260484Sobrien (seg_name): Use CONST, not const. 1146360484Sobrien 1146460484SobrienFri Mar 26 10:22:04 1993 Ian Lance Taylor (ian@cygnus.com) 1146560484Sobrien 1146660484Sobrien * config/tc-mips.c: Reindented to GNU standards. 1146760484Sobrien 1146860484SobrienThu Mar 25 08:59:14 1993 Ian Lance Taylor (ian@cygnus.com) 1146960484Sobrien 1147060484Sobrien * config/obj-coffbfd.c (do_relocs_for): Remove a29k special case. 1147160484Sobrien (fixup_segment): Add a29k special case; the linker is not prepared 1147260484Sobrien to see a segment offset here. 1147360484Sobrien 1147460484Sobrien * app.c (do_scrub_next_char): Added new state, 10, modifying state 1147560484Sobrien 9 to only keep a space in between identifier characters. 1147660484Sobrien 1147760484SobrienWed Mar 24 02:16:22 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com) 1147860484Sobrien 1147960484Sobrien * Makefile.in: add dvi target; as-$(config).texinfo might live in 1148060484Sobrien srcdir, might be in objdir. 1148160484Sobrien 1148260484Sobrien * doc/Makefile.in: dvi depends on as.dvi 1148360484Sobrien 1148460484SobrienMon Mar 22 23:59:13 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 1148560484Sobrien 1148660484Sobrien * Makefile.in: add installcheck target 1148760484Sobrien 1148860484SobrienMon Mar 22 16:25:57 1993 Jim Wilson (wilson@sphagnum.cygnus.com) 1148960484Sobrien 1149060484Sobrien * config/tc-sparc.c (sparc_ip): Add support for membar mask names. 1149160484Sobrien Add missing colons in prefetch error messages. Add support for 1149260484Sobrien ASI names. 1149360484Sobrien 1149460484SobrienMon Mar 22 10:19:00 1993 Ian Lance Taylor (ian@cygnus.com) 1149560484Sobrien 1149660484Sobrien * config/tc-mips.c (macro): Use $AT for any floating point load. 1149760484Sobrien 1149860484SobrienSat Mar 20 12:50:51 1993 Ken Raeburn (raeburn@urth.cygnus.com) 1149960484Sobrien 1150060484Sobrien * config/tc-m68k.c (m68k_ip): For operand type 'M', reject 1150160484Sobrien bignums, but don't emit error message. 1150260484Sobrien 1150360484SobrienFri Mar 19 21:02:19 1993 Jim Wilson (wilson@sphagnum.cygnus.com) 1150460484Sobrien 1150560484Sobrien * Makefile.in (targ-cpu.o): Depend on config.h. 1150660484Sobrien 1150760484SobrienWed Mar 17 16:44:06 1993 Ian Lance Taylor (ian@cygnus.com) 1150860484Sobrien 1150960484Sobrien * app.c (do_scrub_next_char): Added new state, 9, to avoid 1151060484Sobrien dropping a space immediately following an identifier. 1151160484Sobrien * expr.c, write.c: Rewrote assert expressions to not use multiple 1151260484Sobrien lines; I don't think that can be done portably. 1151360484Sobrien * config/tc-mips.c (macro): Use $AT if target register is zero in 1151460484Sobrien load instruction, which it can be for a floating point load. 1151560484Sobrien 1151660484SobrienMon Mar 15 12:17:28 1993 Ian Lance Taylor (ian@cygnus.com) 1151760484Sobrien 1151860484Sobrien * write.c (write_contents): Compute the relocs before writing out 1151960484Sobrien the section contents. 1152060484Sobrien * config/obj-ecoff.h, config/obj-ecoff.c: Numerous changes to get 1152160484Sobrien symbol table and values right. 1152260484Sobrien * config/tc-mips.h (LOCAL_LABEL): If OBJ_ECOFF, any label starting 1152360484Sobrien with $L is local. 1152460484Sobrien * config/tc-mips.c (tc_gen_reloc): If OBJ_ECOFF, adjust the addend 1152560484Sobrien by the section vma. 1152660484Sobrien 1152760484Sobrien * config/z8k.mt (TARG_CPU_DEPENDENTS): The relevant file is 1152860484Sobrien z8k-opc.h, not z8k.h. 1152960484Sobrien 1153060484Sobrien * config/obj-coffbfd.c (obj_coff_endef): Correct test for .bf 1153160484Sobrien symbol. 1153260484Sobrien 1153360484SobrienFri Mar 12 18:33:36 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 1153460484Sobrien 1153560484Sobrien * configure.in: recognize sparc-sun-solaris2* instead of -solaris2 1153660484Sobrien 1153760484SobrienFri Mar 12 12:00:07 1993 Ian Lance Taylor (ian@cygnus.com) 1153860484Sobrien 1153960484Sobrien * expr.c, write.c: Ultrix native 4.2 cc requires assert condition 1154060484Sobrien to be on a single line. 1154160484Sobrien 1154260484SobrienThu Mar 11 17:56:22 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1154360484Sobrien 1154460484Sobrien * Makefile.in (config.h): Create file, writing out definitions of 1154560484Sobrien target cpu, alias, and canonical name. 1154660484Sobrien (ALL_CFLAGS): No longer define TARGET_CPU. 1154760484Sobrien 1154860484Sobrien * Makefile.in (check): Print a message, instead of quitting 1154960484Sobrien silently. 1155060484Sobrien 1155160484Sobrien * as.c (main): Don't catch any signals, for now. 1155260484Sobrien 1155360484Sobrien * version.c: Deleted. 1155460484Sobrien * Makefile.in: Generate it, putting in only the version number 1155560484Sobrien itself. 1155660484Sobrien (VERSION): New variable. 1155760484Sobrien * as.c: Include config.h. 1155860484Sobrien (main): Reformatted version string. Include target alias. Don't 1155960484Sobrien print if not requested (i.e., unknown -v argument). 1156060484Sobrien 1156160484Sobrien * as.c (stralloc): Deleted. 1156260484Sobrien (main): Call strdup instead. 1156360484Sobrien 1156460484Sobrien * configure.in: Handle all 68300 series chips. 1156560484Sobrien * config/tc-m68k.c: Include config.h. 1156660484Sobrien (md_assemble): Assume TARGET_CPU is defined. Accept some 68300 1156760484Sobrien series cpus as defaults. 1156860484Sobrien (md_parse_option): Accept some m68300 series CPUs as defaults. 1156960484Sobrien 1157060484SobrienWed Mar 10 17:41:16 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1157160484Sobrien 1157260484Sobrien * as.c (EXIT_SUCCESS, EXIT_FAILURE): Define to normal values if 1157360484Sobrien not already defined. 1157460484Sobrien (main, got_sig): Use them. 1157560484Sobrien * config/ho-vms.h (EXIT_SUCCESS, EXIT_FAILURE): Reverse default 1157660484Sobrien values. 1157760484Sobrien 1157860484SobrienTue Mar 9 07:40:06 1993 Ian Lance Taylor (ian@cygnus.com) 1157960484Sobrien 1158060484Sobrien * config/obj-ecoff.c, config/obj-ecoff.h: Preliminary ECOFF 1158160484Sobrien support. 1158260484Sobrien 1158360484Sobrien * config/tc-mips.h (TARGET_FORMAT): Define based on OBJ_AOUT vs. 1158460484Sobrien OBJ_ECOFF as well as TARGET_BYTES_*_ENDIAN. 1158560484Sobrien (struct loc, struct proc, struct file): Moved to tc-mips.c within 1158660484Sobrien #ifndef OBJ_ECOFF block, since ECOFF uses different versions. 1158760484Sobrien * config/tc-mips.c: Rearranged for ECOFF support. Added 1158860484Sobrien prototypes for all static functions. Moved existing minimal 1158960484Sobrien debugging format support info #ifndef OBJ_ECOFF blocks. 1159060484Sobrien (macro_build_lui): Eliminated sign_extend argument, because ECOFF 1159160484Sobrien does not support a non sign extended high 16 bits reloc. Adjusted 1159260484Sobrien all callers accordingly. 1159360484Sobrien (tc_get_register): Renamed from get_register, and made non-static. 1159460484Sobrien 1159560484Sobrien * config/mips-big.mt, config/mips-lit.mt: New files. Define 1159660484Sobrien TARGET_BYTES_BIG_ENDIAN and TARGET_BYTES_LITTLE_ENDIAN, 1159760484Sobrien respectively. 1159860484Sobrien * configure.in (mips-*-bsd*): Use gas_target mips-lit. 1159960484Sobrien (mips-*-ultrix*, mips-*-irix*, mips-*-ecoff): New targets, using 1160060484Sobrien obj_format ecoff and gas_target mips-lit or mips-big. 1160160484Sobrien 1160260484SobrienTue Mar 9 07:43:01 1993 Ken Raeburn (raeburn@cygnus.com) 1160360484Sobrien 1160460484Sobrien * version.c: Bump to version 2.0.1. 1160560484Sobrien 1160660484SobrienTue Mar 9 07:40:06 1993 Ian Lance Taylor (ian@cygnus.com) 1160760484Sobrien 1160860484Sobrien * write.c (chain_frchains_together): Check that seg_info (section) 1160960484Sobrien is not NULL. 1161060484Sobrien (write_object_file): Call obj_frob_file after setting the symbols, 1161160484Sobrien not before. 1161260484Sobrien 1161360484SobrienTue Mar 9 00:00:00 1993 Ken Raeburn (raeburn@cygnus.com) 1161460484Sobrien 1161560484Sobrien * Version 2.0 released. 1161660484Sobrien 1161760484SobrienMon Mar 8 14:57:10 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1161860484Sobrien 1161960484Sobrien * config/tc-i386.h (TC_COUNT_RELOC): Look for fx_addsy only. 1162060484Sobrien 1162160484SobrienFri Mar 5 09:05:55 1993 Ian Lance Taylor (ian@cygnus.com) 1162260484Sobrien 1162360484Sobrien * read.h: Define stringer here. 1162489857Sobrien * read.c, config/obj-ieee.c, config/obj-tcm88k.c: Not any of these 1162560484Sobrien places. 1162660484Sobrien 1162760484SobrienThu Mar 4 11:52:23 1993 Steve Chamberlain (sac@thepub.cygnus.com) 1162860484Sobrien 1162960484Sobrien * read.c (s_space): Multiply repeat count by mult, not fill. 1163060484Sobrien 1163160484SobrienThu Mar 4 05:20:42 1993 Ken Raeburn (raeburn@cygnus.com) 1163260484Sobrien 1163360484Sobrien * read.c: Include ctype.h. 1163460484Sobrien 1163560484SobrienWed Mar 3 10:41:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1163660484Sobrien 1163760484Sobrien Patches from Eric Youngdale: 1163860484Sobrien * make-gas.com: Find obstack.obj if it's not in the current 1163960484Sobrien directory. 1164060484Sobrien * read.c (s_ignore): Don't declare is_end_of_line. It's 1164160484Sobrien redundant, and triggers a VMS gcc compiler bug. 1164260484Sobrien 1164360484Sobrien * write.c (write_object_file): Macro SUB_SEGMENT_ALIGN now takes 1164460484Sobrien current segment as an argument. (Ignored in all cases but VMS.) 1164560484Sobrien All callers and definitions changed. 1164660484Sobrien 1164760484SobrienTue Mar 2 11:56:19 1993 Ian Lance Taylor (ian@cygnus.com) 1164860484Sobrien 1164960484Sobrien * listing.c: Cleaned up a bit, added prototypes, made NO_LISTING 1165060484Sobrien case compile again. 1165160484Sobrien 1165260484SobrienTue Mar 2 08:53:34 1993 Ken Raeburn (raeburn@cygnus.com) 1165360484Sobrien 1165460484Sobrien * config/tc-m68k.c (isbyte): Accept all values from -255 to +255, 1165560484Sobrien so "~0x80" won't be rejected. 1165660484Sobrien 1165760484Sobrien * config/obj-elf.c: No longer include elf/reloc.h. 1165860484Sobrien (obj_elf_section): Set SEC_READONLY and SEC_CODE for text section. 1165960484Sobrien (obj_elf_stab, obj_elf_desc): Deleted do-nothing and commented-out 1166060484Sobrien routines. 1166160484Sobrien (obj_elf_xstab): New routine. 1166260484Sobrien (obj_elf_set_size): Call as_warn, not fprintf. Pass desired 1166360484Sobrien argument to s_ignore. Put "#if 0" around unused code. 1166460484Sobrien (obj_pseudo_table): Use s_ignore instead of do-nothing routines. 1166560484Sobrien Call elf_xstabs for .stabs and .xstabs operators. 1166660484Sobrien 1166760484Sobrien * config/tc-sparc.h (TARGET_FORMAT) [OBJ_ELF]: Now "elf32-sparc". 1166860484Sobrien 1166960484Sobrien * write.c (relax_and_size_seg): Set SEC_RELOC only if fixups are 1167060484Sobrien present. 1167160484Sobrien 1167260484Sobrien * configure.in: mips-bsd configuration was missing format spec. 1167360484Sobrien Should use aout. 1167460484Sobrien 1167560484Sobrien * Makefile.in (Makefile): Depends on configure.in. 1167660484Sobrien 1167760484Sobrien * config/tc-mips.c (append_insn): Don't check for alignment of 1167860484Sobrien frag in memory; alignment of instructions in section is a separate 1167960484Sobrien matter. 1168060484Sobrien 1168160484Sobrien * config/tc-mips.c (macro_build_lui): Fix some assumptions of ANSI 1168260484Sobrien C availability. 1168360484Sobrien 1168460484Sobrien * listing.h: Always provide function declarations, not macros, so 1168560484Sobrien pcc won't lose. 1168660484Sobrien 1168760484SobrienTue Mar 2 00:50:43 1993 John Gilmore (gnu@cygnus.com) 1168860484Sobrien 1168960484Sobrien * CONTRIBUTORS: Update Gilmore entry. 1169060484Sobrien 1169160484SobrienMon Mar 1 12:03:16 1993 Jim Wilson (wilson@sphagnum.cygnus.com) 1169260484Sobrien 1169360484Sobrien * config/tc-sparc.c (sparc_ip): Correctly assemble prefetch 1169460484Sobrien instructions. Accept integer prefetch function numbers. 1169560484Sobrien 1169660484SobrienWed Feb 24 14:58:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1169760484Sobrien 1169860484Sobrien * config/tc-sparc.c (s_xword): Now call big_cons, so large 1169960484Sobrien constants are accepted, but symbolic values are not. GCC will not 1170060484Sobrien generate the latter currently. 1170160484Sobrien 1170260484Sobrien * frags.c (frag_init): New function. 1170360484Sobrien (zero_address_frag, bss_address_frag): Now initialized at run 1170460484Sobrien time. 1170560484Sobrien * as.c (main): Call frag_init. 1170660484Sobrien 1170760484SobrienWed Feb 24 10:32:42 1993 Ian Lance Taylor (ian@cygnus.com) 1170860484Sobrien 1170960484Sobrien * app.c (do_scrub_next_char): In LEX_IS_LINE_COMMENT_START case: 1171060484Sobrien Don't unget ch2 if we didn't get it. 1171160484Sobrien 1171260484SobrienWed Feb 24 04:14:07 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com) 1171360484Sobrien 1171460484Sobrien * doc/Makefile.in (TEXIDIR): Updated for new layout. 1171560484Sobrien 1171660484Sobrien * config/tc-sparc.c (s_common): Add support for ELF version. 1171760484Sobrien (tc_gen_reloc) [BFD_ASSEMBLER]: New function. 1171860484Sobrien * config/tc-sparc.h (TARGET_ARCH, TARGET_FORMAT) [BFD_ASSEMBLER]: 1171960484Sobrien New macros. 1172060484Sobrien (md_convert_frag): New macro. 1172160484Sobrien 1172260484Sobrien * config/tc-m68k.c (m68k_ip): For PC-relative addressing of a 1172360484Sobrien symbol, fix the offset so "+2" isn't required. 1172460484Sobrien 1172560484Sobrien * config/tc-i960.c (line_comment_chars, line_separator_chars): 1172660484Sobrien Define as common/bss. 1172760484Sobrien (op_hash, reg_hash, areg_hash, iclasses_seen, br_cnt): Default C 1172860484Sobrien initializers are sufficient. 1172960484Sobrien 1173060484Sobrien * config/obj-aout.h [BFD_ASSEMBLER]: Include libaout.h from bfd. 1173160484Sobrien (TARGET_FORMAT) [BFD_ASSEMBLER]: Default to "a.out". 1173260484Sobrien (S_SET_*, S_GET_*, obj_frob_symbol) [BFD_ASSEMBLER]: New macros. 1173360484Sobrien (S_SET_TYPE) [!BFD_ASSEMBLER]: New macro. 1173460484Sobrien * config/obj-aout.c: Use PARAMS macro for declarations. Remove 1173560484Sobrien "IGNORE_DEBUG" conditional, since both branches are identical. 1173660484Sobrien Use S_SET_TYPE, S_GET_TYPE, and S_GET_DESC instead of directly 1173760484Sobrien referencing symbol structure members. 1173860484Sobrien (obj_aout_frob_symbol) [BFD_ASSEMBLER]: New function. 1173960484Sobrien 1174060484Sobrien * as.h (struct frag): Reordered a couple of fields for better 1174160484Sobrien packing. 1174260484Sobrien 1174360484Sobrien * write.c (record_alignment) [BFD_ASSEMBLER]: Record it in the 1174460484Sobrien section info. 1174560484Sobrien (write_contents) [BFD_ASSEMBLER]: New function. 1174660484Sobrien (write_object_file) [BFD_ASSEMBLER]: Always handle -R here. Call 1174760484Sobrien fix_new with BFD_RELOC_NONE instead of 0 or NO_RELOC. Call 1174860484Sobrien obj_frob_file, obj_frob_symbol, tc_frob_symbol if defined. 1174960484Sobrien (fixup_segment): Make sure common-section symbols get treated the 1175060484Sobrien same as undefined symbols. 1175160484Sobrien (fix_new) [BFD_ASSEMBLER]: Argument r_type is of type 1175260484Sobrien bfd_reloc_code_real_type. Use seg_fix_{root,tail}P derived from 1175360484Sobrien section info. 1175460484Sobrien * write.h (fix_new): Update prototype. 1175560484Sobrien 1175660484Sobrien * tc.h (md_operand, md_convert_frag, tc_headers_hook, 1175760484Sobrien md_section_align, md_undefined_symbol): Don't provide prototypes 1175860484Sobrien if these are defined as macros. 1175960484Sobrien (md_convert_frag) [BFD_ASSEMBLER]: BFD version needs bfd and 1176060484Sobrien section passed. 1176160484Sobrien 1176260484Sobrien * symbols.c (symbol_new): Argument NAME is now pointer to const. 1176360484Sobrien Simplified STRIP_UNDERSCORE code. Remove assumptions about null 1176460484Sobrien pointers in freshly allocated storage. [BFD_ASSEMBLER]: Get new 1176560484Sobrien BFD symbol. 1176660484Sobrien (colon): Display other/desc fields of redefined symbol only if 1176760484Sobrien S_GET_OTHER and S_GET_DESC are defined. 1176860484Sobrien (symbol_make): Argument NAME is now pointer to const. 1176960484Sobrien (symbol_find, symbol_find_base): Likewise. 1177060484Sobrien (S_IS_*, S_GET_*, S_SET_*) [BFD_ASSEMBLER]: New functions. 1177160484Sobrien * symbols.h: Fix prototypes for new const arguments. Add 1177260484Sobrien prototypes for BFD_ASSEMBLER S_* functions. 1177360484Sobrien 1177460484Sobrien * subsegs.c (subseg_change) [BFD_ASSEMBLER]: BFD version of code 1177560484Sobrien for changing to an existing section. 1177660484Sobrien (subseg_new_rest) [BFD_ASSEMBLER]: Split off from subseg_new, 1177760484Sobrien called by subseg_new and subseg_set. 1177860484Sobrien (subseg_new) [BFD_ASSEMBLER]: Rewritten to change to new section, 1177960484Sobrien given section name and subseg number. 1178060484Sobrien (subseg_set) [BFD_ASSEMBLER]: New function; change to a possibly 1178160484Sobrien new section/subsection. 1178260484Sobrien 1178360484Sobrien * read.c: Don't include ctype.h. 1178460484Sobrien (cons) [BFD_ASSEMBLER]: For undefined symbols, use BFD_RELOC_32 1178560484Sobrien for now; should be machine-dependent. 1178660484Sobrien 1178760484Sobrien * configure.in: Accept *-*-elf and *-*-solaris* as ELF format 1178860484Sobrien targets, forcing BFD use. 1178960484Sobrien 1179060484SobrienWed Feb 17 18:59:03 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1179160484Sobrien 1179260484Sobrien * config/tc-sparc.c: Use PARAMS macro for static function 1179360484Sobrien declarations. Use BFD_RELOC_ macros everywhere, with 1179460484Sobrien compatibility macros declared for non-BFD mode. 1179560484Sobrien (struct sparc_it) [BFD_ASSEMBLER]: Use bfd_reloc_code_real_type 1179660484Sobrien instead of enum reloc_type. 1179760484Sobrien (emit_sparc_reloc): Commented-out function deleted. 1179860484Sobrien (md_convert_frag): Deleted. 1179960484Sobrien (tc_aout_pre_write_hook): Don't define for BFD_ASSEMBLER. 1180060484Sobrien (md_apply_fix): Changed calling sequence (conditionally) for BFD 1180160484Sobrien version. 1180260484Sobrien * config/tc-sparc.h (md_convert_frag): New macro. 1180360484Sobrien 1180460484Sobrien * config/obj-aout.c (obj_aout_stab): Refer to undefined_section, 1180560484Sobrien not SEG_UNKNOWN. Use S_SET_TYPE, S_GET_TYPE, S_GET_DESC instead 1180660484Sobrien of referencing fields directly. 1180760484Sobrien 1180860484Sobrien * write.c (cvt_frag_to_fill): New function; extracted from 1180960484Sobrien write_object_file. 1181060484Sobrien (write_object_file) [! BFD_ASSEMBLER]: Call it. 1181160484Sobrien (relax_and_size_seg) [BFD_ASSEMBLER]: New function; relax section 1181260484Sobrien and set its size and flags. 1181360484Sobrien 1181460484Sobrien * struc-symbol.h (struct symbol) [BFD_ASSEMBLER]: Replace some 1181560484Sobrien fields with BFD equivalents. Turn on back-pointers, and add 1181660484Sobrien target-specific fields at end. 1181760484Sobrien 1181860484SobrienThu Feb 11 09:20:37 1993 Ian Lance Taylor (ian@cygnus.com) 1181960484Sobrien 1182060484Sobrien * config/obj-coffbfd.c (fill_section): Don't set vaddr here. 1182160484Sobrien (write_object_file): Set it here instead, so that fixup_segment 1182260484Sobrien can see the correct value. 1182360484Sobrien 1182460484SobrienMon Feb 8 13:56:17 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1182560484Sobrien 1182660484Sobrien * write.c (write_object_file): Check for errors and warnings and 1182760484Sobrien bail out before processing contents. 1182860484Sobrien (chain_frchains_together_1): New function, does most of the work 1182960484Sobrien of remove_subsegs. 1183060484Sobrien (chain_frchains_together) [BFD_ASSEMBLER]: New function. 1183160484Sobrien (remove_subsegs) [! BFD]: Call it. 1183260484Sobrien (write_object_file) [BFD_ASSEMBLER]: Converted to use BFD 1183360484Sobrien structures and routines. 1183460484Sobrien 1183560484Sobrien * config/obj-elf.*: New files. 1183660484Sobrien 1183760484Sobrien * config/mips.mt, config/rs6000.mt: Deleted. 1183860484Sobrien 1183960484Sobrien * config/h8300.mt: Don't specify compiler here. 1184060484Sobrien 1184160484Sobrien * config/z8k.mt: The z8k code depends on the z8k opcode table, 1184260484Sobrien not the h8300 one. 1184360484Sobrien * config/tc-z8k.h: Comment fix. 1184460484Sobrien 1184560484Sobrien * write.c: Reordered some functions for better inlining. 1184660484Sobrien (fixup_segment): Linkrelax code is no longer conditional on 1184760484Sobrien TC_I960. 1184860484Sobrien 1184960484SobrienThu Feb 4 12:45:16 1993 Steve Chamberlain (sac@thepub.cygnus.com) 1185060484Sobrien 1185189857Sobrien * config/{h8500.mt, config/tc-h8500.c, config/tc-h8500.h, 1185289857Sobrien config/obj-coffbfd.c, obj-coffbfd.h}: support for the H8/500. 1185360484Sobrien 1185460484SobrienWed Feb 3 19:28:18 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1185560484Sobrien 1185660484Sobrien * config/obj-vms.h (SUB_SEGMENT_ALIGN): Define VMS version here. 1185760484Sobrien * write.c (write_object_file): Not here. 1185860484Sobrien (fix_new): Initialize fx_addnumber. 1185960484Sobrien 1186060484Sobrien * listing.c: Don't include target-cpu.h explicitly, since as.h 1186160484Sobrien includes it. 1186260484Sobrien 1186360484SobrienThu Jan 28 00:35:40 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com) 1186460484Sobrien 1186560484Sobrien * write.h [BFD_ASSEMBLER]: Don't declare next_object_file_charP, 1186660484Sobrien *_fix_root, *_fix_tail, seg_fix_rootP, seg_fix_tailP. 1186760484Sobrien (struct fix): Reordered fields for compactness and efficiency. 1186860484Sobrien Converted some logical fields to 1-bit fields. 1186960484Sobrien 1187060484Sobrien * config/obj-aout.h: Use PARAMS. 1187160484Sobrien [BFD_ASSEMBLER]: Don't define/declare AOUT_MACHTYPE, seg_N_TYPE, 1187260484Sobrien N_TYPE_seg, DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE. 1187360484Sobrien 1187460484Sobrien * read.c: Don't include listing.h; as.h includes it. Removed 1187560484Sobrien DONTDEF code. 1187660484Sobrien [BFD_ASSEMBLER]: Include subsegs.h. 1187760484Sobrien (old_buffer, new_broken_words): Default initialization is 1187860484Sobrien sufficient. 1187960484Sobrien 1188060484Sobrien * output-file.c [BFD_ASSEMBLER]: Include bfd.h, default TARGET_MACH 1188160484Sobrien to 0, define stdoutput. 1188260484Sobrien (output_file_create) [BFD_ASSEMBLER]: Call bfd_perror on failure. 1188360484Sobrien Call bfd_set_arch_mach. 1188460484Sobrien (output_file_close) [BFD_ASSEMBLER]: Call bfd_close, not 1188560484Sobrien bfd_close_all_done. Call bfd_perror on failure. 1188660484Sobrien (output_file_append) [BFD_ASSEMBLER]: Don't define. 1188760484Sobrien 1188860484Sobrien * config/m68kcoff.mt (LOCAL_LOADLIBES): Delete definition. 1188960484Sobrien 1189060484Sobrien * subsegs.h (segment_info_type): Always define. Omit field scnhdr 1189160484Sobrien if not MANY_SEGMENTS. Define new field bfd_section if 1189260484Sobrien BFD_ASSEMBLER. 1189360484Sobrien (seg_info): New macro. 1189460484Sobrien 1189560484Sobrien * expr.c, input-scrub.c: Use PARAMS macro. Deleted unused 1189660484Sobrien variables, and some irrelevant comments. 1189760484Sobrien 1189860484Sobrien * Makefile.in (ALL_CFLAGS): Include $(BFDDEF). 1189960484Sobrien (LIBS): Include $(BFDLIB). Don't bother with $(CLIB). 1190060484Sobrien * configure.in: Permit --with-bfd-assembler now, with a warning. 1190160484Sobrien Variable need_bfd is now a boolean, as is new variable bfd_gas. 1190260484Sobrien Set BFDDEF and BFDLIB in Makefile when appropriate. 1190360484Sobrien 1190460484Sobrien * as.c: Removed "#ifdef DONTDEF" and "#ifdef comment" code. 1190560484Sobrien (main): Refer to flag_always_generate_output instead of 1190660484Sobrien flagseen['Z']. 1190760484Sobrien 1190860484Sobrien * as.c (main) [BFD_ASSEMBLER]: Open output bfd. 1190960484Sobrien (*_section) [BFD_ASSEMBLER]: Define them. 1191060484Sobrien (perform_an_assembly_pass) [BFD_ASSEMBLER]: Initialize them, and 1191160484Sobrien set section flags when appropriate. 1191260484Sobrien * as.h (SEG_NORMAL) [BFD_ASSEMBLER]: Require that the specified 1191360484Sobrien section is not absolute, undefined, or an assembler internal one. 1191460484Sobrien (absolute_section, undefined_section): Always define. 1191560484Sobrien * expr.c, read.c, symbols.c: Refer to *_section, not SEG_*; break 1191660484Sobrien switch statements into if-else trees. 1191760484Sobrien * symbols.c [MANY_SEGMENTS]: Deleted redundant definitions of 1191860484Sobrien SEG_BSS and SEG_DATA. 1191960484Sobrien 1192060484Sobrien * as.h (frag_now_fix): New macro. 1192160484Sobrien * symbols.c (colon): Use it. 1192260484Sobrien 1192360484SobrienWed Jan 27 21:43:53 PST 1993 Ralph Campbell (ralphc@pyramid.com) 1192460484Sobrien 1192560484Sobrien * config/tc-mips.c: Added mips support for mips-dec-bsd. 1192660484Sobrien * config/tc-mips.h: Added mips support for mips-dec-bsd. 1192760484Sobrien * config/ho-mipsbsd.h: Added mips support for mips-dec-bsd. 1192860484Sobrien * config/mips-opcode.h: Added mips support for mips-dec-bsd. 1192960484Sobrien * configure.in: Added mips support for mips-dec-bsd. 1193060484Sobrien * atof-generic.c: Define TRUE and FALSE if not defined. 1193160484Sobrien 1193260484SobrienThu Jan 21 12:48:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1193360484Sobrien 1193460484Sobrien * version.c: Bumped version number to 1.93.05. 1193560484Sobrien 1193660484SobrienWed Jan 20 17:11:53 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1193760484Sobrien 1193860484Sobrien * config/obj-coff.c (obj_emit_relocations): Don't use #elif. 1193960484Sobrien (obj_emit_lineno): Don't need return at end of void function. 1194060484Sobrien (obj_symbol_new_hook): Ditto. 1194160484Sobrien 1194260484Sobrien * config/tc-m68k.c: Removed some unused code. 1194360484Sobrien (tc_aout_fix_to_chars): Array nbytes_r_length is now const. 1194460484Sobrien 1194560484Sobrien * config/tc-m68k.h (TC_COUNT_RELOC): Don't emit reloc if only 1194660484Sobrien offset field is set. 1194760484Sobrien 1194860484SobrienFri Jan 8 05:44:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1194960484Sobrien 1195060484Sobrien * config/tc-sparc.c (sparc_ip): For %uhi and %ulo, if not 1195160484Sobrien ENV64, emit no reloc. 1195260484Sobrien (md_pseudo_table): For ".xword", call s_xword. 1195360484Sobrien (s_xword): New function. 1195460484Sobrien 1195560484Sobrien * config/tc-sparc.c (architecture_requested, warn_on_bump, 1195660484Sobrien md_relax_table): Use default zero initialization. 1195760484Sobrien (s_reserve): Since SEG_E2 is equivalent to SEG_BSS, just use the 1195860484Sobrien latter, instead of selecting with preprocessor conditionals. 1195960484Sobrien 1196060484SobrienThu Jan 7 08:58:21 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 1196160484Sobrien 1196260484Sobrien * configure.in: recognise all sparclite variants 1196360484Sobrien 1196460484SobrienThu Jan 7 05:25:25 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1196560484Sobrien 1196660484Sobrien * read.c (s_data) [!BFD_ASSEMBLER]: Fix typo in 4 Jan change -- 1196760484Sobrien accidentally changed to use subseg_change where it should have 1196860484Sobrien been subseg_new. 1196960484Sobrien 1197060484SobrienTue Jan 5 08:42:16 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 1197160484Sobrien 1197260484Sobrien * expr.c (operand): If character other than comma or newline is a 1197360484Sobrien logical end-of-line character, use the newline case. 1197460484Sobrien From Eric Youngdale: 1197560484Sobrien (operand): Set X_add_number field for floating-point numbers. 1197660484Sobrien (operand): Treat zero byte as end-of-operand. 1197760484Sobrien 1197860484Sobrien * configure.in (per-target): Look for with_bfd_assembler option. 1197960484Sobrien For now, only accept "no", until the merge is done. 1198060484Sobrien 1198160484Sobrien Merged changes from Eric Youngdale (youngdale@v6550c.nrl.navy.mil): 1198260484Sobrien * as.c, flonum-konst.c, hex-value.c, input-file.c, version.c, 1198360484Sobrien config/obj-aout.h, config/obj-vms.c: VMS -> HO_VMS. 1198460484Sobrien * read.c: Finish conversion to S_* macros in the VMS only 1198560484Sobrien parts of the program. Add "const" modifier to hex_value. 1198660484Sobrien * as.c, read.c, symbols.c, write.c: Change "ifdef VMS" to 1198760484Sobrien "ifdef OBJ_VMS". 1198860484Sobrien * expr.c: Add "const" modifier to hex_value. 1198960484Sobrien * symbols.c: Finish conversion to S_* macros in the VMS only 1199060484Sobrien parts of the program. Add "const" modifier to 1199160484Sobrien md_[long,short]_jump_size. Remove declaration of const_flag 1199260484Sobrien (which will be declared in obj-vms.h). 1199360484Sobrien * write.c: Add "const" modifier to md_[long,short]_jump_size. 1199460484Sobrien Fix arguments to VMS_write_object_file. 1199560484Sobrien * config-gas.com: New file. Script for VMS systems to set up the 1199660484Sobrien configuration to build gas for VMS, and create config.status. 1199760484Sobrien * make-gas.com: Redone to work with new scheme. 1199889857Sobrien * config/obj-vms.c: Patch to fix bug where we were not correctly parsing the 1199960484Sobrien stabs directives. 1200089857Sobrien * config/obj-vms.c: Define macros COPY_LONG and COPY_SHORT which 1200160484Sobrien will swap bytes if needed on a big endian system. Use throughout 1200260484Sobrien as needed. 1200389857Sobrien * config/obj-vms.c (obj_aout_stab): Add code to generate listing file. 1200489857Sobrien * config/obj-vms.c (VMS_typedef_parse): Add alias to correctly handle certain 1200560484Sobrien types of malformed stabs. Change parsing algorithm so that we are 1200660484Sobrien more certain of having all of the information that we need on hand. 1200789857Sobrien * config/obj-vms.c (final_forward_reference): New function, used to help 1200860484Sobrien resolve the data types of as many struct elements as possible 1200960484Sobrien when some part of the struct is not fully defined by the compiler. 1201089857Sobrien * config/obj-vms.c (VMS_LSYM_Parse): Correctly handle case of continuation 1201160484Sobrien stabs directives. 1201289857Sobrien * config/obj-vms.c (VMS_write_object_file): Define all vtable psects 1201360484Sobrien as symbols as well in the object file. Look for external functions 1201460484Sobrien that start with "__vt.", and turn them into variables, since the 1201560484Sobrien g++ compiler is incapable of doing this. 1201689857Sobrien * config/tc-vax.c: Add '1' option for backward compatibility with older GCC 1201760484Sobrien versions. 1201860484Sobrien * bignum-copy.c (bignum_copy): Fix bug where we pad with zeroes. 1201960484Sobrien * input-scrub.c (as_where): Fix bug where as would crash if we did not 1202060484Sobrien have the name of the source file yet. 1202160484Sobrien * config/ho-vms.h: define HO_VMS, not HO_VAX. 1202260484Sobrien 1202360484SobrienMon Jan 4 05:17:26 1993 Ken Raeburn (raeburn@cygnus.com) 1202460484Sobrien 1202560484Sobrien * read.c (s_data): Always use "data_section", since it'll map to 1202660484Sobrien SEG_DATA or SEG_E1 if needed. 1202760484Sobrien (s_lcomm): Likewise with bss_section. 1202860484Sobrien (s_fill): Use memset, not bzero. 1202960484Sobrien 1203060484SobrienThu Dec 31 04:29:27 1992 Ken Raeburn (raeburn@kr-pc.cygnus.com) 1203160484Sobrien 1203260484Sobrien * read.c: Deleted some code under "#ifdef DONTDEF" that was for 1203360484Sobrien handling GDB symbol table data. 1203460484Sobrien 1203560484Sobrien * config/obj-aout.h (segment_name): Delete definition. 1203660484Sobrien (seg_name): Delete declaration. 1203760484Sobrien * config/obj-bout.h (segment_name, seg_name): Ditto. 1203860484Sobrien * config/obj-vms.h (segment_name, seg_name): Ditto. 1203960484Sobrien * config/obj-coff.h (segment_name): Ditto. 1204060484Sobrien * config/obj-coffbfd.h (segment_name): Ditto. 1204160484Sobrien 1204260484Sobrien * Changes for BFD_ASSEMBLER: 1204360484Sobrien * obj.h (obj_crawl_symbol_chain): Declare only if not 1204460484Sobrien BFD_ASSEMBLER. 1204560484Sobrien (obj_header_append, obj_pre_write_hook): Ditto. 1204660484Sobrien * as.h (stdoutput): New var, defined only if BFD_ASSEMBLER. 1204760484Sobrien (segT) [BFD_ASSEMBLER]: New typedef for "asection *". 1204860484Sobrien (segment_name) If BFD_ASSEMBLER, look up BFD section name; 1204960484Sobrien otherwise, use seg_name array. 1205060484Sobrien (seg_name): Declare only if not BFD_ASSEMBLER. 1205160484Sobrien (section_alignment): Declare only if not BFD_ASSEMBLER. 1205260484Sobrien (big_section, reg_section, pass1_section, diff_section, 1205360484Sobrien absent_section, text_section, data_section, bss_section): If 1205460484Sobrien BFD_ASSEMBLER, declare as variables; otherwise, declare as macros, 1205560484Sobrien mapping to segT enum values. 1205660484Sobrien (tc_aout_fix_to_chars, next_object_file_charP): Force parse errors 1205760484Sobrien if these are used or defined, if BFD_ASSEMBLER. 1205860484Sobrien (subseg_set, subseg_new) [BFD_ASSEMBLER]: Functionality of old 1205960484Sobrien subseg_new split into two functions. 1206060484Sobrien (SEG_NORMAL): For BFD_ASSEMBLER, always return true, for now. 1206160484Sobrien 1206260484Sobrien * as.h (volatile): Don't define if already defined. 1206360484Sobrien (had_errors, had_warnings): Provide prototypes for ANSI C even if 1206460484Sobrien NO_STDARG. 1206560484Sobrien (as_bad, as_fatal, as_tsktsk, as_warn): For GNU C version 2, 1206660484Sobrien declare with format attribute for -Wformat checking. 1206760484Sobrien 1206860484SobrienWed Dec 30 10:18:57 1992 Ian Lance Taylor (ian@cygnus.com) 1206960484Sobrien 1207060484Sobrien * app.c, config/tc-*.c: Don't include read.h, since it is already 1207160484Sobrien included by as.h. 1207260484Sobrien 1207360484Sobrien * These are based on patches from Minh Tran-le 1207460484Sobrien <mtranle@paris.intellicorp.com>. 1207560484Sobrien * configure.in (i[34]86-ibm-aix*): Accept i486 for host. Use 1207660484Sobrien obj_format coffbfd and gas_target i386coff for target. 1207760484Sobrien (i[34]86-*-isc*): New host (uses sysv). 1207860484Sobrien * config/i386aix.mt: Removed (no longer used). 1207960484Sobrien * config/mh-i386aix (RANLIB): Use true rather than /bin/true. 1208060484Sobrien (MINUS_G): Removed. 1208160484Sobrien (LDFLAGS): Added, defined as -shlib. 1208260484Sobrien * config/te-i386aix.h (REVERSE_SORT_RELOCS): Undefine. 1208360484Sobrien * config/te-sco386.h (LOCAL_LABEL): Don't define. 1208460484Sobrien (DOT_LABEL_PREFIX): Define. 1208560484Sobrien * expr.c (operand): If DOT_LABEL_PREFIX, use .L0\001 as a label 1208660484Sobrien name rather than L0\001. 1208760484Sobrien * read.c (s_lcomm): Make a frag in SEG_BSS rather than using 1208860484Sobrien local_bss_counter. 1208960484Sobrien * symbols.c, symbols.h (local_bss_counter): Removed. 1209060484Sobrien * write.c (write_object_file): bss no longer uses 1209160484Sobrien local_bss_counter. Pass correct data and bss size to 1209260484Sobrien VMS_write_object_file. 1209360484Sobrien * config/obj-vms.c (VMS_write_object_file): Accept bss size as 1209460484Sobrien argument, rather than using local_bss_counter. 1209560484Sobrien * config/tc-m88k.c (s_bss): Don't use local_bss_counter. 1209660484Sobrien * config/tc-sparc.c (s_reserve): Don't use local_bss_counter. 1209760484Sobrien * config/obj-coffbfd.c (had_lineno, had_reloc): Removed. 1209860484Sobrien (size_section): Restored sanity check. 1209960484Sobrien (do_relocs_for): Base section address on s_paddr rather than 1210060484Sobrien computing it. Adjust a29k R_IHIHALF special case to account for 1210160484Sobrien section paddr (used to require paddr to be zero). If there are no 1210260484Sobrien reclos, set s_relptr to 0. Set relocation size in object_headers. 1210360484Sobrien (fill_section): Always set s_vaddr here, removing 1210460484Sobrien ZERO_BASED_SEGMENTS case. Force s_scnptr for bss to 0. Don't set 1210560484Sobrien NOLOAD for i386 .bss, because it confuses the SVR3 native linker. 1210660484Sobrien Set STYP_INFO for .comment. 1210760484Sobrien (coff_header_append): Use object headers and H_{SET,GET}_* macros. 1210860484Sobrien Make aouthdr writing depend on OBJ_COFF_OMIT_OPTIONAL_HEADER. 1210960484Sobrien (crawl_symbols): Handle 8 character section name correctly. Use 1211060484Sobrien H_{SET,GET}_* macros. 1211160484Sobrien (do_linenos_for): Set lineno size in object_headers. 1211260484Sobrien (write_object_file): Use H_{SET,GET}_* macros. Don't bother to 1211360484Sobrien set s_vaddr here. If string_byte_count remains 4, set it back to 1211460484Sobrien 0, and only write strings out if there are some. Call 1211560484Sobrien fill_section before do_relocs_for and do_linenos_for. 1211660484Sobrien (obj_coff_section): Handle optional quoted second argument giving 1211760484Sobrien section characteristics. 1211860484Sobrien (obj_coff_bss): Added to handle .bss. 1211960484Sobrien (obj_coff_ident): Added to handle .ident (puts string in .comment 1212060484Sobrien section). 1212160484Sobrien (obj_coff_lcomm): Put common symbols in .bss, not .data. 1212260484Sobrien (fixup_mdeps): Change to segment. Call frag_wane after 1212360484Sobrien md_convert_frag. 1212460484Sobrien (fixup_segment): Explicitly check S_IS_COMMON before making 386 1212560484Sobrien adjustment (already happened only for common symbols, but this is 1212660484Sobrien clearer). 1212760484Sobrien * config/obj-coffbfd.h (OBJ_COFF_OMIT_OPTIONAL_HEADER): Define. 1212860484Sobrien * config/tc-i386.c (s_bss): Don't use if I386COFF. 1212960484Sobrien (md_pseudo_table): Ignore .optim and .noopt. 1213060484Sobrien (tc_coff_sizemachdep): New function. 1213160484Sobrien * config/tc-i386.h (REVERSE_SORT_RELOCS): Undef, for SVR3 1213260484Sobrien compatibility. 1213360484Sobrien (LOCAL_LABEL): Removed definition. 1213460484Sobrien (DOT_LABEL_PREFIX): Defined. 1213560484Sobrien 1213660484SobrienMon Dec 28 10:32:05 1992 Ken Raeburn (raeburn@cygnus.com) 1213760484Sobrien 1213860484Sobrien * app.c (app_push): Use memcpy, not bcopy. 1213960484Sobrien (do_scrub_next_char): For \", return " not '. 1214060484Sobrien (symbol_chars): Now const. 1214160484Sobrien 1214260484Sobrien * expr.c (operand): If not LOCAL_LABELS_FB, don't look for "0f" 1214360484Sobrien and "0b". If LOCAL_LABELS_DOLLAR, check for "0$". 1214460484Sobrien 1214560484Sobrien * config/obj-coff.h: Don't use #elif. 1214660484Sobrien 1214760484Sobrien * config/ho-sunos.h: Don't include sys/stdtypes.h; 4.0.3 doesn't 1214860484Sobrien have it. (Reported by Noah Friedman, friedman@gnu.ai.mit.edu.) 1214960484Sobrien 1215060484SobrienWed Dec 16 12:12:33 1992 Ian Lance Taylor (ian@cygnus.com) 1215160484Sobrien 1215289857Sobrien * write.c, config/obj-ieee.c: don't define SUB_SEGMENT_ALIGN 1215389857Sobrien if it is already defined. 1215460484Sobrien 1215560484SobrienTue Dec 15 12:40:11 1992 Steve Chamberlain (sac@thepub.cygnus.com) 1215660484Sobrien 1215760484Sobrien * app.c (do_scrub_begin): allow single quote strings if so 1215860484Sobrien configured. 1215960484Sobrien 1216060484Sobrien * config/*z8k*: checkpoint 1216160484Sobrien 1216260484SobrienSun Dec 13 00:04:38 1992 Ian Lance Taylor (ian@cygnus.com) 1216360484Sobrien 1216460484Sobrien * read.c (read_a_source_file): avoid calling xmalloc (0). 1216560484Sobrien 1216660484SobrienSat Dec 12 15:26:34 1992 Ian Lance Taylor (ian@cygnus.com) 1216760484Sobrien 1216860484Sobrien * listing.c: Call xmalloc, not malloc; don't declare malloc. 1216960484Sobrien 1217060484Sobrien * Changes to support SCO 3.2v4: 1217160484Sobrien * read.c (s_align_bytes, s_align_ptwo): If not SEG_DATA or 1217260484Sobrien SEG_BSS, fill with NOP_OPCODE. 1217360484Sobrien * config/i386coff.mt: Add opcode/i386.h to TARG_CPU_DEPENDENTS. 1217460484Sobrien * config/obj-coffbfd.c (do_relocs_for): Increment addr even if not 1217560484Sobrien using ZERO_BASED_SEGMENTS. 1217660484Sobrien (fill_section): If ZERO_BASED_SEGMENTS, set segment addresses, but 1217760484Sobrien never set segment address for SEG_E2 (.bss) and don't write out 1217860484Sobrien SEG_E2 contents. Set .init and .fini sections to STYP_TEXT. 1217960484Sobrien (obj_coff_endef): Don't merge labels or symbols awaiting forward 1218060484Sobrien definitions, and don't merge tags with non-tags. Check for .bf 1218160484Sobrien rather than just checking whether the second character is b and 1218260484Sobrien the third character is f. 1218360484Sobrien (obj_coff_val): gcc can generate values which we don't handle 1218460484Sobrien correctly; discard information for now, since it only affects the 1218560484Sobrien debugging information. 1218660484Sobrien (tag_find_or_name): Don't insert tags in the symbol table. 1218760484Sobrien (yank_symbols): Don't merge labels. 1218860484Sobrien (write_object_file): Don't define SUB_SEGMENT_ALIGN if it is 1218960484Sobrien already defined. Fill subsegments with NOP_OPCODE, not 0. Don't 1219060484Sobrien set segment address if ZERO_BASED_SEGMENTS. 1219160484Sobrien (obj_coff_section): Accept and ignore a trailing quoted string, as 1219260484Sobrien used in AT&T i386 syntax. 1219360484Sobrien (fixup_segment): Take segment as argument. On the i386, adjust PC 1219460484Sobrien relative addends by the segment vaddr. 1219589857Sobrien * config/tc-i386.h: Define SUB_SEGMENT_ALIGN. 1219689857Sobrien * config/tc-a29k.h: Define ZERO_BASED_SEGMENTS. 1219789857Sobrien * config/tc-i386.c: (i386_operand): If I386COFF, accept any segment type. 1219860484Sobrien 1219960484SobrienTue Dec 8 00:06:48 1992 Ken Raeburn (raeburn@rtl.cygnus.com) 1220060484Sobrien 1220160484Sobrien * config/obj-coffbfd.c: Include libcoff.h. 1220260484Sobrien 1220360484Sobrien * version.c: Now version 1.93. 1220460484Sobrien 1220560484SobrienMon Dec 7 00:39:09 1992 Ken Raeburn (raeburn@cygnus.com) 1220660484Sobrien 1220760484Sobrien * config/tc-i386.c (md_pseudo_table): For 386bsd and linux, do 1220860484Sobrien power-of-two alignment for .align. 1220960484Sobrien 1221060484Sobrien * as.h: If BROKEN_ASSERT, just redefine `assert' to be trivial, 1221160484Sobrien and leave everything else alone. 1221260484Sobrien 1221360484SobrienFri Dec 4 16:58:42 1992 Ken Raeburn (raeburn@cambridge.cygnus.com) 1221460484Sobrien 1221560484Sobrien * Makefile.in (as.new): Don't bother saving as.old. 1221660484Sobrien 1221760484Sobrien * write.c: Conditionalize on OBJ_VMS, not VMS. 1221860484Sobrien (magic_number_for_object_file): Don't define if OBJ_VMS. 1221960484Sobrien 1222060484Sobrien * config/obj-vms.c: Changes for traditional C. 1222160484Sobrien 1222260484SobrienThu Dec 3 01:24:07 1992 Ken Raeburn (raeburn@kr-pc.cygnus.com) 1222360484Sobrien 1222460484Sobrien * config/ho-generic.h (malloc, realloc): Declare. 1222560484Sobrien 1222660484Sobrien * Lots of comment/whitespace changes. 1222760484Sobrien 1222860484Sobrien * write.h (struct fix): Some fields reordered, narrowed. 1222960484Sobrien 1223060484Sobrien * read.c (MASK_CHAR): Define using C types, not magic number. 1223160484Sobrien 1223260484Sobrien * as.c, input-file.c: Deleted some unused code. 1223360484Sobrien 1223460484Sobrien * app.c, as.h: Doc fix. 1223560484Sobrien 1223660484Sobrien * flonum-konst.c, flonum-mult.c: Include ansidecl.h. 1223760484Sobrien 1223860484Sobrien * as.h (xmalloc): Argument is long. 1223960484Sobrien 1224060484Sobrien * xmalloc.c (error): Remove declaration; as.h takes care of it. 1224160484Sobrien 1224260484Sobrien * doc/as.texinfo: Regrouped documentation of some command-line 1224360484Sobrien options. Updated options documentation for m68k. Some minor 1224460484Sobrien wording/punctuation changes. 1224560484Sobrien 1224660484SobrienMon Nov 30 11:42:11 1992 Ken Raeburn (raeburn@cambridge.cygnus.com) 1224760484Sobrien 1224860484Sobrien * configure.in: Accept target OS "vms". 1224960484Sobrien 1225060484Sobrien * symbols.c: Merged ANSI and non-ANSI function decls, using 1225160484Sobrien PARAMS macro. 1225260484Sobrien 1225360484Sobrien * xmalloc.c: Just include as.h, don't bother trying to figure out 1225460484Sobrien other header files. 1225560484Sobrien 1225660484Sobrien * strstr.c, strerror.c: Deleted. 1225760484Sobrien * Makefile.in: Deleted references. 1225860484Sobrien 1225960484Sobrien * config/tc-ns32k.c: Don't include header file for string 1226060484Sobrien declarations; leave that to ho-*.h. 1226160484Sobrien 1226260484SobrienFri Nov 27 04:11:36 1992 Ken Raeburn (raeburn at cambridge-laptop.cygnus.com) 1226360484Sobrien 1226460484Sobrien * config/coff_gnu.h [TC_I860]: Guesses for reloc type values, 1226560484Sobrien imported from FSF sources. 1226660484Sobrien 1226760484Sobrien * messages.c (strerror): Declare unconditionally. 1226860484Sobrien 1226960484Sobrien * as.h: Delete alloca and register definitions. 1227060484Sobrien 1227160484Sobrien * config/atof-ieee.c (mask): Now const. 1227260484Sobrien 1227360484Sobrien * obstack.c, obstack.h: Deleted. 1227460484Sobrien 1227560484Sobrien * as.h (flag_readonly_data_in_text): New flag. 1227660484Sobrien * as.c (main): Set it for -R. 1227760484Sobrien 1227860484Sobrien * as.h (flag_suppress_warnings): New flag. 1227960484Sobrien * as.c (main): Set it for -W. 1228060484Sobrien * messages.c (as_warn): Check it instead of flagseen['W']. 1228160484Sobrien 1228260484Sobrien * as.h (flag_always_generate_output): New flag. 1228360484Sobrien * as.c (main): Set it for -Z. 1228460484Sobrien 1228560484Sobrien * config/tc-sparc.h: Define NEED_FX_R_TYPE. 1228660484Sobrien * config/tc-a29k.h: Ditto. 1228760484Sobrien * write.h (struct fix): Don't conditionalize fx_r_type field on TC 1228860484Sobrien macros. 1228960484Sobrien 1229060484Sobrien * as.h: Merged ANSI and non-ANSI function decls, using PARAMS 1229160484Sobrien macro. 1229260484Sobrien * bignum.h, expr.h, flonum.h, frags.h, input-file.h, listing.h, 1229360484Sobrien obj.h, output-file.h, read.h, struc-symbol.h, symbols.h, tc.h, 1229460484Sobrien write.h: Likewise. 1229560484Sobrien * read.c: Likewise. 1229660484Sobrien 1229760484Sobrien * xmalloc.c: Conditionalize on HAVE_MALLOC_H, not USG. Fold in 1229860484Sobrien xrealloc from xrealloc.c. 1229960484Sobrien * xrealloc.c: Deleted. 1230060484Sobrien * Makefile.in (REAL_SOURCES, OBJS): Adjusted. 1230160484Sobrien 1230260484Sobrien * configure.in: For host CPU a29k, rs6000, vax, consider using bsd 1230360484Sobrien or vms ho- files. 1230460484Sobrien 1230560484Sobrien * config/ho-sysv.h (setbuffer, HO_USG): Deleted. 1230660484Sobrien 1230760484Sobrien * config/atof-ieee.c (atof_ieee): Exponent field isn't a pointer; 1230860484Sobrien don't initialize it with NULL. 1230960484Sobrien 1231060484Sobrien * config/ho-vax.h (M_VAX): Deleted; was unused. 1231160484Sobrien 1231260484Sobrien * README-vms, config/ho-vms.h, config/obj-vms.c, config/obj-vms.h: 1231360484Sobrien New files imported from FSF version, contributed by Eric Youngdale. 1231460484Sobrien * README-vms-dbg, config/vms: Deleted. 1231560484Sobrien 1231660484Sobrien * ChangeLog, config/ChangeLog: Merged. 1231760484Sobrien 1231860484Sobrien * config/*tahoe*, configure.in: Tahoe support brought in from FSF 1231960484Sobrien version. 1232060484Sobrien 1232160484Sobrien * input-file.c (input_file_open): Eliminate call to setvbuf. 1232260484Sobrien [USG] (setbuffer): Deleted macro. 1232360484Sobrien 1232460484SobrienMon Nov 23 11:00:16 1992 Ken Raeburn (raeburn@cygnus.com) 1232560484Sobrien 1232660484Sobrien * all files: Whitespace changes for GNU indentation style, done by 1232760484Sobrien GNU `indent'. Some cleanup still needed, especially of comments. 1232860484Sobrien 1232960484Sobrien * configure.in: No te-386bsd.h file exists; don't try to use it. 1233060484Sobrien 1233189857Sobrien * config/obj-coff.c (obj_coff_endef): Use as_warn, not fprintf. 1233260484Sobrien 1233389857Sobrien * config/tc-m68k.c (md_assemble): Don't complain about 68000 with 68881; 1233460484Sobrien could be doing emulation. 1233560484Sobrien 1233660484SobrienThu Nov 19 11:47:19 1992 Steve Chamberlain (sac@thepub.cygnus.com) 1233760484Sobrien 1233860484Sobrien z8000 documentation 1233960484Sobrien * doc/Makefile.in, doc/all.m4, doc/as-all.texinfo, doc/as.texinfo: 1234060484Sobrien all modified. 1234160484Sobrien 1234260484SobrienTue Nov 10 09:49:24 1992 Ian Lance Taylor (ian@cygnus.com) 1234360484Sobrien 1234460484Sobrien * Makefile.in (as.o, obj-format.o): added dependency on subsegs.h. 1234560484Sobrien 1234660484Sobrien * subsegs.h: add extern to segment_info declaration. 1234760484Sobrien 1234860484Sobrien * read.h: added extern declarations for comment_chars, 1234960484Sobrien line_comment_chars, and line_separator_chars. 1235060484Sobrien read.c, app.c: removed definitions of comment_chars, 1235160484Sobrien line_comment_chars, and line_separator_chars. 1235260484Sobrien 1235389857Sobrien * config/tc-m68k.c (m68k_reg_parse): If REGISTER_PREFIX isn't defined, 1235460484Sobrien still accept (but don't require) OPTIONAL_REGISTER_PREFIX before 1235560484Sobrien the register name. 1235660484Sobrien (insert_reg): put REGISTER_PREFIX before register names before 1235760484Sobrien putting them in the symbol table. 1235889857Sobrien * config/tc-m68k.h (OPTIONAL_REGISTER_PREFIX): Define to be "%", if not 1235960484Sobrien M68KCOFF. 1236060484Sobrien 1236189857Sobrien * config/obj-coffbfd.c (fill_section): set STYP_NOLOAD bit for .bss 1236260484Sobrien section. 1236360484Sobrien 1236489857Sobrien * config/atof-ieee.c, config/atof-ns32k.c, config/tc-*.c: made 1236589857Sobrien EXP_CHARS, FLT_CHARS, comment_chars, line_comment_chars and 1236689857Sobrien line_seperator_chars consistently const, and always 1236789857Sobrien initialized them. Included read.h. 1236860484Sobrien 1236960484SobrienThu Nov 5 17:55:41 1992 Jim Wilson (wilson@sphagnum.cygnus.com) 1237060484Sobrien 1237189857Sobrien * config/tc-sparc.c (sparc_ip): Add code to flag error if an absolute 1237260484Sobrien constant will not fit in an immediate field. 1237360484Sobrien (md_apply_fix, RELOC_BASE13 case): Check for relocation overflow. 1237460484Sobrien 1237560484SobrienWed Nov 4 07:50:46 1992 Ken Raeburn (raeburn@cygnus.com) 1237660484Sobrien 1237789857Sobrien * config/obj-coff.c (callj_table): Delete global variable. 1237860484Sobrien (obj_emit_relocations): Define it locally here, and only if 1237960484Sobrien TC_I960 is defined. 1238060484Sobrien 1238189857Sobrien * config/tc-m68k.c (m68k_reg_parse): Underscore is part of a symbol name. 1238260484Sobrien (m68k_ip): Don't warn about bignum used as float bit-pattern. 1238360484Sobrien 1238489857Sobrien * config/obj-coff.c: Replaced ANSI and non-ANSI function declarations 1238560484Sobrien with a single set using PARAMS macro. 1238660484Sobrien 1238789857Sobrien * config/tc-i960.c (tc_bout_fix_to_chars): Bit-field fixups want a length 1238860484Sobrien of 2. 1238960484Sobrien 1239089857Sobrien * config/tc-i960.c: Missed a couple of 0->NO_RELOC conversions. 1239160484Sobrien 1239289857Sobrien * config/tc-i960.h (N_BALNAME, N_CALLNAME): Define as char-type values, 1239360484Sobrien so widening works consistently. 1239460484Sobrien 1239560484SobrienWed Oct 28 08:52:34 1992 Ken Raeburn (raeburn@cygnus.com) 1239660484Sobrien 1239760484Sobrien * version.c: Put conditional "const" before version_string, not 1239860484Sobrien before dummy function for VMS. Now version 1.91.03. 1239960484Sobrien 1240060484Sobrien * app.c (do_scrub_next_char): Need double-\ before `000' to show 1240160484Sobrien printed rep of null character. 1240260484Sobrien 1240360484SobrienFri Oct 23 14:40:38 1992 Ian Lance Taylor (ian@cygnus.com) 1240460484Sobrien 1240589857Sobrien * config/obj-coffbfd.c (write_object_file): check return value of 1240660484Sobrien bfd_close_all_done. 1240760484Sobrien 1240860484SobrienTue Oct 20 12:18:08 1992 Ian Lance Taylor (ian@cygnus.com) 1240960484Sobrien 1241060484Sobrien * Support for i386-sysv. 1241160484Sobrien obj-coffbfd.c (do_relocs_for, write_object_file): set segment 1241260484Sobrien addresses to reasonable sizes. New define ZERO_BASED_SEGMENTS can 1241360484Sobrien be used to set them all to zero as was done before. 1241460484Sobrien (fill_section): segment addresses now set in write_object_file. 1241560484Sobrien (fill_section): Don't set STYP_NOLOAD for .bss section. 1241660484Sobrien (fixup_segment): 386 uses strange common symbol format. 1241760484Sobrien tc-i386.c (tc_coff_fix2rtype): use R_DIR32, not R_RELLONG, for 1241860484Sobrien compatibility with SVR3.2 linker. 1241960484Sobrien * configure.in: i386-sysv and i386-sco use coffbfd. 1242060484Sobrien 1242160484Sobrien * app.c (do_scrub_next_char): discard whitespace after a label. 1242260484Sobrien 1242360484SobrienSat Oct 10 12:33:45 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 1242460484Sobrien 1242560484Sobrien * configure.in: differentiate between SunOS 4 and Solaris2 for Sun4 1242660484Sobrien hosts, use the sysv configuration for solaris2 1242760484Sobrien 1242860484SobrienMon Oct 5 09:28:57 1992 Steve Chamberlain (sac@thepub.cygnus.com) 1242960484Sobrien 1243060484Sobrien fix i960+non-bfd coff bit rot. 1243189857Sobrien * config/obj-coff.c (c_dot_file_symbol, obj_coff_ln, obj_coff_line): 1243260484Sobrien support for C source listings. (obj_coff_endef): look in the right 1243360484Sobrien part of the symbol for the symbol name 1243460484Sobrien 1243589857Sobrien * config/tc-m68k.c (get_num): make it work for all segments, not just the 1243660484Sobrien first three. 1243760484Sobrien 1243860484SobrienMon Oct 5 03:30:36 1992 Mark Eichin (eichin at tweedledumber.cygnus.com) 1243960484Sobrien 1244060484Sobrien * configure.in: recognize i386-*-bsd emulation. 1244160484Sobrien 1244260484SobrienThu Oct 1 23:05:12 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 1244360484Sobrien 1244460484Sobrien * configure.in: use the cpu-vendor-os triple for host and target 1244560484Sobrien 1244660484SobrienTue Sep 29 12:22:52 1992 Steve Chamberlain (sac@thepub.cygnus.com) 1244760484Sobrien 1244889857Sobrien * config/obj-coffbfd.c (write_object_file): don't fixup for the z8k 1244989857Sobrien * config/tc-z8k.c: lots of bug fixes 1245060484Sobrien 1245160484SobrienTue Sep 29 10:51:55 1992 Ian Lance Taylor (ian@cygnus.com) 1245260484Sobrien 1245389857Sobrien * config/tc-i960.h, config/tc-i960.c: avoid the ANSI 1245489857Sobrien preprocessor addition #elif, since it is not supported by old 1245589857Sobrien compilers. 1245689857Sobrien config/ho-rs6000.h, config/tc-m68k.c: the native RS/6000 1245789857Sobrien compiler miscompiles a couple of expressions in tc-m68k.c. 1245860484Sobrien 1245960484SobrienMon Sep 28 21:18:24 1992 Ken Raeburn (raeburn@cambridge.cygnus.com) 1246060484Sobrien 1246160484Sobrien * read.c (cons): If NO_RELOC is defined, use it. 1246260484Sobrien 1246389857Sobrien * config/tc-i960.c (get_cdisp): Use NO_RELOC, not 0, in call to fix_new. 1246460484Sobrien 1246560484SobrienFri Sep 25 18:18:52 1992 Ian Lance Taylor (ian@cygnus.com) 1246660484Sobrien 1246789857Sobrien * config/tc-m68k.h: if M68KCOFF, define DOT_LABEL_PREFIX (to require 1246860484Sobrien local labels to start with a .) and set REGISTER_PREFIX to %. 1246960484Sobrien tc-m68k.c (m68k_reg_parse): accept REGISTER_PREFIX if defined. 1247060484Sobrien 1247160484SobrienFri Sep 25 17:53:43 1992 John Gilmore (gnu@cygnus.com) 1247260484Sobrien 1247360484Sobrien * messages.c: Comment changes. 1247460484Sobrien 1247560484SobrienFri Sep 25 14:12:58 1992 Ken Raeburn (raeburn@kyriath.cygnus.com) 1247660484Sobrien 1247760484Sobrien * as.h: Test if __STDC__ is defined only, don't test its value. 1247860484Sobrien * messages.c: If __STDC__ is not defined, define NO_STDARG. 1247960484Sobrien 1248060484SobrienThu Sep 24 12:42:32 1992 Brendan Kehoe (brendan@rtl.cygnus.com) 1248160484Sobrien 1248260484Sobrien * listing.c (debugging_pseudo): Add stabs and stabn as things to 1248360484Sobrien ignore. 1248460484Sobrien 1248560484SobrienTue Sep 22 13:02:07 1992 Sean Eric Fagan (sef@cygnus.com) 1248660484Sobrien 1248789857Sobrien * config/obj-coffbfd.c (do_relocs_for,fill_section): now allocate all 1248860484Sobrien sections starting from zero, rather than making them consecutive. 1248960484Sobrien This makes subsequent reloc calculations easier, esp if the object 1249060484Sobrien format doesn't understand addends. (obj_coff_lcomm): (maybe temporarily) 1249160484Sobrien allocate lcomm in .data rather than in .bss. It seems that some 1249260484Sobrien tools can't cope with a non-zero sized bss before linkage. 1249360484Sobrien 1249460484SobrienTue Sep 22 15:10:51 1992 Ken Raeburn (raeburn@cambridge.cygnus.com) 1249560484Sobrien 1249689857Sobrien * config/tc-m68k.c: Replace "enum m68k_architecture" with "int" 1249760484Sobrien throughout. That enum no longer means what we thought it meant. 1249860484Sobrien 1249989857Sobrien * config/tc-m68k.c (md_assemble, md_parse_option): Handle new 1250060484Sobrien "-mno-688[58]1" options. 1250160484Sobrien 1250289857Sobrien * config/tc-m68k.c: Added CPU32 support. 1250360484Sobrien 1250460484SobrienFri Sep 18 08:02:18 1992 Steve Chamberlain (sac@thepub.cygnus.com) 1250560484Sobrien 1250689857Sobrien * config/tc-m68k.c (m68k_ip): An(disp) is not pc relative. 1250760484Sobrien 1250860484SobrienTue Sep 15 17:25:05 1992 Jim Wilson (wilson@sphagnum.cygnus.com) 1250960484Sobrien 1251060484Sobrien * Makefile.in (as.new): Remove dependence on LOCAL_LOADLIBES. 1251160484Sobrien Change LIBDEPS dependence to LIBS. 1251260484Sobrien 1251360484SobrienTue Sep 15 15:32:02 1992 Ian Lance Taylor (ian@cygnus.com) 1251460484Sobrien 1251560484Sobrien * Makefile.in (install): if $(tooldir) exists, install as in 1251660484Sobrien $(tooldir)/bin. 1251760484Sobrien 1251860484SobrienSun Sep 13 20:30:10 1992 Ian Lance Taylor (ian@cygnus.com) 1251960484Sobrien 1252060484Sobrien * Added WARN_SIGNED_OVERFLOW_WORD define to give an error if any 1252160484Sobrien .word is < -32768 or > 32767. The -J flag causes the error to be 1252260484Sobrien ignored. This is to catch over-sized switches generated by gcc on 1252360484Sobrien systems which don't support the broken .word hack. 1252460484Sobrien as.c (main): permit -J if WARN_SIGNED_OVERFLOW_WORD. 1252560484Sobrien write.c (fixup_segment): check for signed .word overflow if 1252660484Sobrien WARN_SIGNED_OVERFLOW_WORD. 1252760484Sobrien 1252860484Sobrien * write.c (fixup_segment): fixed missing parens in expression 1252960484Sobrien checking for byte or word overflow. 1253060484Sobrien 1253189857Sobrien * config/obj-coffbfd.h: define WARN_SIGNED_OVERFLOW_WORD. 1253260484Sobrien obj-coffbfd.c (fixup_segment): check for signed .word overflow if 1253360484Sobrien WARN_SIGNED_OVERFLOW_WORD. 1253460484Sobrien 1253589857Sobrien * config/obj-coffbfd.c (fixup_segment): fixed missing parens in 1253660484Sobrien expression checking for byte or word overflow. 1253760484Sobrien 1253860484SobrienFri Sep 11 10:21:04 1992 Steve Chamberlain (sac@thepub.cygnus.com) 1253960484Sobrien 1254060484Sobrien Support for i386 coff 1254189857Sobrien * config/obj-coffbfd.h : added stuff 1254289857Sobrien * config/tc-i386.c (tc_coff_fix2rtype): new function 1254389857Sobrien * config/tc-i386.h : new coff defines 1254460484Sobrien 1254560484SobrienThu Sep 10 09:23:15 1992 Ian Lance Taylor (ian@cygnus.com) 1254660484Sobrien 1254760484Sobrien * input-scrub.c (input_scrub_push): call input_file_begin, not 1254860484Sobrien input_scrub_begin. 1254960484Sobrien messages.c (as_perror): print ": " between the passed in error and 1255060484Sobrien the strerror, like perror does. 1255160484Sobrien 1255260484SobrienWed Sep 9 11:06:25 1992 Ian Lance Taylor (ian@cygnus.com) 1255360484Sobrien 1255460484Sobrien * Makefile.in: use gas_target instead of modifying target_cpu. 1255560484Sobrien From Steve Chamberlain: 1255660484Sobrien Makefile.in: Handle m68*-*-coff*. 1255760484Sobrien read.c, read.h: add mult argument to s_space 1255860484Sobrien 1255989857Sobrien * config/tc-m68k.c (m68k_ip, m68k_ip_op, get_num, try_moto_index): merge 1256060484Sobrien Motorola and MIT syntax; gas can now assemble either type of 1256160484Sobrien file. 1256289857Sobrien * config/tc-m68kmote.c, config/tc-m68kmote.h: removed now 1256389857Sobrien superfluous files. 1256489857Sobrien 1256560484Sobrien From Steve Chamberlain: 1256689857Sobrien * config/m68kcoff.mt: for m68k COFF. 1256789857Sobrien * config/obj-coffbfd.c: (fixup_mdeps) added 1256860484Sobrien (size_section) removed bad sanity check 1256960484Sobrien (fill_section) added rs_machine_dependent case 1257060484Sobrien (write_object_file) call fixup_mdeps 1257160484Sobrien (fixup_segment) set fx_subsy to 0. 1257289857Sobrien * config/ obj-coffbfd.h: define WORKING_DOT_WORD (too hard to 1257389857Sobrien support) and handle m68k. 1257489857Sobrien * config/tc-m68k.c, config/tc-m68k.h: added m68k COFF support 1257589857Sobrien and Motorala pseudo ops. 1257660484Sobrien 1257760484SobrienTue Sep 8 17:10:58 1992 Ken Raeburn (raeburn@cambridge.cygnus.com) 1257860484Sobrien 1257960484Sobrien * Makefile.in (LIBS): Include opcode library. 1258060484Sobrien 1258160484SobrienFri Sep 4 18:20:56 1992 Ken Raeburn (raeburn@cygnus.com) 1258260484Sobrien 1258360484Sobrien * config/tc-m68k.c (get_num, case SEG_BIG): If only small integers 1258460484Sobrien including zero are accepted, pass +0.0. 1258560484Sobrien 1258660484SobrienSun Aug 30 21:24:46 1992 Ian Lance Taylor (ian@cygnus.com) 1258760484Sobrien 1258860484Sobrien * Makefile.in: map "as" through program_transform_name when 1258960484Sobrien installing. 1259060484Sobrien 1259160484Sobrien * doc/Makefile.in: map "as" through program_transform_name when 1259260484Sobrien installing. 1259360484Sobrien 1259460484SobrienSat Aug 29 12:11:12 1992 Jim Wilson (wilson@sphagnum.cygnus.com) 1259560484Sobrien 1259660484Sobrien * Makefile.in (as.new): Depend on LOCAL_LOADLIBES. 1259760484Sobrien 1259860484SobrienFri Aug 28 16:25:22 1992 Ian Lance Taylor (ian@cygnus.com) 1259960484Sobrien 1260089857Sobrien * config/obj-bout.h, config/obj-bout.c (obj_header_append, 1260189857Sobrien obj_symbol_to_chars). 1260289857Sobrien * config/tc-i960.c (md_ri_to_chars): Always output bout object 1260389857Sobrien file in little endian byte order (used to use endianness of 1260489857Sobrien host). 1260560484Sobrien 1260660484SobrienTue Aug 25 15:50:48 1992 Ken Raeburn (raeburn@cambridge.cygnus.com) 1260760484Sobrien 1260860484Sobrien * config/tc-m68k.c (init_table): Now const. Always include 68851 1260960484Sobrien data, so that "bc" is available to 68040 cache instructions. 1261060484Sobrien Added "tt0", "tt1", and 68ec030 variants. 1261160484Sobrien (md_assemble): Complain if 68000 (only) and 68881 are specified. 1261260484Sobrien (enum _register): Added TT0, TT1. 1261360484Sobrien (m68k_ip, cases '3' and 't'): Handle new operand type codes. Pass 1261460484Sobrien line number correctly in "internal error" messages. Don't print 1261560484Sobrien architecture-mismatch message for operand errors. 1261660484Sobrien 1261760484Sobrien From Colin Smith (colin@wrs.com): 1261860484Sobrien * config/tc-m68k.c (m68k_ip, case '_'): Use addword twice rather 1261960484Sobrien than install_operand. 1262060484Sobrien 1262160484SobrienTue Aug 25 15:13:48 1992 Steve Chamberlain (sac@thepub.cygnus.com) 1262260484Sobrien 1262360484Sobrien * listing.c (buffer_line): rewind to the start of include 1262460484Sobrien files, they might be included twice. 1262560484Sobrien 1262660484Sobrien * z8k.c, z8k.h, z8k.mt: z8000 support stuff 1262760484Sobrien 1262860484SobrienMon Aug 24 12:45:43 1992 Ian Lance Taylor (ian@cygnus.com) 1262960484Sobrien 1263060484Sobrien * Makefile.in: defined TARGET_CPU for C code so that it can choose 1263160484Sobrien one element of a family. 1263260484Sobrien 1263389857Sobrien * config/tc-m68k.c: use TARGET_CPU to choose default cpu type. 1263460484Sobrien 1263589857Sobrien * config/te-generic.h: default to LOCAL_LABELS_DOLLAR and LOCAL_LABELS_FB 1263660484Sobrien so that we can assemble hand-written libgcc code. 1263760484Sobrien 1263860484SobrienFri Aug 21 14:38:44 1992 Ken Raeburn (raeburn@cambridge.cygnus.com) 1263960484Sobrien 1264060484Sobrien * messages.c (as_warn): Use fputs, not fprintf, with a buffer that 1264160484Sobrien has already been formatted (but may still contain %-characters). 1264260484Sobrien (as_bad): Likewise. 1264360484Sobrien 1264460484SobrienWed Aug 19 11:20:59 1992 Ian Lance Taylor (ian@cygnus.com) 1264560484Sobrien 1264689857Sobrien * config/tc-m68k.c, tc-m68kmote.c: the cas2 instruction is supposed to be 1264760484Sobrien written with indirection on the last two operands, which can be 1264860484Sobrien either data or address registers. Added a new operand type 'r' 1264960484Sobrien which accepts either register type. Added '(' to notend stuff in 1265060484Sobrien tc-m68kmote.c to accept (a0):(a2) in cas2 instruction. 1265160484Sobrien 1265260484SobrienWed Aug 19 09:25:09 1992 Ken Raeburn (raeburn@cygnus.com) 1265360484Sobrien 1265460484Sobrien * as.h (enum _relax_state): Start off at one, not zero, to better 1265560484Sobrien catch uninitialized-variable errors. 1265660484Sobrien (linkrelax): Declare new variable. 1265760484Sobrien 1265860484Sobrien * messages.c (warning_count, error_count): Default initializer is 1265960484Sobrien sufficient. 1266060484Sobrien 1266160484Sobrien * write.c: Merged some declarations, using PARMS macro. 1266260484Sobrien (text_frag_root, data_frag_root, bss_frag_root, text_last_frag, 1266360484Sobrien data_last_frag): No longer static. 1266460484Sobrien (write_object_file, case rs_align or rs_org): If HANDLE_ALIGN is 1266560484Sobrien defined, call it. Change segments before calling fixup_segment. 1266660484Sobrien (relax_align): If linkrelax, provide extra padding. 1266760484Sobrien 1266889857Sobrien * config/obj-bout.c (obj_emit_relocations): Emit alignment relocs despite 1266960484Sobrien their not having symbols associated. 1267060484Sobrien 1267189857Sobrien * config/tc-i960.c (norelax, instrument_branches): Default initializer is 1267260484Sobrien sufficient. 1267360484Sobrien (linkrelax): Delete variable definition. 1267460484Sobrien (mem_fmt): Call fix_new with NO_RELOC. 1267560484Sobrien (tc_bout_fix_to_chars): Handle alignment relocs. 1267660484Sobrien (i960_handle_align): New function. 1267789857Sobrien * config/tc-i960.h (linkrelax): Delete declaration. 1267860484Sobrien (HANDLE_ALIGN): New macro; calls i960_handle_align. 1267960484Sobrien (NEED_FX_R_TYPE, NO_RELOC): New macros. 1268060484Sobrien 1268160484SobrienTue Aug 18 14:59:21 1992 Ken Raeburn (raeburn@cygnus.com) 1268260484Sobrien 1268360484Sobrien * config/sparc.mt: New file. Grab sparc opcode table from bfd 1268460484Sobrien library. 1268560484Sobrien 1268660484SobrienTue Aug 18 14:16:38 1992 Ian Lance Taylor (ian@cygnus.com) 1268760484Sobrien 1268860484Sobrien * Makefile.in: always create installation directories. Removed 1268960484Sobrien MINUS_G, set CFLAGS to default to -g, added FLAGS_TO_PASS, passed 1269060484Sobrien FLAGS_TO_PASS to recursive makes. 1269160484Sobrien 1269260484Sobrien * doc/Makefile.in: always create installation directories. 1269360484Sobrien 1269460484SobrienMon Aug 17 15:09:56 1992 Steve Chamberlain (sac@thepub.cygnus.com) 1269560484Sobrien 1269660484Sobrien * input-scrub.c (input_scrub_pop, input_scrub_push): memcpy was 1269760484Sobrien being used with args swapped, causing occasional lossage when 1269860484Sobrien refilling buffers after an include file. 1269960484Sobrien 1270060484SobrienMon Aug 17 13:18:51 1992 Ken Raeburn (raeburn@cygnus.com) 1270160484Sobrien 1270260484Sobrien * messages.c (as_tsktsk): Use correct ANSI form for stdarg 1270360484Sobrien version. Discard bogus DONTDEF version. 1270460484Sobrien (as_warn, as_bad, as_fatal): Likewise. 1270560484Sobrien 1270660484SobrienFri Aug 14 18:31:14 1992 Ken Raeburn (raeburn@cygnus.com) 1270760484Sobrien 1270860484Sobrien * config/tc-m68k.c (m68k_ip): If instruction is invalid for the 1270960484Sobrien selected architecture, print a message saying so and listing what 1271060484Sobrien processors support it, rather than saying "operands mismatch". 1271160484Sobrien 1271260484SobrienThu Aug 13 13:53:19 1992 Ken Raeburn (raeburn@cygnus.com) 1271360484Sobrien 1271460484Sobrien * as.h [BROKEN_ASSERT]: If defined, turn off all assertion checks. 1271560484Sobrien 1271660484Sobrien * config/ho-rs6000.h (M_RS6000): Don't define it. 1271760484Sobrien (free): Declare it. 1271860484Sobrien (BROKEN_ASSERT): Define it if not __STDC__. 1271960484Sobrien 1272060484SobrienTue Aug 11 12:58:14 1992 Ken Raeburn (raeburn@cygnus.com) 1272160484Sobrien 1272260484Sobrien * sparc.mt: New file. 1272360484Sobrien 1272460484SobrienMon Aug 10 14:37:08 1992 Per Bothner (bothner@cygnus.com) 1272560484Sobrien 1272689857Sobrien * config/tc-m68k.c: ".align N" means align to N-byte boundary *only* 1272760484Sobrien if TN_SUN3; otherwise align to 2**N-byte bounary. 1272860484Sobrien 1272960484SobrienThu Aug 6 12:10:39 1992 Steve Chamberlain (sac@thepub.cygnus.com) 1273060484Sobrien 1273160484Sobrien * read.c (s_fill): make the .fill size clamped error a warn and 1273260484Sobrien fix bug where 0's were always placed. 1273360484Sobrien 1273460484Sobrien * config/tc-h8300.c: if a :8 is seen after an operand, fill top 1273560484Sobrien two bytes of any constant with 0xff: 1273660484Sobrien 1273760484SobrienWed Aug 5 12:02:40 1992 Steve Chamberlain (sac@thepub.cygnus.com) 1273860484Sobrien 1273960484Sobrien * config/tc-m68k.c (md_pseudo_table): fix the .align thing 1274060484Sobrien the right way; for just the 68k. Sun 3 .align is nbytes, not ptwo. 1274160484Sobrien 1274260484SobrienWed Aug 5 01:54:34 1992 John Gilmore (gnu at cygnus.com) 1274360484Sobrien 1274489857Sobrien * config/tc-m68k.c (try_index): Error if index scaling specified and 1274560484Sobrien assembling for an older CPU than a 68020. 1274660484Sobrien 1274760484SobrienSat Aug 1 19:10:13 1992 Ken Raeburn (raeburn@cygnus.com) 1274860484Sobrien 1274960484Sobrien * config/tc-sparc.c (tc_aout_fix_to_chars): If pc-relative, take 1275060484Sobrien fx_offset into account. 1275160484Sobrien 1275260484SobrienFri Jul 31 21:53:28 1992 Ken Raeburn (raeburn@cygnus.com) 1275360484Sobrien 1275460484Sobrien * configure.in (mips host): Accept "ultrix" with version number. 1275560484Sobrien 1275660484Sobrien * expr.c (floating_constant): Separate "=-" to avoid confusing 1275760484Sobrien ancient or broken compilers. 1275860484Sobrien 1275960484Sobrien * config/tc-m68k.c (m68k_ip): Mismatch error could also indicate 1276060484Sobrien processor/opcode mismatch, so reword the error message. 1276160484Sobrien (md_assemble): If no CPU has been set (even if FPU/PMMU 1276260484Sobrien characteristics have been), default to 68020. Don't need extra 1276360484Sobrien quotes around error string. 1276460484Sobrien 1276560484SobrienFri Jul 31 12:26:34 1992 Jim Wilson (wilson@sphagnum.cygnus.com) 1276660484Sobrien 1276760484Sobrien * read.c (potable): Revert sac's incorrect change made Jul 13. 1276860484Sobrien Align really is supposed to be ptwo not nbytes. 1276960484Sobrien 1277060484SobrienMon Jul 20 02:51:59 1992 D. V. Henkel-Wallace (gumby@cygnus.com) 1277160484Sobrien 1277260484Sobrien * Makefile.in: _Do_ include libiberty. (from sef) 1277360484Sobrien 1277460484SobrienFri Jul 17 15:15:28 1992 Ken Raeburn (raeburn@cygnus.com) 1277560484Sobrien 1277660484Sobrien * expr.c (integer_constant): Handle "0f" and "0b" label references 1277760484Sobrien properly. 1277860484Sobrien 1277960484SobrienThu Jul 16 08:20:17 1992 Steve Chamberlain (sac@thepub.cygnus.com) 1278060484Sobrien 1278160484Sobrien * write.c (fixup_segment): if relaxing, don't do anything. 1278260484Sobrien * config/obj-bout.[ch] : maintain the a_relaxable file header info 1278360484Sobrien * config/tc-i960.c: new option -linkrelax 1278460484Sobrien 1278560484SobrienMon Jul 13 14:11:36 1992 Steve Chamberlain (sac@thepub.cygnus.com) 1278660484Sobrien 1278760484Sobrien * expr.c (expr): allow SEG_BSS in expressions 1278860484Sobrien * read.c (potable): align should be nbytes, not ptwo! 1278960484Sobrien * write.c (write_object_file): extra glue for new bss attributes 1279060484Sobrien (relax_segment): SEG_BSS is ok now 1279160484Sobrien * config/tc-m68k.c (m68k_ip_op): can now parse more @( modes 1279260484Sobrien 1279360484SobrienMon Jul 6 17:09:32 1992 Steve Chamberlain (sac@cygnus.com) 1279460484Sobrien 1279589857Sobrien * config/obj-coffbfd.c (fill_section): mark .lit sections as STYP_LIT 1279660484Sobrien 1279760484SobrienMon Jun 1 16:20:22 1992 Michael Tiemann (tiemann@cygnus.com) 1279860484Sobrien 1279960484Sobrien * configure.in: recognize m680x0 as having sun3 emulation mode for 1280060484Sobrien vxworks environment. 1280160484Sobrien 1280260484Sobrien 1280360484SobrienTue Jun 30 20:25:54 1992 D. V. Henkel-Wallace (gumby@cygnus.com) 1280460484Sobrien 1280560484Sobrien * Makefile.in: Add program_suffix (parallel to program_prefix) 1280660484Sobrien 1280760484SobrienWed Jun 24 10:57:54 1992 Steve Chamberlain (sac@thepub.cygnus.com) 1280860484Sobrien 1280960484Sobrien * app.c (process_escape): new function to handle escapes the right 1281060484Sobrien way, (do_scrub_next_char): use new function 1281160484Sobrien * cond.c (s_ifdef): do ifdef/ifndef right 1281260484Sobrien * read.c (s_fill): make the , expressions optional like the doc 1281360484Sobrien says 1281460484Sobrien * config/tc-h8300.[ch]: better warnings 1281560484Sobrien 1281660484SobrienTue Jun 9 07:54:54 1992 Steve Chamberlain (sac@thepub.cygnus.com) 1281760484Sobrien 1281860484Sobrien * subsegs.c (subsegs_begin): create bss0_frchainP in the same was 1281960484Sobrien as data0_frchainP 1282060484Sobrien 1282160484Sobrien * write.c (write_object_file): various changes to handle data in 1282260484Sobrien the BSS segment in much the same was as stuff in the DATA segment. 1282360484Sobrien 1282489857Sobrien * config/tc-m68k.c (m68kip): Fix typo so that only arch's >=68020 do 1282560484Sobrien pcrel data stuff. (md_estimate_size_before_relax): when relaxing a 1282660484Sobrien 68010 bxx into a bra+6 jmpxx, put the bytes of the jmp opcode into 1282760484Sobrien the right place. (s_bss): Don't put .bss stuff into SEG_DATA, put 1282860484Sobrien it into SEG_BSS 1282960484Sobrien 1283060484SobrienThu Jun 4 11:59:13 1992 Steve Chamberlain (sac@thepub.cygnus.com) 1283160484Sobrien 1283260484Sobrien * expr.c(expr): allow SEG_REGISTER in expressions. 1283360484Sobrien * read.c(pseudo_set): register expressions can be the source of a 1283460484Sobrien set. 1283560484Sobrien * subsegs.c (subseg_new): Now -R forces all changes to SEG_DATA to 1283660484Sobrien goto SEG_TEXT (if a.out) 1283760484Sobrien * write.c (write_object_file): If a.out don't use the old way for 1283860484Sobrien -R. 1283960484Sobrien * config/obj-a.out (s_sect): complain if the user tries to use a 1284060484Sobrien subsegment with a value which might interfere with out -R hackery. 1284160484Sobrien * config/tc-m68k.c (m68k_reg_parse): lookup names in symbol table 1284260484Sobrien rather than use ugly if tree. (init_regtable): insert register 1284360484Sobrien names into symbol table. 1284460484Sobrien 1284560484SobrienTue Jun 2 16:47:09 1992 Steve Chamberlain (sac@cygnus.com) 1284660484Sobrien 1284760484Sobrien * write.c (write_object_file): keep the fix_tail clean, which 1284860484Sobrien fixes a bug in -R where relocations were being lost. 1284960484Sobrien 1285060484SobrienMon Jun 1 16:20:22 1992 Michael Tiemann (tiemann@cygnus.com) 1285160484Sobrien 1285260484Sobrien * configure.in: recognize m680x0 as having sun3 emulation mode for 1285360484Sobrien vxworks environment. 1285460484Sobrien 1285560484SobrienSun May 31 05:33:00 1992 david d `zoo' zuhn (zoo@cygnus.com) 1285660484Sobrien 1285760484Sobrien * configure.in: recognize m680x0 as an m68k 1285860484Sobrien 1285960484SobrienThu May 28 11:22:02 1992 Jim Wilson (wilson@sphagnum.cygnus.com) 1286060484Sobrien 1286160484Sobrien * configure.in: Recognize sparclite as a sparc variant. 1286260484Sobrien 1286389857Sobrien * config/tc-sparc.c: Use new ARCHITECTURES_CONFLICT_P macro. Mention new 1286460484Sobrien -Asparclite flag. 1286560484Sobrien 1286660484SobrienTue May 26 16:47:56 1992 Steve Chamberlain (sac@thepub.cygnus.com) 1286760484Sobrien 1286860484Sobrien * config/tc-a29k.c: lint 1286960484Sobrien * listing.c, expr.c: patches from Andrew Smith 1287060484Sobrien 1287160484SobrienThu May 14 17:22:48 1992 K. Richard Pixley (rich@rtl.cygnus.com) 1287260484Sobrien 1287360484Sobrien * doc/Makefile.in: use m4 rather than gm4. 1287460484Sobrien 1287560484SobrienMon May 4 18:56:19 1992 Steve Chamberlain (sac@thepub.cygnus.com) 1287660484Sobrien 1287789857Sobrien * config/obj-coffbfd.c: use is a synonym for section, (do_relocs_for): 1287860484Sobrien calc the base of relocs correctly. 1287989857Sobrien * config/tc-a29k.c (parse_operand): allow expressions to be in any section. 1288060484Sobrien 1288160484SobrienMon Apr 27 13:13:31 1992 K. Richard Pixley (rich@cygnus.com) 1288260484Sobrien 1288360484Sobrien * as.c, write.c: use -K rather than -k for the broken word warning 1288460484Sobrien option. 1288560484Sobrien 1288660484SobrienTue Apr 21 13:35:30 1992 K. Richard Pixley (rich@cygnus.com) 1288760484Sobrien 1288860484Sobrien * Makefile.in: do not print recursion lines. 1288960484Sobrien 1289060484SobrienWed Apr 15 21:19:31 1992 K. Richard Pixley (rich@rtl.cygnus.com) 1289160484Sobrien 1289260484Sobrien * Makefile.in: the tooldir copy of gas goes directly in tooldir. 1289360484Sobrien 1289460484SobrienTue Apr 14 14:50:22 1992 Ken Raeburn (Raeburn@Cygnus.COM) 1289560484Sobrien 1289660484Sobrien * write.c (write_object_file): For b.out format, round up section 1289760484Sobrien start addresses to match required alignment. 1289860484Sobrien 1289960484SobrienThu Apr 9 05:45:29 1992 Ken Raeburn (Raeburn@Cygnus.COM) 1290060484Sobrien 1290160484Sobrien * Makefile.in (install): Install into $(tooldir)/bin, since that's 1290260484Sobrien where gcc looks for it. 1290360484Sobrien 1290460484SobrienTue Apr 7 15:12:15 1992 Sean Eric Fagan (sef@cygnus.com) 1290560484Sobrien 1290660484Sobrien * Makefile.in: Changed some lines to be less confusing for some 1290760484Sobrien makes. 1290860484Sobrien 1290960484Sobrien * input-file.c: Conditionalize on _IOFBF, not VMS. 1291060484Sobrien 1291160484Sobrien * read.c, write.c: Change a series of ifdef/elif to 1291260484Sobrien ifdef/else/ifdef etc. 1291360484Sobrien 1291460484SobrienFri Mar 27 12:21:16 1992 K. Richard Pixley (rich@cygnus.com) 1291560484Sobrien 1291660484Sobrien * symbols.c (fb_label_init): fix sizeof to memset. 1291760484Sobrien 1291860484SobrienFri Mar 13 15:45:44 1992 K. Richard Pixley (rich@cygnus.com) 1291960484Sobrien 1292060484Sobrien * Makefile.in: install the man page. 1292160484Sobrien 1292260484Sobrien * Makefile.in: pass down MAKEINFO explicitly on info. 1292360484Sobrien 1292460484Sobrien * doc/Makefile.in: use $(MAKEINFO) not makeinfo. 1292560484Sobrien 1292660484SobrienFri Mar 13 08:03:03 1992 Steve Chamberlain (sac@thepub.cygnus.com) 1292760484Sobrien 1292860484Sobrien * flonum-const.c: renamed flonum-konst.c to stop dos name 1292960484Sobrien conflict. 1293060484Sobrien 1293160484SobrienThu Mar 12 04:42:38 1992 K. Richard Pixley (rich@cygnus.com) 1293260484Sobrien 1293389857Sobrien * config/tc-m68k.h, config/te-sun3.h: moved LOCAL_LABELS_FB 1293489857Sobrien definition from tc-m68k.h to te-sun3.h. 1293560484Sobrien 1293660484SobrienWed Mar 11 23:32:42 1992 K. Richard Pixley (rich@cygnus.com) 1293760484Sobrien 1293860484Sobrien * configure.in: vxworks68 gets te-sun3.h. 1293960484Sobrien 1294060484Sobrien * expr.c: remove limitation that local_labels_dollar or 1294160484Sobrien local_labels_fb must be < 10. 1294260484Sobrien 1294360484Sobrien * symbols.c: remove local_labels_dollar, replace with a function 1294460484Sobrien interface for a sparse array. All users adjusted. 1294560484Sobrien 1294689857Sobrien * config/te-sun3.h: add LOCAL_LABELS_DOLLAR. 1294760484Sobrien 1294860484SobrienSat Mar 7 00:06:25 1992 K. Richard Pixley (rich@rtl.cygnus.com) 1294960484Sobrien 1295060484Sobrien * doc/Makefile.in: commented out line for building as-all.texinfo. 1295160484Sobrien This is temporary. 1295260484Sobrien 1295360484Sobrien * doc/as.texinfo, doc/as-all.texinfo: added menu item hooks. 1295460484Sobrien 1295560484SobrienFri Mar 6 21:57:18 1992 K. Richard Pixley (rich@cygnus.com) 1295660484Sobrien 1295760484Sobrien * Makefile.in: added check target. 1295860484Sobrien 1295960484SobrienTue Mar 3 15:45:56 1992 K. Richard Pixley (rich@rtl.cygnus.com) 1296060484Sobrien 1296160484Sobrien * Makefile.in: added tooldir and program_prefix. 1296260484Sobrien 1296360484SobrienSun Mar 1 04:43:19 1992 Michael Tiemann (tiemann@cygnus.com) 1296460484Sobrien 1296560484Sobrien * write.{c,h} (fix_new): Make these declarations consistent. 1296660484Sobrien 1296760484SobrienSat Feb 29 13:59:10 1992 Michael Tiemann (tiemann@cygnus.com) 1296860484Sobrien 1296960484Sobrien * Makefile.in (strerror.o): Add rule so that broken Sun make can 1297060484Sobrien work in subdirs. 1297160484Sobrien 1297260484SobrienWed Feb 26 19:26:28 1992 Steve Chamberlain (sac at thepub.cygnus.com) 1297360484Sobrien 1297460484Sobrien * read.c, obj-coffbfd.c : fix h8300 specific bit rot 1297560484Sobrien 1297660484Sobrien * expr.c (operand): if can't work out what sort of operand it is, 1297760484Sobrien then look through FLT_CHARS for a hint. 1297860484Sobrien 1297960484SobrienWed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com) 1298060484Sobrien 1298160484Sobrien * Makefile.in, configure.in: removed traces of namesubdir, 1298260484Sobrien -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced 1298360484Sobrien copyrights to '92, changed some from Cygnus to FSF. 1298460484Sobrien 1298560484Sobrien * doc/Makefile.in, doc/configure.in: removed traces of namesubdir, 1298660484Sobrien -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced 1298760484Sobrien copyrights to '92, changed some from Cygnus to FSF. 1298860484Sobrien 1298960484SobrienTue Feb 25 14:17:15 1992 Steve Chamberlain (sac at rtl.cygnus.com) 1299060484Sobrien 1299160484Sobrien * expr.c: If an expression is single comma, then return with 1299260484Sobrien SEG_ABSENT rather than an error - since the sparc front end does 1299360484Sobrien really strange things with things like fbge,a 1299460484Sobrien 1299560484Sobrien * as.h: include bfd.h if using many sections 1299660484Sobrien * expr.c: LOCAL_LABELS_FB had been changed to lower case - so 1299760484Sobrien local labels didn't work. 1299860484Sobrien * listing.c (list_symbol_table): don't core dump when there's no 1299960484Sobrien symbol there. 1300060484Sobrien * write.c, write.h: call fix_new with the right number of args on 1300160484Sobrien the H8. 1300260484Sobrien * config/tc-h8300.[ch] : fix bugs reported by HMSI, and make 1300360484Sobrien errors nices 1300460484Sobrien 1300560484SobrienSat Feb 22 12:26:28 1992 Steve Chamberlain (sac at rtl.cygnus.com) 1300660484Sobrien 1300760484Sobrien * app.c: MRI compatibility - allow single quote to start a string. 1300860484Sobrien * as.c: fix typo recently introduced. 1300960484Sobrien * as.h : Don't include aout/reloc.h - it's not right for COFF! 13010130561Sobrien * expr.c: Much rewriting, to accommodate MRI syntax for 1301160484Sobrien expressions. Also easier to read now. 1301260484Sobrien * listing.c: Put back defuns 1301360484Sobrien * read.c: modified to accept MRI syntax, put back listing pseudo 1301460484Sobrien ops so that an assembler built with NO_LISTING ignores list ops 1301560484Sobrien rather than pukes. 1301660484Sobrien * write.c, write.h: fixs - only keep a reloc type in a fix if the target 1301760484Sobrien machine is a SPARC or a 29K. 1301860484Sobrien * config/obj-aout.c: added s_sect pseudo op 1301960484Sobrien * config/obj-coffbfd.c: lints, set the filehdr flags right and 1302060484Sobrien fill in the timestamp. 1302160484Sobrien * config/obj-coffbfd.h: Since we don't include aout/reloc.h 1302260484Sobrien anymore, define all the relocs which the tc-<x> bit will use so we 1302360484Sobrien can translate from them to the coff types. 1302460484Sobrien * config/tc-a29k.c: reloc_type isn't ane enum any more 1302560484Sobrien * config/tc-m68k.c: Added NO_RELOC definition. 1302660484Sobrien 1302760484SobrienFri Feb 21 06:21:07 1992 K. Richard Pixley (rich@rtl.cygnus.com) 1302860484Sobrien 1302960484Sobrien * Makefile.in: put header files before C source for TAGS; remove 1303060484Sobrien references to non-existent syscalls.h. 1303160484Sobrien 1303260484Sobrien * read.c, write.c subsegs.c: back out the .bss changes. 1303360484Sobrien 1303489857Sobrien * config/obj-aout.c: do not include stab.gnu.h if NO_LISTING. 1303560484Sobrien 1303689857Sobrien * config/tc-i860.c, a.out.gnu.h: move i860 relocs to a proper place. 1303760484Sobrien 1303860484Sobrien * a.out.h: removed. 1303960484Sobrien 1304060484SobrienFri Feb 21 01:08:48 1992 Minh Tran-Le (TRANLE@INTELLICORP.COM) 1304160484Sobrien 1304260484Sobrien * symbols.c (local_label_name): symbols now start with ^A. 1304360484Sobrien 1304460484Sobrien * read.c, subsegs.c, write.c obj-coff.c: added handling of 1304560484Sobrien `.bss` pseudo op for unitialized data. The new gcc (1.37.9x) 1304660484Sobrien generate these sections. .align: will use NOP_OPCODE or 0 1304760484Sobrien for padding. This is just for being nice to the 1304860484Sobrien disassembler. 1304960484Sobrien 1305060484Sobrien * expr.c (operand): changed to generate local label "\001L0" 1305160484Sobrien starting with a ^A so that it is recognized as a local label. 1305260484Sobrien 1305360484Sobrien * as.c (perform_an_assembly_pass): zero bss_fix_root, too. 1305460484Sobrien 1305589857Sobrien * config/tc-i386.c: tc-i386.c: added handling of the following opcodes: 1305660484Sobrien i/o opcodes - inb, inw, outb and outw. string manipulation with 1305760484Sobrien att syntax - scmp, slod, smov, ssca, ssto. 1305860484Sobrien 1305989857Sobrien * config/obj-coff.c: (for aix386) Moved the symbols .text, .data and .bss 1306060484Sobrien to just after .file . 1306160484Sobrien 1306260484Sobrien In obj_crawl_symbol_chain() where it tries to put the external 1306360484Sobrien symbols apart, with the condition: 1306460484Sobrien (!S_IS_DEFINED(symbolP) && 1306560484Sobrien !S_IS_DEBUG(symbolP) && 1306660484Sobrien !SF_GET_STATICS(symbolP)) 1306760484Sobrien it was moving too many symbols out. So I switch it back to the 1306860484Sobrien condition: 1306960484Sobrien (S_GET_STORAGE_CLASS(symbolP) == C_EXT && !SF_GET_FUNCTION(symbolP)) 1307060484Sobrien 1307160484Sobrien In obj_emit_relocations() added the conditional on KEEP_RELOC_INFO 1307260484Sobrien so that we don't use the F_RELFLG which make the linker complain 1307360484Sobrien that somebody has stripped the relocation info. 1307460484Sobrien 1307560484Sobrien Also, the AIX ld program require that the relocation table 1307660484Sobrien is sorted by r_vaddr like the standard ATT assembler does. 1307760484Sobrien 1307860484Sobrien [he also changed the sizeof(struct ...)'s into the coff 1307960484Sobrien style FOOSZ macros. I'm not sure this is right, but I can't 1308060484Sobrien remember why. xoxorich.] 1308160484Sobrien 1308260484SobrienFri Feb 21 01:08:48 1992 K. Richard Pixley (rich@cygnus.com) 1308360484Sobrien 1308460484Sobrien * Makefile.in, configure.in, doc: use the doc. Build it, install 1308560484Sobrien it, clean it, etc. 1308660484Sobrien 1308760484SobrienTue Feb 18 02:21:25 1992 K. Richard Pixley (rich at cygnus.com) 1308860484Sobrien 1308960484Sobrien * read.c: white space and comments only. 1309060484Sobrien 1309160484Sobrien * configure.in: use the new atof-ns32.c for ns32k. 1309260484Sobrien 1309360484Sobrien * write.c: comment change only. 1309460484Sobrien 1309589857Sobrien * config/tc-m88k.[hc]: pulled in from hack's unfinished work. These 1309660484Sobrien aren't yet integrated. 1309760484Sobrien 1309889857Sobrien * config/tc-i860.[hc]: blew off the dust. Something must still be done 1309960484Sobrien about conflicting relocation types. 1310060484Sobrien 1310189857Sobrien * config/tc-ns32k.c: Replaced previous tc_aout_fix_to_chars stub with the 1310260484Sobrien real thing. 1310360484Sobrien 1310489857Sobrien * config/tc-i960.c, config/tc-sparc.c: white space and comments only. 1310560484Sobrien 1310689857Sobrien * config/tc-a29k.h: delete duplicate macro definition. 1310760484Sobrien 1310860484Sobrien * new file atof-ns32k.c copied from hack's last unreleased gas. 1310960484Sobrien 1311060484SobrienMon Feb 17 07:51:06 1992 K. Richard Pixley (rich at cygnus.com) 1311160484Sobrien 1311260484Sobrien * config/tc-ns32k.c: actually make tc_aout_fix_to_chars work 1311360484Sobrien rather than abort. 1311460484Sobrien 1311560484Sobrien * nearly everything. flush ChangeLog, package as gas-1.92.1. 1311660484Sobrien ChangeLog's prior to this are sketchy at best. I have logs. 1311760484Sobrien They just aren't ChangeLogs. 13118218822Sdim 13119218822SdimLocal Variables: 13120218822Sdimmode: change-log 13121218822Sdimleft-margin: 8 13122218822Sdimfill-column: 74 13123218822Sdimversion-control: never 13124218822SdimEnd: 13125