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