* ldmain.c (add_wrap): New function.
[deliverable/binutils-gdb.git] / gas / ChangeLog
CommitLineData
975def01
ILT
1Mon Mar 18 13:12:46 1996 Ian Lance Taylor <ian@cygnus.com>
2
3 * ecoff.c (ecoff_stab): Don't try to make a symbol out of the stab
4 string. Extract the addend from the result of expression.
5
fde6018a
ILT
6Fri Mar 15 17:10:43 1996 Ian Lance Taylor <ian@cygnus.com>
7
8 * app.c (do_scrub_chars): If whitespace is seen in state 11, and
9 LABELS_WITHOUT_COLONS is not defined, and we are not in m68k MRI
10 mode, change the state to 3 rather than 1.
11
ee0f488d
ILT
12Thu Mar 14 18:18:25 1996 Ian Lance Taylor <ian@cygnus.com>
13
14 * config/obj-coff.h (C_REGISTER_SECTION): Change from 20 to 50, to
15 correspond to 11 March change.
16
9da28504
JL
17Thu Mar 14 15:27:10 1996 Jeffrey A Law (law@cygnus.com)
18
19 * config/tc-h8300.c (build_bytes, MEMIND case): Generate
20 an R_MEM_INDIRECT reloc rather than R_RELBYTE.
21
ea2488ad
ILT
22Tue Mar 12 12:21:10 1996 Ian Lance Taylor <ian@cygnus.com>
23
24 * configure: Rebuild with autoconf 2.8.
25
8fee8bf3
ILT
26Mon Mar 11 18:57:12 1996 Ian Lance Taylor <ian@cygnus.com>
27
28 * config/atof-ieee.c (gen_to_words): Improve handling of
29 X_PRECISION numbers. Based on patches from Andreas Schwab
30 <schwab@issan.informatik.uni-dortmund.de>.
31
a31c2bc7
SC
32Mon Mar 11 09:59:53 1996 Steve Chamberlain <sac@slash.cygnus.com>
33
34 * as.h (SEG_NORMAL, SEG_LIST): Bump segment limit from 10 to 40.
35 (SEG_LAST): New.
36 * subsegs.c (MANY_SEGMENTS): Increase segment limit.
37 * obj-coff.c (seg_N_TYPE, seg_info_off_by_4): Likewise.
38 (do_relocs_for, w_symbols, obj_coff_add_segment, do_linenos_for,
39 crawl_symbols, coff_header_append): Loop to SEG_LAST rather than
40 SEG_E9.
41
42Thu Mar 7 15:17:39 1996 Doug Evans <dje@charmed.cygnus.com>
43
44 * config/tc-sparc.c (sparc_ip): Handle operand char 'O' (neg reg).
45
73578b1e
JL
46Thu Mar 7 09:19:15 1996 Jeffrey A Law (law@cygnus.com)
47
48 * config/tc-hppa.c (SUBSEG_MILLI): Define.
49 (pa_def_subspaces): Add $MILLICODE$.
50 (pa_spaces_begin): Set section flags for $MILLICODE$.
51
0c27542f
ILT
52Wed Mar 6 14:11:30 1996 Ian Lance Taylor <ian@cygnus.com>
53
6b8ed20d
ILT
54 * config/obj-elf.c (obj_elf_section): Only SEC_LOAD if the type is
55 not SHT_NOBITS. Don't tamper with flags based on type if a
56 special section was found (revert Feb 29 change).
57
0c27542f
ILT
58 * config/tc-sh.c (sh_do_align): Only align using the nop pattern
59 if aligning to a longword boundary or greater.
60
6a413d6f
JW
61Tue Mar 5 15:10:43 1996 Jim Wilson <wilson@chestnut.cygnus.com>
62
63 * config/tc-sh.c (sh_do_align): Pass 1 not 2 to frag_align.
64
4b295517
SC
65Mon Mar 4 20:50:57 1996 Steve Chamberlain <sac@slash.cygnus.com>
66
67 * configure.in (i386-*-cygwin32): Don't use bfd_gas.
68 * configure: Regenerated.
69
eff5fcda
JL
70Mon Mar 4 10:13:06 1996 Jeffrey A Law (law@cygnus.com)
71
421e2c27
JL
72 * config/tc-hppa.c: Add default definitions for R_N0SEL and
73 R_N1SEL since they're not defined for old versions of hpux.
74
eff5fcda
JL
75 * config/tc-hppa.c (tc_gen_reloc): Fix typo in R_COMP2 code.
76 Set "sym_ptr_ptr" and "addend" fields to dummy values for
77 R_N0SEL and R_N1SEL.
78
bb1013d9
ILT
79Fri Mar 1 10:20:52 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
80
d197a7ab
ILT
81 * flonum-konst.c: Add two more constants for 1e+-2048 and
82 1e+-4096, and correct the other constants.
83
bb1013d9
ILT
84 * symbols.c (resolve_symbol_value): Handle O_logical_not.
85
30510276
MM
86Thu Feb 29 13:58:35 1996 Michael Meissner <meissner@tiktok.cygnus.com>
87
88 * config/obj-elf.c (obj_elf_section): Allow predefined section
0d8405e8 89 types to set the nobits type. Avoid a shadowed declaration.
30510276 90
75c90d61
JL
91Wed Feb 28 15:38:56 1996 Jeffrey A Law (law@cygnus.com)
92
24b216e1
JL
93 * config/tc-hppa.c (hppa_fix_adjustable): For SOM, don't
94 reduce relocs using e_nlrsel field selectors.
95
75c90d61
JL
96 * write.c (fix_new_exp): Don't use #elif. Some compilers
97 don't handle it.
83b59013
JL
98
99 * config/tc-hppa.c (selector_table): Add "n", "nl", and "nlr" to
100 the selector table.
101 (pa_chk_field_selector): Handle new field selectors for SOM.
102
535cfd0f
ILT
103Tue Feb 27 14:42:27 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
104
105 * configure.in (m68k-*-linux*aout*, m68k-*-linux*): New targets.
106 * configure: Rebuild.
107 * config/te-linux.h (LOCAL_LABELS_FB): Define.
108 * config/tc-m68k.h (TARGET_FORMAT) [TE_LINUX]: Define to
109 "a.out-m68k-linux".
110 * config/tc-m68k.c (comment_chars): Don't include '#' if TE_LINUX
111 is defined.
112
d214421e
SS
113Mon Feb 26 18:58:58 1996 Stan Shebs <shebs@andros.cygnus.com>
114
115 * mpw-make.sed: Update to handle shared library support.
116
110b814d
DE
117Mon Feb 26 10:34:10 1996 Doug Evans <dje@charmed.cygnus.com>
118
119 * config/tc-sparc.c (sparc_ip): Print all architectures that support
120 the insn on mismatch.
121
805e36ab
RS
122Fri Feb 23 21:44:39 1996 Rob Savoye <rob@chinadoll.cygnus.com>
123
124 * configure.in: Add support for a29-coff.
125 * configure: Rebuild.
126
e41ab2a6
ILT
127Thu Feb 22 16:39:43 1996 Ian Lance Taylor <ian@cygnus.com>
128
101a2346
ILT
129 * config/tc-sh.c (sh_coff_frob_file): Don't consider the address
130 of the section when looking for the R_SH_USES fixup, because the
131 frag addresses have not yet been adjusted.
132
940c413f
ILT
133 * gdbinit.in: Set a breakpoint on as_warn_where.
134
e41ab2a6
ILT
135 * config/tc-mips.c (macro): Add missing arguments to macro_build
136 omitted in last change. From Jim Wilson <wilson@cygnus.com>.
137
c6016ce2
ILT
138Wed Feb 21 17:00:32 1996 Ian Lance Taylor <ian@cygnus.com>
139
140 * config/tc-h8300.c (tc_reloc_mangle): Change reloc based on size
141 if it is TC_CONS_RELOC. Set a size of 4 to R_RELLONG.
142
b32fbe07
DE
143Wed Feb 21 09:25:39 1996 Doug Evans <dje@charmed.cygnus.com>
144
145 * config/tc-sparc.c (sparc_ip): Recognize %asr0 for v8.
146
2e5e6879
DE
147Tue Feb 20 21:48:03 1996 Doug Evans <dje@charmed.cygnus.com>
148
149 * config/tc-sparc.c (parse_keyword_arg): Accept leading '%'.
150 (sparc_ip): Accept %asr[1..31] for v8 and %asr[%16..31] for v9.
151 Recognize [uU] format args as sparclet cpregs.
152
8a2e1fdd
ILT
153Tue Feb 20 22:25:55 1996 Ian Lance Taylor <ian@cygnus.com>
154
155 * config/tc-sh.c (sh_handle_align): Don't emit R_SH_ALIGN relocs
156 in bss_section.
157
21965655
ILT
158Mon Feb 19 14:16:24 1996 Ian Lance Taylor <ian@cygnus.com>
159
160 * config/tc-sparc.h (TC_RELOC_RTSYM_LOC_FIXUP): Check S_IS_WEAK as
161 well as S_IS_EXTERNAL.
162 (tc_fix_adjustable): Likewise.
163 * config/tc-sparc.c (md_apply_fix): In OBJ_ELF case, check for
164 S_IS_WEAK as well as S_IS_EXTERNAL when deciding whether to return
165 early.
166 (tc_gen_reloc): Check S_IS_WEAK as wel as S_IS_EXTERNAL when
167 deciding whether to convert BFD_RELOC_32_PCREL_S2 if PIC.
168
d8b42b96
DE
169Mon Feb 19 02:15:57 1996 Doug Evans <dje@charmed.cygnus.com>
170
171 * config/tc-sparc.c (max_architecture): Change to sparclite for
172 32 bit arch.
173 (default_compatible): Delete.
174 (sparc_ffs): New function.
175 (md_begin): Only call SPARC_OPCODE_CONFLICT_P once.
176 (sparc_ip): Rewrite architecture match and bump logic.
177
7925f4d4
ILT
178Sun Feb 18 15:03:50 1996 Ian Lance Taylor <ian@cygnus.com>
179
180 * configure.in: Check for 'do not mix' from native linker before
181 trying to use -rpath.
182 * configure: Rebuild.
183
ef2074c2
ILT
184Fri Feb 16 16:53:31 1996 Ian Lance Taylor <ian@cygnus.com>
185
186 * config/obj-coff.h (SF_ADJ_LNNOPTR): Define (non BFD_ASSEMBLER).
187 (SF_GET_ADJ_LNNOPTR): Define (non BFD_ASSEMBLER).
188 (SF_SET_ADJ_LNNOPTR): Define (non BFD_ASSEMBLER).
189 * config/obj-coff.c (obj_coff_endef): Set ADJ_LNNOPTR when LNNOPTR
190 is set.
191 (w_symbols): If ADJ_LNNOPTR is set, add the section lnnoptr field
192 to the symbol lnnoptr field, to get the correct file offset.
193
28910c57
MM
194Thu Feb 15 14:48:38 1996 Michael Meissner <meissner@tiktok.cygnus.com>
195
196 * config/obj-elf.c (elf_frob_symbol): On the PowerPC, force all
197 symbols that are not function, file, or section symbols to be
198 object types.
199
7c2fadd1
ILT
200Thu Feb 15 11:20:18 1996 Ian Lance Taylor <ian@cygnus.com>
201
1a2f3c3f
ILT
202 * configure: Set and substitute RPATH_ENVVAR.
203 * configure: Rebuild.
204 * Makefile.in (RPATH_ENVVAR): New variable.
205 (check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
206
7c2fadd1
ILT
207 * configure.in: Accept i686. From H.J. Lu <hjl@zoom.com>: i386
208 doesn't need opcodes. If configuring shared, opcodes needs bfd.
209 * configure: Rebuild.
210
8a6f53e9
ILT
211Wed Feb 14 16:33:12 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
212
213 * read.c (s_mri_sect): Don't return '\0' in type. Set all
214 appropriate flags in BFD section.
215
216 * configure.in (m68k-*-psos*): New target.
217 * configure: Rebuild.
218 * config/te-psos.h: New file.
219 * config/tc-m68k.c (comment_chars): Don't include '#' if TE_PSOS
220 is defined.
221
fb251650
ILT
222Wed Feb 14 13:43:24 1996 Ian Lance Taylor <ian@cygnus.com>
223
ae09d880
ILT
224 From Alan Modra <alan@spri.levels.unisa.edu.au>:
225 * configure.in: Remove duplicate setting of cpu_type. Check
226 whether opcodes library is required for on all targets, not just
227 primary one.
228 * configure: Rebuild.
229
fb251650
ILT
230 * config/tc-mips.c (mips_big_got): New static variable.
231 (s_extern): Don't declare.
232 (reg_needs_delay): New static function.
233 (macro_build): Permit GOT/CALL_HI/LO relocs.
234 (macro_build_lui): If place is not NULL, use the number in the
235 expression.
236 (load_address): Handle mips_big_got case.
237 (macro): Handle mips_big_got for M_LA_AB, M_JAL_A, and load and
238 store macros.
239 (OPTION_XGOT): Define.
240 (md_longopts): Add "xgot" if OBJ_ELF.
241 (md_parse_option): Handle -xgot.
242 (md_show_usage): Mention -xgot.
243 (md_apply_fix): Permit GOT/CALL_HI/LO relocs.
244 (tc_gen_reloc): Handle GOT/CALL_HI/LO relocs.
245
d9396c16
ILT
246Wed Feb 14 11:22:27 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
247
248 * config/tc-m68k.c (m68k_ip) [operand kind '#']: When fixing
249 the byte relocation, point it to the low byte of the word.
250
56f9773f
ILT
251Tue Feb 13 15:31:18 1996 Ian Lance Taylor <ian@cygnus.com>
252
253 * configure.in: Set HDLFLAGS for *-*-hpux with --enable-shared.
254 * configure: Rebuild.
255
63e4edb5
DE
256Mon Feb 12 15:53:46 1996 Doug Evans <dje@charmed.cygnus.com>
257
258 * configure.in: Recognize any sparc* cpu.
259 * configure: Regenerated.
260
15ed5f2c
ILT
261Mon Feb 12 15:41:21 1996 Ian Lance Taylor <ian@cygnus.com>
262
20710f1c
ILT
263 * read.c (potable): Add "mri" and ".mri".
264 (s_mri): New function.
265 * read.h (s_mri): Declare.
266 * app.c (scrub_m68k_mri): New static variable.
267 (mri_pseudo): New static variable.
268 (do_scrub_begin): Add m68k_mri parameter. Use it rather than
269 flag_m68k_mri. Initialize scrub_m68k_mri.
270 (mri_state, mri_last_ch): New static variables.
271 (struct app_save): Add scrub_m68k_mri, mri_state, and mri_last_ch
272 fields.
273 (app_push): Save new fields.
274 (app_pop): Restore new fields.
275 (do_scrub_chars): Check scrub_m68k_mri rather than flag_mri_mri.
276 If TC_M68K, use a trivial state machine to look for occurrences of
277 the .mri pseudo-op, and change the mode appropriately.
278 * as.h (do_scrub_begin): Update prototype.
279 * input-scrub.c (input_scrub_begin): Pass flag_m68k_mri to
280 do_scrub_begin.
281 * config/tc-m68k.c (reg_prefix_optional_seen): New static
282 variable.
283 (m68k_mri_mode_change): New function.
284 (md_parse_option): Set reg_prefix_optional_seen.
285 * config/tc-m68k.h (m68k_mri_mode_change): Declare.
286 (MRI_MODE_CHANGE): Define.
287 * doc/as.texinfo: Document .mri pseudo-op.
288
15ed5f2c
ILT
289 * app.c (do_scrub_chars): In MRI mode, don't treat '#' as a
290 comment character.
291
a043f579
ILT
292Mon Feb 12 15:16:29 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
293
294 Support for OBJ_ELF on m68k, mostly inside #ifdef OBJ_ELF:
295 * config/m68k-parse.h (enum pic_relocation): Define.
296 (struct m68k_exp): Add pic_reloc field.
297 * config/tc-m68k.h (TC_RELOC_RTSYM_LOC_FIXUP): Define.
298 (tc_fix_adjustable): Define to call tc_m68k_fix_adjustable.
299 (NO_RELOC): Define to BFD_RELOC_NONE if BFD_ASSEMBLER, to zero
300 otherwise.
301 * config/tc-m68k.c: Delete definition of NO_RELOC.
302 (struct m68k_it): Add pic_reloc field.
303 (add_fix): Copy over pic_reloc field.
304 (md_pseudo_table): Interpret .align parameter as byte count.
305 (mote_pseudo_table): Likewise.
306 (tc_m68k_fix_adjustable): New function.
307 (get_reloc_code): New function.
308 (md_assemble): Use it as last argument to fix_new_exp.
309 (md_apply_fix_2): For a relocation against a symbol don't put the
310 addend into the data.
311 (tc_gen_reloc): Different addend computation for OBJ_ELF.
312 (m68k_ip): Don't relax an operand that requires pic relocation.
313 (md_begin): Align .text, .data and .bss on 4 byte boundary by
314 default.
315 * write.c (fixup_segment): Don't add symbol value to addend if
316 TC_M68K and OBJ_ELF.
317 * config/m68k-parse.y (yylex): Handle @PLTPC, etc.
318 (motorola_operand): Add rule for `(zapc, EXPR)'.
319
6ca1156d
ILT
320Mon Feb 12 10:07:33 1996 David Mosberger-Tang <davidm@azstarnet.com>
321
322 * ecoff.c (ecoff_directive_weakext): Fixed so that whitespace
323 *really* is permissible before the comma.
324
fcee3e24
ILT
325Mon Feb 12 00:12:13 1996 Ian Lance Taylor <ian@cygnus.com>
326
327 * config/tc-sh.c (sh_do_align): Align to a 2 byte boundary before
328 inserting nop instructions.
329
3e1c964d
ILT
330Fri Feb 9 10:54:19 1996 Ian Lance Taylor <ian@cygnus.com>
331
332 * config/te-aux.h: Change include of aux.h to aux-coff.h.
333
4080c270
ILT
334Thu Feb 8 20:02:58 1996 Ian Lance Taylor <ian@cygnus.com>
335
d782e3cc
ILT
336 * config/tc-i960.c (tc_coff_symbol_emit_hook): Correct storage
337 class setting for a CALLNAME symbol in COFF.
338
4080c270
ILT
339 * read.c (potable): Pass negative numbers for new .balign[wl] and
340 .p2align[wl] pseudo-ops.
341 (s_align_bytes): Treat a negative argument as specifying the fill
342 length.
343 (s_align_ptwo): Likewise.
344
1c9dbb83
ILT
345Wed Feb 7 14:12:03 1996 Ian Lance Taylor <ian@cygnus.com>
346
71dd3c40
ILT
347 * read.c (potable): Add balignw, balignl, p2alignw, and p2alignl.
348 (do_align): Take new len parameter. Change all callers. Pass it
349 to md_do_align.
350 (s_align_bytes): Arg now indicates the length of the fill pattern.
351 (s_align_ptwo): Likewise.
352 * config/obj-coff.c (write_object_file): Pass length to
353 md_do_align.
354 * config/tc-i386.h (md_do_align): Take new len parameter.
355 * config/tc-m88k.h (md_do_align): Likewise.
356 * config/tc-m88k.c (m88k_do_align): Likewise.
357 * config/tc-sh.h (md_do_align): Likewise.
358 * config/tc-sh.c (sh_do_align): Likewise.
359 * doc/as.texinfo: Document new pseudo-ops.
360
361 * config/obj-coff.c (fixup_mdeps): Divide offset by fr_var, as is
362 done in cvt_frag_to_fill.
363
9addcbb1
ILT
364 * config/tc-sh.h (sh_do_align): Declare.
365 (md_do_align): Define.
366 * config/tc-sh.c (sh_do_align): New function.
367
c15ea23a
ILT
368 * ecoff.c (ecoff_build_lineno): Don't try to store the address
369 difference if the next address is before the current one.
370
9e64486e
ILT
371 * config/tc-m68k.c (struct m68k_cpu): Add alias field.
372 (archs): Initialize new field.
373 (m68k_ip): Don't list alias names when listing CPUs which support
374 an instruction.
375
376 * as.c (main): Call parse_args before read_begin.
377 * app.c (do_scrub_chars): If flag_m68k_mri, don't put a dot in
378 front of generated pseudo-ops.
379 * read.c (potable): Ignore "name".
380 (s_app_file): Permit a single quote after the string, since one
381 may appear in m68k MRI mode.
382
1c9dbb83
ILT
383 * configure.in: Check for --enable-shared. If linking against
384 shared BFD and opcodes, fix library name on SunOS, and try to set
385 -rpath reasonably.
386 * configure: Rebuild.
387
388Tue Feb 6 15:16:17 1996 Ian Lance Taylor <ian@cygnus.com>
389
390 * as.h (flag_m68k_mri): Declare.
391 * as.c (parse_args): If TC_M68K, set flag_m68k_mri for -M.
392 * Many files: For MRI syntax that is specific to the m68k MRI
393 assembler, check flag_m68k_mri rather than flag_mri or
394 MRI_MODE_NEEDS_PSEUDO_DOT.
395
dd1d79e8
ILT
396Mon Feb 5 16:29:11 1996 Ian Lance Taylor <ian@cygnus.com>
397
f9e90c2e
ILT
398 * config/tc-i960.c (ARCH_HX): Define.
399 (arch_tab): Add HX.
400 (targ_has_sfr): Handle ARCH_HX.
401 (targ_has_iclass): Handle ARCH_HX.
402 (tc_coff_fix2rtype): Add return 0 to avoid warning.
403 (tc_headers_hook): If the architecture was specified explicitly,
404 use it when setting the flags. Set the extern variable coff_flags
405 rather than headers->filehdr.f_flags, since the latter is set
406 unconditionally in obj-coff.c.
407 (i960_handle_align): Remove unused variable fixp.
408
dd1d79e8
ILT
409 Support for building bfd and opcodes as shared libraries, based on
410 patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
411 * configure.in: Set OPCODES and BFD to search directories.
412 Substitute OPCODES_DEP and BFDDEP. On SunOS, set HLDFLAGS.
413 * configure: Rebuild.
414 * Makefile.in (LDFLAGS, HLDFLAGS): New variables.
415 (LIBDEPS): New variable.
416 (as.new0: Depend upon $(LIBDEPS) rather than $(LIBS). Use
417 $(HLDFLAGS) in link.
418 (check): Set LD_LIBRARY_PATH in the environment.
419
420Fri Feb 2 17:41:53 1996 Michael Meissner <meissner@wogglebug.tiac.net>
421
422 * config/tc-ppc.h (ELF_TC_SPECIAL_SECTIONS): Make .sdata2, .sbss2,
423 .PPC.EMB.sdata0, and .PPC.EMB.sbss0 sections all default to
424 read-only, not read/write.
425
e277d131
ILT
426Fri Feb 2 14:09:25 1996 Alan Modra <alan@spri.levels.unisa.edu.au>
427
428 * Makefile.in (INSTALL_XFORM): Remove -e.
429
e24cf2b5
ILT
430Fri Feb 2 12:32:15 1996 Ian Lance Taylor <ian@cygnus.com>
431
432 * write.c (write_relocs): Use S_IS_DEFINED and S_IS_COMMON rather
433 than comparing S_GET_SEGMENT to undefined_section.
434 (write_object_file): Skip symbols which were equated to an
435 undefined or common symbol.
436 * symbols.c (resolve_symbol_value): Use S_IS_DEFINED and
437 S_IS_COMMON rather than comparing S_GET_SEGMENT to
438 undefined_section.
439 (S_GET_VALUE): Likewise. Avoid recursion problems if S_IS_DEFINED
440 or S_IS_COMMON call S_GET_VALUE.
441 * config/obj-aout.h (S_IS_COMMON): Define if not BFD_ASSEMBLER.
442 * config/obj-aout.c (obj_emit_relocations): If a reloc is equated
443 to an undefined or common symbol, convert the reloc to be against
444 the target symbol.
445 (obj_crawl_symbol_chain): Skip symbols which were equated to an
446 undefined or common symbol.
447 * config/obj-bout.h (S_IS_COMMON): Define if not BFD_ASSEMBLER.
448 * config/obj-bout.c (obj_emit_relocations): If a reloc is equated
449 to an undefined or common symbol, convert the reloc to be against
450 the target symbol.
451 (obj_crawl_symbol_chain): Skip symbols which were equated to an
452 undefined or common symbol.
453 * config/obj-coff.c (do_relocs_for): Use S_IS_DEFINED and
454 S_IS_COMMON rather than comparing S_GET_SEGMENT to
455 undefined_section.
456 (yank_symbols): Skip symbols which were equated to an undefined or
457 common symbol.
458
4d9e33e4
ILT
459Thu Feb 1 15:34:32 1996 Ian Lance Taylor <ian@cygnus.com>
460
9e396994
ILT
461 * config/obj-aout.h (S_IS_LOCAL): Check for \002 as well as \001.
462 * config/obj-bout.h (S_IS_LOCAL): Likewise.
463
4d9e33e4
ILT
464 * configure.in: Make sure we only add m68k-parse.o to
465 ${extra_objects} once, no matter how many m68k targets have been
466 enabled.
467 * configure: Rebuild.
468
0ff513d9
SC
469Wed Jan 31 18:31:46 1996 Steve Chamberlain <sac@slash.cygnus.com>
470
471 * configure.in (i386-*-cygwin32, ppc-*-cygwin32): New.
472 * configure: Rebuild.
473
66b935da
ILT
474Wed Jan 31 14:03:17 1996 Richard Henderson <rth@tamu.edu>
475
c174fb5c
ILT
476 * config/tc-m68k.c (md_pseudo_table): Add "extend" and "ldouble".
477 * doc/c-m68k.texi: Document .extend and .ldouble.
478
66b935da
ILT
479 * configure.in (m68*-apple-aux*): New target.
480 * config/te-aux.h: New file.
481 * config/obj-coff.c (compare_external_relocs): New static function
482 if TE_AUX.
483 (do_relocs_for): Sort relocs if TE_AUX.
484 (fixup_segment): If TE_AUX, store common symbol value in segment.
485 * config/tc-m68k.h (TARGET_FORMAT): Define if TE_AUX.
486
30c2a08e
ILT
487Wed Jan 31 12:24:58 1996 Ian Lance Taylor <ian@cygnus.com>
488
9e396994 489 * config/obj-coff.h (S_IS_LOCAL): Check for \002 as well as \001.
615c0a79 490
30c2a08e
ILT
491 * config/tc-mips.c (s_mips_globl): Set BSF_OBJECT if it is not
492 BSF_FUNCTION.
493 (s_cpload): Set BSF_OBJECT for _gp_disp symbol.
494 * read.c (s_lcomm): If S_SET_SIZE is defined, set the size of the
495 symbol.
496 * ecoff.c (add_procedure): Set the BSF_FUNCTION flag.
497 (ecoff_build_symbols): If S_SET_SIZE is defined, set the size of
498 an undefined symbol and the size of a function symbol.
499 * config/obj-elf.c (elf_frob_symbol): If TC_MIPS, set BSF_OBJECT
500 for all common symbols.
501
0e6f2f82
KR
502Tue Jan 30 12:35:24 1996 Ken Raeburn <raeburn@cygnus.com>
503
504 * config/tc-i960.c (parse_memop): In MRI mode, don't use implicit
505 scaling of index.
506
507 * expr.c (operand): Accept 0x hex constants in MRI mode if not on
508 m68k.
509
8e3ff081
ILT
510Mon Jan 29 12:21:30 1996 Ian Lance Taylor <ian@cygnus.com>
511
3e78d072
ILT
512 * config/obj-elf.c (obj_elf_type): Set BSF_OBJECT flag for a type
513 of object. From Ronald F. Guilmette <rfg@monkeys.com>.
514
8e3ff081
ILT
515 * ecoff.c (localsym_t): Add addend field.
516 (add_ecoff_symbol): Add addend argument. Change all callers.
517 (coff_sym_value): Make static.
518 (coff_sym_addend): New static variable.
519 (ecoff_directive_def): Initialize coff_sym_addend.
520 (ecoff_directive_val): Accept symbol + constant.
521 (ecoff_directive_endef): Pass coff_sym_addend to add_ecoff_symbol.
522 (ecoff_build_symbols): Include the addend in the symbol value.
523
79edc846
KK
524Fri Jan 26 19:28:52 1996 Kim Knuttila <krk@cygnus.com>
525
526 * config/tc-ppc.c (md_assemble): Ignore overflow on
527 BFD_RELOC_16_GOTOFF and BFD_RELOC_PPC_TOC16.
528
529Fri Jan 26 16:14:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
530
531 * config/tc-ppc.c (md_apply_fix3): SDA21 relocations are now 4
532 bytes in size, so offset appropriately in big endian mode when
533 writing the bottom 2 bytes.
534
6cbc4e35
DE
535Thu Jan 25 20:26:23 1996 Doug Evans <dje@charmed.cygnus.com>
536
537 * config/tc-sparc.c (default_compatible): New static local.
538 (md_begin): Initialize it. Rewrite warn_on_bump handling.
539 (sparc_ip): If no architecture or -bump specified, don't mark as
540 mismatched those in default_compatible.
541
4fe0fddd
ILT
542Thu Jan 25 12:21:53 1996 Ian Lance Taylor <ian@cygnus.com>
543
544 SCO ELF support from Robert Lipe <robertl@arnet.com>:
545 * configure.in (i386-*-sco*elf*): Use fmt elf, targ sco5.
546 * configure: Rebuild.
547 * config/sco5.mt: New file; set TDEFINES to -DSCO_ELF.
548 * config/tc-i386.c (sco_id): New function, if SCO_ELF.
549 * config/tc-i386.h (tc_init_after_args): Define if SCO_ELF.
550 (sco_id): Declare if SCO_ELF.
551
e70ad5d5
DE
552Thu Jan 25 03:10:53 1996 Doug Evans <dje@charmed.cygnus.com>
553
554 * config/tc-sparc.c (initial_architecture,can_bump_v9_p): Deleted.
555 ({max,warn_after}_architecture): New static locals.
556 (md_begin): Replace NUMOPCODES with sparc_num_opcodes.
557 If both architecture and -bump requested, set max_architecture to max.
558 (sparc_md_end): Simplify.
559 (sparc_ip): Replace references to can_bump_v9_p with max_architecture.
560 Rewrite code to bump architecture and check for conflicts.
561 (md_longopts): Recognize -xarch={v8plus,v8plusa} for compatibility
562 with Solaris assembler.
563 (md_parse_option): Likewise. Call sparc_opcode_lookup_arch.
564 (md_show_usage): Update.
565
a8248831
DE
566Wed Jan 24 22:11:03 1996 Doug Evans <dje@charmed.cygnus.com>
567
568 * Makefile.in (RUNTEST): Fix reference to $${srcdir}.
569
6df07e7f
DE
570Mon Jan 22 09:21:36 1996 Doug Evans <dje@charmed.cygnus.com>
571
572 * config/tc-sparc.h (TARGET_FORMAT): Use #ifdef SPARC_ARCH64 instead of
573 #ifdef sparcv9 when choosing value.
574 (ENV64): Delete.
575 (md_end): Define.
576 (sparc_md_end): Declare.
577 * config/tc-sparc.c (SPARC_V9): Renamed from sparcv9.
578 (initial_architecture): New static local.
579 (can_bump_v9_p): Likewise.
580 (NO_V9): Delete all occurrences.
581 (sparc_md_end): New function.
582 (sparc_ip): New local v9_arg_p. Rework fp reg number test.
583 Don't bump architecture to v9 unless can_bump_v9_p set.
584 (md_parse_option): -A<arch> passed, set can_bump_v9_p accordingly.
585 * configure.in (sparc64 target cpu): Don't set obj_format here.
586 (SPARC_V9): Renamed from sparcv9.
587 (sparc64-*-elf*): Define SPARC_ARCH64.
588 * configure: Regenerated.
589 * acconfig.h (SPARC_V9): Renamed from sparcv9.
590 (SPARC_ARCH64): Add.
7fcb3191 591 * conf.in: Regenerated.
6df07e7f
DE
592 * config/vmsconf.h: Update.
593
c9c7c1d7
JSC
594Mon Jan 22 17:24:47 1996 James G. Smith <jsmith@cygnus.co.uk>
595
596 * config/tc-mips.c (load_register): Optimise "dli" loads.
597 (md_show_usage): add "-mcpu=vr4100" to help text.
16ce20d4 598
07ce72c9
ILT
599Mon Jan 22 11:53:00 1996 Ian Lance Taylor <ian@cygnus.com>
600
16ce20d4
ILT
601 * symbols.c (resolve_symbol_value): If a symbol is equated to an
602 undefined symbol, preserve the X_op of O_symbol.
603 (S_GET_VALUE): Fix check to permit this case.
604 * write.c (write_relocs): If a reloc is against an undefined
605 symbol equated to another symbol, change the reloc to be against
606 the latter symbol.
607 * config/obj-coff.c (do_relocs_for): Likewise.
608
07ce72c9
ILT
609 * config/tc-ppc.c (ppc_csect): An unnamed csect is storage class
610 XMC_PR.
611
d971d39e
MM
612Mon Jan 22 10:59:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
613
614 * config/obj-elf.c (elf/ppc.h): Include elf/ppc.h if target
615 computer is PowerPC.
616
617 * config/tc-ppc.c (md_apply_fix3): Add more embedded relocations.
618
619 * config/tc-ppc.h (ELF_TC_SPECIAL_SECTIONS): Add sections
620 mentioned in the eabi.
621
0291f0f5
KK
622Thu Jan 18 17:58:19 1996 Kim Knuttila <krk@cygnus.com>
623
624 * config/tc-ppc.c (ppc_reldata): Changed alignement on reldata_section
625 * config/tc-ppc.c (ppc_pdata): Changed the alignment on pdata_section
626
c682be53
MM
627Mon Jan 15 17:43:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
628
629 * config/tc-ppc.c (mapping): Add more relocation suffixes.
630
ee4fdbb9
MM
631Sun Jan 14 21:29:36 1996 Michael Meissner <meissner@tiktok.cygnus.com>
632
633 * config/tc-ppc.c (ppc_elf_validate_fix): Allow .gcc_except_table
634 as a section it is ok to have unadorned -mrelocatable pointers in.
635
636Sat Jan 13 11:09:08 1996 Michael Meissner <meissner@tiktok.cygnus.com>
747b98fe
MM
637
638 * config/tc-ppc.c (ppc_section*): Wrap these functions inside
639 #ifdef OBJ_ELF.
640
f99d287b
MM
641Fri Jan 12 15:32:07 1996 Michael Meissner <meissner@tiktok.cygnus.com>
642
643 * config/obj-elf.c (obj_elf_section): Add hooks so machine
644 dependent section attributes can be handled.
645
646 * config/tc-ppc.h: (md_elf_section_{letter,type,word,flags}): New
647 macros to add support for exclude section flag and ordered section
648 type.
649
650 * config/tc-ppc.c (ppc_elf_section_{letter,type,word,flags}): New
651 functions to add support for exclude section flag and ordered
652 section type.
653
347a705b
ILT
654Fri Jan 12 12:04:00 1996 Ian Lance Taylor <ian@cygnus.com>
655
2a4e49a9
ILT
656 * subsegs.c (section_symbol): Don't try to look up the section
657 symbol in the hash table. It should be possible to have a symbol
658 with the same name as a section, but no connection to it.
659
d9f4dec1
ILT
660 * read.c (cons_worker): Only call mri_comment_end from flag_mri.
661 From James Carlson <carlson@xylogics.com>.
662
347a705b
ILT
663 * expr.c (operand): Skip whitespace after a close parenthesis.
664 From James Carlson <carlson@xylogics.com>.
665
10c8c95e
JW
666Tue Jan 2 12:43:23 1996 Jim Wilson <wilson@chestnut.cygnus.com>
667
668 * config/tc-sh.c (md_apply_fix): Call as_bad_where instead of
669 as_warn_where for relocation overflow.
347a705b
ILT
670 (parse_reg): Accept register name only if next character is
671 not alphanumeric.
10c8c95e 672
cb844314
JL
673Sat Dec 30 23:42:51 1995 Jeffrey A Law (law@cygnus.com)
674
675 * ecoff.c (ecoff_stab): Simplify. Correctly handle sym + offset
676 addresses for static variables.
677
36cb0e7c
MM
678Thu Dec 21 12:54:32 1995 Michael Meissner <meissner@tiktok.cygnus.com>
679
680 * config/tc-ppc.c (mapping): Make @got give a real GOT relocation,
681 and xgot give the old toc16 relocation.
682 (md_apply_fix3): Support all GOT relocations.
683
5e69b693
ILT
684Wed Dec 20 14:57:17 1995 Ian Lance Taylor <ian@cygnus.com>
685
686 * config/tc-mips.c (load_address): Correctly handle a constant in
687 SVR4_PIC case. From Richard Kenner <kenner@vlsi1.ultra.nyu.edu>.
688
29861dd0
C
689Fri Dec 15 14:25:07 1995 J.T. Conklin <jtc@rtl.cygnus.com>
690
691 * config/tc-sh.c (parse_reg): Recognize SH3 registers.
692 (get_specific): Handle A_SSR, A_SPC and A_REG_B.
693 (build_Mbytes): Handle REG_B.
694
432b8fa8
ILT
695Fri Dec 15 16:07:25 1995 Ian Lance Taylor <ian@cygnus.com>
696
697 * ecoff.c (ecoff_build_aux): Use new bfd_big_endian macro.
698
ee68a042
RJ
699Fri Dec 15 12:11:48 1995 Raymond Jou <rjou@mexican.cygnus.com>
700
701 * mpw-make.sed: If linking, edit ALL_CFLAGS to CFLAGS.
702
b14630f2
ILT
703Thu Dec 14 15:09:52 1995 Ian Lance Taylor <ian@cygnus.com>
704
705 * config/obj-coff.c (write_object_file): Set the s_align field to
706 the number of bytes, rather than to the power of 2.
707
4a3d48fc
ILT
708Tue Dec 12 12:19:37 1995 Ian Lance Taylor <ian@cygnus.com>
709
710 * Makefile.in (DISTCLEAN_HERE): New variable.
711 (distclean): Use it.
712 (maintainer-clean): Depend upon clean-here rather than clean,
713 distclean, and clean-info. Run make maintainer-clean in doc.
714 Remove files listed in DISTCLEAN_HERE.
715 * doc/Makefile.in (maintainer-clean realclean): Split out from
716 distclean. Depend upon clean-info and distclean.
717
7e5e83cf
SS
718Mon Dec 11 16:23:51 1995 Stan Shebs <shebs@andros.cygnus.com>
719
720 * mac-as.r: Fix copyright and version strings.
721 (cfrg): Use PROG_NAME instead of literal name.
722
0ff513d9 723
1b10f50d
ILT
724Mon Dec 11 14:14:08 1995 Ian Lance Taylor <ian@cygnus.com>
725
726 * read.c (read_a_source_file): If tc_unrecognized_line is defined,
727 call it.
728 * config/tc-a29k.h (tc_unrecognized_line): Define.
729 * config/tc-a29k.c (a29k_unrecognized_line): New function.
730 (md_operand): Handle a29k style local dollar labels.
731
2f3bbb1b
ILT
732Wed Dec 6 17:52:52 1995 Ian Lance Taylor <ian@cygnus.com>
733
734 * config/obj-multi.h: If OBJ_MAYBE_ELF, define OBJ_SYMFIELD_TYPE.
735
624c91d1
KR
736Tue Dec 5 13:26:34 1995 Ken Raeburn <raeburn@cygnus.com>
737
738 * read.c (s_fill): If md_flush_pending_output is defined, call
739 it.
740
9e4b3a23
KR
741Mon Dec 4 15:10:53 1995 Ken Raeburn <raeburn@cygnus.com>
742
743 * config/obj-coff.c (size_section, fill_section, fixup_mdeps):
744 Treat rs_align_code like rs_align.
745
3554987a
DE
746Sun Dec 3 16:46:54 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
747
748 * config/tc-arm.c (cp_address_required_here): Set pre_inc when
749 converting an absolute address into a PC-relative one.
750
90f543f6
SS
751Fri Dec 1 11:57:56 1995 Stan Shebs <shebs@andros.cygnus.com>
752
753 * mpw-config.in: Don't always use te-generic.h for emulation.
754 (powerpc-apple-macos): Use emulation te-macos.h.
755start-sanitize-gm
756 (mips-gm-magic): New configuration.
757end-sanitize-gm
758 * mpw-make.sed (install, install-only): Edit in Mac-specific
759 install procedure.
760
d4c8a45e
ILT
761Fri Dec 1 10:59:25 1995 Ian Lance Taylor <ian@cygnus.com>
762
2eec8710
ILT
763 * configure.in: Improve message about unsupported ELF targets.
764 * configure: Rebuild.
765
d4c8a45e
ILT
766 * config/tc-m88k.c (m88k_do_align): Correct check for whether fill
767 pattern is zero. From Manfred Hollstein.
768
531a1af2
KK
769Thu Nov 30 13:25:49 1995 Kim Knuttila <krk@cygnus.com>
770
771 * config/tc-ppc.c (ppc_pe_section): To get the alignment right for
772 the various idata sections, we check the name on the .section pseudo.
773
464070de
ILT
774Thu Nov 30 11:23:42 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
775
776 * config/obj-coff.c (fixup_segment): If TC_M88K is defined, do not
777 add section's paddr to add_number; compatibility to native as and
778 ld forbids.
779
6a087325
KR
780Wed Nov 29 23:14:27 1995 Ken Raeburn <raeburn@cygnus.com>
781
9d5aef80
KR
782 * configure.in: Treat m68k-sysv4 like m68k-elf, not m68k-sysv3.
783
ac9ef8ee
KR
784 * hash.c (struct hash_entry): Moved here...
785 * hash.h (struct hash_entry): ...from here.
786
6a087325
KR
787 * config/obj-elf.c (elf_frob_symbol): Don't free and clear sy_obj
788 if it's already known to be null.
789
77fa4d98
MM
790Wed Nov 29 13:00:20 1995 Michael Meissner <meissner@tiktok.cygnus.com>
791
792 * config/tc-ppc.c (md_apply_fix3): Don't adjust the value for 32
793 bit relocs converted to PC relative relocs. This turned out to
794 add the offset from the beginning of .text twice.
795
c6e4e834
KR
796Tue Nov 28 10:42:36 1995 Ken Raeburn <raeburn@cygnus.com>
797
798 * stabs.c (s_stab_generic): In 's' case, free string from
799 obstack.
800
801 * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): Remove unused field
802 sy_name_offset.
803 * config/obj-multi.h (ELF_TARGET_SYMBOL_FIELDS) [OBJ_MAYBE_ELF]:
804 Ditto.
805
806 * subsegs.h (segment_info_type): Make bitfields unsigned.
807
808 * expr.h (struct expressionS): Make X_op and X_unsigned bitfields,
809 and move them together. On most systems this will reduce the
810 structure size by one word.
811 (operatorT): Define O_max.
812 * expr.c (expr_begin): Verify that X_op is wide enough to hold
813 O_max.
814
815 * read.c (pop_insert): Print error returned by hash table
816 insertion code.
817
818 * as.c (dump_statistics): Split out from main; dump some hash
819 table stats and target-specific stats.
820 (start_time): No longer automatic to main.
821 (main): Set file-level start_time and call dump_statistics at
822 exit. Exit by calling xexit.
823 (show_usage): Make --statistics description less specific.
824 * subsegs.c (subsegs_print_statistics): New function.
825 * write.c (write_print_statistics): New function.
826 (n_fixups): New static variable.
827 (fix_new_internal): Increment it.
828 * read.c (read_print_statistics): New function.
829 * read.h (read_print_statistics): Declare.
830 * symbol.c (symbol_print_statistics): New function.
831 * symbol.h (symbol_print_statistics): Declare.
832 * hash.c (hash_print_statistics): New function.
833 * hash.h (hash_print_statistics): Declare.
834 * config/tc-i386.c (i386_print_statistics): New function.
835 * config/tc-i386.h (i386_print_statistics): Declare.
836 (tc_print_statistics): New macro.
837 * messages.c (as_fatal, as_assert, as_abort): Use xexit, not
838 exit.
839
840 * hash.c (DELETED): Rewrite to use a valid but unique address.
841 (START_POWER): Reduce to 10.
842 (enum stat_enum): New enumerator, replacing STAT_* index macros.
843 Add new values for counting strcmp calls.
844 (GROW_FACTOR): New macro.
845 (hash_grow): Use GROW_FACTOR. Rewrite for quick returns instead
846 of nesting blocks.
847 (FULL_VALUE): New macro. Use 1/4 of table size instead of 1/2.
848 (hash_new): Use FULL_VALUE.
849 (struct hash_control): Definition moved here.
850 (hash_code): Don't mask to low bits.
851 (hash_ask): Mask returned hash code here. Check hash value before
852 calling strcmp; count strcmp calls.
853 * hash.h (struct hash_control): Declare, don't define, here.
854 (HASH_STATLENGTH): Deleted.
855 (struct hash_entry): Add field for hash code.
856 (hash_say, hash_apply): Don't declare.
857
858 * hash.c (destroy): Return void.
859 (applicatee): Ditto.
860 (main): Fix declarations.
861 (hash_apply): Return void. Argument `function' returns void. Put
862 inside "#ifdef TEST".
863 (hash_say): Define only if TEST is defined.
864 * hash.h (hash_apply, hash_say): Declarations deleted.
865
6a4667f4
ILT
866Mon Nov 27 13:18:25 1995 Ian Lance Taylor <ian@cygnus.com>
867
868 * configure: Rebuild with autoconf 2.7.
869
330add8a
ILT
870Tue Nov 21 18:39:01 1995 Ian Lance Taylor <ian@cygnus.com>
871
872 * aclocal.m4 (AC_PROG_CC): Remove local definition.
873 * configure: Rebuild with autoconf 2.6.
874
520dd8d5
ILT
875Mon Nov 20 17:26:00 1995 Ian Lance Taylor <ian@cygnus.com>
876
877 * config/tc-ppc.c (ppc_debug_name_section_size): Remove.
878 (ppc_stabx): Don't increment ppc_debug_name_section_size.
879 (ppc_bc): Likewise.
880 (ppc_frob_file): Remove.
881 * config/tc-ppc.h (tc_frob_file): Don't define.
882 (ppc_frob_file): Don't declare.
883
880b7429
KR
884Mon Nov 20 13:37:05 1995 Ken Raeburn <raeburn@cygnus.com>
885
d6c4a3fa
KR
886 * Makefile.in (TARG_CPU_DEP_alpha): Mention alpha-opcode.h.
887 * config/alpha-opcode.h: Include one-operand variants of jmp and
888 jsr.
889
880b7429
KR
890 * config/te-delt88.h: Renamed from te-delta88.h, to avoid conflict
891 with te-delta.h in 8.3 file systems.
892 * configure.in: Adjusted.
893
aa8a6656
ILT
894Thu Nov 16 12:49:38 1995 Ian Lance Taylor <ian@cygnus.com>
895
880b7429
KR
896 * config/tc-mips.c (s_err): Remove; just use the one in read.c.
897
aa8a6656
ILT
898 * config/m68k-parse.y (yylex): In MRI mode, '@' can start an octal
899 number.
900 * expr.c (operand): Handle MRI suffixes after unadorned 0.
901
7b889f5e
KR
902Thu Nov 16 00:21:44 1995 Ken Raeburn <raeburn@cygnus.com>
903
da9b55af
KR
904 Version 2.6 released.
905 * Makefile.in (VERSION): Updated to 2.6.
906
7b889f5e
KR
907 * config/obj-coff.c (write_object_file): Change use of md_do_align
908 to pass a pointer rather than a fill value, to match other uses.
909
46618ae6
KR
910Wed Nov 15 03:52:00 1995 Ken Raeburn <raeburn@cygnus.com>
911
7b889f5e
KR
912 * config/tc-ns32k.h (TC_FIX_TYPE): Add missing semicolon.
913
46618ae6
KR
914 * as.c (main): Move md_end call to just after call to
915 perform_an_assembly_pass. Delete cpu-specific code here.
916 * config/tc-i960.h (md_end): New macro, calls brtab_emit.
917start-sanitize-rce
918 * config/tc-rce.c (md_end): Deleted.
919 * config/tc-rce.h (md_end): New macro, calls dump_literals.
920end-sanitize-rce
921 * config/tc-arm.c (md_end): Unused function deleted.
922 * config/tc-ns32k.c (md_end): Ditto.
923
924 * config/tc-i386.c (i386_align_code): New function, moved here
925 from HANDLE_ALIGN macro.
926 * config/tc-i386.h (HANDLE_ALIGN): Call it.
927
928 Mon Jul 31 14:53:19 1995 Alan Modra <alan@spri.levels.unisa.edu.au>
929
930 * config/tc-i386.h (md_do_align): cast fill and 0x90 to char
931 before comparing
932
933 Mon May 1 10:91:49 1995 Alan Modra <alan@spri.levels.unisa.edu.au>
934
935 * config/tc-i386.h (md_do_align): Make ".align n,0x90" generate
936 multi-byte nops to avoid changing gcc. The necessary gcc change
937 might break old assemblers.
938
939 Sat Apr 22 20:53:05 1995 Alan Modra <alan@spri.levels.unisa.edu.au>
940
941 * config/tc-i386.h (md_do_align, HANDLE_ALIGN): Add macros to
942 generate optimal multi-byte nop instructions for ".align n"
943 ".align n,0x90", and aligns requiring more than 15 bytes of
944 padding still generate multiple 0x90's as before.
945
946Mon Nov 13 17:40:21 1995 Ian Lance Taylor <ian@cygnus.com>
947
948 * config/tc-m68k.c (s_mri_until): Call pop_mri_control.
949
51bc513e
SS
950Mon Nov 13 20:39:06 1995 Stan Shebs <shebs@andros.cygnus.com>
951
952 * configure.in (ppc-*-macos*, ppc-*-mpw*): New configurations.
953 * configure: Update.
954 * mpw-make.sed: Reorder commands to make sed happier.
955 * config/te-macos.h: New file.
956 * config/tc-ppc.h (TARGET_FORMAT): Set correctly for PowerMac.
957
8b39c5df
JL
958Sun Nov 12 21:14:56 1995 Jeffrey A Law (law@cygnus.com)
959
960 * config/tc-hppa.c (pa_ip): Fix off-by-2 bug in length check for
961 conditional branches.
962 (md_apply_fix): Likewise.
963
964Thu Nov 9 16:14:01 1995 Ian Lance Taylor <ian@cygnus.com>
965
966 * config/tc-a29k.c (md_apply_fix): Warn if an attempt is made to
967 generate a reloc which the linker will not handle correctly. Fix
968 overflow checking--R_IREL is 18 bits, not 17.
969
6a649eda
ILT
970Wed Nov 8 19:59:36 1995 Ian Lance Taylor <ian@cygnus.com>
971
a071b8e9
ILT
972 * config/obj-coff.c (fixup_segment): Don't subtract md_pcrel_from
973 from a PC relative reloc if TC_A29K.
974
975 * config/tc-a29k.c (line_separator_chars): Restore '@'. Existing
976 code depends upon it.
977
6a649eda
ILT
978 * config/tc-a29k.c (md_operand): Handle $float, $double, and
979 $extend. Based on code from Eric Freudenthal
980 <freudenthal@nyu.edu>.
981 * config/tc-a29k.h (LEX_DOLLAR): Define.
982 * read.c (LEX_DOLLAR): Define if not defined.
983 (lex_type): Use LEX_DOLLAR.
984
6364a188
ILT
985Wed Nov 8 16:38:14 1995 Eric Freudenthal <freudenthal@nyu.edu>
986
987 * configure.in (a29k-nyu-sym1): New target, just like other a29k
988 targets.
989
0fa6f8f6
ILT
990Wed Nov 8 11:38:48 1995 Ian Lance Taylor <ian@cygnus.com>
991
992 * config/obj-coff.c (c_dot_file_symbol): Cast xmalloc return.
993
994Tue Nov 7 09:14:35 1995 Kim Knuttila <krk@cygnus.com>
995
996 * config/tc-ppc.c (md_apply_fix3): Added BFD_RELOC_RVA. Currently
997 used only by "dlltool.c".
998
eec2cfef
ILT
999Mon Nov 6 18:51:26 1995 Ian Lance Taylor <ian@cygnus.com>
1000
1001 * config/tc-alpha.c: Undefine inline if not __GNUC__.
1002 (md_pseudo_table): Don't define "extern".
1003
df7504dc
ILT
1004Sat Nov 4 00:51:21 1995 Ian Lance Taylor <ian@cygnus.com>
1005
a3d1c561
ILT
1006 * config/tc-ppc.c (ppc_biei): Force symbol into text_section.
1007
df7504dc
ILT
1008 * config/tc-ppc.c (md_show_usage): Put backslash at end of line.
1009
07d012f6
ILT
1010Fri Nov 3 13:02:59 1995 Ian Lance Taylor <ian@cygnus.com>
1011
36e80ac6
ILT
1012 * macro.c (macro_expand_body): Don't warn about == with a
1013 nonexistent parameter, in case it is in a comment field.
1014
07d012f6
ILT
1015 * as.c (main): On TC_A29K, call macro_init with macro_alternate
1016 set to 1.
1017 * macro.c (get_any_string): Don't keep quotes if macro_strip_at is
1018 set, even if macro_alternate is set.
1019 (get_apost_token): If macro_strip_at, only skip kind if it is '@'.
1020 (sub_actual): If macro_strip_at, and kind is '@', don't look up
1021 the token unless it ended in '@'.
1022 * config/tc-a29k.c (line_separator_chars): Remove '@'.
1023 * doc/c-a29k.texi: Document macro usage on A29K.
1024
01f108bc
ILT
1025Thu Nov 2 23:07:57 1995 Ian Lance Taylor <ian@cygnus.com>
1026
1027 * config/tc-m68k.c (m68k_ip): Handle new 'W' place, meaning a
1028 signed word.
1029 (install_operand): Likewise.
1030
1031 * config/obj-elf.c (ecoff_debug_pseudo_table): Add "extern".
1032
1033Wed Nov 1 15:17:02 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
1034
1035 * configure.in (m88k-motorola-sysv*): New target.
1036 * configure: Rebuild.
1037 * config/te-delta88.h: New file.
1038 * config/obj-coff.c (write_object_file): Use md_do_align if it is
1039 defined.
1040 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Define.
1041 (md_do_align): Define.
1042 * config/tc-m88k.c: Include "subsegs.h".
1043 (m88k_do_align): New function.
1044
1045 * config/te-delta.h (STRIP_UNDERSCORE): Don't define.
1046 (COFF_NOLOAD_PROBLEM): Define.
1047 (LOCAL_LABELS_DOLLAR, LOCAL_LABELS_FB): Define.
1048
7954cc14
KR
1049Wed Nov 1 16:07:43 1995 Ken Raeburn <raeburn@cygnus.com>
1050
1051 * config/tc-i386.c (md_assemble): For a jump instruction with
1052 non-constant target, require 7 available bytes in the current
1053 frag, not 6.
1054
d033806f
FF
1055Tue Oct 31 15:37:16 1995 Fred Fish <fnf@rtl.cygnus.com>
1056
1057 * config/obj-elf.h: Include bfd/elf-bfd.h rather than
1058 bfd/libelf.h.
1059
d7b2038f
ILT
1060Tue Oct 31 16:34:28 1995 David Mosberger-Tang <davidm@azstarnet.com>
1061
1062 * configure.in (alpha-*-linux*): Use ecoff.
1063 * configure: Rebuild.
1064 * ecoff.c (ecoff_directive_extern): New function.
1065 (ecoff_directive_weakext): New function.
1066 (ecoff_build_symbols): Handle weak symbols.
1067 (ecoff_setup_ext): Likewise.
59c80ca2 1068 (ecoff_frob_symbol): Warn about weak common symbols.
d7b2038f
ILT
1069 * ecoff.h (ecoff_directive_extern): Declare.
1070 (ecoff_directive_weakext): Declare.
1071 * symbols.c (S_IS_WEAK): New function.
1072 * symbols.h (S_IS_WEAK): Declare.
1073 * config/obj-ecoff.c (obj_pseudo_table): Add "extern" and
1074 "weakext".
1075 * config/tc-mips.c (mips_pseudo_table): Remove "extern".
1076 (s_extern): Remove.
1077
cbdf59ad
ILT
1078Tue Oct 31 13:29:08 1995 Ian Lance Taylor <ian@cygnus.com>
1079
b629f627
ILT
1080 * config/tc-ppc.c (ppc_lglobl): Do the right thing.
1081
7ab1edc8
ILT
1082 * config/tc-ppc.c (ppc_bb): Call SF_SET_PROCESS.
1083 (ppc_eb): Likewise. Set the storage class to C_BLOCK, not C_FCN.
1084 (ppc_frob_symbol): Don't change C_BLOCK symbols to C_HIDEXT.
1085 * config/obj-coff.c (coff_frob_symbol): Don't call
1086 SA_SET_SYM_ENDNDX with the current symbol; call it with the next
1087 one. If OBJ_XCOFF, try to figure out whether the symbol is going
1088 to be dropped.
1089
31751d9d
ILT
1090 * config/tc-ppc.c (md_pseudo_table): Add "bc" and "ec".
1091 (ppc_stab_symbol): New static variable.
1092 (ppc_change_csect): Check that ppc_toc_csect is not NULL.
1093 (ppc_stabx): Set ppc_stab_symbol around call to symbol_make. Set
1094 sy_tc.real_name to the stab string.
1095 (ppc_bc, ppc_ec): New static functions.
1096 (ppc_canonicalize_symbol_name): If ppc_stab_symbol is set, don't
1097 do anything.
1098 (ppc_symbol_new_hook): If ppc_stab_symbol is set, don't look for a
1099 suffix.
0e3dd9a0
ILT
1100 (ppc_frob_symbol): Set BSF_NOT_AT_END for symbols with csect aux
1101 entries.
31751d9d 1102
cbdf59ad
ILT
1103 * input-scrub.c (input_scrub_push): Reset sb_index.
1104
91123dbe
ILT
1105Mon Oct 30 17:52:46 1995 Ian Lance Taylor <ian@cygnus.com>
1106
1107 * listing.c (listing_newline): Don't create a frag in the absolute
1108 section.
1109
73255941
ILT
1110Sat Oct 28 01:02:05 1995 Ian Lance Taylor <ian@cygnus.com>
1111
df72d2a5
ILT
1112 * config/tc-ppc.c (md_pseudo_table): Add "data" and "text".
1113 (ppc_csect): Move most of the code to ppc_change_csect, and call
1114 it.
1115 (ppc_change_csect): New static function, taken from ppc_csect.
1116 (ppc_section): New static function.
1117 (ppc_saw_abs): New static varable.
1118 (ppc_frob_symbol): Create aux entry for absolute symbols. Warn if
1119 a symbol has no csect.
1120 (ppc_adjust_symtab): New function.
1121 * config/tc-ppc.h (tc_adjust_symtab): Define if OBJ_XCOFF.
1122 (ppc_adjust_symtab): Declare if OBJ_XCOFF.
1123
1124 * write.c (write_object_file): If tc_adjust_symtab is defined,
1125 call it just before the call to obj_adjust_symtab.
1126
73255941
ILT
1127 * symbols.c (symbol_find_or_make): Change name to be const.
1128 * symbols.h (symbol_find_or_make): Update declaration.
1129
9bfaf1b9
KR
1130Thu Oct 26 19:18:27 1995 Ken Raeburn <raeburn@cygnus.com>
1131
1132 * doc/as.texinfo (Align): Mention SH.
1133 * doc/c-m68k.texi (M68K-Directives, .even): Describe behavior, not
1134 .align value.
1135 * doc/c-z8k.texi (Z8000 Directives, global): Fix minor typo.
1136 (Z8000 Directives, even): Don't give numeric align value, instead
1137 explain behavior.
1138
ae143278
DE
1139Thu Oct 26 11:45:03 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
1140
1141 * tc-arm.c (do_ldst): Assemble ldr/str r0, [r1] as a pre-increment
1142 instruction.
1143
270433cc
PB
1144Wed Oct 25 11:59:24 1995 Per Bothner <bothner@kalessin.cygnus.com>
1145
1146 * Makefile.in (diststuff): Also make info.
1147 (maintainer-clean realclean): Also make clean-info.
1148
18a11401
JL
1149Tue Oct 24 15:21:33 1995 Jeffrey A Law (law@cygnus.com)
1150
1151 * config/tc-hppa.c (md_pseudo_table): Add new ".nsubspa" opcode.
1152 (pa_subspace): For ".nsubspa", always create a new subspace
1153 with the given attributes, even if one already exists with the
1154 same name.
1155
96fe71e1
MM
1156Tue Oct 24 14:50:38 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1157
1158 * config/tc-ppc.h (TC_FORCE_RELOCATION_SECTION): Rename from
1159 TC_FORCE_RELOCATION, taking an additional section argument. If
1160 the section of the target symbol is not the same as the current
1161 section, always force the relocation to be used.
1162 (MD_PCREL_FROM_SECTION): New macro to call md_pcrel_from_section.
1163
1164 * config/tc-ppc.c (md_pcrel_from_section): Rename from the
1165 md_pcrel_from function, taking an additional section argument.
1166 Invoke TC_FORCE_RELOCATION_SECTION instead of TC_FORCE_RELOCATION.
1167
1168 * write.c (TC_FORCE_RELOCATION_SECTION): Define in terms of the
1169 older TC_FORCE_RELOCATION if not defined.
1170 (MD_PCREL_FROM_SECTION): If not defined, invoke md_pcrel_from.
1171 (fixup_segment): Use MD_PCREL_FROM_SECTION instead of
1172 md_pcrel_from, and TC_FORCE_RELOCATION_SECTION instead of
1173 TC_FORCE_RELOCATION.
1174
1d75481b
KR
1175Mon Oct 23 16:20:04 1995 Ken Raeburn <raeburn@cygnus.com>
1176
1177 * input-scrub.c (as_where): Set name to null pointer if we don't
1178 have a file name.
1179 * messages.c (identify): Only print filename if non-null.
1180 (as_show_where): Ditto, for line number too.
1181 (as_warn_internal, as_bad_internal): Ditto.
1182
1183 * input-file.c (input_file_open): If the input file can't be
1184 opened, consider it an error.
1185
c625fc23
JSC
1186Mon Oct 23 11:15:44 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
1187
1188 * config/tc-mips.c: Added mips_4100 control, and support for
1189 accepting the 4100 as a MIPS architecture variant (md_begin,
1190 macro_build, mips_ip, md_parse_option). Adding suitable
1191 command-line OPTIONs, and updating the help text (md_show_usage).
1192
dd1a5316
KR
1193Wed Oct 18 13:20:32 1995 Ken Raeburn <raeburn@cygnus.com>
1194
c625fc23
JSC
1195 * subsegs.c (subseg_begin): Only set absolute_frchain.fix_* when
1196 BFD_ASSEMBLER is defined.
1197
3366a224
KR
1198 * Use one active frag and one obstack per frag chain:
1199 * frags.c (frags): Variable deleted.
1200 (frag_alloc): New function.
1201 (frag_grow, frag_more, frag_variant, frag_now_fix,
1202 frag_append_1_char): Refer to frchain_now->frch_obstack instead of
1203 frags variable.
1204 (frag_new): Ditto. Verify that frch_last and frag_now match on
1205 entry and exit, and that old frag_now has non-zero type. Replace
1206 "know" uses with "assert". Use frag_alloc instead of mucking with
1207 obstack alignment.
1208 * frags.h (frags): Declaration deleted.
1209 * subsegs.h (struct frchain): Add new field frch_frag_now.
1210 * subsegs.c (frchains, dummy_frag, absolute_frchain): New static
1211 variables.
1212 (subsegs_begin): Initialize frchains obstack. Under gcc, don't
1213 give it any stricter alignment than frchainS structures need. Do
1214 not initialize frags obstack. Set frag_now to point to
1215 dummy_obstack. Initialize absolute_frchain.
1216 (subseg_set_rest): Save and restore frag_now in frch_frag_now
1217 field of frchainS. Don't create new frags on section switch, and
1218 use frag_alloc when creating a new frag chain. For absolute
1219 section, set frchain_now to absolute_frchain. Verify that
1220 frch_last and frag_now match on entry and exit. Initialize
1221 per-chain obstack, and under gcc, set required alignment to that
1222 needed by fragS structure.
c625fc23 1223
3366a224
KR
1224 * write.c (chain_frchains_together_1): Verify fr_type is nonzero.
1225
1226 * stabs.c (get_stab_string_offset): Only copy input string if a
1227 fresh copy is needed, not if the section already exists.
1228 (s_stab_generic): Cache stab section name to bypass lookups, since
1229 usually it will match. Could be made faster still by changing the
1230 memory allocation rules.
1231 (s_xstab): Cache section name to bypass repeated string
1232 allocation.
1233
1234 * frags.c (frag_new): Deleted register declarations.
1235
1236 * listing.c (frag_now): Don't declare.
1237
1238 * as.c (chunksize): New variable.
1239 (debug_memory): New variable.
1240 (main): If debug_memory is set, reduce chunksize and
1241 _bfd_chunksize.
1242 * as.h (chunksize): Declare it.
1243 * read.c (read_begin): Use it.
1244
de5ebe2e
KR
1245 * config/tc-alpha.c (md_shortopts): Include 'g'.
1246 (md_parse_option): Ignore it.
1247
dd1a5316
KR
1248 * Makefile.in (distclean): Remove Makefile and config.status from
1249 testsuite directory.
1250 (clean-here): Don't delete testsuite. Instead, delete only the
1251 files within it that would be generated by running tests.
1252
de5ebe2e
KR
1253 * config/tc-hppa.c (hppa_elf_mark_end_of_function): Call
1254 frag_now_fix instead of accessing obstack info directly.
1255 * config/tc-arm.c (s_ltorg): Ditto.
1256 (md_assemble): Ditto.
1257
1258 * config/tc-i386.c (md_assemble): Call frag_grow instead of
1259 obstack_room.
1260
625f4e48
KR
1261Wed Oct 18 12:22:59 1995 Ken Raeburn <raeburn@cygnus.com>
1262
1263 * stabs.c (aout_process_stab): Insert debug symbol into symbol
1264 chain after parsing value expression, if any, to avoid separating
1265 continued .stabs lines.
1266
33a8c1b6
ILT
1267Mon Oct 16 10:56:41 1995 Ian Lance Taylor <ian@cygnus.com>
1268
1269 * config/tc-mips.c (mips_elf_pseudo_table): Remove.
1270 (mips_pop_insert): Don't call pop_insert on mips_elf_pseudo_table.
1271
b6b8f911
MM
1272Mon Oct 16 07:07:37 1995 Michael Meissner <meissner@wogglebug.tiac.net>
1273
625f4e48
KR
1274 * config/tc-ppc.c (md_begin): Use new flags PPC_OPCODE_COMMON for
1275 -mcom support and PPC_OPCODE_ANY for -many.
1276 (md_parse_option): Ditto.
1277 (ppc_arch): Ditto.
1278 (md_begin): For duplicate instructions, print all duplicates
1279 before aborting.
b6b8f911 1280
4c2935f4
MM
1281Sun Oct 15 22:06:14 1995 Michael Meissner <meissner@cygnus.com>
1282
1283 * config/tc-ppc.c (md_parse_option): Support for -mcom to turn on
1284 common mode operation.
1285 (md_show_usage): Add -mcom to usage message.
4c2935f4
MM
1286
1287Fri Oct 13 13:32:45 1995 steve chamberlain <sac@slash.cygnus.com>
1288
1289 * expr.c (op_rank): Add O_symbol_rva.
1290 * expr.h (operatorT): Add O_symbol_rva.
1291 * read.c (cons_worker): Set O_symbol_rva when necessary.
1292 * write.c (fix_new_exp): Understand O_symbol_rva.
1293
7db865dc
ILT
1294Tue Oct 10 11:34:14 1995 Ian Lance Taylor <ian@cygnus.com>
1295
1296 * config/tc-mips.c: Correct s_cons arguments. From Michael
1297 Joosten <joost@ori.cadlab.de>.
1298
1b13e6fc
ILT
1299Mon Oct 9 19:59:53 1995 Ian Lance Taylor <ian@cygnus.com>
1300
1301 * config/tc-ppc.c (ppc_macro): Make count unsigned.
1302 (ppc_biei): Set segment to now_seg and value to coff_n_line_nos.
1303 (ppc_frob_symbol): Handle C_BINCL and C_EINCL symbols by setting
1304 the fix_line field.
1305 * config/obj-coff.c (coff_n_line_nos): Rename from n_line_nos, and
1306 make non-static. Change all users.
1307 * config/obj-coff.h (coff_n_line_nos): Declare.
1308
9e3e3d4c
KR
1309Fri Oct 6 16:24:27 1995 Ken Raeburn <raeburn@cygnus.com>
1310
1311 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1312
1313 * configure.in (AC_ARG_WITH(bfd-assembler)): Fix help message.
1314
1315 * config/obj-elf.c (obj_elf_common): Convert specified byte
1316 alignment to power of two. Set size of local bss symbol.
1317
1318 * config/tc-m68k.c (tc_gen_reloc): Fix typo in variable name.
1319
13a6c753
ILT
1320Fri Oct 6 15:22:25 1995 Ian Lance Taylor <ian@cygnus.com>
1321
1322 * sb.c, macro.c: Decide whether to include <string.h> or
1323 <strings.h> just as as.h does.
1324
a75aafcd
DE
1325Fri Oct 6 09:55:33 1995 Doug Evans <dje@canuck.cygnus.com>
1326
1327 * Makefile.in (site.exp): Fix setting of $srcdir.
1328
1329 * config/tc-arm.c (md_atof): Fix little-endian output.
f6ec8c46
DE
1330 * config/tc-arm.h (ARM_BI_ENDIAN): Move definition so defined for
1331 all coff targets.
a75aafcd 1332
d89861c7
KR
1333Thu Oct 5 20:17:30 1995 Ken Raeburn <raeburn@cygnus.com>
1334
4d2ba393
KR
1335 * doc/as.texinfo: Split out the NS32k family documentation,
1336 despite its being commented out for now.
1337 * doc/c-ns32k.texi: New file.
1338
2c5eb48d
KR
1339 * sb.c, macro.c: Include string.h.
1340
6b0a6eaa
KR
1341 * Makefile.in (comparison): Only check *.o; we don't care if
1342 timestamps inserted by the native linker differ.
1343
d89861c7
KR
1344 * config/tc-alpha.c (alpha_align): Only fill with a no-op pattern
1345 if alignment stricter than 4 bytes is requested; in that case,
1346 align to a 4-byte boundary first.
1347
70aeac05
KR
1348 Thu Sep 28 19:35:27 1995 Pat Rankin <rankin@eql.caltech.edu>
1349
1350 * config/obj-vms.c (VMS_RSYM_Parse): eliminate "might be used
1351 uninitialized" warning for `Max_Source_Offset'.
1352
eaaa2a42
KK
1353Wed Oct 4 16:17:02 1995 Kim Knuttila <krk@cygnus.com>
1354
1355 * config/tc-ppc.c (parse_toc_entry): New function to parse [toc]
1356 qualifiers and detect errors if present.
1357 (md_assemble): Add call to parse_toc_entry. Also added some support
1358 for the [tocv] qualifier.
1359 (ppc_pe_tocd): New function to support data in the toc section.
1360
cd557d83
ILT
1361Wed Oct 4 14:03:39 1995 Ian Lance Taylor <ian@cygnus.com>
1362
1363 * config/tc-ppc.c (ppc_frob_symbol): Don't create an aux entry for
1364 an absolute symbol.
1365
42ac8fa8
ILT
1366Tue Oct 3 12:18:19 1995 Ian Lance Taylor <ian@cygnus.com>
1367
01f108bc 1368 * config/tc-m68k.c (isword): Accept all values from -65536 to
cd557d83
ILT
1369 +65535, so ~VAL will not be rejected.
1370
42ac8fa8
ILT
1371 * cond.c (s_endif): Call demand_empty_rest_of_line. In MRI mode,
1372 skip characters after the pseudo-op.
1373 (s_else): Likewise.
1374 * read.c (get_line_sb): Don't look past buffer_limit.
1375 (s_include): In MRI mode, skip characters after the file name.
1376
eef66934
ILT
1377Mon Oct 2 16:15:27 1995 Ian Lance Taylor <ian@cygnus.com>
1378
1379 * config/m68k-parse.y (m68k_reg_parse): In MRI mode, permit
1380 periods in register names.
1381
cdc49cba 1382For older changes see ChangeLog.1.
This page took 0.128512 seconds and 4 git commands to generate.