Allow foo@suffix+constant relocations
[deliverable/binutils-gdb.git] / gas / ChangeLog
1 Wed Dec 4 10:35:33 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2
3 * config/tc-ppc.c (ppc_elf_suffix): Take expressionS pointer
4 argument, and check for +/- constant following the suffix, folding
5 it into the expression.
6 (ppc_elf_cons): Change ppc_elf_suffix calls.
7 (md_assemble): Ditto.
8 (shlib): Replace boolean mrelocatable with enumeration shlib.
9 (md_parse_option): Discriminate between PIC style shared libraries
10 and -mrelocatable.
11 (ppc_elf_validate_fix): Don't report warnings for PIC style shared
12 libraries.
13
14 Tue Dec 3 23:18:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
15
16 * config/tc-ppc.h ({tc,ppc}_comment_chars): Define, so that we can
17 change the comment characters.
18
19 * config/tc-ppc.c (comment_chars): Delete in favor of
20 tc_comment_chars.
21 (ppc_{eabi,solaris}_comment_chars): Eabi and Solaris versions of
22 comment chars.
23 (ppc_comment_chars): Select appropriate comment chars by default.
24 (msolaris): New flag for -m{,no-}solaris.
25 (md_parse_option): Recognize -K pic. Add support for
26 -m{,no-}solaris.
27 (md_show_usage): Update.
28 (md_begin): Do not set ELF flags if Solaris.
29 (ppc_elf_suffix): @local sets R_PPC_LOCAL24PC relocation.
30 (md_apply_fix3): Add support for R_PPC_LOCAL24PC.
31
32 Mon Dec 2 13:48:57 1996 Ian Lance Taylor <ian@cygnus.com>
33
34 * as.c (main): Correct handling of flag_always_generate_output.
35
36 Sun Dec 1 21:46:05 1996 Jeffrey A Law (law@cygnus.com)
37
38 * config/tc-mn10300.c (tc_gen_reloc): Get the addend from
39 fx_offset, not fx_addnumber.
40
41 * config/tc-mn10300.h (tc_fix_adjustable): Don't do any
42 reloc adjustments.
43
44 Sat Nov 30 17:34:48 1996 Eliot Dresselhaus <eliot@wally.edc.com>
45
46 * config/tc-i386.c: Correct misspelling: balenced to balanced.
47
48 Wed Nov 27 13:25:39 1996 Ian Lance Taylor <ian@cygnus.com>
49
50 * config/tc-mips.c (md_section_align): Check for an alignment of
51 4, not an alignment of 16. Corrects August 7 patch.
52
53 Tue Nov 26 10:33:16 1996 Ian Lance Taylor <ian@cygnus.com>
54
55 * configure, conf.in: Rebuild with autoconf 2.12.
56
57 * config/tc-ppc.c (ppc_elf_lcomm): Don't give an error if no
58 alignment is specified.
59
60 Add support for mips16 (16 bit MIPS implementation):
61 * config/tc-mips.c: Extensive additions for mips16 support, not
62 listed here.
63 (RELAX_OLD, RELAX_NEW): Use only 7 bits each.
64 (insn_uses_reg): Change last parameter to an enum.
65 * config/tc-mips.h (LOCAL_LABELS_DOLLAR): Define as 0.
66 (md_relax_frag): Define as mips_relax_frag.
67 (mips_relax_frag): Declare.
68 (struct mips_cl_insn): Add use_extend and extend fields.
69 (tc_fix_adjustable): Define.
70 * config/obj-elf.h (S_GET_OTHER): Define.
71 (S_SET_OTHER): Define.
72
73 Mon Nov 25 18:02:29 1996 J.T. Conklin <jtc@beauty.cygnus.com>
74
75 * config/tc-m68k.c (m68k_ip): Implement cases for new <, >, m, n,
76 o and p operand specifiers.
77
78 Mon Nov 25 10:45:14 1996 Doug Evans <dje@seba.cygnus.com>
79
80 * write.c: Delete "ifndef md_relax_frag" around is_dnrange.
81 (relax_segment, case rs_org): Move code inside braces. Move locals
82 target,after inside too.
83 (relax_segment, case rs_machine_dependent): Guts moved to ...
84 (relax_frag): New function.
85 Call md_prepare_relax_scan if defined.
86 * config/tc-m68k.h (md_prepare_relax_scan): Renamed from
87 M68K_AIM_KLUDGE.
88
89 Mon Nov 25 08:49:36 1996 Jeffrey A Law (law@cygnus.com)
90
91 * config/tc-mn10300.c (address_registers): Use '$' as register
92 prefix instead of '%'.
93 (data_registers, other_registers, md_assemble): Likewise.
94
95 * config/tc-mn10300.c (address_registers): Use '%' prefix for regs.
96 (data_registers, other_registers, md_assemble): Likewise.
97
98 * config/tc-mn10300.c (md_assemble): Correctly determine the
99 correct location and type for each relocation.
100 (md_pcrel_from): Simplify.
101
102 Fri Nov 22 15:42:26 1996 Ian Lance Taylor <ian@cygnus.com>
103
104 * config/tc-sh.c (md_convert_frag): Improve warning when branch is
105 converted into branch around branch.
106
107 Thu Nov 21 11:56:11 1996 Jeffrey A Law (law@cygnus.com)
108
109 * config/tc-mn10300.h (DIFF_EXPR_OK): Don't define this.
110 (tc_fix_adjustable): Don't adjust relocs against weak symbols or
111 pc-relative relocs.
112 * config/tc-mn10300.c (md_begin): Set linkrelax.
113 (md_assemble): Create fixups as needed.
114 (md_apply_fix3): Gut. It shouldn't ever get called anymore.
115
116 start-sanitize-d10v
117 Tue Nov 19 17:48:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
118
119 * config/tc-d10v.c (parallel_ok): When automatically converting
120 serial ops to parallel, do not consider a branch as the first
121 instruction.
122
123 end-sanitize-d10v
124 Tue Nov 19 13:35:22 1996 Jeffrey A Law (law@cygnus.com)
125
126 * config/tc-mn10300.c (md_assemble): Handle MN10300_OPERAND_REG_LIST.
127
128 Mon Nov 18 15:26:55 1996 Jeffrey A Law (law@cygnus.com)
129
130 * config/tc-mn10300.c (mn10300_insert_operand): Provide prototype
131 via PARAMS.
132 (check_operand): Likewise.
133
134 start-sanitize-d10v
135 Mon Nov 18 15:22:28 1996 Michael Meissner <meissner@tiktok.cygnus.com>
136
137 * config/tc-d10v.c (parallel_ok): Branch and link instructions
138 modify r13.
139 (write_2_short): Call parallel_ok to check whether two short
140 instructions the user requested execute in parallel, can be
141 executed that way.
142
143 Thu Nov 14 11:17:49 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
144
145 * config/tc-d10v.c (write_2_short): Fix bug that wouldn't
146 allow a branch and link in parallel with an exe instruction.
147
148 Fri Nov 8 13:55:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
149
150 * doc/c-d10v.texi: Add info on @word modifier.
151
152 end-sanitize-d10v
153 Wed Nov 6 13:46:07 1996 Jeffrey A Law (law@cygnus.com)
154
155 * config/tc-mn10300.c (mn10300_insert_operand): MN10300_OPERAND_SPLIT
156 operands are assumed to be 32bits. Use "bits" field to hold the
157 number of bits in the main instruction word for MN10300_OPERAND_SPLIT.
158 (mn10300_check_operand): MN10300_OPERAND_SPLIT operands are assumed
159 to be 32bits.
160
161 * config/tc-mn10300.c (mn10300_insert_operand): Shift low part
162 of a MN10300_OPERAND_SPLIT operand by operand->shift.
163
164 * config/tc-mn10300.c (mn10300_insert_operand): Handle
165 MN10300_OPERAND_SPLIT.
166
167 Tue Nov 5 13:30:40 1996 Jeffrey A Law (law@cygnus.com)
168
169 * config/tc-mn10300.c (md_assemble): Insert operands into
170 the extension part of the instruction if necessary.
171 (mn10300_insert_operand): Accept pointer to extension word
172 argument. Make insn a pointer argument too. Return type
173 is now void. All callers changed.
174
175 Mon Nov 4 12:53:40 1996 Jeffrey A Law (law@cygnus.com)
176
177 * config/tc-mn10300.c (mn10300_insert_operand): Handle
178 repeated register operands.
179
180 Fri Nov 1 10:42:49 1996 Ian Lance Taylor <ian@cygnus.com>
181
182 * doc/as.texinfo: Added section on reporting bugs.
183
184 * config/tc-alpha.c: Change uses of void * to PTR. Change the
185 alpha_macro emit field to expect a const argument, and change the
186 arg field to be const. Fix some spacing to follow the GNU
187 standard.
188
189 Fri Nov 1 10:32:03 1996 Richard Henderson <rth@tamu.edu>
190
191 * config/tc-alpha.c (md_parse_option): Add knowledge of 21164pc
192 (pca56) and 21264 (ev6) cpus.
193 (md_apply_fix): Private relocation types are now negative.
194 (alpha_force_relocation): Likewise.
195 (tc_gen_reloc): Likewise.
196 (emit_insn): Likewise.
197 (emit_ldXu): Do the right thing when the hardware can do byte insns.
198 (emit_stX): Likewise.
199 (emit_sextX): Likewise.
200
201 Thu Oct 31 16:33:21 1996 Ian Lance Taylor <ian@cygnus.com>
202
203 * config/obj-coff.c (do_relocs_for): Call resolve_symbol_value on
204 a symbol found in a reloc.
205
206 * symbols.c (resolve_symbol_value): Improve the error message if
207 an undefined symbol is used in an expression.
208
209 Wed Oct 30 20:15:35 1996 Ian Lance Taylor <ian@cygnus.com>
210
211 * doc/internals.texi: Rewrite, and add a lot of documentation.
212 * doc/Makefile.in (internals.info): New target.
213
214 start-sanitize-v850
215 Wed Oct 30 14:55:57 1996 Jeffrey A Law (law@cygnus.com)
216
217 * config/tc-v850.h (tc_fix_adjustable): Don't adjust relocs
218 against weak symbols.
219
220 Tue Oct 29 12:28:16 1996 Jeffrey A Law (law@cygnus.com)
221
222 * config/tc-v850.c (md_assemble): Don't lose for relaxable
223 addresses like .+6.
224
225 * config/tc-v850.c (md_convert_frag): Make sure we insert the
226 fixup at the right address within the frag.
227
228 * config/tc-v850.c (md_convert_frag): Don't set fragP->fr_fix
229 to an absolute value, instead increment it as needed.
230
231 * config/tc-v850.h (TC_GENERIC_RELAX_TABLE): Define.
232 * config/tc-v850.c: Fix some indention problems.
233 (md_relax_table): Define for D9->D99 branch displacement
234 relaxing.
235 (md_convert_frag): Do something useful instead of aborting.
236 (md_estimate_size_before_relax): Likewise.
237 (md_assemble): Note if the matching instruction has a relaxable
238 operand. If it does, allocate frag with frag_var and don't
239 do any fixups.
240
241 end-sanitize-v850
242 start-sanitize-d10v
243 Mon Oct 28 10:48:40 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
244
245 * config/tc-d10v.h (md_cleanup): New function. This is needed to
246 write out any buffered instructions when a ".end" is found.
247
248 end-sanitize-d10v
249 Mon Oct 28 10:43:45 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
250
251 * read.c (read_a_source_file): New hook md_cleanup().
252
253 Fri Oct 25 00:01:00 1996 Ian Lance Taylor <ian@cygnus.com>
254
255 * write.c (fix_new_exp): Use make_expr_symbol to build an
256 expression symbol for a complex fixup.
257
258 start-sanitize-v850
259 Thu Oct 24 14:31:04 1996 Jeffrey A Law (law@cygnus.com)
260
261 * config/tc-v850.c (v850_reloc_prefix): Several disgusting
262 hacks to improve parsing of complex hi, lo, zda, etc
263 expressions.
264 (md_assemble): Don't demand and eat a trailing ')' after finding
265 a v850 relocation prefix. Sign extend the constant in a
266 BFD_RELOC_LO16 expression. Do eat a trailing ')' after a complete
267 operand.
268 (parse_cons_expression_v850): Don't eat a trailing ')' after
269 finding a v850 relocation prefix.
270
271 * config/tc-v850.h (TC_PARSE_CONS_EXPRESSION): Define.
272 (TC_CONS_FIX_NEW): Likewise.
273 * config/tc-v850.c (parse_cons_expression_v850): New function.
274 (cons_fix_new_v850): Likewise.
275
276 * config/tc-v850.h (tc_fix_adjustable): Don't adjust TDA relocs.
277
278 end-sanitize-v850
279 Wed Oct 23 18:20:29 1996 Ian Lance Taylor <ian@cygnus.com>
280
281 * config/tc-ppc.c (md_apply_fix3): Give a better warning message
282 for an unknown relocation type.
283
284 start-sanitize-v850
285 Wed Oct 23 16:21:28 1996 Jeffrey A Law (law@cygnus.com)
286
287 * config/tc-v850.c (md_pseudo_table): Add .word; allocates
288 4 bytes of space.
289
290 Tue Oct 22 22:01:25 1996 Jeffrey A Law (law@cygnus.com)
291
292 * config/tc-v850.c (md_assemble): Handle TDAOFF relocs
293 differently for movea & sst/sld insns.
294
295 end-sanitize-v850
296 start-sanitize-d10v
297 Tue Oct 22 17:09:32 1996 Michael Meissner <meissner@tiktok.cygnus.com>
298
299 * config/tc-d10v.c (parallel_ok): Don't allow illegal combinations
300 of instructions.
301
302 end-sanitize-d10v
303 Tue Oct 22 11:28:39 1996 Ian Lance Taylor <ian@cygnus.com>
304
305 * obj.h (struct format_ops): Add frob_file_after_relocs field.
306 * config/obj-multi.h (obj_frob_file_after_relocs): Define.
307 * config/obj-ecoff.c (ecoff_format_ops): Initialize new
308 frob_file_after_relocs field.
309 * config/obj-elf.c (elf_format_ops): Likewise.
310 * config/tc-mips.c: Undefine obj_frob_file_after_relocs before
311 including obj-elf.h.
312
313 Mon Oct 21 11:38:30 1996 Ian Lance Taylor <ian@cygnus.com>
314
315 * config/tc-mips.c (cons_fix_new_mips): Only treat 8 byte reloc
316 specially if not ELF.
317 (md_apply_fix): Handle BFD_RELOC_64.
318 (tc_gen_reloc): Handle BFD_RELOC_64.
319
320 * config/tc-i386.c (md_apply_fix3): Don't increment value for a PC
321 relative reloc when BFD_ASSEMBLER and OBJ_AOUT (more ugly gas
322 reloc hacking).
323
324 * config/obj-aout.h (S_IS_DEFINE): non BFD_ASSEMBLER version:
325 Don't check S_GET_OTHER.
326
327 Fri Oct 18 14:06:26 1996 Ian Lance Taylor <ian@cygnus.com>
328
329 * config/tc-mips.c (mips_ip): Accept an odd floating point
330 register with l.s or s.s.
331
332 * config/obj-aout.c (obj_pseudo_table): Use obj_aout_type for
333 .type pseudo-op.
334 (obj_aout_type): New static function.
335
336 Thu Oct 17 17:55:17 1996 Ian Lance Taylor <ian@cygnus.com>
337
338 * Makefile.in ($(OBJS)): Depend upon libiberty.h.
339
340 start-sanitize-v850
341 Wed Oct 16 11:28:31 1996 Jeffrey A Law (law@cygnus.com)
342
343 * config/tc-v850.c (v850_reloc_prefix): Recognize zdaoff, tdaoff
344 and sdaoff expressions.
345
346 * write.c (fixup_segment): Don't add symbol value to addend if
347 TC_V850 and OBJ_ELF.
348 * config/tc-v850.h (tc_fix_adjustable): Don't adjust any
349 pc-relative fixups.
350
351 * config/tc-v850.c (md_pcrel_from): Undo yesterday's changes.
352 (md_pcrel_from_section): Likewise.
353 * config/tc-v850.h (MD_PCREL_FROM_SECTION): Likewise.
354
355 Tue Oct 15 23:19:00 1996 Jeffrey A Law (law@cygnus.com)
356
357 * config/tc-v850.c (md_pcrel_from): Delete unused function.
358 (md_pcrel_from_section): New function.
359 * config/tc-v850.h (MD_PCREL_FROM_SECTION): Define.
360
361 end-sanitize-v850
362 Mon Oct 14 13:59:12 1996 Ian Lance Taylor <ian@cygnus.com>
363
364 * config/tc-mips.c (load_register): Add cast to offsetT when using
365 a constant with &~.
366
367 Mon Oct 14 11:24:28 1996 Richard Henderson <rth@tamu.edu>
368
369 * config/obj-elf.c (elf_frob_file): Move ECOFF debug processing to ...
370 (elf_frob_file_after_relocs): ... here. New function.
371 * config/obj-elf.h (obj_from_file_after_relocs): New macro.
372 * write.c (write_object_file): Call *frob_after_relocs after the
373 call to write_relocs.
374
375 * config/tc-alpha.c: Use new BFD_RELOC_ALPHA_ELF_LITERAL reloc.
376
377 * config/tc-alpha.c (load_expression): Don't SET_VALUE on the section
378 symbol, as this messes up linking. Instead, expand the recursive call
379 inline and change up the appropriate bits to get the 0x8000 offset
380 in the reloc addend.
381
382 Thu Oct 10 17:30:31 1996 Ian Lance Taylor <ian@cygnus.com>
383
384 * config/tc-sparc.h (tc_fix_adjustable): Permit the difference of
385 two symbols in the same segment to be adjusted.
386
387 * configure.in: Don't get confused by CPU-VENDOR-linux-gnu.
388 * configure: Rebuild.
389
390 Thu Oct 10 17:22:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
391
392 * config/tc-ppc.c (ppc_insert_operand): Change most warnings into
393 errors.
394 (ppc_elf_validate_fix): Ditto.
395 (md_assemble): Ditto.
396 (ppc_tc): Ditto.
397 (ppc_pe_section): Ditto.
398 (ppc_frob_symbol): Ditto.
399
400 Thu Oct 10 12:05:45 1996 Jeffrey A Law (law@cygnus.com)
401
402 * config/mn10300.c (md_assemble): Pass an extra shift count
403 to mn10300_insert_operand based on the opcode format.
404 (mn10300_insert_operand): Accept and use extra shift count
405 parameter.
406
407 * config/tc-mn10300.c (md_assemble): Use FMT_* macros for
408 formats rather than hard-coded constants.
409
410 * config/tc-mn10300.c (md_assemble): Format D5 instructions
411 are 7 bytes long. Write out instructions in big-endian format.
412
413 Tue Oct 8 14:56:15 1996 Jeffrey A Law (law@cygnus.com)
414
415 * config/tc-mn10300.c (md_assemble): Tweak further so
416 that all instructions are parsed correctly.
417
418 Tue Oct 8 13:02:21 1996 Ian Lance Taylor <ian@cygnus.com>
419
420 * as.h: Include libiberty.h.
421 (xmalloc, xrealloc): Don't declare.
422 * as.c: Don't include libiberty.h.
423 * expr.c, read.c, stabs.c, config/obj-coff.c: Likewise.
424 * config/tc-mips.c: Likewise.
425 * messages.c: Likewise.
426 (xstrerror): Don't declare.
427 * xmalloc.c: Remove.
428
429 Mon Oct 7 16:53:23 1996 Jeffrey A Law (law@cygnus.com)
430
431 * config/tc-mn10300.h (pre_defined_registers) Remove.
432 (system_registers, cc_names): Likewise.
433 (address_registers, data_registers, other_registers): New register
434 arrays.
435 (register_name, system_register_name, cc_name): Remove.
436 (mn10300_reloc_prefix): Likewise.
437 (data_register_name): New function.
438 (address_register_name, other_register_name): Likewise.
439 (md_assemble): Rough cut at parsing operands. Remove lots of
440 unwanted code.
441 (md_apply_fix3): Disable for now.
442
443 Mon Oct 7 11:38:34 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
444
445 * config/tc-m68k.c (select_control_regs): New function, extracted
446 out of m68k_init_after_args.
447 (m68k_init_after_args): Use it.
448 (mri_chip): Use it here as well to update set of allowed control
449 regs for movec.
450
451 Mon Oct 7 11:24:29 1996 Ian Lance Taylor <ian@cygnus.com>
452
453 * config/obj-elf.c (elf_begin): New function.
454 (obj_elf_section): Add the section symbol to the symbol table.
455 * config/obj-elf.h (obj_begin): Define.
456 (elf_begin): Declare.
457 * as.c (perform_an_assembly_pass): Call obj_begin if it is
458 defined.
459
460 Fri Oct 4 18:37:32 1996 Ian Lance Taylor <ian@cygnus.com>
461
462 * config/obj-coff.c (fixup_segment): Subtract the section address
463 from a PC relative reloc if TC_M68K.
464
465 Thu Oct 3 15:15:30 1996 Ian Lance Taylor <ian@cygnus.com>
466
467 * config/tc-sparc.c (md_pseudo_table): Make .uahalf, .uaword, and
468 .uaxword available even if not OBJ_ELF.
469 (md_atof): Remove unused local variable wordP.
470
471 Thu Oct 3 00:16:50 1996 Jeffrey A Law (law@cygnus.com)
472
473 * config/tc-mn10x00.c, config/tc-mn10x00.h: New files
474 for Matsushita MN10x00 support.
475 * configure.in: Recognize mn10x00-*-*
476 * configure: Rebuilt.
477
478 Wed Oct 2 15:54:03 1996 Klaus Kaempf <kkaempf@progis.de>
479
480 * obj-evax.h: move openvms definitions from here to tc-alpha.c.
481 * tc-alpha.c: add support for vms_case_hack like in vax/vms.
482 (load_expression): track clobbering of base reg before jmp/jsr.
483 (s_alpha_file): pass case_hack flags and source filename via
484 symbol table to bfd.
485 * tc-alpha.h (TC_CONS_FIX_NEW): define
486
487 Tue Oct 1 16:16:01 1996 Joel Sherrill <joel@oarcorp.com>
488
489 * configure.in (mips-*-rtems*): New target, like mips-*-elf*.
490 * configure: Rebuild.
491
492 Tue Oct 1 12:37:48 1996 Ian Lance Taylor <ian@cygnus.com>
493
494 * read.c (s_macro): Warn if a macro has the same name as a
495 pseudo-op.
496 (s_space): In m68k MRI mode, align to a word boundary.
497 * macro.c (define_macro): Add namep parameter. Change all
498 callers.
499 * macro.h (define_macro): Update declaration.
500
501 * as.c (show_usage): Print bug report address.
502 (parse_args): Change version printing to match current GNU
503 standards.
504 * gasp.c (show_usage): Print bug report address.
505 (main): Change version printing to match current GNU standards.
506
507 * config/tc-m68k.c (init_table): Correct access control unit
508 register numbers. From Ken Rose <rose@netcom.com>.
509
510 * config/tc-alpha.c: Add some static function prototypes.
511 (alpha_macros): Move to top of file. Make static.
512 (alpha_num_macros): Move to top of file.
513
514 start-sanitize-v850
515 Tue Oct 1 09:36:19 1996 Stu Grossman (grossman@critters.cygnus.com)
516
517 * tc-v850.h: Define LOCAL_LABEL to recognise _.L_* symbols
518 generated by DWARF.
519
520 end-sanitize-v850
521 Sat Sep 28 03:38:08 1996 Ian Lance Taylor <ian@cygnus.com>
522
523 * listing.c (list_symbol_table): Remove bogus code in BFD64 case,
524 and just call sprintf_vma.
525
526 Thu Sep 26 16:04:11 1996 Ian Lance Taylor <ian@cygnus.com>
527
528 * expr.c (expr): Change >>= to >> (fix typo). (From meissner).
529
530 Tue Sep 24 19:05:08 1996 Ian Lance Taylor <ian@cygnus.com>
531
532 * read.c (float_cons): Call md_flush_pending_output if it is
533 defined.
534
535 start-sanitize-d10v
536 Tue Sep 24 12:22:18 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
537
538 * config/tc-d10v.c (md_operand): Created. Allows operands to
539 start with '#'.
540 * config/tc-d10v.h (md_operand): Undefined.
541
542 end-sanitize-d10v
543 Mon Sep 23 12:13:18 1996 Ian Lance Taylor <ian@cygnus.com>
544
545 * config/tc-m68k.c (add_fix): Treat a width of '3' like 'B'.
546 (md_assemble): A fixup width of '3' means a 1 byte reloc.
547
548 Thu Sep 19 12:21:24 1996 Ian Lance Taylor <ian@cygnus.com>
549
550 * config/obj-coff.c (fixup_segment): Don't adjust PC relative
551 reloc for the i960 for a reloc in the same section. This undoes
552 one of the two changes made Aug 19.
553
554 Wed Sep 18 12:11:58 1996 Ian Lance Taylor <ian@cygnus.com>
555
556 * config/obj-coff.c (obj_coff_endef): Both versions: Move C_STAT
557 symbols to the position of the debugging information.
558
559 Mon Sep 16 11:41:40 1996 Ian Lance Taylor <ian@cygnus.com>
560
561 * expr.c (expr): Always use unsigned right shifts for >>.
562
563 Thu Sep 12 10:25:45 1996 James G. Smith <jsmith@cygnus.co.uk>
564
565 * config/tc-arm.c (md_apply_fix3): Update two thumb instruction
566 slots when processing BL fixups.
567
568 * config/tc-arm.c (output_inst): Ensure Thumb BL fixup is marked
569 on the first half of the instruction.
570
571 Wed Sep 11 00:09:35 1996 Ian Lance Taylor <ian@cygnus.com>
572
573 * ecoff.c (ecoff_stab): Create an expression symbol for a complex
574 stabs expression, rather than giving an error.
575
576 * ecoff.c (ecoff_new_file): Don't do anything if we are still in
577 the same file.
578
579 Tue Sep 10 11:45:37 1996 Ian Lance Taylor <ian@cygnus.com>
580
581 * config/tc-mips.c (append_insn): Fill in the value for a constant
582 jump, rather than creating a reloc.
583
584 Mon Sep 9 10:57:42 1996 Ian Lance Taylor <ian@cygnus.com>
585
586 * config/tc-mips.c (append_insn): Don't swap an instruction which
587 sets a condition code with an instruction which uses a condition
588 code.
589 (mips_ip): In cases 'N' and 'M', look for $fccN rather than an
590 immediate value.
591
592 * config/tc-mips.c (md_begin): Recognize r5000 for cpu.
593 (mips_ip): Give a better error message if the ISA level is wrong.
594 (md_parse_option): Recognize -mcpu=[v][r]5000.
595
596 Sat Sep 7 13:25:55 1996 James G. Smith <jsmith@cygnus.co.uk>
597
598 * config/tc-mips.c (COUNT_TOP_ZEROES): Added macro to count
599 leading zeroes.
600 (load_register): Ensure hi32 bits are not lost during lo32bit
601 processing. Fix shift offset that was overflowing into the next
602 instruction field. Add code to generate shorter sequences for
603 constants with a single contiguous seqeuence of ones.
604
605 start-sanitize-d10v
606 Fri Sep 6 17:07:12 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
607
608 * config/tc-d10v.c (d10v_dot_word): New function to support
609 "@word" with the word pseudo-op.
610 (md_apply_fix3): Cleanup and changes to support correct sizes
611 for 16 and 18-bit relocs.
612
613 end-sanitize-d10v
614 Fri Sep 6 16:00:29 1996 Doug Evans <dje@canuck.cygnus.com>
615
616 * configure.in (sparc-*-aout): Set `em'.
617 * configure: Regenerated.
618 * config/te-sparcaout.h: New file.
619 * config/tc-sparc.h (TARGET_BYTES_BIG_ENDIAN): Define.
620 Ifdef TE_SPARCOUT define TARGET_FORMAT and SPARC_BIENDIAN.
621 * config/tc-sparc.c (INSN_BIG_ENDIAN): New macro.
622 (SPECIAL_CASE_{SETSW,SETX}): Define.
623 ({NOP,OR,FMOVS,SETHI,SLLX,SRA}_INSN): Define.
624 (md_begin): Delete setting of `target_big_endian'.
625 (output_insn): New function.
626 (md_assemble): Rewrite. Add `setx' support.
627 (sparc_ip): Handle `0' operand char. Recognize setuw, setsw, setx
628 special cases.
629 (md_atof): Add little endian support.
630 (md_number_to_chars): Likewise.
631 (md_apply_fix): Likewise.
632 (md_longopts): Recognize -EL,-EB ifdef SPARC_BIENDIAN.
633 (md_parse_option): Likewise.
634 (md_show_usage): Print -EL, -EB ifdef SPARC_BIENDIAN.
635
636 Thu Sep 5 13:40:29 1996 Ian Lance Taylor <ian@cygnus.com>
637
638 * ecoff.c (ecoff_new_file): New function.
639 * ecoff.h (ecoff_new_file): Declare.
640 * config/obj-ecoff.h (obj_app_file): Define.
641
642 Thu Sep 5 13:39:25 1996 Richard Henderson <rth@tamu.edu>
643
644 * config/tc-alpha.c (load_expression): Bias the .lit8 section
645 symbol by 32k so that our 16-bit signed offset can address the
646 entire chunk. Reported by <matt@lkg.dec.com>.
647
648 Wed Sep 4 10:23:20 1996 Ian Lance Taylor <ian@cygnus.com>
649
650 * config/tc-mips.c (load_register): Remove unused variable tmp.
651
652 Wed Sep 4 11:24:29 1996 James G. Smith <jsmith@cygnus.co.uk>
653
654 * config/tc-mips.c (load_register): Remove unnecessary code that
655 was causing the high 32bits of 64bit constants to be lost.
656
657 start-sanitize-d10v
658 Tue Sep 3 13:52:56 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
659
660 * config/tc-d10v.c: Added changes to support function
661 pointers and "@word" syntax.
662
663 end-sanitize-d10v
664 start-sanitize-v850
665 Tue Sep 3 11:57:18 1996 Jeffrey A Law (law@cygnus.com)
666
667 * config/tc-v850.c: Remove commented out and #if 0'd code.
668 (v850_reloc_prefix): Provide prototype.
669 (postfix, get_reloc, build_insn): Remove prototypes for nonexistant
670 functions.
671 (md_begin, md_assemble, md_apply_fix3): Remove unused variables.
672 (md_assemble): Add default to case statement.
673
674 Sat Aug 31 16:03:00 1996 Jeffrey A Law (law@cygnus.com)
675
676 * config/tc-v850.c (md_assemble): Compute size of the instrction
677 from the opcode.
678
679 * config/tc-v850.c (md_apply_fix3): Do simple byte, short and
680 word fixups too.
681
682 Fri Aug 30 23:50:08 1996 Jeffrey A Law (law@cygnus.com)
683
684 * config/tc-v850.c (md_apply_fix3): Use little endian get/put
685 routines to fetch/store the updated instruction from/to memory.
686 (v850_insert_operand): If the operand has a specialized insert
687 routine, call it.
688
689 Fri Aug 30 18:35:26 1996 J.T. Conklin <jtc@hippo.cygnus.com>
690
691 * config/tc-v850.c (reg_name_search): Align calling convention to
692 be like identical function found in tc-ppc.c.
693 (get_reloc): Removed.
694 (v850_reloc_prefix): New function, parse lo(), hi() and hi0().
695 (md_assemble): emit fixups.
696 (md_pcrel_from): renamed from md_pcrel_from_section, emit proper
697 displacement.
698 (md_apply_fix3): handle fixups/relocs.
699 * config/tc-v850.h (MD_PCREL_FROM_SECTION): Removed definition.
700
701 end-sanitize-v850
702 Fri Aug 30 18:12:00 1996 Ian Lance Taylor <ian@cygnus.com>
703
704 Add SH ELF support.
705 * configure.in (sh-*-elf*): New target.
706 * config/tc-sh.h (TARGET_ARCH): Define.
707 (WORKING_DOT_WORD): Define.
708 (TC_COFF_FIX2RTYPE): Only define if OBJ_COFF.
709 (BFD_ARCH, COFF_MAGIC, TC_COUNT_RELOC): Likewise.
710 (TC_RELOC_MANGLE, tc_coff_symbol_emit_hook): Likewise.
711 (DO_NOT_STRIP, NEED_FX_R_TYPE, TC_KEEP_FX_OFFSET): Likewise.
712 (TC_COFF_SIZEMACHDEP, tc_frob_file): Likewise.
713 (SUB_SEGMENT_ALIGN): Likewise.
714 (RELOC_32): Don't define.
715 (tc_frob_file_before_adjust): Define if BFD_ASSEMBLER.
716 (target_big_endian): Declare if OBJ_ELF.
717 (TARGET_FORMAT): Define if OBJ_ELF.
718 * config/tc-sh.c: Use BFD reloc codes instead of SH COFF reloc
719 numbers throughout.
720 (tc_crawl_symbol_chain): Only define if OBJ_COFF.
721 (tc_headers_hook, tc_coff_sizemachdep): Likewise.
722 (struct sh_count_relocs): Define.
723 (sh_count_relocs): New static function, broken out of
724 sh_frob_file. Add BFD_ASSEMBLER code.
725 (sh_frob_section): Likewise.
726 (sh_frob_file): Call sh_frob_section.
727 (md_convert_frag): If BFD_ASSEMBLER, change type of headers, and
728 call section_symbol rather than seg_info (seg)->dot.
729 (md_section_align): Add OBJ_ELF version.
730 (SWITCH_TABLE_CONS): Define.
731 (SWITCH_TABLE): Use SWITCH_TABLE_CONS.
732 (md_apply_fix): Change parameter types if BFD_ASSEMBLER. Only
733 handle fx_r_type == 0 if not BFD_ASSEMBLER. Return 0 if
734 BFD_ASSEMBLER.
735 (struct reloc_map): Define if not BFD_ASSEMBLER.
736 (coff_reloc_map): Likewise.
737 (sh_coff_reloc_mangle): Use coff_reloc_map to convert fx_r_type.
738 (tc_gen_reloc): New function if BFD_ASSEMBLER.
739 * write.c (write_relocs): Ifdef out fx_where test which triggers
740 inappropriately for SH ELF.
741 (write_object_file): Call tc_frob_file_before_adjust and
742 obj_frob_file_before_adjust if they are defined.
743
744 * write.c (write_object_file): Use BFD_RELOC_16, not
745 BFD_RELOC_NONE, when calling fix_new_exp for a broken word.
746
747 * read.c (emit_expr): Fix conversion of byte count to BFD reloc
748 code.
749
750 start-sanitize-d10v
751 Fri Aug 30 14:47:38 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
752
753 * config/tc-d10v.c (find_opcode): Fix problem with calculating
754 branch sizes in across sections.
755
756 end-sanitize-d10v
757 start-sanitize-v850
758 Fri Aug 30 00:44:13 1996 Jeffrey A Law (law@cygnus.com)
759
760 * config/tc-850.c (md_assemble): Handle hi() correctly. Handle
761 hi0() too.
762
763 Wed Aug 28 23:11:08 1996 Jeffrey A Law (law@cygnus.com)
764
765 * config/tc-v850.c (md_begin): Deal with end of opcode
766 table marker.
767
768 end-sanitize-v850
769 start-sanitize-d10v
770 Wed Aug 28 19:20:04 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
771
772 * config/tc-d10v.c (find_opcode): Fix a bug which could generate
773 the wrong opcode for cases like st2w where there are many forms
774 of the same instruction.
775
776 end-sanitize-d10v
777 Tue Aug 27 13:53:22 1996 Ian Lance Taylor <ian@cygnus.com>
778
779 * expr.c (operand): If md_parse_name is defined, call it before
780 calling symbol_find_or_make.
781 * config/tc-ppc.h (md_parse_name): Define.
782 (ppc_parse_name): Declare.
783 * config/tc-ppc.c (reg_name_search): Add regs and regcount
784 parameters.
785 (register_name): Update call to reg_name_search.
786 (cr_operand): New static variable.
787 (cr_names): New static const array.
788 (ppc_parse_name): New function.
789 (md_assemble): If PPC_OPERAND_CR is set in the operand flags, set
790 cr_operand before calling expression.
791
792 Tue Aug 27 09:05:50 1996 Jeffrey A Law (law@cygnus.com)
793
794 * config/tc-hppa.c (tc_gen_reloc): Add new argument to
795 hppa_gen_reloc_type call.
796
797 start-sanitize-d10v
798 Mon Aug 26 18:24:51 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
799
800 * config/tc-d10v.c: Fixed ".word". Fixed problem with range checking
801 on addresses. Improved error messages.
802 * doc/c-d10v.texi: Added docs for register pairs.
803
804 Mon Aug 26 13:39:27 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
805
806 * config/tc-d10v.c (parallel_ok): Fix bug in parallel
807 checking code.
808
809 end-sanitize-d10v
810 Mon Aug 26 14:38:22 1996 Ian Lance Taylor <ian@cygnus.com>
811
812 * ecoff.c (init_file): Initialize fMerge to 1.
813 (add_file): Restore old file merging code, but only merge files if
814 fMerge is set.
815 (ecoff_directive_loc): Clear fMerge field of current file.
816 (ecoff_generate_asm_lineno): Likewise.
817
818 start-sanitize-d10v
819 Fri Aug 23 11:40:47 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
820
821 * doc/c-d10v.texi: Fix typo.
822
823 end-sanitize-d10v
824 start-sanitize-v850
825 Fri Aug 23 10:41:32 1996 Jeffrey A Law (law@cygnus.com)
826
827 * config/tc-v850.c (md_assemble): Correct bit masking for
828 hi and lo expressions.
829
830 * config/tc-v850.c (md_assemble): Rough cut at demanding
831 "ep" or "r30" in sst and sld instructions.
832 (md_apply_fix3): Don't abort. Just warn that we don't
833 have relocs yet.
834
835 * config/tc-v850.c (CC_NAME_CNT): Define.
836 (cc_name): New function.
837 (md_assemble): Handle V850_OPERAND_CC correctly.
838
839 * config/tc-v850.c (md_assemble): Don't forget to initialize
840 "insn"!
841
842 * config/tc-v850.c (reg_name_search): Generalize to search
843 any given register table.
844 (register_name): Pass appropriate table and size to reg_name_search.
845 (system_register_name): New function.
846 (SYSREG_NAME_CNT): Define.
847 (md_assemble): Handle operands which are system registers.
848
849 * config/tc-v850.c (md_assemble): If we find a register, but the
850 opcode doesn't want a register, then we don't have a match.
851 (md_assemble): Get size of the instruction from the opcode table.
852
853 end-sanitize-v850
854 Thu Aug 22 10:20:30 1996 Ian Lance Taylor <ian@cygnus.com>
855
856 * configure.in: Set and substitute HLDENV.
857 * configure: Rebuild.
858 * Makefile.in (HLDENV): New variable.
859 (as.new): Use $(HLDENV).
860
861 * ecoff.c (ecoff_directive_endef): Avoid a division by zero error
862 if an array dimension is not known.
863
864 start-sanitize-d10v
865 Thu Aug 22 10:50:00 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
866
867 * config/tc-d10v.c: Fix a reloc bug caused by my last change.
868 * doc/c-d10v.texi: Cleanup.
869
870 end-sanitize-d10v
871 start-sanitize-v850
872 Tue Aug 20 15:15:16 1996 J.T. Conklin <jtc@hippo.cygnus.com>
873
874 * config/tc-v850.c: New file.
875 * config/tc-v850.h: New file.
876 * configure (v850-*-elf): New target.
877 * configure.in (v850-*-elf): New target.
878
879 end-sanitize-v850
880 start-sanitize-d10v
881 Wed Aug 21 15:50:54 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
882
883 * doc/c-d10v.texi: New file.
884 * doc/all.texi: Added D10V stuff.
885 * doc/as.texinfo: Added D10V stuff.
886
887 Tue Aug 20 14:10:02 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
888
889 * config/tc-d10v.c: All references to defined symbols should
890 now use the optimal instruction. .float and .double now work.
891
892 end-sanitize-d10v
893 Mon Aug 19 14:41:36 1996 Ian Lance Taylor <ian@cygnus.com>
894
895 * config/obj-coff.c (fixup_segment): Adjust PC relative reloc by
896 section address for the i960 as is done for the i386.
897
898 Thu Aug 15 16:37:59 1996 Stan Shebs <shebs@andros.cygnus.com>
899
900 * mpw-config.in: Add wildcards for config matching, add mips-*-*
901 case, forward-include bfd/elf-bfd.h.
902
903 start-sanitize-d10v
904 Thu Aug 15 13:24:30 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
905
906 * config/tc-d10v.c: Add additional information to the opcode
907 table to help determinine which instructions can be done
908 in parallel.
909
910 end-sanitize-d10v
911 Thu Aug 15 17:01:31 1996 James G. Smith <jsmith@cygnus.co.uk>
912
913 * config/tc-arm.c: Major changes to add Thumb support, with lots
914 of change input from <rearnsha@armltd.co.uk>.
915 Reverted to INSN_SIZE macro, rather than insn_size variable.
916 (insns): Added ARM "bx" instruction support.
917 (tinsns): Added Thumb instruction definition structure.
918 (arm_tops_hsh): Added hash structure for Thumb opcodes.
919 (md_pseudo_table): Added ".arm", ".thumb" and ".code" pseudo-ops.
920 (opcode_select,s_arm,s_thumb,s_code): Added.
921 (decode_shift): Allow upper-case RRX.
922 (do_ldst): Simpler halfword support.
923 (do_ldmstm): Improved.
924 (reg_list, do_bx, thumb_reg, thumb_add_sub, thumb_shift,
925 thumb_mov_compare, thumb_load_store, do_t_arit, do_t_add,
926 do_t_asr, do_t_branch, do_t_bx, do_t_compare, do_t_ldmstm,
927 do_t_ldrb, do_t_ldrh, do_t_lds, do_t_lsl, do_t_lsr, do_t_mov,
928 do_t_push_pop, do_t_str, do_t_strb, do_t_strh, do_t_sub, do_t_swi,
929 do_t_adr): Added.
930 (md_apply_fix3): Add support for BFD_RELOC_ARM_THUMB_* relocations.
931 (md_parse_option): Add support for -mthumb.
932 (md_show_usage): Updated to reflect new command line option.
933 (arm_data_in_code, arm_canonicalize_symbol_name): Added.
934 * config/tc-arm.h: Provide TC_FIX_TYPE to allow private ARM
935 fragment information to be held.
936
937 Thu Aug 15 16:12:00 1996 Richard Earnshaw (rearnsha@armltd.co.uk)
938
939 * tc-arm.c (md_apply_fix3): Also set fixP->fx_done if fx_addsy is
940 non-null, but is a constant.
941 (fix_new_arm): Call make_expr_symbol to make the expression symbol
942 so that error reporting will work correctly.
943
944 Wed Aug 14 10:37:21 1996 Ian Lance Taylor <ian@cygnus.com>
945
946 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust relocs
947 against weak symbols.
948
949 Tue Aug 13 17:39:24 1996 Ian Lance Taylor <ian@cygnus.com>
950
951 * config/tc-ppc.h (TC_FORCE_RELOCTION): Define if OBJ_XCOFF.
952 (ppc_force_relocation): Declare if OBJ_XCOFF.
953 * config/tc-ppc.c (ppc_force_relocation): New function if
954 OBJ_XCOFF.
955
956 Mon Aug 12 16:49:43 1996 Ian Lance Taylor <ian@cygnus.com>
957
958 * config/tc-mips.h (BYTE_ORDER): Don't define. No longer used.
959
960 start-sanitize-d10v
961 Fri Aug 9 17:48:28 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
962
963 * config/tc-d10v.c: Fix problem with relocs.
964
965 end-sanitize-d10v
966 Fri Aug 9 14:16:14 1996 Ian Lance Taylor <ian@cygnus.com>
967
968 * config/tc-sh.c (sh_do_align): If not BFD_ASSEMBLER, always align
969 with nops if not in data_section or bss_section.
970
971 Thu Aug 8 12:32:56 1996 Klaus Kaempf <kkaempf@progis.de>
972
973 Add support for openVMS/Alpha.
974 * as.h (PRINTF_LIKE): Don't define if VMS, for now.
975 * config/obj-evax.c: New file.
976 * config/obj-evax.h: New file.
977 * config/tc-alpha.c: Add support for EVAX format if OBJ_EVAX is
978 defined.
979 * config/tc-alpha.h: Add support for EVAX format if OBJ_EVAX is
980 defined. Add case for bfd_target_evax_flavour.
981 * config/vms-a-conf.h: New file.
982 * conf-a-gas.com: New file.
983 * configure.in: Add target alpha-*-*vms*.
984 * configure: Rebuild.
985 * makefile.vms: New file.
986 * read.c (s_lcomm): Align bss_seg on 8 byte boundary if OBJ_EVAX.
987 Don't call ffs on openVMS/Alpha.
988
989 Wed Aug 7 14:19:03 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
990
991 * configure.in: Make GAS_CHECK_DECL_NEEDED include <string.h> or
992 <strings.h> if they exist. Call GAS_CHECK_DECL_NEEDED on strstr
993 and sbrk.
994 * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
995 (NEED_DECLARATION_SBRK): New macro.
996 * configure, conf.in: Rebuild.
997 * as.h: Only include <strings.h> if HAVE_STRINGS_H.
998 (strstr): Declare if NEED_DECLARATION_STRSTR.
999 * as.c: If HAVE_SBRK and NEED_DECLARATION_SBRK, declare sbrk.
1000
1001 Wed Aug 7 11:50:26 1996 Ian Lance Taylor <ian@cygnus.com>
1002
1003 * symbols.c (resolve_symbol_value): Handle addition or subtraction
1004 by a constant before entering the main switch. Reject attempts to
1005 apply an arithmetic function to non-absolute symbols, except for
1006 the special case of subtraction of two symbols in the same
1007 section.
1008
1009 * config/tc-mips.c (md_section_align): Do align if OBJ_ELF, but
1010 not to more than a 16 byte boundary.
1011
1012 * config/tc-i386.c (tc_gen_reloc): Accept all relocs; remove
1013 #ifndef OBJ_ELF lines. From Eric Valette <valette@crf.canon.fr>.
1014 (tc_gen_reloc): If out of memory call as_fatal rather than
1015 assert. If no howto found, call as_bad_where rather than
1016 as_fatal. Change the error message slightly. Set howto to a
1017 non-NULL value in order to keep going.
1018
1019 start-sanitize-d10v
1020 Tue Aug 6 12:58:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1021
1022 * config/tc-d10v.c: Added code to support 32-bit fixups for stabs.
1023
1024 end-sanitize-d10v
1025 Tue Aug 6 11:15:26 1996 Jeffrey A Law (law@cygnus.com)
1026
1027 * config/tc-h8300.c (get_specific): New operand "size" derived
1028 from ".b", ".w" and ".l" extensions. All callers changed. If
1029 the base instruction has no operands, then use the size to
1030 determine which specific instruction to use.
1031
1032 Mon Aug 5 14:21:10 1996 Ian Lance Taylor <ian@cygnus.com>
1033
1034 * config/tc-i960.c (mem_fmt): Call parse_expr before emit.
1035
1036 Fri Aug 2 11:23:31 1996 Ian Lance Taylor <ian@cygnus.com>
1037
1038 * config/tc-mips.c (md_section_align): Don't change addr if
1039 OBJ_ELF.
1040
1041 Thu Aug 1 23:51:52 1996 Jeffrey A Law (law@cygnus.com)
1042
1043 * config/tc-hppa.c: Revert yesterday's changes.
1044
1045 start-sanitize-d10v
1046 Wed Jul 31 14:46:11 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1047
1048 * config/tc-d10v.c: Disable range checking on 16-bit values.
1049
1050 end-sanitize-d10v
1051 Wed Jul 31 16:27:19 1996 Ian Lance Taylor <ian@cygnus.com>
1052
1053 * config/tc-m68k.c (m68k_ip): Set ok_arch for every instruction,
1054 not just the ones that don't match.
1055
1056 start-sanitize-d10v
1057 Wed Jul 31 11:45:15 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1058
1059 * config/tc-d10v.c: Fixed bugs in short relocs and range checking.
1060
1061 end-sanitize-d10v
1062 Wed Jul 31 15:41:42 1996 James G. Smith <jsmith@cygnus.co.uk>
1063
1064 * config/tc-arm.c: Changed INSN_SIZE to variable insn_size, as
1065 pre-cursor to adding Thumb support. Also added cpu_variant flag
1066 information to each of the asm_flg structures.
1067 (md_parse_option): Updated ARM7 parsing to allow 't' for
1068 thumb/halfword support, aswell as 'm' for long multiply.
1069 (md_show_usage): Updated help message.
1070 (md_assemble): Check that instruction flags are applicated to the
1071 current cpu variant.
1072 (md_apply_fix3, tc_gen_reloc): Add BFD_RELOC_ARM_OFFSET_IMM8 and
1073 BFD_RELOC_ARM_HWLITERAL relocation support for new halfword and
1074 signextension instructions.
1075 (do_ldst): Generate halfword and signextension variants if
1076 mnemonic flags match.
1077 (ldst_extend): Do not allow shifts in the offset field of halfword
1078 or signextension instructions.
1079 (validate_offset_imm): Provide check on halfword and signextension
1080 immediate range.
1081 (add_to_lit_pool): Merge identical literal pool values.
1082
1083 Tue Jul 30 14:28:23 1996 Jeffrey A Law (law@cygnus.com)
1084
1085 * config/tc-hppa.c (selector_table): Add 'E' selector.
1086 (cons_fix_new_hppa): Don't coke on e_esel.
1087 (tc_gen_reloc, SOM version): Handle R_COMP2 when used
1088 to help generate exception handling tables.
1089 (md_apply_fix): Don't try to apply fixups with an e_esel
1090 selector.
1091 (hppa_fix_adjustable): Fixups with e_esel selectors
1092 are not adjustable.
1093
1094 Tue Jul 30 15:51:41 1996 Ian Lance Taylor <ian@cygnus.com>
1095
1096 * config/tc-sparc.c (md_pseudo_table): Add 2byte, 4byte, and 8byte
1097 pseudo-ops.
1098
1099 start-sanitize-d10v
1100 Fri Jul 26 11:43:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1101
1102 * config/tc-d10v.c: Added lots of error checking. Added hacks
1103 to support accumulator shifts.
1104
1105 end-sanitize-d10v
1106 Fri Jul 26 11:56:08 1996 Ian Lance Taylor <ian@cygnus.com>
1107
1108 * symbols.c (S_SET_EXTERNAL): Let .weak override.
1109 (S_CLEAR_EXTERNAL): Likewise.
1110 (S_SET_WEAK): Remove error; just let .weak override.
1111
1112 start-sanitize-d10v
1113 Thu Jul 25 15:22:51 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1114
1115 * config/tc-d10v.c (md_assemble): Now handles multiline
1116 instructions.
1117
1118 Thu Jul 25 12:03:33 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1119
1120 * config/tc-d10v.c: Fix packaging bug. Added range checking.
1121 Added kludge for divs instruction. Fixed minor problem with
1122 multiple text sections.
1123 * config/tc-d10v.h (d10v_cleanup): Change prototype.
1124
1125 Tue Jul 23 10:49:36 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1126
1127 * config/tc-d10v.c (md_apply_fix3): Fix all instruction
1128 addresses to be right-shifted by 2.
1129
1130 Mon Jul 22 11:32:36 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1131
1132 * config/tc-d10v.c: Many changes to get relocs working.
1133 (register_name): No longer creates a symbol for register names.
1134 (pre_defined_registers): moved to opcodes/d10v-opc.c.
1135 (d10v_insert_operand): Now works correctly for either container.
1136 * config/tc-d10v.h (d10v_cleanup): Declare.
1137
1138 end-sanitize-d10v
1139 Mon Jul 22 14:01:33 1996 Ian Lance Taylor <ian@cygnus.com>
1140
1141 * config/tc-mips.c (tc_gen_reloc): BFD_RELOC_PCREL_HI16_S and
1142 BFD_RELOC_PCREL_LO16 are expected to be PC relative.
1143
1144 Mon Jul 22 12:46:55 1996 Richard Henderson <rth@tamu.edu>
1145
1146 * tc-alpha.c: Patches to track current minimum alignment to reduce
1147 the number of fragments created with frag_align.
1148 (alpha_current_align): New static variable.
1149 (s_alpha_text): Reset alignment to 0.
1150 (s_alpha_data, s_alpha_rdata, s_alpha_sdata): Likewise.
1151 (s_alpha_stringer, s_alpha_space): New functions.
1152 (s_alpha_cons, alpha_flush_pending_output): Remove functions.
1153 (alpha_cons_align): New function to replace both of them.
1154 (emit_insn): Only align if alpha_current_align is less than 2;
1155 reset alpha_current_align to 2.
1156 (s_alpha_gprel32): Likewise.
1157 (s_alpha_section): New function. Basically duplicate the other
1158 alpha section change hooks. Only define for ELF.
1159 (s_alpha_float_cons): Simplify alignment handling.
1160 (md_pseudo_table): Only define "rdata" and "sdata" if OBJ_ECOFF.
1161 If OBJ_ELF, define "section", "section.s", "sect", and "sect.s".
1162 Don't define the s_alpha_cons pseudo-ops. Do define
1163 s_alpha_stringer and s_alpha_space pseudo-ops.
1164 (alpha_align): Skip if less than current default alignment. Set
1165 default alignment.
1166 * tc-alpha.h (md_flush_pending_output): Remove.
1167 (md_cons_align): Add.
1168
1169 * tc-alpha.c: Add oodles of function description comments.
1170 (md_bignum_to_chars): Remove; there are no callers.
1171 (md_show_usage): Mention some more variants.
1172
1173 Thu Jul 18 15:54:54 1996 Ian Lance Taylor <ian@cygnus.com>
1174
1175 From Andrew Gierth <ANDREWG@microlise.co.uk>:
1176 * configure.in (sparc-*-sysv4*): New target.
1177 * configure: Rebuild.
1178
1179 * config/tc-sparc.c (md_pseudo_table): Change uahalf, uaword, and
1180 uaxword to use s_uacons.
1181 (sparc_no_align_cons): New static variable.
1182 (s_uacons): New static function.
1183 (sparc_cons_align): If sparc_no_align_cons is set, just clear it
1184 and return.
1185
1186 * config/tc-sparc.c (s_common): Remove unused label allocate_bss.
1187
1188 * configure.in: Add mips-*-irix6* target. Handle Irix 6 like Irix
1189 5 with regard to shared libraries.
1190 * configure: Rebuild.
1191
1192 * config/tc-m68k.c (m68k_ip): Use the correct length when
1193 allocating space for the unsupported architecture error message.
1194
1195 start-sanitize-d10v
1196 Thu Jul 18 12:57:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1197
1198 * configure.in (d10v-*-*): Allow d10v-*-*, don't require d10v-*-elf*.
1199
1200 Wed Jul 17 14:25:13 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1201
1202 * config/tc-d10v.c: New file.
1203 * config/tc-d10v.h: New file.
1204 * configure (d10v-*-elf): New target.
1205 * configure.in (d10v-*-elf): New target.
1206 end-sanitize-d10v
1207
1208 Fri Jul 12 20:54:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1209
1210 * config/tc-ppc.c (md_parse_option): Recognize -K PIC.
1211
1212 Wed Jul 10 12:39:08 1996 Richard Henderson <rth@tamu.edu>
1213
1214 * config/tc-alpha.c (alpha_align): Change fill parameter
1215 to a pointer. Take NULL as 0 or nop depending on section. Change
1216 all callers.
1217 (s_alpha_align): Rename local variables.
1218
1219 * doc/as.texinfo (.align): Document action of omitted
1220 fill parameter.
1221
1222 Wed Jul 10 00:23:30 1996 Ian Lance Taylor <ian@cygnus.com>
1223
1224 * config/tc-ppc.c (md_apply_fix3): Give a useful error message
1225 when an unsupported PC relative reloc is seen, rather than calling
1226 abort.
1227
1228 * app.c (do_scrub_chars): Remove not_cpp_line local variable.
1229 Instead, check state when '#' comment is seen.
1230
1231 Mon Jul 8 14:11:49 1996 Ian Lance Taylor <ian@cygnus.com>
1232
1233 * config/tc-mips.c (mips_regmask_frag): Only define if OBJ_ELF or
1234 OBJ_MAYBE_ELF.
1235 (tc_gen_reloc): If fixup was changed to be PC relative, change
1236 reloc type accordingly. Use name of reloc in error message.
1237
1238 * as.h: Don't define const or volatile.
1239 * flonum.h: Don't define const.
1240
1241 * config/tc-m68k.c (tc_gen_reloc): Change the code appropriately
1242 if fx_pcrel is set. Correct setting the addend case in the
1243 OBJ_ELF case (from Andreas Schwab
1244 <schwab@issan.informatik.uni-dortmund.de>).
1245 (md_show_usage): Correct -mfc5200 to -m5200.
1246
1247 Fri Jul 5 10:32:58 1996 J.T. Conklin <jtc@rtl.cygnus.com>
1248
1249 * doc/c-m68k.texi: Document -m5200 flag.
1250 * doc/as.texinfo: Likewise.
1251
1252 * config/tc-m68k.c (m68k_ip): The coldfire does not support 8x
1253 scale factor.
1254
1255 Fri Jul 5 11:07:24 1996 Ian Lance Taylor <ian@cygnus.com>
1256
1257 * symbols.c (S_SET_EXTERNAL): Change as_warn to as_bad.
1258 (S_CLEAR_EXTERNAL, S_SET_WEAK): Likewise.
1259
1260 Thu Jul 4 11:59:46 1996 Ian Lance Taylor <ian@cygnus.com>
1261
1262 * Makefile.in (VERSION): Set to cygnus-2.7.1.
1263
1264 * Released binutils 2.7.
1265
1266 Thu Jul 4 10:11:33 1996 James G. Smith <jsmith@cygnus.co.uk>
1267
1268 * config/tc-mips.c (mips_ip): Only perform range check when
1269 dealing with O_constant expressions.
1270
1271 Wed Jul 3 15:02:21 1996 J.T. Conklin <jtc@rtl.cygnus.com>
1272
1273 * m68k-parse.h (m68k_register): Add new coldfile control
1274 registers.
1275
1276 * config/tc-m68k.c (mcf5200_control_regs): New variable,
1277 array of control registers for the coldfire.
1278 (cpu_of_arch): Added mcf5200.
1279 (archs): Added mcf5200.
1280 (init_table): Add new control registers.
1281 (m68k_ip): Added support for new control registers.
1282 (m68k_init_after_args): Likewise.
1283
1284 * config/tc-m68k.c (md_show_usage): Add -m5200 to usage text.
1285
1286 Wed Jul 3 16:05:50 1996 Ian Lance Taylor <ian@cygnus.com>
1287
1288 * read.h (is_it_end_of_statement): Declare.
1289 * read.c (is_it_end_of_statement): Remove declaration.
1290
1291 * config/tc-ppc.c (ppc_elf_suffix): Correct parenthesization of ||
1292 within &&.
1293 (md_assemble): Fix handling of @l with an unsigned constant. Add
1294 default case to reloc switch.
1295
1296 * config/tc-i386.h (AOUT_MACHTYPE): Define as 0 if TE_386BSD.
1297
1298 Based on patches from Tom Quiggle <quiggle@sgi.com>:
1299 * ecoff.c (last_lineno): New static variable.
1300 (add_procedure): Set last_lineno.
1301 (ecoff_directive_loc): Likewise.
1302 (ecoff_generate_asm_lineno): Likewise.
1303 (ecoff_fix_loc): New function.
1304 * ecoff.h (ecoff_fix_loc): Declare.
1305 * config/tc-mips.c (append_insn): When inserting nops, and using
1306 ECOFF debugging, call ecoff_fix_loc.
1307
1308 Tue Jul 2 23:02:12 1996 Jeffrey A Law (law@cygnus.com)
1309
1310 * config/tc-h8300.c (build_bytes): If an operand type is
1311 marked as SRC_IN_DST retrieve it from the "destination" op.
1312
1313 Sat Jun 29 13:38:31 1996 Ian Lance Taylor <ian@cygnus.com>
1314
1315 * configure.in (arm-*-riscix*): Set emulation to riscix.
1316 * configure: Rebuild.
1317 * config/te-riscix.h: New file to define TE_RISCIX.
1318
1319 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Define.
1320
1321 Fri Jun 28 15:14:31 1996 Ian Lance Taylor <ian@cygnus.com>
1322
1323 * Makefile.in (config.status): Just run config.status as other
1324 tools do.
1325
1326 Fri Jun 28 11:09:38 1996 Stan Shebs <shebs@andros.cygnus.com>
1327
1328 * mpw-config.in (TARGET_OS): Add definition to conf.
1329
1330 Thu Jun 27 20:39:40 1996 James G. Smith <jsmith@cygnus.co.uk>
1331
1332 * config/tc-mips.c (append_insn): Parenthesize
1333 cop_interlocks expressions.
1334
1335 Thu Jun 27 12:18:26 1996 Ian Lance Taylor <ian@cygnus.com>
1336
1337 * listing.c (listing_print): Close the listing file if it is not
1338 stdout. Close the other files opened for the listing.
1339
1340 * config/tc-sparc.h (md_cons_align): Define.
1341 (sparc_cons_align): Declare.
1342 (HANDLE_ALIGN): Define.
1343 (sparc_handle_align): Declare.
1344 * config/tc-sparc.c (sparc_cons_align): New function.
1345 (sparc_handle_align): New function.
1346 * read.c (cons_worker): Call md_cons_align if it is defined.
1347
1348 * as.h (struct frag): Add fr_file and fr_line fields.
1349 * frags.c (frag_new): Set fr_file and fr_line.
1350 (frag_var): Likewise.
1351 (frag_variant): Likewise.
1352
1353 * as.h (struct frag): Remove unused align_mask and align_offset
1354 fields.
1355
1356 * listing.c (calc_hex): Offset by fr_fix when examining fr_var.
1357 From <uddeborg@carmen.se>.
1358
1359 Wed Jun 26 13:21:34 1996 Ian Lance Taylor <ian@cygnus.com>
1360
1361 * configure.in (mips-*-osf*): New target.
1362 * configure: Rebuild.
1363
1364 * config/tc-m68k.c: Add 68ec060 as a synonym for 68060.
1365
1366 Wed Jun 26 16:23:08 1996 James G. Smith <jsmith@cygnus.co.uk>
1367
1368 * config/tc-mips.c: Added cop_interlocks, to avoid NOP insertion
1369 between co-processor comparisons and branches for the VR4300.
1370
1371 Mon Jun 24 18:02:50 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1372
1373 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
1374 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
1375 (docdir): Removed.
1376 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1377 * doc/Makefile.in (bindir, libdir, datadir, mandir, infodir,
1378 includedir): Use autoconf set values.
1379 (docdir): Removed.
1380
1381 Mon Jun 24 11:58:14 1996 Ian Lance Taylor <ian@cygnus.com>
1382
1383 * listing.c (listing_eject): Don't do anything if listing is 0.
1384 (listing_list): Likewise.
1385 (listing_source_line): Likewise.
1386 (listing_title): Don't save title if listing is 0.
1387 (listing_source_file): Check listing rather than listing_tail.
1388
1389 * configure.in: On alpha*-*-osf*, link against libbfd.a if not
1390 using shared libraries.
1391 * configure: Rebuild.
1392
1393 Fri Jun 21 18:22:23 1996 Ian Lance Taylor <ian@cygnus.com>
1394
1395 * config/tc-mips.c (mips_ip): In case 'i'/'j', don't require an
1396 absolute expression if a relocation type was specified.
1397
1398 Fri Jun 21 17:40:16 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
1399
1400 * configure.in: Add support for *-*-rtems* configurations.
1401 * configure: Rebuild.
1402
1403 Fri Jun 21 16:01:18 1996 Richard Henderson <rth@tamu.edu>
1404
1405 * configure.in: Add alpha-*-linuxecoff* target. Use elf for
1406 alpha-*-linux* target. Force bfd_gas for alpha-*. Require
1407 opcodes library for alpha.
1408 * configure: Rebuild with autoconf 2.10.
1409 * config/tc-alpha.c: Substantial rewrite to add ELF support and
1410 use new opcode table.
1411 * config/tc-alpha.h (md_undefined_symbol): Don't define.
1412 (LOCAL_LABEL): Define differently if OBJ_ELF.
1413 (FAKE_LABEL_NAME): Define if OBJ_ELF.
1414 * config/alpha-opcode.h: Remove.
1415 * config/obj-elf.h: If TC_ALPHA, define ECOFF_DEBUGGING.
1416 * Makefile.in (TARG_CPU_DEP_alpha): Depend upon
1417 include/opcode/alpha.h rather than config/alpha-opcode.h.
1418
1419 Thu Jun 20 19:10:28 1996 Ian Lance Taylor <ian@cygnus.com>
1420
1421 * config/obj-aout.c (obj_emit_relocations): Give an error if the
1422 relocation symbol was not resolved.
1423 * config/obj-coff.c (do_relocs_for): Likewise.
1424
1425 * write.c (adjust_reloc_syms): Refetch the symbol section after
1426 calling S_GET_VALUE, since it may have changed.
1427
1428 * expr.c (struct expr_symbol_line): Define.
1429 (expr_symbol_lines): New static variable.
1430 (make_expr_symbol): Add entry to expr_symbol_lines.
1431 (expr_symbol_where): New function.
1432 * expr.h: Use extern on function declarations.
1433 (expr_symbol_where): Declare.
1434 * symbols.c (resolve_symbol_value): Try to use expr_symbol_where
1435 rather than printing the meaningless name of an expression
1436 symbol.
1437
1438 Thu Jun 20 15:57:41 1996 Ken Raeburn <raeburn@cygnus.com>
1439
1440 * config/tc-i386.c (md_number_to_chars): Deleted.
1441 * config/tc-i386.h (md_number_to_chars): New macro.
1442
1443 * config/tc-alpha.c (build_operate_n, build_mem): Moved earlier in
1444 the file.
1445 (load_symbol_address, load_expression): Use build_mem.
1446 (build_operate): New function.
1447 (emit_addq_r): Use it.
1448
1449 Wed Mar 13 22:14:14 1996 Pat Rankin <rankin@eql.caltech.edu>
1450
1451 * symbols.c (colon): #if VMS, use S_SET_OTHER to store `const_flag'.
1452
1453 Tue Mar 5 14:31:45 1996 Pat Rankin <rankin@eql.caltech.edu>
1454
1455 * config/tc-vax.h (NOP_OPCODE): Define.
1456
1457 Sun Feb 4 21:01:03 1996 Pat Rankin <rankin@eql.caltech.edu>
1458
1459 * config/obj-vms.h (S_IS_COMMON): Define.
1460 (S_IS_LOCAL): Check for \002 as well as \001.
1461 (LONGWORD_ALIGNMENT): New macro.
1462 (SUB_SEGMENT_ALIGN): Use it.
1463
1464 Fri Jan 26 17:44:09 1996 Pat Rankin <rankin@eql.caltech.edu>
1465
1466 * config/vms-conf.h: Reconcile with conf.in.
1467
1468 Wed Jun 19 11:31:50 1996 Ian Lance Taylor <ian@cygnus.com>
1469
1470 * write.c (is_dnrange): Only define if TC_GENERIC_RELAX_TABLE is
1471 defined.
1472
1473 * doc/as.texinfo: Document that any number of hex digits can
1474 follow \x.
1475
1476 * as.c (struct defsym_list): Define.
1477 (defsyms): New static variable.
1478 (parse_args): Just put --defsym arguments on defsyms list, rather
1479 than defining them.
1480 (main): Define defsyms after output file is created.
1481
1482 * config/tc-m68k.c (m68k_ip): Reject PRE and POST indexing mode on
1483 cpu32. From Eric Norum <Eric.Norum@usask.ca>.
1484
1485 * config/tc-mips.c (mips_ip): In cases 'I', 'i', and 'j', set
1486 insn_error rather than calling check_absolute_expr.
1487
1488 * as.c (emulation_name): Remove unused static variable.
1489 (default_emul_bfd_name): Add return NULL to avoid warning.
1490 * ecoff.c (ecoff_stab): Remove unused variables name and
1491 name_end.
1492 * frags.c (frag_new): Remove unused variable tmp.
1493 * hash.c (hash_grow): Parenthesize + within <<.
1494 (hash_print_statistics): Use %lu, not %d, to print unsigned
1495 long variables.
1496 * messages.c: Include "libiberty.h".
1497 (fprint_value): Add cast to avoid printf warning.
1498 (sprint_value): Likewise.
1499 * read.c: Include "ecoff.h".
1500 (emit_expr): Add casts to avoid printf warnings.
1501 * read.h: Use extern for function declarations.
1502 (pop_insert): Declare.
1503 * stabs.c: Include "ecoff.h".
1504 * subsegs.c (subseg_set_rest): Remove unused variables tmp,
1505 former_last_fragP, and new_fragP.
1506 * subsegs.h (subsegs_print_statistics): Declare.
1507 * symbols.c (debug_verify_symchain): Change macro to discard
1508 arguments.
1509 * write.c (dump_section_relocs): Likewise.
1510 * write.h: Use extern for function declarations.
1511 (write_print_statistics): Declare.
1512 * config/e-mipsecoff.c (mipsecoff_bfd_name): Return NULL to avoid
1513 warning.
1514 * config/e-mipself.c (mipself_bfd_name): Likewise.
1515 * config/obj-elf.h (elf_ecoff_set_ext): Declare.
1516
1517 * config/tc-sparc.h (TC_RELOC_RTSYM_LOC_FIXUP): If OBJ_ELF, always
1518 emit relocations against external symbols.
1519
1520 * config/tc-alpha.c (tc_gen_reloc): Output a sensible error
1521 message if bfd_reloc_type_lookup fails, rather than calling
1522 assert.
1523
1524 * config/tc-alpha.c (alpha_force_relocation): Add
1525 BFD_RELOC_12_PCREL to switch.
1526
1527 Tue Jun 18 20:29:57 1996 Doug Evans <dje@canuck.cygnus.com>
1528
1529 * config/tc-i386.h (LOCAL_LABEL,FAKE_LABEL_NAME): Use defaults for
1530 TE_PE (Lfoo, not .Lfoo).
1531
1532 Tue Jun 18 17:13:33 1996 Ian Lance Taylor <ian@cygnus.com>
1533
1534 * read.c (s_fill): Don't warn about a zero repeat count.
1535
1536 * config/tc-mips.c (mips_ip): Don't warn about using AT as a
1537 coprocessor register.
1538
1539 * config/tc-i386.c (md_assemble): When checking the size of a
1540 register to set the size of an instruction, do a bitwise and with
1541 Reg8 and Reg16 rather than requiring the type to be exactly Reg8
1542 or Reg16.
1543
1544 Tue Jun 18 13:19:51 1996 Jeffrey A. Law <law@rtl.cygnus.com>
1545
1546 * config/tc-h8300.c (parse_reg): Tweak error messages.
1547 (build_bytes): Likewise.
1548 (skip_colonthing): Handle :32 suffix.
1549 (get_specific): Promote L_24 to L_32 if it makes a match.
1550 Don't always promote L_8 to L_16.
1551 (do_a_fix_imm): Clean up L_32 and L_24 handling.
1552
1553 * config/tc-h8300.c (Smode): New variable.
1554 (h8300hmode): Turn off Hmode.
1555 (h8300smode): New function. Turn on Smode and Hmode.
1556 (md_pseudo_table): New ".h8300s" pseudo-op.
1557 (parse_reg): Handle "exr" register.
1558 (get_operand): Handle bizarre syntax for "stm.l" and "ldm.l".
1559 Handle "mach" and "machl" operands for ldmac.
1560 (get_specific): Handle "stm.l" and "ldm.l".
1561 (build_bytes): Handle "stm.l" and "ldm.l"; handle MACREG operands.
1562 * config/tc-h8300.h (COFF_MAGIC): Handle H8/S magic number.
1563 (Smode): Declare.
1564
1565 Mon Jun 17 15:50:53 1996 J.T. Conklin <jtc@rtl.cygnus.com>
1566
1567 * doc/as.texinfo: Reorder chapter of machine dependent options so
1568 that it is sorted by chip name.
1569
1570 * doc/as.texinfo: Use consistant spelling of Vax.
1571 * doc/c-vax.texi: Likewise.
1572
1573 Mon Jun 17 11:26:56 1996 Jeffrey A. Law <law@rtl.cygnus.com>
1574
1575 * config/tc-hppa.c (md_pseudo_table): Add ".begin_try" and ".end_try"
1576 pseudo ops.
1577 (tc_gen_reloc, SOM version): Handle R_BEGIN_TRY and R_END_TRY.
1578 (md_apply_fix): Likewise.
1579 (pa_try): New function.
1580 (hppa_force_relocation): Force relocs for BEGIN_TRY and END_TRY.
1581
1582 Sun Jun 16 22:57:47 1996 Jeffrey A. Law <law@rtl.cygnus.com>
1583
1584 * config/tc-hppa.c (md_pseudo_table): Add ".level" pseudo op.
1585 (pa_level): New function.
1586
1587 Fri Jun 14 20:06:44 1996 Ian Lance Taylor <ian@cygnus.com>
1588
1589 * listing.c (listing_newline): Don't do anything if listing is 0.
1590
1591 Thu Jun 13 17:50:54 1996 Ian Lance Taylor <ian@cygnus.com>
1592
1593 * subsegs.c (section_symbol): If symbol_table_frozen is set, call
1594 symbol_create, not symbol_new.
1595
1596 Wed Jun 12 14:10:44 1996 Ian Lance Taylor <ian@cygnus.com>
1597
1598 * write.c (adjust_reloc_syms): Don't set sy_used_in_reloc for an
1599 absolute symbol unless TC_FORCE_RELOCATION returns true.
1600
1601 * config/obj-coff.c (previous_file_symbol): Remove BFD_ASSEMBLER
1602 version.
1603 (c_dot_file_symbol): BFD_ASSEMBLER version: Don't set the value of
1604 the symbol to a pointer. Don't set previous_file_symbol.
1605 Simplify symbol list rearrangement.
1606 (coff_frob_symbol): Don't do anything with C_FILE symbols.
1607 (coff_adjust_symtab): Don't check previous_file_symbol.
1608
1609 Mon Jun 10 14:52:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1610
1611 * config/tc-ppc.c (ppc_elf_lcomm): New function for .lcomm
1612 directive.
1613 (md_pseudo_table): Add ppc_elf_lcomm.
1614
1615 Mon Jun 10 11:45:51 1996 Ian Lance Taylor <ian@cygnus.com>
1616
1617 * config/tc-m68k.c (m68k_ip): Accept ABSL for 'O', so that `bfextu
1618 d0{24:1},d0' works without an immediate prefix on the bit numbers.
1619 (md_begin): Add digits to alt_notend_table.
1620 (md_parse_option): Make s a const pointer.
1621
1622 * config/tc-sparc.c (md_pseudo_table): Add "empty".
1623 (s_empty): New static function.
1624
1625 * config/obj-coff.c (struct filename_list): Only define if not
1626 BFD_ASSEMBLER.
1627 (filename_list_head, filename_list_tail): Likewise.
1628 (c_section_symbol): Remove unused BFD_ASSEMBLER version.
1629 (obj_coff_endef, BFD_ASSEMBLER version): Don't set the debugging
1630 flag for C_MOS, C_MOE, C_MOU, or C_EOS symbols, since they should
1631 have a section of N_ABS rather than N_DEBUG. If we do a merge,
1632 remove the new symbol from the list.
1633 (obj_coff_endef, both versions): Call tag_insert even if there is
1634 an old symbol with the same name, if the old symbol does not
1635 happen to be a tag.
1636 (coff_frob_symbol): Check SF_GET_TAG, C_EOF, and C_FILE outside of
1637 the SF_GET_DEBUG condition. Don't call SA_SET_SYM_ENDNDX with a
1638 symbol that will be moved to the end of the symbol list.
1639 (coff_adjust_section_syms): Always call section_symbol for .text,
1640 .data, and .bss.
1641 (coff_frob_section): Likewise. Also, remove unused variable
1642 strname.
1643
1644 * config/tc-ns32k.c (convert_iif): Call frag_grow rather than
1645 manipulating frags directly.
1646 (md_number_to_field): Adjust mem_ptr correctly if ENDIAN is
1647 defined.
1648
1649 * app.c (do_scrub_chars): If '/' is LINE_COMMENT_START, check
1650 whether the next character is '*' before checking whether we are
1651 at the start of a line. Permit LINE_COMMENT_START to start a
1652 comment in state 1 (seen some whitespace) as well, to match the
1653 documentation.
1654
1655 * gasp.c (do_align): Permit a fill value for .align.
1656
1657 Wed Jun 5 17:09:26 1996 Ian Lance Taylor <ian@cygnus.com>
1658
1659 * read.c (next_char_of_string): Warn if a newline is seen in the
1660 middle of a string. Call bump_line_counters when appropriate.
1661
1662 Wed Jun 5 17:08:36 1996 Richard Henderson <rth@tamu.edu>
1663
1664 * symbols.c (colon): Use LOCAL_LABEL.
1665
1666 Tue Jun 4 10:55:16 1996 Tom Tromey <tromey@csk3.cygnus.com>
1667
1668 * Makefile.in (install): Don't check to see if tooldir exists.
1669 Make $(tooldir) and $(tooldir)/bin.
1670
1671 Tue Jun 4 10:14:53 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1672
1673 * config/ppc-sol.mt (TDEFINES): Don't turn on -mregnames by
1674 default.
1675
1676 Mon Jun 3 11:34:41 1996 Ian Lance Taylor <ian@cygnus.com>
1677
1678 * config/tc-mips.c (mips_ip): Don't call as_warn if we are setting
1679 insn_error. Don't put the string "ERROR" in insn_error. Set
1680 insn_error rather than calling as_warn for an unsupported opcode.
1681
1682 Sat Jun 1 21:51:55 1996 Ian Lance Taylor <ian@cygnus.com>
1683
1684 * config/tc-mips.c (md_parse_option): Check for a 64 bit format
1685 before permitting -64.
1686 * output-file.c (output_file_create): Remove duplicate
1687 bfd_perror.
1688
1689 Fri May 31 01:08:06 1996 Ian Lance Taylor <ian@cygnus.com>
1690
1691 * config/tc-mips.c (md_begin): If -64, create a .MIPS.options
1692 section rather than a .reginfo section.
1693 (mips_elf_final_processing): If -64, write out 64 bit RegInfo
1694 information.
1695
1696 * config/tc-mips.c (load_register): If mips_isa < 3, permit a 32
1697 bit value with the high bit set.
1698
1699 Thu May 30 19:00:19 1996 Ian Lance Taylor <ian@cygnus.com>
1700
1701 * read.c (s_lcomm): Set section flags for .sbss section.
1702
1703 * config/tc-mips.c (mips_64): New static variable.
1704 (mips_target_format): If mips_64, return elf64 targets rather than
1705 elf32 ones.
1706 (md_longopts): Add "32" and "64".
1707 (md_parse_option): Handle -32 and -64.
1708 (md_show_usage): Mention -32 and -64.
1709 (cons_fix_new_mips): If mips_64, don't convert an 8 byte reloc to
1710 a 4 byte one.
1711
1712 Thu May 30 10:36:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1713
1714 * config/tc-ppc.c (comment_chars): Make '!' a comment character
1715 for Solaris compatibility.
1716
1717 * stabs.c (s_stab_generic): Under PowerPC Solaris, convert a
1718 .stabd with 4 arguments into a .stabn.
1719
1720 Wed May 29 16:43:16 1996 Ian Lance Taylor <ian@cygnus.com>
1721
1722 * config/tc-mips.c (macro): When passing X_add_number to
1723 macro_build, cast it to int first.
1724
1725 Tue May 28 13:29:39 1996 Ian Lance Taylor <ian@cygnus.com>
1726
1727 * config/tc-z8k.c (md_apply_fix): Handle fx_r_type of 0, as
1728 created by emit_expr.
1729
1730 * symbols.c (symbol_create): If bfd_make_empty_symbol fails, call
1731 as_perror rather than assert.
1732
1733 Fri May 24 18:24:11 1996 Ian Lance Taylor <ian@cygnus.com>
1734
1735 * config/tc-mips.c (mips_ip): Mark sections created to hold
1736 floating point information as read only.
1737
1738 Fri May 24 12:07:54 1996 David Edelsohn <edelsohn@mhpcc.edu>
1739
1740 * config/tc-ppc.c (ppc_set_cpu): Change defaults to match AIX.
1741
1742 Thu May 23 17:34:24 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1743
1744 * read.c (potable): Add .skip as a synonym for .space.
1745
1746 * stabs.c (s_stab_generic): For PowerPC ELF, allow .stabd to take
1747 4 arguments, providing the 4th argument is 0, to allow
1748 compatibility with the Solaris assembler.
1749
1750 Thu May 16 15:51:48 1996 Ian Lance Taylor <ian@cygnus.com>
1751
1752 * config/tc-sh.h (struct sh_segment_info_type): Define.
1753 (TC_SEGMENT_INFO_TYPE): Define.
1754 (sh_frob_label): Declare.
1755 (tc_frob_label): Define.
1756 (sh_flush_pending_output): Declare.
1757 (md_flush_pending_output): Define.
1758 * config/tc-sh.c (md_assemble): If relaxing, emit a R_SH_CODE
1759 reloc before the instruction if necessary.
1760 (sh_frob_label): New function.
1761 (sh_flush_pending_output): New function.
1762 (sh_coff_frob_file): Ignore ALIGN, CODE, DATA, and LABEL relocs
1763 when looking for the reloc for the target of .uses.
1764 (md_convert_frag): Fix printf format (%0xlx to 0x%lx).
1765 (sh_force_relocation): Force CODE, DATA, and LABEL relocs to be
1766 emitted.
1767 (md_apply_fix): Ignore CODE, DATA, and LABEL relocs.
1768 (sh_coff_reloc_mangle): Force CODE, DATA, and LABEL relocs to use
1769 the absolute symbol.
1770
1771 * subsegs.h (segment_info_type): Add tc_segment_info_data field if
1772 TC_SEGMENT_INFO_TYPE is defined.
1773
1774 Wed May 15 12:23:53 1996 Ian Lance Taylor <ian@cygnus.com>
1775
1776 * config/tc-i386.c (md_assemble): Make sure the opcode suffix
1777 matches the register size.
1778
1779 Wed May 15 08:33:37 1996 Jeffrey A Law (law@cygnus.com)
1780
1781 * config/obj-coff.c (count_entries_in_chain): Ignore Fixups with
1782 fx_done set.
1783 (do_relocs_for): Likewise.
1784 (fixup_segment): Don't just quit if linkrelax is set. Try to
1785 apply non pc-relative sym1-sym2 fixups, even if linkrelax is
1786 nonzero.
1787
1788 Fri May 10 14:16:59 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1789
1790 * config/tc-ppc.c (ppc_elf_validate_fix): Allow GOT and section
1791 relative relocations with -mrelocatable. Also allow unfixed
1792 relocs in .ex_shared.
1793
1794 Tue May 7 11:24:10 1996 Ian Lance Taylor <ian@cygnus.com>
1795
1796 * config/obj-coff.c (yank_symbols): Check that FNAME_OFFSET is
1797 non-zero before assuming this is a long file name.
1798 (w_strings): Likewise.
1799 (c_dot_file_symbol): Set FNAME_OFFSET to 1 for a long file name.
1800
1801 * config/obj-coff.c (w_strings): Move declaration of i inside
1802 #ifdef block which uses it.
1803
1804 Tue May 7 00:49:58 1996 Jeffrey A Law (law@cygnus.com)
1805
1806 * config/tc-h8300.c (do_a_fix_imm): Rename last argument to
1807 "relaxmode". Output relocs which identify various relaxing
1808 possibilities for mov.[bwl] instructions.
1809 (build_bytes): Pass in a relaxing mode to do_a_fix_imm.
1810
1811 Mon May 6 15:26:28 1996 Doug Evans <dje@canuck.cygnus.com>
1812
1813 * config/tc-arm.h (TC_HANDLES_FX_DONE): Define.
1814 (MD_APPLY_FIX3): Define.
1815 * config/tc-arm.c (my_get_expression): Only watch for bad segments
1816 if OBJ_AOUT.
1817 (md_apply_fix3): Renamed from md_apply_fix.
1818 If pcrel reloc and symbol is in different section, undo effects
1819 of md_pcrel_from.
1820
1821 Sat May 4 12:49:35 1996 Jeffrey A Law (law@cygnus.com)
1822
1823 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust
1824 any reloc with an LR% or RR% field selector for SOM.
1825
1826 Sat May 4 11:26:19 1996 Ian Lance Taylor <ian@cygnus.com>
1827
1828 * Makefile.in: Add subsegs.h to appropriate TARG_CPU_DEP_*
1829 variables.
1830
1831 Fri May 3 17:58:31 1996 Ian Lance Taylor <ian@cygnus.com>
1832
1833 * config/obj-coff.c (coff_frob_symbol): Don't merge a symbol with
1834 SF_GET_STATICS set.
1835 (yank_symbols): Likewise.
1836
1837 Wed May 1 13:38:17 1996 Ian Lance Taylor <ian@cygnus.com>
1838
1839 * subsegs.h (segment_info_type): If MANY_SEGMENTS and not
1840 BFD_ASSEMBLER, add name field.
1841 * config/obj-coff.c: Include "libiberty.h".
1842 (coff_header_append): Handle long section names.
1843 (crawl_symbols): Just use the name field for the symbol name,
1844 without worrying about null byte termination.
1845 (w_strings): Handle long section names.
1846 (write_object_file): Likewise. Also, use the name field, rather
1847 than scnhdr.s_name.
1848 (obj_coff_add_segment): Permit long section names.
1849 (obj_coff_init_stab_section): Use the name field, rather than
1850 scnhdr.s_name.
1851 (adjust_stab_section): Likewise.
1852 * config/te-pe.h (COFF_LONG_SECTION_NAMES): Define.
1853
1854 * config/tc-i960.c (brtab_emit): Don't set fx_im_disp field.
1855 (mem_fmt): Likewise.
1856 (md_apply_fix): Don't check fx_im_disp field.
1857
1858 Thu Apr 25 11:39:51 1996 Ian Lance Taylor <ian@cygnus.com>
1859
1860 * configure.in: Add * after sparc*-*-vxworks.
1861 * configure: Rebuild.
1862
1863 * app.c (do_scrub_begin): If tc_comment_chars is not defined,
1864 define it to comment_chars. Use tc_comment_chars rather than
1865 comment_chars.
1866 (do_scrub_chars): Use tc_comment_chars rather than comment_chars.
1867 * config/tc-m68k.h (tc_comment_chars): Define.
1868 (m68k_comment_chars): Declare.
1869 * config/tc-m68k.c (m68k_comment_chars): Rename from
1870 comment_chars. Change into a pointer rather than an array.
1871 (md_longopts): Add "bitwise-or".
1872 (md_parse_option): Handle OPTION_BITWISE_OR.
1873 (md_show_usage): Mention --bitwise-or.
1874 * doc/c-m68k.texi: Document --bitwise-or.
1875
1876 Wed Apr 24 11:28:38 1996 Ian Lance Taylor <ian@cygnus.com>
1877
1878 * config/tc-m68k.c (m68k_ip): Prevent attempts to use long offsets
1879 in 68000 mode.
1880
1881 * config/obj-coff.c (obj_coff_section): BFD_ASSEMBLER version:
1882 call demand_empty_rest_of_line. Non BFD_ASSEMBLER version:
1883 correct handling of input line pointer, and call
1884 demand_empty_rest_of_line.
1885
1886 Mon Apr 22 18:02:37 1996 Doug Evans <dje@blues.cygnus.com>
1887
1888 * config/tc-sparc.c (in_bitfield_range): New static function.
1889 (sparc_ip): New cases X,Y. Use SPARC_OPCODE_ARCH_V9_P.
1890 (md_apply_fix, cases BFD_RELOC_32_PCREL_S2,
1891 BFD_RELOC_SPARC_{WDISP16,WDISP19}): Fix undefined code.
1892 (md_apply_fix): New cases BFD_RELOC_SPARC_[56].
1893 (tc_gen_reloc): New cases BFD_RELOC_SPARC_[56].
1894
1895 Thu Apr 18 18:58:33 1996 Ian Lance Taylor <ian@cygnus.com>
1896
1897 * config/obj-coff.c: BFD_ASSEMBLER:
1898 (coff_last_bf): New static variable.
1899 (coff_frob_symbol): Set endndx of a .bf symbol.
1900 Non BFD_ASSEMBLER:
1901 (obj_coff_endef): Call SF_SET_PROCESS on a .bf symbol.
1902 (last_bfP): New static variable.
1903 (yank_symbols): Set endndx of a .bf symbol.
1904
1905 Thu Apr 18 11:53:58 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1906
1907 * config/tc-ppc.c (md_parse_option): Add support for Solaris's -le
1908 and -s options. Add -be for good measure.
1909
1910 Wed Apr 17 12:31:01 1996 Ian Lance Taylor <ian@cygnus.com>
1911
1912 * read.c (s_space): Support non-constant fill value. Handle fill
1913 value correctly for a size other than 1.
1914
1915 Tue Apr 16 15:17:40 1996 Doug Evans <dje@canuck.cygnus.com>
1916
1917 * config/tc-arm.c (my_get_float_expression): Update call to
1918 gen_to_words, X_PRECISION changed from 6 to 5.
1919
1920 Tue Apr 16 10:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1921
1922 * config/tc-ppc.c (register_name,reg_name_search): Move register
1923 name lookup from PE specific code to all targets. Add support for
1924 -mregnames/-mno-regnames to control whether register names are
1925 expanded or not.
1926 (md_assemble): Call register_name for all platforms.
1927 (md_parse_option): Add support for -mregnames/-mno-regnames.
1928
1929 * configure.in (powerpcle*-*-solaris): Add support.
1930 (powerpc*-*-linux): Ditto.
1931 * configure: Regenerate.
1932
1933 * config/ppc-sol.mt: New config file for PowerPC Solaris.
1934
1935 Mon Apr 15 12:26:33 1996 Ian Lance Taylor <ian@cygnus.com>
1936
1937 * config/tc-mips.c (mips_frob_file): Permit multiple %hi relocs to
1938 be associated with a single %lo reloc.
1939
1940 * config/tc-mips.c (load_address): Cast X_add_number to valueT
1941 before comparing against MAX_GPREL_OFFSET, so that negative
1942 numbers are handled correctly.
1943 (macro): Likewise.
1944
1945 Thu Apr 11 12:39:02 1996 Ian Lance Taylor <ian@cygnus.com>
1946
1947 * config/tc-sparc.c (last_insn): New static variable.
1948 (md_assemble): Warn about putting floating point branches in a
1949 delay slot. If architecture is less than v9, insert NOP
1950 instructions between floating point instructions and floating
1951 point branches. (The SunOS assembler does both these operations.)
1952 Save the last instruction opcode.
1953 (sparc_ip): Add pinsn parameter. Change caller.
1954
1955 * config/tc-m68k.c (md_estimate_size_before_relax): Correct check
1956 for byte jump to next instruction to skip empty frags.
1957
1958 Wed Apr 10 16:48:12 1996 Ian Lance Taylor <ian@cygnus.com>
1959
1960 * config/tc-alpha.c (alpha_ip): If we are going to call emit_add64
1961 for addq with a 16 bit signed value, just emit a lda instruction
1962 instead.
1963
1964 Wed Apr 10 14:34:49 1996 Jeffrey A Law (law@cygnus.com)
1965
1966 * config/tc-h8300.c (do_a_fix_imm): Don't cut off high bits
1967 of a 32bit operand.
1968
1969 Mon Apr 8 14:42:53 1996 Ian Lance Taylor <ian@cygnus.com>
1970
1971 * configure.in: Permit --enable-shared to specify a list of
1972 directories.
1973 * configure: Rebuild.
1974
1975 Fri Apr 5 17:01:35 1996 Jeffrey A Law (law@cygnus.com)
1976
1977 * config/tc-h8300.c (get_specific): Remove some #if 0 code.
1978 (build_bytes): Remove all ABSMOV related code; it's unnecessary.
1979
1980 Fri Apr 5 15:13:10 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1981
1982 * config/atof-ieee.c: Fix handling of denormalized extended
1983 precision numbers and overflow/underflow detection.
1984 (MAX_PRECISION, X_PRECISION, P_PRECISION): Changed from 6 to 5, to
1985 not include the 16 bit gap in the m68k extended precision format.
1986
1987 Fri Apr 5 14:29:23 1996 Ian Lance Taylor <ian@cygnus.com>
1988
1989 * configure.in: Add i386-*-freebsdelf* target; from John Polstra
1990 <jdp@polstra.com>.
1991 * configure: Rebuild.
1992
1993 Fri Apr 5 18:39:28 1996 James G. Smith <jsmith@cygnus.co.uk>
1994
1995 * config/tc-mips.c: Allow non-zero offsets from .sdata symbols to
1996 be accessed using the $gp register.
1997 * config/tc-mips.h (MAX_GPREL_OFFSET): Added.
1998
1999 Wed Apr 3 10:56:14 1996 Doug Evans <dje@canuck.cygnus.com>
2000
2001 * config/tc-sparc.c (sparc_md_end): Set bfd machine number to
2002 bfd_mach_sparc_sparclet if current_architecture is sparclet.
2003
2004 Mon Apr 1 16:55:44 1996 Ian Lance Taylor <ian@cygnus.com>
2005
2006 * read.c (get_line_sb): Bump line counters based on
2007 input_line_pointer[-1], not *input_line_pointer. Don't bother to
2008 call LISTING_NEWLINE.
2009 (s_macro): Don't call demand_empty_rest_of_line.
2010 * app.c (do_scrub_chars): When handling C style comments, unget
2011 ch2 rather than ch.
2012
2013 Fri Mar 29 16:15:06 1996 Ian Lance Taylor <ian@cygnus.com>
2014
2015 * read.h (enum linkonce_type): Define.
2016 (s_linkonce): Declare.
2017 * read.c (potable): Add "linkonce".
2018 (s_linkonce): New function.
2019 * subsegs.h (segment_info_type): Add linkonce field to
2020 MANY_SEGMENTS && ! BFD_ASSEMBLER section.
2021 * config/obj-coff.h (obj_handle_link_once): Define if TE_PE.
2022 (obj_coff_pe_handle_link_once): Declare if TE_PE.
2023 * config/obj-coff.c: If TE_PE and not BFD_ASSEMBLER, #include
2024 "coff/pe.h".
2025 (obj_coff_pe_handle_link_once): New function, defined if TE_PE.
2026 (c_section_symbol): If TE_PE, set the x_comdat field in the aux
2027 entry based on the linkonce field in segment_info.
2028 * doc/as.texinfo: Document .linkonce.
2029
2030 Fri Mar 29 11:31:27 1996 J.T. Conklin (jtc@lisa.cygnus.com)
2031
2032 * doc/as.1: Changed to be recognized by catman -w on Solaris.
2033
2034 Thu Mar 28 15:27:47 1996 Ian Lance Taylor <ian@cygnus.com>
2035
2036 * stabs.c (s_stab_generic): Call the listing functions before
2037 doing the rest of the processing, which may involve freeing the
2038 string. Pass string, not string + stroff, to OBJ_PROCESS_STAB in
2039 SEPARATE_STAB_SECTIONS case.
2040
2041 * config/tc-hppa.c: Remove nested comment.
2042 (tc_gen_reloc): Move label done inside the ifdef in which it is
2043 used.
2044 (md_apply_fix): Pass pointers to correct types to libhppa.h
2045 functions. Always return a value.
2046
2047 * config/tc-mips.h (tc_frob_file): Define.
2048 (mips_frob_file): Declare.
2049 * config/tc-mips.c (struct mips_hi_fixup): Define.
2050 (mips_hi_fixup_list): New static variable.
2051 (imm_unmatched_hi): New static variable.
2052 (md_assemble): Clear imm_reloc, imm_unmatched_hi, and
2053 offset_reloc. Pass imm_unmatched_hi to append_insn.
2054 (append_insn): Add unmatched_hi parameter. If it is set, add the
2055 new fixup to mips_hi_fixup_list. Change all callers.
2056 (mips_ip): Set imm_unmatched_hi when appropriate.
2057 (mips_frob_file): New function.
2058
2059 Thu Mar 28 11:47:59 1996 Doug Evans <dje@canuck.cygnus.com>
2060
2061 * configure.in (sparc-*-solaris2*): Renamed from sparc*-*-solaris2*.
2062 * configure: Regenerated.
2063
2064 Tue Mar 26 18:19:12 1996 Ian Lance Taylor <ian@cygnus.com>
2065
2066 * as.c (main): Call bfd_set_error_program_name.
2067
2068 Fri Mar 22 11:13:00 1996 Ian Lance Taylor <ian@cygnus.com>
2069
2070 * as.h (strdup): Don't declare.
2071 * stabs.c: Include libiberty.h
2072 (get_stab_string_offset): Use xstrdup rather than strdup.
2073 (s_stab_generic): Likewise.
2074 * as.c (parse_args): Likewise.
2075 * read.c (s_mri_sect): Likewise.
2076
2077 * gasp.c (change_base): Recognize \(...) construct documented to
2078 pass through enclosed characters literally through to the output.
2079 (process_assigns): Likewise. Also, be more careful to avoid
2080 looking past the end of the buffer.
2081
2082 Thu Mar 21 13:18:43 1996 Ian Lance Taylor <ian@cygnus.com>
2083
2084 * config/tc-i386.c (md_parse_option): If OBJ_ELF, ignore -k for
2085 FreeBSD compatibility. From John Polstra <jdp@polstra.com>.
2086
2087 Wed Mar 20 18:13:32 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2088
2089 * doc/as.texinfo, doc/c-i960.texi: Fix typos.
2090
2091 Wed Mar 20 17:05:16 1996 David Mosberger-Tang <davidm@azstarnet.com>
2092
2093 * config/alpha-opcode.h: Added cvtst instruction.
2094
2095 Mon Mar 18 13:12:46 1996 Ian Lance Taylor <ian@cygnus.com>
2096
2097 * ecoff.c (ecoff_stab): Don't try to make a symbol out of the stab
2098 string. Extract the addend from the result of expression.
2099
2100 Fri Mar 15 17:10:43 1996 Ian Lance Taylor <ian@cygnus.com>
2101
2102 * app.c (do_scrub_chars): If whitespace is seen in state 11, and
2103 LABELS_WITHOUT_COLONS is not defined, and we are not in m68k MRI
2104 mode, change the state to 3 rather than 1.
2105
2106 Thu Mar 14 18:18:25 1996 Ian Lance Taylor <ian@cygnus.com>
2107
2108 * config/obj-coff.h (C_REGISTER_SECTION): Change from 20 to 50, to
2109 correspond to 11 March change.
2110
2111 Thu Mar 14 15:27:10 1996 Jeffrey A Law (law@cygnus.com)
2112
2113 * config/tc-h8300.c (build_bytes, MEMIND case): Generate
2114 an R_MEM_INDIRECT reloc rather than R_RELBYTE.
2115
2116 Tue Mar 12 12:21:10 1996 Ian Lance Taylor <ian@cygnus.com>
2117
2118 * configure: Rebuild with autoconf 2.8.
2119
2120 Mon Mar 11 18:57:12 1996 Ian Lance Taylor <ian@cygnus.com>
2121
2122 * config/atof-ieee.c (gen_to_words): Improve handling of
2123 X_PRECISION numbers. Based on patches from Andreas Schwab
2124 <schwab@issan.informatik.uni-dortmund.de>.
2125
2126 Mon Mar 11 09:59:53 1996 Steve Chamberlain <sac@slash.cygnus.com>
2127
2128 * as.h (SEG_NORMAL, SEG_LIST): Bump segment limit from 10 to 40.
2129 (SEG_LAST): New.
2130 * subsegs.c (MANY_SEGMENTS): Increase segment limit.
2131 * obj-coff.c (seg_N_TYPE, seg_info_off_by_4): Likewise.
2132 (do_relocs_for, w_symbols, obj_coff_add_segment, do_linenos_for,
2133 crawl_symbols, coff_header_append): Loop to SEG_LAST rather than
2134 SEG_E9.
2135
2136 Thu Mar 7 15:17:39 1996 Doug Evans <dje@charmed.cygnus.com>
2137
2138 * config/tc-sparc.c (sparc_ip): Handle operand char 'O' (neg reg).
2139
2140 Thu Mar 7 09:19:15 1996 Jeffrey A Law (law@cygnus.com)
2141
2142 * config/tc-hppa.c (SUBSEG_MILLI): Define.
2143 (pa_def_subspaces): Add $MILLICODE$.
2144 (pa_spaces_begin): Set section flags for $MILLICODE$.
2145
2146 Wed Mar 6 14:11:30 1996 Ian Lance Taylor <ian@cygnus.com>
2147
2148 * config/obj-elf.c (obj_elf_section): Only SEC_LOAD if the type is
2149 not SHT_NOBITS. Don't tamper with flags based on type if a
2150 special section was found (revert Feb 29 change).
2151
2152 * config/tc-sh.c (sh_do_align): Only align using the nop pattern
2153 if aligning to a longword boundary or greater.
2154
2155 Tue Mar 5 15:10:43 1996 Jim Wilson <wilson@chestnut.cygnus.com>
2156
2157 * config/tc-sh.c (sh_do_align): Pass 1 not 2 to frag_align.
2158
2159 Mon Mar 4 20:50:57 1996 Steve Chamberlain <sac@slash.cygnus.com>
2160
2161 * configure.in (i386-*-cygwin32): Don't use bfd_gas.
2162 * configure: Regenerated.
2163
2164 Mon Mar 4 10:13:06 1996 Jeffrey A Law (law@cygnus.com)
2165
2166 * config/tc-hppa.c: Add default definitions for R_N0SEL and
2167 R_N1SEL since they're not defined for old versions of hpux.
2168
2169 * config/tc-hppa.c (tc_gen_reloc): Fix typo in R_COMP2 code.
2170 Set "sym_ptr_ptr" and "addend" fields to dummy values for
2171 R_N0SEL and R_N1SEL.
2172
2173 Fri Mar 1 10:20:52 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2174
2175 * flonum-konst.c: Add two more constants for 1e+-2048 and
2176 1e+-4096, and correct the other constants.
2177
2178 * symbols.c (resolve_symbol_value): Handle O_logical_not.
2179
2180 Thu Feb 29 13:58:35 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2181
2182 * config/obj-elf.c (obj_elf_section): Allow predefined section
2183 types to set the nobits type. Avoid a shadowed declaration.
2184
2185 Wed Feb 28 15:38:56 1996 Jeffrey A Law (law@cygnus.com)
2186
2187 * config/tc-hppa.c (hppa_fix_adjustable): For SOM, don't
2188 reduce relocs using e_nlrsel field selectors.
2189
2190 * write.c (fix_new_exp): Don't use #elif. Some compilers
2191 don't handle it.
2192
2193 * config/tc-hppa.c (selector_table): Add "n", "nl", and "nlr" to
2194 the selector table.
2195 (pa_chk_field_selector): Handle new field selectors for SOM.
2196
2197 Tue Feb 27 14:42:27 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2198
2199 * configure.in (m68k-*-linux*aout*, m68k-*-linux*): New targets.
2200 * configure: Rebuild.
2201 * config/te-linux.h (LOCAL_LABELS_FB): Define.
2202 * config/tc-m68k.h (TARGET_FORMAT) [TE_LINUX]: Define to
2203 "a.out-m68k-linux".
2204 * config/tc-m68k.c (comment_chars): Don't include '#' if TE_LINUX
2205 is defined.
2206
2207 Mon Feb 26 18:58:58 1996 Stan Shebs <shebs@andros.cygnus.com>
2208
2209 * mpw-make.sed: Update to handle shared library support.
2210
2211 Mon Feb 26 10:34:10 1996 Doug Evans <dje@charmed.cygnus.com>
2212
2213 * config/tc-sparc.c (sparc_ip): Print all architectures that support
2214 the insn on mismatch.
2215
2216 Fri Feb 23 21:44:39 1996 Rob Savoye <rob@chinadoll.cygnus.com>
2217
2218 * configure.in: Add support for a29-coff.
2219 * configure: Rebuild.
2220
2221 Thu Feb 22 16:39:43 1996 Ian Lance Taylor <ian@cygnus.com>
2222
2223 * config/tc-sh.c (sh_coff_frob_file): Don't consider the address
2224 of the section when looking for the R_SH_USES fixup, because the
2225 frag addresses have not yet been adjusted.
2226
2227 * gdbinit.in: Set a breakpoint on as_warn_where.
2228
2229 * config/tc-mips.c (macro): Add missing arguments to macro_build
2230 omitted in last change. From Jim Wilson <wilson@cygnus.com>.
2231
2232 Wed Feb 21 17:00:32 1996 Ian Lance Taylor <ian@cygnus.com>
2233
2234 * config/tc-h8300.c (tc_reloc_mangle): Change reloc based on size
2235 if it is TC_CONS_RELOC. Set a size of 4 to R_RELLONG.
2236
2237 Wed Feb 21 09:25:39 1996 Doug Evans <dje@charmed.cygnus.com>
2238
2239 * config/tc-sparc.c (sparc_ip): Recognize %asr0 for v8.
2240
2241 Tue Feb 20 21:48:03 1996 Doug Evans <dje@charmed.cygnus.com>
2242
2243 * config/tc-sparc.c (parse_keyword_arg): Accept leading '%'.
2244 (sparc_ip): Accept %asr[1..31] for v8 and %asr[%16..31] for v9.
2245 Recognize [uU] format args as sparclet cpregs.
2246
2247 Tue Feb 20 22:25:55 1996 Ian Lance Taylor <ian@cygnus.com>
2248
2249 * config/tc-sh.c (sh_handle_align): Don't emit R_SH_ALIGN relocs
2250 in bss_section.
2251
2252 Mon Feb 19 14:16:24 1996 Ian Lance Taylor <ian@cygnus.com>
2253
2254 * config/tc-sparc.h (TC_RELOC_RTSYM_LOC_FIXUP): Check S_IS_WEAK as
2255 well as S_IS_EXTERNAL.
2256 (tc_fix_adjustable): Likewise.
2257 * config/tc-sparc.c (md_apply_fix): In OBJ_ELF case, check for
2258 S_IS_WEAK as well as S_IS_EXTERNAL when deciding whether to return
2259 early.
2260 (tc_gen_reloc): Check S_IS_WEAK as wel as S_IS_EXTERNAL when
2261 deciding whether to convert BFD_RELOC_32_PCREL_S2 if PIC.
2262
2263 Mon Feb 19 02:15:57 1996 Doug Evans <dje@charmed.cygnus.com>
2264
2265 * config/tc-sparc.c (max_architecture): Change to sparclite for
2266 32 bit arch.
2267 (default_compatible): Delete.
2268 (sparc_ffs): New function.
2269 (md_begin): Only call SPARC_OPCODE_CONFLICT_P once.
2270 (sparc_ip): Rewrite architecture match and bump logic.
2271
2272 Sun Feb 18 15:03:50 1996 Ian Lance Taylor <ian@cygnus.com>
2273
2274 * configure.in: Check for 'do not mix' from native linker before
2275 trying to use -rpath.
2276 * configure: Rebuild.
2277
2278 Fri Feb 16 16:53:31 1996 Ian Lance Taylor <ian@cygnus.com>
2279
2280 * config/obj-coff.h (SF_ADJ_LNNOPTR): Define (non BFD_ASSEMBLER).
2281 (SF_GET_ADJ_LNNOPTR): Define (non BFD_ASSEMBLER).
2282 (SF_SET_ADJ_LNNOPTR): Define (non BFD_ASSEMBLER).
2283 * config/obj-coff.c (obj_coff_endef): Set ADJ_LNNOPTR when LNNOPTR
2284 is set.
2285 (w_symbols): If ADJ_LNNOPTR is set, add the section lnnoptr field
2286 to the symbol lnnoptr field, to get the correct file offset.
2287
2288 Thu Feb 15 14:48:38 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2289
2290 * config/obj-elf.c (elf_frob_symbol): On the PowerPC, force all
2291 symbols that are not function, file, or section symbols to be
2292 object types.
2293
2294 Thu Feb 15 11:20:18 1996 Ian Lance Taylor <ian@cygnus.com>
2295
2296 * configure: Set and substitute RPATH_ENVVAR.
2297 * configure: Rebuild.
2298 * Makefile.in (RPATH_ENVVAR): New variable.
2299 (check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
2300
2301 * configure.in: Accept i686. From H.J. Lu <hjl@zoom.com>: i386
2302 doesn't need opcodes. If configuring shared, opcodes needs bfd.
2303 * configure: Rebuild.
2304
2305 Wed Feb 14 16:33:12 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
2306
2307 * read.c (s_mri_sect): Don't return '\0' in type. Set all
2308 appropriate flags in BFD section.
2309
2310 * configure.in (m68k-*-psos*): New target.
2311 * configure: Rebuild.
2312 * config/te-psos.h: New file.
2313 * config/tc-m68k.c (comment_chars): Don't include '#' if TE_PSOS
2314 is defined.
2315
2316 Wed Feb 14 13:43:24 1996 Ian Lance Taylor <ian@cygnus.com>
2317
2318 From Alan Modra <alan@spri.levels.unisa.edu.au>:
2319 * configure.in: Remove duplicate setting of cpu_type. Check
2320 whether opcodes library is required for on all targets, not just
2321 primary one.
2322 * configure: Rebuild.
2323
2324 * config/tc-mips.c (mips_big_got): New static variable.
2325 (s_extern): Don't declare.
2326 (reg_needs_delay): New static function.
2327 (macro_build): Permit GOT/CALL_HI/LO relocs.
2328 (macro_build_lui): If place is not NULL, use the number in the
2329 expression.
2330 (load_address): Handle mips_big_got case.
2331 (macro): Handle mips_big_got for M_LA_AB, M_JAL_A, and load and
2332 store macros.
2333 (OPTION_XGOT): Define.
2334 (md_longopts): Add "xgot" if OBJ_ELF.
2335 (md_parse_option): Handle -xgot.
2336 (md_show_usage): Mention -xgot.
2337 (md_apply_fix): Permit GOT/CALL_HI/LO relocs.
2338 (tc_gen_reloc): Handle GOT/CALL_HI/LO relocs.
2339
2340 Wed Feb 14 11:22:27 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2341
2342 * config/tc-m68k.c (m68k_ip) [operand kind '#']: When fixing
2343 the byte relocation, point it to the low byte of the word.
2344
2345 Tue Feb 13 15:31:18 1996 Ian Lance Taylor <ian@cygnus.com>
2346
2347 * configure.in: Set HDLFLAGS for *-*-hpux with --enable-shared.
2348 * configure: Rebuild.
2349
2350 Mon Feb 12 15:53:46 1996 Doug Evans <dje@charmed.cygnus.com>
2351
2352 * configure.in: Recognize any sparc* cpu.
2353 * configure: Regenerated.
2354
2355 Mon Feb 12 15:41:21 1996 Ian Lance Taylor <ian@cygnus.com>
2356
2357 * read.c (potable): Add "mri" and ".mri".
2358 (s_mri): New function.
2359 * read.h (s_mri): Declare.
2360 * app.c (scrub_m68k_mri): New static variable.
2361 (mri_pseudo): New static variable.
2362 (do_scrub_begin): Add m68k_mri parameter. Use it rather than
2363 flag_m68k_mri. Initialize scrub_m68k_mri.
2364 (mri_state, mri_last_ch): New static variables.
2365 (struct app_save): Add scrub_m68k_mri, mri_state, and mri_last_ch
2366 fields.
2367 (app_push): Save new fields.
2368 (app_pop): Restore new fields.
2369 (do_scrub_chars): Check scrub_m68k_mri rather than flag_mri_mri.
2370 If TC_M68K, use a trivial state machine to look for occurrences of
2371 the .mri pseudo-op, and change the mode appropriately.
2372 * as.h (do_scrub_begin): Update prototype.
2373 * input-scrub.c (input_scrub_begin): Pass flag_m68k_mri to
2374 do_scrub_begin.
2375 * config/tc-m68k.c (reg_prefix_optional_seen): New static
2376 variable.
2377 (m68k_mri_mode_change): New function.
2378 (md_parse_option): Set reg_prefix_optional_seen.
2379 * config/tc-m68k.h (m68k_mri_mode_change): Declare.
2380 (MRI_MODE_CHANGE): Define.
2381 * doc/as.texinfo: Document .mri pseudo-op.
2382
2383 * app.c (do_scrub_chars): In MRI mode, don't treat '#' as a
2384 comment character.
2385
2386 Mon Feb 12 15:16:29 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2387
2388 Support for OBJ_ELF on m68k, mostly inside #ifdef OBJ_ELF:
2389 * config/m68k-parse.h (enum pic_relocation): Define.
2390 (struct m68k_exp): Add pic_reloc field.
2391 * config/tc-m68k.h (TC_RELOC_RTSYM_LOC_FIXUP): Define.
2392 (tc_fix_adjustable): Define to call tc_m68k_fix_adjustable.
2393 (NO_RELOC): Define to BFD_RELOC_NONE if BFD_ASSEMBLER, to zero
2394 otherwise.
2395 * config/tc-m68k.c: Delete definition of NO_RELOC.
2396 (struct m68k_it): Add pic_reloc field.
2397 (add_fix): Copy over pic_reloc field.
2398 (md_pseudo_table): Interpret .align parameter as byte count.
2399 (mote_pseudo_table): Likewise.
2400 (tc_m68k_fix_adjustable): New function.
2401 (get_reloc_code): New function.
2402 (md_assemble): Use it as last argument to fix_new_exp.
2403 (md_apply_fix_2): For a relocation against a symbol don't put the
2404 addend into the data.
2405 (tc_gen_reloc): Different addend computation for OBJ_ELF.
2406 (m68k_ip): Don't relax an operand that requires pic relocation.
2407 (md_begin): Align .text, .data and .bss on 4 byte boundary by
2408 default.
2409 * write.c (fixup_segment): Don't add symbol value to addend if
2410 TC_M68K and OBJ_ELF.
2411 * config/m68k-parse.y (yylex): Handle @PLTPC, etc.
2412 (motorola_operand): Add rule for `(zapc, EXPR)'.
2413
2414 Mon Feb 12 10:07:33 1996 David Mosberger-Tang <davidm@azstarnet.com>
2415
2416 * ecoff.c (ecoff_directive_weakext): Fixed so that whitespace
2417 *really* is permissible before the comma.
2418
2419 Mon Feb 12 00:12:13 1996 Ian Lance Taylor <ian@cygnus.com>
2420
2421 * config/tc-sh.c (sh_do_align): Align to a 2 byte boundary before
2422 inserting nop instructions.
2423
2424 Fri Feb 9 10:54:19 1996 Ian Lance Taylor <ian@cygnus.com>
2425
2426 * config/te-aux.h: Change include of aux.h to aux-coff.h.
2427
2428 Thu Feb 8 20:02:58 1996 Ian Lance Taylor <ian@cygnus.com>
2429
2430 * config/tc-i960.c (tc_coff_symbol_emit_hook): Correct storage
2431 class setting for a CALLNAME symbol in COFF.
2432
2433 * read.c (potable): Pass negative numbers for new .balign[wl] and
2434 .p2align[wl] pseudo-ops.
2435 (s_align_bytes): Treat a negative argument as specifying the fill
2436 length.
2437 (s_align_ptwo): Likewise.
2438
2439 Wed Feb 7 14:12:03 1996 Ian Lance Taylor <ian@cygnus.com>
2440
2441 * read.c (potable): Add balignw, balignl, p2alignw, and p2alignl.
2442 (do_align): Take new len parameter. Change all callers. Pass it
2443 to md_do_align.
2444 (s_align_bytes): Arg now indicates the length of the fill pattern.
2445 (s_align_ptwo): Likewise.
2446 * config/obj-coff.c (write_object_file): Pass length to
2447 md_do_align.
2448 * config/tc-i386.h (md_do_align): Take new len parameter.
2449 * config/tc-m88k.h (md_do_align): Likewise.
2450 * config/tc-m88k.c (m88k_do_align): Likewise.
2451 * config/tc-sh.h (md_do_align): Likewise.
2452 * config/tc-sh.c (sh_do_align): Likewise.
2453 * doc/as.texinfo: Document new pseudo-ops.
2454
2455 * config/obj-coff.c (fixup_mdeps): Divide offset by fr_var, as is
2456 done in cvt_frag_to_fill.
2457
2458 * config/tc-sh.h (sh_do_align): Declare.
2459 (md_do_align): Define.
2460 * config/tc-sh.c (sh_do_align): New function.
2461
2462 * ecoff.c (ecoff_build_lineno): Don't try to store the address
2463 difference if the next address is before the current one.
2464
2465 * config/tc-m68k.c (struct m68k_cpu): Add alias field.
2466 (archs): Initialize new field.
2467 (m68k_ip): Don't list alias names when listing CPUs which support
2468 an instruction.
2469
2470 * as.c (main): Call parse_args before read_begin.
2471 * app.c (do_scrub_chars): If flag_m68k_mri, don't put a dot in
2472 front of generated pseudo-ops.
2473 * read.c (potable): Ignore "name".
2474 (s_app_file): Permit a single quote after the string, since one
2475 may appear in m68k MRI mode.
2476
2477 * configure.in: Check for --enable-shared. If linking against
2478 shared BFD and opcodes, fix library name on SunOS, and try to set
2479 -rpath reasonably.
2480 * configure: Rebuild.
2481
2482 Tue Feb 6 15:16:17 1996 Ian Lance Taylor <ian@cygnus.com>
2483
2484 * as.h (flag_m68k_mri): Declare.
2485 * as.c (parse_args): If TC_M68K, set flag_m68k_mri for -M.
2486 * Many files: For MRI syntax that is specific to the m68k MRI
2487 assembler, check flag_m68k_mri rather than flag_mri or
2488 MRI_MODE_NEEDS_PSEUDO_DOT.
2489
2490 Mon Feb 5 16:29:11 1996 Ian Lance Taylor <ian@cygnus.com>
2491
2492 * config/tc-i960.c (ARCH_HX): Define.
2493 (arch_tab): Add HX.
2494 (targ_has_sfr): Handle ARCH_HX.
2495 (targ_has_iclass): Handle ARCH_HX.
2496 (tc_coff_fix2rtype): Add return 0 to avoid warning.
2497 (tc_headers_hook): If the architecture was specified explicitly,
2498 use it when setting the flags. Set the extern variable coff_flags
2499 rather than headers->filehdr.f_flags, since the latter is set
2500 unconditionally in obj-coff.c.
2501 (i960_handle_align): Remove unused variable fixp.
2502
2503 Support for building bfd and opcodes as shared libraries, based on
2504 patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
2505 * configure.in: Set OPCODES and BFD to search directories.
2506 Substitute OPCODES_DEP and BFDDEP. On SunOS, set HLDFLAGS.
2507 * configure: Rebuild.
2508 * Makefile.in (LDFLAGS, HLDFLAGS): New variables.
2509 (LIBDEPS): New variable.
2510 (as.new0: Depend upon $(LIBDEPS) rather than $(LIBS). Use
2511 $(HLDFLAGS) in link.
2512 (check): Set LD_LIBRARY_PATH in the environment.
2513
2514 Fri Feb 2 17:41:53 1996 Michael Meissner <meissner@wogglebug.tiac.net>
2515
2516 * config/tc-ppc.h (ELF_TC_SPECIAL_SECTIONS): Make .sdata2, .sbss2,
2517 .PPC.EMB.sdata0, and .PPC.EMB.sbss0 sections all default to
2518 read-only, not read/write.
2519
2520 Fri Feb 2 14:09:25 1996 Alan Modra <alan@spri.levels.unisa.edu.au>
2521
2522 * Makefile.in (INSTALL_XFORM): Remove -e.
2523
2524 Fri Feb 2 12:32:15 1996 Ian Lance Taylor <ian@cygnus.com>
2525
2526 * write.c (write_relocs): Use S_IS_DEFINED and S_IS_COMMON rather
2527 than comparing S_GET_SEGMENT to undefined_section.
2528 (write_object_file): Skip symbols which were equated to an
2529 undefined or common symbol.
2530 * symbols.c (resolve_symbol_value): Use S_IS_DEFINED and
2531 S_IS_COMMON rather than comparing S_GET_SEGMENT to
2532 undefined_section.
2533 (S_GET_VALUE): Likewise. Avoid recursion problems if S_IS_DEFINED
2534 or S_IS_COMMON call S_GET_VALUE.
2535 * config/obj-aout.h (S_IS_COMMON): Define if not BFD_ASSEMBLER.
2536 * config/obj-aout.c (obj_emit_relocations): If a reloc is equated
2537 to an undefined or common symbol, convert the reloc to be against
2538 the target symbol.
2539 (obj_crawl_symbol_chain): Skip symbols which were equated to an
2540 undefined or common symbol.
2541 * config/obj-bout.h (S_IS_COMMON): Define if not BFD_ASSEMBLER.
2542 * config/obj-bout.c (obj_emit_relocations): If a reloc is equated
2543 to an undefined or common symbol, convert the reloc to be against
2544 the target symbol.
2545 (obj_crawl_symbol_chain): Skip symbols which were equated to an
2546 undefined or common symbol.
2547 * config/obj-coff.c (do_relocs_for): Use S_IS_DEFINED and
2548 S_IS_COMMON rather than comparing S_GET_SEGMENT to
2549 undefined_section.
2550 (yank_symbols): Skip symbols which were equated to an undefined or
2551 common symbol.
2552
2553 Thu Feb 1 15:34:32 1996 Ian Lance Taylor <ian@cygnus.com>
2554
2555 * config/obj-aout.h (S_IS_LOCAL): Check for \002 as well as \001.
2556 * config/obj-bout.h (S_IS_LOCAL): Likewise.
2557
2558 * configure.in: Make sure we only add m68k-parse.o to
2559 ${extra_objects} once, no matter how many m68k targets have been
2560 enabled.
2561 * configure: Rebuild.
2562
2563 Wed Jan 31 18:31:46 1996 Steve Chamberlain <sac@slash.cygnus.com>
2564
2565 * configure.in (i386-*-cygwin32, ppc-*-cygwin32): New.
2566 * configure: Rebuild.
2567
2568 Wed Jan 31 14:03:17 1996 Richard Henderson <rth@tamu.edu>
2569
2570 * config/tc-m68k.c (md_pseudo_table): Add "extend" and "ldouble".
2571 * doc/c-m68k.texi: Document .extend and .ldouble.
2572
2573 * configure.in (m68*-apple-aux*): New target.
2574 * config/te-aux.h: New file.
2575 * config/obj-coff.c (compare_external_relocs): New static function
2576 if TE_AUX.
2577 (do_relocs_for): Sort relocs if TE_AUX.
2578 (fixup_segment): If TE_AUX, store common symbol value in segment.
2579 * config/tc-m68k.h (TARGET_FORMAT): Define if TE_AUX.
2580
2581 Wed Jan 31 12:24:58 1996 Ian Lance Taylor <ian@cygnus.com>
2582
2583 * config/obj-coff.h (S_IS_LOCAL): Check for \002 as well as \001.
2584
2585 * config/tc-mips.c (s_mips_globl): Set BSF_OBJECT if it is not
2586 BSF_FUNCTION.
2587 (s_cpload): Set BSF_OBJECT for _gp_disp symbol.
2588 * read.c (s_lcomm): If S_SET_SIZE is defined, set the size of the
2589 symbol.
2590 * ecoff.c (add_procedure): Set the BSF_FUNCTION flag.
2591 (ecoff_build_symbols): If S_SET_SIZE is defined, set the size of
2592 an undefined symbol and the size of a function symbol.
2593 * config/obj-elf.c (elf_frob_symbol): If TC_MIPS, set BSF_OBJECT
2594 for all common symbols.
2595
2596 Tue Jan 30 12:35:24 1996 Ken Raeburn <raeburn@cygnus.com>
2597
2598 * config/tc-i960.c (parse_memop): In MRI mode, don't use implicit
2599 scaling of index.
2600
2601 * expr.c (operand): Accept 0x hex constants in MRI mode if not on
2602 m68k.
2603
2604 Mon Jan 29 12:21:30 1996 Ian Lance Taylor <ian@cygnus.com>
2605
2606 * config/obj-elf.c (obj_elf_type): Set BSF_OBJECT flag for a type
2607 of object. From Ronald F. Guilmette <rfg@monkeys.com>.
2608
2609 * ecoff.c (localsym_t): Add addend field.
2610 (add_ecoff_symbol): Add addend argument. Change all callers.
2611 (coff_sym_value): Make static.
2612 (coff_sym_addend): New static variable.
2613 (ecoff_directive_def): Initialize coff_sym_addend.
2614 (ecoff_directive_val): Accept symbol + constant.
2615 (ecoff_directive_endef): Pass coff_sym_addend to add_ecoff_symbol.
2616 (ecoff_build_symbols): Include the addend in the symbol value.
2617
2618 Fri Jan 26 19:28:52 1996 Kim Knuttila <krk@cygnus.com>
2619
2620 * config/tc-ppc.c (md_assemble): Ignore overflow on
2621 BFD_RELOC_16_GOTOFF and BFD_RELOC_PPC_TOC16.
2622
2623 Fri Jan 26 16:14:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2624
2625 * config/tc-ppc.c (md_apply_fix3): SDA21 relocations are now 4
2626 bytes in size, so offset appropriately in big endian mode when
2627 writing the bottom 2 bytes.
2628
2629 Thu Jan 25 20:26:23 1996 Doug Evans <dje@charmed.cygnus.com>
2630
2631 * config/tc-sparc.c (default_compatible): New static local.
2632 (md_begin): Initialize it. Rewrite warn_on_bump handling.
2633 (sparc_ip): If no architecture or -bump specified, don't mark as
2634 mismatched those in default_compatible.
2635
2636 Thu Jan 25 12:21:53 1996 Ian Lance Taylor <ian@cygnus.com>
2637
2638 SCO ELF support from Robert Lipe <robertl@arnet.com>:
2639 * configure.in (i386-*-sco*elf*): Use fmt elf, targ sco5.
2640 * configure: Rebuild.
2641 * config/sco5.mt: New file; set TDEFINES to -DSCO_ELF.
2642 * config/tc-i386.c (sco_id): New function, if SCO_ELF.
2643 * config/tc-i386.h (tc_init_after_args): Define if SCO_ELF.
2644 (sco_id): Declare if SCO_ELF.
2645
2646 Thu Jan 25 03:10:53 1996 Doug Evans <dje@charmed.cygnus.com>
2647
2648 * config/tc-sparc.c (initial_architecture,can_bump_v9_p): Deleted.
2649 ({max,warn_after}_architecture): New static locals.
2650 (md_begin): Replace NUMOPCODES with sparc_num_opcodes.
2651 If both architecture and -bump requested, set max_architecture to max.
2652 (sparc_md_end): Simplify.
2653 (sparc_ip): Replace references to can_bump_v9_p with max_architecture.
2654 Rewrite code to bump architecture and check for conflicts.
2655 (md_longopts): Recognize -xarch={v8plus,v8plusa} for compatibility
2656 with Solaris assembler.
2657 (md_parse_option): Likewise. Call sparc_opcode_lookup_arch.
2658 (md_show_usage): Update.
2659
2660 Wed Jan 24 22:11:03 1996 Doug Evans <dje@charmed.cygnus.com>
2661
2662 * Makefile.in (RUNTEST): Fix reference to $${srcdir}.
2663
2664 Mon Jan 22 09:21:36 1996 Doug Evans <dje@charmed.cygnus.com>
2665
2666 * config/tc-sparc.h (TARGET_FORMAT): Use #ifdef SPARC_ARCH64 instead of
2667 #ifdef sparcv9 when choosing value.
2668 (ENV64): Delete.
2669 (md_end): Define.
2670 (sparc_md_end): Declare.
2671 * config/tc-sparc.c (SPARC_V9): Renamed from sparcv9.
2672 (initial_architecture): New static local.
2673 (can_bump_v9_p): Likewise.
2674 (NO_V9): Delete all occurrences.
2675 (sparc_md_end): New function.
2676 (sparc_ip): New local v9_arg_p. Rework fp reg number test.
2677 Don't bump architecture to v9 unless can_bump_v9_p set.
2678 (md_parse_option): -A<arch> passed, set can_bump_v9_p accordingly.
2679 * configure.in (sparc64 target cpu): Don't set obj_format here.
2680 (SPARC_V9): Renamed from sparcv9.
2681 (sparc64-*-elf*): Define SPARC_ARCH64.
2682 * configure: Regenerated.
2683 * acconfig.h (SPARC_V9): Renamed from sparcv9.
2684 (SPARC_ARCH64): Add.
2685 * conf.in: Regenerated.
2686 * config/vmsconf.h: Update.
2687
2688 Mon Jan 22 17:24:47 1996 James G. Smith <jsmith@cygnus.co.uk>
2689
2690 * config/tc-mips.c (load_register): Optimise "dli" loads.
2691 (md_show_usage): add "-mcpu=vr4100" to help text.
2692
2693 Mon Jan 22 11:53:00 1996 Ian Lance Taylor <ian@cygnus.com>
2694
2695 * symbols.c (resolve_symbol_value): If a symbol is equated to an
2696 undefined symbol, preserve the X_op of O_symbol.
2697 (S_GET_VALUE): Fix check to permit this case.
2698 * write.c (write_relocs): If a reloc is against an undefined
2699 symbol equated to another symbol, change the reloc to be against
2700 the latter symbol.
2701 * config/obj-coff.c (do_relocs_for): Likewise.
2702
2703 * config/tc-ppc.c (ppc_csect): An unnamed csect is storage class
2704 XMC_PR.
2705
2706 Mon Jan 22 10:59:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2707
2708 * config/obj-elf.c (elf/ppc.h): Include elf/ppc.h if target
2709 computer is PowerPC.
2710
2711 * config/tc-ppc.c (md_apply_fix3): Add more embedded relocations.
2712
2713 * config/tc-ppc.h (ELF_TC_SPECIAL_SECTIONS): Add sections
2714 mentioned in the eabi.
2715
2716 Thu Jan 18 17:58:19 1996 Kim Knuttila <krk@cygnus.com>
2717
2718 * config/tc-ppc.c (ppc_reldata): Changed alignement on reldata_section
2719 * config/tc-ppc.c (ppc_pdata): Changed the alignment on pdata_section
2720
2721 Mon Jan 15 17:43:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2722
2723 * config/tc-ppc.c (mapping): Add more relocation suffixes.
2724
2725 Sun Jan 14 21:29:36 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2726
2727 * config/tc-ppc.c (ppc_elf_validate_fix): Allow .gcc_except_table
2728 as a section it is ok to have unadorned -mrelocatable pointers in.
2729
2730 Sat Jan 13 11:09:08 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2731
2732 * config/tc-ppc.c (ppc_section*): Wrap these functions inside
2733 #ifdef OBJ_ELF.
2734
2735 Fri Jan 12 15:32:07 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2736
2737 * config/obj-elf.c (obj_elf_section): Add hooks so machine
2738 dependent section attributes can be handled.
2739
2740 * config/tc-ppc.h: (md_elf_section_{letter,type,word,flags}): New
2741 macros to add support for exclude section flag and ordered section
2742 type.
2743
2744 * config/tc-ppc.c (ppc_elf_section_{letter,type,word,flags}): New
2745 functions to add support for exclude section flag and ordered
2746 section type.
2747
2748 Fri Jan 12 12:04:00 1996 Ian Lance Taylor <ian@cygnus.com>
2749
2750 * subsegs.c (section_symbol): Don't try to look up the section
2751 symbol in the hash table. It should be possible to have a symbol
2752 with the same name as a section, but no connection to it.
2753
2754 * read.c (cons_worker): Only call mri_comment_end from flag_mri.
2755 From James Carlson <carlson@xylogics.com>.
2756
2757 * expr.c (operand): Skip whitespace after a close parenthesis.
2758 From James Carlson <carlson@xylogics.com>.
2759
2760 Tue Jan 2 12:43:23 1996 Jim Wilson <wilson@chestnut.cygnus.com>
2761
2762 * config/tc-sh.c (md_apply_fix): Call as_bad_where instead of
2763 as_warn_where for relocation overflow.
2764 (parse_reg): Accept register name only if next character is
2765 not alphanumeric.
2766
2767 Sat Dec 30 23:42:51 1995 Jeffrey A Law (law@cygnus.com)
2768
2769 * ecoff.c (ecoff_stab): Simplify. Correctly handle sym + offset
2770 addresses for static variables.
2771
2772 Thu Dec 21 12:54:32 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2773
2774 * config/tc-ppc.c (mapping): Make @got give a real GOT relocation,
2775 and xgot give the old toc16 relocation.
2776 (md_apply_fix3): Support all GOT relocations.
2777
2778 Wed Dec 20 14:57:17 1995 Ian Lance Taylor <ian@cygnus.com>
2779
2780 * config/tc-mips.c (load_address): Correctly handle a constant in
2781 SVR4_PIC case. From Richard Kenner <kenner@vlsi1.ultra.nyu.edu>.
2782
2783 Fri Dec 15 14:25:07 1995 J.T. Conklin <jtc@rtl.cygnus.com>
2784
2785 * config/tc-sh.c (parse_reg): Recognize SH3 registers.
2786 (get_specific): Handle A_SSR, A_SPC and A_REG_B.
2787 (build_Mbytes): Handle REG_B.
2788
2789 Fri Dec 15 16:07:25 1995 Ian Lance Taylor <ian@cygnus.com>
2790
2791 * ecoff.c (ecoff_build_aux): Use new bfd_big_endian macro.
2792
2793 Fri Dec 15 12:11:48 1995 Raymond Jou <rjou@mexican.cygnus.com>
2794
2795 * mpw-make.sed: If linking, edit ALL_CFLAGS to CFLAGS.
2796
2797 Thu Dec 14 15:09:52 1995 Ian Lance Taylor <ian@cygnus.com>
2798
2799 * config/obj-coff.c (write_object_file): Set the s_align field to
2800 the number of bytes, rather than to the power of 2.
2801
2802 Tue Dec 12 12:19:37 1995 Ian Lance Taylor <ian@cygnus.com>
2803
2804 * Makefile.in (DISTCLEAN_HERE): New variable.
2805 (distclean): Use it.
2806 (maintainer-clean): Depend upon clean-here rather than clean,
2807 distclean, and clean-info. Run make maintainer-clean in doc.
2808 Remove files listed in DISTCLEAN_HERE.
2809 * doc/Makefile.in (maintainer-clean realclean): Split out from
2810 distclean. Depend upon clean-info and distclean.
2811
2812 Mon Dec 11 16:23:51 1995 Stan Shebs <shebs@andros.cygnus.com>
2813
2814 * mac-as.r: Fix copyright and version strings.
2815 (cfrg): Use PROG_NAME instead of literal name.
2816
2817 Mon Dec 11 14:14:08 1995 Ian Lance Taylor <ian@cygnus.com>
2818
2819 * read.c (read_a_source_file): If tc_unrecognized_line is defined,
2820 call it.
2821 * config/tc-a29k.h (tc_unrecognized_line): Define.
2822 * config/tc-a29k.c (a29k_unrecognized_line): New function.
2823 (md_operand): Handle a29k style local dollar labels.
2824
2825 Wed Dec 6 17:52:52 1995 Ian Lance Taylor <ian@cygnus.com>
2826
2827 * config/obj-multi.h: If OBJ_MAYBE_ELF, define OBJ_SYMFIELD_TYPE.
2828
2829 Tue Dec 5 13:26:34 1995 Ken Raeburn <raeburn@cygnus.com>
2830
2831 * read.c (s_fill): If md_flush_pending_output is defined, call
2832 it.
2833
2834 Mon Dec 4 15:10:53 1995 Ken Raeburn <raeburn@cygnus.com>
2835
2836 * config/obj-coff.c (size_section, fill_section, fixup_mdeps):
2837 Treat rs_align_code like rs_align.
2838
2839 Sun Dec 3 16:46:54 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
2840
2841 * config/tc-arm.c (cp_address_required_here): Set pre_inc when
2842 converting an absolute address into a PC-relative one.
2843
2844 Fri Dec 1 11:57:56 1995 Stan Shebs <shebs@andros.cygnus.com>
2845
2846 * mpw-config.in: Don't always use te-generic.h for emulation.
2847 (powerpc-apple-macos): Use emulation te-macos.h.
2848 start-sanitize-gm
2849 (mips-gm-magic): New configuration.
2850 end-sanitize-gm
2851 * mpw-make.sed (install, install-only): Edit in Mac-specific
2852 install procedure.
2853
2854 Fri Dec 1 10:59:25 1995 Ian Lance Taylor <ian@cygnus.com>
2855
2856 * configure.in: Improve message about unsupported ELF targets.
2857 * configure: Rebuild.
2858
2859 * config/tc-m88k.c (m88k_do_align): Correct check for whether fill
2860 pattern is zero. From Manfred Hollstein.
2861
2862 Thu Nov 30 13:25:49 1995 Kim Knuttila <krk@cygnus.com>
2863
2864 * config/tc-ppc.c (ppc_pe_section): To get the alignment right for
2865 the various idata sections, we check the name on the .section pseudo.
2866
2867 Thu Nov 30 11:23:42 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
2868
2869 * config/obj-coff.c (fixup_segment): If TC_M88K is defined, do not
2870 add section's paddr to add_number; compatibility to native as and
2871 ld forbids.
2872
2873 Wed Nov 29 23:14:27 1995 Ken Raeburn <raeburn@cygnus.com>
2874
2875 * configure.in: Treat m68k-sysv4 like m68k-elf, not m68k-sysv3.
2876
2877 * hash.c (struct hash_entry): Moved here...
2878 * hash.h (struct hash_entry): ...from here.
2879
2880 * config/obj-elf.c (elf_frob_symbol): Don't free and clear sy_obj
2881 if it's already known to be null.
2882
2883 Wed Nov 29 13:00:20 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2884
2885 * config/tc-ppc.c (md_apply_fix3): Don't adjust the value for 32
2886 bit relocs converted to PC relative relocs. This turned out to
2887 add the offset from the beginning of .text twice.
2888
2889 Tue Nov 28 10:42:36 1995 Ken Raeburn <raeburn@cygnus.com>
2890
2891 * stabs.c (s_stab_generic): In 's' case, free string from
2892 obstack.
2893
2894 * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): Remove unused field
2895 sy_name_offset.
2896 * config/obj-multi.h (ELF_TARGET_SYMBOL_FIELDS) [OBJ_MAYBE_ELF]:
2897 Ditto.
2898
2899 * subsegs.h (segment_info_type): Make bitfields unsigned.
2900
2901 * expr.h (struct expressionS): Make X_op and X_unsigned bitfields,
2902 and move them together. On most systems this will reduce the
2903 structure size by one word.
2904 (operatorT): Define O_max.
2905 * expr.c (expr_begin): Verify that X_op is wide enough to hold
2906 O_max.
2907
2908 * read.c (pop_insert): Print error returned by hash table
2909 insertion code.
2910
2911 * as.c (dump_statistics): Split out from main; dump some hash
2912 table stats and target-specific stats.
2913 (start_time): No longer automatic to main.
2914 (main): Set file-level start_time and call dump_statistics at
2915 exit. Exit by calling xexit.
2916 (show_usage): Make --statistics description less specific.
2917 * subsegs.c (subsegs_print_statistics): New function.
2918 * write.c (write_print_statistics): New function.
2919 (n_fixups): New static variable.
2920 (fix_new_internal): Increment it.
2921 * read.c (read_print_statistics): New function.
2922 * read.h (read_print_statistics): Declare.
2923 * symbol.c (symbol_print_statistics): New function.
2924 * symbol.h (symbol_print_statistics): Declare.
2925 * hash.c (hash_print_statistics): New function.
2926 * hash.h (hash_print_statistics): Declare.
2927 * config/tc-i386.c (i386_print_statistics): New function.
2928 * config/tc-i386.h (i386_print_statistics): Declare.
2929 (tc_print_statistics): New macro.
2930 * messages.c (as_fatal, as_assert, as_abort): Use xexit, not
2931 exit.
2932
2933 * hash.c (DELETED): Rewrite to use a valid but unique address.
2934 (START_POWER): Reduce to 10.
2935 (enum stat_enum): New enumerator, replacing STAT_* index macros.
2936 Add new values for counting strcmp calls.
2937 (GROW_FACTOR): New macro.
2938 (hash_grow): Use GROW_FACTOR. Rewrite for quick returns instead
2939 of nesting blocks.
2940 (FULL_VALUE): New macro. Use 1/4 of table size instead of 1/2.
2941 (hash_new): Use FULL_VALUE.
2942 (struct hash_control): Definition moved here.
2943 (hash_code): Don't mask to low bits.
2944 (hash_ask): Mask returned hash code here. Check hash value before
2945 calling strcmp; count strcmp calls.
2946 * hash.h (struct hash_control): Declare, don't define, here.
2947 (HASH_STATLENGTH): Deleted.
2948 (struct hash_entry): Add field for hash code.
2949 (hash_say, hash_apply): Don't declare.
2950
2951 * hash.c (destroy): Return void.
2952 (applicatee): Ditto.
2953 (main): Fix declarations.
2954 (hash_apply): Return void. Argument `function' returns void. Put
2955 inside "#ifdef TEST".
2956 (hash_say): Define only if TEST is defined.
2957 * hash.h (hash_apply, hash_say): Declarations deleted.
2958
2959 Mon Nov 27 13:18:25 1995 Ian Lance Taylor <ian@cygnus.com>
2960
2961 * configure: Rebuild with autoconf 2.7.
2962
2963 Tue Nov 21 18:39:01 1995 Ian Lance Taylor <ian@cygnus.com>
2964
2965 * aclocal.m4 (AC_PROG_CC): Remove local definition.
2966 * configure: Rebuild with autoconf 2.6.
2967
2968 Mon Nov 20 17:26:00 1995 Ian Lance Taylor <ian@cygnus.com>
2969
2970 * config/tc-ppc.c (ppc_debug_name_section_size): Remove.
2971 (ppc_stabx): Don't increment ppc_debug_name_section_size.
2972 (ppc_bc): Likewise.
2973 (ppc_frob_file): Remove.
2974 * config/tc-ppc.h (tc_frob_file): Don't define.
2975 (ppc_frob_file): Don't declare.
2976
2977 Mon Nov 20 13:37:05 1995 Ken Raeburn <raeburn@cygnus.com>
2978
2979 * Makefile.in (TARG_CPU_DEP_alpha): Mention alpha-opcode.h.
2980 * config/alpha-opcode.h: Include one-operand variants of jmp and
2981 jsr.
2982
2983 * config/te-delt88.h: Renamed from te-delta88.h, to avoid conflict
2984 with te-delta.h in 8.3 file systems.
2985 * configure.in: Adjusted.
2986
2987 Thu Nov 16 12:49:38 1995 Ian Lance Taylor <ian@cygnus.com>
2988
2989 * config/tc-mips.c (s_err): Remove; just use the one in read.c.
2990
2991 * config/m68k-parse.y (yylex): In MRI mode, '@' can start an octal
2992 number.
2993 * expr.c (operand): Handle MRI suffixes after unadorned 0.
2994
2995 Thu Nov 16 00:21:44 1995 Ken Raeburn <raeburn@cygnus.com>
2996
2997 Version 2.6 released.
2998 * Makefile.in (VERSION): Updated to 2.6.
2999
3000 * config/obj-coff.c (write_object_file): Change use of md_do_align
3001 to pass a pointer rather than a fill value, to match other uses.
3002
3003 Wed Nov 15 03:52:00 1995 Ken Raeburn <raeburn@cygnus.com>
3004
3005 * config/tc-ns32k.h (TC_FIX_TYPE): Add missing semicolon.
3006
3007 * as.c (main): Move md_end call to just after call to
3008 perform_an_assembly_pass. Delete cpu-specific code here.
3009 * config/tc-i960.h (md_end): New macro, calls brtab_emit.
3010 * config/tc-arm.c (md_end): Unused function deleted.
3011 * config/tc-ns32k.c (md_end): Ditto.
3012
3013 * config/tc-i386.c (i386_align_code): New function, moved here
3014 from HANDLE_ALIGN macro.
3015 * config/tc-i386.h (HANDLE_ALIGN): Call it.
3016
3017 Mon Jul 31 14:53:19 1995 Alan Modra <alan@spri.levels.unisa.edu.au>
3018
3019 * config/tc-i386.h (md_do_align): cast fill and 0x90 to char
3020 before comparing
3021
3022 Mon May 1 10:91:49 1995 Alan Modra <alan@spri.levels.unisa.edu.au>
3023
3024 * config/tc-i386.h (md_do_align): Make ".align n,0x90" generate
3025 multi-byte nops to avoid changing gcc. The necessary gcc change
3026 might break old assemblers.
3027
3028 Sat Apr 22 20:53:05 1995 Alan Modra <alan@spri.levels.unisa.edu.au>
3029
3030 * config/tc-i386.h (md_do_align, HANDLE_ALIGN): Add macros to
3031 generate optimal multi-byte nop instructions for ".align n"
3032 ".align n,0x90", and aligns requiring more than 15 bytes of
3033 padding still generate multiple 0x90's as before.
3034
3035 Mon Nov 13 17:40:21 1995 Ian Lance Taylor <ian@cygnus.com>
3036
3037 * config/tc-m68k.c (s_mri_until): Call pop_mri_control.
3038
3039 Mon Nov 13 20:39:06 1995 Stan Shebs <shebs@andros.cygnus.com>
3040
3041 * configure.in (ppc-*-macos*, ppc-*-mpw*): New configurations.
3042 * configure: Update.
3043 * mpw-make.sed: Reorder commands to make sed happier.
3044 * config/te-macos.h: New file.
3045 * config/tc-ppc.h (TARGET_FORMAT): Set correctly for PowerMac.
3046
3047 Sun Nov 12 21:14:56 1995 Jeffrey A Law (law@cygnus.com)
3048
3049 * config/tc-hppa.c (pa_ip): Fix off-by-2 bug in length check for
3050 conditional branches.
3051 (md_apply_fix): Likewise.
3052
3053 Thu Nov 9 16:14:01 1995 Ian Lance Taylor <ian@cygnus.com>
3054
3055 * config/tc-a29k.c (md_apply_fix): Warn if an attempt is made to
3056 generate a reloc which the linker will not handle correctly. Fix
3057 overflow checking--R_IREL is 18 bits, not 17.
3058
3059 Wed Nov 8 19:59:36 1995 Ian Lance Taylor <ian@cygnus.com>
3060
3061 * config/obj-coff.c (fixup_segment): Don't subtract md_pcrel_from
3062 from a PC relative reloc if TC_A29K.
3063
3064 * config/tc-a29k.c (line_separator_chars): Restore '@'. Existing
3065 code depends upon it.
3066
3067 * config/tc-a29k.c (md_operand): Handle $float, $double, and
3068 $extend. Based on code from Eric Freudenthal
3069 <freudenthal@nyu.edu>.
3070 * config/tc-a29k.h (LEX_DOLLAR): Define.
3071 * read.c (LEX_DOLLAR): Define if not defined.
3072 (lex_type): Use LEX_DOLLAR.
3073
3074 Wed Nov 8 16:38:14 1995 Eric Freudenthal <freudenthal@nyu.edu>
3075
3076 * configure.in (a29k-nyu-sym1): New target, just like other a29k
3077 targets.
3078
3079 Wed Nov 8 11:38:48 1995 Ian Lance Taylor <ian@cygnus.com>
3080
3081 * config/obj-coff.c (c_dot_file_symbol): Cast xmalloc return.
3082
3083 Tue Nov 7 09:14:35 1995 Kim Knuttila <krk@cygnus.com>
3084
3085 * config/tc-ppc.c (md_apply_fix3): Added BFD_RELOC_RVA. Currently
3086 used only by "dlltool.c".
3087
3088 Mon Nov 6 18:51:26 1995 Ian Lance Taylor <ian@cygnus.com>
3089
3090 * config/tc-alpha.c: Undefine inline if not __GNUC__.
3091 (md_pseudo_table): Don't define "extern".
3092
3093 Sat Nov 4 00:51:21 1995 Ian Lance Taylor <ian@cygnus.com>
3094
3095 * config/tc-ppc.c (ppc_biei): Force symbol into text_section.
3096
3097 * config/tc-ppc.c (md_show_usage): Put backslash at end of line.
3098
3099 Fri Nov 3 13:02:59 1995 Ian Lance Taylor <ian@cygnus.com>
3100
3101 * macro.c (macro_expand_body): Don't warn about == with a
3102 nonexistent parameter, in case it is in a comment field.
3103
3104 * as.c (main): On TC_A29K, call macro_init with macro_alternate
3105 set to 1.
3106 * macro.c (get_any_string): Don't keep quotes if macro_strip_at is
3107 set, even if macro_alternate is set.
3108 (get_apost_token): If macro_strip_at, only skip kind if it is '@'.
3109 (sub_actual): If macro_strip_at, and kind is '@', don't look up
3110 the token unless it ended in '@'.
3111 * config/tc-a29k.c (line_separator_chars): Remove '@'.
3112 * doc/c-a29k.texi: Document macro usage on A29K.
3113
3114 Thu Nov 2 23:07:57 1995 Ian Lance Taylor <ian@cygnus.com>
3115
3116 * config/tc-m68k.c (m68k_ip): Handle new 'W' place, meaning a
3117 signed word.
3118 (install_operand): Likewise.
3119
3120 * config/obj-elf.c (ecoff_debug_pseudo_table): Add "extern".
3121
3122 Wed Nov 1 15:17:02 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
3123
3124 * configure.in (m88k-motorola-sysv*): New target.
3125 * configure: Rebuild.
3126 * config/te-delta88.h: New file.
3127 * config/obj-coff.c (write_object_file): Use md_do_align if it is
3128 defined.
3129 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Define.
3130 (md_do_align): Define.
3131 * config/tc-m88k.c: Include "subsegs.h".
3132 (m88k_do_align): New function.
3133
3134 * config/te-delta.h (STRIP_UNDERSCORE): Don't define.
3135 (COFF_NOLOAD_PROBLEM): Define.
3136 (LOCAL_LABELS_DOLLAR, LOCAL_LABELS_FB): Define.
3137
3138 Wed Nov 1 16:07:43 1995 Ken Raeburn <raeburn@cygnus.com>
3139
3140 * config/tc-i386.c (md_assemble): For a jump instruction with
3141 non-constant target, require 7 available bytes in the current
3142 frag, not 6.
3143
3144 Tue Oct 31 15:37:16 1995 Fred Fish <fnf@rtl.cygnus.com>
3145
3146 * config/obj-elf.h: Include bfd/elf-bfd.h rather than
3147 bfd/libelf.h.
3148
3149 Tue Oct 31 16:34:28 1995 David Mosberger-Tang <davidm@azstarnet.com>
3150
3151 * configure.in (alpha-*-linux*): Use ecoff.
3152 * configure: Rebuild.
3153 * ecoff.c (ecoff_directive_extern): New function.
3154 (ecoff_directive_weakext): New function.
3155 (ecoff_build_symbols): Handle weak symbols.
3156 (ecoff_setup_ext): Likewise.
3157 (ecoff_frob_symbol): Warn about weak common symbols.
3158 * ecoff.h (ecoff_directive_extern): Declare.
3159 (ecoff_directive_weakext): Declare.
3160 * symbols.c (S_IS_WEAK): New function.
3161 * symbols.h (S_IS_WEAK): Declare.
3162 * config/obj-ecoff.c (obj_pseudo_table): Add "extern" and
3163 "weakext".
3164 * config/tc-mips.c (mips_pseudo_table): Remove "extern".
3165 (s_extern): Remove.
3166
3167 Tue Oct 31 13:29:08 1995 Ian Lance Taylor <ian@cygnus.com>
3168
3169 * config/tc-ppc.c (ppc_lglobl): Do the right thing.
3170
3171 * config/tc-ppc.c (ppc_bb): Call SF_SET_PROCESS.
3172 (ppc_eb): Likewise. Set the storage class to C_BLOCK, not C_FCN.
3173 (ppc_frob_symbol): Don't change C_BLOCK symbols to C_HIDEXT.
3174 * config/obj-coff.c (coff_frob_symbol): Don't call
3175 SA_SET_SYM_ENDNDX with the current symbol; call it with the next
3176 one. If OBJ_XCOFF, try to figure out whether the symbol is going
3177 to be dropped.
3178
3179 * config/tc-ppc.c (md_pseudo_table): Add "bc" and "ec".
3180 (ppc_stab_symbol): New static variable.
3181 (ppc_change_csect): Check that ppc_toc_csect is not NULL.
3182 (ppc_stabx): Set ppc_stab_symbol around call to symbol_make. Set
3183 sy_tc.real_name to the stab string.
3184 (ppc_bc, ppc_ec): New static functions.
3185 (ppc_canonicalize_symbol_name): If ppc_stab_symbol is set, don't
3186 do anything.
3187 (ppc_symbol_new_hook): If ppc_stab_symbol is set, don't look for a
3188 suffix.
3189 (ppc_frob_symbol): Set BSF_NOT_AT_END for symbols with csect aux
3190 entries.
3191
3192 * input-scrub.c (input_scrub_push): Reset sb_index.
3193
3194 Mon Oct 30 17:52:46 1995 Ian Lance Taylor <ian@cygnus.com>
3195
3196 * listing.c (listing_newline): Don't create a frag in the absolute
3197 section.
3198
3199 Sat Oct 28 01:02:05 1995 Ian Lance Taylor <ian@cygnus.com>
3200
3201 * config/tc-ppc.c (md_pseudo_table): Add "data" and "text".
3202 (ppc_csect): Move most of the code to ppc_change_csect, and call
3203 it.
3204 (ppc_change_csect): New static function, taken from ppc_csect.
3205 (ppc_section): New static function.
3206 (ppc_saw_abs): New static varable.
3207 (ppc_frob_symbol): Create aux entry for absolute symbols. Warn if
3208 a symbol has no csect.
3209 (ppc_adjust_symtab): New function.
3210 * config/tc-ppc.h (tc_adjust_symtab): Define if OBJ_XCOFF.
3211 (ppc_adjust_symtab): Declare if OBJ_XCOFF.
3212
3213 * write.c (write_object_file): If tc_adjust_symtab is defined,
3214 call it just before the call to obj_adjust_symtab.
3215
3216 * symbols.c (symbol_find_or_make): Change name to be const.
3217 * symbols.h (symbol_find_or_make): Update declaration.
3218
3219 Thu Oct 26 19:18:27 1995 Ken Raeburn <raeburn@cygnus.com>
3220
3221 * doc/as.texinfo (Align): Mention SH.
3222 * doc/c-m68k.texi (M68K-Directives, .even): Describe behavior, not
3223 .align value.
3224 * doc/c-z8k.texi (Z8000 Directives, global): Fix minor typo.
3225 (Z8000 Directives, even): Don't give numeric align value, instead
3226 explain behavior.
3227
3228 Thu Oct 26 11:45:03 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
3229
3230 * tc-arm.c (do_ldst): Assemble ldr/str r0, [r1] as a pre-increment
3231 instruction.
3232
3233 Wed Oct 25 11:59:24 1995 Per Bothner <bothner@kalessin.cygnus.com>
3234
3235 * Makefile.in (diststuff): Also make info.
3236 (maintainer-clean realclean): Also make clean-info.
3237
3238 Tue Oct 24 15:21:33 1995 Jeffrey A Law (law@cygnus.com)
3239
3240 * config/tc-hppa.c (md_pseudo_table): Add new ".nsubspa" opcode.
3241 (pa_subspace): For ".nsubspa", always create a new subspace
3242 with the given attributes, even if one already exists with the
3243 same name.
3244
3245 Tue Oct 24 14:50:38 1995 Michael Meissner <meissner@tiktok.cygnus.com>
3246
3247 * config/tc-ppc.h (TC_FORCE_RELOCATION_SECTION): Rename from
3248 TC_FORCE_RELOCATION, taking an additional section argument. If
3249 the section of the target symbol is not the same as the current
3250 section, always force the relocation to be used.
3251 (MD_PCREL_FROM_SECTION): New macro to call md_pcrel_from_section.
3252
3253 * config/tc-ppc.c (md_pcrel_from_section): Rename from the
3254 md_pcrel_from function, taking an additional section argument.
3255 Invoke TC_FORCE_RELOCATION_SECTION instead of TC_FORCE_RELOCATION.
3256
3257 * write.c (TC_FORCE_RELOCATION_SECTION): Define in terms of the
3258 older TC_FORCE_RELOCATION if not defined.
3259 (MD_PCREL_FROM_SECTION): If not defined, invoke md_pcrel_from.
3260 (fixup_segment): Use MD_PCREL_FROM_SECTION instead of
3261 md_pcrel_from, and TC_FORCE_RELOCATION_SECTION instead of
3262 TC_FORCE_RELOCATION.
3263
3264 Mon Oct 23 16:20:04 1995 Ken Raeburn <raeburn@cygnus.com>
3265
3266 * input-scrub.c (as_where): Set name to null pointer if we don't
3267 have a file name.
3268 * messages.c (identify): Only print filename if non-null.
3269 (as_show_where): Ditto, for line number too.
3270 (as_warn_internal, as_bad_internal): Ditto.
3271
3272 * input-file.c (input_file_open): If the input file can't be
3273 opened, consider it an error.
3274
3275 Mon Oct 23 11:15:44 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
3276
3277 * config/tc-mips.c: Added mips_4100 control, and support for
3278 accepting the 4100 as a MIPS architecture variant (md_begin,
3279 macro_build, mips_ip, md_parse_option). Adding suitable
3280 command-line OPTIONs, and updating the help text (md_show_usage).
3281
3282 Wed Oct 18 13:20:32 1995 Ken Raeburn <raeburn@cygnus.com>
3283
3284 * subsegs.c (subseg_begin): Only set absolute_frchain.fix_* when
3285 BFD_ASSEMBLER is defined.
3286
3287 * Use one active frag and one obstack per frag chain:
3288 * frags.c (frags): Variable deleted.
3289 (frag_alloc): New function.
3290 (frag_grow, frag_more, frag_variant, frag_now_fix,
3291 frag_append_1_char): Refer to frchain_now->frch_obstack instead of
3292 frags variable.
3293 (frag_new): Ditto. Verify that frch_last and frag_now match on
3294 entry and exit, and that old frag_now has non-zero type. Replace
3295 "know" uses with "assert". Use frag_alloc instead of mucking with
3296 obstack alignment.
3297 * frags.h (frags): Declaration deleted.
3298 * subsegs.h (struct frchain): Add new field frch_frag_now.
3299 * subsegs.c (frchains, dummy_frag, absolute_frchain): New static
3300 variables.
3301 (subsegs_begin): Initialize frchains obstack. Under gcc, don't
3302 give it any stricter alignment than frchainS structures need. Do
3303 not initialize frags obstack. Set frag_now to point to
3304 dummy_obstack. Initialize absolute_frchain.
3305 (subseg_set_rest): Save and restore frag_now in frch_frag_now
3306 field of frchainS. Don't create new frags on section switch, and
3307 use frag_alloc when creating a new frag chain. For absolute
3308 section, set frchain_now to absolute_frchain. Verify that
3309 frch_last and frag_now match on entry and exit. Initialize
3310 per-chain obstack, and under gcc, set required alignment to that
3311 needed by fragS structure.
3312
3313 * write.c (chain_frchains_together_1): Verify fr_type is nonzero.
3314
3315 * stabs.c (get_stab_string_offset): Only copy input string if a
3316 fresh copy is needed, not if the section already exists.
3317 (s_stab_generic): Cache stab section name to bypass lookups, since
3318 usually it will match. Could be made faster still by changing the
3319 memory allocation rules.
3320 (s_xstab): Cache section name to bypass repeated string
3321 allocation.
3322
3323 * frags.c (frag_new): Deleted register declarations.
3324
3325 * listing.c (frag_now): Don't declare.
3326
3327 * as.c (chunksize): New variable.
3328 (debug_memory): New variable.
3329 (main): If debug_memory is set, reduce chunksize and
3330 _bfd_chunksize.
3331 * as.h (chunksize): Declare it.
3332 * read.c (read_begin): Use it.
3333
3334 * config/tc-alpha.c (md_shortopts): Include 'g'.
3335 (md_parse_option): Ignore it.
3336
3337 * Makefile.in (distclean): Remove Makefile and config.status from
3338 testsuite directory.
3339 (clean-here): Don't delete testsuite. Instead, delete only the
3340 files within it that would be generated by running tests.
3341
3342 * config/tc-hppa.c (hppa_elf_mark_end_of_function): Call
3343 frag_now_fix instead of accessing obstack info directly.
3344 * config/tc-arm.c (s_ltorg): Ditto.
3345 (md_assemble): Ditto.
3346
3347 * config/tc-i386.c (md_assemble): Call frag_grow instead of
3348 obstack_room.
3349
3350 Wed Oct 18 12:22:59 1995 Ken Raeburn <raeburn@cygnus.com>
3351
3352 * stabs.c (aout_process_stab): Insert debug symbol into symbol
3353 chain after parsing value expression, if any, to avoid separating
3354 continued .stabs lines.
3355
3356 Mon Oct 16 10:56:41 1995 Ian Lance Taylor <ian@cygnus.com>
3357
3358 * config/tc-mips.c (mips_elf_pseudo_table): Remove.
3359 (mips_pop_insert): Don't call pop_insert on mips_elf_pseudo_table.
3360
3361 Mon Oct 16 07:07:37 1995 Michael Meissner <meissner@wogglebug.tiac.net>
3362
3363 * config/tc-ppc.c (md_begin): Use new flags PPC_OPCODE_COMMON for
3364 -mcom support and PPC_OPCODE_ANY for -many.
3365 (md_parse_option): Ditto.
3366 (ppc_arch): Ditto.
3367 (md_begin): For duplicate instructions, print all duplicates
3368 before aborting.
3369
3370 Sun Oct 15 22:06:14 1995 Michael Meissner <meissner@cygnus.com>
3371
3372 * config/tc-ppc.c (md_parse_option): Support for -mcom to turn on
3373 common mode operation.
3374 (md_show_usage): Add -mcom to usage message.
3375
3376 Fri Oct 13 13:32:45 1995 steve chamberlain <sac@slash.cygnus.com>
3377
3378 * expr.c (op_rank): Add O_symbol_rva.
3379 * expr.h (operatorT): Add O_symbol_rva.
3380 * read.c (cons_worker): Set O_symbol_rva when necessary.
3381 * write.c (fix_new_exp): Understand O_symbol_rva.
3382
3383 Tue Oct 10 11:34:14 1995 Ian Lance Taylor <ian@cygnus.com>
3384
3385 * config/tc-mips.c: Correct s_cons arguments. From Michael
3386 Joosten <joost@ori.cadlab.de>.
3387
3388 Mon Oct 9 19:59:53 1995 Ian Lance Taylor <ian@cygnus.com>
3389
3390 * config/tc-ppc.c (ppc_macro): Make count unsigned.
3391 (ppc_biei): Set segment to now_seg and value to coff_n_line_nos.
3392 (ppc_frob_symbol): Handle C_BINCL and C_EINCL symbols by setting
3393 the fix_line field.
3394 * config/obj-coff.c (coff_n_line_nos): Rename from n_line_nos, and
3395 make non-static. Change all users.
3396 * config/obj-coff.h (coff_n_line_nos): Declare.
3397
3398 Fri Oct 6 16:24:27 1995 Ken Raeburn <raeburn@cygnus.com>
3399
3400 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3401
3402 * configure.in (AC_ARG_WITH(bfd-assembler)): Fix help message.
3403
3404 * config/obj-elf.c (obj_elf_common): Convert specified byte
3405 alignment to power of two. Set size of local bss symbol.
3406
3407 * config/tc-m68k.c (tc_gen_reloc): Fix typo in variable name.
3408
3409 Fri Oct 6 15:22:25 1995 Ian Lance Taylor <ian@cygnus.com>
3410
3411 * sb.c, macro.c: Decide whether to include <string.h> or
3412 <strings.h> just as as.h does.
3413
3414 Fri Oct 6 09:55:33 1995 Doug Evans <dje@canuck.cygnus.com>
3415
3416 * Makefile.in (site.exp): Fix setting of $srcdir.
3417
3418 * config/tc-arm.c (md_atof): Fix little-endian output.
3419 * config/tc-arm.h (ARM_BI_ENDIAN): Move definition so defined for
3420 all coff targets.
3421
3422 Thu Oct 5 20:17:30 1995 Ken Raeburn <raeburn@cygnus.com>
3423
3424 * doc/as.texinfo: Split out the NS32k family documentation,
3425 despite its being commented out for now.
3426 * doc/c-ns32k.texi: New file.
3427
3428 * sb.c, macro.c: Include string.h.
3429
3430 * Makefile.in (comparison): Only check *.o; we don't care if
3431 timestamps inserted by the native linker differ.
3432
3433 * config/tc-alpha.c (alpha_align): Only fill with a no-op pattern
3434 if alignment stricter than 4 bytes is requested; in that case,
3435 align to a 4-byte boundary first.
3436
3437 Thu Sep 28 19:35:27 1995 Pat Rankin <rankin@eql.caltech.edu>
3438
3439 * config/obj-vms.c (VMS_RSYM_Parse): eliminate "might be used
3440 uninitialized" warning for `Max_Source_Offset'.
3441
3442 Wed Oct 4 16:17:02 1995 Kim Knuttila <krk@cygnus.com>
3443
3444 * config/tc-ppc.c (parse_toc_entry): New function to parse [toc]
3445 qualifiers and detect errors if present.
3446 (md_assemble): Add call to parse_toc_entry. Also added some support
3447 for the [tocv] qualifier.
3448 (ppc_pe_tocd): New function to support data in the toc section.
3449
3450 Wed Oct 4 14:03:39 1995 Ian Lance Taylor <ian@cygnus.com>
3451
3452 * config/tc-ppc.c (ppc_frob_symbol): Don't create an aux entry for
3453 an absolute symbol.
3454
3455 Tue Oct 3 12:18:19 1995 Ian Lance Taylor <ian@cygnus.com>
3456
3457 * config/tc-m68k.c (isword): Accept all values from -65536 to
3458 +65535, so ~VAL will not be rejected.
3459
3460 * cond.c (s_endif): Call demand_empty_rest_of_line. In MRI mode,
3461 skip characters after the pseudo-op.
3462 (s_else): Likewise.
3463 * read.c (get_line_sb): Don't look past buffer_limit.
3464 (s_include): In MRI mode, skip characters after the file name.
3465
3466 Mon Oct 2 16:15:27 1995 Ian Lance Taylor <ian@cygnus.com>
3467
3468 * config/m68k-parse.y (m68k_reg_parse): In MRI mode, permit
3469 periods in register names.
3470
3471 For older changes see ChangeLog.1.
This page took 0.103109 seconds and 4 git commands to generate.