1 Thu Dec 12 15:18:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3 * config/tc-ppc.c (ppc_elf_suffix): Move @plt to
4 BFD_RELOC_24_PLT_PCREL relocation.
5 (md_apply_fix3): Support BFD_RELOC_24_PLT_PCREL.
8 Tue Dec 10 13:51:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
10 * config/tc-d10v.c (write_2_short): Remove code that called
11 parallel_ok() when the programmer specified parallel instructions.
14 Tue Dec 10 12:23:19 1996 Jeffrey A Law (law@cygnus.com)
16 * config/tc-mn10300.c (md_assemble): Update to handle endianness
19 * config/tc-mn10200.c (md_assemble): Opcode 0x0 is valid!
20 * config/tc-mn10300.c (md_assemble): Likewise.
22 Tue Dec 10 11:37:14 1996 Ian Lance Taylor <ian@cygnus.com>
24 * config/tc-mips.c (append_insn): Make sure there is enough room
25 in a frag after a mips16 instruction to switch it with a jump
28 * config/tc-mips.c (mips16_extended_frag): Give an error for an
29 attempt to use a non absolute symbol in an extending frag.
31 Mon Dec 9 16:48:20 1996 Jeffrey A Law (law@cygnus.com)
33 * config/tc-mn10200.c: Flesh out assembler support for MN10200.
34 * config/tc-mn10200.h: Likewise.
36 Mon Dec 9 17:09:42 1996 Ian Lance Taylor <ian@cygnus.com>
38 * app.c (do_scrub_chars): At the end of a C comment, pass space to
39 UNGET rather than PUT. Set old_state before setting state to -2.
41 * config/tc-mips.c (mips16_extended_frag): Avoid an infinite loop
42 when extending because the value is exactly maxtiny + 1.
44 * config/tc-mips.c (RELAX_MIPS16_ENCODE): Add small and ext
45 arguments, and store them. Adjust other RELAX_MIPS16 macros.
46 (RELAX_MIPS16_USER_SMALL): Define.
47 (RELAX_MIPS16_USER_EXT): Define.
48 (mips16_small, mips16_ext): New static variables.
49 (append_insn): Pass mips16_small and mips16_ext to
51 (mips16_ip): Set mips16_small and mips16_ext.
52 (mips16_immed): Don't check mips16_autoextend.
53 (mips16_extended_frag): Check USER_SMALL and USER_EXT.
55 * write.c (write_relocs): Print an error for an out of range
56 fixup, rather than calling abort.
58 * as.c (main): Unlink the output file if there are errors while
59 generating the fixups.
61 Fri Dec 6 18:48:13 1996 Ian Lance Taylor <ian@cygnus.com>
63 * config/tc-mips.c (mips16_extended_frag): Don't call
65 (md_convert_frag): Call resolve_symbol_value before calling
66 S_GET_VALUE, and don't add in the frag address.
68 * config/tc-mips.c (mips16_immed): Add file and line parameters,
69 and use them when reporting errors. Change all callers.
71 Fri Dec 6 15:36:32 1996 Jeffrey A Law (law@cygnus.com)
73 * config/tc-mn10300.c: Fix various gcc -Wall warnings.
74 Remove '$' prefixing for registers.
77 Fri Dec 6 00:55:48 1996 Martin <hunt@cygnus.com>
79 * config/tc-d10v.c (md_assemble): Check to see if prev_seg
80 is initialized before using it.
81 (d10v_cleanup): No longer uses its argument, so make it void.
83 * config/tc-d10v.h (d10v_cleanup): Change prototype.
86 Thu Dec 5 11:03:31 1996 Ian Lance Taylor <ian@cygnus.com>
88 * write.c (fixup_segment): Don't discard the symbol for a PC
89 relative fixup to an absolute symbol.
92 Wed Dec 4 15:42:41 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
94 * config/tc-d10v.c (md_assemble, d10v_cleanup): Fix bug
95 with multiple sections.
98 Wed Dec 4 13:00:07 1996 Ian Lance Taylor <ian@cygnus.com>
100 * config/tc-mips.c (md_longopts): Rename mips-16 to mips16, and
101 no-mips-16 to no-mips16.
102 (s_mipsset): Accept .set mips16 and .set nomips16.
104 Wed Dec 4 10:35:33 1996 Michael Meissner <meissner@tiktok.cygnus.com>
106 * config/tc-ppc.c (ppc_elf_suffix): Take expressionS pointer
107 argument, and check for +/- constant following the suffix, folding
108 it into the expression.
109 (ppc_elf_cons): Change ppc_elf_suffix calls.
110 (md_assemble): Ditto.
111 (shlib): Replace boolean mrelocatable with enumeration shlib.
112 (md_parse_option): Discriminate between PIC style shared libraries
114 (ppc_elf_validate_fix): Don't report warnings for PIC style shared
117 Tue Dec 3 23:18:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
119 * config/tc-ppc.h ({tc,ppc}_comment_chars): Define, so that we can
120 change the comment characters.
122 * config/tc-ppc.c (comment_chars): Delete in favor of
124 (ppc_{eabi,solaris}_comment_chars): Eabi and Solaris versions of
126 (ppc_comment_chars): Select appropriate comment chars by default.
127 (msolaris): New flag for -m{,no-}solaris.
128 (md_parse_option): Recognize -K pic. Add support for
130 (md_show_usage): Update.
131 (md_begin): Do not set ELF flags if Solaris.
132 (ppc_elf_suffix): @local sets R_PPC_LOCAL24PC relocation.
133 (md_apply_fix3): Add support for R_PPC_LOCAL24PC.
135 Mon Dec 2 13:48:57 1996 Ian Lance Taylor <ian@cygnus.com>
137 * as.c (main): Correct handling of flag_always_generate_output.
139 Sun Dec 1 21:46:05 1996 Jeffrey A Law (law@cygnus.com)
141 * config/tc-mn10300.c (tc_gen_reloc): Get the addend from
142 fx_offset, not fx_addnumber.
144 * config/tc-mn10300.h (tc_fix_adjustable): Don't do any
147 Sat Nov 30 17:34:48 1996 Eliot Dresselhaus <eliot@wally.edc.com>
149 * config/tc-i386.c: Correct misspelling: balenced to balanced.
151 Wed Nov 27 13:25:39 1996 Ian Lance Taylor <ian@cygnus.com>
153 * config/tc-mips.c (md_section_align): Check for an alignment of
154 4, not an alignment of 16. Corrects August 7 patch.
156 Tue Nov 26 10:33:16 1996 Ian Lance Taylor <ian@cygnus.com>
158 * configure, conf.in: Rebuild with autoconf 2.12.
160 * config/tc-ppc.c (ppc_elf_lcomm): Don't give an error if no
161 alignment is specified.
163 Add support for mips16 (16 bit MIPS implementation):
164 * config/tc-mips.c: Extensive additions for mips16 support, not
166 (RELAX_OLD, RELAX_NEW): Use only 7 bits each.
167 (insn_uses_reg): Change last parameter to an enum.
168 * config/tc-mips.h (LOCAL_LABELS_DOLLAR): Define as 0.
169 (md_relax_frag): Define as mips_relax_frag.
170 (mips_relax_frag): Declare.
171 (struct mips_cl_insn): Add use_extend and extend fields.
172 (tc_fix_adjustable): Define.
173 * config/obj-elf.h (S_GET_OTHER): Define.
174 (S_SET_OTHER): Define.
176 Mon Nov 25 18:02:29 1996 J.T. Conklin <jtc@beauty.cygnus.com>
178 * config/tc-m68k.c (m68k_ip): Implement cases for new <, >, m, n,
179 o and p operand specifiers.
181 Mon Nov 25 10:45:14 1996 Doug Evans <dje@seba.cygnus.com>
183 * write.c: Delete "ifndef md_relax_frag" around is_dnrange.
184 (relax_segment, case rs_org): Move code inside braces. Move locals
185 target,after inside too.
186 (relax_segment, case rs_machine_dependent): Guts moved to ...
187 (relax_frag): New function.
188 Call md_prepare_relax_scan if defined.
189 * config/tc-m68k.h (md_prepare_relax_scan): Renamed from
192 Mon Nov 25 08:49:36 1996 Jeffrey A Law (law@cygnus.com)
194 * config/tc-mn10300.c (address_registers): Use '$' as register
195 prefix instead of '%'.
196 (data_registers, other_registers, md_assemble): Likewise.
198 * config/tc-mn10300.c (address_registers): Use '%' prefix for regs.
199 (data_registers, other_registers, md_assemble): Likewise.
201 * config/tc-mn10300.c (md_assemble): Correctly determine the
202 correct location and type for each relocation.
203 (md_pcrel_from): Simplify.
205 Fri Nov 22 15:42:26 1996 Ian Lance Taylor <ian@cygnus.com>
207 * config/tc-sh.c (md_convert_frag): Improve warning when branch is
208 converted into branch around branch.
210 Thu Nov 21 11:56:11 1996 Jeffrey A Law (law@cygnus.com)
212 * config/tc-mn10300.h (DIFF_EXPR_OK): Don't define this.
213 (tc_fix_adjustable): Don't adjust relocs against weak symbols or
215 * config/tc-mn10300.c (md_begin): Set linkrelax.
216 (md_assemble): Create fixups as needed.
217 (md_apply_fix3): Gut. It shouldn't ever get called anymore.
220 Tue Nov 19 17:48:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
222 * config/tc-d10v.c (parallel_ok): When automatically converting
223 serial ops to parallel, do not consider a branch as the first
227 Tue Nov 19 13:35:22 1996 Jeffrey A Law (law@cygnus.com)
229 * config/tc-mn10300.c (md_assemble): Handle MN10300_OPERAND_REG_LIST.
231 Mon Nov 18 15:26:55 1996 Jeffrey A Law (law@cygnus.com)
233 * config/tc-mn10300.c (mn10300_insert_operand): Provide prototype
235 (check_operand): Likewise.
238 Mon Nov 18 15:22:28 1996 Michael Meissner <meissner@tiktok.cygnus.com>
240 * config/tc-d10v.c (parallel_ok): Branch and link instructions
242 (write_2_short): Call parallel_ok to check whether two short
243 instructions the user requested execute in parallel, can be
246 Thu Nov 14 11:17:49 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
248 * config/tc-d10v.c (write_2_short): Fix bug that wouldn't
249 allow a branch and link in parallel with an exe instruction.
251 Fri Nov 8 13:55:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
253 * doc/c-d10v.texi: Add info on @word modifier.
256 Wed Nov 6 13:46:07 1996 Jeffrey A Law (law@cygnus.com)
258 * config/tc-mn10300.c (mn10300_insert_operand): MN10300_OPERAND_SPLIT
259 operands are assumed to be 32bits. Use "bits" field to hold the
260 number of bits in the main instruction word for MN10300_OPERAND_SPLIT.
261 (mn10300_check_operand): MN10300_OPERAND_SPLIT operands are assumed
264 * config/tc-mn10300.c (mn10300_insert_operand): Shift low part
265 of a MN10300_OPERAND_SPLIT operand by operand->shift.
267 * config/tc-mn10300.c (mn10300_insert_operand): Handle
268 MN10300_OPERAND_SPLIT.
270 Tue Nov 5 13:30:40 1996 Jeffrey A Law (law@cygnus.com)
272 * config/tc-mn10300.c (md_assemble): Insert operands into
273 the extension part of the instruction if necessary.
274 (mn10300_insert_operand): Accept pointer to extension word
275 argument. Make insn a pointer argument too. Return type
276 is now void. All callers changed.
278 Mon Nov 4 12:53:40 1996 Jeffrey A Law (law@cygnus.com)
280 * config/tc-mn10300.c (mn10300_insert_operand): Handle
281 repeated register operands.
283 Fri Nov 1 10:42:49 1996 Ian Lance Taylor <ian@cygnus.com>
285 * doc/as.texinfo: Added section on reporting bugs.
287 * config/tc-alpha.c: Change uses of void * to PTR. Change the
288 alpha_macro emit field to expect a const argument, and change the
289 arg field to be const. Fix some spacing to follow the GNU
292 Fri Nov 1 10:32:03 1996 Richard Henderson <rth@tamu.edu>
294 * config/tc-alpha.c (md_parse_option): Add knowledge of 21164pc
295 (pca56) and 21264 (ev6) cpus.
296 (md_apply_fix): Private relocation types are now negative.
297 (alpha_force_relocation): Likewise.
298 (tc_gen_reloc): Likewise.
299 (emit_insn): Likewise.
300 (emit_ldXu): Do the right thing when the hardware can do byte insns.
301 (emit_stX): Likewise.
302 (emit_sextX): Likewise.
304 Thu Oct 31 16:33:21 1996 Ian Lance Taylor <ian@cygnus.com>
306 * config/obj-coff.c (do_relocs_for): Call resolve_symbol_value on
307 a symbol found in a reloc.
309 * symbols.c (resolve_symbol_value): Improve the error message if
310 an undefined symbol is used in an expression.
312 Wed Oct 30 20:15:35 1996 Ian Lance Taylor <ian@cygnus.com>
314 * doc/internals.texi: Rewrite, and add a lot of documentation.
315 * doc/Makefile.in (internals.info): New target.
318 Wed Oct 30 14:55:57 1996 Jeffrey A Law (law@cygnus.com)
320 * config/tc-v850.h (tc_fix_adjustable): Don't adjust relocs
321 against weak symbols.
323 Tue Oct 29 12:28:16 1996 Jeffrey A Law (law@cygnus.com)
325 * config/tc-v850.c (md_assemble): Don't lose for relaxable
328 * config/tc-v850.c (md_convert_frag): Make sure we insert the
329 fixup at the right address within the frag.
331 * config/tc-v850.c (md_convert_frag): Don't set fragP->fr_fix
332 to an absolute value, instead increment it as needed.
334 * config/tc-v850.h (TC_GENERIC_RELAX_TABLE): Define.
335 * config/tc-v850.c: Fix some indention problems.
336 (md_relax_table): Define for D9->D99 branch displacement
338 (md_convert_frag): Do something useful instead of aborting.
339 (md_estimate_size_before_relax): Likewise.
340 (md_assemble): Note if the matching instruction has a relaxable
341 operand. If it does, allocate frag with frag_var and don't
346 Mon Oct 28 10:48:40 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
348 * config/tc-d10v.h (md_cleanup): New function. This is needed to
349 write out any buffered instructions when a ".end" is found.
352 Mon Oct 28 10:43:45 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
354 * read.c (read_a_source_file): New hook md_cleanup().
356 Fri Oct 25 00:01:00 1996 Ian Lance Taylor <ian@cygnus.com>
358 * write.c (fix_new_exp): Use make_expr_symbol to build an
359 expression symbol for a complex fixup.
362 Thu Oct 24 14:31:04 1996 Jeffrey A Law (law@cygnus.com)
364 * config/tc-v850.c (v850_reloc_prefix): Several disgusting
365 hacks to improve parsing of complex hi, lo, zda, etc
367 (md_assemble): Don't demand and eat a trailing ')' after finding
368 a v850 relocation prefix. Sign extend the constant in a
369 BFD_RELOC_LO16 expression. Do eat a trailing ')' after a complete
371 (parse_cons_expression_v850): Don't eat a trailing ')' after
372 finding a v850 relocation prefix.
374 * config/tc-v850.h (TC_PARSE_CONS_EXPRESSION): Define.
375 (TC_CONS_FIX_NEW): Likewise.
376 * config/tc-v850.c (parse_cons_expression_v850): New function.
377 (cons_fix_new_v850): Likewise.
379 * config/tc-v850.h (tc_fix_adjustable): Don't adjust TDA relocs.
382 Wed Oct 23 18:20:29 1996 Ian Lance Taylor <ian@cygnus.com>
384 * config/tc-ppc.c (md_apply_fix3): Give a better warning message
385 for an unknown relocation type.
388 Wed Oct 23 16:21:28 1996 Jeffrey A Law (law@cygnus.com)
390 * config/tc-v850.c (md_pseudo_table): Add .word; allocates
393 Tue Oct 22 22:01:25 1996 Jeffrey A Law (law@cygnus.com)
395 * config/tc-v850.c (md_assemble): Handle TDAOFF relocs
396 differently for movea & sst/sld insns.
400 Tue Oct 22 17:09:32 1996 Michael Meissner <meissner@tiktok.cygnus.com>
402 * config/tc-d10v.c (parallel_ok): Don't allow illegal combinations
406 Tue Oct 22 11:28:39 1996 Ian Lance Taylor <ian@cygnus.com>
408 * obj.h (struct format_ops): Add frob_file_after_relocs field.
409 * config/obj-multi.h (obj_frob_file_after_relocs): Define.
410 * config/obj-ecoff.c (ecoff_format_ops): Initialize new
411 frob_file_after_relocs field.
412 * config/obj-elf.c (elf_format_ops): Likewise.
413 * config/tc-mips.c: Undefine obj_frob_file_after_relocs before
416 Mon Oct 21 11:38:30 1996 Ian Lance Taylor <ian@cygnus.com>
418 * config/tc-mips.c (cons_fix_new_mips): Only treat 8 byte reloc
419 specially if not ELF.
420 (md_apply_fix): Handle BFD_RELOC_64.
421 (tc_gen_reloc): Handle BFD_RELOC_64.
423 * config/tc-i386.c (md_apply_fix3): Don't increment value for a PC
424 relative reloc when BFD_ASSEMBLER and OBJ_AOUT (more ugly gas
427 * config/obj-aout.h (S_IS_DEFINE): non BFD_ASSEMBLER version:
428 Don't check S_GET_OTHER.
430 Fri Oct 18 14:06:26 1996 Ian Lance Taylor <ian@cygnus.com>
432 * config/tc-mips.c (mips_ip): Accept an odd floating point
433 register with l.s or s.s.
435 * config/obj-aout.c (obj_pseudo_table): Use obj_aout_type for
437 (obj_aout_type): New static function.
439 Thu Oct 17 17:55:17 1996 Ian Lance Taylor <ian@cygnus.com>
441 * Makefile.in ($(OBJS)): Depend upon libiberty.h.
444 Wed Oct 16 11:28:31 1996 Jeffrey A Law (law@cygnus.com)
446 * config/tc-v850.c (v850_reloc_prefix): Recognize zdaoff, tdaoff
447 and sdaoff expressions.
449 * write.c (fixup_segment): Don't add symbol value to addend if
451 * config/tc-v850.h (tc_fix_adjustable): Don't adjust any
454 * config/tc-v850.c (md_pcrel_from): Undo yesterday's changes.
455 (md_pcrel_from_section): Likewise.
456 * config/tc-v850.h (MD_PCREL_FROM_SECTION): Likewise.
458 Tue Oct 15 23:19:00 1996 Jeffrey A Law (law@cygnus.com)
460 * config/tc-v850.c (md_pcrel_from): Delete unused function.
461 (md_pcrel_from_section): New function.
462 * config/tc-v850.h (MD_PCREL_FROM_SECTION): Define.
465 Mon Oct 14 13:59:12 1996 Ian Lance Taylor <ian@cygnus.com>
467 * config/tc-mips.c (load_register): Add cast to offsetT when using
470 Mon Oct 14 11:24:28 1996 Richard Henderson <rth@tamu.edu>
472 * config/obj-elf.c (elf_frob_file): Move ECOFF debug processing to ...
473 (elf_frob_file_after_relocs): ... here. New function.
474 * config/obj-elf.h (obj_from_file_after_relocs): New macro.
475 * write.c (write_object_file): Call *frob_after_relocs after the
476 call to write_relocs.
478 * config/tc-alpha.c: Use new BFD_RELOC_ALPHA_ELF_LITERAL reloc.
480 * config/tc-alpha.c (load_expression): Don't SET_VALUE on the section
481 symbol, as this messes up linking. Instead, expand the recursive call
482 inline and change up the appropriate bits to get the 0x8000 offset
485 Thu Oct 10 17:30:31 1996 Ian Lance Taylor <ian@cygnus.com>
487 * config/tc-sparc.h (tc_fix_adjustable): Permit the difference of
488 two symbols in the same segment to be adjusted.
490 * configure.in: Don't get confused by CPU-VENDOR-linux-gnu.
491 * configure: Rebuild.
493 Thu Oct 10 17:22:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
495 * config/tc-ppc.c (ppc_insert_operand): Change most warnings into
497 (ppc_elf_validate_fix): Ditto.
498 (md_assemble): Ditto.
500 (ppc_pe_section): Ditto.
501 (ppc_frob_symbol): Ditto.
503 Thu Oct 10 12:05:45 1996 Jeffrey A Law (law@cygnus.com)
505 * config/mn10300.c (md_assemble): Pass an extra shift count
506 to mn10300_insert_operand based on the opcode format.
507 (mn10300_insert_operand): Accept and use extra shift count
510 * config/tc-mn10300.c (md_assemble): Use FMT_* macros for
511 formats rather than hard-coded constants.
513 * config/tc-mn10300.c (md_assemble): Format D5 instructions
514 are 7 bytes long. Write out instructions in big-endian format.
516 Tue Oct 8 14:56:15 1996 Jeffrey A Law (law@cygnus.com)
518 * config/tc-mn10300.c (md_assemble): Tweak further so
519 that all instructions are parsed correctly.
521 Tue Oct 8 13:02:21 1996 Ian Lance Taylor <ian@cygnus.com>
523 * as.h: Include libiberty.h.
524 (xmalloc, xrealloc): Don't declare.
525 * as.c: Don't include libiberty.h.
526 * expr.c, read.c, stabs.c, config/obj-coff.c: Likewise.
527 * config/tc-mips.c: Likewise.
528 * messages.c: Likewise.
529 (xstrerror): Don't declare.
532 Mon Oct 7 16:53:23 1996 Jeffrey A Law (law@cygnus.com)
534 * config/tc-mn10300.h (pre_defined_registers) Remove.
535 (system_registers, cc_names): Likewise.
536 (address_registers, data_registers, other_registers): New register
538 (register_name, system_register_name, cc_name): Remove.
539 (mn10300_reloc_prefix): Likewise.
540 (data_register_name): New function.
541 (address_register_name, other_register_name): Likewise.
542 (md_assemble): Rough cut at parsing operands. Remove lots of
544 (md_apply_fix3): Disable for now.
546 Mon Oct 7 11:38:34 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
548 * config/tc-m68k.c (select_control_regs): New function, extracted
549 out of m68k_init_after_args.
550 (m68k_init_after_args): Use it.
551 (mri_chip): Use it here as well to update set of allowed control
554 Mon Oct 7 11:24:29 1996 Ian Lance Taylor <ian@cygnus.com>
556 * config/obj-elf.c (elf_begin): New function.
557 (obj_elf_section): Add the section symbol to the symbol table.
558 * config/obj-elf.h (obj_begin): Define.
559 (elf_begin): Declare.
560 * as.c (perform_an_assembly_pass): Call obj_begin if it is
563 Fri Oct 4 18:37:32 1996 Ian Lance Taylor <ian@cygnus.com>
565 * config/obj-coff.c (fixup_segment): Subtract the section address
566 from a PC relative reloc if TC_M68K.
568 Thu Oct 3 15:15:30 1996 Ian Lance Taylor <ian@cygnus.com>
570 * config/tc-sparc.c (md_pseudo_table): Make .uahalf, .uaword, and
571 .uaxword available even if not OBJ_ELF.
572 (md_atof): Remove unused local variable wordP.
574 Thu Oct 3 00:16:50 1996 Jeffrey A Law (law@cygnus.com)
576 * config/tc-mn10x00.c, config/tc-mn10x00.h: New files
577 for Matsushita MN10x00 support.
578 * configure.in: Recognize mn10x00-*-*
579 * configure: Rebuilt.
581 Wed Oct 2 15:54:03 1996 Klaus Kaempf <kkaempf@progis.de>
583 * obj-evax.h: move openvms definitions from here to tc-alpha.c.
584 * tc-alpha.c: add support for vms_case_hack like in vax/vms.
585 (load_expression): track clobbering of base reg before jmp/jsr.
586 (s_alpha_file): pass case_hack flags and source filename via
588 * tc-alpha.h (TC_CONS_FIX_NEW): define
590 Tue Oct 1 16:16:01 1996 Joel Sherrill <joel@oarcorp.com>
592 * configure.in (mips-*-rtems*): New target, like mips-*-elf*.
593 * configure: Rebuild.
595 Tue Oct 1 12:37:48 1996 Ian Lance Taylor <ian@cygnus.com>
597 * read.c (s_macro): Warn if a macro has the same name as a
599 (s_space): In m68k MRI mode, align to a word boundary.
600 * macro.c (define_macro): Add namep parameter. Change all
602 * macro.h (define_macro): Update declaration.
604 * as.c (show_usage): Print bug report address.
605 (parse_args): Change version printing to match current GNU
607 * gasp.c (show_usage): Print bug report address.
608 (main): Change version printing to match current GNU standards.
610 * config/tc-m68k.c (init_table): Correct access control unit
611 register numbers. From Ken Rose <rose@netcom.com>.
613 * config/tc-alpha.c: Add some static function prototypes.
614 (alpha_macros): Move to top of file. Make static.
615 (alpha_num_macros): Move to top of file.
618 Tue Oct 1 09:36:19 1996 Stu Grossman (grossman@critters.cygnus.com)
620 * tc-v850.h: Define LOCAL_LABEL to recognise _.L_* symbols
624 Sat Sep 28 03:38:08 1996 Ian Lance Taylor <ian@cygnus.com>
626 * listing.c (list_symbol_table): Remove bogus code in BFD64 case,
627 and just call sprintf_vma.
629 Thu Sep 26 16:04:11 1996 Ian Lance Taylor <ian@cygnus.com>
631 * expr.c (expr): Change >>= to >> (fix typo). (From meissner).
633 Tue Sep 24 19:05:08 1996 Ian Lance Taylor <ian@cygnus.com>
635 * read.c (float_cons): Call md_flush_pending_output if it is
639 Tue Sep 24 12:22:18 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
641 * config/tc-d10v.c (md_operand): Created. Allows operands to
643 * config/tc-d10v.h (md_operand): Undefined.
646 Mon Sep 23 12:13:18 1996 Ian Lance Taylor <ian@cygnus.com>
648 * config/tc-m68k.c (add_fix): Treat a width of '3' like 'B'.
649 (md_assemble): A fixup width of '3' means a 1 byte reloc.
651 Thu Sep 19 12:21:24 1996 Ian Lance Taylor <ian@cygnus.com>
653 * config/obj-coff.c (fixup_segment): Don't adjust PC relative
654 reloc for the i960 for a reloc in the same section. This undoes
655 one of the two changes made Aug 19.
657 Wed Sep 18 12:11:58 1996 Ian Lance Taylor <ian@cygnus.com>
659 * config/obj-coff.c (obj_coff_endef): Both versions: Move C_STAT
660 symbols to the position of the debugging information.
662 Mon Sep 16 11:41:40 1996 Ian Lance Taylor <ian@cygnus.com>
664 * expr.c (expr): Always use unsigned right shifts for >>.
666 Thu Sep 12 10:25:45 1996 James G. Smith <jsmith@cygnus.co.uk>
668 * config/tc-arm.c (md_apply_fix3): Update two thumb instruction
669 slots when processing BL fixups.
671 * config/tc-arm.c (output_inst): Ensure Thumb BL fixup is marked
672 on the first half of the instruction.
674 Wed Sep 11 00:09:35 1996 Ian Lance Taylor <ian@cygnus.com>
676 * ecoff.c (ecoff_stab): Create an expression symbol for a complex
677 stabs expression, rather than giving an error.
679 * ecoff.c (ecoff_new_file): Don't do anything if we are still in
682 Tue Sep 10 11:45:37 1996 Ian Lance Taylor <ian@cygnus.com>
684 * config/tc-mips.c (append_insn): Fill in the value for a constant
685 jump, rather than creating a reloc.
687 Mon Sep 9 10:57:42 1996 Ian Lance Taylor <ian@cygnus.com>
689 * config/tc-mips.c (append_insn): Don't swap an instruction which
690 sets a condition code with an instruction which uses a condition
692 (mips_ip): In cases 'N' and 'M', look for $fccN rather than an
695 * config/tc-mips.c (md_begin): Recognize r5000 for cpu.
696 (mips_ip): Give a better error message if the ISA level is wrong.
697 (md_parse_option): Recognize -mcpu=[v][r]5000.
699 Sat Sep 7 13:25:55 1996 James G. Smith <jsmith@cygnus.co.uk>
701 * config/tc-mips.c (COUNT_TOP_ZEROES): Added macro to count
703 (load_register): Ensure hi32 bits are not lost during lo32bit
704 processing. Fix shift offset that was overflowing into the next
705 instruction field. Add code to generate shorter sequences for
706 constants with a single contiguous seqeuence of ones.
709 Fri Sep 6 17:07:12 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
711 * config/tc-d10v.c (d10v_dot_word): New function to support
712 "@word" with the word pseudo-op.
713 (md_apply_fix3): Cleanup and changes to support correct sizes
714 for 16 and 18-bit relocs.
717 Fri Sep 6 16:00:29 1996 Doug Evans <dje@canuck.cygnus.com>
719 * configure.in (sparc-*-aout): Set `em'.
720 * configure: Regenerated.
721 * config/te-sparcaout.h: New file.
722 * config/tc-sparc.h (TARGET_BYTES_BIG_ENDIAN): Define.
723 Ifdef TE_SPARCOUT define TARGET_FORMAT and SPARC_BIENDIAN.
724 * config/tc-sparc.c (INSN_BIG_ENDIAN): New macro.
725 (SPECIAL_CASE_{SETSW,SETX}): Define.
726 ({NOP,OR,FMOVS,SETHI,SLLX,SRA}_INSN): Define.
727 (md_begin): Delete setting of `target_big_endian'.
728 (output_insn): New function.
729 (md_assemble): Rewrite. Add `setx' support.
730 (sparc_ip): Handle `0' operand char. Recognize setuw, setsw, setx
732 (md_atof): Add little endian support.
733 (md_number_to_chars): Likewise.
734 (md_apply_fix): Likewise.
735 (md_longopts): Recognize -EL,-EB ifdef SPARC_BIENDIAN.
736 (md_parse_option): Likewise.
737 (md_show_usage): Print -EL, -EB ifdef SPARC_BIENDIAN.
739 Thu Sep 5 13:40:29 1996 Ian Lance Taylor <ian@cygnus.com>
741 * ecoff.c (ecoff_new_file): New function.
742 * ecoff.h (ecoff_new_file): Declare.
743 * config/obj-ecoff.h (obj_app_file): Define.
745 Thu Sep 5 13:39:25 1996 Richard Henderson <rth@tamu.edu>
747 * config/tc-alpha.c (load_expression): Bias the .lit8 section
748 symbol by 32k so that our 16-bit signed offset can address the
749 entire chunk. Reported by <matt@lkg.dec.com>.
751 Wed Sep 4 10:23:20 1996 Ian Lance Taylor <ian@cygnus.com>
753 * config/tc-mips.c (load_register): Remove unused variable tmp.
755 Wed Sep 4 11:24:29 1996 James G. Smith <jsmith@cygnus.co.uk>
757 * config/tc-mips.c (load_register): Remove unnecessary code that
758 was causing the high 32bits of 64bit constants to be lost.
761 Tue Sep 3 13:52:56 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
763 * config/tc-d10v.c: Added changes to support function
764 pointers and "@word" syntax.
768 Tue Sep 3 11:57:18 1996 Jeffrey A Law (law@cygnus.com)
770 * config/tc-v850.c: Remove commented out and #if 0'd code.
771 (v850_reloc_prefix): Provide prototype.
772 (postfix, get_reloc, build_insn): Remove prototypes for nonexistant
774 (md_begin, md_assemble, md_apply_fix3): Remove unused variables.
775 (md_assemble): Add default to case statement.
777 Sat Aug 31 16:03:00 1996 Jeffrey A Law (law@cygnus.com)
779 * config/tc-v850.c (md_assemble): Compute size of the instrction
782 * config/tc-v850.c (md_apply_fix3): Do simple byte, short and
785 Fri Aug 30 23:50:08 1996 Jeffrey A Law (law@cygnus.com)
787 * config/tc-v850.c (md_apply_fix3): Use little endian get/put
788 routines to fetch/store the updated instruction from/to memory.
789 (v850_insert_operand): If the operand has a specialized insert
792 Fri Aug 30 18:35:26 1996 J.T. Conklin <jtc@hippo.cygnus.com>
794 * config/tc-v850.c (reg_name_search): Align calling convention to
795 be like identical function found in tc-ppc.c.
796 (get_reloc): Removed.
797 (v850_reloc_prefix): New function, parse lo(), hi() and hi0().
798 (md_assemble): emit fixups.
799 (md_pcrel_from): renamed from md_pcrel_from_section, emit proper
801 (md_apply_fix3): handle fixups/relocs.
802 * config/tc-v850.h (MD_PCREL_FROM_SECTION): Removed definition.
805 Fri Aug 30 18:12:00 1996 Ian Lance Taylor <ian@cygnus.com>
808 * configure.in (sh-*-elf*): New target.
809 * config/tc-sh.h (TARGET_ARCH): Define.
810 (WORKING_DOT_WORD): Define.
811 (TC_COFF_FIX2RTYPE): Only define if OBJ_COFF.
812 (BFD_ARCH, COFF_MAGIC, TC_COUNT_RELOC): Likewise.
813 (TC_RELOC_MANGLE, tc_coff_symbol_emit_hook): Likewise.
814 (DO_NOT_STRIP, NEED_FX_R_TYPE, TC_KEEP_FX_OFFSET): Likewise.
815 (TC_COFF_SIZEMACHDEP, tc_frob_file): Likewise.
816 (SUB_SEGMENT_ALIGN): Likewise.
817 (RELOC_32): Don't define.
818 (tc_frob_file_before_adjust): Define if BFD_ASSEMBLER.
819 (target_big_endian): Declare if OBJ_ELF.
820 (TARGET_FORMAT): Define if OBJ_ELF.
821 * config/tc-sh.c: Use BFD reloc codes instead of SH COFF reloc
823 (tc_crawl_symbol_chain): Only define if OBJ_COFF.
824 (tc_headers_hook, tc_coff_sizemachdep): Likewise.
825 (struct sh_count_relocs): Define.
826 (sh_count_relocs): New static function, broken out of
827 sh_frob_file. Add BFD_ASSEMBLER code.
828 (sh_frob_section): Likewise.
829 (sh_frob_file): Call sh_frob_section.
830 (md_convert_frag): If BFD_ASSEMBLER, change type of headers, and
831 call section_symbol rather than seg_info (seg)->dot.
832 (md_section_align): Add OBJ_ELF version.
833 (SWITCH_TABLE_CONS): Define.
834 (SWITCH_TABLE): Use SWITCH_TABLE_CONS.
835 (md_apply_fix): Change parameter types if BFD_ASSEMBLER. Only
836 handle fx_r_type == 0 if not BFD_ASSEMBLER. Return 0 if
838 (struct reloc_map): Define if not BFD_ASSEMBLER.
839 (coff_reloc_map): Likewise.
840 (sh_coff_reloc_mangle): Use coff_reloc_map to convert fx_r_type.
841 (tc_gen_reloc): New function if BFD_ASSEMBLER.
842 * write.c (write_relocs): Ifdef out fx_where test which triggers
843 inappropriately for SH ELF.
844 (write_object_file): Call tc_frob_file_before_adjust and
845 obj_frob_file_before_adjust if they are defined.
847 * write.c (write_object_file): Use BFD_RELOC_16, not
848 BFD_RELOC_NONE, when calling fix_new_exp for a broken word.
850 * read.c (emit_expr): Fix conversion of byte count to BFD reloc
854 Fri Aug 30 14:47:38 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
856 * config/tc-d10v.c (find_opcode): Fix problem with calculating
857 branch sizes in across sections.
861 Fri Aug 30 00:44:13 1996 Jeffrey A Law (law@cygnus.com)
863 * config/tc-850.c (md_assemble): Handle hi() correctly. Handle
866 Wed Aug 28 23:11:08 1996 Jeffrey A Law (law@cygnus.com)
868 * config/tc-v850.c (md_begin): Deal with end of opcode
873 Wed Aug 28 19:20:04 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
875 * config/tc-d10v.c (find_opcode): Fix a bug which could generate
876 the wrong opcode for cases like st2w where there are many forms
877 of the same instruction.
880 Tue Aug 27 13:53:22 1996 Ian Lance Taylor <ian@cygnus.com>
882 * expr.c (operand): If md_parse_name is defined, call it before
883 calling symbol_find_or_make.
884 * config/tc-ppc.h (md_parse_name): Define.
885 (ppc_parse_name): Declare.
886 * config/tc-ppc.c (reg_name_search): Add regs and regcount
888 (register_name): Update call to reg_name_search.
889 (cr_operand): New static variable.
890 (cr_names): New static const array.
891 (ppc_parse_name): New function.
892 (md_assemble): If PPC_OPERAND_CR is set in the operand flags, set
893 cr_operand before calling expression.
895 Tue Aug 27 09:05:50 1996 Jeffrey A Law (law@cygnus.com)
897 * config/tc-hppa.c (tc_gen_reloc): Add new argument to
898 hppa_gen_reloc_type call.
901 Mon Aug 26 18:24:51 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
903 * config/tc-d10v.c: Fixed ".word". Fixed problem with range checking
904 on addresses. Improved error messages.
905 * doc/c-d10v.texi: Added docs for register pairs.
907 Mon Aug 26 13:39:27 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
909 * config/tc-d10v.c (parallel_ok): Fix bug in parallel
913 Mon Aug 26 14:38:22 1996 Ian Lance Taylor <ian@cygnus.com>
915 * ecoff.c (init_file): Initialize fMerge to 1.
916 (add_file): Restore old file merging code, but only merge files if
918 (ecoff_directive_loc): Clear fMerge field of current file.
919 (ecoff_generate_asm_lineno): Likewise.
922 Fri Aug 23 11:40:47 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
924 * doc/c-d10v.texi: Fix typo.
928 Fri Aug 23 10:41:32 1996 Jeffrey A Law (law@cygnus.com)
930 * config/tc-v850.c (md_assemble): Correct bit masking for
931 hi and lo expressions.
933 * config/tc-v850.c (md_assemble): Rough cut at demanding
934 "ep" or "r30" in sst and sld instructions.
935 (md_apply_fix3): Don't abort. Just warn that we don't
938 * config/tc-v850.c (CC_NAME_CNT): Define.
939 (cc_name): New function.
940 (md_assemble): Handle V850_OPERAND_CC correctly.
942 * config/tc-v850.c (md_assemble): Don't forget to initialize
945 * config/tc-v850.c (reg_name_search): Generalize to search
946 any given register table.
947 (register_name): Pass appropriate table and size to reg_name_search.
948 (system_register_name): New function.
949 (SYSREG_NAME_CNT): Define.
950 (md_assemble): Handle operands which are system registers.
952 * config/tc-v850.c (md_assemble): If we find a register, but the
953 opcode doesn't want a register, then we don't have a match.
954 (md_assemble): Get size of the instruction from the opcode table.
957 Thu Aug 22 10:20:30 1996 Ian Lance Taylor <ian@cygnus.com>
959 * configure.in: Set and substitute HLDENV.
960 * configure: Rebuild.
961 * Makefile.in (HLDENV): New variable.
962 (as.new): Use $(HLDENV).
964 * ecoff.c (ecoff_directive_endef): Avoid a division by zero error
965 if an array dimension is not known.
968 Thu Aug 22 10:50:00 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
970 * config/tc-d10v.c: Fix a reloc bug caused by my last change.
971 * doc/c-d10v.texi: Cleanup.
975 Tue Aug 20 15:15:16 1996 J.T. Conklin <jtc@hippo.cygnus.com>
977 * config/tc-v850.c: New file.
978 * config/tc-v850.h: New file.
979 * configure (v850-*-elf): New target.
980 * configure.in (v850-*-elf): New target.
984 Wed Aug 21 15:50:54 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
986 * doc/c-d10v.texi: New file.
987 * doc/all.texi: Added D10V stuff.
988 * doc/as.texinfo: Added D10V stuff.
990 Tue Aug 20 14:10:02 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
992 * config/tc-d10v.c: All references to defined symbols should
993 now use the optimal instruction. .float and .double now work.
996 Mon Aug 19 14:41:36 1996 Ian Lance Taylor <ian@cygnus.com>
998 * config/obj-coff.c (fixup_segment): Adjust PC relative reloc by
999 section address for the i960 as is done for the i386.
1001 Thu Aug 15 16:37:59 1996 Stan Shebs <shebs@andros.cygnus.com>
1003 * mpw-config.in: Add wildcards for config matching, add mips-*-*
1004 case, forward-include bfd/elf-bfd.h.
1007 Thu Aug 15 13:24:30 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1009 * config/tc-d10v.c: Add additional information to the opcode
1010 table to help determinine which instructions can be done
1014 Thu Aug 15 17:01:31 1996 James G. Smith <jsmith@cygnus.co.uk>
1016 * config/tc-arm.c: Major changes to add Thumb support, with lots
1017 of change input from <rearnsha@armltd.co.uk>.
1018 Reverted to INSN_SIZE macro, rather than insn_size variable.
1019 (insns): Added ARM "bx" instruction support.
1020 (tinsns): Added Thumb instruction definition structure.
1021 (arm_tops_hsh): Added hash structure for Thumb opcodes.
1022 (md_pseudo_table): Added ".arm", ".thumb" and ".code" pseudo-ops.
1023 (opcode_select,s_arm,s_thumb,s_code): Added.
1024 (decode_shift): Allow upper-case RRX.
1025 (do_ldst): Simpler halfword support.
1026 (do_ldmstm): Improved.
1027 (reg_list, do_bx, thumb_reg, thumb_add_sub, thumb_shift,
1028 thumb_mov_compare, thumb_load_store, do_t_arit, do_t_add,
1029 do_t_asr, do_t_branch, do_t_bx, do_t_compare, do_t_ldmstm,
1030 do_t_ldrb, do_t_ldrh, do_t_lds, do_t_lsl, do_t_lsr, do_t_mov,
1031 do_t_push_pop, do_t_str, do_t_strb, do_t_strh, do_t_sub, do_t_swi,
1033 (md_apply_fix3): Add support for BFD_RELOC_ARM_THUMB_* relocations.
1034 (md_parse_option): Add support for -mthumb.
1035 (md_show_usage): Updated to reflect new command line option.
1036 (arm_data_in_code, arm_canonicalize_symbol_name): Added.
1037 * config/tc-arm.h: Provide TC_FIX_TYPE to allow private ARM
1038 fragment information to be held.
1040 Thu Aug 15 16:12:00 1996 Richard Earnshaw (rearnsha@armltd.co.uk)
1042 * tc-arm.c (md_apply_fix3): Also set fixP->fx_done if fx_addsy is
1043 non-null, but is a constant.
1044 (fix_new_arm): Call make_expr_symbol to make the expression symbol
1045 so that error reporting will work correctly.
1047 Wed Aug 14 10:37:21 1996 Ian Lance Taylor <ian@cygnus.com>
1049 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust relocs
1050 against weak symbols.
1052 Tue Aug 13 17:39:24 1996 Ian Lance Taylor <ian@cygnus.com>
1054 * config/tc-ppc.h (TC_FORCE_RELOCTION): Define if OBJ_XCOFF.
1055 (ppc_force_relocation): Declare if OBJ_XCOFF.
1056 * config/tc-ppc.c (ppc_force_relocation): New function if
1059 Mon Aug 12 16:49:43 1996 Ian Lance Taylor <ian@cygnus.com>
1061 * config/tc-mips.h (BYTE_ORDER): Don't define. No longer used.
1064 Fri Aug 9 17:48:28 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1066 * config/tc-d10v.c: Fix problem with relocs.
1069 Fri Aug 9 14:16:14 1996 Ian Lance Taylor <ian@cygnus.com>
1071 * config/tc-sh.c (sh_do_align): If not BFD_ASSEMBLER, always align
1072 with nops if not in data_section or bss_section.
1074 Thu Aug 8 12:32:56 1996 Klaus Kaempf <kkaempf@progis.de>
1076 Add support for openVMS/Alpha.
1077 * as.h (PRINTF_LIKE): Don't define if VMS, for now.
1078 * config/obj-evax.c: New file.
1079 * config/obj-evax.h: New file.
1080 * config/tc-alpha.c: Add support for EVAX format if OBJ_EVAX is
1082 * config/tc-alpha.h: Add support for EVAX format if OBJ_EVAX is
1083 defined. Add case for bfd_target_evax_flavour.
1084 * config/vms-a-conf.h: New file.
1085 * conf-a-gas.com: New file.
1086 * configure.in: Add target alpha-*-*vms*.
1087 * configure: Rebuild.
1088 * makefile.vms: New file.
1089 * read.c (s_lcomm): Align bss_seg on 8 byte boundary if OBJ_EVAX.
1090 Don't call ffs on openVMS/Alpha.
1092 Wed Aug 7 14:19:03 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
1094 * configure.in: Make GAS_CHECK_DECL_NEEDED include <string.h> or
1095 <strings.h> if they exist. Call GAS_CHECK_DECL_NEEDED on strstr
1097 * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
1098 (NEED_DECLARATION_SBRK): New macro.
1099 * configure, conf.in: Rebuild.
1100 * as.h: Only include <strings.h> if HAVE_STRINGS_H.
1101 (strstr): Declare if NEED_DECLARATION_STRSTR.
1102 * as.c: If HAVE_SBRK and NEED_DECLARATION_SBRK, declare sbrk.
1104 Wed Aug 7 11:50:26 1996 Ian Lance Taylor <ian@cygnus.com>
1106 * symbols.c (resolve_symbol_value): Handle addition or subtraction
1107 by a constant before entering the main switch. Reject attempts to
1108 apply an arithmetic function to non-absolute symbols, except for
1109 the special case of subtraction of two symbols in the same
1112 * config/tc-mips.c (md_section_align): Do align if OBJ_ELF, but
1113 not to more than a 16 byte boundary.
1115 * config/tc-i386.c (tc_gen_reloc): Accept all relocs; remove
1116 #ifndef OBJ_ELF lines. From Eric Valette <valette@crf.canon.fr>.
1117 (tc_gen_reloc): If out of memory call as_fatal rather than
1118 assert. If no howto found, call as_bad_where rather than
1119 as_fatal. Change the error message slightly. Set howto to a
1120 non-NULL value in order to keep going.
1123 Tue Aug 6 12:58:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1125 * config/tc-d10v.c: Added code to support 32-bit fixups for stabs.
1128 Tue Aug 6 11:15:26 1996 Jeffrey A Law (law@cygnus.com)
1130 * config/tc-h8300.c (get_specific): New operand "size" derived
1131 from ".b", ".w" and ".l" extensions. All callers changed. If
1132 the base instruction has no operands, then use the size to
1133 determine which specific instruction to use.
1135 Mon Aug 5 14:21:10 1996 Ian Lance Taylor <ian@cygnus.com>
1137 * config/tc-i960.c (mem_fmt): Call parse_expr before emit.
1139 Fri Aug 2 11:23:31 1996 Ian Lance Taylor <ian@cygnus.com>
1141 * config/tc-mips.c (md_section_align): Don't change addr if
1144 Thu Aug 1 23:51:52 1996 Jeffrey A Law (law@cygnus.com)
1146 * config/tc-hppa.c: Revert yesterday's changes.
1149 Wed Jul 31 14:46:11 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1151 * config/tc-d10v.c: Disable range checking on 16-bit values.
1154 Wed Jul 31 16:27:19 1996 Ian Lance Taylor <ian@cygnus.com>
1156 * config/tc-m68k.c (m68k_ip): Set ok_arch for every instruction,
1157 not just the ones that don't match.
1160 Wed Jul 31 11:45:15 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1162 * config/tc-d10v.c: Fixed bugs in short relocs and range checking.
1165 Wed Jul 31 15:41:42 1996 James G. Smith <jsmith@cygnus.co.uk>
1167 * config/tc-arm.c: Changed INSN_SIZE to variable insn_size, as
1168 pre-cursor to adding Thumb support. Also added cpu_variant flag
1169 information to each of the asm_flg structures.
1170 (md_parse_option): Updated ARM7 parsing to allow 't' for
1171 thumb/halfword support, aswell as 'm' for long multiply.
1172 (md_show_usage): Updated help message.
1173 (md_assemble): Check that instruction flags are applicated to the
1174 current cpu variant.
1175 (md_apply_fix3, tc_gen_reloc): Add BFD_RELOC_ARM_OFFSET_IMM8 and
1176 BFD_RELOC_ARM_HWLITERAL relocation support for new halfword and
1177 signextension instructions.
1178 (do_ldst): Generate halfword and signextension variants if
1179 mnemonic flags match.
1180 (ldst_extend): Do not allow shifts in the offset field of halfword
1181 or signextension instructions.
1182 (validate_offset_imm): Provide check on halfword and signextension
1184 (add_to_lit_pool): Merge identical literal pool values.
1186 Tue Jul 30 14:28:23 1996 Jeffrey A Law (law@cygnus.com)
1188 * config/tc-hppa.c (selector_table): Add 'E' selector.
1189 (cons_fix_new_hppa): Don't coke on e_esel.
1190 (tc_gen_reloc, SOM version): Handle R_COMP2 when used
1191 to help generate exception handling tables.
1192 (md_apply_fix): Don't try to apply fixups with an e_esel
1194 (hppa_fix_adjustable): Fixups with e_esel selectors
1197 Tue Jul 30 15:51:41 1996 Ian Lance Taylor <ian@cygnus.com>
1199 * config/tc-sparc.c (md_pseudo_table): Add 2byte, 4byte, and 8byte
1203 Fri Jul 26 11:43:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1205 * config/tc-d10v.c: Added lots of error checking. Added hacks
1206 to support accumulator shifts.
1209 Fri Jul 26 11:56:08 1996 Ian Lance Taylor <ian@cygnus.com>
1211 * symbols.c (S_SET_EXTERNAL): Let .weak override.
1212 (S_CLEAR_EXTERNAL): Likewise.
1213 (S_SET_WEAK): Remove error; just let .weak override.
1216 Thu Jul 25 15:22:51 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1218 * config/tc-d10v.c (md_assemble): Now handles multiline
1221 Thu Jul 25 12:03:33 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1223 * config/tc-d10v.c: Fix packaging bug. Added range checking.
1224 Added kludge for divs instruction. Fixed minor problem with
1225 multiple text sections.
1226 * config/tc-d10v.h (d10v_cleanup): Change prototype.
1228 Tue Jul 23 10:49:36 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1230 * config/tc-d10v.c (md_apply_fix3): Fix all instruction
1231 addresses to be right-shifted by 2.
1233 Mon Jul 22 11:32:36 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1235 * config/tc-d10v.c: Many changes to get relocs working.
1236 (register_name): No longer creates a symbol for register names.
1237 (pre_defined_registers): moved to opcodes/d10v-opc.c.
1238 (d10v_insert_operand): Now works correctly for either container.
1239 * config/tc-d10v.h (d10v_cleanup): Declare.
1242 Mon Jul 22 14:01:33 1996 Ian Lance Taylor <ian@cygnus.com>
1244 * config/tc-mips.c (tc_gen_reloc): BFD_RELOC_PCREL_HI16_S and
1245 BFD_RELOC_PCREL_LO16 are expected to be PC relative.
1247 Mon Jul 22 12:46:55 1996 Richard Henderson <rth@tamu.edu>
1249 * tc-alpha.c: Patches to track current minimum alignment to reduce
1250 the number of fragments created with frag_align.
1251 (alpha_current_align): New static variable.
1252 (s_alpha_text): Reset alignment to 0.
1253 (s_alpha_data, s_alpha_rdata, s_alpha_sdata): Likewise.
1254 (s_alpha_stringer, s_alpha_space): New functions.
1255 (s_alpha_cons, alpha_flush_pending_output): Remove functions.
1256 (alpha_cons_align): New function to replace both of them.
1257 (emit_insn): Only align if alpha_current_align is less than 2;
1258 reset alpha_current_align to 2.
1259 (s_alpha_gprel32): Likewise.
1260 (s_alpha_section): New function. Basically duplicate the other
1261 alpha section change hooks. Only define for ELF.
1262 (s_alpha_float_cons): Simplify alignment handling.
1263 (md_pseudo_table): Only define "rdata" and "sdata" if OBJ_ECOFF.
1264 If OBJ_ELF, define "section", "section.s", "sect", and "sect.s".
1265 Don't define the s_alpha_cons pseudo-ops. Do define
1266 s_alpha_stringer and s_alpha_space pseudo-ops.
1267 (alpha_align): Skip if less than current default alignment. Set
1269 * tc-alpha.h (md_flush_pending_output): Remove.
1270 (md_cons_align): Add.
1272 * tc-alpha.c: Add oodles of function description comments.
1273 (md_bignum_to_chars): Remove; there are no callers.
1274 (md_show_usage): Mention some more variants.
1276 Thu Jul 18 15:54:54 1996 Ian Lance Taylor <ian@cygnus.com>
1278 From Andrew Gierth <ANDREWG@microlise.co.uk>:
1279 * configure.in (sparc-*-sysv4*): New target.
1280 * configure: Rebuild.
1282 * config/tc-sparc.c (md_pseudo_table): Change uahalf, uaword, and
1283 uaxword to use s_uacons.
1284 (sparc_no_align_cons): New static variable.
1285 (s_uacons): New static function.
1286 (sparc_cons_align): If sparc_no_align_cons is set, just clear it
1289 * config/tc-sparc.c (s_common): Remove unused label allocate_bss.
1291 * configure.in: Add mips-*-irix6* target. Handle Irix 6 like Irix
1292 5 with regard to shared libraries.
1293 * configure: Rebuild.
1295 * config/tc-m68k.c (m68k_ip): Use the correct length when
1296 allocating space for the unsupported architecture error message.
1299 Thu Jul 18 12:57:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1301 * configure.in (d10v-*-*): Allow d10v-*-*, don't require d10v-*-elf*.
1303 Wed Jul 17 14:25:13 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1305 * config/tc-d10v.c: New file.
1306 * config/tc-d10v.h: New file.
1307 * configure (d10v-*-elf): New target.
1308 * configure.in (d10v-*-elf): New target.
1311 Fri Jul 12 20:54:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1313 * config/tc-ppc.c (md_parse_option): Recognize -K PIC.
1315 Wed Jul 10 12:39:08 1996 Richard Henderson <rth@tamu.edu>
1317 * config/tc-alpha.c (alpha_align): Change fill parameter
1318 to a pointer. Take NULL as 0 or nop depending on section. Change
1320 (s_alpha_align): Rename local variables.
1322 * doc/as.texinfo (.align): Document action of omitted
1325 Wed Jul 10 00:23:30 1996 Ian Lance Taylor <ian@cygnus.com>
1327 * config/tc-ppc.c (md_apply_fix3): Give a useful error message
1328 when an unsupported PC relative reloc is seen, rather than calling
1331 * app.c (do_scrub_chars): Remove not_cpp_line local variable.
1332 Instead, check state when '#' comment is seen.
1334 Mon Jul 8 14:11:49 1996 Ian Lance Taylor <ian@cygnus.com>
1336 * config/tc-mips.c (mips_regmask_frag): Only define if OBJ_ELF or
1338 (tc_gen_reloc): If fixup was changed to be PC relative, change
1339 reloc type accordingly. Use name of reloc in error message.
1341 * as.h: Don't define const or volatile.
1342 * flonum.h: Don't define const.
1344 * config/tc-m68k.c (tc_gen_reloc): Change the code appropriately
1345 if fx_pcrel is set. Correct setting the addend case in the
1346 OBJ_ELF case (from Andreas Schwab
1347 <schwab@issan.informatik.uni-dortmund.de>).
1348 (md_show_usage): Correct -mfc5200 to -m5200.
1350 Fri Jul 5 10:32:58 1996 J.T. Conklin <jtc@rtl.cygnus.com>
1352 * doc/c-m68k.texi: Document -m5200 flag.
1353 * doc/as.texinfo: Likewise.
1355 * config/tc-m68k.c (m68k_ip): The coldfire does not support 8x
1358 Fri Jul 5 11:07:24 1996 Ian Lance Taylor <ian@cygnus.com>
1360 * symbols.c (S_SET_EXTERNAL): Change as_warn to as_bad.
1361 (S_CLEAR_EXTERNAL, S_SET_WEAK): Likewise.
1363 Thu Jul 4 11:59:46 1996 Ian Lance Taylor <ian@cygnus.com>
1365 * Makefile.in (VERSION): Set to cygnus-2.7.1.
1367 * Released binutils 2.7.
1369 Thu Jul 4 10:11:33 1996 James G. Smith <jsmith@cygnus.co.uk>
1371 * config/tc-mips.c (mips_ip): Only perform range check when
1372 dealing with O_constant expressions.
1374 Wed Jul 3 15:02:21 1996 J.T. Conklin <jtc@rtl.cygnus.com>
1376 * m68k-parse.h (m68k_register): Add new coldfile control
1379 * config/tc-m68k.c (mcf5200_control_regs): New variable,
1380 array of control registers for the coldfire.
1381 (cpu_of_arch): Added mcf5200.
1382 (archs): Added mcf5200.
1383 (init_table): Add new control registers.
1384 (m68k_ip): Added support for new control registers.
1385 (m68k_init_after_args): Likewise.
1387 * config/tc-m68k.c (md_show_usage): Add -m5200 to usage text.
1389 Wed Jul 3 16:05:50 1996 Ian Lance Taylor <ian@cygnus.com>
1391 * read.h (is_it_end_of_statement): Declare.
1392 * read.c (is_it_end_of_statement): Remove declaration.
1394 * config/tc-ppc.c (ppc_elf_suffix): Correct parenthesization of ||
1396 (md_assemble): Fix handling of @l with an unsigned constant. Add
1397 default case to reloc switch.
1399 * config/tc-i386.h (AOUT_MACHTYPE): Define as 0 if TE_386BSD.
1401 Based on patches from Tom Quiggle <quiggle@sgi.com>:
1402 * ecoff.c (last_lineno): New static variable.
1403 (add_procedure): Set last_lineno.
1404 (ecoff_directive_loc): Likewise.
1405 (ecoff_generate_asm_lineno): Likewise.
1406 (ecoff_fix_loc): New function.
1407 * ecoff.h (ecoff_fix_loc): Declare.
1408 * config/tc-mips.c (append_insn): When inserting nops, and using
1409 ECOFF debugging, call ecoff_fix_loc.
1411 Tue Jul 2 23:02:12 1996 Jeffrey A Law (law@cygnus.com)
1413 * config/tc-h8300.c (build_bytes): If an operand type is
1414 marked as SRC_IN_DST retrieve it from the "destination" op.
1416 Sat Jun 29 13:38:31 1996 Ian Lance Taylor <ian@cygnus.com>
1418 * configure.in (arm-*-riscix*): Set emulation to riscix.
1419 * configure: Rebuild.
1420 * config/te-riscix.h: New file to define TE_RISCIX.
1422 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Define.
1424 Fri Jun 28 15:14:31 1996 Ian Lance Taylor <ian@cygnus.com>
1426 * Makefile.in (config.status): Just run config.status as other
1429 Fri Jun 28 11:09:38 1996 Stan Shebs <shebs@andros.cygnus.com>
1431 * mpw-config.in (TARGET_OS): Add definition to conf.
1433 Thu Jun 27 20:39:40 1996 James G. Smith <jsmith@cygnus.co.uk>
1435 * config/tc-mips.c (append_insn): Parenthesize
1436 cop_interlocks expressions.
1438 Thu Jun 27 12:18:26 1996 Ian Lance Taylor <ian@cygnus.com>
1440 * listing.c (listing_print): Close the listing file if it is not
1441 stdout. Close the other files opened for the listing.
1443 * config/tc-sparc.h (md_cons_align): Define.
1444 (sparc_cons_align): Declare.
1445 (HANDLE_ALIGN): Define.
1446 (sparc_handle_align): Declare.
1447 * config/tc-sparc.c (sparc_cons_align): New function.
1448 (sparc_handle_align): New function.
1449 * read.c (cons_worker): Call md_cons_align if it is defined.
1451 * as.h (struct frag): Add fr_file and fr_line fields.
1452 * frags.c (frag_new): Set fr_file and fr_line.
1453 (frag_var): Likewise.
1454 (frag_variant): Likewise.
1456 * as.h (struct frag): Remove unused align_mask and align_offset
1459 * listing.c (calc_hex): Offset by fr_fix when examining fr_var.
1460 From <uddeborg@carmen.se>.
1462 Wed Jun 26 13:21:34 1996 Ian Lance Taylor <ian@cygnus.com>
1464 * configure.in (mips-*-osf*): New target.
1465 * configure: Rebuild.
1467 * config/tc-m68k.c: Add 68ec060 as a synonym for 68060.
1469 Wed Jun 26 16:23:08 1996 James G. Smith <jsmith@cygnus.co.uk>
1471 * config/tc-mips.c: Added cop_interlocks, to avoid NOP insertion
1472 between co-processor comparisons and branches for the VR4300.
1474 Mon Jun 24 18:02:50 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1476 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
1477 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
1479 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1480 * doc/Makefile.in (bindir, libdir, datadir, mandir, infodir,
1481 includedir): Use autoconf set values.
1484 Mon Jun 24 11:58:14 1996 Ian Lance Taylor <ian@cygnus.com>
1486 * listing.c (listing_eject): Don't do anything if listing is 0.
1487 (listing_list): Likewise.
1488 (listing_source_line): Likewise.
1489 (listing_title): Don't save title if listing is 0.
1490 (listing_source_file): Check listing rather than listing_tail.
1492 * configure.in: On alpha*-*-osf*, link against libbfd.a if not
1493 using shared libraries.
1494 * configure: Rebuild.
1496 Fri Jun 21 18:22:23 1996 Ian Lance Taylor <ian@cygnus.com>
1498 * config/tc-mips.c (mips_ip): In case 'i'/'j', don't require an
1499 absolute expression if a relocation type was specified.
1501 Fri Jun 21 17:40:16 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
1503 * configure.in: Add support for *-*-rtems* configurations.
1504 * configure: Rebuild.
1506 Fri Jun 21 16:01:18 1996 Richard Henderson <rth@tamu.edu>
1508 * configure.in: Add alpha-*-linuxecoff* target. Use elf for
1509 alpha-*-linux* target. Force bfd_gas for alpha-*. Require
1510 opcodes library for alpha.
1511 * configure: Rebuild with autoconf 2.10.
1512 * config/tc-alpha.c: Substantial rewrite to add ELF support and
1513 use new opcode table.
1514 * config/tc-alpha.h (md_undefined_symbol): Don't define.
1515 (LOCAL_LABEL): Define differently if OBJ_ELF.
1516 (FAKE_LABEL_NAME): Define if OBJ_ELF.
1517 * config/alpha-opcode.h: Remove.
1518 * config/obj-elf.h: If TC_ALPHA, define ECOFF_DEBUGGING.
1519 * Makefile.in (TARG_CPU_DEP_alpha): Depend upon
1520 include/opcode/alpha.h rather than config/alpha-opcode.h.
1522 Thu Jun 20 19:10:28 1996 Ian Lance Taylor <ian@cygnus.com>
1524 * config/obj-aout.c (obj_emit_relocations): Give an error if the
1525 relocation symbol was not resolved.
1526 * config/obj-coff.c (do_relocs_for): Likewise.
1528 * write.c (adjust_reloc_syms): Refetch the symbol section after
1529 calling S_GET_VALUE, since it may have changed.
1531 * expr.c (struct expr_symbol_line): Define.
1532 (expr_symbol_lines): New static variable.
1533 (make_expr_symbol): Add entry to expr_symbol_lines.
1534 (expr_symbol_where): New function.
1535 * expr.h: Use extern on function declarations.
1536 (expr_symbol_where): Declare.
1537 * symbols.c (resolve_symbol_value): Try to use expr_symbol_where
1538 rather than printing the meaningless name of an expression
1541 Thu Jun 20 15:57:41 1996 Ken Raeburn <raeburn@cygnus.com>
1543 * config/tc-i386.c (md_number_to_chars): Deleted.
1544 * config/tc-i386.h (md_number_to_chars): New macro.
1546 * config/tc-alpha.c (build_operate_n, build_mem): Moved earlier in
1548 (load_symbol_address, load_expression): Use build_mem.
1549 (build_operate): New function.
1550 (emit_addq_r): Use it.
1552 Wed Mar 13 22:14:14 1996 Pat Rankin <rankin@eql.caltech.edu>
1554 * symbols.c (colon): #if VMS, use S_SET_OTHER to store `const_flag'.
1556 Tue Mar 5 14:31:45 1996 Pat Rankin <rankin@eql.caltech.edu>
1558 * config/tc-vax.h (NOP_OPCODE): Define.
1560 Sun Feb 4 21:01:03 1996 Pat Rankin <rankin@eql.caltech.edu>
1562 * config/obj-vms.h (S_IS_COMMON): Define.
1563 (S_IS_LOCAL): Check for \002 as well as \001.
1564 (LONGWORD_ALIGNMENT): New macro.
1565 (SUB_SEGMENT_ALIGN): Use it.
1567 Fri Jan 26 17:44:09 1996 Pat Rankin <rankin@eql.caltech.edu>
1569 * config/vms-conf.h: Reconcile with conf.in.
1571 Wed Jun 19 11:31:50 1996 Ian Lance Taylor <ian@cygnus.com>
1573 * write.c (is_dnrange): Only define if TC_GENERIC_RELAX_TABLE is
1576 * doc/as.texinfo: Document that any number of hex digits can
1579 * as.c (struct defsym_list): Define.
1580 (defsyms): New static variable.
1581 (parse_args): Just put --defsym arguments on defsyms list, rather
1583 (main): Define defsyms after output file is created.
1585 * config/tc-m68k.c (m68k_ip): Reject PRE and POST indexing mode on
1586 cpu32. From Eric Norum <Eric.Norum@usask.ca>.
1588 * config/tc-mips.c (mips_ip): In cases 'I', 'i', and 'j', set
1589 insn_error rather than calling check_absolute_expr.
1591 * as.c (emulation_name): Remove unused static variable.
1592 (default_emul_bfd_name): Add return NULL to avoid warning.
1593 * ecoff.c (ecoff_stab): Remove unused variables name and
1595 * frags.c (frag_new): Remove unused variable tmp.
1596 * hash.c (hash_grow): Parenthesize + within <<.
1597 (hash_print_statistics): Use %lu, not %d, to print unsigned
1599 * messages.c: Include "libiberty.h".
1600 (fprint_value): Add cast to avoid printf warning.
1601 (sprint_value): Likewise.
1602 * read.c: Include "ecoff.h".
1603 (emit_expr): Add casts to avoid printf warnings.
1604 * read.h: Use extern for function declarations.
1605 (pop_insert): Declare.
1606 * stabs.c: Include "ecoff.h".
1607 * subsegs.c (subseg_set_rest): Remove unused variables tmp,
1608 former_last_fragP, and new_fragP.
1609 * subsegs.h (subsegs_print_statistics): Declare.
1610 * symbols.c (debug_verify_symchain): Change macro to discard
1612 * write.c (dump_section_relocs): Likewise.
1613 * write.h: Use extern for function declarations.
1614 (write_print_statistics): Declare.
1615 * config/e-mipsecoff.c (mipsecoff_bfd_name): Return NULL to avoid
1617 * config/e-mipself.c (mipself_bfd_name): Likewise.
1618 * config/obj-elf.h (elf_ecoff_set_ext): Declare.
1620 * config/tc-sparc.h (TC_RELOC_RTSYM_LOC_FIXUP): If OBJ_ELF, always
1621 emit relocations against external symbols.
1623 * config/tc-alpha.c (tc_gen_reloc): Output a sensible error
1624 message if bfd_reloc_type_lookup fails, rather than calling
1627 * config/tc-alpha.c (alpha_force_relocation): Add
1628 BFD_RELOC_12_PCREL to switch.
1630 Tue Jun 18 20:29:57 1996 Doug Evans <dje@canuck.cygnus.com>
1632 * config/tc-i386.h (LOCAL_LABEL,FAKE_LABEL_NAME): Use defaults for
1633 TE_PE (Lfoo, not .Lfoo).
1635 Tue Jun 18 17:13:33 1996 Ian Lance Taylor <ian@cygnus.com>
1637 * read.c (s_fill): Don't warn about a zero repeat count.
1639 * config/tc-mips.c (mips_ip): Don't warn about using AT as a
1640 coprocessor register.
1642 * config/tc-i386.c (md_assemble): When checking the size of a
1643 register to set the size of an instruction, do a bitwise and with
1644 Reg8 and Reg16 rather than requiring the type to be exactly Reg8
1647 Tue Jun 18 13:19:51 1996 Jeffrey A. Law <law@rtl.cygnus.com>
1649 * config/tc-h8300.c (parse_reg): Tweak error messages.
1650 (build_bytes): Likewise.
1651 (skip_colonthing): Handle :32 suffix.
1652 (get_specific): Promote L_24 to L_32 if it makes a match.
1653 Don't always promote L_8 to L_16.
1654 (do_a_fix_imm): Clean up L_32 and L_24 handling.
1656 * config/tc-h8300.c (Smode): New variable.
1657 (h8300hmode): Turn off Hmode.
1658 (h8300smode): New function. Turn on Smode and Hmode.
1659 (md_pseudo_table): New ".h8300s" pseudo-op.
1660 (parse_reg): Handle "exr" register.
1661 (get_operand): Handle bizarre syntax for "stm.l" and "ldm.l".
1662 Handle "mach" and "machl" operands for ldmac.
1663 (get_specific): Handle "stm.l" and "ldm.l".
1664 (build_bytes): Handle "stm.l" and "ldm.l"; handle MACREG operands.
1665 * config/tc-h8300.h (COFF_MAGIC): Handle H8/S magic number.
1668 Mon Jun 17 15:50:53 1996 J.T. Conklin <jtc@rtl.cygnus.com>
1670 * doc/as.texinfo: Reorder chapter of machine dependent options so
1671 that it is sorted by chip name.
1673 * doc/as.texinfo: Use consistant spelling of Vax.
1674 * doc/c-vax.texi: Likewise.
1676 Mon Jun 17 11:26:56 1996 Jeffrey A. Law <law@rtl.cygnus.com>
1678 * config/tc-hppa.c (md_pseudo_table): Add ".begin_try" and ".end_try"
1680 (tc_gen_reloc, SOM version): Handle R_BEGIN_TRY and R_END_TRY.
1681 (md_apply_fix): Likewise.
1682 (pa_try): New function.
1683 (hppa_force_relocation): Force relocs for BEGIN_TRY and END_TRY.
1685 Sun Jun 16 22:57:47 1996 Jeffrey A. Law <law@rtl.cygnus.com>
1687 * config/tc-hppa.c (md_pseudo_table): Add ".level" pseudo op.
1688 (pa_level): New function.
1690 Fri Jun 14 20:06:44 1996 Ian Lance Taylor <ian@cygnus.com>
1692 * listing.c (listing_newline): Don't do anything if listing is 0.
1694 Thu Jun 13 17:50:54 1996 Ian Lance Taylor <ian@cygnus.com>
1696 * subsegs.c (section_symbol): If symbol_table_frozen is set, call
1697 symbol_create, not symbol_new.
1699 Wed Jun 12 14:10:44 1996 Ian Lance Taylor <ian@cygnus.com>
1701 * write.c (adjust_reloc_syms): Don't set sy_used_in_reloc for an
1702 absolute symbol unless TC_FORCE_RELOCATION returns true.
1704 * config/obj-coff.c (previous_file_symbol): Remove BFD_ASSEMBLER
1706 (c_dot_file_symbol): BFD_ASSEMBLER version: Don't set the value of
1707 the symbol to a pointer. Don't set previous_file_symbol.
1708 Simplify symbol list rearrangement.
1709 (coff_frob_symbol): Don't do anything with C_FILE symbols.
1710 (coff_adjust_symtab): Don't check previous_file_symbol.
1712 Mon Jun 10 14:52:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1714 * config/tc-ppc.c (ppc_elf_lcomm): New function for .lcomm
1716 (md_pseudo_table): Add ppc_elf_lcomm.
1718 Mon Jun 10 11:45:51 1996 Ian Lance Taylor <ian@cygnus.com>
1720 * config/tc-m68k.c (m68k_ip): Accept ABSL for 'O', so that `bfextu
1721 d0{24:1},d0' works without an immediate prefix on the bit numbers.
1722 (md_begin): Add digits to alt_notend_table.
1723 (md_parse_option): Make s a const pointer.
1725 * config/tc-sparc.c (md_pseudo_table): Add "empty".
1726 (s_empty): New static function.
1728 * config/obj-coff.c (struct filename_list): Only define if not
1730 (filename_list_head, filename_list_tail): Likewise.
1731 (c_section_symbol): Remove unused BFD_ASSEMBLER version.
1732 (obj_coff_endef, BFD_ASSEMBLER version): Don't set the debugging
1733 flag for C_MOS, C_MOE, C_MOU, or C_EOS symbols, since they should
1734 have a section of N_ABS rather than N_DEBUG. If we do a merge,
1735 remove the new symbol from the list.
1736 (obj_coff_endef, both versions): Call tag_insert even if there is
1737 an old symbol with the same name, if the old symbol does not
1739 (coff_frob_symbol): Check SF_GET_TAG, C_EOF, and C_FILE outside of
1740 the SF_GET_DEBUG condition. Don't call SA_SET_SYM_ENDNDX with a
1741 symbol that will be moved to the end of the symbol list.
1742 (coff_adjust_section_syms): Always call section_symbol for .text,
1744 (coff_frob_section): Likewise. Also, remove unused variable
1747 * config/tc-ns32k.c (convert_iif): Call frag_grow rather than
1748 manipulating frags directly.
1749 (md_number_to_field): Adjust mem_ptr correctly if ENDIAN is
1752 * app.c (do_scrub_chars): If '/' is LINE_COMMENT_START, check
1753 whether the next character is '*' before checking whether we are
1754 at the start of a line. Permit LINE_COMMENT_START to start a
1755 comment in state 1 (seen some whitespace) as well, to match the
1758 * gasp.c (do_align): Permit a fill value for .align.
1760 Wed Jun 5 17:09:26 1996 Ian Lance Taylor <ian@cygnus.com>
1762 * read.c (next_char_of_string): Warn if a newline is seen in the
1763 middle of a string. Call bump_line_counters when appropriate.
1765 Wed Jun 5 17:08:36 1996 Richard Henderson <rth@tamu.edu>
1767 * symbols.c (colon): Use LOCAL_LABEL.
1769 Tue Jun 4 10:55:16 1996 Tom Tromey <tromey@csk3.cygnus.com>
1771 * Makefile.in (install): Don't check to see if tooldir exists.
1772 Make $(tooldir) and $(tooldir)/bin.
1774 Tue Jun 4 10:14:53 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1776 * config/ppc-sol.mt (TDEFINES): Don't turn on -mregnames by
1779 Mon Jun 3 11:34:41 1996 Ian Lance Taylor <ian@cygnus.com>
1781 * config/tc-mips.c (mips_ip): Don't call as_warn if we are setting
1782 insn_error. Don't put the string "ERROR" in insn_error. Set
1783 insn_error rather than calling as_warn for an unsupported opcode.
1785 Sat Jun 1 21:51:55 1996 Ian Lance Taylor <ian@cygnus.com>
1787 * config/tc-mips.c (md_parse_option): Check for a 64 bit format
1788 before permitting -64.
1789 * output-file.c (output_file_create): Remove duplicate
1792 Fri May 31 01:08:06 1996 Ian Lance Taylor <ian@cygnus.com>
1794 * config/tc-mips.c (md_begin): If -64, create a .MIPS.options
1795 section rather than a .reginfo section.
1796 (mips_elf_final_processing): If -64, write out 64 bit RegInfo
1799 * config/tc-mips.c (load_register): If mips_isa < 3, permit a 32
1800 bit value with the high bit set.
1802 Thu May 30 19:00:19 1996 Ian Lance Taylor <ian@cygnus.com>
1804 * read.c (s_lcomm): Set section flags for .sbss section.
1806 * config/tc-mips.c (mips_64): New static variable.
1807 (mips_target_format): If mips_64, return elf64 targets rather than
1809 (md_longopts): Add "32" and "64".
1810 (md_parse_option): Handle -32 and -64.
1811 (md_show_usage): Mention -32 and -64.
1812 (cons_fix_new_mips): If mips_64, don't convert an 8 byte reloc to
1815 Thu May 30 10:36:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1817 * config/tc-ppc.c (comment_chars): Make '!' a comment character
1818 for Solaris compatibility.
1820 * stabs.c (s_stab_generic): Under PowerPC Solaris, convert a
1821 .stabd with 4 arguments into a .stabn.
1823 Wed May 29 16:43:16 1996 Ian Lance Taylor <ian@cygnus.com>
1825 * config/tc-mips.c (macro): When passing X_add_number to
1826 macro_build, cast it to int first.
1828 Tue May 28 13:29:39 1996 Ian Lance Taylor <ian@cygnus.com>
1830 * config/tc-z8k.c (md_apply_fix): Handle fx_r_type of 0, as
1831 created by emit_expr.
1833 * symbols.c (symbol_create): If bfd_make_empty_symbol fails, call
1834 as_perror rather than assert.
1836 Fri May 24 18:24:11 1996 Ian Lance Taylor <ian@cygnus.com>
1838 * config/tc-mips.c (mips_ip): Mark sections created to hold
1839 floating point information as read only.
1841 Fri May 24 12:07:54 1996 David Edelsohn <edelsohn@mhpcc.edu>
1843 * config/tc-ppc.c (ppc_set_cpu): Change defaults to match AIX.
1845 Thu May 23 17:34:24 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1847 * read.c (potable): Add .skip as a synonym for .space.
1849 * stabs.c (s_stab_generic): For PowerPC ELF, allow .stabd to take
1850 4 arguments, providing the 4th argument is 0, to allow
1851 compatibility with the Solaris assembler.
1853 Thu May 16 15:51:48 1996 Ian Lance Taylor <ian@cygnus.com>
1855 * config/tc-sh.h (struct sh_segment_info_type): Define.
1856 (TC_SEGMENT_INFO_TYPE): Define.
1857 (sh_frob_label): Declare.
1858 (tc_frob_label): Define.
1859 (sh_flush_pending_output): Declare.
1860 (md_flush_pending_output): Define.
1861 * config/tc-sh.c (md_assemble): If relaxing, emit a R_SH_CODE
1862 reloc before the instruction if necessary.
1863 (sh_frob_label): New function.
1864 (sh_flush_pending_output): New function.
1865 (sh_coff_frob_file): Ignore ALIGN, CODE, DATA, and LABEL relocs
1866 when looking for the reloc for the target of .uses.
1867 (md_convert_frag): Fix printf format (%0xlx to 0x%lx).
1868 (sh_force_relocation): Force CODE, DATA, and LABEL relocs to be
1870 (md_apply_fix): Ignore CODE, DATA, and LABEL relocs.
1871 (sh_coff_reloc_mangle): Force CODE, DATA, and LABEL relocs to use
1872 the absolute symbol.
1874 * subsegs.h (segment_info_type): Add tc_segment_info_data field if
1875 TC_SEGMENT_INFO_TYPE is defined.
1877 Wed May 15 12:23:53 1996 Ian Lance Taylor <ian@cygnus.com>
1879 * config/tc-i386.c (md_assemble): Make sure the opcode suffix
1880 matches the register size.
1882 Wed May 15 08:33:37 1996 Jeffrey A Law (law@cygnus.com)
1884 * config/obj-coff.c (count_entries_in_chain): Ignore Fixups with
1886 (do_relocs_for): Likewise.
1887 (fixup_segment): Don't just quit if linkrelax is set. Try to
1888 apply non pc-relative sym1-sym2 fixups, even if linkrelax is
1891 Fri May 10 14:16:59 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1893 * config/tc-ppc.c (ppc_elf_validate_fix): Allow GOT and section
1894 relative relocations with -mrelocatable. Also allow unfixed
1895 relocs in .ex_shared.
1897 Tue May 7 11:24:10 1996 Ian Lance Taylor <ian@cygnus.com>
1899 * config/obj-coff.c (yank_symbols): Check that FNAME_OFFSET is
1900 non-zero before assuming this is a long file name.
1901 (w_strings): Likewise.
1902 (c_dot_file_symbol): Set FNAME_OFFSET to 1 for a long file name.
1904 * config/obj-coff.c (w_strings): Move declaration of i inside
1905 #ifdef block which uses it.
1907 Tue May 7 00:49:58 1996 Jeffrey A Law (law@cygnus.com)
1909 * config/tc-h8300.c (do_a_fix_imm): Rename last argument to
1910 "relaxmode". Output relocs which identify various relaxing
1911 possibilities for mov.[bwl] instructions.
1912 (build_bytes): Pass in a relaxing mode to do_a_fix_imm.
1914 Mon May 6 15:26:28 1996 Doug Evans <dje@canuck.cygnus.com>
1916 * config/tc-arm.h (TC_HANDLES_FX_DONE): Define.
1917 (MD_APPLY_FIX3): Define.
1918 * config/tc-arm.c (my_get_expression): Only watch for bad segments
1920 (md_apply_fix3): Renamed from md_apply_fix.
1921 If pcrel reloc and symbol is in different section, undo effects
1924 Sat May 4 12:49:35 1996 Jeffrey A Law (law@cygnus.com)
1926 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust
1927 any reloc with an LR% or RR% field selector for SOM.
1929 Sat May 4 11:26:19 1996 Ian Lance Taylor <ian@cygnus.com>
1931 * Makefile.in: Add subsegs.h to appropriate TARG_CPU_DEP_*
1934 Fri May 3 17:58:31 1996 Ian Lance Taylor <ian@cygnus.com>
1936 * config/obj-coff.c (coff_frob_symbol): Don't merge a symbol with
1938 (yank_symbols): Likewise.
1940 Wed May 1 13:38:17 1996 Ian Lance Taylor <ian@cygnus.com>
1942 * subsegs.h (segment_info_type): If MANY_SEGMENTS and not
1943 BFD_ASSEMBLER, add name field.
1944 * config/obj-coff.c: Include "libiberty.h".
1945 (coff_header_append): Handle long section names.
1946 (crawl_symbols): Just use the name field for the symbol name,
1947 without worrying about null byte termination.
1948 (w_strings): Handle long section names.
1949 (write_object_file): Likewise. Also, use the name field, rather
1951 (obj_coff_add_segment): Permit long section names.
1952 (obj_coff_init_stab_section): Use the name field, rather than
1954 (adjust_stab_section): Likewise.
1955 * config/te-pe.h (COFF_LONG_SECTION_NAMES): Define.
1957 * config/tc-i960.c (brtab_emit): Don't set fx_im_disp field.
1958 (mem_fmt): Likewise.
1959 (md_apply_fix): Don't check fx_im_disp field.
1961 Thu Apr 25 11:39:51 1996 Ian Lance Taylor <ian@cygnus.com>
1963 * configure.in: Add * after sparc*-*-vxworks.
1964 * configure: Rebuild.
1966 * app.c (do_scrub_begin): If tc_comment_chars is not defined,
1967 define it to comment_chars. Use tc_comment_chars rather than
1969 (do_scrub_chars): Use tc_comment_chars rather than comment_chars.
1970 * config/tc-m68k.h (tc_comment_chars): Define.
1971 (m68k_comment_chars): Declare.
1972 * config/tc-m68k.c (m68k_comment_chars): Rename from
1973 comment_chars. Change into a pointer rather than an array.
1974 (md_longopts): Add "bitwise-or".
1975 (md_parse_option): Handle OPTION_BITWISE_OR.
1976 (md_show_usage): Mention --bitwise-or.
1977 * doc/c-m68k.texi: Document --bitwise-or.
1979 Wed Apr 24 11:28:38 1996 Ian Lance Taylor <ian@cygnus.com>
1981 * config/tc-m68k.c (m68k_ip): Prevent attempts to use long offsets
1984 * config/obj-coff.c (obj_coff_section): BFD_ASSEMBLER version:
1985 call demand_empty_rest_of_line. Non BFD_ASSEMBLER version:
1986 correct handling of input line pointer, and call
1987 demand_empty_rest_of_line.
1989 Mon Apr 22 18:02:37 1996 Doug Evans <dje@blues.cygnus.com>
1991 * config/tc-sparc.c (in_bitfield_range): New static function.
1992 (sparc_ip): New cases X,Y. Use SPARC_OPCODE_ARCH_V9_P.
1993 (md_apply_fix, cases BFD_RELOC_32_PCREL_S2,
1994 BFD_RELOC_SPARC_{WDISP16,WDISP19}): Fix undefined code.
1995 (md_apply_fix): New cases BFD_RELOC_SPARC_[56].
1996 (tc_gen_reloc): New cases BFD_RELOC_SPARC_[56].
1998 Thu Apr 18 18:58:33 1996 Ian Lance Taylor <ian@cygnus.com>
2000 * config/obj-coff.c: BFD_ASSEMBLER:
2001 (coff_last_bf): New static variable.
2002 (coff_frob_symbol): Set endndx of a .bf symbol.
2004 (obj_coff_endef): Call SF_SET_PROCESS on a .bf symbol.
2005 (last_bfP): New static variable.
2006 (yank_symbols): Set endndx of a .bf symbol.
2008 Thu Apr 18 11:53:58 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2010 * config/tc-ppc.c (md_parse_option): Add support for Solaris's -le
2011 and -s options. Add -be for good measure.
2013 Wed Apr 17 12:31:01 1996 Ian Lance Taylor <ian@cygnus.com>
2015 * read.c (s_space): Support non-constant fill value. Handle fill
2016 value correctly for a size other than 1.
2018 Tue Apr 16 15:17:40 1996 Doug Evans <dje@canuck.cygnus.com>
2020 * config/tc-arm.c (my_get_float_expression): Update call to
2021 gen_to_words, X_PRECISION changed from 6 to 5.
2023 Tue Apr 16 10:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2025 * config/tc-ppc.c (register_name,reg_name_search): Move register
2026 name lookup from PE specific code to all targets. Add support for
2027 -mregnames/-mno-regnames to control whether register names are
2029 (md_assemble): Call register_name for all platforms.
2030 (md_parse_option): Add support for -mregnames/-mno-regnames.
2032 * configure.in (powerpcle*-*-solaris): Add support.
2033 (powerpc*-*-linux): Ditto.
2034 * configure: Regenerate.
2036 * config/ppc-sol.mt: New config file for PowerPC Solaris.
2038 Mon Apr 15 12:26:33 1996 Ian Lance Taylor <ian@cygnus.com>
2040 * config/tc-mips.c (mips_frob_file): Permit multiple %hi relocs to
2041 be associated with a single %lo reloc.
2043 * config/tc-mips.c (load_address): Cast X_add_number to valueT
2044 before comparing against MAX_GPREL_OFFSET, so that negative
2045 numbers are handled correctly.
2048 Thu Apr 11 12:39:02 1996 Ian Lance Taylor <ian@cygnus.com>
2050 * config/tc-sparc.c (last_insn): New static variable.
2051 (md_assemble): Warn about putting floating point branches in a
2052 delay slot. If architecture is less than v9, insert NOP
2053 instructions between floating point instructions and floating
2054 point branches. (The SunOS assembler does both these operations.)
2055 Save the last instruction opcode.
2056 (sparc_ip): Add pinsn parameter. Change caller.
2058 * config/tc-m68k.c (md_estimate_size_before_relax): Correct check
2059 for byte jump to next instruction to skip empty frags.
2061 Wed Apr 10 16:48:12 1996 Ian Lance Taylor <ian@cygnus.com>
2063 * config/tc-alpha.c (alpha_ip): If we are going to call emit_add64
2064 for addq with a 16 bit signed value, just emit a lda instruction
2067 Wed Apr 10 14:34:49 1996 Jeffrey A Law (law@cygnus.com)
2069 * config/tc-h8300.c (do_a_fix_imm): Don't cut off high bits
2072 Mon Apr 8 14:42:53 1996 Ian Lance Taylor <ian@cygnus.com>
2074 * configure.in: Permit --enable-shared to specify a list of
2076 * configure: Rebuild.
2078 Fri Apr 5 17:01:35 1996 Jeffrey A Law (law@cygnus.com)
2080 * config/tc-h8300.c (get_specific): Remove some #if 0 code.
2081 (build_bytes): Remove all ABSMOV related code; it's unnecessary.
2083 Fri Apr 5 15:13:10 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2085 * config/atof-ieee.c: Fix handling of denormalized extended
2086 precision numbers and overflow/underflow detection.
2087 (MAX_PRECISION, X_PRECISION, P_PRECISION): Changed from 6 to 5, to
2088 not include the 16 bit gap in the m68k extended precision format.
2090 Fri Apr 5 14:29:23 1996 Ian Lance Taylor <ian@cygnus.com>
2092 * configure.in: Add i386-*-freebsdelf* target; from John Polstra
2094 * configure: Rebuild.
2096 Fri Apr 5 18:39:28 1996 James G. Smith <jsmith@cygnus.co.uk>
2098 * config/tc-mips.c: Allow non-zero offsets from .sdata symbols to
2099 be accessed using the $gp register.
2100 * config/tc-mips.h (MAX_GPREL_OFFSET): Added.
2102 Wed Apr 3 10:56:14 1996 Doug Evans <dje@canuck.cygnus.com>
2104 * config/tc-sparc.c (sparc_md_end): Set bfd machine number to
2105 bfd_mach_sparc_sparclet if current_architecture is sparclet.
2107 Mon Apr 1 16:55:44 1996 Ian Lance Taylor <ian@cygnus.com>
2109 * read.c (get_line_sb): Bump line counters based on
2110 input_line_pointer[-1], not *input_line_pointer. Don't bother to
2111 call LISTING_NEWLINE.
2112 (s_macro): Don't call demand_empty_rest_of_line.
2113 * app.c (do_scrub_chars): When handling C style comments, unget
2116 Fri Mar 29 16:15:06 1996 Ian Lance Taylor <ian@cygnus.com>
2118 * read.h (enum linkonce_type): Define.
2119 (s_linkonce): Declare.
2120 * read.c (potable): Add "linkonce".
2121 (s_linkonce): New function.
2122 * subsegs.h (segment_info_type): Add linkonce field to
2123 MANY_SEGMENTS && ! BFD_ASSEMBLER section.
2124 * config/obj-coff.h (obj_handle_link_once): Define if TE_PE.
2125 (obj_coff_pe_handle_link_once): Declare if TE_PE.
2126 * config/obj-coff.c: If TE_PE and not BFD_ASSEMBLER, #include
2128 (obj_coff_pe_handle_link_once): New function, defined if TE_PE.
2129 (c_section_symbol): If TE_PE, set the x_comdat field in the aux
2130 entry based on the linkonce field in segment_info.
2131 * doc/as.texinfo: Document .linkonce.
2133 Fri Mar 29 11:31:27 1996 J.T. Conklin (jtc@lisa.cygnus.com)
2135 * doc/as.1: Changed to be recognized by catman -w on Solaris.
2137 Thu Mar 28 15:27:47 1996 Ian Lance Taylor <ian@cygnus.com>
2139 * stabs.c (s_stab_generic): Call the listing functions before
2140 doing the rest of the processing, which may involve freeing the
2141 string. Pass string, not string + stroff, to OBJ_PROCESS_STAB in
2142 SEPARATE_STAB_SECTIONS case.
2144 * config/tc-hppa.c: Remove nested comment.
2145 (tc_gen_reloc): Move label done inside the ifdef in which it is
2147 (md_apply_fix): Pass pointers to correct types to libhppa.h
2148 functions. Always return a value.
2150 * config/tc-mips.h (tc_frob_file): Define.
2151 (mips_frob_file): Declare.
2152 * config/tc-mips.c (struct mips_hi_fixup): Define.
2153 (mips_hi_fixup_list): New static variable.
2154 (imm_unmatched_hi): New static variable.
2155 (md_assemble): Clear imm_reloc, imm_unmatched_hi, and
2156 offset_reloc. Pass imm_unmatched_hi to append_insn.
2157 (append_insn): Add unmatched_hi parameter. If it is set, add the
2158 new fixup to mips_hi_fixup_list. Change all callers.
2159 (mips_ip): Set imm_unmatched_hi when appropriate.
2160 (mips_frob_file): New function.
2162 Thu Mar 28 11:47:59 1996 Doug Evans <dje@canuck.cygnus.com>
2164 * configure.in (sparc-*-solaris2*): Renamed from sparc*-*-solaris2*.
2165 * configure: Regenerated.
2167 Tue Mar 26 18:19:12 1996 Ian Lance Taylor <ian@cygnus.com>
2169 * as.c (main): Call bfd_set_error_program_name.
2171 Fri Mar 22 11:13:00 1996 Ian Lance Taylor <ian@cygnus.com>
2173 * as.h (strdup): Don't declare.
2174 * stabs.c: Include libiberty.h
2175 (get_stab_string_offset): Use xstrdup rather than strdup.
2176 (s_stab_generic): Likewise.
2177 * as.c (parse_args): Likewise.
2178 * read.c (s_mri_sect): Likewise.
2180 * gasp.c (change_base): Recognize \(...) construct documented to
2181 pass through enclosed characters literally through to the output.
2182 (process_assigns): Likewise. Also, be more careful to avoid
2183 looking past the end of the buffer.
2185 Thu Mar 21 13:18:43 1996 Ian Lance Taylor <ian@cygnus.com>
2187 * config/tc-i386.c (md_parse_option): If OBJ_ELF, ignore -k for
2188 FreeBSD compatibility. From John Polstra <jdp@polstra.com>.
2190 Wed Mar 20 18:13:32 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2192 * doc/as.texinfo, doc/c-i960.texi: Fix typos.
2194 Wed Mar 20 17:05:16 1996 David Mosberger-Tang <davidm@azstarnet.com>
2196 * config/alpha-opcode.h: Added cvtst instruction.
2198 Mon Mar 18 13:12:46 1996 Ian Lance Taylor <ian@cygnus.com>
2200 * ecoff.c (ecoff_stab): Don't try to make a symbol out of the stab
2201 string. Extract the addend from the result of expression.
2203 Fri Mar 15 17:10:43 1996 Ian Lance Taylor <ian@cygnus.com>
2205 * app.c (do_scrub_chars): If whitespace is seen in state 11, and
2206 LABELS_WITHOUT_COLONS is not defined, and we are not in m68k MRI
2207 mode, change the state to 3 rather than 1.
2209 Thu Mar 14 18:18:25 1996 Ian Lance Taylor <ian@cygnus.com>
2211 * config/obj-coff.h (C_REGISTER_SECTION): Change from 20 to 50, to
2212 correspond to 11 March change.
2214 Thu Mar 14 15:27:10 1996 Jeffrey A Law (law@cygnus.com)
2216 * config/tc-h8300.c (build_bytes, MEMIND case): Generate
2217 an R_MEM_INDIRECT reloc rather than R_RELBYTE.
2219 Tue Mar 12 12:21:10 1996 Ian Lance Taylor <ian@cygnus.com>
2221 * configure: Rebuild with autoconf 2.8.
2223 Mon Mar 11 18:57:12 1996 Ian Lance Taylor <ian@cygnus.com>
2225 * config/atof-ieee.c (gen_to_words): Improve handling of
2226 X_PRECISION numbers. Based on patches from Andreas Schwab
2227 <schwab@issan.informatik.uni-dortmund.de>.
2229 Mon Mar 11 09:59:53 1996 Steve Chamberlain <sac@slash.cygnus.com>
2231 * as.h (SEG_NORMAL, SEG_LIST): Bump segment limit from 10 to 40.
2233 * subsegs.c (MANY_SEGMENTS): Increase segment limit.
2234 * obj-coff.c (seg_N_TYPE, seg_info_off_by_4): Likewise.
2235 (do_relocs_for, w_symbols, obj_coff_add_segment, do_linenos_for,
2236 crawl_symbols, coff_header_append): Loop to SEG_LAST rather than
2239 Thu Mar 7 15:17:39 1996 Doug Evans <dje@charmed.cygnus.com>
2241 * config/tc-sparc.c (sparc_ip): Handle operand char 'O' (neg reg).
2243 Thu Mar 7 09:19:15 1996 Jeffrey A Law (law@cygnus.com)
2245 * config/tc-hppa.c (SUBSEG_MILLI): Define.
2246 (pa_def_subspaces): Add $MILLICODE$.
2247 (pa_spaces_begin): Set section flags for $MILLICODE$.
2249 Wed Mar 6 14:11:30 1996 Ian Lance Taylor <ian@cygnus.com>
2251 * config/obj-elf.c (obj_elf_section): Only SEC_LOAD if the type is
2252 not SHT_NOBITS. Don't tamper with flags based on type if a
2253 special section was found (revert Feb 29 change).
2255 * config/tc-sh.c (sh_do_align): Only align using the nop pattern
2256 if aligning to a longword boundary or greater.
2258 Tue Mar 5 15:10:43 1996 Jim Wilson <wilson@chestnut.cygnus.com>
2260 * config/tc-sh.c (sh_do_align): Pass 1 not 2 to frag_align.
2262 Mon Mar 4 20:50:57 1996 Steve Chamberlain <sac@slash.cygnus.com>
2264 * configure.in (i386-*-cygwin32): Don't use bfd_gas.
2265 * configure: Regenerated.
2267 Mon Mar 4 10:13:06 1996 Jeffrey A Law (law@cygnus.com)
2269 * config/tc-hppa.c: Add default definitions for R_N0SEL and
2270 R_N1SEL since they're not defined for old versions of hpux.
2272 * config/tc-hppa.c (tc_gen_reloc): Fix typo in R_COMP2 code.
2273 Set "sym_ptr_ptr" and "addend" fields to dummy values for
2274 R_N0SEL and R_N1SEL.
2276 Fri Mar 1 10:20:52 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2278 * flonum-konst.c: Add two more constants for 1e+-2048 and
2279 1e+-4096, and correct the other constants.
2281 * symbols.c (resolve_symbol_value): Handle O_logical_not.
2283 Thu Feb 29 13:58:35 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2285 * config/obj-elf.c (obj_elf_section): Allow predefined section
2286 types to set the nobits type. Avoid a shadowed declaration.
2288 Wed Feb 28 15:38:56 1996 Jeffrey A Law (law@cygnus.com)
2290 * config/tc-hppa.c (hppa_fix_adjustable): For SOM, don't
2291 reduce relocs using e_nlrsel field selectors.
2293 * write.c (fix_new_exp): Don't use #elif. Some compilers
2296 * config/tc-hppa.c (selector_table): Add "n", "nl", and "nlr" to
2298 (pa_chk_field_selector): Handle new field selectors for SOM.
2300 Tue Feb 27 14:42:27 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2302 * configure.in (m68k-*-linux*aout*, m68k-*-linux*): New targets.
2303 * configure: Rebuild.
2304 * config/te-linux.h (LOCAL_LABELS_FB): Define.
2305 * config/tc-m68k.h (TARGET_FORMAT) [TE_LINUX]: Define to
2307 * config/tc-m68k.c (comment_chars): Don't include '#' if TE_LINUX
2310 Mon Feb 26 18:58:58 1996 Stan Shebs <shebs@andros.cygnus.com>
2312 * mpw-make.sed: Update to handle shared library support.
2314 Mon Feb 26 10:34:10 1996 Doug Evans <dje@charmed.cygnus.com>
2316 * config/tc-sparc.c (sparc_ip): Print all architectures that support
2317 the insn on mismatch.
2319 Fri Feb 23 21:44:39 1996 Rob Savoye <rob@chinadoll.cygnus.com>
2321 * configure.in: Add support for a29-coff.
2322 * configure: Rebuild.
2324 Thu Feb 22 16:39:43 1996 Ian Lance Taylor <ian@cygnus.com>
2326 * config/tc-sh.c (sh_coff_frob_file): Don't consider the address
2327 of the section when looking for the R_SH_USES fixup, because the
2328 frag addresses have not yet been adjusted.
2330 * gdbinit.in: Set a breakpoint on as_warn_where.
2332 * config/tc-mips.c (macro): Add missing arguments to macro_build
2333 omitted in last change. From Jim Wilson <wilson@cygnus.com>.
2335 Wed Feb 21 17:00:32 1996 Ian Lance Taylor <ian@cygnus.com>
2337 * config/tc-h8300.c (tc_reloc_mangle): Change reloc based on size
2338 if it is TC_CONS_RELOC. Set a size of 4 to R_RELLONG.
2340 Wed Feb 21 09:25:39 1996 Doug Evans <dje@charmed.cygnus.com>
2342 * config/tc-sparc.c (sparc_ip): Recognize %asr0 for v8.
2344 Tue Feb 20 21:48:03 1996 Doug Evans <dje@charmed.cygnus.com>
2346 * config/tc-sparc.c (parse_keyword_arg): Accept leading '%'.
2347 (sparc_ip): Accept %asr[1..31] for v8 and %asr[%16..31] for v9.
2348 Recognize [uU] format args as sparclet cpregs.
2350 Tue Feb 20 22:25:55 1996 Ian Lance Taylor <ian@cygnus.com>
2352 * config/tc-sh.c (sh_handle_align): Don't emit R_SH_ALIGN relocs
2355 Mon Feb 19 14:16:24 1996 Ian Lance Taylor <ian@cygnus.com>
2357 * config/tc-sparc.h (TC_RELOC_RTSYM_LOC_FIXUP): Check S_IS_WEAK as
2358 well as S_IS_EXTERNAL.
2359 (tc_fix_adjustable): Likewise.
2360 * config/tc-sparc.c (md_apply_fix): In OBJ_ELF case, check for
2361 S_IS_WEAK as well as S_IS_EXTERNAL when deciding whether to return
2363 (tc_gen_reloc): Check S_IS_WEAK as wel as S_IS_EXTERNAL when
2364 deciding whether to convert BFD_RELOC_32_PCREL_S2 if PIC.
2366 Mon Feb 19 02:15:57 1996 Doug Evans <dje@charmed.cygnus.com>
2368 * config/tc-sparc.c (max_architecture): Change to sparclite for
2370 (default_compatible): Delete.
2371 (sparc_ffs): New function.
2372 (md_begin): Only call SPARC_OPCODE_CONFLICT_P once.
2373 (sparc_ip): Rewrite architecture match and bump logic.
2375 Sun Feb 18 15:03:50 1996 Ian Lance Taylor <ian@cygnus.com>
2377 * configure.in: Check for 'do not mix' from native linker before
2378 trying to use -rpath.
2379 * configure: Rebuild.
2381 Fri Feb 16 16:53:31 1996 Ian Lance Taylor <ian@cygnus.com>
2383 * config/obj-coff.h (SF_ADJ_LNNOPTR): Define (non BFD_ASSEMBLER).
2384 (SF_GET_ADJ_LNNOPTR): Define (non BFD_ASSEMBLER).
2385 (SF_SET_ADJ_LNNOPTR): Define (non BFD_ASSEMBLER).
2386 * config/obj-coff.c (obj_coff_endef): Set ADJ_LNNOPTR when LNNOPTR
2388 (w_symbols): If ADJ_LNNOPTR is set, add the section lnnoptr field
2389 to the symbol lnnoptr field, to get the correct file offset.
2391 Thu Feb 15 14:48:38 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2393 * config/obj-elf.c (elf_frob_symbol): On the PowerPC, force all
2394 symbols that are not function, file, or section symbols to be
2397 Thu Feb 15 11:20:18 1996 Ian Lance Taylor <ian@cygnus.com>
2399 * configure: Set and substitute RPATH_ENVVAR.
2400 * configure: Rebuild.
2401 * Makefile.in (RPATH_ENVVAR): New variable.
2402 (check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
2404 * configure.in: Accept i686. From H.J. Lu <hjl@zoom.com>: i386
2405 doesn't need opcodes. If configuring shared, opcodes needs bfd.
2406 * configure: Rebuild.
2408 Wed Feb 14 16:33:12 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
2410 * read.c (s_mri_sect): Don't return '\0' in type. Set all
2411 appropriate flags in BFD section.
2413 * configure.in (m68k-*-psos*): New target.
2414 * configure: Rebuild.
2415 * config/te-psos.h: New file.
2416 * config/tc-m68k.c (comment_chars): Don't include '#' if TE_PSOS
2419 Wed Feb 14 13:43:24 1996 Ian Lance Taylor <ian@cygnus.com>
2421 From Alan Modra <alan@spri.levels.unisa.edu.au>:
2422 * configure.in: Remove duplicate setting of cpu_type. Check
2423 whether opcodes library is required for on all targets, not just
2425 * configure: Rebuild.
2427 * config/tc-mips.c (mips_big_got): New static variable.
2428 (s_extern): Don't declare.
2429 (reg_needs_delay): New static function.
2430 (macro_build): Permit GOT/CALL_HI/LO relocs.
2431 (macro_build_lui): If place is not NULL, use the number in the
2433 (load_address): Handle mips_big_got case.
2434 (macro): Handle mips_big_got for M_LA_AB, M_JAL_A, and load and
2436 (OPTION_XGOT): Define.
2437 (md_longopts): Add "xgot" if OBJ_ELF.
2438 (md_parse_option): Handle -xgot.
2439 (md_show_usage): Mention -xgot.
2440 (md_apply_fix): Permit GOT/CALL_HI/LO relocs.
2441 (tc_gen_reloc): Handle GOT/CALL_HI/LO relocs.
2443 Wed Feb 14 11:22:27 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2445 * config/tc-m68k.c (m68k_ip) [operand kind '#']: When fixing
2446 the byte relocation, point it to the low byte of the word.
2448 Tue Feb 13 15:31:18 1996 Ian Lance Taylor <ian@cygnus.com>
2450 * configure.in: Set HDLFLAGS for *-*-hpux with --enable-shared.
2451 * configure: Rebuild.
2453 Mon Feb 12 15:53:46 1996 Doug Evans <dje@charmed.cygnus.com>
2455 * configure.in: Recognize any sparc* cpu.
2456 * configure: Regenerated.
2458 Mon Feb 12 15:41:21 1996 Ian Lance Taylor <ian@cygnus.com>
2460 * read.c (potable): Add "mri" and ".mri".
2461 (s_mri): New function.
2462 * read.h (s_mri): Declare.
2463 * app.c (scrub_m68k_mri): New static variable.
2464 (mri_pseudo): New static variable.
2465 (do_scrub_begin): Add m68k_mri parameter. Use it rather than
2466 flag_m68k_mri. Initialize scrub_m68k_mri.
2467 (mri_state, mri_last_ch): New static variables.
2468 (struct app_save): Add scrub_m68k_mri, mri_state, and mri_last_ch
2470 (app_push): Save new fields.
2471 (app_pop): Restore new fields.
2472 (do_scrub_chars): Check scrub_m68k_mri rather than flag_mri_mri.
2473 If TC_M68K, use a trivial state machine to look for occurrences of
2474 the .mri pseudo-op, and change the mode appropriately.
2475 * as.h (do_scrub_begin): Update prototype.
2476 * input-scrub.c (input_scrub_begin): Pass flag_m68k_mri to
2478 * config/tc-m68k.c (reg_prefix_optional_seen): New static
2480 (m68k_mri_mode_change): New function.
2481 (md_parse_option): Set reg_prefix_optional_seen.
2482 * config/tc-m68k.h (m68k_mri_mode_change): Declare.
2483 (MRI_MODE_CHANGE): Define.
2484 * doc/as.texinfo: Document .mri pseudo-op.
2486 * app.c (do_scrub_chars): In MRI mode, don't treat '#' as a
2489 Mon Feb 12 15:16:29 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2491 Support for OBJ_ELF on m68k, mostly inside #ifdef OBJ_ELF:
2492 * config/m68k-parse.h (enum pic_relocation): Define.
2493 (struct m68k_exp): Add pic_reloc field.
2494 * config/tc-m68k.h (TC_RELOC_RTSYM_LOC_FIXUP): Define.
2495 (tc_fix_adjustable): Define to call tc_m68k_fix_adjustable.
2496 (NO_RELOC): Define to BFD_RELOC_NONE if BFD_ASSEMBLER, to zero
2498 * config/tc-m68k.c: Delete definition of NO_RELOC.
2499 (struct m68k_it): Add pic_reloc field.
2500 (add_fix): Copy over pic_reloc field.
2501 (md_pseudo_table): Interpret .align parameter as byte count.
2502 (mote_pseudo_table): Likewise.
2503 (tc_m68k_fix_adjustable): New function.
2504 (get_reloc_code): New function.
2505 (md_assemble): Use it as last argument to fix_new_exp.
2506 (md_apply_fix_2): For a relocation against a symbol don't put the
2507 addend into the data.
2508 (tc_gen_reloc): Different addend computation for OBJ_ELF.
2509 (m68k_ip): Don't relax an operand that requires pic relocation.
2510 (md_begin): Align .text, .data and .bss on 4 byte boundary by
2512 * write.c (fixup_segment): Don't add symbol value to addend if
2513 TC_M68K and OBJ_ELF.
2514 * config/m68k-parse.y (yylex): Handle @PLTPC, etc.
2515 (motorola_operand): Add rule for `(zapc, EXPR)'.
2517 Mon Feb 12 10:07:33 1996 David Mosberger-Tang <davidm@azstarnet.com>
2519 * ecoff.c (ecoff_directive_weakext): Fixed so that whitespace
2520 *really* is permissible before the comma.
2522 Mon Feb 12 00:12:13 1996 Ian Lance Taylor <ian@cygnus.com>
2524 * config/tc-sh.c (sh_do_align): Align to a 2 byte boundary before
2525 inserting nop instructions.
2527 Fri Feb 9 10:54:19 1996 Ian Lance Taylor <ian@cygnus.com>
2529 * config/te-aux.h: Change include of aux.h to aux-coff.h.
2531 Thu Feb 8 20:02:58 1996 Ian Lance Taylor <ian@cygnus.com>
2533 * config/tc-i960.c (tc_coff_symbol_emit_hook): Correct storage
2534 class setting for a CALLNAME symbol in COFF.
2536 * read.c (potable): Pass negative numbers for new .balign[wl] and
2537 .p2align[wl] pseudo-ops.
2538 (s_align_bytes): Treat a negative argument as specifying the fill
2540 (s_align_ptwo): Likewise.
2542 Wed Feb 7 14:12:03 1996 Ian Lance Taylor <ian@cygnus.com>
2544 * read.c (potable): Add balignw, balignl, p2alignw, and p2alignl.
2545 (do_align): Take new len parameter. Change all callers. Pass it
2547 (s_align_bytes): Arg now indicates the length of the fill pattern.
2548 (s_align_ptwo): Likewise.
2549 * config/obj-coff.c (write_object_file): Pass length to
2551 * config/tc-i386.h (md_do_align): Take new len parameter.
2552 * config/tc-m88k.h (md_do_align): Likewise.
2553 * config/tc-m88k.c (m88k_do_align): Likewise.
2554 * config/tc-sh.h (md_do_align): Likewise.
2555 * config/tc-sh.c (sh_do_align): Likewise.
2556 * doc/as.texinfo: Document new pseudo-ops.
2558 * config/obj-coff.c (fixup_mdeps): Divide offset by fr_var, as is
2559 done in cvt_frag_to_fill.
2561 * config/tc-sh.h (sh_do_align): Declare.
2562 (md_do_align): Define.
2563 * config/tc-sh.c (sh_do_align): New function.
2565 * ecoff.c (ecoff_build_lineno): Don't try to store the address
2566 difference if the next address is before the current one.
2568 * config/tc-m68k.c (struct m68k_cpu): Add alias field.
2569 (archs): Initialize new field.
2570 (m68k_ip): Don't list alias names when listing CPUs which support
2573 * as.c (main): Call parse_args before read_begin.
2574 * app.c (do_scrub_chars): If flag_m68k_mri, don't put a dot in
2575 front of generated pseudo-ops.
2576 * read.c (potable): Ignore "name".
2577 (s_app_file): Permit a single quote after the string, since one
2578 may appear in m68k MRI mode.
2580 * configure.in: Check for --enable-shared. If linking against
2581 shared BFD and opcodes, fix library name on SunOS, and try to set
2583 * configure: Rebuild.
2585 Tue Feb 6 15:16:17 1996 Ian Lance Taylor <ian@cygnus.com>
2587 * as.h (flag_m68k_mri): Declare.
2588 * as.c (parse_args): If TC_M68K, set flag_m68k_mri for -M.
2589 * Many files: For MRI syntax that is specific to the m68k MRI
2590 assembler, check flag_m68k_mri rather than flag_mri or
2591 MRI_MODE_NEEDS_PSEUDO_DOT.
2593 Mon Feb 5 16:29:11 1996 Ian Lance Taylor <ian@cygnus.com>
2595 * config/tc-i960.c (ARCH_HX): Define.
2597 (targ_has_sfr): Handle ARCH_HX.
2598 (targ_has_iclass): Handle ARCH_HX.
2599 (tc_coff_fix2rtype): Add return 0 to avoid warning.
2600 (tc_headers_hook): If the architecture was specified explicitly,
2601 use it when setting the flags. Set the extern variable coff_flags
2602 rather than headers->filehdr.f_flags, since the latter is set
2603 unconditionally in obj-coff.c.
2604 (i960_handle_align): Remove unused variable fixp.
2606 Support for building bfd and opcodes as shared libraries, based on
2607 patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
2608 * configure.in: Set OPCODES and BFD to search directories.
2609 Substitute OPCODES_DEP and BFDDEP. On SunOS, set HLDFLAGS.
2610 * configure: Rebuild.
2611 * Makefile.in (LDFLAGS, HLDFLAGS): New variables.
2612 (LIBDEPS): New variable.
2613 (as.new0: Depend upon $(LIBDEPS) rather than $(LIBS). Use
2614 $(HLDFLAGS) in link.
2615 (check): Set LD_LIBRARY_PATH in the environment.
2617 Fri Feb 2 17:41:53 1996 Michael Meissner <meissner@wogglebug.tiac.net>
2619 * config/tc-ppc.h (ELF_TC_SPECIAL_SECTIONS): Make .sdata2, .sbss2,
2620 .PPC.EMB.sdata0, and .PPC.EMB.sbss0 sections all default to
2621 read-only, not read/write.
2623 Fri Feb 2 14:09:25 1996 Alan Modra <alan@spri.levels.unisa.edu.au>
2625 * Makefile.in (INSTALL_XFORM): Remove -e.
2627 Fri Feb 2 12:32:15 1996 Ian Lance Taylor <ian@cygnus.com>
2629 * write.c (write_relocs): Use S_IS_DEFINED and S_IS_COMMON rather
2630 than comparing S_GET_SEGMENT to undefined_section.
2631 (write_object_file): Skip symbols which were equated to an
2632 undefined or common symbol.
2633 * symbols.c (resolve_symbol_value): Use S_IS_DEFINED and
2634 S_IS_COMMON rather than comparing S_GET_SEGMENT to
2636 (S_GET_VALUE): Likewise. Avoid recursion problems if S_IS_DEFINED
2637 or S_IS_COMMON call S_GET_VALUE.
2638 * config/obj-aout.h (S_IS_COMMON): Define if not BFD_ASSEMBLER.
2639 * config/obj-aout.c (obj_emit_relocations): If a reloc is equated
2640 to an undefined or common symbol, convert the reloc to be against
2642 (obj_crawl_symbol_chain): Skip symbols which were equated to an
2643 undefined or common symbol.
2644 * config/obj-bout.h (S_IS_COMMON): Define if not BFD_ASSEMBLER.
2645 * config/obj-bout.c (obj_emit_relocations): If a reloc is equated
2646 to an undefined or common symbol, convert the reloc to be against
2648 (obj_crawl_symbol_chain): Skip symbols which were equated to an
2649 undefined or common symbol.
2650 * config/obj-coff.c (do_relocs_for): Use S_IS_DEFINED and
2651 S_IS_COMMON rather than comparing S_GET_SEGMENT to
2653 (yank_symbols): Skip symbols which were equated to an undefined or
2656 Thu Feb 1 15:34:32 1996 Ian Lance Taylor <ian@cygnus.com>
2658 * config/obj-aout.h (S_IS_LOCAL): Check for \002 as well as \001.
2659 * config/obj-bout.h (S_IS_LOCAL): Likewise.
2661 * configure.in: Make sure we only add m68k-parse.o to
2662 ${extra_objects} once, no matter how many m68k targets have been
2664 * configure: Rebuild.
2666 Wed Jan 31 18:31:46 1996 Steve Chamberlain <sac@slash.cygnus.com>
2668 * configure.in (i386-*-cygwin32, ppc-*-cygwin32): New.
2669 * configure: Rebuild.
2671 Wed Jan 31 14:03:17 1996 Richard Henderson <rth@tamu.edu>
2673 * config/tc-m68k.c (md_pseudo_table): Add "extend" and "ldouble".
2674 * doc/c-m68k.texi: Document .extend and .ldouble.
2676 * configure.in (m68*-apple-aux*): New target.
2677 * config/te-aux.h: New file.
2678 * config/obj-coff.c (compare_external_relocs): New static function
2680 (do_relocs_for): Sort relocs if TE_AUX.
2681 (fixup_segment): If TE_AUX, store common symbol value in segment.
2682 * config/tc-m68k.h (TARGET_FORMAT): Define if TE_AUX.
2684 Wed Jan 31 12:24:58 1996 Ian Lance Taylor <ian@cygnus.com>
2686 * config/obj-coff.h (S_IS_LOCAL): Check for \002 as well as \001.
2688 * config/tc-mips.c (s_mips_globl): Set BSF_OBJECT if it is not
2690 (s_cpload): Set BSF_OBJECT for _gp_disp symbol.
2691 * read.c (s_lcomm): If S_SET_SIZE is defined, set the size of the
2693 * ecoff.c (add_procedure): Set the BSF_FUNCTION flag.
2694 (ecoff_build_symbols): If S_SET_SIZE is defined, set the size of
2695 an undefined symbol and the size of a function symbol.
2696 * config/obj-elf.c (elf_frob_symbol): If TC_MIPS, set BSF_OBJECT
2697 for all common symbols.
2699 Tue Jan 30 12:35:24 1996 Ken Raeburn <raeburn@cygnus.com>
2701 * config/tc-i960.c (parse_memop): In MRI mode, don't use implicit
2704 * expr.c (operand): Accept 0x hex constants in MRI mode if not on
2707 Mon Jan 29 12:21:30 1996 Ian Lance Taylor <ian@cygnus.com>
2709 * config/obj-elf.c (obj_elf_type): Set BSF_OBJECT flag for a type
2710 of object. From Ronald F. Guilmette <rfg@monkeys.com>.
2712 * ecoff.c (localsym_t): Add addend field.
2713 (add_ecoff_symbol): Add addend argument. Change all callers.
2714 (coff_sym_value): Make static.
2715 (coff_sym_addend): New static variable.
2716 (ecoff_directive_def): Initialize coff_sym_addend.
2717 (ecoff_directive_val): Accept symbol + constant.
2718 (ecoff_directive_endef): Pass coff_sym_addend to add_ecoff_symbol.
2719 (ecoff_build_symbols): Include the addend in the symbol value.
2721 Fri Jan 26 19:28:52 1996 Kim Knuttila <krk@cygnus.com>
2723 * config/tc-ppc.c (md_assemble): Ignore overflow on
2724 BFD_RELOC_16_GOTOFF and BFD_RELOC_PPC_TOC16.
2726 Fri Jan 26 16:14:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2728 * config/tc-ppc.c (md_apply_fix3): SDA21 relocations are now 4
2729 bytes in size, so offset appropriately in big endian mode when
2730 writing the bottom 2 bytes.
2732 Thu Jan 25 20:26:23 1996 Doug Evans <dje@charmed.cygnus.com>
2734 * config/tc-sparc.c (default_compatible): New static local.
2735 (md_begin): Initialize it. Rewrite warn_on_bump handling.
2736 (sparc_ip): If no architecture or -bump specified, don't mark as
2737 mismatched those in default_compatible.
2739 Thu Jan 25 12:21:53 1996 Ian Lance Taylor <ian@cygnus.com>
2741 SCO ELF support from Robert Lipe <robertl@arnet.com>:
2742 * configure.in (i386-*-sco*elf*): Use fmt elf, targ sco5.
2743 * configure: Rebuild.
2744 * config/sco5.mt: New file; set TDEFINES to -DSCO_ELF.
2745 * config/tc-i386.c (sco_id): New function, if SCO_ELF.
2746 * config/tc-i386.h (tc_init_after_args): Define if SCO_ELF.
2747 (sco_id): Declare if SCO_ELF.
2749 Thu Jan 25 03:10:53 1996 Doug Evans <dje@charmed.cygnus.com>
2751 * config/tc-sparc.c (initial_architecture,can_bump_v9_p): Deleted.
2752 ({max,warn_after}_architecture): New static locals.
2753 (md_begin): Replace NUMOPCODES with sparc_num_opcodes.
2754 If both architecture and -bump requested, set max_architecture to max.
2755 (sparc_md_end): Simplify.
2756 (sparc_ip): Replace references to can_bump_v9_p with max_architecture.
2757 Rewrite code to bump architecture and check for conflicts.
2758 (md_longopts): Recognize -xarch={v8plus,v8plusa} for compatibility
2759 with Solaris assembler.
2760 (md_parse_option): Likewise. Call sparc_opcode_lookup_arch.
2761 (md_show_usage): Update.
2763 Wed Jan 24 22:11:03 1996 Doug Evans <dje@charmed.cygnus.com>
2765 * Makefile.in (RUNTEST): Fix reference to $${srcdir}.
2767 Mon Jan 22 09:21:36 1996 Doug Evans <dje@charmed.cygnus.com>
2769 * config/tc-sparc.h (TARGET_FORMAT): Use #ifdef SPARC_ARCH64 instead of
2770 #ifdef sparcv9 when choosing value.
2773 (sparc_md_end): Declare.
2774 * config/tc-sparc.c (SPARC_V9): Renamed from sparcv9.
2775 (initial_architecture): New static local.
2776 (can_bump_v9_p): Likewise.
2777 (NO_V9): Delete all occurrences.
2778 (sparc_md_end): New function.
2779 (sparc_ip): New local v9_arg_p. Rework fp reg number test.
2780 Don't bump architecture to v9 unless can_bump_v9_p set.
2781 (md_parse_option): -A<arch> passed, set can_bump_v9_p accordingly.
2782 * configure.in (sparc64 target cpu): Don't set obj_format here.
2783 (SPARC_V9): Renamed from sparcv9.
2784 (sparc64-*-elf*): Define SPARC_ARCH64.
2785 * configure: Regenerated.
2786 * acconfig.h (SPARC_V9): Renamed from sparcv9.
2787 (SPARC_ARCH64): Add.
2788 * conf.in: Regenerated.
2789 * config/vmsconf.h: Update.
2791 Mon Jan 22 17:24:47 1996 James G. Smith <jsmith@cygnus.co.uk>
2793 * config/tc-mips.c (load_register): Optimise "dli" loads.
2794 (md_show_usage): add "-mcpu=vr4100" to help text.
2796 Mon Jan 22 11:53:00 1996 Ian Lance Taylor <ian@cygnus.com>
2798 * symbols.c (resolve_symbol_value): If a symbol is equated to an
2799 undefined symbol, preserve the X_op of O_symbol.
2800 (S_GET_VALUE): Fix check to permit this case.
2801 * write.c (write_relocs): If a reloc is against an undefined
2802 symbol equated to another symbol, change the reloc to be against
2804 * config/obj-coff.c (do_relocs_for): Likewise.
2806 * config/tc-ppc.c (ppc_csect): An unnamed csect is storage class
2809 Mon Jan 22 10:59:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2811 * config/obj-elf.c (elf/ppc.h): Include elf/ppc.h if target
2812 computer is PowerPC.
2814 * config/tc-ppc.c (md_apply_fix3): Add more embedded relocations.
2816 * config/tc-ppc.h (ELF_TC_SPECIAL_SECTIONS): Add sections
2817 mentioned in the eabi.
2819 Thu Jan 18 17:58:19 1996 Kim Knuttila <krk@cygnus.com>
2821 * config/tc-ppc.c (ppc_reldata): Changed alignement on reldata_section
2822 * config/tc-ppc.c (ppc_pdata): Changed the alignment on pdata_section
2824 Mon Jan 15 17:43:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2826 * config/tc-ppc.c (mapping): Add more relocation suffixes.
2828 Sun Jan 14 21:29:36 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2830 * config/tc-ppc.c (ppc_elf_validate_fix): Allow .gcc_except_table
2831 as a section it is ok to have unadorned -mrelocatable pointers in.
2833 Sat Jan 13 11:09:08 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2835 * config/tc-ppc.c (ppc_section*): Wrap these functions inside
2838 Fri Jan 12 15:32:07 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2840 * config/obj-elf.c (obj_elf_section): Add hooks so machine
2841 dependent section attributes can be handled.
2843 * config/tc-ppc.h: (md_elf_section_{letter,type,word,flags}): New
2844 macros to add support for exclude section flag and ordered section
2847 * config/tc-ppc.c (ppc_elf_section_{letter,type,word,flags}): New
2848 functions to add support for exclude section flag and ordered
2851 Fri Jan 12 12:04:00 1996 Ian Lance Taylor <ian@cygnus.com>
2853 * subsegs.c (section_symbol): Don't try to look up the section
2854 symbol in the hash table. It should be possible to have a symbol
2855 with the same name as a section, but no connection to it.
2857 * read.c (cons_worker): Only call mri_comment_end from flag_mri.
2858 From James Carlson <carlson@xylogics.com>.
2860 * expr.c (operand): Skip whitespace after a close parenthesis.
2861 From James Carlson <carlson@xylogics.com>.
2863 Tue Jan 2 12:43:23 1996 Jim Wilson <wilson@chestnut.cygnus.com>
2865 * config/tc-sh.c (md_apply_fix): Call as_bad_where instead of
2866 as_warn_where for relocation overflow.
2867 (parse_reg): Accept register name only if next character is
2870 Sat Dec 30 23:42:51 1995 Jeffrey A Law (law@cygnus.com)
2872 * ecoff.c (ecoff_stab): Simplify. Correctly handle sym + offset
2873 addresses for static variables.
2875 Thu Dec 21 12:54:32 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2877 * config/tc-ppc.c (mapping): Make @got give a real GOT relocation,
2878 and xgot give the old toc16 relocation.
2879 (md_apply_fix3): Support all GOT relocations.
2881 Wed Dec 20 14:57:17 1995 Ian Lance Taylor <ian@cygnus.com>
2883 * config/tc-mips.c (load_address): Correctly handle a constant in
2884 SVR4_PIC case. From Richard Kenner <kenner@vlsi1.ultra.nyu.edu>.
2886 Fri Dec 15 14:25:07 1995 J.T. Conklin <jtc@rtl.cygnus.com>
2888 * config/tc-sh.c (parse_reg): Recognize SH3 registers.
2889 (get_specific): Handle A_SSR, A_SPC and A_REG_B.
2890 (build_Mbytes): Handle REG_B.
2892 Fri Dec 15 16:07:25 1995 Ian Lance Taylor <ian@cygnus.com>
2894 * ecoff.c (ecoff_build_aux): Use new bfd_big_endian macro.
2896 Fri Dec 15 12:11:48 1995 Raymond Jou <rjou@mexican.cygnus.com>
2898 * mpw-make.sed: If linking, edit ALL_CFLAGS to CFLAGS.
2900 Thu Dec 14 15:09:52 1995 Ian Lance Taylor <ian@cygnus.com>
2902 * config/obj-coff.c (write_object_file): Set the s_align field to
2903 the number of bytes, rather than to the power of 2.
2905 Tue Dec 12 12:19:37 1995 Ian Lance Taylor <ian@cygnus.com>
2907 * Makefile.in (DISTCLEAN_HERE): New variable.
2908 (distclean): Use it.
2909 (maintainer-clean): Depend upon clean-here rather than clean,
2910 distclean, and clean-info. Run make maintainer-clean in doc.
2911 Remove files listed in DISTCLEAN_HERE.
2912 * doc/Makefile.in (maintainer-clean realclean): Split out from
2913 distclean. Depend upon clean-info and distclean.
2915 Mon Dec 11 16:23:51 1995 Stan Shebs <shebs@andros.cygnus.com>
2917 * mac-as.r: Fix copyright and version strings.
2918 (cfrg): Use PROG_NAME instead of literal name.
2920 Mon Dec 11 14:14:08 1995 Ian Lance Taylor <ian@cygnus.com>
2922 * read.c (read_a_source_file): If tc_unrecognized_line is defined,
2924 * config/tc-a29k.h (tc_unrecognized_line): Define.
2925 * config/tc-a29k.c (a29k_unrecognized_line): New function.
2926 (md_operand): Handle a29k style local dollar labels.
2928 Wed Dec 6 17:52:52 1995 Ian Lance Taylor <ian@cygnus.com>
2930 * config/obj-multi.h: If OBJ_MAYBE_ELF, define OBJ_SYMFIELD_TYPE.
2932 Tue Dec 5 13:26:34 1995 Ken Raeburn <raeburn@cygnus.com>
2934 * read.c (s_fill): If md_flush_pending_output is defined, call
2937 Mon Dec 4 15:10:53 1995 Ken Raeburn <raeburn@cygnus.com>
2939 * config/obj-coff.c (size_section, fill_section, fixup_mdeps):
2940 Treat rs_align_code like rs_align.
2942 Sun Dec 3 16:46:54 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
2944 * config/tc-arm.c (cp_address_required_here): Set pre_inc when
2945 converting an absolute address into a PC-relative one.
2947 Fri Dec 1 11:57:56 1995 Stan Shebs <shebs@andros.cygnus.com>
2949 * mpw-config.in: Don't always use te-generic.h for emulation.
2950 (powerpc-apple-macos): Use emulation te-macos.h.
2952 (mips-gm-magic): New configuration.
2954 * mpw-make.sed (install, install-only): Edit in Mac-specific
2957 Fri Dec 1 10:59:25 1995 Ian Lance Taylor <ian@cygnus.com>
2959 * configure.in: Improve message about unsupported ELF targets.
2960 * configure: Rebuild.
2962 * config/tc-m88k.c (m88k_do_align): Correct check for whether fill
2963 pattern is zero. From Manfred Hollstein.
2965 Thu Nov 30 13:25:49 1995 Kim Knuttila <krk@cygnus.com>
2967 * config/tc-ppc.c (ppc_pe_section): To get the alignment right for
2968 the various idata sections, we check the name on the .section pseudo.
2970 Thu Nov 30 11:23:42 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
2972 * config/obj-coff.c (fixup_segment): If TC_M88K is defined, do not
2973 add section's paddr to add_number; compatibility to native as and
2976 Wed Nov 29 23:14:27 1995 Ken Raeburn <raeburn@cygnus.com>
2978 * configure.in: Treat m68k-sysv4 like m68k-elf, not m68k-sysv3.
2980 * hash.c (struct hash_entry): Moved here...
2981 * hash.h (struct hash_entry): ...from here.
2983 * config/obj-elf.c (elf_frob_symbol): Don't free and clear sy_obj
2984 if it's already known to be null.
2986 Wed Nov 29 13:00:20 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2988 * config/tc-ppc.c (md_apply_fix3): Don't adjust the value for 32
2989 bit relocs converted to PC relative relocs. This turned out to
2990 add the offset from the beginning of .text twice.
2992 Tue Nov 28 10:42:36 1995 Ken Raeburn <raeburn@cygnus.com>
2994 * stabs.c (s_stab_generic): In 's' case, free string from
2997 * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): Remove unused field
2999 * config/obj-multi.h (ELF_TARGET_SYMBOL_FIELDS) [OBJ_MAYBE_ELF]:
3002 * subsegs.h (segment_info_type): Make bitfields unsigned.
3004 * expr.h (struct expressionS): Make X_op and X_unsigned bitfields,
3005 and move them together. On most systems this will reduce the
3006 structure size by one word.
3007 (operatorT): Define O_max.
3008 * expr.c (expr_begin): Verify that X_op is wide enough to hold
3011 * read.c (pop_insert): Print error returned by hash table
3014 * as.c (dump_statistics): Split out from main; dump some hash
3015 table stats and target-specific stats.
3016 (start_time): No longer automatic to main.
3017 (main): Set file-level start_time and call dump_statistics at
3018 exit. Exit by calling xexit.
3019 (show_usage): Make --statistics description less specific.
3020 * subsegs.c (subsegs_print_statistics): New function.
3021 * write.c (write_print_statistics): New function.
3022 (n_fixups): New static variable.
3023 (fix_new_internal): Increment it.
3024 * read.c (read_print_statistics): New function.
3025 * read.h (read_print_statistics): Declare.
3026 * symbol.c (symbol_print_statistics): New function.
3027 * symbol.h (symbol_print_statistics): Declare.
3028 * hash.c (hash_print_statistics): New function.
3029 * hash.h (hash_print_statistics): Declare.
3030 * config/tc-i386.c (i386_print_statistics): New function.
3031 * config/tc-i386.h (i386_print_statistics): Declare.
3032 (tc_print_statistics): New macro.
3033 * messages.c (as_fatal, as_assert, as_abort): Use xexit, not
3036 * hash.c (DELETED): Rewrite to use a valid but unique address.
3037 (START_POWER): Reduce to 10.
3038 (enum stat_enum): New enumerator, replacing STAT_* index macros.
3039 Add new values for counting strcmp calls.
3040 (GROW_FACTOR): New macro.
3041 (hash_grow): Use GROW_FACTOR. Rewrite for quick returns instead
3043 (FULL_VALUE): New macro. Use 1/4 of table size instead of 1/2.
3044 (hash_new): Use FULL_VALUE.
3045 (struct hash_control): Definition moved here.
3046 (hash_code): Don't mask to low bits.
3047 (hash_ask): Mask returned hash code here. Check hash value before
3048 calling strcmp; count strcmp calls.
3049 * hash.h (struct hash_control): Declare, don't define, here.
3050 (HASH_STATLENGTH): Deleted.
3051 (struct hash_entry): Add field for hash code.
3052 (hash_say, hash_apply): Don't declare.
3054 * hash.c (destroy): Return void.
3055 (applicatee): Ditto.
3056 (main): Fix declarations.
3057 (hash_apply): Return void. Argument `function' returns void. Put
3058 inside "#ifdef TEST".
3059 (hash_say): Define only if TEST is defined.
3060 * hash.h (hash_apply, hash_say): Declarations deleted.
3062 Mon Nov 27 13:18:25 1995 Ian Lance Taylor <ian@cygnus.com>
3064 * configure: Rebuild with autoconf 2.7.
3066 Tue Nov 21 18:39:01 1995 Ian Lance Taylor <ian@cygnus.com>
3068 * aclocal.m4 (AC_PROG_CC): Remove local definition.
3069 * configure: Rebuild with autoconf 2.6.
3071 Mon Nov 20 17:26:00 1995 Ian Lance Taylor <ian@cygnus.com>
3073 * config/tc-ppc.c (ppc_debug_name_section_size): Remove.
3074 (ppc_stabx): Don't increment ppc_debug_name_section_size.
3076 (ppc_frob_file): Remove.
3077 * config/tc-ppc.h (tc_frob_file): Don't define.
3078 (ppc_frob_file): Don't declare.
3080 Mon Nov 20 13:37:05 1995 Ken Raeburn <raeburn@cygnus.com>
3082 * Makefile.in (TARG_CPU_DEP_alpha): Mention alpha-opcode.h.
3083 * config/alpha-opcode.h: Include one-operand variants of jmp and
3086 * config/te-delt88.h: Renamed from te-delta88.h, to avoid conflict
3087 with te-delta.h in 8.3 file systems.
3088 * configure.in: Adjusted.
3090 Thu Nov 16 12:49:38 1995 Ian Lance Taylor <ian@cygnus.com>
3092 * config/tc-mips.c (s_err): Remove; just use the one in read.c.
3094 * config/m68k-parse.y (yylex): In MRI mode, '@' can start an octal
3096 * expr.c (operand): Handle MRI suffixes after unadorned 0.
3098 Thu Nov 16 00:21:44 1995 Ken Raeburn <raeburn@cygnus.com>
3100 Version 2.6 released.
3101 * Makefile.in (VERSION): Updated to 2.6.
3103 * config/obj-coff.c (write_object_file): Change use of md_do_align
3104 to pass a pointer rather than a fill value, to match other uses.
3106 Wed Nov 15 03:52:00 1995 Ken Raeburn <raeburn@cygnus.com>
3108 * config/tc-ns32k.h (TC_FIX_TYPE): Add missing semicolon.
3110 * as.c (main): Move md_end call to just after call to
3111 perform_an_assembly_pass. Delete cpu-specific code here.
3112 * config/tc-i960.h (md_end): New macro, calls brtab_emit.
3113 * config/tc-arm.c (md_end): Unused function deleted.
3114 * config/tc-ns32k.c (md_end): Ditto.
3116 * config/tc-i386.c (i386_align_code): New function, moved here
3117 from HANDLE_ALIGN macro.
3118 * config/tc-i386.h (HANDLE_ALIGN): Call it.
3120 Mon Jul 31 14:53:19 1995 Alan Modra <alan@spri.levels.unisa.edu.au>
3122 * config/tc-i386.h (md_do_align): cast fill and 0x90 to char
3125 Mon May 1 10:91:49 1995 Alan Modra <alan@spri.levels.unisa.edu.au>
3127 * config/tc-i386.h (md_do_align): Make ".align n,0x90" generate
3128 multi-byte nops to avoid changing gcc. The necessary gcc change
3129 might break old assemblers.
3131 Sat Apr 22 20:53:05 1995 Alan Modra <alan@spri.levels.unisa.edu.au>
3133 * config/tc-i386.h (md_do_align, HANDLE_ALIGN): Add macros to
3134 generate optimal multi-byte nop instructions for ".align n"
3135 ".align n,0x90", and aligns requiring more than 15 bytes of
3136 padding still generate multiple 0x90's as before.
3138 Mon Nov 13 17:40:21 1995 Ian Lance Taylor <ian@cygnus.com>
3140 * config/tc-m68k.c (s_mri_until): Call pop_mri_control.
3142 Mon Nov 13 20:39:06 1995 Stan Shebs <shebs@andros.cygnus.com>
3144 * configure.in (ppc-*-macos*, ppc-*-mpw*): New configurations.
3145 * configure: Update.
3146 * mpw-make.sed: Reorder commands to make sed happier.
3147 * config/te-macos.h: New file.
3148 * config/tc-ppc.h (TARGET_FORMAT): Set correctly for PowerMac.
3150 Sun Nov 12 21:14:56 1995 Jeffrey A Law (law@cygnus.com)
3152 * config/tc-hppa.c (pa_ip): Fix off-by-2 bug in length check for
3153 conditional branches.
3154 (md_apply_fix): Likewise.
3156 Thu Nov 9 16:14:01 1995 Ian Lance Taylor <ian@cygnus.com>
3158 * config/tc-a29k.c (md_apply_fix): Warn if an attempt is made to
3159 generate a reloc which the linker will not handle correctly. Fix
3160 overflow checking--R_IREL is 18 bits, not 17.
3162 Wed Nov 8 19:59:36 1995 Ian Lance Taylor <ian@cygnus.com>
3164 * config/obj-coff.c (fixup_segment): Don't subtract md_pcrel_from
3165 from a PC relative reloc if TC_A29K.
3167 * config/tc-a29k.c (line_separator_chars): Restore '@'. Existing
3168 code depends upon it.
3170 * config/tc-a29k.c (md_operand): Handle $float, $double, and
3171 $extend. Based on code from Eric Freudenthal
3172 <freudenthal@nyu.edu>.
3173 * config/tc-a29k.h (LEX_DOLLAR): Define.
3174 * read.c (LEX_DOLLAR): Define if not defined.
3175 (lex_type): Use LEX_DOLLAR.
3177 Wed Nov 8 16:38:14 1995 Eric Freudenthal <freudenthal@nyu.edu>
3179 * configure.in (a29k-nyu-sym1): New target, just like other a29k
3182 Wed Nov 8 11:38:48 1995 Ian Lance Taylor <ian@cygnus.com>
3184 * config/obj-coff.c (c_dot_file_symbol): Cast xmalloc return.
3186 Tue Nov 7 09:14:35 1995 Kim Knuttila <krk@cygnus.com>
3188 * config/tc-ppc.c (md_apply_fix3): Added BFD_RELOC_RVA. Currently
3189 used only by "dlltool.c".
3191 Mon Nov 6 18:51:26 1995 Ian Lance Taylor <ian@cygnus.com>
3193 * config/tc-alpha.c: Undefine inline if not __GNUC__.
3194 (md_pseudo_table): Don't define "extern".
3196 Sat Nov 4 00:51:21 1995 Ian Lance Taylor <ian@cygnus.com>
3198 * config/tc-ppc.c (ppc_biei): Force symbol into text_section.
3200 * config/tc-ppc.c (md_show_usage): Put backslash at end of line.
3202 Fri Nov 3 13:02:59 1995 Ian Lance Taylor <ian@cygnus.com>
3204 * macro.c (macro_expand_body): Don't warn about == with a
3205 nonexistent parameter, in case it is in a comment field.
3207 * as.c (main): On TC_A29K, call macro_init with macro_alternate
3209 * macro.c (get_any_string): Don't keep quotes if macro_strip_at is
3210 set, even if macro_alternate is set.
3211 (get_apost_token): If macro_strip_at, only skip kind if it is '@'.
3212 (sub_actual): If macro_strip_at, and kind is '@', don't look up
3213 the token unless it ended in '@'.
3214 * config/tc-a29k.c (line_separator_chars): Remove '@'.
3215 * doc/c-a29k.texi: Document macro usage on A29K.
3217 Thu Nov 2 23:07:57 1995 Ian Lance Taylor <ian@cygnus.com>
3219 * config/tc-m68k.c (m68k_ip): Handle new 'W' place, meaning a
3221 (install_operand): Likewise.
3223 * config/obj-elf.c (ecoff_debug_pseudo_table): Add "extern".
3225 Wed Nov 1 15:17:02 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
3227 * configure.in (m88k-motorola-sysv*): New target.
3228 * configure: Rebuild.
3229 * config/te-delta88.h: New file.
3230 * config/obj-coff.c (write_object_file): Use md_do_align if it is
3232 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Define.
3233 (md_do_align): Define.
3234 * config/tc-m88k.c: Include "subsegs.h".
3235 (m88k_do_align): New function.
3237 * config/te-delta.h (STRIP_UNDERSCORE): Don't define.
3238 (COFF_NOLOAD_PROBLEM): Define.
3239 (LOCAL_LABELS_DOLLAR, LOCAL_LABELS_FB): Define.
3241 Wed Nov 1 16:07:43 1995 Ken Raeburn <raeburn@cygnus.com>
3243 * config/tc-i386.c (md_assemble): For a jump instruction with
3244 non-constant target, require 7 available bytes in the current
3247 Tue Oct 31 15:37:16 1995 Fred Fish <fnf@rtl.cygnus.com>
3249 * config/obj-elf.h: Include bfd/elf-bfd.h rather than
3252 Tue Oct 31 16:34:28 1995 David Mosberger-Tang <davidm@azstarnet.com>
3254 * configure.in (alpha-*-linux*): Use ecoff.
3255 * configure: Rebuild.
3256 * ecoff.c (ecoff_directive_extern): New function.
3257 (ecoff_directive_weakext): New function.
3258 (ecoff_build_symbols): Handle weak symbols.
3259 (ecoff_setup_ext): Likewise.
3260 (ecoff_frob_symbol): Warn about weak common symbols.
3261 * ecoff.h (ecoff_directive_extern): Declare.
3262 (ecoff_directive_weakext): Declare.
3263 * symbols.c (S_IS_WEAK): New function.
3264 * symbols.h (S_IS_WEAK): Declare.
3265 * config/obj-ecoff.c (obj_pseudo_table): Add "extern" and
3267 * config/tc-mips.c (mips_pseudo_table): Remove "extern".
3270 Tue Oct 31 13:29:08 1995 Ian Lance Taylor <ian@cygnus.com>
3272 * config/tc-ppc.c (ppc_lglobl): Do the right thing.
3274 * config/tc-ppc.c (ppc_bb): Call SF_SET_PROCESS.
3275 (ppc_eb): Likewise. Set the storage class to C_BLOCK, not C_FCN.
3276 (ppc_frob_symbol): Don't change C_BLOCK symbols to C_HIDEXT.
3277 * config/obj-coff.c (coff_frob_symbol): Don't call
3278 SA_SET_SYM_ENDNDX with the current symbol; call it with the next
3279 one. If OBJ_XCOFF, try to figure out whether the symbol is going
3282 * config/tc-ppc.c (md_pseudo_table): Add "bc" and "ec".
3283 (ppc_stab_symbol): New static variable.
3284 (ppc_change_csect): Check that ppc_toc_csect is not NULL.
3285 (ppc_stabx): Set ppc_stab_symbol around call to symbol_make. Set
3286 sy_tc.real_name to the stab string.
3287 (ppc_bc, ppc_ec): New static functions.
3288 (ppc_canonicalize_symbol_name): If ppc_stab_symbol is set, don't
3290 (ppc_symbol_new_hook): If ppc_stab_symbol is set, don't look for a
3292 (ppc_frob_symbol): Set BSF_NOT_AT_END for symbols with csect aux
3295 * input-scrub.c (input_scrub_push): Reset sb_index.
3297 Mon Oct 30 17:52:46 1995 Ian Lance Taylor <ian@cygnus.com>
3299 * listing.c (listing_newline): Don't create a frag in the absolute
3302 Sat Oct 28 01:02:05 1995 Ian Lance Taylor <ian@cygnus.com>
3304 * config/tc-ppc.c (md_pseudo_table): Add "data" and "text".
3305 (ppc_csect): Move most of the code to ppc_change_csect, and call
3307 (ppc_change_csect): New static function, taken from ppc_csect.
3308 (ppc_section): New static function.
3309 (ppc_saw_abs): New static varable.
3310 (ppc_frob_symbol): Create aux entry for absolute symbols. Warn if
3311 a symbol has no csect.
3312 (ppc_adjust_symtab): New function.
3313 * config/tc-ppc.h (tc_adjust_symtab): Define if OBJ_XCOFF.
3314 (ppc_adjust_symtab): Declare if OBJ_XCOFF.
3316 * write.c (write_object_file): If tc_adjust_symtab is defined,
3317 call it just before the call to obj_adjust_symtab.
3319 * symbols.c (symbol_find_or_make): Change name to be const.
3320 * symbols.h (symbol_find_or_make): Update declaration.
3322 Thu Oct 26 19:18:27 1995 Ken Raeburn <raeburn@cygnus.com>
3324 * doc/as.texinfo (Align): Mention SH.
3325 * doc/c-m68k.texi (M68K-Directives, .even): Describe behavior, not
3327 * doc/c-z8k.texi (Z8000 Directives, global): Fix minor typo.
3328 (Z8000 Directives, even): Don't give numeric align value, instead
3331 Thu Oct 26 11:45:03 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
3333 * tc-arm.c (do_ldst): Assemble ldr/str r0, [r1] as a pre-increment
3336 Wed Oct 25 11:59:24 1995 Per Bothner <bothner@kalessin.cygnus.com>
3338 * Makefile.in (diststuff): Also make info.
3339 (maintainer-clean realclean): Also make clean-info.
3341 Tue Oct 24 15:21:33 1995 Jeffrey A Law (law@cygnus.com)
3343 * config/tc-hppa.c (md_pseudo_table): Add new ".nsubspa" opcode.
3344 (pa_subspace): For ".nsubspa", always create a new subspace
3345 with the given attributes, even if one already exists with the
3348 Tue Oct 24 14:50:38 1995 Michael Meissner <meissner@tiktok.cygnus.com>
3350 * config/tc-ppc.h (TC_FORCE_RELOCATION_SECTION): Rename from
3351 TC_FORCE_RELOCATION, taking an additional section argument. If
3352 the section of the target symbol is not the same as the current
3353 section, always force the relocation to be used.
3354 (MD_PCREL_FROM_SECTION): New macro to call md_pcrel_from_section.
3356 * config/tc-ppc.c (md_pcrel_from_section): Rename from the
3357 md_pcrel_from function, taking an additional section argument.
3358 Invoke TC_FORCE_RELOCATION_SECTION instead of TC_FORCE_RELOCATION.
3360 * write.c (TC_FORCE_RELOCATION_SECTION): Define in terms of the
3361 older TC_FORCE_RELOCATION if not defined.
3362 (MD_PCREL_FROM_SECTION): If not defined, invoke md_pcrel_from.
3363 (fixup_segment): Use MD_PCREL_FROM_SECTION instead of
3364 md_pcrel_from, and TC_FORCE_RELOCATION_SECTION instead of
3365 TC_FORCE_RELOCATION.
3367 Mon Oct 23 16:20:04 1995 Ken Raeburn <raeburn@cygnus.com>
3369 * input-scrub.c (as_where): Set name to null pointer if we don't
3371 * messages.c (identify): Only print filename if non-null.
3372 (as_show_where): Ditto, for line number too.
3373 (as_warn_internal, as_bad_internal): Ditto.
3375 * input-file.c (input_file_open): If the input file can't be
3376 opened, consider it an error.
3378 Mon Oct 23 11:15:44 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
3380 * config/tc-mips.c: Added mips_4100 control, and support for
3381 accepting the 4100 as a MIPS architecture variant (md_begin,
3382 macro_build, mips_ip, md_parse_option). Adding suitable
3383 command-line OPTIONs, and updating the help text (md_show_usage).
3385 Wed Oct 18 13:20:32 1995 Ken Raeburn <raeburn@cygnus.com>
3387 * subsegs.c (subseg_begin): Only set absolute_frchain.fix_* when
3388 BFD_ASSEMBLER is defined.
3390 * Use one active frag and one obstack per frag chain:
3391 * frags.c (frags): Variable deleted.
3392 (frag_alloc): New function.
3393 (frag_grow, frag_more, frag_variant, frag_now_fix,
3394 frag_append_1_char): Refer to frchain_now->frch_obstack instead of
3396 (frag_new): Ditto. Verify that frch_last and frag_now match on
3397 entry and exit, and that old frag_now has non-zero type. Replace
3398 "know" uses with "assert". Use frag_alloc instead of mucking with
3400 * frags.h (frags): Declaration deleted.
3401 * subsegs.h (struct frchain): Add new field frch_frag_now.
3402 * subsegs.c (frchains, dummy_frag, absolute_frchain): New static
3404 (subsegs_begin): Initialize frchains obstack. Under gcc, don't
3405 give it any stricter alignment than frchainS structures need. Do
3406 not initialize frags obstack. Set frag_now to point to
3407 dummy_obstack. Initialize absolute_frchain.
3408 (subseg_set_rest): Save and restore frag_now in frch_frag_now
3409 field of frchainS. Don't create new frags on section switch, and
3410 use frag_alloc when creating a new frag chain. For absolute
3411 section, set frchain_now to absolute_frchain. Verify that
3412 frch_last and frag_now match on entry and exit. Initialize
3413 per-chain obstack, and under gcc, set required alignment to that
3414 needed by fragS structure.
3416 * write.c (chain_frchains_together_1): Verify fr_type is nonzero.
3418 * stabs.c (get_stab_string_offset): Only copy input string if a
3419 fresh copy is needed, not if the section already exists.
3420 (s_stab_generic): Cache stab section name to bypass lookups, since
3421 usually it will match. Could be made faster still by changing the
3422 memory allocation rules.
3423 (s_xstab): Cache section name to bypass repeated string
3426 * frags.c (frag_new): Deleted register declarations.
3428 * listing.c (frag_now): Don't declare.
3430 * as.c (chunksize): New variable.
3431 (debug_memory): New variable.
3432 (main): If debug_memory is set, reduce chunksize and
3434 * as.h (chunksize): Declare it.
3435 * read.c (read_begin): Use it.
3437 * config/tc-alpha.c (md_shortopts): Include 'g'.
3438 (md_parse_option): Ignore it.
3440 * Makefile.in (distclean): Remove Makefile and config.status from
3441 testsuite directory.
3442 (clean-here): Don't delete testsuite. Instead, delete only the
3443 files within it that would be generated by running tests.
3445 * config/tc-hppa.c (hppa_elf_mark_end_of_function): Call
3446 frag_now_fix instead of accessing obstack info directly.
3447 * config/tc-arm.c (s_ltorg): Ditto.
3448 (md_assemble): Ditto.
3450 * config/tc-i386.c (md_assemble): Call frag_grow instead of
3453 Wed Oct 18 12:22:59 1995 Ken Raeburn <raeburn@cygnus.com>
3455 * stabs.c (aout_process_stab): Insert debug symbol into symbol
3456 chain after parsing value expression, if any, to avoid separating
3457 continued .stabs lines.
3459 Mon Oct 16 10:56:41 1995 Ian Lance Taylor <ian@cygnus.com>
3461 * config/tc-mips.c (mips_elf_pseudo_table): Remove.
3462 (mips_pop_insert): Don't call pop_insert on mips_elf_pseudo_table.
3464 Mon Oct 16 07:07:37 1995 Michael Meissner <meissner@wogglebug.tiac.net>
3466 * config/tc-ppc.c (md_begin): Use new flags PPC_OPCODE_COMMON for
3467 -mcom support and PPC_OPCODE_ANY for -many.
3468 (md_parse_option): Ditto.
3470 (md_begin): For duplicate instructions, print all duplicates
3473 Sun Oct 15 22:06:14 1995 Michael Meissner <meissner@cygnus.com>
3475 * config/tc-ppc.c (md_parse_option): Support for -mcom to turn on
3476 common mode operation.
3477 (md_show_usage): Add -mcom to usage message.
3479 Fri Oct 13 13:32:45 1995 steve chamberlain <sac@slash.cygnus.com>
3481 * expr.c (op_rank): Add O_symbol_rva.
3482 * expr.h (operatorT): Add O_symbol_rva.
3483 * read.c (cons_worker): Set O_symbol_rva when necessary.
3484 * write.c (fix_new_exp): Understand O_symbol_rva.
3486 Tue Oct 10 11:34:14 1995 Ian Lance Taylor <ian@cygnus.com>
3488 * config/tc-mips.c: Correct s_cons arguments. From Michael
3489 Joosten <joost@ori.cadlab.de>.
3491 Mon Oct 9 19:59:53 1995 Ian Lance Taylor <ian@cygnus.com>
3493 * config/tc-ppc.c (ppc_macro): Make count unsigned.
3494 (ppc_biei): Set segment to now_seg and value to coff_n_line_nos.
3495 (ppc_frob_symbol): Handle C_BINCL and C_EINCL symbols by setting
3497 * config/obj-coff.c (coff_n_line_nos): Rename from n_line_nos, and
3498 make non-static. Change all users.
3499 * config/obj-coff.h (coff_n_line_nos): Declare.
3501 Fri Oct 6 16:24:27 1995 Ken Raeburn <raeburn@cygnus.com>
3503 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3505 * configure.in (AC_ARG_WITH(bfd-assembler)): Fix help message.
3507 * config/obj-elf.c (obj_elf_common): Convert specified byte
3508 alignment to power of two. Set size of local bss symbol.
3510 * config/tc-m68k.c (tc_gen_reloc): Fix typo in variable name.
3512 Fri Oct 6 15:22:25 1995 Ian Lance Taylor <ian@cygnus.com>
3514 * sb.c, macro.c: Decide whether to include <string.h> or
3515 <strings.h> just as as.h does.
3517 Fri Oct 6 09:55:33 1995 Doug Evans <dje@canuck.cygnus.com>
3519 * Makefile.in (site.exp): Fix setting of $srcdir.
3521 * config/tc-arm.c (md_atof): Fix little-endian output.
3522 * config/tc-arm.h (ARM_BI_ENDIAN): Move definition so defined for
3525 Thu Oct 5 20:17:30 1995 Ken Raeburn <raeburn@cygnus.com>
3527 * doc/as.texinfo: Split out the NS32k family documentation,
3528 despite its being commented out for now.
3529 * doc/c-ns32k.texi: New file.
3531 * sb.c, macro.c: Include string.h.
3533 * Makefile.in (comparison): Only check *.o; we don't care if
3534 timestamps inserted by the native linker differ.
3536 * config/tc-alpha.c (alpha_align): Only fill with a no-op pattern
3537 if alignment stricter than 4 bytes is requested; in that case,
3538 align to a 4-byte boundary first.
3540 Thu Sep 28 19:35:27 1995 Pat Rankin <rankin@eql.caltech.edu>
3542 * config/obj-vms.c (VMS_RSYM_Parse): eliminate "might be used
3543 uninitialized" warning for `Max_Source_Offset'.
3545 Wed Oct 4 16:17:02 1995 Kim Knuttila <krk@cygnus.com>
3547 * config/tc-ppc.c (parse_toc_entry): New function to parse [toc]
3548 qualifiers and detect errors if present.
3549 (md_assemble): Add call to parse_toc_entry. Also added some support
3550 for the [tocv] qualifier.
3551 (ppc_pe_tocd): New function to support data in the toc section.
3553 Wed Oct 4 14:03:39 1995 Ian Lance Taylor <ian@cygnus.com>
3555 * config/tc-ppc.c (ppc_frob_symbol): Don't create an aux entry for
3558 Tue Oct 3 12:18:19 1995 Ian Lance Taylor <ian@cygnus.com>
3560 * config/tc-m68k.c (isword): Accept all values from -65536 to
3561 +65535, so ~VAL will not be rejected.
3563 * cond.c (s_endif): Call demand_empty_rest_of_line. In MRI mode,
3564 skip characters after the pseudo-op.
3566 * read.c (get_line_sb): Don't look past buffer_limit.
3567 (s_include): In MRI mode, skip characters after the file name.
3569 Mon Oct 2 16:15:27 1995 Ian Lance Taylor <ian@cygnus.com>
3571 * config/m68k-parse.y (m68k_reg_parse): In MRI mode, permit
3572 periods in register names.
3574 For older changes see ChangeLog.1.