* configure.in: Call AC_PROG_CC before configure.host.
[deliverable/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
2a7f07fe
ILT
1Thu Feb 15 12:44:45 1996 Ian Lance Taylor <ian@cygnus.com>
2
efa86453
ILT
3 * configure.in: Substitute RPATH_ENVVAR.
4 * configure: Rebuild.
5 * Makefile.in (RPATH_ENVVAR): New variable.
6 (check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
7
2a7f07fe
ILT
8 * objcopy.c (smart_rename): Rather than doing chmod then chown, do
9 chmod without setuid, then chown, then chmod with setuid.
10
f566f73f
ILT
11Wed Feb 14 16:46:42 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
12
13 * arsup.c (map_over_list): Reindent. Don't assume that the
14 function does not delete the BFD.
15 (ar_addlib_doer): Don't set prev->next if prev is NULL.
16
90e5f484
ILT
17Wed Feb 14 15:12:17 1996 Ian Lance Taylor <ian@cygnus.com>
18
19 * ieee.c (ieee_regno_to_genreg): Convert register numbers for m68k
20 and i960.
21 (ieee_genreg_to_regno): Likewise.
22
fe1dc0a6
ILT
23Mon Feb 12 14:19:59 1996 Ian Lance Taylor <ian@cygnus.com>
24
25 * ieee.c: Extensive changes to write code to put types in the
26 global type block when possible, to output ranges for all memory
27 occupied by the module, and to improve efficiency.
28
29 * debug.c (struct debug_handle): Remove class_mark field. Add
30 id_list and compare_list fields.
31 (struct debug_class_id): Define.
32 (struct debug_type_compare_list): Define.
33 (debug_write): Initialize info->id_list
34 (debug_write_name): Remove reference to info->class_mark.
35 (debug_write_type): Get id for all structs and classes. Simplify
36 test for whether struct has already been written.
37 (debug_write_class_type): Get id for all classes. Simplify test
38 for whether class has already been written.
39 (debug_write_block): Don't write out blocks other than the top
40 level block if they have no local variables.
41 (debug_set_class_id): New static function.
42 (debug_type_samep): New static function.
43 (debug_class_type_samep): New static function.
44 * prdbg.c (pr_start_struct_type): Always print id.
45 (pr_start_class_type): Likewise.
46 (pr_tag_type): Likewise.
47
48 * stabs.c (struct stab_handle): Add syms and symcount fields.
49 (start_stab): Add syms and symcount parameters. Change all
50 callers.
51 (parse_stab_string): Look up global variables in the symbol table
52 to get the right value.
53 * budbg.h (start_stab): Update declaration.
54 * rddbg.c (read_section_stabs_debugging_info): Add syms and
55 symcount parameters. Change all callers.
56
57 * stabs.c (parse_stab_array_type): If the index type is 0, use
58 int.
59
36fb98be
ILT
60Wed Feb 7 14:17:45 1996 Ian Lance Taylor <ian@cygnus.com>
61
1dcea5a7
ILT
62 * ieee.c (ieee_start_compilation_unit): Clear modified and
63 modified_alloc fields of info.
64
36fb98be
ILT
65 * configure.in: Check for --enable-shared. Substitute new
66 variables BFDLIB and OPCODES.
67 * configure: Rebuild.
68 * Makefile.in (BFDLIB): Set to @BFDLIB@.
69 (OPCODES): Set to @OPCODES@.
70
71Mon Feb 5 16:18:42 1996 Ian Lance Taylor <ian@cygnus.com>
72
73 Support for building bfd and opcodes as shared libraries, based on
74 patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
75 * configure.in (HLDFLAGS): New substitution.
76 * configure: Rebuild.
77 * Makefile.in (HLDFLAGS): New variable. Make all links use
78 $(HLDFLAGS) before $(CFLAGS) and $(LDFLAGS).
79 (BFDLIB_DEP): New variable. Replace all occurrences of $(BFD) as
80 a dependency with $(BFDLIB_DEP). Remove $(BFD) as a dependency if
81 there is also a dependency on $(ADDL_DEPS).
82 (BFDLIB): Rename from BFD; change all uses; set to -L../bfd -lbfd.
83 (OPCODES_DEP): New variable. Replace all occurrends of $(OPCODES)
84 as a dependency with $(OPCODES_DEP).
85 (OPCODES): Set to -L../opcodes -lopcodes.
86 (ADDL_DEPS): New variable. Replace all occurrences of
87 $(ADDL_LIBS) as a dependency with $(ADDL_DEPS).
88 (check): Set LD_LIBRARY_PATH in the environment.
89 (config.status): Depend upon BFD configure.host and config.bfd.
90
91Fri Feb 2 17:02:59 1996 Doug Evans <dje@charmed.cygnus.com>
92
93 * objdump.c: #include stdarg.h or varargs.h.
94 (objdump_print_value): Change FILE* arg to struct disassemble_info*.
95 All callers updated. Use fprintf_func.
96 (objdump_print_address): Consistently use fprintf_func.
97 (objdump_sprintf): New function.
98 (disassemble_data): Print insn into a buffer, print raw insn ourselves,
99 then print insn mnemonic.
100
ae9120f9
ILT
101Fri Feb 2 16:48:55 1996 Ian Lance Taylor <ian@cygnus.com>
102
103 * configure: Regenerate.
104
904fe36b
SC
105Thu Feb 1 09:38:18 1996 Steve Chamberlain <sac@slash.cygnus.com>
106
107 * configure.in (i[3-6]86-*-win32): Becomes i[3-6]86-*-cygwin32.
108 (powerpc*-*-cygwin32): New.
109 * configure: Regenerated.
110
96c96321
ILT
111Wed Jan 31 13:22:03 1996 Richard Henderson <rth@tamu.edu>
112
113 * Makefile.in (distclean): Remove $(DEMANGLER_PROG).1.
114
5da470b2
ILT
115Mon Jan 29 17:36:29 1996 Ian Lance Taylor <ian@cygnus.com>
116
117 Based on patches from H J Lu <hjl@zoom.com>:
118 * objcopy.c (remove_leading_char): New static variable.
119 (OPTION_REMOVE_LEADING_CHAR): Define.
120 (copy_usage): Mention --remove-leading-char.
121 (filter_symbols): If remove_leading_char, and the first character
122 of a global symbol matches the symbol leading char of the BFD,
123 remove the first character.
124 (copy_object): Filter the symbols if remove_leading_char is set.
125 (copy_main): Handle --remove-leading-char.
126 * binutils.texi, objcopy.1: Document --remove-leading-char.
127
128Sat Jan 27 15:40:13 1996 Michael Meissner <meissner@tiktok.cygnus.com>
129
130 * objdump.c (fprintf): Add prototype to avoid compiler warning on
131 SunOS.
132
85d4b870
ILT
133Fri Jan 26 11:53:42 1996 Ian Lance Taylor <ian@cygnus.com>
134
135 * binutils.texi (nm): Improve documentation on symbol types.
136 (objdump): Reference the stabs manual from the discussion of the
137 --stabs option.
138
e069197a
RJ
139Thu Jan 25 11:21:46 1996 Raymond Jou <rjou@mexican.cygnus.com>
140
141 * mpw-make.sed: Add a "stamps" target.
142
1efb2ef0
ILT
143Thu Jan 25 13:51:44 1996 Ian Lance Taylor <ian@cygnus.com>
144
145 * objdump.c (dump_headers, dump_section_header): Change objdump -h
146 output to be simpler and to include section file offsets.
147
74ae0c97
ILT
148Wed Jan 24 12:06:05 1996 Ian Lance Taylor <ian@cygnus.com>
149
fab21c78
ILT
150 * stabs.c (parse_stab_members): Don't adjust voffset.
151
152 * ieee.c (ieee_read_cxx_class): Don't multiply voffset by 4.
153 (struct ieee_write_type): Add name field.
154 (struct ieee_type_class): Remove name field. Change all uses to
155 use new name field in type instead.
156 (struct ieee_name_type): Likewise.
157 (ieee_start_struct_type): Initialize name field of type.
158 (ieee_start_class_type): Don't initialize classdef entry of tag.
159 (ieee_class_method_var): Don't adjust voffset.
160 (ieee_end_class_type): Likewise.
161 (ieee_tag_type): Initialize new name field of type.
162 (ieee_typdef): Set name after copying in type information.
163
164 * debug.c (VOFFSET_STATIC_METHOD): Define as -1, not 1.
165
526fed06
ILT
166 * ieee.c (struct ieee_modified_type): Define.
167 (struct ieee_handle): Add modified and modified_alloc fields.
168 (ieee_get_modified_info): New static function.
169 (ieee_pointer_type): Cache type index.
170 (ieee_const_type): Likewise.
171 (ieee_volatile_type): Likewise.
172
76e45938
ILT
173 * ieee.c (ieee_define_named_type): When creating a tag for an
174 anonymous struct, copy the name into memory.
175 (ieee_tag_type): Likewise.
176 * debug.c (debug_write_type): Only check and set id field for an
177 unnamed object.
178 (debug_write_class_type): Likewise.
179
24662107
ILT
180 * ieee.c: Various changes to write out types for functions and
181 references, and to not write out unnecessary function types.
182
74ae0c97
ILT
183 * ieee.c (struct ieee_var): Remove variable field. Add kind
184 field, and define some enum constants for it.
185 (parse_ieee_ty): Set kind field of variable for 'x' and 'X' types.
186 (parse_ieee_atn): Make an indirect slot for an external variable,
187 although we otherwise don't record it. Set kind field rather than
188 variable field of pvar.
189 (ieee_read_cxx_class): Try to get the type of a static member.
190 (ieee_read_reference): Check kind field rather than variable
191 field.
192
b96e1ce4
ILT
193Tue Jan 23 15:54:18 1996 Ian Lance Taylor <ian@cygnus.com>
194
c5baf5d9
ILT
195 * ieee.c: Various changes to handle reading C++ reference type
196 information.
501be095
ILT
197
198 * debug.h (enum debug_var_kind): Add DEBUG_VAR_ILLEGAL.
199 (enum debug_parm_kind): Add DEBUG_PARM_ILLEGAL.
200 * debug.c (debug_get_parameter_types): Handle DEBUG_KIND_FUNCTION.
201
b96e1ce4
ILT
202 * ieee.c: Various changes to write out definitions of C++ classes.
203
204 * debug.c (debug_append_filename): Remove.
205 * debug.h (debug_append_filename): Don't declare.
206
207 * stabs.c (struct stab_handle): Remove last_type field. Add
208 so_string and so_value fields.
209 (finish_stab): Call stab_emit_pending_vars before calling
210 debug_end_function. Don't warn about pending variables.
211 (parse_stab): Accumulate N_SO strings until a non N_SO symbol is
212 seen, rather than calling debug_append_filename. Call
213 stab_emit_pending_vars before calling debug_end_function. Don't
214 set info->last_type.
215
38aa863c
DE
216Tue Jan 23 09:53:54 1996 Doug Evans <dje@charmed.cygnus.com>
217
218 * objdump.c (disassemble_data): Handle unknown endianness.
4e050e3b 219 Pass fprintf to INIT_DISASSEMBLE_INFO.
38aa863c 220
458bbd1f
DE
221Mon Jan 22 16:46:43 1996 Doug Evans <dje@charmed.cygnus.com>
222
223 Add new option --show-raw-insn.
224 * objdump.c (show_raw_insn): New global.
225 (usage): Update.
226 (long_options): Update.
227 (disassemble_data): Set disasm_info.flags if --show-raw-insn.
228
229 * objdump.c (disassemble_data): Set new arch,mach,endian fields in
230 disasm_info.
231
4207b304
ILT
232Mon Jan 22 19:29:36 1996 Ian Lance Taylor <ian@cygnus.com>
233
234 * ieee.c: Extensive changes to pass a single info argument around
235 in the reading routines, rather than several arguments. Add code
236 to read C++ debugging records.
237
238 * debug.h (debug_get_type_size): Declare.
239 (debug_get_field_name): Declare.
240 (debug_get_field_bitpos): Declare.
241 (debug_get_field_bitsize): Declare.
242 (debug_get_field_visibility): Declare.
243 (debug_get_field_physname): Declare.
244 * debug.c (debug_get_real_type): Handle DEBUG_KIND_TAGGED.
245 (debug_get_type_size): New function.
246 (debug_get_field_name): New function.
247 (debug_get_field_bitpos): New function.
248 (debug_get_field_bitsize): New function.
249 (debug_get_field_visibility): New function.
250 (debug_get_field_physname): New function.
251 (debug_write_type): Make sure we pass the real kind, not INDIRECT,
252 to tag_type. Pass the name recursively for INDIRECT.
253
d3023c8f
ILT
254Fri Jan 19 12:31:57 1996 Ian Lance Taylor <ian@cygnus.com>
255
267e5298
ILT
256 * debug.h (struct debug_write_fns): Remove ellipsis_type. Add int
257 and boolean parameters to function_type. Add boolean parameter to
258 method_type.
259 (debug_make_ellipsis_type): Don't declare.
260 (debug_make_function_type): Add debug_type * and boolean
261 parameters. Change all callers.
262 (debug_make_method_type): Add boolean parameter. Change all
263 callers.
264 (debug_get_parameter_types): Add boolean * parameter. Change all
265 callers.
266 (debug_get_target_type): Declare.
267 * debug.c (struct debug_function_type): Add fields arg_types and
268 varargs.
269 (struct debug_method_type): Add field varargs.
270 (debug_ellipsis_type, ELLIPSIS_P): Remove.
271 (debug_make_ellipsis_type): Remove.
272 (debug_make_function_type): Add arg_types and varargs parameters.
273 (debug_make_method_type): Add varargs parameter.
274 (debug_get_parameter_types): Add pvarargs parameter.
275 (debug_get_target_type): New function.
276 (debug_write_type): In case DEBUG_KIND_FUNCTION, push argument
277 types and pass count to function_type. In DEBUG_KIND_METHOD, use
278 a signed int for the count, don't call ellipsis_type, and pass
279 varargs to method_type.
280 * stabs.c (struct stab_demangle_info): Add varargs field.
281 (stab_demangle_argtypes): Add pvarargs parameter. Change all
282 callers.
283 (stab_demangle_args): Likewise.
284 (stab_demangle_type): In case 'F', pick up argument types.
285 * prdbg.c (pr_ellipsis_type): Remove.
286 (pr_function_type): Add argcount and varargs parameters.
287 (pr_method_type): Add varargs parameter.
288 * ieee.c (ieee_ellipsis_type): Remove.
289 (ieee_function_type): Add argcount and varargs parameters.
290 (ieee_method_type): Add varargs parameter. Remove most of
291 function body, and just call ieee_function_type.
292
d3023c8f
ILT
293 * stabs.c: Include "demangle.h". Added several new static
294 functions not listed below to demangle argument types; they are
295 all called via stab_demangle_argtypes.
296 (finish_stab): If the kind of an undefined tag is
297 DEBUG_KIND_ILLEGAL, use DEBUG_KIND_STRUCT instead. Warn if there
298 are any pending variable.
299 (parse_stab): Don't close the function when the block depth goes
300 to zero. Pass value to debug_end_function.
301 (parse_stab_string): In case 'T', pass the name to
302 parse_stab_type.
303 (parse_stab_type): In case 'x', use stab_find_tagged_type. In
304 case '#', handle functions with variable numbers of arguments.
305 (parse_stab_struct_type): Add tagname parameter. Change all
306 callers.
307 (parse_stab_members): Add tagname and typenums parameters. Change
308 all callers. If the type of a method is a stub, call
309 parse_stab_argtypes to demangle the argument types and get the
310 physical name of the function.
311 (parse_stab_argtypes): New static function.
312 (stab_record_variable): For a DEBUG_GLOBAL or DEBUG_STATIC
313 variable, call debug_record_variable immediately.
314 (stab_find_tagged_type): New static function.
315
316 * debug.h (enum debug_type_kind): Add DEBUG_KIND_ILLEGAL.
317 (struct debug_write_fns): Add field ellipsis_type. Add id
318 parameter to start_struct_type, start_class_type, and tag_type.
319 (debug_make_ellipsis_type): Declare.
320 (debug_find_named_type): Declare.
321 (debug_get_type_kind): Declare.
322 (debug_get_return_type): Declare.
323 (debug_get_parameter_types): Declare.
324 (debug_get_fields): Declare.
325 (debug_get_field_type): Declare.
326 * debug.c (struct debug_handle): Add fields class_id and base_id.
327 (struct debug_class_type): Add field id.
328 (struct debug_method_variant): Rename argtypes to physname.
329 Change all uses.
330 (debug_ellipsis_type): New static variable.
331 (ELLIPSIS_P): New macro.
332 (debug_make_ellipsis_type): New function.
333 (debug_make_method_variant): Rename argtypes to physname.
334 (debug_make_static_method_variant): Likewise.
335 (debug_name_type): Always put types in the global namespace.
336 (debug_find_named_type): New function.
337 (debug_find_tagged_type): Treat DEBUG_KIND_ILLEGAL specially,
338 rather than DEBUG_KIND_VOID.
339 (debug_get_real_type): New static function.
340 (debug_get_type_kind): New function.
341 (debug_get_return_type): New function.
342 (debug_get_parameter_types): New function.
343 (debug_get_fields): New function.
344 (debug_get_field_type): New function.
345 (debug_write): Initialize base_id.
346 (debug_write_type): Pass new id argument to tag_type. Handle
347 DEBUG_KIND_ILLEGAL. Use id for DEBUG_KIND_STRUCT and
348 DEBUG_KIND_UNION. Handle ellipsis for method arguments.
349 (debug_write_class_type): Don't dereference kclass if it is NULL.
350 Use id.
351 * prdbg.c (pr_fns): Add pr_ellipsis_type.
352 (pr_ellipsis_type): New static function.
353 (pr_pointer_type): If this is a pointer to an array, parenthesize
354 it correctly.
355 (pr_start_struct_type): Add id parameter.
356 (pr_start_class_type): Likewise.
357 (pr_tag_type): Likewise.
358 (pr_fix_visibility): Add the visibility to the top of the stack,
359 not the second element on the stack.
360 (pr_struct_field): Pop the stack before calling pr_fix_visibility.
361 (pr_class_static_member): Likewise.
362 (pr_class_start_method): Don't push a type, just set the method
363 name in the type on the top of the stack.
364 (pr_class_end_method): Don't pop the stack.
365 (pr_class_method_variant): Rename argtypes parameter to physname.
366 Append const and volatile rather than prepending them. Add a
367 space after the physname.
368 (pr_class_static_method_variant): Likewise.
369 * ieee.c (ieee_fns): Add ieee_ellipsis_type.
370 (ieee_define_named_type): Use DEBUG_KIND_ILLEGAL rather than
371 DEBUG_KIND_VOID.
372 (write_ieee_debugging_info): Likewise.
373 (ieee_typdef): Likewise.
374 (ieee_ellipsis_type): New static function.
375 (ieee_start_struct_type): Add id parameter.
376 (ieee_start_class_type): Likewise.
377 (ieee_tag_type): Likewise.
378 (ieee_class_method_variant): Rename name to physname.
379 (ieee_class_static_method_variant): Likewise.
380
381 * Makefile.in (DEBUG_OBJS): Remove prdbg.o.
382 ($(OBJDUMP_PROG)): Depend upon, and link against, prdbg.o.
383
00d65484
KK
384Thu Jan 18 17:35:06 1996 Kim Knuttila <krk@cygnus.com>
385
386 * dlltool.c (make_tail): Changed the order of the sections to avoid
387 an alignment problem.
388
264dac7c
C
389Wed Jan 17 14:23:00 1996 J.T. Conklin <jtc@rtl.cygnus.com>
390
391 * srconv.c (wr_du): Set du.stackfrmt to 0.
392 (wr_un, wr_sc): Emit all sections, even those with 0 size.
393
9ac57033
C
394Tue Jan 16 16:15:49 1996 J.T. Conklin <jtc@rtl.cygnus.com>
395
396 * srconv.c (wr_hd): Space size within segment was being
397 stored in segment identifier field.
398
dda8716b
SS
399Tue Jan 16 12:07:25 1996 Stan Shebs <shebs@andros.cygnus.com>
400
401 * mpw-config.in (BUILD_NLMCONV, BUILD_SRCONV, SYSINFO_PROG,
402 BUILD_DLLTOOL): Put definitions for these into makefile when
403 configuring, instead of always clearing in mpw-make.sed.
404 * mpw-make.sed: Edit out any host_alias or target_alias settings,
405 fix pathname to BFD internal include files, remove dependency
406 calculation rules.
407
83f4323e
MM
408Thu Jan 11 17:31:38 1996 Michael Meissner <meissner@tiktok.cygnus.com>
409
410 * objdump.c (dump_section_header): Add new section flags
411 SEC_{EXCLUDE,SORT_ENTRIES}.
412
36302909
ILT
413Thu Jan 11 11:45:34 1996 Ian Lance Taylor <ian@cygnus.com>
414
f2165194
ILT
415 * objcopy.c (filter_symbols): NULL terminate the output symbols.
416 (copy_object): Allocate space for a possible extra NULL pointer.
417
36302909
ILT
418 * debug.c (debug_make_undefined_tagged_type): Make sure we are
419 given a kind of type we can handle.
420 (debug_write_type): Handle undefined enums and structs.
421 (debug_write_class_type): Handle undefined classes.
422 * prdbg.c (pr_enum_type): Handle an undefined enum.
f2165194 423 * ieee.c (ieee_enum_type): Likewise.
36302909 424
0374a105
ILT
425Wed Jan 10 15:33:18 1996 Ian Lance Taylor <ian@cygnus.com>
426
427 * Makefile.in: Updated dependencies.
5207a907
ILT
428 (ALLOCA, MALLOC): Remove variables.
429 (ADDL_LIBS): Remove $(MALLOC) from definition.
430 * alloca.c, gmalloc.c: Remove.
0374a105 431
3d015864
ILT
432Mon Jan 8 18:02:29 1996 Ian Lance Taylor <ian@cygnus.com>
433
434 * ieee.c: Add global function write_ieee_debugging_info and a
435 bunch of static functions and structs used to write out IEEE
436 debugging information.
437 * budbg.h (write_ieee_debugging_info): Declare.
438
439 * ieee.c (struct ieee_type): Add pslot field.
440 (enum builtin_types): Define.
441 (ieee_builtin_type): For a pointer, return a pointer to the named
442 type. Use enum values rather than numbers.
443 (ieee_alloc_type): New static function.
444 (ieee_read_type_index): Use ieee_alloc_type.
445 (parse_ieee_bb): Likewise.
446 (parse_ieee_ty): Likewise. Use ieee_builtin_type for array range,
447 rather than making a new integer type. Store the new type in the
448 slot, if there is one.
449 (parse_ieee_atn): Treat ATN10 as defining a register variable.
450 (ieee_regno_to_genreg): Rename from ieee_regno_to_gen. Change all
451 callers.
452 (ieee_genreg_to_regno): New static function.
453
454 * stabs.c (parse_stab_type): Add new typename parameter. Change
455 all callers.
456 (parse_stab_range_type): Add new typename parameter. Change all
457 callers.
458
459 * debug.h (struct debug_write_fns): Add tag parameter to
460 enum_type, start_struct_type, and start_class_type.
461 * debug.c (debug_write_type): Pass any tag name to
462 start_struct_type, debug_write_class_type, and enum_type. If
463 DEBUG_KIND_TAGGED, pass the name in the recursive call.
464 (debug_write_class_type): Accept a new tag parameter, and pass it
465 to start_class_type.
466 * prdbg.c (pop_type): Don't remove '+' character.
467 (pr_enum_type): Accept and use tag parameter.
468 (pr_start_struct_type): Likewise.
469 (pr_start_class_type): Likewise.
470 (pr_class_baseclass): Adjust algorithm used to find where to put
471 the baseclass name.
472 (pr_tag): Don't bother to insert the tag name.
473
474 * objcopy.c: Include budbg.h.
475 (convert_debugging): New static variable.
476 (OPTION_DEBUGGING): Define.
477 (copy_options): Add "debugging".
478 (copy_usage): Mention --debugging.
479 (is_strip_section): Skip debugging sections if convert_debugging.
480 (setup_section, copy_section): Likewise.
481 (filter_symbols): Skip debugging symbols if convert_debugging.
482 (copy_object): If convert_debugging, read and write debugging
483 information.
484 (write_debugging_info): New static function.
485 (copy_main): Handle --debugging.
486 * Makefile.in (DEBUG_OBJS): New variable.
487 ($(OBJCOPY_PROG)): Depend upon and link against $(DEBUG_OBJS).
488 ($(STRIP_PROG)): Likewise.
489 (OBJDUMP_OBJS): Remove variable.
490 ($(OBJDUMP_PROG)): Use objdump.o $(DEBUG_OBJS) rather than
491 $(OBJDUMP_OBJS).
492 * binutils.texi, objcopy.1: Document --debugging.
493
f5167986
ILT
494Thu Jan 4 16:31:21 1996 Ian Lance Taylor <ian@cygnus.com>
495
496 * ieee.c: New file with code to read IEEE debugging information.
497 * budbg.h (parse_ieee): Declare.
498 * rddbg.c (read_debugging_info): Handle IEEE flavour files.
499 (read_ieee_debugging_info): New static function.
500 * Makefile.in: Rebuild dependencies.
501 (CFILES): Add ieee.c.
502 (OBJDUMP_OBJS): Add ieee.o.
503
504 * bucomm.h (xrealloc): Change type of first parameter from char *
505 to PTR.
506
507Tue Jan 2 17:44:07 1996 Ian Lance Taylor <ian@cygnus.com>
508
509 * Makefile.in: Add targets to automatically rebuild dependencies.
510 Remove targets which just listed dependencies of .o files.
511 (DEP): New variable.
512 (HFILES, GENERATED_HFILES): New variables.
513 (CFILES, GENERATED_CFILES): New variables.
514 (underscore.c): Don't do anything, just depend upon stamp-under.
515 (stamp-under): New target; do what underscore.c used to do.
516 (nlmconv.o): Depend upon sym.h and ecoff.h.
517 (.dep, .dep1, dep.sed, dep, dep-in): New targets.
518 (stage1, stage2, stage3, against, comparison): Remove.
519 (de-stage1, de-stage2, de-stage3): Remove.
520 (clean, distclean): Remove stamp-under and dep.sed.
521 * dep-in.sed: New file.
522
523 Implement generic debugging support. Implement a stabs reader and
524 a generic printer.
525 * budbg.h, debug.c, debug.h, prdbg.c, rddbg.c, stabs.c: New files.
526 * objdump.c: Include "debug.h" and "budbg.h".
527 (dump_debugging): New global variable.
528 (usage): Mention --debugging.
529 (long_options): Add "debugging".
530 (display_bfd): Handle --debugging.
531 * Makefile.in (OBJDUMP_OBJS): New variable.
532 ($(OBJDUMP_PROG)): Use $(OBJDUMP_OBJS).
533 * binutils.texi, objdump.1: Document --debugging.
534
dcd6706b
JL
535Sat Dec 30 09:59:51 1995 Jeffrey A Law (law@cygnus.com)
536
537 * nm.c ( long_options): Add "--defined-only" option.
538 (usage): Update for new "--defined-only" option.
539 (filter_symbols): Handle "--defined-only".
540
428e7fb4
ILT
541Fri Dec 29 16:04:56 1995 Ian Lance Taylor <ian@cygnus.com>
542
543 * arparse.y: Include "bucomm.h", not <sysdep.h>.
544 * nlmheader.y: Don't include "sysdep.h".
545
5d0bc3b9
ILT
546Tue Dec 26 18:23:18 1995 Ian Lance Taylor <ian@cygnus.com>
547
548 * nm.c (print_symdef_entry): Check return value of
549 bfd_get_elt_at_index.
550
7920c1d1
MM
551Sat Dec 23 11:03:16 1995 Michael Meissner <meissner@tiktok.cgynsu.com>
552
553 * configure.in (DLLTOOL_DEFS): Build dlltool for PowerPC if target
554 is powerpc*-*-win* in addition to powerpc*-*-*pe*.
555
556Fri Dec 15 16:30:57 1995 Ian Lance Taylor <ian@cygnus.com>
557
558 * objdump.c (endian_string): New static function.
559 (display_target_list): Use it.
560 * nlmconv.c (main): Use new bfd_big_endian macro.
561
445604d7
SC
562Fri Dec 15 07:51:34 1995 steve chamberlain <sac@slash.cygnus.com>
563
564 * dlltool.c (fill_ordinals): Start from 1 if no other instructions
904fe36b 565 given.
445604d7 566
64c4b2ad
ILT
567Tue Dec 12 12:05:21 1995 Ian Lance Taylor <ian@cygnus.com>
568
569 * Makefile.in (clean): Remove $(DEMANGLER_PROG).1. From Ronald
570 F. Guilmette <rfg@monkeys.com>.
571
f44f7614
SS
572Mon Dec 11 14:33:05 1995 Stan Shebs <shebs@andros.cygnus.com>
573
574 * mac-binutils.r: Fix copyright and version strings.
575
576 * Makefile.in (version): Remove, no longer used.
577
67e69d7e
SS
578Fri Dec 1 14:41:56 1995 Stan Shebs <shebs@andros.cygnus.com>
579
580 * mpw-make.sed (install, install-only): Edit in Mac-specific
581 install procedure.
582
b10f8e5e
KK
583Thu Nov 30 20:26:02 1995 Kim Knuttila <krk@cygnus.com>
584
585 * dlltool.c (ppc_jtab): The binary glue for PowerPC dll linkage,
586 including the return instruction.
587 sinfo: added a preferred alignment field.
588 (secdata): section data for the PowerPC version.
589 (make_one_lib_file): More symbols, More sections (pdata, rdata)
590 (make_tail): Use idata$6 instead of idata$7 for ppc. Also added a
591 NULL idata$3 descriptor (temporary).
592
799de4c4
DE
593Tue Nov 28 17:23:44 1995 Doug Evans <dje@canuck.cygnus.com>
594
595 * dlltool.c (fill_ordinals): Don't reference d_export_vec if
596 there are no exported functions.
597
390ddfdb
ILT
598Mon Nov 27 13:05:59 1995 Ian Lance Taylor <ian@cygnus.com>
599
600 * configure: Regenerate with autoconf 2.7.
601
53e174d6
ILT
602Wed Nov 22 13:17:15 1995 Ian Lance Taylor <ian@cygnus.com>
603
20dec772
ILT
604 * dlltool.c (fill_ordinals): Start assigning ordinals at 1.
605
53e174d6
ILT
606 * Makefile.in (EXPECT): Use $$r, not $${rootme}.
607 (check): Set r, not rootme.
608
53fb794b
ILT
609Tue Nov 21 18:04:09 1995 Ian Lance Taylor <ian@cygnus.com>
610
611 * configure.in: Use BFD_NEED_DECLARATION.
612 * acconfig.h: Put NEED_DECLARATION_FPRINTF in @TOP@ section.
613 * configure, config.in: Rebuild with autoconf 2.6.
614
615Fri Nov 17 10:34:37 1995 Ian Lance Taylor <ian@cygnus.com>
616
617 * Makefile.in (CC_FOR_TARGET): Use @host@ and @target@, not
618 $(host_canonical) and $(target_canonical).
619
b218076e
KR
620Thu Nov 16 03:39:20 1995 Ken Raeburn <raeburn@cygnus.com>
621
622 Version 2.6 released.
623 * Makefile.in (VERSION): Update to 2.6.
624
625Wed Nov 15 12:14:17 1995 Ian Lance Taylor <ian@cygnus.com>
626
627 * Makefile.in (CC_FOR_TARGET): Define.
628 (check): Pass CC and CFLAGS to runtest.
629
630 * nm.c (display_rel_file): Don't require a DYNAMIC object when
631 dumping the dynamic symbol table.
632
633 * objdump.c (compare_symbols): Sort global symbols before local
634 symbols before debugging symbols.
635 (objdump_print_address): Don't futz around looking for a global
636 symbol with the same value.
637
6d93c360
ILT
638Tue Nov 14 17:19:11 1995 Ian Lance Taylor <ian@cygnus.com>
639
6922e654
ILT
640 * dlltool.c: Use FOPEN_* macros rather than "r" or "w".
641
6d93c360
ILT
642 * dlltool.c (fill_ordinals): Correct memset call.
643
d101d7bf
SS
644Sun Nov 12 12:56:05 1995 Stan Shebs <shebs@andros.cygnus.com>
645
646 * mpw-make.sed (DEMANGLER_PROG): Edit out attempts to do anything
647 with the man page.
648
649Fri Nov 10 11:41:22 1995 Ian Lance Taylor <ian@cygnus.com>
650
651 * objcopy.c (setup_section): Copy the section lma independently of
652 the vma.
653
ec0cfbaa
ILT
654Wed Nov 8 11:33:00 1995 Ian Lance Taylor <ian@cygnus.com>
655
656 * arsup.c (ar_open): Cast malloc return value.
657
206dc163
KK
658Tue Nov 7 09:01:26 1995 Kim Knuttila <krk@cygnus.com>
659
660 * configure.in, configure (DLLTOOL_DEFS): Added ppc target.
661 * dlltool.c (MPPC): Added basic PPC definitions.
662
ae0daa11
ILT
663Tue Nov 7 14:02:57 1995 Ian Lance Taylor <ian@cygnus.com>
664
665 * configure.in: Don't treat rs6000-*-lynx* specially.
666 * configure: Rebuild.
667 * config/rslynx: Remove.
668 * Makefile.in: Remove @target_makefile_fragment@.
669
28b5eb12
ILT
670Mon Nov 6 15:00:50 1995 Ian Lance Taylor <ian@cygnus.com>
671
672 * bucomm.h: Include <sys/types.h>.
673 * ar.c: Don't include <sys/types.h> or <stdio.h>.
674 * bucomm.c, dlltool.c, nlmconv.c, objcopy.c, objdump.c: Likewise.
675
293129ca
ILT
676Fri Nov 3 12:38:09 1995 Ian Lance Taylor <ian@cygnus.com>
677
0140d746
ILT
678 * objdump.c: Include <sys/types.h>.
679
293129ca
ILT
680 Permit user to override DEMANGLER_PROG from command line. From
681 Manfred Hollstein <manfred@lts.sel.alcatel.de>.
682 * Makefile.in ($(DEMANGLER_PROG)): Depend upon
683 $(DEMANGLER_PROG).1.
684 (install): Don't depend upon $(DEMANGLER_PROG).1. Only install
685 $(DEMANGLER_PROG).1 if $(DEMANGLER_PROG) is not empty.
686
97f264c0
ILT
687Wed Nov 1 15:04:57 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
688
689 * Makefile.in (syslex.o): add -I$(srcdir) if compiling in a
690 separate directory.
691
c5ba2759
ILT
692Mon Oct 30 14:24:18 1995 Ian Lance Taylor <ian@cygnus.com>
693
694 * objdump.c (objdump_print_value): New static function.
695 (objdump_print_address): Use it. If we need the right section for
696 the symbol, and we can't find it, print an offset from the section
697 rather than using a symbol from some other section.
698
356c68ff
SC
699Thu Oct 26 10:23:14 1995 steve chamberlain <sac@slash.cygnus.com>
700
701 * dlltool.c (no_idata4, no_idata5): New.
702 (arm_jtab): Use correct encoding of jump instruction.
703 (usage, main, make_head, make_tail): Act on no_idata4, no_idata5.
704
e78d1750
SS
705Wed Oct 25 12:10:07 1995 Stan Shebs <shebs@andros.cygnus.com>
706
707 * mpw-make.sed: Edit paths to generated y.tab.[ch] files.
708
8490169d
ILT
709Fri Oct 20 18:40:34 1995 Ian Lance Taylor <ian@cygnus.com>
710
711 * binutils.texi: Change --with-targets to --enable-targets.
712
93464147
FF
713Thu Oct 19 17:47:41 1995 Fred Fish <fnf@cygnus.com>
714
715 * Makefile.in: Remove extraneous tab on otherwise empty line,
716 which confuses many non-GNU versions of "make".
717
718Wed Oct 18 16:31:58 1995 steve chamberlain <sac@slash.cygnus.com>
719
720 * dlltool.c (i386_jtab, arm_jtab): New
721 (gen_lib_file): Rewritten to use bfd.
722
723Fri Oct 13 16:10:07 1995 Michael Meissner <meissner@tiktok.cygnus.com>
724
725 * Makefile.in (install): Don't give error message if dlltool
726 wasn't built.
727
87b1a073
SC
728Fri Oct 13 11:04:37 1995 steve chamberlain <sac@slash.cygnus.com>
729
730 * deflex.l: Allow quoting of IDs.
731 * defparse.y (%union): string deleted.
732 (command): DESCRIPTION takes ID.
733 * dlltool.c (gen_def_file): Quote outgoing name if
734 necessary. Preserve NONAME.
735 (gen_lib_file): Run ranlib.
736 (workout_prefix): Deleted.
737 (main, usage, long_options): Add --as, --ranlib, --ar options.
738
f051e1b0
SC
739Wed Oct 11 13:36:13 1995 steve chamberlain <sac@slash.cygnus.com>
740
741 * dlltool.c (mtable): HOW_ALIGN_LONG, new.
742 (d_ord): Deleted.
743 (d_low_ord, d_high_ord, d_named_funcs): New.
744 (gen_exp_file): Create noname entries correctly.
745 (gen_lib_file): Dump exports alphabetically.
746 (process_duplicates): Count nonamed functions.
747 (fill_ordinals): Keep track of highest ord too.
748 (mangle_defs): Create alphabetically ordered list of names.
749
be92df36
SC
750Tue Oct 10 09:39:09 1995 steve chamberlain <sac@slash.cygnus.com>
751
752 * Makefile.in (TOOL_PROGS): Include DLLTOOL_PROG.
753
531f86b4
SC
754Mon Oct 9 13:06:31 1995 steve chamberlain <sac@slash.cygnus.com>
755
756 * dlltool.c (add_underscore): New.
757 (xlate): Use new name.
758 (main, usage): Update.
759
5d62609f
KR
760Fri Oct 6 14:08:51 1995 Ken Raeburn <raeburn@cygnus.com>
761
762 * sysinfo.y: Eliminate unused terminals "[" and "]" and unused
763 nonterminal "name". One s/r conflict remains.
764
5740d9df
KR
765 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
766
767 * nm.c (print_symname): Don't try to demangle an empty
768 name.
769 * objdump.c (slurp_symtab): Reset symcount if there are
770 no symbols.
771 (slurp_dynamic_symtab): Likewise, for dynsymcount.
772 (disassemble_data): Fix memory leak: free sorted_syms when done.
773 (display_bfd): Likewise, for syms and dynsyms.
774 (dump_relocs): Don't print header before possibly generating an
775 error message.
776 (dump_dynamic_relocs): Likewise.
777
778 * ar.1, nm.1, objdump.1, size.1, strings.1, strip.1: Fix typos and
779 formatting bugs.
780
fd9609c3
ILT
781Fri Oct 6 12:00:25 1995 Ian Lance Taylor <ian@cygnus.com>
782
783 * ar.c (do_quick_append): Comment out.
784 (replace_members): Add quick argument.
785 (main): Don't call do_quick_append.
786 (open_inarch): Don't call quick_append to create an empty archive.
787 Instead call bfd_openw/bfd_set_format/bfd_close.
788
4840bb6d
KR
789Thu Oct 5 20:53:08 1995 Ken Raeburn <raeburn@cygnus.com>
790
791 * bucomm.c: Always include time.h.
792
db552bda
ILT
793Thu Oct 5 17:25:21 1995 Ian Lance Taylor <ian@cygnus.com>
794
795 * objdump.c (compare_symbols): Sort gnu_compiled and gcc2_compiled
796 symbols after other symbols with the same value. Likewise for
797 symbols which look like file names.
798 (objdump_print_address): Always chose the first reasonable symbol
799 with a given value.
800
243b35d7
ILT
801Tue Oct 3 22:38:55 1995 Ian Lance Taylor <ian@cygnus.com>
802
803 * arsup.c (ar_save): Use rename, not unlink/link/unlink.
804
a19f84a7
ILT
805Mon Oct 2 12:10:25 1995 Ian Lance Taylor <ian@cygnus.com>
806
807 * strings.c (main): Exit with zero status if no files are given
808 and standard input is read.
809
810Thu Sep 28 20:03:07 1995 Stan Shebs <shebs@andros.cygnus.com>
811
812 * mpw-config.in: Calculate underscore and put into makefile
813 fragment, generate config.h.
814 * mpw-make.sed: New file, sed commands to edit Unix makefile
815 into MPW syntax.
816 * mpw-make.in: Remove.
817 * mac-binutils.r: New file, Mac resources.
818
7e3fa3b2
SC
819Thu Sep 28 15:49:00 1995 steve chamberlain <sac@slash.cygnus.com>
820
a19f84a7
ILT
821 * dlltool.c: (gen_exp_file): Always emit a .reloc section if
822 relocatable.
7e3fa3b2
SC
823 (imp_name_lab): New.
824 (gen_def_file): New.
825 (gen_lib_file): Use imp_name_lab.
826 (main): Initialize imp_name_lab.
827
27fca56f
ILT
828Mon Sep 25 12:05:34 1995 Ian Lance Taylor <ian@cygnus.com>
829
830 * configure.in: Call AC_HEADER_SYS_WAIT.
831 * configure: Rebuild.
832 * config.in: Rebuild.
833 * dlltool.c: Include "libiberty.h" and "bucomm.h". Don't include
834 <stdio.h>, <stdlib.h>, or <string.h>. Don't include <wait.h>.
835 Include <sys/types.h>. Use HAVE_SYS_WAIT_H to control whether to
836 include <sys/wait.h> or define the wait macros by hand. Don't
837 declare xmalloc.
838 (gen_lib_file): Don't assume that sprintf returns the number of
839 characters; use strlen instead.
840
8f4670da
ILT
841Fri Sep 22 17:16:41 1995 Ian Lance Taylor <ian@cygnus.com>
842
843 * objdump.c (disassemble_data): Don't use the old BFD based
844 disassembler interface. Make info a const pointer.
845
aa21a2a9
ILT
846Wed Sep 13 18:33:44 1995 Ian Lance Taylor <ian@cygnus.com>
847
848 * objdump.c (start_address): New variable.
849 (stop_address): New variable.
850 (usage): Mention --start-address and --stop-address.
851 (OPTION_START_ADDRESS, OPTION_STOP_ADDRESS): Define.
852 (long_options): Add "start-address" and "stop-address".
853 (disassemble_data): Handle start_address and stop_address.
854 (dump_data, dump_reloc_set): Likewise.
855 (main): Don't set seenflag for -l. Handle OPTION_START_ADDRESS
856 and OPTION_STOP_ADDRESS.
857 * objcopy.c (parse_vma): Move to bucomm.c.
858 * bucomm.c (parse_vma): New function, moved in from objcopy.c.
859 * bucomm.h (parse_vma): Declare.
860 * binutils.texi, objdump.1: Document new objdump options.
861
746cffcf
ILT
862Tue Sep 12 12:37:39 1995 Ian Lance Taylor <ian@cygnus.com>
863
4977f3b4
ILT
864 * Makefile.in (maintainer-clean): New target.
865
a9a14e91
ILT
866 * ar.c (replace_members): Don't call write_archive if nothing
867 changed.
868
746cffcf
ILT
869 * objdump.c (disassemble_data): Add casts to avoid gcc warnings.
870
dee0c69c
ILT
871Thu Sep 7 12:12:17 1995 Ian Lance Taylor <ian@cygnus.com>
872
320d4f29
ILT
873 * config.in: Rename from config.h.in.
874 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
875 Check for config.h:config.in when creating stamp-h.
876 * configure: Rebuild.
877 * Makefile.in (stamp-h): Depend upon config.in rather than
878 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
879 calling config.status.
880
d698bce4
ILT
881 * Makefile.in (distclean): Remove config.h, stamp-h, and
882 config.log.
883
dee0c69c
ILT
884 * nm.c (value_format): Initialize based on BFD64 and
885 BFD_HOST_64BIT_LONG.
886 (print_radix): New static variable.
887 (set_print_radix): Set print_radix. Adjust changes to
888 value_format.
889 (print_value): New static function, to print 64 bit octal and
890 decimal values correctly.
891 (print_symbol_info_bsd): Check BFD64, not BFD_HOST_64_BIT. Use
892 print_value.
893 (print_symbol_info_sysv): Use print_value.
894 (print_symbol_info_posix): Likewise.
895
fca4042a
ILT
896Wed Sep 6 15:02:55 1995 Ian Lance Taylor <ian@cygnus.com>
897
898 * Makefile.in (*.o): Remove incorrect dependencies on
899 $(BFDDIR)/hosts/std-host.h.
900
901 * Makefile.in (INSTALL_DATA): Add -m 644.
902 (INSTALL_XFORM1): Likewise.
903 (CC_FOR_BUILD): Set to @CC_FOR_BUILD@ rather than $(CC).
904 (mostlyclean): Remove config.log.
905 (distclean): Remove config.cache.
906
907 * configure.in: Call BFD_CC_FOR_BUILD and BFD_BINARY_FOPEN.
908 * configure: Rebuild.
909
5ab6ca68
ILT
910Tue Sep 5 20:22:42 1995 Ian Lance Taylor <ian@cygnus.com>
911
912 * configure.in: Rewrite to use autoconf.
913 * aclocal.m4: New file.
914 * configure: New file, built by autoconf.
915 * acconfig.h: New file.
916 * config.h.in: New file, built by autoheader.
917 * Makefile.in: Various changes for new configure script. Also:
918 (PROGS): Remove $(SYSINFO_PROG).
919 (ALL_CFLAGS): Remove $(TDEFINES).
920 (version.o): Use $(ALL_CFLAGS).
921 (cplus-dem.o, dlltool.o, nlmconv.o): Likewise.
922 (sysdump.o): Depend upon bucomm.h and config.h.
923 (srconv.o, arsup.o, strings.o): Depend upon config.h.
924 (filemode.o): Don't depend upon ../bfd/sysdep.h.
925 (bucomm.o): Depend upon config.h, not ../bfd/sysdep.h.
926 (size.o, objdump.o, nm.o, ar.o, objcopy.o): Likewise.
927 (nlmheader.o, nlmconv.o): Likewise.
928 (distclean): Don't remove sysdep.h.
929 * bucomm.h: Include "ansidecl.h", <stdio.h>, and "config.h".
930 Include "fopen-same.h" or "fopen-bin.h", based on
931 USE_BINARY_FOPEN. Include <errno.h>, and declare errno if it is
932 not a macro. Include <unistd.h>, <string.h>, <strings.h>,
933 <stdlib.h>, and <fcntl.h> if they are present. Declare strchr,
934 strrchr, and strstr if no string header file exists. Include
935 <sys/file.h> if it exists and <fcntl.h> does not. Define
936 O_RDONLY and O_RDWR if necessary.
937 * ar.c: Don't include "sysdep.h". Do include <sys/types.h> and
938 <sys/stat.h>. Use HAVE_GOOD_UTIME_H rather than POSIX_UTIME. Use
939 HAVE_UTIMES rather than !USE_UTIME. Don't include <errno.h>, and
940 don't declare errno.
941 * arsup.c: Don't include <sysdep.h>.
942 * bucomm.c: Don't include "sysdep.h". Include <stdio.h>,
943 <sys/types.h>, and <sys/stat.h>. Include <time.h> if it defines
944 time_t. Define time_t if necessary.
945 * coffdump.c: Don't include "sysdep.h".
946 * coffgrok.c, filemode.c, nlmconv.c, size.c: Likewise.
947 * srconv.c, strings.c: Likewise.
948 * nm.c: Don't include "sysdep.h". Don't try to define HAVE_SBRK.
949 * objcopy.c: Don't include "sysdep.h". Include <sys/types.h> and
950 <sys/stat.h>.
951 (simple_copy): Use creat rather than assuming that O_CREAT is
952 defined.
953 * objdump.c: Don't include "sysdep.h". Use
954 NEED_DECLARATION_PRINTF rather than !FPRINTF_ALREADY_DECLARED.
955 * sysdump.c: Include "bfd.h" and "bucomm.h". Don't include
956 "sysdep.h" or <stdlib.h>.
957 (dump_symbol_info): Rename from symbol_info. Change all callers.
958
fe48a154
ILT
959Mon Sep 4 14:30:00 1995 Ian Lance Taylor <ian@cygnus.com>
960
109eb06c
ILT
961 * configure.in (host_makefile_frag): Don't set. Substitute for
962 @CC@, @CFLAGS@, @HDEFINES@ and @LDFLAGS@ in Makefile.
963 * Makefile.in (AR_FLAGS): Set to rc rather than qv.
964 (CC): Define as @CC@.
965 (CFLAGS): Set to @CFLAGS@.
966 (LDFLAGS): Define as @LDFLAGS@.
967 (ALL_CFLAGS): Use @HDEFINES@ rather than $(HDEFINES).
968
fe48a154
ILT
969 * configure.in: Don't bother to call config.bfd for each target.
970 Just call it for the default target, and use the shell variable to
971 decide whether underscores are used.
972
99ac7754
JM
973Thu Aug 31 19:21:48 1995 Jason Molenda (crash@phydeaux.cygnus.com)
974
975 * configure.in: match i[3-6]86-*-win32, not just i386-*-win32.
976
a65619c8
SC
977Thu Aug 31 16:30:22 1995 steve chamberlain <sac@slash.cygnus.com>
978
979 * dlltool.c (add_indirect): New.
980 (asm_prefix): New
981 (gen_exp_file): Timestamp should be 0. Insert prefix when
982 needed. New code for indirection.
983 (gen_lib_file): Timestamp should be 0. Insert prefix
984 when needed.
985 (usage): Document --add-indirect.
986 (main): Cope with new option.
987
988 * objdump.c (dump_private_headers): New.
989 (usage): Document new option.
990 (long_option): Add private-headers.
991 (dump_bfd_private_header): New.
992 (main): Cope with new option.
993
4828cdba
DE
994Thu Aug 31 04:09:16 1995 Doug Evans <dje@canuck.cygnus.com>
995
996 * dlltool.c (run): Add missing 3rd arg to waitpid.
997
125a4b58
SC
998Wed Aug 30 11:02:11 1995 steve chamberlain <sac@slash.cygnus.com>
999
1000 * Makefile.in (TOOL_PROGS): Include dlltool if needed.
1001
f88ebc68
SC
1002Tue Aug 29 13:25:21 1995 steve chamberlain <sac@slash.cygnus.com>
1003
1004 * dlltool.c (rva): Deleted.
1005 (rvaafter, rva_before): Use new assembler pseudo.
1006 (flush_page, gen_exp_file, gen_lib_file): Use new way of RVAing.
1007 (gen_exp_file): Don't generate .edata if no need.
1008 (gen_lib_file): Don't make timestamp.
125a4b58 1009 Put _iname in idata$7.
f88ebc68
SC
1010 (workout_prefix): Fix memory initialization bug.
1011 (usage): Tidy up, delete many single char options.
1012 (main): rva option is gone.
1013
739484a3
SC
1014Mon Aug 21 18:41:28 1995 steve chamberlain <sac@slash.cygnus.com>
1015
1016 * dlltool.c (options): image-base is a synonym for rva.
f88ebc68 1017 (gen_lib_file): Put dll name into ibase$7.
739484a3 1018
2757dc25
SC
1019Sun Aug 20 09:59:00 1995 steve chamberlain <sac@slash.cygnus.com>
1020
1021 Modified to generate archives and objects rather than .s files.
1022 * dlltool.c (run) New function.
1023 (gen_exp_file, gen_lib_file): Use run.
1024 (workout_prefix): New.
1025 (usage): Document new options.
1026 (main): Parse new options.
1027
ee473c97
SC
1028Wed Aug 16 16:26:52 1995 steve chamberlain <sac@slash.cygnus.com>
1029
1030 * dlltool.c (gen_exp_file): Fix RVA handling.
1031 (rva_s, rva_n): Delete.
1032
06e9cb92
ILT
1033Fri Aug 11 18:27:18 1995 Ian Lance Taylor <ian@cygnus.com>
1034
1035 * nm.c (main): Ignore -e.
1036
9bae56c5
KR
1037Thu Aug 10 17:35:00 1995 Ken Raeburn <raeburn@cygnus.com>
1038
1039 * Makefile.in (config.texi): New target. Write out a setting for
1040 texinfo variable VERSION.
1041 (binutils.dvi, binutils.info): Depend on it.
1042 * binutils.texi: Include it, and reference @value{VERSION} instead
1043 of explicitly specifying 2.2(!).
1044
5357b554
ILT
1045Thu Aug 10 16:07:53 1995 Ian Lance Taylor <ian@cygnus.com>
1046
1047 * coffgrok.c (do_type): Handle array dimensions the same way gdb
1048 does.
1049
fb257042
SC
1050Tue Aug 8 17:10:42 1995 steve chamberlain <sac@slash.cygnus.com>
1051
1052 * dlltool.c (mtable): New fields.
1053 (ASM_RVA_BEFORE, ASM_RVA_AFTER): New.
1054 (flush_page): Use new macros.
1055
1056Sat Aug 5 00:16:37 1995 Jeff Law (law@snake.cs.utah.edu)
1057
1058 * objcopy.c (mark_symbols_used_in_relocations): Handle sections
1059 with no relocations.
1060 * coffgrok.c (do_sections_p1): Likewise.
1061
a59b3dda
ILT
1062Mon Jul 31 12:51:06 1995 Ian Lance Taylor <ian@cygnus.com>
1063
fb257042
SC
1064 * strings.c (print_strings): For compatibility with existing
1065 strings programs, print strings which are not terminated with a
1066 null byte or a newline.
1067 * binutils.texi, strings.1: Update documentation accordingly.
1068
a59b3dda
ILT
1069 * ar.c (replace_members): For compatibility with existing ar
1070 programs, permit users to add the same file multiple times.
1071
1072Tue Jul 25 11:21:53 1995 Ian Lance Taylor <ian@cygnus.com>
1073
1074 * strings.c (DATA_FLAGS): Remove SEC_DATA.
1075 (main): If no file names are given, scan standard input.
1076 * binutils.texi, strings.1: strings now scans non-data sections by
1077 default.
1078
0ab76042
C
1079Mon Jul 24 13:52:28 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1080
1081 * srconv.c (wr_hd): Set afl field to 4 for bfd_arch_sh.
52c06ee4
C
1082 (writeINT): When size == -2, use 2 bytes for the h8300 and 4 bytes
1083 for the sh.
1084
0ab76042
C
1085 * sysdump.c (fillup): Return size - 1, the last byte is a checksum
1086 and shouldn't be counted.
1087 * sysroff.info (hd): Changed segment identifier from a byte to a 1
1088 bit field. The sysroff 2.0-01 specification seems to be in error
1089 here. Reduce width of following "spare" field from 4 to 3 bits.
1090 (rl): Changed order and width of first 4 bitfields to correspond
1091 to sysroff specification.
1092 (dln_head, dln_inside, dln_tail): Removed.
1093
1094Tue Jul 18 23:00:03 1995 Fred Fish <fnf@cygnus.com>
1095
1096 * nm.c (sort_symbols_by_size): Enclose expression being casted
1097 in parens so result is casted, not just first operand. Can't
1098 do pointer arithmetic on void* pointers.
1099
1100Fri Jul 14 13:42:42 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1101
1102 * sysdump.c (dh): Changed format of output to be 16 hex digits
1103 followed by 16 ascii characters, similar to Emacs' hexl-mode,
1104 to make it easier to read.
1105 (xcalloc): fix typo.
1106
1107Thu Jul 13 15:27:44 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1108
1109 * srconv.c (wr_tr): Write out handcrafted tr block.
1110 (walk_tree_symbol): Use evallen and evalue instead of
1111 vallen & value because of corresponding changes in
1112 sysroff.info.
1113
1114 * sysdump.c (sysroff_swap_tr_in, sysroff_print_tr_out): New
1115 functions.
1116
1117 * sysroff.info (tr): the tr block is a special case --- a block
1118 without contents --- which can't be handled by generated code.
1119 (den, dpp): only first byte is present for DENend, DPPend.
1120 (dsy): describe a conditional portion of block, rename some fields.
1121 (dps): describe a conditional portion of block.
1122 (dfl): removed.
1123
1124 * sysinfo.y (yyerror): write error message to standard error.
1125
1126Thu Jul 13 10:43:59 1995 Ian Lance Taylor <ian@cygnus.com>
1127
1128 * Makefile.in (DISTSTUFF): Add arparse.h and sysinfo.h.
1129 (mostlyclean): Remove y.output.
1130 (clean): Remove sysroff, sysroff.c, sysroff.h, and sysinfo.
1131
1132 * nlmconv.c (powerpc_mangle_relocs): Cast memset arg to size_t.
1133 * objcopy.c (copy_object): Likewise.
1134
1135 * nm.c (HAVE_SBRK): Define execpt on amigados and WINDOWS_NT.
1136 (struct size_sym): Define.
1137 (show_stats): New static variable.
1138 (long_options): Add undocumented option "stats".
1139 (main): Print memory stats if requested.
1140 (sort_bfd, sort_dynamic, sort_x, sort_y): New static variables.
1141 (numeric_forward): Use minisymbols rather than asymbols.
1142 (non_numeric_forward): Likewise.
1143 (size_forward1): Rename from size_forward. Use minisymbols.
1144 (size_forward2): New static function.
1145 (sort_symbols_by_size): Take new arguments dynamic, size, and
1146 symsizep. Use minisymbols. Don't store the size back in the
1147 symbol; store in a newly allocate struct size_sym array.
1148 (display_rel_file): Read minisymbols rather than asymbols. Set
1149 sort_* variables. Call print_size_symbols if sorting by size.
1150 (filter_symbols): Take new arguments dynamic and size. Use
1151 minisymbols.
1152 (print_symbols): Likewise. Call print_symbol for actual printing.
1153 (print_size_symbols): New static function.
1154 (print_symbol): New static function.
1155
1156Wed Jul 12 10:43:05 1995 Ian Lance Taylor <ian@cygnus.com>
1157
1158 * objdump.c (dump_section_stabs): Only print each stabs section
1159 once.
1160 (compare_relocs): Make it clear to gcc that this always returns a
1161 value.
1162
1163Wed Jul 12 10:40:23 1995 H.J. Lu <hjl@nynexst.com>
1164
1165 * objcopy.c (simple_copy): Preserve errno on failure.
1166 (smart_rename): Print error mesage if simple_copy fails.
1167
1168Tue Jul 11 13:10:52 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1169
1170 * sysdump.c: re-indented file.
1171 (module): read blocks sequentially instead of trying to parse
1172 them, as that would require changing the parser recognize the
1173 difference between a DPSstart and DPSend block.
1174 (getone): Add break's between switch blocks as appropriate.
1175 (object_body_list): parse blocks according to sysroff spec.
1176
1177Mon Jul 10 12:37:25 1995 J.T. Conklin <jtc@poseidon.cygnus.com>
1178
1179 * sysroff.info: re-indented file, prior formatting was confusing
1180 because it was indentation did not reflect nesting of conditional
1181 records. Change "space size within segment" record in hd record
1182 from bit to byte.
1183
1184 * sysinfo.y (cond_it_field): Use xcalloc instead of calloc.
1185
1186 * srconv.c (wr_cs): Reformatted cs header array, tag each byte
1187 with a comment describing the field.
1188 (wr_unit_info): Use SEEK_SET macro instead of constant 0.
1189 (main): Use FOPEN_WB macro instead of literal "wb".
1190 * sysroff.info: Remove fdl (dfl) field from cs block. Compare
1191 ptr->type with ED_TYPE_CONST instead of constant 2 in ed block.
1192
1193Tue Jul 4 14:48:42 1995 Ian Lance Taylor <ian@cygnus.com>
1194
1195 * nm.c (size_forward): Check yf against yn, not xn.
1196
1197 * objcopy.c (copy_archive): Record all output BFD's, and close
1198 them before unlinking them and removing the temporary directory,
1199 to avoid NFS problems.
1200
1201 * ar.c (replace_members): In verbose messages, use 'r' when
1202 replacing a member, and 'a' when adding one.
1203
1204 * ar.c (ar_truncate): New static variable.
1205 (normalize): Change return type to const char *. Add abfd
1206 argument. Change all callers. If ar_truncate, chop the filename
1207 to abfd->ar_max_namelen.
1208 (main): For the 'f' modifier, set ar_truncate to true. Don't
1209 change quick_append to replace if ar_truncate is true.
1210 (do_quick_append): If ar_truncate, set BFD_TRADITIONAL_FORMAT.
1211 (write_archive): Likewise.
1212 * binutils.texi, ar.1: Document 'f' modifier.
1213
1214 * objcopy.c (enum strip_action): Define strip_unneeded.
1215 (OPTION_STRIP_UNNEEDED): Define.
1216 (strip_options): Add "strip-unneeded".
1217 (copy_options): Likewise.
1218 (copy_usage): Mention --strip-unneeded.
1219 (strip_usage): Likewise.
1220 (is_strip_section): Strip debugging sections if strip_unneeded.
1221 (filter_symbols): If strip_unneeded, only keep BSF_KEEP symbols.
1222 (copy_object): If strip_all, discard symbols without checking
1223 discard_locals.
1224 (copy_object): Call filter_symbols if strip_unneeded.
1225 (setup_section): Strip debugging sections if strip_unneeded.
1226 (copy_section): Likewise.
1227 (strip_main): Handle OPTION_STRIP_UNNEEDED.
1228 (copy_main): Likewise.
1229 * binutils.texi, objcopy.1, strip.1: Document --strip-unneeded.
1230
1231Mon Jul 3 14:16:47 1995 Steve Chamberlain <sac@slash.cygnus.com>
1232
1233 * configure.in (i386-*-win32): New configuration.
1234 * dlltool.c (killat, xlate, usage, long_options, main):
1235 Understand and cope with -k option.
1236
1237Sat Jul 1 12:25:15 1995 Fred Fish <fnf@cygnus.com>
1238
1239 * ar.c: (extract_file): Change "#if POSIX_UTIME" to
1240 "#ifdef POSIX_UTIME" to match other tests of POSIX_UTIME
1241 and avoid lossage when POSIX_UTIME is not defined at all.
1242
1243Wed Jun 28 17:51:24 1995 Steve Chamberlain <sac@slash.cygnus.com>
1244
1245 * ar.c: (print_contents.c, extract_file, do_quick_append):
1246 Malloc buffers rather than allocate on stack (so it works
1247 on NT).
1248 * deflex.l: Names can have an @ in them.
1249 * dlltool.c: Loads of stuff. Can now generate .imp files which
1250 work with NT .dlls.
1251
1252Thu Jun 22 19:10:50 1995 Stan Shebs <shebs@andros.cygnus.com>
1253
1254 * mpw-make.in (demangle.c.o): Remove.
1255 (arparse.h): Depend on arparse.c instead of arparse.y.
1256
1257Wed Jun 21 17:32:45 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1258
1259 * Makefile.in (DISTSTUFF): Don't include info here.
1260 (diststuff): Include it here.
1261 (realclean): Remove *.info.
1262
1263 * objdump.c (compare_relocs): If relocation entries have the same
1264 address, keep them in file order.
1265
1266Mon Jun 19 09:06:49 1995 Steve Chamberlain <sac@slash.cygnus.com>
1267
1268 * dlltool.c: Change names of generated files. .*.s-> -*.s
1269
1270 * objdump.c (dump_section_stabs): Check for names
1271 which are supersets of selected names.
1272
1273Wed Jun 14 19:43:52 1995 Doug Evans <dje@canuck.cygnus.com>
1274
1275 * dlltool.c (mtable, ARM jump): Must redirect via pc offsetable ptr.
1276
1277Wed Jun 14 13:27:22 1995 Steve Chamberlain <sac@slash.cygnus.com>
1278
1279 * deflex.l, defparse.y, dlltool.c: New files.
1280 * Makefile.in, configure.in: Support for them.
1281
1282Mon Jun 12 11:27:54 1995 Steve Chamberlain <sac@slash.cygnus.com>
1283
1284 * sysdump.c: Include sysdep.h
1285 (main): Open input with FOPEN_RB.
1286
1287Fri Jun 9 17:26:11 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1288
1289 * objdump.c (wide_output): New flag variable.
1290 (usage): Print new -w, --wide options.
1291 (long_options): Add --wide support.
1292 (dump_section_header): If --wide, don't print a newline between
1293 the section's first line and the flags.
1294 (objdump_print_address): Use unsigned comparisons for the binary
1295 search, not signed.
1296 (disassemble_data): If --wide, don't put a \n between the
1297 disassembly output and relocation information.
1298 (main): Support -w option being the same as --wide.
1299
1300Thu Jun 1 17:09:27 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1301
1302 Sat May 6 08:52:24 1995 H.J. Lu (hjl@nynexst.com)
1303
1304 * objcopy.c (smart_rename): make it smarter, clean up
1305 if rename () fails.
1306
1307Tue May 30 14:24:15 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1308
1309 * Makefile.in: Delete lines with lots of #### because four or more
1310 indicate a point for makefile fragment substitution.
1311
1312Tue May 9 17:17:05 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1313
1314 * configure.in: Don't build nlmconv on PowerPC eabi any more, it
1315 is not needed.
1316
1317Thu Apr 27 20:21:24 1995 Doug Evans <dje@canuck.cygnus.com>
1318
1319 * Makefile.in (EXPECT): Define.
1320 (RUNTEST): Use one in source tree if present.
1321 (check): Set `rootme' for $(EXPECT).
1322
1323Wed Apr 26 18:26:21 1995 Steve Chamberlain <sac@slash.cygnus.com>
1324
1325 * srconv.c (main): Add support for -n option which disables
1326 prescan of common symbols.
1327 (wr_ob): If reading past the end of a section, fill with zeros.
1328
1329Tue Apr 25 19:14:37 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1330
1331 * objdump.c (dump_section_header): Display load address after
1332 virtual memory (run-time) address.
1333
1334Wed Apr 19 09:44:06 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1335
1336 * Makefile.in (cplus-dem.o): Pass -DVERSION='"$(VERSION)"' to the
1337 compile.
1338 (DEMANGLER_PROG): No longer uses version.o.
1339
1340Mon Apr 10 13:29:49 1995 Stan Shebs <shebs@andros.cygnus.com>
1341
1342 Merge in support for Mac MPW as a host.
1343 (Old change descriptions retained for informational value.)
1344
1345 * mpw-config.in (TDEFINES): Define as empty in makefile frag.
1346
1347 * mpw-config.in: Create mk.tmp, define ARCHDEFS in it.
1348
1349 * mpw-config.in: New file, MPW configure fragment for binutils.
1350 * mpw-make.in (install-only): New target.
1351 (install): Also depend on install-only.
1352
1353 * mpw-make.in (cplusfilt): Renamed from c++filt.
1354 (INCLUDES): Add more paths.
1355
1356 * mpw-make.in: New file, MPW makefile fragment for binutils.
1357 (Normally automatically generated from Makefile.in.)
1358
1359Mon Mar 27 11:52:57 1995 Ian Lance Taylor <ian@cygnus.com>
1360
1361 * ar.c (write_archive): Call make_tempname to get output file
1362 name, rather than using a fixed name based on the input file.
1363
1364 * objcopy.c (make_tempname): Copy from here...
1365 * bucomm.c (make_tempname): ...to here, and make global.
1366 * bucomm.h (make_tempname): Declare.
1367
1368Fri Mar 24 11:47:42 1995 Ian Lance Taylor <ian@cygnus.com>
1369
1370 * strings.c: Include "bfd.h" before other headers. Include
1371 "sysdep.h".
1372 * bucomm.c (print_arelt_descr): Cast st_uid and st_gid to long,
1373 and print them with %ld.
1374
1375Fri Mar 10 13:09:42 1995 Ian Lance Taylor <ian@cygnus.com>
1376
1377 * objcopy.c (strip_options): Add --keep-symbol.
1378 (copy_options): Likewise.
1379 (copy_usage): Mention --keep-symbol and -K.
1380 (strip_usage): Likewise.
1381 (keep_symbols): New static variable.
1382 (is_strip_symbol): Adjust the return value according to
1383 keep_symbols.
1384 (strip_main): Handle -K. For -N, check that -K was not given.
1385 (copy_main): Likewise.
1386 * binutils.texi, objcopy.1, strip.1: Document -K.
1387
1388Mon Mar 6 13:33:47 1995 Stan Shebs <shebs@andros.cygnus.com>
1389
1390 * objcopy.c (copy_archive): Check result of mkdir.
1391 (copy_main): Cast an xmalloc result.
1392
1393 * objdump.c (usage): Break long format string into shorter ones.
1394
1395Mon Mar 6 13:46:12 1995 Ian Lance Taylor <ian@cygnus.com>
1396
1397 * bucomm.c (list_supported_targets): New function.
1398 * bucomm.h (list_supported_targets): Declare.
1399 * ar.c (usage): Call list_supported_targets.
1400 * nm.c (usage): Likewise.
1401 * objcopy.c (copy_usage, strip_usage): Likewise.
1402 * objdump.c (usage): Likewise.
1403 * size.c (usage): Likewise.
1404 * strings.c (usage): Likewise.
1405
1406Tue Feb 28 15:13:58 1995 Ian Lance Taylor <ian@cygnus.com>
1407
1408 * bucomm.c (print_arelt_descr): Cast st_size to long before
1409 passing it to fprintf.
1410
1411Fri Feb 17 13:36:45 1995 Ian Lance Taylor <ian@cygnus.com>
1412
1413 * objcopy.c (struct section_list): Add fields remove, set_flags,
1414 and flags. Change adjust from boolean to enum.
1415 (remove_sections): Remove static variable.
1416 (sections_removed): New static variable.
1417 (copy_options): Add --set-section-flags.
1418 (copy_usage): Mention --set-section-flags.
1419 (parse_flags): New static function.
1420 (find_section_list): New static function.
1421 (is_strip_symbol): Change return type from int to boolean.
1422 (is_strip_section): New static function.
1423 (filter_symbols): Call is_strip_section.
1424 (copy_object): When adding sections, check for specified flags or
1425 VMA. Call filter_symbols if any sections are being removed.
1426 (setup_section): Use find_section_list function rather than
1427 looking through remove_sections and adjust_sections. Handle
1428 --set-section-flags.
1429 (copy_section): Use find_section_list rather than looking through
1430 remove_sections.
1431 (strip_main): Use find_section_list instead of adding items to
1432 sections_removed.
1433 (copy_main): Use find_section_list instead of adding items to
1434 sections_removed and adjust_sections. Handle --set-section-flags.
1435 * binutils.texi, objcopy.1: Document --set-section-flags.
1436
1437Tue Feb 14 18:03:03 1995 Ian Lance Taylor <ian@cygnus.com>
1438
1439 * objdump.c (with_source_code): New global variable.
1440 (usage): Mention -S/--source.
1441 (long_options): Add --source.
1442 (prev_functionname, prev_line): New static variables.
1443 (struct print_file_list): Define.
1444 (print_files): New static variable.
1445 (skip_to_line, show_line): New static functions.
1446 (disassemble_data): Call show_line to handle -l and -S.
1447 (main): Handle -S.
1448 * binutils.texi, objdump.1: Document -S/--source.
1449
1450Thu Feb 9 16:11:53 1995 Ian Lance Taylor <ian@cygnus.com>
1451
1452 * objcopy.c (copy_usage): Rename parameter to avoid shadowing.
1453 (strip_usage): Likewise.
1454
1455 * objcopy.c (struct section_add): Define.
1456 (add_sections): New static variable.
1457 (copy_options): Accept --add-section.
1458 (copy_usage): Mention --add-section.
1459 (copy_object): Add sections from the add_sections list.
1460 (copy_main): Handle --add-section.
1461 * binutils.texi, objcopy.1: Document --add-section.
1462
1463Wed Feb 1 15:04:57 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1464
1465 * objdump.c (disassemble_data): Pass section offset, not absolute
1466 address, to bfd_find_nearest_line.
1467
1468 * nlmconv.c (powerpc_mangle_relocs): Don't use const with
1469 reloc_howto_type.
1470
1471Thu Jan 26 18:50:06 1995 Ian Lance Taylor <ian@cygnus.com>
1472
1473 * objdump.c (compare_symbols): Use bfd_asymbol_value (VAR) rather
1474 than VAR->value.
1475 (objdump_print_address): Likewise.
1476 (disassemble_data): Don't change the symbol values. It can
1477 confuse bfd_canonicalize_reloc.
1478
1479Thu Jan 26 12:03:56 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1480
1481 * configure.in: Add support for powerpc-*-ebai.
1482
1483Wed Jan 18 10:02:12 1995 Steve Chamberlain <sac@splat>
1484
1485 * coffdump.c: Include sysdep.h.
5357b554 1486 (dump_coff_type): Handle coff_secdef_type.
0ab76042
C
1487 * coffgrok.c : Include sysdep.h.
1488 * srconv.c: Include libiberty.h
1489 (absolute_p, dty_start, dty_end, dump_tree_structure): Remove.
1490
1491Wed Jan 18 12:24:14 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
1492
1493 * coffdump.c (dump_coff_scope): Cast pointer to unsigned long for
1494 printf.
1495 * coffgrok.c: Include bucomm.h. Don't declare xmalloc.
1496 (push_scope): Declare type of parameter link.
1497 * size.c: Include libiberty.h.
1498 * srconv.c: Include bucomm.h.
1499 (find_base): Declare at top of file.
1500 (wr_hd): Add default case to architecture switch.
1501 (wr_dps_start): Declare type of parameter nest.
1502 (wr_du): Comment out variables used only in commented out blocks.
1503 (wr_dus): Remove unused variable i.
1504 (wr_sc): Remove unused variables myinfo, low, and high.
1505 * strings.c: Include libiberty.h.
1506 * sysdump.c: Include <ctype.h>.
1507
1508Tue Dec 20 19:13:44 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
1509
1510 * ar.c (main): Ignore 'f' modifier used on HP/UX 9.
1511
1512Thu Dec 15 17:34:12 1994 Stan Shebs <shebs@andros.cygnus.com>
1513
1514 * ar.c, nm.c, objcopy.c, objdump.c: Include progress.h.
1515 * ar.c, nm.c, objcopy.c, objdump.c (main): Add START_PROGRESS
1516 and END_PROGRESS.
1517 * ar.c (map_over_members, open_inarch): Call PROGRESS.
1518 * nm.c (main, display_archive, filter_symbols, print_symbols):
1519 Call PROGRESS.
1520
1521 * objcopy.c (copy_usage): Break up long usage string.
1522
1523Wed Dec 14 15:51:56 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
1524
1525 * objcopy.c (copy_object): Don't bother setting status after
1526 nonfatal() "call", because it won't return.
1527
1528Fri Dec 9 00:22:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1529
1530 * nlmconv.c (powerpc_mangle_relocs): Don't switch a reloc to use
1531 the section symbol if the symbol is undefined.
1532
1533Thu Dec 8 14:45:50 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
1534
1535 * objcopy.c (add_strip_symbol): Cast return value of xmalloc.
1536
1537Wed Nov 30 11:05:43 1994 Ian Lance Taylor <ian@rtl.cygnus.com>
1538
1539 * ar.c (replace_members): Pass current->filename to normalize when
1540 checking for duplicates, because the filename of a newly added
1541 file will not have been normalized yet.
1542
1543Thu Nov 17 15:00:13 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
1544
1545 * ar.c (main): Don't call do_quick_append if any of the archive
1546 names are longer than 14 characters.
1547
1548 * objcopy.c (main): Fix is_strip test. From
1549 pirker@eiunix.tuwien.ac.at (Martin Pirker).
1550
1551Thu Nov 17 15:37:19 1994 Mark W. Eichin <eichin@cygnus.com>
1552
1553 * objcopy.c (add_strip_symbol): New function, adds a name to an
1554 explicit list of symbols to strip.
1555 (is_strip_symbol): New function, reports whether the name argument
1556 is in the explicit list.
1557 (filter_symbols): Check against is_strip_symbol above all.
1558 (strip_main): Recognize -N option. If used, don't default to
1559 strip_all.
1560 (copy_main): Recognize -N option.
1561 (strip_usage): Document -N and --strip-symbol options.
1562 (copy_usage): Ditto.
1563 * objcopy.1, strip.1, binutils.texi: Document -N and
1564 --strip-symbol options.
1565
1566Tue Nov 8 13:12:54 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
1567
1568 * objdump.c (display_target_list, display_info_table): Pass an
1569 array to tmparg, rather than NULL, since some systems can't handle
1570 NULL.
1571
1572 * objcopy.c (copy_archive): Keep a list of the names of the
1573 temporary files we created. Close each input BFD after we open
1574 its successor.
1575
1576Mon Nov 7 15:48:39 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
1577
1578 * Makefile.in (VERSION): Bump to 2.5.3.
1579
1580Thu Nov 3 19:04:34 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
1581
1582 * Makefile.in (install-info): Install info files from whatever
1583 directory they were found in.
1584
1585 Patch from DJ Delorie:
1586 * configure.bat: do c++filt -> cxxfilt right
1587
1588 * sysinfo.y: Include system header files early, so any potential
1589 declaration of abort() occurs before its use.
1590
1591 * strings.c (strings_file): Try opening the file in binary mode
1592 first.
1593
1594Wed Nov 2 15:44:13 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
1595
1596 * ar.c (main): Treat ar qs like ar rs.
1597
1598Tue Oct 25 16:19:25 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
1599
1600 * objcopy.c (gap_fill): Explicitly initialize, for clarity.
1601 (pad_to_set, pad_to): New static variables.
1602 (copy_options): Accept --pad-to.
1603 (copy_usage): Mention --pad-to.
1604 (copy_object): Support --pad-to.
1605 (compare_section_vma): Sort non loadable sections to the front.
1606 Sort sections with the same VMA by size.
1607 (copy_main): Handle --pad-to.
1608 * binutils.texi, objcopy.1: Document --pad-to.
1609
1610Thu Oct 20 13:51:31 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1611
1612 * objcopy.c (gap_fill_set, gap_fill): New static variables.
1613 (copy_options): Accept --gap-fill.
1614 (copy_usage): Mention --gap-fill.
1615 (copy_object): Support --gap-fill.
1616 (get_sections, compare_section_vma): New static functions.
1617 (copy_main): Handle --gap-fill.
1618 * binutils.texi, objcopy.1: Document --gap-fill.
1619
1620Wed Oct 19 14:09:16 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
1621
1622 * Makefile.in (check): Add a dummy else clause to the if
1623 statement.
1624
1625 * objcopy.c (copy_object): Revert yesterday's change.
1626 * binutils.texi, objcopy.1: Remove special mention of --set-start
1627 and `binary' output format.
1628
1629Tue Oct 18 11:12:01 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
1630
1631 * objcopy.c (copy_object): If the output file format is `binary',
1632 and the start address was not set using --set-start, default the
1633 start address to zero. This hack is because the `binary' output
1634 file format uses the start address to set the virtual address of
1635 the first byte in the file.
1636 * binutils.texi, objcopy.1: Add some notes on generating S-records
1637 and binary files.
1638
1639 * nm.c (print_symdef_entry): Call print_symname to print the
1640 symbol name, so that --demangle works.
1641
1642 * Makefile.in (mostlyclean): Remove tmpdir.
1643
1644 * objcopy.c (struct section_list): Add fields used, adjust, val.
1645 (adjust_start, set_start_set, set_start): New static variables.
1646 (adjust_section_vma, adjust_sections): New static variables.
1647 (copy_options): Add --adjust-start, --adjust-vma,
1648 --adjust-section-vma, --adjust-warnings, --no-adjust-warnings,
1649 --set-start.
1650 (parse_vma): New static function.
1651 (copy_usage): Mention new options.
1652 (copy_object): Handle --set-start and --adjust-start.
1653 (setup_section): Correct type of last argument to PTR. Set used
1654 field if section is removed. Handle --adjust-vma and
1655 --adjust-section-vma.
1656 (copy_section): Correct type of last argument to PTR.
1657 (mark_symbols_used_in_relocations): Likewise.
1658 (strip_main): Clear used field when handling -R.
1659 (copy_main): Handle new options.
1660 * binutils.texi (objcopy): Document new options.
1661 * objcopy.1: Document new options.
1662
1663Fri Oct 14 14:38:13 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
1664
1665 * configure.in (configdirs): Remove definition--testsuite is no
1666 longer configured.
1667 * Makefile.in (testsuite): Remove target.
1668 (site.exp): New target.
1669 (check): Rewrite.
1670 (clean, distclean): Don't recur into testsuite directory.
1671
1672Thu Oct 13 19:24:09 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
1673
1674 * Makefile.in (VERSION): Updated to 2.5.
1675 * Version 2.5 released.
1676
1677Tue Oct 11 15:26:42 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
1678
1679 * Makefile.in (sysdump.o): Depends upon sysroff.c.
1680
1681Mon Oct 10 13:50:30 1994 J.T. Conklin (jtc@rtl.cygnus.com)
1682
1683 * nlmconv.c (link_inputs): Pass -Ur flag to ld so that the
1684 ctor/dtor tables needed by C++ programs are built.
1685
1686Sun Oct 9 18:04:00 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
1687
1688 * Makefile.in (srconv.o): Add dependence on sysroff.c.
1689
1690Tue Oct 4 12:19:51 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
1691
1692 * configure.in: Use ${config_shell} when running config.bfd.
1693
1694 * Makefile.in (sysroff.h): Split target away from sysroff.c.
1695 (srconv.o, sysdump.o): New targets.
1696 (srconv, sysdump): Don't depend upon sysroff.c.
1697
1698Wed Sep 28 13:04:34 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1699
1700 * Makefile.in (arparse.c): Don't ignore errors from mv.
1701 (sysinfo.c): Likewise. Also, depend upon arparse.c, to prevent a
1702 parallel make from trying to build both arparse.c and sysinfo.c
1703 simultaneously.
1704 (nlmheader.c): Similar change.
1705 (arparse.h): Separate target from arparse.c, so that a parallel
1706 make does not try to build both at once. Depend upon arparse.c.
1707 (sysinfo.h): Similar change.
1708
1709 * objdump.c (disassemble_data): Pass the reloc buffer to free, not
1710 the pointer used to loop over the relocs.
1711
1712Sat Sep 24 16:16:57 1994 Stan Shebs (shebs@andros.cygnus.com)
1713
1714 * objdump.c (disassemble_data): Cast result of xmalloc.
1715
1716Wed Sep 21 19:30:35 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1717
1718 * objdump.c (sorted_syms, sorted_symcount): New global variables.
1719 (objdump_print_address): Use sorted_syms and sorted_symcount
1720 instead of syms and symcount.
1721 (disassemble_data): Don't bother to get the relocs before looping
1722 over the sections. Before filtering and sorting the symbol table,
1723 copy it into sorted_syms.
1724
1725Fri Sep 16 11:27:39 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1726
1727 * objdump.c (struct objdump_disasm_info): Add field require_sec.
1728 (objdump_print_address): If aux->require_sec, require that the
1729 symbol be in aux->sec even if HAS_RELOC is not set. If we can't
1730 find a smaller symbol in the right section, look for a larger one.
1731 (disassemble_data): Set aux.require_sec around the
1732 objdump_print_address call for the instruction address.
1733
1734Thu Sep 15 21:43:17 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1735
1736 * ar.c: Call xexit rather than exit.
1737 (output_filename, output_file, output_bfd): New static variables.
1738 (remove_output): New static function.
1739 (main): Call xatexit (remove_output). Call xexit rather than
1740 returning.
1741 (extract_file): Set output_filename and output_file while output
1742 file is open.
1743 (write_archive): Likewise, but use output_bfd, not output_file.
1744 * arsup.c: Include libiberty.h. Call xexit rather than exit.
1745 * bucomm.c: Likewise.
1746
1747 * objdump.c (disassemble_all): New global variable.
1748 (usage): Document --disassemble-all.
1749 (long_options): Add disassemble-all as a synonym for -D.
1750 (compare_symbols): Make pointers const.
1751 (compare_relocs): New static function.
1752 (disassemble_data): Rename disassemble to disassemble_fn to avoid
1753 shadowing. If dump_reloc_info, print relocs along with
1754 disassembly. Skip sections which are not SEC_CODE unless
1755 disassemble_all or only is set.
1756 (display_bfd): Don't call dump_relocs if disassemble is set.
1757 (main): Accept and handle -D.
1758 * binutils.texi: Document -D/--disassemble-all.
1759 * objdump.1: Likewise.
1760
1761Wed Sep 14 12:19:07 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1762
1763 * objdump.c (disassemble_data): Initialize prevline to 0. Make
1764 prev_function non const. Copy functionname into an malloc buffer
1765 when setting prev_function, instead of assuming that the string
1766 will last forever.
1767
1768 * nm.c: Include libiberty.h.
1769 (sort_by_size): New static variable.
1770 (long_options): Add --size-sort.
1771 (usage): Mention --size-sort.
1772 (numeric_forward): Make static. Change from void * to PTR.
1773 (numeric_reverse): Likewise.
1774 (non_numeric_forward, non_numeric_reverse): Likewise.
1775 (sorters): Change declaration from void * to PTR.
1776 (size_forward, sort_symbol_by_size): New static functions.
1777 (display_rel_file): Handle sort_by_size.
1778 (filter_symbols): If sort_by_size, discard absolute and undefined
1779 symbols.
1780 * binutils.texi (nm): Document --size-sort.
1781 * nm.1: Document --size-sort.
1782
1783Tue Sep 13 21:06:06 1994 Jeff Law (law@snake.cs.utah.edu)
1784
1785 * objcopy.c (copy_main): Initialize input_filename and
1786 output_filename to NULL.
1787
1788Tue Sep 13 14:17:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1789
1790 * Makefile.in (version.o): Depend upon Makefile, so that version.o
1791 gets rebuilt when make variable VERSION is changed.
1792
1793 * objdump.c (dump_section_header): Print the SEC_NEVER_LOAD flag.
1794
1795Wed Aug 24 12:40:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1796
1797 * configure.in: Change i[34]86 to i[345]86.
1798
1799Tue Aug 23 11:00:40 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1800
1801 * ar.c (ranlib_touch): Don't update the archive map if there isn't
1802 one.
1803
1804Mon Aug 22 16:02:18 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1805
1806 * ar.c: Include libiberty.h.
1807 (inarch): Remove variable.
1808 (map_over_members): Make static. Add arch argument, and use it
1809 instead of inarch. Change all callers.
1810 (main): Treat --version as -v. Accept -t argument. Accept any
1811 number of archive arguments. Catch and use open_inarch return
1812 value, rather than using inarch.
1813 (open_inarch): Return newly opened BFD, rather than using inarch.
1814 (do_quick_append): Make archive_filename const.
1815 (write_archive): Add iarch argument, and use it instead of inarch.
1816 Change all callers.
1817 (delete_members, move_members, replace_members): Likewise.
1818 (ranlib_only): Don't exit on success. Catch and use open_inarch
1819 return value.
1820 (ranlib_touch): New function.
1821 * arsup.h (map_over_members): Don't declare.
1822 (ar_end, ar_extract): Declare.
1823 (open_inarch): Change return value in declaration to bfd *.
1824 * arsup.c (map_over_list): Make static. Always pass two arguments
1825 to function. Add arch argument, and use it instead of inarch.
1826 Change all callers.
1827 (ar_directory_doer): Make static. Add ignored second argument.
1828 Change all callers.
1829 (ar_directory): Use open_inarch return value rather than inarch.
1830 (ar_addlib_doer): Make static.
1831 (ar_addlib): Use open_inarch return value rather than inarch.
1832 (ar_extract): Remove unused local variable abfd.
1833
1834Thu Aug 11 14:55:57 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1835
1836 Add support for removing named sections to objcopy and strip.
1837 * objcopy.c (struct section_list): Define.
1838 (remove_sections): New static variable.
1839 (strip_options, copy_options): Add remove-section.
1840 (copy_usage, strip_usage): Mention -R and --remove-section.
1841 (setup_section): If section is in remove_sections list, ignore it.
1842 (copy_section): Likewise.
1843 (strip_main, copy_main): Handle -R.
1844 * binutils.texi, objcopy.1, strip.1: Document new options.
1845
1846Wed Aug 10 10:19:55 1994 Stan Shebs (shebs@andros.cygnus.com)
1847
1848 * nlmconv.c (powerpc_mangle_relocs): Rename symvalue to sym_value,
1849 so as not to conflict with the symvalue typedef in bfd.h.
1850
1851Mon Aug 1 13:19:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1852
1853 * nlmheader.y: Per current NetWare docs, accept a revision number
1854 of 0 and treat a revision number greater than 26 as 0.
1855
1856Mon Jul 25 12:58:36 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1857
1858 * objdump.c (objdump_print_address): Correct handling of end of
1859 symbols when looking for next symbol with a different value.
1860
1861Fri Jul 22 16:48:34 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1862
1863 * nm.c (numeric_forward): Treat undefined symbols as "less than"
1864 defined symbols with zero values. If numeric values are equal, or
1865 both symbols are undefined, sort alphabetically. Don't assume
1866 that the difference of two bfd_vma values will truncate to "int"
1867 and still have the same sign.
1868 (numeric_reverse): Call numeric_forward and negate the result.
1869 (print_symbol_info_bsd): For undefined symbols, print leading
1870 spaces equivalent to the width of a printed bfd_vma, rather than
1871 assuming that 8 will look right.
1872
1873Fri Jul 22 10:36:50 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1874
1875 * coffgrok.c (doit): Zero all fields of new structure.
1876 * srconv.c (sysroff_swap_*_out): Remove redundant trailing arg.
1877 * sysinfo.y: Generate sysroff_swap_*_out without requiring extra
1878 arg.
1879
1880Fri Jul 22 10:09:53 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1881
1882 * nlmheader.y: Make "stack" and "stacksize" synonyms in the lexer
1883 rather than the parser.
1884
1885Thu Jul 21 10:25:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1886
1887 * config/mh-alphaosf, config/mh-apollo68v, config/mh-delta88:
1888 Remove; obsolete.
1889
1890Sat Jul 16 22:34:39 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1891
1892 * objdump.c (slurp_dynamic_symtab): Try to get the dynamic symbols
1893 even if the bfd is not marked DYNAMIC. ELF executables are not
1894 marked DYNAMIC, but do have dynamic symbols.
1895
1896Fri Jul 15 01:41:35 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1897
1898 * coffgrok.c (do_where): Make data with no type 'int'.
1899 (do_define): Keep info on source file of a symbol.
1900 * coffgrok.h (coff_symbol): New field.
1901 * srconv.c (PROGRAM_VERSION): Now 1.3
1902 (wr_rl): Use external ref number for symbol.
1903 (wr_dus): Only keep one source file per debug unit.
1904 (wr_dln): Always emit line numbers for first source file,
1905 (wr_globals): Emit globals in the du of their owning source file.
1906
1907Mon Jul 11 15:59:03 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1908
1909 * nlmheader.y: Null terminate var_hdr->threadName.
1910
1911Fri Jul 8 17:33:22 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1912
1913 * Makefile.in (syslex.o, sysinfo.o): Permit C source files to be
1914 in $(srcdir), as they will be for FSF releases.
1915
1916Wed Jul 6 01:13:14 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1917
1918 * nlmconv.c (setup_sections): Preserve existing section flags when
1919 copying in flags from a new section.
1920
1921Tue Jul 5 15:56:01 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1922
1923 * objcopy.c: Include libiberty.h.
1924 (copy_file): If output_target is NULL, set it to the target of the
1925 input file.
1926
1927Wed Jun 29 17:17:14 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1928
1929 * nlmconv.c (link_inputs): Fixed memory allocation bug.
1930
1931Thu Jun 23 12:52:46 1994 David J. Mackenzie (djm@rtl.cygnus.com)
1932
1933 * configure.in: Change --with-targets to --enable-targets.
1934
1935Tue Jun 21 12:53:21 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1936
1937 * Makefile.in (sysinfo): Does not depend upon $(ADDL_LIBS).
1938
1939 * nlmconv.c (powerpc_build_stubs): Don't generate the PowerPC
1940 NetWare custom header; no longer needed.
1941 (powerpc_mangle_relocs): Convert relocs against the uninitialized
1942 data section into relocs against the data section.
1943
1944 * configure.in: Set nlmconv_defs to -DNLMCONV_cputype for all the
1945 netware targets. Write it into Makefile as NLMCONV_DEFS.
1946 * Makefile.in (nlmconv.o): Pass $(NLMCONV_DEFS) to $(CC).
1947 * nlmconv.c: Only compile code for specific CPU types if
1948 NLMCONV_cputype is defined.
1949
1950 * nlmconv.c (main): Change uses of bfd_abs_section, etc., to use
1951 bfd_abs_section_ptr or bfd_is_abs_section, etc.
1952 (i386_mangle_relocs, alpha_mangle_relocs): Likewise.
1953 (powerpc_build_stubs): Likewise.
1954 * nm.c (filter_symbols, print_symbols): Likewise.
1955 * objcopy.c (filter_symbols): Likewise.
1956 (mark_symbols_used_in_relocations): Likewise.
1957 * objdump.c (remove_useless_symbols, dump_relocs): Likewise.
1958 * size.c (sysv_internal_printer): Likewise.
1959
1960Mon Jun 20 16:43:03 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1961
1962 * Makefile.in (MANPAGES): Remove $(DEMANGLER_PROG).
1963 (install): Install it explicitly, from build dir, not srcdir.
1964
1965Mon Jun 20 16:29:54 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1966
1967 * objdump.c: Don't include elf/internal.h.
1968 (bfd_elf_find_section): Don't declare.
1969 (read_section_stabs): No special handling for ELF. Always read
1970 using BFD sections.
1971
1972Thu Jun 16 17:25:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1973
1974 * configure.in: Set UNDERSCORE in Makefile based on result of
1975 invoking config.bfd with a second argument of ``_''.
1976 * Makefile.in (underscore.c): Depend upon Makefile. Don't try to
1977 run $(CC) and $(NM), just use $(UNDERSCORE). Create via temporary
1978 file.
1979 (demangle.o): Remove target.
1980 ($(NM_PROG)): Don't depend upon demangle.o, and don't link against
1981 demangle.o. It's in libiberty anyhow.
1982 (cplus-dem.o): Don't depend upon demangle.o.
1983 * binutils.texi: Mention -n and --no-strip-underscores arguments
1984 to c++filt.
1985
1986Wed Jun 15 12:10:31 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1987
1988 * nm.c (long_options): Add --no-demangle to turn off --demangle,
1989 and --no-cplus for Linux compatibility.
1990 (usage): Mention --no-demangle.
1991 * binutils.texi: Document --no-demangle.
1992
1993Fri Jun 10 15:41:25 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1994
1995 * nm.c: HOST_64_BIT was renamed to BFD_HOST_64_BIT.
1996
1997 * objcopy.c (copy_archive): Make the temporary directory in the
1998 same directory as the output BFD, since we may not have write
1999 permission on the current directory. Set the permissions of the
2000 new directory to 0700, not 0777.
2001
2002Mon Jun 6 21:36:43 1994 D. V. Henkel-Wallace (gumby@cygnus.com)
2003
2004 * configure.in: if this is an rs6000 (and we're not building for
2005 any other bfd targets) then build only nm (collect needs it on
2006 rs6000-lynx).
2007
2008 * Makefile.in: define TOOL_PROGS which the list of programes to
2009 install in $tooldir -- replaces a hard-coded list.
2010
2011Fri Jun 3 10:59:18 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2012
2013 * objdump.c (display_target_list): Remove unused local ok.
2014
2015Thu May 26 18:05:52 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2016
2017 * config/mh-alphaosf (CFLAGS): Don't specify both -g and -O;
2018 they're not compatible under native cc. Use -O1 instead.
2019
2020 * Makefile.in (VERSION): Updated to cygnus-2.4.1.
2021
2022 Changes from binutils-2.4 net release:
2023
2024 * Makefile.in (MANPAGES): Use $(DEMANGLER_PROG).
2025 ($(DEMANGLER_PROG).1): Build from cxxfilt.man, using sed.
2026 * cxxfilt.man: Renamed from c++filt.1, replaced "c++filt" with
2027 magic token to be replaced by sed.
2028
2029 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
2030
2031 * configure.bat: update for latest makefile.in
2032
2033Fri May 13 23:25:13 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2034
2035 * bucomm.c: Check ANSI_PROTOTYPES rather than __STDC__.
2036
2037Tue May 10 18:22:06 1994 Jason Molenda (crash@sendai.cygnus.com)
2038
2039 * objcopy.c (copy_section): Set section size correctly if using
2040 interleave.
2041
2042Sat May 7 16:49:36 1994 Steve Chamberlain (sac@cygnus.com)
2043
2044 * Makefile.in: Add rule for sysinfo.h
2045
2046Fri May 6 12:18:33 1994 Steve Chamberlain (sac@cygnus.com)
2047
2048 * Makefile.in (SRCONV_PROG): Define.
2049 (PROGS): Use $(SRCONV_PROG) too.
2050
2051Thu May 5 19:41:43 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2052
2053 * Makefile.in (DISTSTUFF): Add sysinfo.c, syslex.c, in case
2054 someone configures with `targets=all'.
2055 (distclean): Remove y.*.
2056 (syslex.o): Depend on sysinfo.h.
2057 (sysinfo.c): Rename y.tab.h to sysinfo.h.
2058 (install-info): Don't try to install into $(infodir)/$(srcdir).
2059 * syslex.l: Include sysinfo.h, not y.tab.h.
2060
2061Thu May 5 11:50:55 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
2062
2063 * syslex.l (yywrap): Define as function if not defined as a macro.
2064
2065 * Makefile.in (objdump.o): Deleted special rule.
2066 * configure.in: Don't bother building ARCHDEFS variable for
2067 Makefile.
2068 * objdump.c (ARCH_*): Deleted handling.
2069 (disassemble_data): Call `disassembler' from opcodes library.
2070
2071Thu May 5 13:28:42 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2072
2073 * Makefile.in (install): Correct handling of $(tooldir) and
2074 $(bindir) being on different devices.
2075
2076Fri Apr 29 09:50:38 1994 Steve Chamberlain (sac@cygnus.com)
2077
2078 * sysdump.c (h8300, sh): Add declarations.
2079
2080Wed Apr 27 11:25:18 1994 Steve Chamberlain (sac@cygnus.com)
2081
2082 * Makefile.in (syslex, sysinfo): Use CC_FOR_BUILD.
2083 * coffdump.c, coffgroc.c, coffgrog.h, srconv.c, sysdump.c,
2084 sysroff.info: Major changes.
2085
2086Tue Apr 26 18:18:24 1994 Stan Shebs (shebs@andros.cygnus.com)
2087
2088 * objdump.c (print_section_stabs): Indicate the stab header symbol
2089 more clearly, print numbers of unrecognized stab n_type values.
2090
2091Tue Apr 26 16:22:55 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2092
2093 * nlmconv.c (copy_sections): Copy arelent pointers, not arelents.
2094
2095Mon Apr 25 16:14:32 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2096
2097 * Makefile.in (distclean): Remove $(PROGS) and underscore.c.
2098
2099Fri Apr 22 11:14:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2100
2101 * nlmconv.c (setup_sections): Remove special handling of .reginfo
2102 section.
2103 (copy_sections): Likewise.
2104 (alpha_mangle_relocs): Use bfd_ecoff_get_gp_value rather than the
2105 special ECOFF .reginfo section.
2106
2107 * objcopy.c (copy_object): Call bfd_copy_private_bfd_data after
2108 copying everything else, to let it fiddle with the file in its
2109 final state.
2110
2111 * objdump.c: Include libiberty.h.
2112 (display_target_list): If a format fails, just go on to the next
2113 one. Check return value of bfd_set_format.
2114 (display_info_table): Likewise. Don't increment loop variable in
2115 for loop test, since that skips the first element.
2116 (display_target_tables): Rewrite loop for clarity. Ensure that it
2117 always prints at least one element.
2118
2119 * nlmconv.c (main): Use CyGnUsEx rather than CyGnUsSeCs for
2120 sections header. Rename from cygnus_sections to cygnus_ext.
2121
2122Thu Apr 21 12:12:26 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2123
2124 * objdump.c (_DUMMY_NAME_): Don't define.
2125 (display_target_list): Use tmpnam to get a file name rather than
2126 using _DUMMY_NAME_. Unlink it when done.
2127 (display_info_table): Likewise.
2128
2129 * nlmconv.c (secsec): New static variable.
2130 (main): Create .nlmsections section in output BFD. Store
2131 information about it in sections header.
2132 (setup_sections): Allocate space in sections header.
2133 (copy_sections): Copy zero sized sections. Put information about
2134 each section in the sections header.
2135
2136Wed Apr 20 14:34:51 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2137
2138 * nlmconv.c (powerpc_build_stubs): Take new outbfd argument.
2139 Change caller. Create custom header for new PowerPC NetWare
2140 format.
2141
2142 * Makefile.in (nlmheader.o, nlmconv.o): Update dependencies.
2143 * nlmconv.c: Include bfd.h and libiberty.h with "", not <>.
2144 * nlmheader.y: Include bfd.h with "", not <>.
2145
2146Wed Apr 13 10:52:50 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2147
2148 * objdump.c: Do an ifdef on __GO32__, not unix.
2149
2150Wed Apr 6 21:54:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2151
2152 Added -D (--dynamic) option to nm and -T (--dynamic-syms) and -R
2153 (--dynamic-reloc) arguments to objdump.
2154 * nm.c (dynamic): New static variable.
2155 (long_options): Added "dynamic".
2156 (usage): Mention -D and --dynamic.
2157 (main): Add D to getopt string. Handle -D by setting dynamic.
2158 (display_rel_file): If dynamic is non-zero, read dynamic symbols
2159 rather than normal symbols.
2160 * nm.1: Updated for -D (--dynamic) option.
2161 * objdump.c (dump_dynamic_symtab): New global variable.
2162 (dump_dynamic_reloc_info): New global variable.
2163 (dynsyms, dynsymcount): New global variables.
2164 (usage): Mention -R, -T, --dynamic-syms and --dynamic-reloc.
2165 (long_options): Added "dynamic-reloc" and "dynamic-syms".
2166 (slurp_symtab): If no symbols, return rather than exit.
2167 (slurp_dynamic_symtab): New function.
2168 (display_bfd): Handle dump_dynamic_symtab and
2169 dump_dynamic_reloc_info.
2170 (dump_symbols): Take new dynamic argument, indicating whether to
2171 display dynamic symbols.
2172 (dump_relocs): Move most printing into dump_reloc_set.
2173 (dump_dynamic_relocs): New function.
2174 (dump_reloc_set): New function, extracted from dump_relocs.
2175 (main): Add R and T to getopt string. Handle -T by setting
2176 dump_dynamic_symtab and -R by setting dump_dynamic_reloc_info.
2177 * objdump.1: Updated for -R (--dynamic-reloc) and -T
2178 (--dynamic-syms) options.
2179 * binutils.texi: Updated for new nm and objdump options.
2180
2181Wed Mar 30 15:52:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2182
2183 Update for recent BFD changes to symbol and reloc reading. Rename
2184 all uses of get_symtab_upper_bound to bfd_get_symtab_upper_bound.
2185 Also:
2186 * coffgrok.c (symcount): Change to long.
2187 (do_sections_p1): Check for error return from
2188 bfd_get_reloc_upper_bound. Change relcount to long, and check for
2189 error from bfd_canonicalize_reloc.
2190 (coff_grok): Change storage to long. Check for error from
2191 bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
2192 * nlmconv.c (main): Change symcount, newsymalloc, newsymcount, and
2193 i to long. Check for error from bfd_get_symtab_upper_bound and
2194 bfd_canonicalize_symtab.
2195 (copy_sections): Change reloc_size and reloc_count to long. Check
2196 for error from bfd_get_reloc_upper_bound and
2197 bfd_canonicalize_reloc.
2198 (mangle_relocs, i386_mangle_relocs, alpha_mangle_relocs): Change
2199 reloc_count_ptr argument to long *. Make corresponding changes to
2200 variables loaded from *reloc_count_ptr.
2201 * nm.c (display_rel_file): Change storage and symcount to long.
2202 Check for errors from bfd_get_symtab_upper_bound and
2203 bfd_canonicalize_symtab.
2204 * objcopy.c (filter_symbols): Change symcount, src_count and
2205 dst_count to long.
2206 (copy_object): Change symcount to long. Pass another argument to
2207 fprintf. Check for errors from bfd_get_symtab_upper_bound and
2208 bfd_canonicalize_symtab.
2209 (copy_section): Change relcount to long. Check for errors from
2210 bfd_get_reloc_upper_bound and bfd_canonicalize_reloc.
2211 (mark_symbols_used_in_relocations): Change relcount and i to long.
2212 Check for errors form bfd_get_reloc_upper_bound and
2213 bfd_canonicalize_reloc.
2214 * objdump.c (storage): Remove global variable.
2215 (symcount): Changed to long.
2216 (slurp_symtab): New local variable storage. Check for errors from
2217 bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
2218 (remove_useless_symbols): Change return value and count to long.
2219 (objdump_print_address): Change min, max, thisplace and i to long.
2220 (disassemble_data): Change i to long.
2221 (dump_symbols): Change count to long.
2222 (dump_relocs): Change relcount to long. Check for errors from
2223 bfd_ret_reloc_upper_bound and bfd_canonicalize_reloc.
2224 (display_info_table): Add casts when passing LONGEST_ARCH for
2225 printf %* argument.
2226
2227Tue Mar 29 14:59:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2228
2229 * nm.c (display_archive): Close each archive element after it has
2230 been displayed.
2231 * objdump.c (display_file): Likewise.
2232
2233Mon Mar 28 13:04:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2234
2235 * configure.in: Change error message to refer to bfd/config.bfd
2236 rather than bfd/configure.in.
2237
2238Sun Mar 27 16:23:39 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2239
2240 * More fixes for object formats which allow multiple sections
2241 with the same name:
2242 * objcopy.c (setup_section): Make a new output section even if
2243 one already exists with the given name.
2244 (copy_section): Use isection->output_section rather than trying
2245 to look the output section up by its (possibly non-unique) name.
2246
2247 * Makefile.in (install-info): Look for binutils.info in the
2248 current directory, then in $(srcdir). Don't use $<.
2249
2250Mon Mar 21 12:55:45 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2251
2252 * objdump.c (objdump_print_address): Make static. Declare with
2253 prototype. Change vardiff from int to bfd_signed_vma. Correct
2254 binary search termination condition. When looking for same
2255 section symbol in relocatable file, handle final symbol correctly.
2256
2257Sun Mar 20 11:26:36 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2258
2259 * Makefile.in: Avoid bug in hpux sed.
2260
2261 * objcopy.c: Changes to keep it from stripping symbols used
2262 in output relocations.
2263 (mark_symbols_used_in_relocations): New function. Mark symbols
2264 used in output relocations with BSF_KEEP.
2265 (filter_symbols): Do not strip symbols marked with BSF_KEEP.
2266 (copy_object): Reorder actions. First setup sections, then
2267 build the output symbol table, then copy the section contents.
2268
2269Fri Mar 18 10:53:55 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2270
2271 * ar.c (write_archive): Allocate space for the null byte. From
2272 Robert Lipe <robertl@arnet.com>.
2273
2274Thu Mar 17 16:20:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2275
2276 * Makefile.in: Built nm.new and strip.new to avoid problems with
2277 collect when . is in PATH.
2278 (STRIP_PROG): Change from strip to strip.new.
2279 (NM_PROG): Change from nm to nm.new.
2280 (install): Remove the .new when installing.
2281
2282Wed Mar 16 16:27:05 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2283
2284 * nlmconv.c (powerpc_build_stubs): Set BSF_DYNAMIC flag for each
2285 symbol for which we build a stub.
2286 (powerpc_mangle_relocs): Only reset TOC pointer for a call to a
2287 symbol with BSF_DYNAMIC flag set.
2288
2289Tue Mar 15 23:04:13 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2290
2291 * objcopy.c (filter_symbols): Use bfd_is_local_label to determine
2292 if a symbol represents a compiler-generated local label.
2293 (copy_object): Give the BFD backends a chance to copy any private
2294 bfd data from the input BFD to the output BFD.
2295 (setup_section): Give the BFD backends a chance to copy any private
2296 section data from the input section to the output section.
2297
2298Mon Mar 14 11:15:58 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2299
2300 * objcopy.c (mangle_section): Delete unused function.
2301 (setup_section): Set osection here instead of calling
2302 mangle section to do it.
2303
2304Mon Mar 14 12:11:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2305
2306 * ar.c (write_archive): Close inarch before unlinking it.
2307
2308Fri Mar 11 22:20:48 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2309
2310 * nlmconv.c (main): For PowerPC, call powerpc_build_stubs and
2311 powerpc_resolve_stubs. Use __GOT0, not __toc_start. Handle it if
2312 the start and end symbols are not in the text section.
2313 (struct powerpc_stub): New struct definition.
2314 (powerpc_stubs, powerpc_stub_insns): New static variables.
2315 (powerpc_initial_got_size): New static variable.
2316 (powerpc_build_stubs): New function.
2317 (powerpc_resolve_stubs): New function.
2318 (powerpc_mangle_relocs): Clear extraneous data in .got section.
2319 Rearrange reloc handling to handle ELF relocs that are not
2320 partial_inplace. Resolve PC relative relocs.
2321
2322Wed Mar 9 13:48:11 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2323
2324 * ar.c (move_members): Fix it so that the abi positional modifiers
2325 don't delete all archive members following the insert point.
2326
2327Tue Mar 8 13:14:43 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2328
2329 * coffgrok.[ch]: New files, understand coff objects.
2330 * coffdump.c: Uses coffgrok to dump out the debug info of a coff
2331 file.
2332 * sysroff.info: Description of a SYSROFF object file.
2333 * sysinfo.y, syslex.l: Parse info file, generate a reader, writer,
2334 header files and a printer.
2335 * srconv.c: Uses coffgrok.c and sysroff.info to convert a coff
2336 file to a SYSROFF file.
2337
2338Sat Feb 26 13:35:26 1994 Stan Shebs (shebs@andros.cygnus.com)
2339
2340 * ar.c (do_quick_append): Pad with a genuine character 10,
2341 rather than whatever '\n' might happen to be.
2342
2343Tue Feb 22 18:25:52 1994 Ian Lance Taylor (ian@cygnus.com)
2344
2345 * nlmconv.c (main): Ignore debugging symbols when looking for
2346 special symbols by name.
2347
2348Sun Feb 20 18:47:42 1994 Ian Lance Taylor (ian@lisa.cygnus.com)
2349
2350 * nlmconv.c: Include libiberty.h.
2351
2352 Support for PowerPC NetWare.
2353 * nlmconv.c (main): For PowerPC NetWare, automatically define the
2354 special symbols __toc_start.
2355 (select_output_format): Handle bfd_arch_powerpc.
2356 (mangle_relocs): Likewise.
2357 (powerpc_mangle_relocs): New function.
2358
2359Thu Feb 17 09:28:23 1994 David J. Mackenzie (djm@thepub.cygnus.com)
2360
2361 * ar.c, bucomm.c, nlmconv.c, nm.c, objcopy.c, objdump.c,
2362 size.c: Use bfd_get_error and bfd_set_error and new error names.
2363
2364Fri Feb 11 15:54:51 1994 David J. Mackenzie (djm@thepub.cygnus.com)
2365
2366 * objcopy.c (strip_main, copy_main): Add missing 'break' in switch.
2367
2368Mon Feb 7 19:45:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2369
2370 * objdump.c (disassemble_data): Handle bfd_arch_powerpc.
2371
2372Sun Feb 6 22:08:20 1994 David J. Mackenzie (djm@thepub.cygnus.com)
2373
2374 * strings.c objdump.c nlmconv.c objcopy.c nm.c ar.c size.c (main):
2375 Call xmalloc_set_program_name.
2376
2377Fri Feb 4 10:46:01 1994 David J. Mackenzie (djm@thepub.cygnus.com)
2378
2379 * objcopy.c (filter_bytes): Make MEMHUNK a char *, not PTR, so we
2380 can do arithmetic on it.
2381
2382Thu Feb 3 14:06:41 1994 David J. Mackenzie (djm@thepub.cygnus.com)
2383
2384 * objdump.c (dump_section_stabs, read_section_stabs,
2385 print_section_stabs): Functions broken out of dump_stabs_1.
2386 Free the stabs and strings when done with them.
2387
2388Wed Feb 2 13:42:23 1994 David J. Mackenzie (djm@thepub.cygnus.com)
2389
2390 * nlmconv.c (main): Use bfd_get_flavour instead of struct member.
2391 * ar.c (print_contents, extract_file), size.c
2392 (print_berkeley_format, print_sysv_format): Use bfd_get_filename and
2393 bfd_my_archive instead of dereferencing the structs directly.
2394
2395 * ar.c: Use bfd_fatal and bfd_nonfatal instead of bfd_perror and exit.
2396 Indent. Remove DEFUNs.
2397
2398 * nlmconv.c (main), objcopy.c (copy_file): Print matching formats
2399 if ambiguous match.
2400 * nm.c (display_file, display_archive), size.c (display_bfd):
2401 Eliminate gotos.
2402 Print matching formats if there is an ambiguous match. Use
2403 bfd_nonfatal instead of hardcoded error message if nothing matches.
2404
2405 * arsup.c, ar.c, objdump.c: Use bfd_get_filename instead of
2406 abfd->filename.
2407
2408 * nm.c (display_archive): New function, from code in display_file.
2409 (display_rel_file): Renamed from do_one_rel_file.
2410
2411 * size.c: Indent.
2412 (display_archive): New function from code in display_file.
2413 (display_file): Check bfd_close error return.
2414
2415 * strings.c (strings_object_file): Check bfd_check_format
2416 error return.
2417
2418 * strings.c, objdump.c, size.c: Use bfd_nonfatal instead of bfd_perror.
2419
2420 * bucomm.c: Delete references to exit_handler. It wasn't set
2421 anywhere, and now that we're using the libiberty xmalloc, it
2422 wouldn't always get called before exiting.
2423 (list_matching_formats): Function moved from objdump.c.
2424 * bucomm.h: Declare it.
2425
2426 * objdump.c (disassemble_data): Move some variable decls closer to
2427 their use. Add some comments. Replace a nested block with a
2428 return.
2429
2430Mon Jan 31 18:50:41 1994 Stan Shebs (shebs@andros.cygnus.com)
2431
2432 * objdump.c (display_target_list, display_info_table): Check that
2433 the bfd of the dummy output file is not null.
2434
2435Wed Jan 26 13:13:18 1994 David J. Mackenzie (djm@thepub.cygnus.com)
2436
2437 * objcopy.c (filter_bytes): New function.
2438 (copy_section): Call it.
2439 (copy_options, copy_usage, copy_main): Add --byte option to
2440 activate it. Appropriate the -b option (which was an undocumented
2441 synonym for -F) for it, also. Add --interleave, -i option for
2442 additional control.
2443 (setup_section, copy_section, mangle_section): Renamed with no `s'
2444 on the end.
2445 * objcopy.1, binutils.texi: Document the new options.
2446
2447 * objdump.c (display_target_tables, display_target_list):
2448 New functions broken out of display_info.
2449 Eliminate some magic constants. Use more meaningful variable names.
2450 (dump_bfd_header): New function broken out of display_bfd.
2451 (dump_section_header): New function broken out of dump_headers.
2452 (remove_useless_symbols): Don't shadow global variable name with
2453 parameter.
2454 (objdump_print_address): Fix backward test.
2455
2456Tue Jan 25 19:40:54 1994 Stan Shebs (shebs@andros.cygnus.com)
2457
2458 * bucomm.c (print_arelt_descr): Change decl of `when' to time_t.
2459 * objdump.h: Removed.
2460
2461Mon Jan 24 13:29:02 1994 David J. Mackenzie (djm@thepub.cygnus.com)
2462
2463 * objdump.c (display_file): Remove call to list_matching_formats.
2464 It would never be called.
2465 (list_matching_formats): Take an arg giving the list of matching
2466 formats.
2467 (display_bfd): Pass the arg, and get it filled in by calling
2468 bfd_check_format_matches instead of bfd_check_format.
2469 (display_info, display_info_table): target_vector was renamed to
2470 bfd_target_vector.
2471
2472 * binutils.texi (objdump): Note some limitations of -h section
2473 address printing.
2474
2475Sat Jan 22 16:20:46 1994 Stan Shebs (shebs@andros.cygnus.com)
2476
2477 * Makefile.in (MALLOC): Set to emptiness by default.
2478 (ALL_CFLAGS): Add and use.
2479 (arparse.h): Make it depend on arparse.y.
2480 * ar.c (libbfd.h): Don't require to be in ../bfd.
2481 * objdump.c (comp): Rename to compare_symbols.
2482
2483Fri Jan 21 20:22:30 1994 David J. Mackenzie (djm@thepub.cygnus.com)
2484
2485 * objdump.c (list_matching_formats): If the file format is ambiguous,
2486 print the matching names so the user can choose one.
2487 (display_bfd): Call it.
2488 (display_file): Call it.
2489
2490Fri Jan 21 19:17:25 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2491
2492 * objdump.c (disassemble_data): Support bfd_arch_rs6000.
2493
2494Mon Jan 17 13:57:25 1994 Stan Shebs (shebs@andros.cygnus.com)
2495
2496 * objdump.c (stab_name): Allocate dynamically.
2497 (stab_print): Use pointers to strings instead of char arrays.
2498 (dump_stabs): Change alloc and init of arrays appropriately.
2499 (dump_stabs_1): Always decide whether to print stab_name or
2500 the stab's type number, if unnamed.
2501
2502Fri Jan 14 14:42:48 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2503
2504 * objcopy.c (strip_main, copy_main): Don't clobber the input file
2505 if copy_file fails.
2506
2507 * nlmconv.c (main): Warn about an attempt to use a shared library
2508 with uninitialized data.
2509
2510 * nlmconv.c (setup_sections): Make sure that we align the
2511 output_offset of each input section appropriately.
2512
2513Thu Jan 13 17:32:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2514
2515 * objdump.c (dump_relocs): Don't crash if section name is NULL.
2516
2517Tue Jan 11 19:46:33 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2518
2519 * filemode.c (filemodestring): Commented out; not used.
2520 (mode_string): Use POSIX definitions.
2521 (ftypelet): Likewise.
2522 (rwx): Removed; no longer used.
2523 * bucomm.c: Include bucomm.h.
2524 (bfd_nonfatal, bfd_fatal): Argument is const.
2525 (fatal): Make __STDC__ version.
2526 * bucomm.h (mode_string): Declare.
2527 * Makefile.in (bucomm.o): Depend upon bucomm.h
2528
2529Sun Jan 9 12:03:20 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
2530
2531 * bucomm.c (xmalloc, xrealloc): Deleted.
2532 * bucomm.h (xmalloc, xrealloc): Fix prototypes, to correspond to
2533 libiberty version of functions.
2534
2535Thu Jan 6 06:18:15 1994 David J. Mackenzie (djm@thepub.cygnus.com)
2536
2537 * binutils.texi: Add a chapter summarizing the ways to select
2538 aspects of the target for each program.
2539
2540 * objdump.c (long_options, usage): Add long equivalents for all
2541 remaining short options that lacked them.
2542 * binutils.texi objdump.1: Document them.
2543
2544 * size.c (usage): Tweak usage message.
2545 * size.1: Add missing `=' in examples.
2546
2547 * binutils.texi strip.1 objcopy.1 nlmconv.1 objcopy.c nlmconv.c:
2548 Use "--target=bfdname" as the option to select the BFD target,
2549 like nm and size already do.
2550 Reserve "--format=format" for textual output selection options, but
2551 for now keep old option names as obsolete for backward compatibility.
2552
2553 * strings.c (main, strings_object_file, usage): Add --target option.
2554 * binutils.texi strings.1: Document it.
2555
2556Sat Jan 1 13:58:24 1994 David J. Mackenzie (djm@thepub.cygnus.com)
2557
2558 * ar.c (main): Add \n in error message.
2559
2560Thu Dec 23 12:23:11 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2561
2562 gcc -Wall lint:
2563 * ar.c (main): Put parens around assignment used as truth value.
2564 * objcopy.c (strip_main): Remove unused variables. Return 0.
2565 (copy_main): Remove unused variables. Return 0.
2566 * objdump.c (display_bfd): Declare return value as void.
2567 (stab_print): Use "" instead of 0 to initialize array.
2568 (dump_stabs_1): Print vma using printf_vma.
2569 (display_info): Put parens around assignment used as truth value.
2570 * strings.c (print_strings): Cast printf arguments.
2571
2572 * objcopy.c (copy_main): Use copy_options, not strip_options.
2573
2574 * nlmheader.y (command): Warn about illegal date values.
2575
2576Wed Dec 15 11:18:03 1993 David J. MacKenzie (djm@frosty.eng.umd.edu)
2577
2578 * bucomm.c bucomm.h: Run through indent. De-ansidecl-ify.
2579 (bfd_nonfatal): New function.
2580 (bfd_fatal): Call it.
2581
2582 * objcopy.c (smart_rename): Do a copy if the dest file has
2583 multiple hard links. Remove source file on successful copy.
2584 Try to preserve mode and owner on successful rename.
2585
2586 * objcopy.c: Run through indent. Clean up a bit.
2587 Make global variables static.
2588 Make {input,output}_{target,filename}, show_version local
2589 to various functions.
2590 New global variable `status' for exit status.
2591 (strip_main, copy_main): New functions with code from main.
2592 (nonfatal): New macro. Use it globally instead of bfd_perror and
2593 bfd_fatal.
2594
2595 (copy_object): Call mangle_sections with bfd_map_over_sections.
2596 (mangle_sections): Adjust for new calling convention.
2597
2598Fri Dec 10 11:28:11 1993 Ian Lance Taylor (ian@deneb.cygnus.com)
2599
2600 * nlmheader.y (command): Accept MAP and FULLMAP without arguments.
2601 * nlmconv.c (main): Change error message for MAP and FULLMAP.
2602
2603Thu Dec 9 17:47:19 1993 Ian Lance Taylor (ian@deneb.cygnus.com)
2604
2605 * nlmconv.c (main): Warn about imported symbols that are not in
2606 the IMPORT list even if the IMPORT keyword is not used.
2607
2608 * nlmconv.c (debug, unlink_on_exit): New static variables.
2609 (long_options): Add "debug" and "linker".
2610 (main): Handle -d and -l arguments. Make command line input and
2611 output files optional. Parse the command file before opening the
2612 BFD's, which requires storing more information in local variables.
2613 If INPUT names multiple files, link them together. Use OUTPUT for
2614 the output file name if not named on command line.
2615 (show_usage): Changed for new options.
2616 (link_inputs): New function to automatically invoke linker to
2617 handle multiple INPUT files.
2618 (choose_temp_base_try, choose_temp_base, pexecute): New functions,
2619 mostly copied from gcc/gcc.c.
2620 * nlmconv.h (input_files, output_file): Declare.
2621 * nlmheader.y (input_files, output_file): Define.
2622 (command): Support INPUT with a string_list argument. Support
2623 OUTPUT.
2624 (string_list): Renamed from module_list.
2625 * Makefile.in (nlmconv.o): Define LD_NAME based on
2626 program_transform_name.
2627
2628Wed Dec 8 10:09:04 1993 Ian Lance Taylor (ian@deneb.cygnus.com)
2629
2630 * nlmheader.y (nlmheader_identify): New function. Use it to print
2631 the program name just once, instead of with every error message.
2632
2633Mon Dec 6 16:11:32 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2634
2635 * nlmconv.c (long_options): Changed --header-info to --header-file
2636 to match documentation and usage message.
2637
2638Sun Dec 5 01:31:01 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
2639
2640 * objdump.c (dump_relocs): Avoid dereferencing a NULL sym_ptr_ptr
2641 in a relocation.
2642
2643Thu Dec 2 16:00:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2644
2645 * nlmconv.c (main): Change various types from bfd_size_type to
2646 size_t, since they have to be arguments to fread and fwrite.
2647 Change set from char * to unsigned char *.
2648 (select_output_format): Make mach argument unsigned. Handle
2649 bfd_arch_alpha.
2650 (setup_sections): Don't copy the .reginfo section of an ECOFF
2651 file. Call bfd_set_reloc to initialize the relocation fields.
2652 (copy_sections): Don't copy the .reginfo section of an ECOFF file.
2653 Combine all relocs for a section.
2654 (mangle_relocs): Change type of relocs to permit specific
2655 functions to change it. Call alpha_mangle_relocs for alpha,
2656 default_mangle_relocs for other architectures.
2657 (default_mangle_relocs): New function. Adjust the address of all
2658 relocs by the output_offset.
2659 (i386_mangle_relocs): Change type of relocs argument. Cast length
2660 argument to memmove to size_t.
2661 (alpha_mangle_relocs): New function.
2662
2663Wed Nov 17 17:38:58 1993 Sean Eric Fagan (sef@cygnus.com)
2664
2665 * nlmconv.c (select_output_format): Use nlm32-sparc for
2666 bfd_arch_sparc.
2667
2668Wed Nov 17 14:41:35 1993 Jeffrey Osier (jeffrey@thepub.cygnus.com)
2669
2670 * nlmconv.1: added man page
2671 * objcopy.1: fixed format errors
2672
2673Wed Nov 17 12:03:41 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2674
2675 * Makefile.in: Use CFLAGS as well as LDFLAGS when linking.
2676
2677Wed Nov 17 04:50:55 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2678
2679 * strings.1: Fix typo.
2680
2681Mon Nov 15 12:03:20 1993 Ken Raeburn (raeburn@rtl.cygnus.com)
2682
2683 * Makefile.in (DISTSTUFF): Build "info".
2684 (VERSION): Updated to cygnus-2.3.1; 2.3 has gone out.
2685
2686Sun Nov 14 00:27:24 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
2687
2688 * objdump.c (dump_stabs): Handle stabs-in-som as implemented
2689 by the new BFD SOM assembler.
2690
2691Sat Nov 13 07:14:05 1993 David J. Mackenzie (djm@rtl.cygnus.com)
2692
2693 * ar.1 c++filt.1 nm.1 objcopy.1 objdump.1 ranlib.1 size.1
2694 strings.1 strip.1: Replace \(em in NAME section with \- so
2695 makewhatis can grok it.
2696
2697Tue Nov 9 15:22:12 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2698
2699 * nlmconv.c (i386_mangle_relocs): Adjust reloc address by
2700 section output_offset.
2701
2702Fri Nov 5 12:11:52 1993 Jeffrey Osier (jeffrey@thepub.cygnus.com)
2703
2704 * binutils.texi: added nlmconv chapter
2705
2706Wed Nov 3 16:10:50 1993 Jeffrey Wheat (cassidy@cygnus.com)
2707
2708 * Makefile.in: Change RUNTESTFLAGS to RUNTEST_FLAGS
2709
2710Wed Nov 3 15:09:23 1993 Ken Raeburn (raeburn@rover.cygnus.com)
2711
2712 * Makefile.in (distclean): Don't get rid of dvi or info files.
2713
2714Tue Nov 2 13:29:59 1993 David J. Mackenzie (djm@rtl.cygnus.com)
2715
2716 * objcopy.c (S_ISLNK): Define as 0 if there's no S_IFLNK.
2717
2718Fri Oct 29 16:02:34 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2719
2720 * binutils.texi: Move objcopy docs into alphabetical order.
2721
2722 * objdump.c: Use xmalloc instead of malloc.
2723
2724Fri Oct 29 11:11:14 1993 Stan Shebs (shebs@rtl.cygnus.com)
2725
2726 * objdump.c (info): Rename to formats_info.
2727 (dump_stabs_1): Better comments and formatting.
2728
2729Thu Oct 28 19:43:16 1993 Stan Shebs (shebs@rtl.cygnus.com)
2730
2731 * ar.c (main): Always create the archive when quick appending,
2732 even if no input files have been given.
2733
2734Wed Oct 27 12:03:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2735
2736 * nlmconv.c (main): Set sharedDebugRecordOffset and
2737 sharedDebugRecordCount fields in extended header.
2738
2739 * nlmconv.c (main): Force moduleName field to upper case.
2740
2741Mon Oct 25 16:45:42 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2742
2743 * objcopy.c (main): Give a usage message if there are too many
2744 arguments.
2745
2746Mon Oct 25 10:37:08 1993 Ken Raeburn (raeburn@rover.cygnus.com)
2747
2748 * Makefile.in (install-info): Rewrite to take advantage of VPATH,
2749 so FSF distributions (with info files in $(srcdir)) install
2750 properly.
2751 (DISTSTUFF): Build nlmheader.c too.
2752
2753Fri Oct 22 11:43:23 1993 Ken Raeburn (raeburn@rover.cygnus.com)
2754
2755 * ar.c (program_name): Don't define here.
2756 * objdump.c: Include "bucomm.h".
2757 (xmalloc): Don't declare here.
2758 (program_name): Don't define here.
2759 (program_version): Fixed type in declaration.
2760 * size.c: Include "bucomm.h".
2761 (program_name): Don't declare here.
2762
2763Fri Oct 22 14:10:41 1993 Mark Eichin (eichin@cygnus.com)
2764
2765 * objdump.c (fprintf): hide declaration in FPRINTF_ALREADY_DECLARED
2766
2767Fri Oct 1 12:43:00 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2768
2769 * nlmconv.c (i386_mangle_relocs): Resolve and remove PC relative
2770 relocs against defined symbols in the same section.
2771
2772Thu Sep 30 16:46:26 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
2773
2774 * Makefile.in (binutils.dvi): use TEXIDIR to find texinfo.tex
2775
2776Sat Sep 25 18:09:29 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2777
2778 * objcopy.c (simple_copy, smart_rename): New functions.
2779 (main): Use them.
2780
2781Fri Sep 24 15:38:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2782
2783 * Makefile.in (clean, distclean): Recurse into testsuite.
2784
2785Thu Sep 23 01:05:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2786
2787 * objcopy.c (setup_sections, copy_sections): If stripping, don't
2788 copy SEC_DEBUGGING sections.
2789 * objdump.c (dump_headers): Print SEC_DEBUGGING flag.
2790
2791 * objdump.c (usage): Mention --stabs.
2792
2793 * objcopy.c (copy_object): Copy all applicable file flags.
2794 (copy_file): Don't copy EXEC_P specially here.
2795
2796Mon Sep 20 19:28:57 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2797
2798 * nlmconv.c (main): Adjust data section size to correspond to bss
2799 alignment adjustment. Clear BSF_SECTION_SYM if symbol is moved to
2800 a different section. Use time_t for time variable.
2801 (setup_sections): Only put sections with contents in output NLM.
2802 (i386_mangle_relocs): No symbols are common at this point. Add
2803 casts to avoid warnings.
2804
2805Fri Sep 10 11:00:40 1993 Stan Shebs (shebs@rtl.cygnus.com)
2806
2807 * objdump.c: Made the --stabs option work for stabs-in-coff.
2808 (ELF_STAB_DISPLAY): Removed.
2809 (dump_elf_stabs): Renamed to dump_stabs, changed to run for
2810 any object file format.
2811 (dump_elf_stabs_1): Renamed to dump_stabs_1, added calls to
2812 generic BFD routines for non-ELF case, changed format of message
2813 for no-section-found case.
2814 (display_bfd): Always call dump_stabs if requested.
2815 (dump_data): Call bfd_section_size to get section size.
2816
2817Fri Sep 10 08:12:23 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2818
2819 * Makefile.in (install): Don't put strings in tooldir/bin.
2820
2821Mon Sep 6 15:39:04 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2822
2823 * nlmconv.c (total_bss_size): Removed.
2824 (main): Set the bss vma to always follow the data section. Move
2825 symbols into new sections, and adjust values by output_offset.
2826 (setup_sections): Don't copy all sections, but instead point all
2827 text sections to .text, all data sections to .data, and all bss
2828 sections to .bss.
2829 (copy_sections): Adjust accordingly.
2830
2831Thu Sep 2 12:34:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2832
2833 Only build nlmconv if configured for a NetWare target.
2834 * configure.in: If we have some *-*-netware* target, or are using
2835 all targets, set BUILD_NLMCONV to $(NLMCONV_PROG) in Makefile.
2836 * Makefile.in (PROGS): Use $(BUILD_NLMCONV) rather than
2837 $(NLMCONV_PROG).
2838
2839Tue Aug 31 14:13:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2840
2841 * objdump.c (ARCH_all): Define ARCH_hppa too.
2842 (dump_headers): Don't test for SEC_BALIGN if it's not defined by
2843 bfd.h.
2844
2845Tue Aug 31 13:29:12 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2846
2847 * nlmconv.c (main): Force creation of .bss section. Set up the
2848 sections before looking at the symbols. Move all common symbols
2849 into .bss section. Automatically define _edata and _end. Only
2850 export symbols in the export list, with multiple prefixes if
2851 necessary. Warn if no version. Always create extended header.
2852 Set date automatically if not already set.
2853 (setup_sections): Count size of bss sections.
2854 (mangle_relocs, i386_mangle_relocs): Accept section argument, and
2855 take reloc_count as a changeable pointer; changed callers.
2856 (i386_mangle_relocs): Remove PC relative relocs within a section,
2857 as they require no adjustment.
2858 * nlmheader.y: Fixed memory allocation throughout: token STRING is
2859 now allocated on the heap, and freed if not needed. Null
2860 terminated copyright message. Accept version with only two
2861 strings.
2862 (symbol_list_opt): New nonterminal, either symbol_list or empty.
2863 (symbol_list): Use left recursion to avoid overflowing parser
2864 stack.
2865 (yylex): Rearranged beginning of line check. Accept quoted
2866 strings using single quotes. End generic argument at comment
2867 character or parentheses.
2868 (string_list_append): Fixed.
2869 (string_list_append1): New function.
2870
2871 * bucomm.h: The first argument to xrealloc is PTR, not char *.
2872 * bucomm.c (xrealloc): Use PTR rather than char *.
2873 * Makefile.in (objdump.o): Depend upon config.status to notice
2874 --with-targets changes.
2875 (nlmconv.o): Depend upon bucomm.h.
2876
2877Tue Aug 17 09:46:01 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2878
2879 * configure.in: Don't pass cpu to config.bfd.
2880
2881Thu Aug 12 16:43:04 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2882
2883 * Makefile.in ($(NM_PROG)): Depend on demangle.o.
2884 (demangle.o): New target.
2885 (cplus-dem.o): Depend on it, to force compilation order when doing
2886 parallel compiles.
2887
2888 * nm.c (print_symbol_info_{bsd,sysv,posix}): Take a bfd arg.
2889 (struct output_fns print_symbol_info): Ditto.
2890 (long_options, usage, main): Add -C --demangle option.
2891 (print_symname): New function, demangling if requested.
2892 (print_symbols, print_symbol_info_{bsd,sysv,posix}): Use it.
2893
2894Wed Aug 11 22:57:23 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2895
2896 * Makefile.in: Put CFLAGS last in compilation rules and omit from
2897 linking rules. Use ARCHDEFS to compile objdump.c.
2898 Update dependencies.
2899 * configure.in: Construct ARCHDEFS based on the BFD target makefile
2900 fragments.
2901 * objdump.c: Conditionalize calls to the print_insn_ARCH functions
2902 according to ARCHDEFS.
2903
2904Thu Aug 12 08:06:15 1993 Ian Lance Taylor (ian@cygnus.com)
2905
2906 * ar.c: Removed obsolete and non-functional GNU960 code.
2907
2908Wed Aug 11 13:08:26 1993 Ian Lance Taylor (ian@cygnus.com)
2909
2910 * size.c (berkeley_sum): New function.
2911 (bsssize, datasize, textsize): New global variables.
2912 (bss_section_name, data_section_name, text_section_name): Removed.
2913 (print_berkeley_format): Map berkeley_sum over all the sections,
2914 rather than only reporting sizes of specifically named sections.
2915 * Makefile.in ($(OBJDUMP_PROG)): Removed dependency on size.o.
2916
2917Tue Aug 10 10:46:01 1993 Ian Lance Taylor (ian@cygnus.com)
2918
2919 * nlmconv.c, nlmconv.h, nlmheader.y: New files for program to
2920 convert object files into NetWare Loadable Modules.
2921 * Makefile.in (NLMCONV_PROG): New macro, define to be nlmconv.
2922 (PROGS): Add NLMCONV_PROG.
2923 (nlmheader.c, nlmheader.o, nlmconv.o, $(NLMCONV_PROG)): New
2924 targets.
2925
2926Thu Aug 5 15:48:32 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2927
2928 * Makefile.in: define MAKEOVERRIDES to an empty string
2929
2930Wed Aug 4 17:08:08 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2931
2932 * objcopy.c (copy_file): Make failures to process a file nonfatal.
2933
2934Mon Aug 2 11:28:23 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2935
2936 * nm.c: Add -B option, like --format=bsd.
2937
2938Tue Jul 27 16:29:54 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2939
2940 * objcopy.c (copy_file): If the file is neither an object nor an
2941 archive, give an error rather than returning success.
2942
2943Mon Jul 19 16:13:40 1993 Ken Raeburn (raeburn@rtl.cygnus.com)
2944
2945 * objdump.c (objdump_print_address): Prefer non-local symbols over
2946 local ones, and especially discriminate against debugging symbols.
2947 Also, for relocateable files, try to find a symbol in the current
2948 section, instead of picking one from some random section with a
2949 convenient value (read, section offset).
2950 (disassemble_data): Cast argument to malloc to size_t first.
2951 (dump_data): Likewise.
2952 (dump_relocs): If a single section name is specified, show relocs
2953 only for that section. Otherwise, silently omit sections without
2954 relocs. Format table nicely even if values are printed using 16
2955 digits instead of 8.
2956
2957Fri Jul 16 15:19:59 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2958
2959 * nm.c: Changes for final version of POSIX.2.
2960 (print_symbol_filename_{bsd,sysv,posix}): New functions.
2961 (formats): Add an element for a pointer to them.
2962 (print_symbols): Call it.
2963 (print_object_filename_posix, print_archive_member_posix): Produce
2964 output according to new POSIX.2 spec.
2965
2966 * strings.c (print_strings): Handle STREAM being NULL.
2967 (strings_a_section): Pass a NULL.
2968 (main): Don't open /dev/null.
2969
2970Thu Jul 15 12:44:09 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2971
2972 * objdump.c (disassemble_data): Handle the m88k.
2973 (display_bfd): Use bfd_errmsg, rather than just claiming that the
2974 bfd is not an object file.
2975
2976Mon Jul 12 17:55:34 1993 K. Richard Pixley (rich@cygnus.com)
2977
2978 * Makefile.in (TAGS): make work again by naming directories
2979 explicitly rather than depending on undefined macros.
2980 (INSTALL_XFORM): correct bad install target.
2981
2982Fri Jul 2 16:58:34 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2983
2984 * strings.c: Doc fixes.
2985
2986Sun Jun 27 13:35:24 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2987
2988 * Makefile.in: Note dependencies on bucomm.h.
2989 (cplus-dem.o): Link c++filt with version.o.
2990
2991 * strings.c: Include bucomm.h and add prototypes to other decls.
2992 Remove -h option.
2993
2994 * bucomm.h: Declare xrealloc.
2995
2996 * nm.c, objcopy.c, objdump.c, size.c, strings.c (main, usage): Add
2997 --help option. Put "GNU" in the version message.
2998 (usage): Take stream and exit status as args.
2999 (main): Pass new args to usage.
3000
3001Fri Jun 25 23:12:12 1993 David J. Mackenzie (djm@thepub.cygnus.com)
3002
3003 * strings.c, strings.1: New files.
3004 * binutils.texi: Document strings.
3005 * Makefile.in: Add rules for it.
3006
3007Fri Jun 25 20:44:43 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
3008
3009 * objdump.c: Use size-independent bfd elf section names.
3010
3011Sun Jun 20 23:09:06 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
3012
3013 * objdump.c (objdump_print_address): Handle wide offsets by
3014 calling sprintf_vma.
3015
3016Fri Jun 18 14:29:12 1993 Per Bothner (bothner@deneb.cygnus.com)
3017
3018 * objdump.c (syms2): Removed unused variable.
3019 * objdump.c (remove_useless_symbols): New function.
3020 * objdump.c (comp): Simplify.
3021 * objdump.c (dis-assemble_data): Make simpler and more
3022 efficient how we filter out useless symbols: Just filter
3023 BEFORE the sort (using remove_useless_symbols).
3024 * objdump.c (objdump_print_address): Simplify.
3025 Change output syntax to match gdb.
3026
3027Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
3028
3029 * Makefile.in: canonicalize install.sh; for use within
3030 this directory (and subdirs)
3031
3032Mon Jun 14 12:13:22 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
3033
3034 * Makefile.in (install, install-info): remove parentdir support,
3035 use INSTALL_XFORM; define INSTALL_XFORM
3036
3037Thu Jun 10 17:29:21 1993 Per Bothner (bothner@cygnus.com)
3038
3039 * objcopy.c (copy_object): Fix bad size passed to xmalloc().
3040
3041Mon Jun 7 12:41:12 1993 Per Bothner (bothner@rtl.cygnus.com)
3042
3043 * Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h.
3044 * configure.in: No longer need to configure to get sysdep.h.
3045 * objcopy.c (copy_object): Fix symbol table handling.
3046
3047Fri Jun 4 17:20:03 1993 Per Bothner (bothner@cygnus.com)
3048
3049 * objcopy.c (filter_symbols): Cannot filter the symbols
3050 in place, because that confuses the relocs, so take separate
3051 parameter for output array.
3052 * objcopy.c (sympp): Make two variables: isympp and osympp.
3053 * objcopy.c (copy_object): Allocate separate array (osympp)
3054 for filtered symbols.
3055
3056Fri Jun 4 10:51:44 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3057
3058 * Makefile.in: change recursion test to presence of a configured
3059 testsuite directory
3060
3061Thu Jun 3 14:05:57 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3062
3063 * Makefile.in (underscore.c): Hack the backquoted command so it
3064 doesn't cause Solaris make to bomb.
3065
3066Thu Jun 3 10:40:19 1993 Jeffrey Osier (jeffrey@cygnus.com)
3067
3068 * Makefile.in: added c++filt and objcopy to MANPAGES variable
3069 * .Sanitize: keep c++filt.1 and objcopy.1
3070
3071Thu Jun 3 00:32:52 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3072
3073 * Makefile.in: rename LOADLIBES to EXTRALIBS
3074
3075Wed Jun 2 18:30:24 1993 Jeffrey Osier (jeffrey@cygnus.com)
3076
3077 * c++filt.1, objcopy.1: new man pages
3078
3079Fri May 28 15:01:24 1993 Per Bothner (bothner@rtl.cygnus.com)
3080
3081 * Makefile.in (install): Also install ar and ranlib in
3082 $(tooldir)/bin; needed for building libgcc.a.
3083 * objdump.c (objdump_print_address): Fix the check
3084 "coincidental" label matches by dis-allowing undefined
3085 or com symbols.
3086
3087Thu May 27 16:58:31 1993 Jeffrey Osier (jeffrey@cygnus.com)
3088
3089 * biutils.texi: revised c++filt chapter
3090
3091Wed May 26 17:24:17 1993 Ian Lance Taylor (ian@cygnus.com)
3092
3093 * Makefile.in (FLAGS_TO_PASS): Pass down CC and CFLAGS.
3094
3095Tue May 25 00:26:47 1993 Ken Raeburn (raeburn@cygnus.com)
3096
3097 * objdump.c (slurp_symtab): Print warning for bad symbol table.
3098 (bfd_elf32_find_section, Elf32_Internal_Shdr): Updated
3099 declarations and uses.
3100
3101 * Makefile.in (DISTSTUFF): Don't build binutils.mm.
3102
3103Fri May 21 10:51:19 1993 David J. Mackenzie (djm@rtl.cygnus.com)
3104
3105 * nm.c: Add -f/--format, -P/--portability, -t/--radix options.
3106 Make global variables static.
3107 (main): Make -v like -n, not -V, and make -A like -o, for POSIX.2.
3108 (set_print_radix, set_output_format,
3109 print_{object_filename,archive_filename,archive_member,symbol_info}
3110 {bsd,sysv,posix}): New functions.
3111 (display_file, print_symbols): Call them.
3112
3113 * ar.c: Improve error messages.
3114
3115 * nm.c (main): Handle long options that just set a flag.
3116
3117 * nm.c (main), ar.c (do_show_version), objcopy.c (main), size.c
3118 (main): Exit after printing the version number, per the GNU coding
3119 standards.
3120
3121Mon May 17 13:20:25 1993 Per Bothner (bothner@cygnus.com)
3122
3123 * README, Makefile.in: Minor updates for 2.2.
3124
3125Fri May 14 11:12:26 1993 Per Bothner (bothner@cygnus.com)
3126
3127 * Makefile.in (underscore.c): Automatically generate
3128 (using nm) a file with the variable prepends_underscore.
3129 * Makefile.in (c++filt): Link underscore.o with cplus-dem.o
3130 so that initial underscores get removed iff appropriate.
3131 * binutils.texi: Preliminary documentation for c++filt.
3132 * Makefile.in, binutils.texi: Set to version 2.2.
3133
3134 * NEWS: Mention copy->objcopy renaming and new c++filt program.
3135
3136Wed May 12 12:05:36 1993 Ian Lance Taylor (ian@cygnus.com)
3137
3138 * Makefile.in (cplus-dem.o, $(DEMANGLER_PROG)): Build the
3139 demangler via cplus-dem.o, rather than directly from the .c file.
3140
3141 * objcopy.c: Renamed from copy.c, updated comments accordingly.
3142 * Makefile.in, binutils.texi: Renamed copy to objcopy.
3143 * is-strip.c, maybe-strip.c, not-strip.c: Updated comments for
3144 rename of copy to objcopy.
3145
3146Mon May 10 17:20:18 1993 Per Bothner (bothner@cygnus.com)
3147
3148 * binutils.texi (strip, -v option): Fix typo.
3149
3150Fri May 7 13:57:50 1993 Ian Lance Taylor (ian@cygnus.com)
3151
3152 * Makefile.in (RUNTEST): Define.
3153 (FLAGS_TO_PASS): Pass down RUNTEST.
3154
3155Tue May 4 10:06:50 1993 Ian Lance Taylor (ian@cygnus.com)
3156
3157 * Makefile.in (DEMANGLER_PROG): Name it c++filt.
3158 (PROG): Also build and install COPY_PROG.
3159
3160Mon May 3 19:11:48 1993 Per Bothner (bothner@cygnus.com)
3161
3162 * Makefile.in: Change definition of $(tooldir) to match FSF.
3163
3164Wed Apr 28 23:41:32 1993 David J. Mackenzie (djm@rtl.cygnus.com)
3165
3166 * size.c (usage): Add missing options.
3167 (main): Clean up option parser.
3168
3169 * objdump.c (usage): Add missing options.
3170 (display_file): Print program name before calling
3171 bdf_perror.
3172
3173 * nm.c (usage): Add missing options.
3174 (main): Clean up option parser.
3175 (display_file): Print program name before calling
3176 bdf_perror.
3177
3178 * copy.c (copy_usage, strip_usage): Add missing options.
3179
3180 * ar.c (usage): New function.
3181 (main): Call it.
3182 (open_inarch, do_quick_append): Print program name before calling
3183 bdf_perror.
3184
3185Thu Apr 22 15:01:35 1993 Ian Lance Taylor (ian@cygnus.com)
3186
3187 * nm.c (main): Accept and ignore -A and -B for MIPS compatibility.
3188
3189Mon Apr 19 14:06:59 1993 Rob Savoye (rob@cygnus.com)
3190
3191 * Makefile.in: Added FLAGS_TO_PASS so tests get run on freshly
3192 built binaries if they exist. (otherwise the path)
3193
3194Wed Apr 7 22:22:50 1993 Rob Savoye (rob@cygnus.com)
3195
3196 * Makefile.in: Changed check target to use DejaGnu.
3197
3198Thu Apr 1 12:37:13 1993 Jim Kingdon (kingdon@cygnus.com)
3199
3200 * Makefile.in: Remove am29k-pinsn.c, i960-pinsn.c.
3201 objdump.c: a29k and i960 are `disassemble' not `print'.
3202
3203 * objdump.c: Rename print_address to objdump_print_address
3204 and change parameters.
3205 (disassemble_data): Use objdump_print_address.
3206
3207Wed Mar 31 10:25:29 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3208
3209 * objdump.c (disassemble_data): print_insn_sparc is now a
3210 `disassemble' not a `print'.
3211 Makefile.in: Remove sparc-pinsn.c (now in libopcodes.a).
3212
3213 * objdump.c (disassemble_data): Use new read_memory_func stuff.
3214
3215Thu Mar 25 10:38:11 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3216
3217 * objdump.c (fprintf): Declaration of variadic function had better
3218 be a prototype for ANSI C systems.
3219
3220Mon Mar 22 23:19:46 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3221
3222 * Makefile.in: rename test-install to install-check
3223
3224Fri Mar 19 14:40:08 1993 Steve Chamberlain (sac@thepub.cygnus.com)
3225
3226 * objdump.c (disassemble_data): Add H8500.
3227
3228Fri Mar 19 10:56:51 1993 Jim Kingdon (kingdon@cygnus.com)
3229
3230 * objdump.c (usage): Mention long options.
3231
3232Thu Mar 18 14:22:17 1993 Per Bothner (bothner@rtl.cygnus.com)
3233
3234 * nm.c: Modify behavior of -o flag for archives to match
3235 BSD4.4 and Sunos 4: Prefix archive name before each line.
3236
3237 * m68k-pinsn.c: Removed. Subsumed by ../opcodes/m68k-dis.c.
3238 * i386-pinsn.c: Removed. Subsumed by ../opcodes/i386-dis.c.
3239 * Makefile.in: Adjust accordingly.
3240 * objdump.c: Support new-style disassemblers (ones that use
3241 the interface of ../include/dis-asm.h).
3242
3243Thu Feb 25 15:57:00 1993 Per Bothner (bothner@rtl.cygnus.com)
3244
3245 * Makefile.in: When making tar file, remove texinfo/*,
3246 except for texinfo/texinfo.tex.
3247 * ardup.c: Add extern declaration of strdup.
3248 * Makefile.in (testsuite): Add 'else true' since otherwise
3249 Ultrix /bin/sh complains.
3250
3251Wed Feb 24 19:44:18 1993 Per Bothner (bothner@rtl.cygnus.com)
3252
3253 * Makefile.in: Set VERSION to 2.1.
3254 * README, NEWS: Updates.
3255 * nm.c: Add -v as a synonym for -V.
3256
3257Tue Feb 23 19:00:50 1993 Mike Werner (mtw@poseidon.cygnus.com)
3258
3259 * configure.in: added testsuite to configdirs.
3260 * Makefile.in: added support for building testsuite.
3261
3262Mon Feb 22 22:52:10 1993 Per Bothner (bothner@rtl.cygnus.com)
3263
3264 * objdump.c (disassemble_data): Print function names when
3265 given by bfd_find_nearest_line. If not - still print
3266 line numbers.
3267
3268Mon Feb 22 07:54:03 1993 Mike Werner (mtw@poseidon.cygnus.com)
3269
3270 * binutils/testsuite: made modifications to testcases, etc., to allow
3271 them to work properly given the reorganization of deja-gnu and the
3272 relocation of the testcases from deja-gnu to a "tool" subdirectory.
3273
3274Mon Feb 22 10:27:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3275
3276 * objdump.c (dump_data): Free up section contents each time
3277 through the loop. Reported by minyard@bnr.ca.
3278
3279Sun Feb 21 10:55:55 1993 Mike Werner (mtw@poseidon.cygnus.com)
3280
3281 * binutils/testsuite: Initial creation of binutils/testsuite.
3282 Migrated dejagnu testcases and support files for testing nm to
3283 binutils/testsuite from deja-gnu. These files were moved "as is"
3284 with no modifications. This migration is part of a major overhaul
3285 of dejagnu. The modifications to these testcases, etc., which
3286 will allow them to work with the new version of dejagnu will be
3287 made in a future update.
3288
3289Fri Feb 12 10:05:20 1993 Fred Fish (fnf@cygnus.com)
3290
3291 * Makefile.in (LIBIBERTY_SRC_DIR, LIBIBERTY_BIN_DIR): New macros.
3292 * Makefile.in (LIBIBERTY): Use LIBIBERTY_BIN_DIR.
3293 * Makefile.in (DEMANGLER_PROG): New program to build. Add macro
3294 and rule.
3295 * Makefile.in (PROGS): Add DEMANGLER_PROG.
3296
3297Tue Jan 26 11:56:33 1993 Ian Lance Taylor (ian@cygnus.com)
3298
3299 * copy.c, nm.c, objdump.c, size.c: Use new bfd_is_com_section
3300 macro rather than checking for equality to bfd_com_section.
3301
3302Fri Jan 8 15:50:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3303
3304 * objdump.c (disassemble_data): Fix code to find first useless
3305 symbol.
3306
3307Thu Jan 7 13:13:31 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3308
3309 * objdump.c (disassemble_data): Use mips_print_insn for MIPS.
3310 Don't core dump if bfd_find_nearest_line returns false.
3311
3312Wed Jan 6 17:14:01 1993 Steve Chamberlain (sac@thepub.cygnus.com)
3313
3314 * objdump.c (disassemble_data): know how to disassemble z8000s
3315 too.
3316
3317Wed Jan 6 15:16:27 1993 Per Bothner (bothner@cygnus.com)
3318
3319 * arsup.h (interactive), bucomm.h (program_name): Prefix
3320 with 'extern', to avoid warnings from some compilers.
3321
3322Wed Jan 6 15:14:11 1993 Per Bothner (bothner@rtl.cygnus.com)
3323
3324 * arparse.y: fix unnecessary shift/reduce
3325
3326Tue Dec 22 15:46:56 1992 Per Bothner (bothner@rtl.cygnus.com)
3327
3328 * Makefile.in: Make check depend on all.
3329 * Makefile.in (distclean): Remove sysdep.h.
3330 * size.c: Use %u format where appropriate.
3331 * objdump.c: Standardize: L_SET -> SEEK_SET.
3332 * objdump.c: Use new macro bfd_asymbol_bfd.
3333 * configure.in: Allow std-host as the default ${mys_host}.
3334
3335Thu Dec 17 19:38:19 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3336
3337 * Makefile.in: added dvi target, define and use TEXI2DVI
3338
3339Tue Dec 15 18:05:07 1992 Per Bothner (bothner@cygnus.com)
3340
3341 * Makefile.in (dist): Fix permissions before release.
3342 * size.c: Use bfd_size_type (and long) where appropriate.
3343 * ar.c: Make writing a map the default, to be compatible
3344 with SYSV and Posix.2. Remove some bogus kludges that
3345 handled __.SYMDEF directly.
3346 * NEWS: New file.
3347
3348Mon Nov 9 13:36:53 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3349
3350 * Makefile.in: flex no longer needs the -S flag
3351
3352Sat Nov 7 15:06:13 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3353
3354 * ar.c (extract_file): utime needs a pointer to a utimbuf
3355
3356 * Makefile.in: handle -I includes better, adding $(BASEDIR)/bfd to
3357 the list (since some of the bfd/hosts/*.h files include other
3358 files from that directory)
3359
3360Fri Nov 6 00:12:51 1992 John Gilmore (gnu@cygnus.com)
3361
3362 * i960-pinsn.c (MEM_MAX, MEM_SIZ): Set upper bound properly.
3363
3364Thu Nov 5 03:37:15 1992 John Gilmore (gnu@cygnus.com)
3365
3366 Clean up some old BFD ansification macros.
3367
3368 * arsup.h, bucomm.h, objdump.h: Remove EXFUN from binutils.
3369 It still remains as a local macro in gmalloc.c, which is derived
3370 from some other copy of GNU Malloc somewhere (FIXME).
3371
3372 * ar.c, objdump.c, size.c: Replace EXFUN with PROTO. Make static
3373 fns really static.
3374 * arsup.h: Declare extract_files.
3375
3376Mon Nov 2 12:42:11 1992 Ian Lance Taylor (ian@cygnus.com)
3377
3378 * ar.c (extract_file): instead of checking USG: if POSIX_UTIME,
3379 use utime and utimbuf structure, otherwise if USE_UTIME use utime
3380 and array of two longs, otherwise use utimes.
3381
3382Thu Oct 15 13:57:35 1992 Per Bothner (bothner@cygnus.com)
3383
3384 * binutils.tex: Document yesterday's changes to strip and copy.
3385
3386Wed Oct 14 13:22:14 1992 Per Bothner (bothner@cygnus.com)
3387
3388 * copy.c: Re-do command-line parsing to use getopt_long().
3389 Add long option names. Re-think option letters to be more
3390 consistent.
3391 * copy.c: New function filter_symbols() for stripping only
3392 debug-symbols and/or local symbols. Use these to support
3393 the previously-missing options of the old FSF strip.
3394
3395Tue Oct 13 01:24:20 1992 John Gilmore (gnu@cygnus.com)
3396
3397 * configure.in (host): Use ${srcdir}/../bfd/configure.host rather
3398 than repeating a copy of it here.
3399
3400Wed Oct 7 12:53:52 1992 Ken Raeburn (raeburn@cygnus.com)
3401
3402 * copy.c (main): Even if is_strip, accept -d argument indicating
3403 alternate output format. Needed by gdb for Nindy.
3404
3405 * m68k-pinsn.c (print_insn_arg): Handle new "`" operand type.
3406
3407Tue Oct 6 16:33:56 1992 Jeffrey Osier (jeffrey@cygnus.com)
3408
3409 * binutils.texi: added documentation for "copy"
3410
3411Tue Oct 6 14:22:56 1992 Per Bothner (bothner at PersSony)
3412
3413 * Makefile.in (*clean rules): Some cleaning up.
3414 * Makefile.in (dist): Make diststuff in gprof for a dist.
3415
3416 * ar.c (do_show_version): New function.
3417 * ar.c (main): Fix so "ar -V" works.
3418
3419Thu Oct 1 22:44:45 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3420
3421 * configure.in: now uses the cpu-vendor-os triple instead of
3422 nested cases.
3423
3424Fri Sep 25 22:41:08 1992 John Gilmore (gnu@cygnus.com)
3425
3426 * i960-pinsn.c: Change bzero to memset.
3427 * sparc-pinsn.c: Change index to strchr.
3428
3429Mon Sep 21 14:39:56 1992 Ian Lance Taylor (ian@cygnus.com)
3430
3431 * m68k-pinsn (print_insn_arg, fetch_arg): added support for
3432 operands to memory management instructions, from WRS.
3433
3434Tue Sep 15 15:26:38 1992 Ian Lance Taylor (ian@cygnus.com)
3435
3436 * Makefile.in (install): if $(tooldir) exists, install nm and
3437 strip in $(tooldir)/bin.
3438
3439Thu Sep 3 11:57:40 1992 Per Bothner (bothner@rtl.cygnus.com)
3440
3441 * Makefile.in: Let's call it version 2.0.
3442
3443Wed Sep 2 00:25:13 1992 Per Bothner (bothner@rtl.cygnus.com)
3444
3445 * Makefile.in: Bump to version 0.98.
3446 * TODO, README: Minor updates.
3447
3448 * Makefile.in: Added mostlyclean, distclean rules,
3449 and cleaned up clean, realclean.
3450
3451Sun Aug 30 21:18:59 1992 Ian Lance Taylor (ian@cygnus.com)
3452
3453 * Makefile.in: map program names through program_transform_name
3454 when installing.
3455
3456Sun Aug 30 18:09:03 1992 Per Bothner (bothner@rtl.cygnus.com)
3457
3458 * Makefile.in: Bump to versions 1.97.90.
3459 * cplus-dem.c: Removed. Was nowhere used - and if some
3460 programs are changed to to demangling should now use the
3461 versions in libiberty.
3462
3463Thu Aug 27 12:58:09 1992 Brendan Kehoe (brendan@cygnus.com)
3464
3465 * configure.in: add we32k
3466
3467Mon Aug 24 14:53:42 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3468
3469 * ar.c (map_over_members): if the element of the archive has a
3470 null name, fill it in.
3471
3472 * nm.c (do_one_rel_file): only warn if a bfd's flags say there
3473 will be symbols and there aren't any.
3474
3475Wed Aug 19 11:20:25 1992 Ian Lance Taylor (ian@cygnus.com)
3476
3477 * m68k-pinsn.c: handle new operand type 'r', introduced for cas2.
3478
3479Tue Aug 18 20:45:48 1992 Rob Savoye (rob@cygnus.com)
3480
3481 * nm.c objdump.c: Added support for a +version (-V)
3482 to print the version number.
3483
3484 * ar.c, copy.c: Added support for a -V option to print
3485 the version number.
3486
3487Tue Aug 18 13:28:44 1992 Ian Lance Taylor (ian@cygnus.com)
3488
3489 * config/mh-apollo68v: removed -g from CC definition.
3490
3491 * Makefile.in: always create installation directories.
3492
3493Mon Aug 17 18:33:41 1992 Per Bothner (bothner@rtl.cygnus.com)
3494
3495 * m68k-pinsn.c: Minor fix in style of output (don't use
3496 range to indicate floating point control registers).
3497
3498Tue Aug 11 23:42:21 1992 Per Bothner (bothner@cygnus.com)
3499
3500 * ar.c (main): Don't *always* set the verbose flag!
3501
3502Wed Aug 5 11:25:27 1992 Per Bothner (bothner@rtl.cygnus.com)
3503
3504 * copy.c: When is_strip (because it is invoked as the strip
3505 program), follow traditional argv processing:
3506 'strip file1 file2' now strips file1 and file2, rather
3507 than stripping file1 (as input), leaving output in file2.
3508
3509Mon Jul 27 16:28:08 1992 Per Bothner (bothner@rtl.cygnus.com)
3510
3511 * objdump.c (display_info, display_info_table): Call
3512 bfd_set_format() on dummy bfd before using it (twice).
3513 * ar.c: Make sure archive is created on command 'r'
3514 even when no elements are inserted. (Clean up and
3515 simplify some non-working related code.)
3516
3517Mon Jul 20 02:48:38 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
3518
3519 * configure.in: hppa support doesn't assume hp OS (from sef).
3520
3521Sat Jul 18 14:35:22 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3522
3523 * configure.in: recognize hppa hosts (bsd & hpux), error messages
3524 to stderr, not stdout
3525
3526Fri Jul 17 18:39:44 1992 K. Richard Pixley (rich@rtl.cygnus.com)
3527
3528 * ar.1, binutils.texi, i960-pinsn.c, nm.1, objdump.1, ranlib.1,
3529 size.1, sparc-pinsn.c, strip.1: removed rcsid's.
3530
3531Thu Jul 16 16:55:24 1992 K. Richard Pixley (rich@rtl.cygnus.com)
3532
3533 * Makefile.dos: removed rcsid.
3534
3535Thu Jul 16 08:23:07 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3536
3537 * objdump.c (display_bfd): print state of BFD_IS_RELAXABLE too
3538
3539Tue Jun 30 20:26:15 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
3540
3541 * Makefile.in: Add program_suffix (parallel to program_prefix)
3542
3543Thu Jun 25 04:52:45 1992 John Gilmore (gnu at cygnus.com)
3544
3545 * nm.c (sorters): Lint. Remove excess whitespace.
3546
3547Wed Jun 24 13:48:07 1992 Per Bothner (bothner@cygnus.com)
3548
3549 * nm.c (valueof macro): Add missing parentheses.
3550 (Their lack screwed up numeric_forward().)
3551
3552Sun Jun 14 10:33:27 1992 John Gilmore (gnu at cygnus.com)
3553
3554 * objdump.c (dump_elf_stabs): Also dump .stab.index and
3555 .stab.excl sections.
3556 (dump_elf_stabs_1): Split out main body of old dump_elf_stabs.
3557 * objdump.1, binutils.texi: Document new sections dumped.
3558
3559Fri Jun 12 22:23:35 1992 John Gilmore (gnu at cygnus.com)
3560
3561 * size.c, objdump.c, bucomm.c: Lint.
3562
3563Thu Jun 11 01:19:06 1992 John Gilmore (gnu at cygnus.com)
3564
3565 * objdump.c (dump_elf_stabs): New feature: --stabs prints out a
3566 .stab section from an ELF file. Installed under #ifdef
3567 ELF_STAB_DISPLAY so it can be easily disabled, since it requires
3568 bfd-internals header files and such.
3569 * objdump.1, binutils.texi: Update for --stabs. Also fix
3570 objdump's doc to use -- rather than + for long options.
3571 (FIXME: Not yet fixed everywhere in binutils.texinfo.)
3572
3573Wed Jun 10 07:53:24 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3574
3575 * objdump.c(display_info), patches from
3576 mohring@informatik.tu-muenchen.de to print the table much more
3577 nicely.
3578
3579Thu May 28 13:36:16 1992 Per Bothner (bothner@rtl.cygnus.com)
3580
3581 * objdump.c: Add another enum->int cast, for the sake of
3582 old compilers (such as PCC).
3583
3584Wed May 27 13:01:44 1992 Per Bothner (bothner@rtl.cygnus.com)
3585
3586 * arlex.l: Don't include <sysdep.h> (unneeded conflicts).
3587 Add declaration of strdup().
3588
3589Fri May 22 13:40:37 1992 Per Bothner (bothner@cygnus.com)
3590
3591 * Makefile.in: Use srcdir instead of VPATH in ldgram/ldlex
3592 rules, since these are used when building a distribution.
3593 * Makefile.in (arlex.c): Don't re-direct output, since that
3594 leaves a bogus output files if it fails.
3595
3596 * arlex.l: Make work with lex, for what it's worth.
3597 * Makefile.in: Better lex support.
3598 * Makefile.in (dist): Generate flex and bison outputs
3599 for distribution.
3600
3601Thu May 14 17:17:59 1992 K. Richard Pixley (rich@rtl.cygnus.com)
3602
3603 * Makefile.in: get BISON definition right.
3604
3605Fri May 8 07:47:08 1992 K. Richard Pixley (rich@cygnus.com)
3606
3607 * sanity.sh: default TMPDIR to ".".
3608
3609Thu May 7 12:34:50 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
3610
3611 * binutils.texi: add doc for ar command language.
3612
3613Wed May 6 18:05:36 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3614
3615 * arparse.y: make END call ar_end
3616 * arsup.c (ar_end): added, deletes temp file if archive session
3617 aborted.
3618
3619
3620Wed May 6 11:08:53 1992 K. Richard Pixley (rich@rtl.cygnus.com)
3621
3622 * Makefile.in: use bison & flex from ../ if they exist. Also,
3623 FLEX->LEX.
3624
3625 * sanity.sh: remove temporary directory when finished.
3626
3627Tue May 5 12:00:58 1992 Per Bothner (bothner@rtl.cygnus.com)
3628
3629 * Makefile.in: Bump to version 1.97.
3630 * ar.c: Declare errno for machines that need it.
3631
3632Mon May 4 23:29:51 1992 John Gilmore (gnu@cygnus.com)
3633
3634 * objdump.c (display_info): Handle error cases without coredump.
3635 Close the dummy temporary file we open in the loop.
3636 * Makefile.in (arsup.o): Add kludge to build with Sun Make.
3637
3638Fri May 1 16:20:23 1992 K. Richard Pixley (rich@cygnus.com)
3639
3640 * Makefile.in: added test-install target.
3641
3642 * sanity.sh: new file.
3643
3644 * Makefile.in: use sanity test on make check.
3645
3646Tue Apr 21 13:38:37 1992 K. Richard Pixley (rich@cygnus.com)
3647
3648 * Makefile.in: rework CFLAGS so that they can be passed on the
3649 command line to make. Remove MINUS_G. Default CFLAGS to -g.
3650
3651Wed Apr 15 14:33:07 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3652
3653 * arsup.c, arsup.h, arparse.y, arlex.l: support for archive
3654 scripting language.
3655
3656Fri Mar 6 21:54:53 1992 K. Richard Pixley (rich@cygnus.com)
3657
3658 * Makefile.in: added check target.
3659
3660Thu Mar 5 21:35:49 1992 K. Richard Pixley (rich@cygnus.com)
3661
3662 * Makefile.in: added clean-info target.
3663
3664Tue Mar 3 15:36:37 1992 K. Richard Pixley (rich@rtl.cygnus.com)
3665
3666 * Makefile.in: remove $(COPY_PROG) from PROGS. It shouldn't be
3667 installed. added tooldir and program_prefix.
3668
3669Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
3670
3671 * Makefile.in, configure.in: removed traces of namesubdir,
3672 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
3673 copyrights to '92, changed some from Cygnus to FSF.
3674
3675Sun Feb 16 12:53:02 1992 Per Bothner (bothner at cygnus.com)
3676
3677 * Makefile.in: Bump version to 1.96, and remove -beta
3678 suffix from distribution name.
3679 * m68k-pinsn.c: New macro COERCE_SIGNED_CHAR to extract
3680 the signed value of a character (even if chars are unsigned).
3681 * sparc-pinsn.c: Add new operand types.
3682
3683Thu Feb 6 12:14:19 1992 Steve Chamberlain (sac at rtl.cygnus.com)
3684
3685 * objdump.c (disassemble_data): don't print a section's contents
3686 if it's not loadable (eg bss)
3687
3688Tue Jan 28 11:11:06 1992 Steve Chamberlain (sac at rtl.cygnus.com)
3689
3690 * m68k-pinsn.c (print_insn_arg): fixed so that -ve branch
3691 displacements don't get printed as large +ve ones.
3692
3693Fri Jan 24 14:47:53 1992 Steve Chamberlain (sac at rtl.cygnus.com)
3694
3695 * copy.c, nm.c, objdump.c, size.c : changed to use the
3696 new reloc scheme.
3697
3698
3699Mon Dec 30 18:34:41 1991 Per Bothner (bothner at cygnus.com)
3700
3701 * bucomm.c (print_arelt_descr): Tweek the output format
3702 so that 'ar tv' output follows Posix 1003.2/D11.
3703 Output is now also identical to Sun's (except __.SYMDEF).
3704
3705Mon Dec 30 06:09:53 1991 John Gilmore (gnu at cygnus.com)
3706
3707 * Makefile.in: Make `make' output more readable.
3708
3709Wed Dec 18 15:04:45 1991 Per Bothner (bothner at cygnus.com)
3710
3711 * Makefile.in: Bump to version 1.94.
3712
3713Wed Dec 11 16:48:09 1991 Steve Chamberlain (sac at cygnus.com)
3714
3715 * ar.c: added "b" to fopens for dos
3716 * configdj.bat, makefile.dos new files from DJ
3717
3718Tue Dec 10 04:07:26 1991 K. Richard Pixley (rich at rtl.cygnus.com)
3719
3720 * Makefile.in: infodir belongs in datadir.
3721
3722Sat Dec 7 17:09:37 1991 Steve Chamberlain (sac at rtl.cygnus.com)
3723
3724 * bucomm.h: created to hold prototypes of bucomm.c
3725 * objdump.h: created to hold prototyes of objdump.c
3726 * am29k-pinsn.c: include objdump.h
3727 * ar.c: include bucomm.h, get ar.h from the right place and
3728 include libbfd.h
3729 * bucomm.c: defunize bfd_fatal
3730 * copy.c: include bucomm.h, lint.
3731 * i960-pinsn.h: include bucomm.h
3732 * m68k-pinsn.h: lint
3733 * nm.c: include bucomm.h, lint
3734 * objdump.c: lint
3735 * sparc-pinsn.c: include objdump.h
3736
3737
3738
3739Fri Dec 6 23:02:14 1991 K. Richard Pixley (rich at rtl.cygnus.com)
3740
3741 * Makefile.in: added standards.text support. install using
3742 INSTALL_PROGRAM and INSTALL_DATA.
3743
3744 * configure.in: configure now does all of it's work from objdir so
3745 make file existence tests against ${srcdir}.
3746
3747Thu Dec 5 22:46:22 1991 K. Richard Pixley (rich at rtl.cygnus.com)
3748
3749 * Makefile.in: idestdir and ddestdir go away. Added copyrights
3750 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
3751 and mandir now keyed off datadir by default.
3752
3753Wed Dec 4 22:42:03 1991 Per Bothner (bothner at cygnus.com)
3754
3755 * Makefile.in: Bump to version 1.93.
3756 * Makefile.in: Add make-strip.o:maybe-strip.c dependency
3757 for make versions that provide half-baked VPATH-support (e.g. Sun's).
3758 * size.c: Improvements suggested by
3759 "david d [zoo] zuhn" <zoo@aps1.spa.umn.edu>:
3760 - Don't emit (Berkeley) headers if no files were found.
3761 - Return a non-zero return code on failure.
3762
3763Sat Nov 30 21:34:19 1991 Steve Chamberlain (sac at rtl.cygnus.com)
3764
3765 Changes due to include file renaming:
3766 * am29k-pinsn.c: a29k-opcode.h -> opcode/a29k.h
3767 * sparc-pinsn.c: sparc-opcode.h -> opcode/sparc.h
3768 * m68k-pinsn.c: m68k-opcode.h -> opcode/m68k.h
3769 * nm.c: stab.gnu.h -> aout/stab_gnu.h
3770
3771Tue Nov 19 19:20:43 1991 Per Bothner (bothner at cygnus.com)
3772
3773 * README: Mention MINIMIZE flag for bfd's make.
3774
3775Mon Nov 18 12:05:37 1991 Per Bothner (bothner at cygnus.com)
3776
3777 * README: Various improvements.
3778
3779Sun Nov 17 23:40:59 1991 Per Bothner (bothner at cygnus.com)
3780
3781 * Makefile.in: Bump to version 1.92.
3782 * version.c, Makefile.in: Get version string from Makefile.
3783 * copy.c, is-strip.c, not-strip.c, maybe-strip.c, Makefile.in:
3784 Make the same change that we earlier did for ar/ranlib:
3785 Generate two different binaries for strip and copy and use
3786 a global variable with different values to distinguish
3787 ostrip from copy. (-1 means to use argv[0] to decide,
3788 so you can get the old behavior, but it is no longer the default).
3789 * copy.c (copy_file): Set EXEC_P of output bfd if input is so.
3790 * copy.c (main): If is_strip==-1, compare last 5 chars
3791 of argv[0], not the whole path.
3792 * copy.c (main): Return 0, not 1.
3793 * copy.c (setup_sections): Fix due to change in bfd_make_section
3794 now failing if asked for a duplicate section.
3795 * strip.c, ostrip.c: Removed obsolete files.
3796 * ar.c, not-ranlib.c, maybe-ranlib.c:
3797 Change encoding of is_ranlib variable to be consistent
3798 with is_strip for strip.copy (i.e -1 to means use argv[0]).
3799
3800Thu Nov 14 20:11:02 1991 Per Bothner (bothner at cygnus.com)
3801
3802 * version.c (program_version): Update to version 1.92.
3803
3804Tue Nov 12 16:17:53 1991 Per Bothner (bothner at cygnus.com)
3805
3806 * ar.c (get_pos_bfd): Previous fix was missing a "break".
3807
3808Thu Nov 7 08:55:56 1991 Steve Chamberlain (sac at cygnus.com)
3809
3810 * am29k-pinsn.c: Fixed bug in mtacc, dmac and fmac instruction
3811 encodings. (Thaks to David Wood)
3812
3813Sun Nov 3 14:50:23 1991 Per Bothner (bothner at cygnus.com)
3814
3815 * Makefile.in ($(DIST_NAME).tar.Z), TODO: Various fixes.
3816 * ar.c (get_pos_bfd): Fix to handling of before/after
3817 positioning options.
3818 * bucomm.c (fatal): MISSING_VFPRINTF is no longer an issue,
3819 since libiberty contains vfprintf etc if otherwise missing.
3820 * m68k-pinsn.c (print_insn_arg): Support BB/BW/BL
3821 type operands, as used by branch instructions.
3822 * nm.c: Delegate printing of symbols to BFD,
3823 by using bfd_print_symbol to do the formatting.
3824
3825Mon Oct 28 11:20:47 1991 Steve Chamberlain (steve at cygnus.com)
3826
3827 * ar.c (write_archive.c): added unlink before rename since some
3828 systems can't rename onto an existant file.
3829
3830Mon Oct 21 09:47:23 1991 Steve Chamberlain (steve at rtl.cygnus.com)
3831
3832 * nm.c: now doesn't crash if a symbol with no section and no
3833 SEC_ABS appears.
3834
3835Thu Oct 17 15:25:50 1991 Per Bothner (bothner at cygnus.com)
3836
3837 * Makefile.in, version.c: Bump to version 1.91.
3838
3839Wed Oct 16 11:45:36 1991 Per Bothner (bothner at cygnus.com)
3840
3841 * Makefile.in, ar.c, bucomm.c, copy.c, cplus-dem.c, filemode.c,
3842 i960-pinsn.c, m68k-pinsn.c, nm.c, objdump.c, size.c, sparc-pinsn.c,
3843 * strip.c: Add or update Copyright notice.
3844 * TODO: Add note on 'nm -a'.
3845 * version.c: Update version number to 1.90.
3846 * Makefile.in: Fix making of documentation for dist.
3847
3848Tue Oct 15 00:17:17 1991 Per Bothner (bothner at cygnus.com)
3849
3850 * README: New file.
3851 * Makefile.in: New kludgy rules for making a tarfile.
3852 * Makefile.in: Fix bindir path.
3853
3854Mon Oct 14 17:34:29 1991 Roland H. Pesch (pesch at cygnus.com)
3855
3856 * Makefile.in: add targets binutils.mm, binutils.me
3857
3858Fri Oct 11 22:44:21 1991 John Gilmore (gnu at cygnus.com)
3859
3860 * Makefile.in: Avoid Sun Make VPATH bugs by adding dependencies.
3861
3862Fri Oct 11 12:51:33 1991 Roland H. Pesch (pesch at cygnus.com)
3863
3864 * Makefile.in: add target "binutils.ms"
3865
3866 * binutils.texinfo: minor restructuring for texi2roff comfort.
3867
3868Fri Oct 11 04:12:28 1991 John Gilmore (gnu at cygnus.com)
3869
3870 Restructure configuration scheme for bfd, binutils, ld.
3871
3872 * include/sys/h-*.h: Move to bfd/hosts/h-*.h.
3873 * configure.in: Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
3874 Change some config names to match other dirs.
3875 * *.c: Include bfd.h before sysdep.h, so ansidecl and PROTO()
3876 get defined first.
3877 * Makefile.in: Use -I. to get sysdep.h.
3878
3879Wed Oct 9 22:42:56 1991 Per Bothner (bothner at cygnus.com)
3880
3881 * nm.c (print_symbols): Handle NULL name field of symbol.
3882 * Makefile.in: Removed spurious comment.
3883
3884Tue Oct 8 16:55:03 1991 Roland H. Pesch (pesch at cygnus.com)
3885
3886 * binutils.texinfo: minor typos, phrasing, formatting fixes.
3887
3888Tue Oct 8 15:13:20 1991 Per Bothner (bothner at cygnus.com)
3889
3890 * configure.in: Get host file from ../bfd/config, not config.
3891 * config/*: Remove config directory and its files.
3892
3893Tue Oct 8 13:58:59 1991 Roland H. Pesch (pesch at cygnus.com)
3894
3895 * Makefile.in: new targets binutils.dvi, binutils.info
3896
3897 * binutils.texinfo: remove most remaining FIXME's, delete
3898 references to __.SYMDEF by name
3899
3900
3901Tue Oct 8 10:23:44 1991 Steve Chamberlain (steve at cygnus.com)
3902
3903 * objdump.c (print_address) Print addresses nicely.
3904
3905Mon Oct 7 11:31:05 1991 Per Bothner (bothner at cygnus.com)
3906
3907 * ar.c, Makefile.in, new files {is,not,maybe}-ranlib.c:
3908 Make two different binaries for ar and ranlib, instead of
3909 distinguishing them at run time using argv[0].
3910 (Old behavior is still available if you "make ar_with_ranlib",
3911 but it is not the default.)
3912 * ranlib.sh (new): An alternative one-line
3913 shell implementation of ranlib.
3914
3915Fri Oct 4 21:49:44 1991 John Gilmore (gnu at cygnus.com)
3916
3917 * objdump.c: Cope with renames of a few BFD types & enums.
3918
3919Fri Oct 4 19:08:09 1991 Roland H. Pesch (pesch at cygnus.com)
3920
3921 * binutils.texinfo: add new file (rudimentary docn)
3922
3923Mon Sep 30 12:30:39 1991 Per Bothner (bothner at cygnus.com)
3924
3925 * config/hmake-news: Add new file (for Sony NEWSOS3).
3926 * bucomm.c (fatal): Conditionally compile fatal() depending on
3927 MISSING_VFPRINTF, and don't confuse the issue with NO_VARARGS.
3928 * objdump.c (dump_headers): Trivial output format change.
3929 * objdump.c (display_info): Loop over integers, not enums,
3930 to appease old compilers.
3931
3932Mon May 20 16:14:07 1991 Steve Chamberlain (steve at cygint.cygnus.com)
3933
3934 *objdump.c *nm.c *copy.c :hanged some types to work with 64 bit object files
3935
3936Thu May 16 16:06:55 1991 Steve Chamberlain (steve at cygint.cygnus.com)
3937 from bother
3938 * objdump.c (print_address): Make disasembled output more
3939 consistent with gdb and as: Add 0x when printing hex.
3940 Don't print extra leading zeros.
3941 Attempt to not print "filename.o".
3942 * objdump.c: Add some enum-to-int casts to accomodate old compilers.
3943
3944
3945Fri May 3 22:21:44 1991 John Gilmore (gnu at cygint.cygnus.com)
3946
3947 * copy.c: Change =& constructs to = &, since they confuse older
3948 C compilers.
3949
3950\f
3951Local Variables:
3952mode: indented-text
3953left-margin: 8
3954fill-column: 74
3955version-control: never
3956End:
This page took 0.202081 seconds and 4 git commands to generate.