Remove non-K&R compliant LHS type cast in call to GET_DATA_ALLOC macro.
[external/binutils.git] / binutils / ChangeLog
1 2001-02-28  Nick Clifton  <nickc@redhat.com>
2
3         * readelf.c: (struct unw_aux_info): Remove const modifier for
4         'strtab' field.
5         (process_unwind): Remove non-K&R compliant LHS type cast in call
6         to GET_DATA_ALLOC macro.
7
8 2001-02-28  Philip Blundell  <pb@futuretv.com>
9
10         * readelf.c (decode_ARM_machine_flags): Explicitly mention which
11         ABI is in use; remove ambiguity between the "unknown" EABI and
12         unrecognised ABIs.  Handle version 2 ARM EABI.  Update uses of
13         renamed EF_xx constants.
14
15 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
16
17         * configure.in (BFD_VERSION): New.
18         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
19         * configure: Regenerate.
20         * Makefile.am: Run "make dep-am"
21         * Makefile.in: Regenerate.
22
23 2001-02-14  Nick Clifton  <nickc@redhat.com>
24
25         * MAINTAINERS: Add "Obvious Fix" rule.
26
27 2001-02-11  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
28
29         * unwind-ia64.c: Don't use ANSI C preprocessor stringisation and string
30         literal concatenation.
31
32 2001-02-11  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
33
34         * readelf.c (struct unw_aux_info): Remove const from the info member.
35         (process_unwind): Don't type-cast the third argument to the
36         GET_DATA_ALLOC macro.
37
38 2001-02-11  Nick Clifton  <nickc@redhat.com>
39
40         * readelf.c (dump_relocations): Free corrected allocated
41         array.
42         (process_unwind): Fix compile time warning.
43
44 2001-02-10  Nick Clifton  <nickc@redhat.com>
45
46         * binutils.texi: Document new --unwind option to readelf.
47
48 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
49
50         * readelf.c: Add linux target for S/390.
51
52 2001-02-10  Alan Modra  <alan@linuxcare.com.au>
53
54         * nm.c (print_symbol_info_bsd): Don't #ifdef inside printf in case
55         printf is a macro.
56
57 2001-02-08  Hans-Peter Nilsson  <hp@bitrange.com>
58
59         * acinclude.m4 (AM_PROG_LEX): Override installed definition.
60         * aclocal.m4: Regenerate.
61         * configure: Regenerate.
62
63 2001-02-07  Todd Vierling  <tv@wasabisystems.com>
64
65         * bucomm.c (bfd_target_vector): Change extern array to pointer.
66         * objdump.c (bfd_target_vector): Likewise.
67
68 2001-02-07  David Mosberger  <davidm@hpl.hp.com>
69
70         * readelf.c (process_unwind): New function.
71         (slurp_ia64_unwind_table): Ditto.
72         (dump_ia64_unwind): Ditto.
73         (find_symbol_for_address): Ditto.
74         (slurp_rela_relocs): New function (split off from dump_relocations()).
75         (slurp_rel_relocs): Ditto.
76         (parse_args): Handle '-u' option.
77
78         * unwind-ia64.c: New file.
79         * unwind-ia64.h: New file.
80         * Makefile.am: Include unwind-ia64.c in readelf build.
81         * Makefile.in: Regenerate.
82         * po/binutils.pot: Regenerate.
83
84 2001-02-04  Philip Blundell  <philb@gnu.org>
85
86         * configure.in (OBJDUMP_DEFS): Match `arm*-*', not just `arm-*'.
87         * configure: Regenerate.
88
89 2001-01-31  Steve deRosier  <sderosier@vari-lite.com>
90
91         * ieee.c (ieee_add_bb11): Don't check for backslashes
92         unless HAVE_DOS_BASED_FILE_SYSTEM is defined.
93
94 2001-01-24  Mark Elbrecht  <snowball3@bigfoot.com>
95
96         * ieee.c: Update copyright.
97         (ieee_start_compilation_unit): Don't check for backslashes
98         unless HAVE_DOS_BASED_FILE_SYSTEM is defined.
99
100         * stabs.c: Update copyright. Include "filenames.h".
101         (parse_stab): Use IS_ABSOLUTE_PATH. Ignore N_WARNING stabs.
102
103 2001-01-23  Jakub Jelinek  <jakub@redhat.com>
104
105         * readelf.c (process_version_sections): Check if VERDEF or VERNEED
106         sections are present before using them.  Remove code duplication.
107         (process_symbol_table): Check if VERDEF or VERNEED sections are
108         present before using them.
109
110 2001-01-17  Nick Clifton  <nickc@redhat.com>
111
112         * objcopy.c (copy_object): Fail if attempting to convert the
113         endianness of the input object file.
114
115         * binutils.texi: Explain that objcopy cannot convert endianness.
116
117 2001-01-16  Nick Clifton  <nickc@redhat.com>
118
119         * readelf.c (string_table_length): New variable.
120         (SECTION_NAME): Catch out of range indices and missing section
121         pointers.
122         (process_section_headers): Delete useless local variable
123         string_table_offset.  Set the value of string_table_length
124         after loading the string table.
125         (process_mips_specific): Use SECTION_NAME macro.
126         (process_file): Set string_table_length to 0 when it is freed.
127
128 2001-01-12  Nick Clifton  <nickc@redhat.com>
129
130         * version.c (print_version): Update copyright date.
131
132 2001-01-11  Peter Targett  <peter.targett@arccores.com>
133
134         * readelf.c (dump_relocations): Include selection with EM_ARC.
135         (get_machine_name) Update name to "ARC".
136
137 2001-01-09  Nick Clifton  <nickc@redhat.com>
138
139         * Makefile.am: Add rule to build objdump.o from objdump.c and
140         using OBJDUMP_DEFS.
141         * Makefile.in: Regenerate.
142
143         * configure.in: Define OBJDUMP_DEFS.  Default to empty.
144         (arm, xscale, d10v): For these targets define OBJDUMP_DEFS to
145         -DDISASSEMBLER_NEEDS_RELOCS.
146         * configure: Regenerate.
147
148         * objdump.c (disassemble_bytes): If DISASSEMBLER_NEEDS_RELOCS
149         is defined read in the relocs even if dump_reloc_info is
150         false.
151
152 2001-01-07  Philip Blundell  <philb@gnu.org>
153
154         * binutils.texi (Bug Reporting): Replace `bug-gnu-utils' with
155         `bug-binutils'.
156         * README: Likewise.
157
158 2000-12-19  Nick Clifton  <nickc@redhat.com>
159
160         * dlltool.c: Add missing support for arm-epoc-pe.
161         * configure.in: Add missing support for arm-epoc-pe.
162         * configure: Regenerate.
163
164 2000-12-15  Nick Clifton  <nickc@redhat.com>
165
166         * MAINTAINERS: Add Diego Novillo as a maintainer for the Intel
167         Mode parts of the x86 port.
168
169 2000-12-04  Andreas Jaeger  <aj@suse.de>
170
171         * readelf.c (guess_is_rela): Add EM_X86_64.
172         (dump_relocations): Add EM_X86_64.
173         (get_machine_name): Add EM_X86_64.
174         Include "elf/x86-64.h".
175
176 2000-12-12  Nick Clifton  <nickc@redhat.com>
177
178         * readelf.c: Fix formatting.
179
180 Mon Dec 11 14:30:21 MET 2000  Jan Hubicka  <jh@suse.cz>
181
182         * MAINTAINERS: Add myself and Andreas Jaeger as x86_64 maintainer.
183
184 2000-12-07  Andrew Haley  <aph@redhat.com>
185
186         * readelf.c (display_debug_frames): Only display columns that are
187         referenced by the frame debug info.
188
189 2000-12-05  Nick Clifton  <nickc@redhat.com>
190
191         * MAINTAINERS: Add Jason Merrill as DWARF2 maintainer.
192
193 2000-12-04  Jason Merrill  <jason@redhat.com>
194
195         * readelf.c (process_section_headers): Handle linkonce.wi sections.
196         (display_debug_section): Likewise.
197         (display_debug_info): Display CU header before bailing.
198
199 2000-12-01  Chris Demetriou  <cgd@sibyte.com>
200
201         * readelf.c (get_machine_flags): Recognize MIPS32 ISA in
202         EF_MIPS_ARCH.  Replace use of E_MIPS_MACH_MIPS32 with
203         E_MIPS_MACH_MIPS32_4K and adjust printed CPU name similarly.
204
205         * readelf.c (get_machine_flags): Add cases for E_MIPS_ARCH_5,
206         and E_MIPS_ARCH_64.
207
208         * readelf.c (get_machine_flags): Add case for
209         E_MIPS_MACH_SB1.
210
211 2000-11-30  Richard Earnshaw  <rearnsha@arm.com>
212
213         * readelf.c (frame_display_row): Output 's' for DW_CFA_same_value.
214
215 2000-11-28  Hans-Peter Nilsson  <hp@bitrange.com>
216
217         * MAINTAINERS: Add Jvrn Rennecke and self as SH maintainers.
218         Change sourceware.cygnus.com to sources.redhat.com.
219         Fix typo for "amongst".
220
221 2000-11-28  Nick Clifton  <nickc@redhat.com>
222
223         * strip.1 (COPYING): Mention that the GNU Free Documentation
224         License is present in the sources, but not the output, and
225         also available from the GNU website.
226         (GNU Free Documentation License): Comment out this section.
227         * strings.1: Ditto.
228         * size.1: Ditto.
229         * ranlib.1: Ditto.
230         * objdump.1: Ditto.
231         * objcopy.1: Ditto.
232         * nm.1: Ditto.
233         * nlmconv.1: Ditto.
234         * ar.1: Ditto.
235         * addr2line.1: Ditto.
236
237 2000-11-27  DJ Delorie  <dj@redhat.com>
238
239         * readelf.c (usage): Add -wf (--debug-dump=frames) option.
240         (parse_args): Support -wf option.
241         (process_section_headers): Ditto.
242         (debug_displays): Ditto.
243         (display_debug_frames): New, dump *_frame sections.
244         (frame_need_space): Support for above.
245         (frame_display_row): Ditto.
246         * binutils.texi: Document it.
247
248 2000-11-24  Nick Clifton  <nickc@redhat.com>
249
250         * NEWS: Announce support for v5t, v5te and XScale.
251
252 2000-11-22  Nick Clifton  <nickc@redhat.com>
253
254         * readelf.c (get_machine_name): Add EM_JAVELIN, EM_FIREPATH,
255         EM_ZSP, EM_MMIX, EM_HUANY, EM_PRISM.
256         (get_section_type_name): Add SHT_GROUP and SHT_SYMTAB_SHNDX.
257         (get_elf_section_flags: Add SHF_GROUP.
258         (process_section_headers): Adjust output for 32-bit binaries
259         to look nice on an 80 column terminal.
260
261 2000-11-20  H.J. Lu  <hjl@gnu.org>
262
263         * readelf.c (get_osabi_name): Change ELFOSABI_MONTEREY to
264         ELFOSABI_AIX.
265
266 2000-11-17  Richard Henderson  <rth@redhat.com>
267
268         * readelf.c (display_debug_lines): Adjust last change to
269         use sizeof (external->li_length).
270
271 2000-11-17  Richard Henderson  <rth@redhat.com>
272
273         * readelf.c (display_debug_lines): Fix section length check
274         and end_of_sequence computation.
275
276 2000-11-06  Nick Clifton  <nickc@redhat.com>
277
278         * binutils.texi: Add GNU Free Documentation License.
279         * objcopy.1: Add GNU Free Documentation License.
280         * objdump.1: Add GNU Free Documentation License.
281         * addr2line.1: Add GNU Free Documentation License.
282         * ar.1: Add GNU Free Documentation License.
283         * nlmconv.1: Add GNU Free Documentation License.
284         * nm.1: Add GNU Free Documentation License.
285         * ranlib.1: Add GNU Free Documentation License.
286         * size.1: Add GNU Free Documentation License.
287         * strings.1: Add GNU Free Documentation License.
288         * strip.1: Add GNU Free Documentation License.
289
290 2000-10-06  Luciano Gemme <ishitawa@yahoo.com>
291
292         * objcopy.c (--srec-len=nn): New parameter to set the
293         maximum length of generated Srecords.
294         (--srec-forceS3): New parameter that restricts the generation of
295         Srecords to type S3 only.
296         * binutils.texi: Document new command line switches.
297         * objcopy.1: Docuemnt the new command line switches.
298         * NEWS: Announce the existence of the new command line switches.
299
300 2000-10-31  Nick Clifton  <nickc@redhat.com>
301
302         * MAINTAINERS: Add Jim Wilson as the maintainer for the IA64
303         code.  Add Eric Chrisopher as maintainer of MN10300 port.
304
305 2000-10-12  Roger Sayle  <roger@metaphorics.com>
306
307         * Make comma after string after icon/control optional.
308
309 2000-09-13  Anders Norlander  <anorland@acc.umu.se>
310
311         * readelf.c (get_machine_flags): Also print EF_MIPS_MACH field.
312
313         * NEWS: Mention support for MIPS32.
314
315 2000-09-08  Nick Clifton  <nickc@redhat.com>
316
317         * MAINTAINERS: Add Stephane Carrez as maintainer for 68HC[11|12].
318
319 2000-09-07  H.J. Lu  <hjl@gnu.org>
320
321         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
322         * configure: Rebuild.
323
324 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
325
326         * configure: Rebuilt with new libtool.m4.
327
328 2000-09-05  Nick Clifton  <nickc@redhat.com>
329
330         * aclocal.m4: Regenerate.
331         * config.in: Regenerate.
332         * configure: Regenerate.
333
334 2000-09-04  Todd Vierling  <tv@wasabisystems.com>
335
336         * strip.1: Fix stray '\' in -o formatting.
337
338 2000-09-02  Nick Clifton  <nickc@redhat.com>
339
340         * configure.in: Increase version number to 2.10.91.
341         * configure: Regenerate.
342         * aclocal.m4: Regenerate.
343         * config.in: Regenerate.
344         * po/binutils.pot: Regenerate.
345
346 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
347
348         * acinclude.m4: Include libtool and gettext macros from the
349         top level.
350         * aclocal.m4, configure: Rebuilt.
351
352 2000-08-30  Jamie Guinan  <guinan@bluebutton.com>
353
354         * resrc.c (close_input_stream): Delete extraneous logic
355
356 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
357
358         * NEWS: Mention support for CRIS.
359
360 2000-08-21  Nick Clifton  <nickc@redhat.com>
361
362         * addr2line.c: Changed email address for Ulrich Lauther.
363
364 2000-08-17  Christopher C. Chimelis <chris@debian.org>
365
366         * objdump.c (LONGEST_ARCH): Set to sizeof("powerpc:common").
367
368 2000-08-17  Nick Clifton  <nickc@redhat.com>
369
370         * readelf.c (display_debug_pubnames): Only issue warning
371         message once.  Terminate message with a new line.
372         (display_debug_aranges): Only display version 2 debug info.
373
374 2000-08-14  Todd Vierling <tv@wasabisystems.com>
375
376         * objcopy.c (strip_main): Silently accept -d as an alias for -g
377         for compatability with old BSD systems.
378
379 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
380
381         * NEWS: Mention i860 support.
382
383 2000-08-11  Carlo Wood <carlo@alinoe.com>
384
385         * addr2line.c (main): Add const to char *.
386
387 2000-08-11  Geoff Keating  <geoffk@cygnus.com>
388
389         * ar.c (main): Don't crash if called with no arguments
390         or only '-X32_64' as an argument.
391
392 2000-08-08  DJ Delorie  <dj@redhat.com>
393
394         * resrc.c: use "gcc -xc" instead of -xc-header
395
396 2000-08-05  Jason Eckhardt  <jle@cygnus.com>
397
398         * readelf.c (elf/i860.h): Include.
399         (dump_relocations): Add recognition of i860 architecture.
400         (guess_is_rela): Add recognition of i860 architecture.
401
402 2000-08-03  Nick Clifton  <nickc@cygnus.com>
403
404         * MAINTAINERS: Add information about CGEN maintainers.
405
406 2000-07-26  Geoff Keating  <geoffk@cygnus.com>
407
408         * nm.c (main): Ignore '-X32_64' as an option.
409         * ar.c (main): Likewise.
410         * binutils.texi (nm): Document new option.
411         (ar): Likewise.
412
413 2000-07-23  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
414
415         * rdcoff.c (external_coff_symbol_p): K&R-ise.
416
417 2000-07-20  H.J. Lu  <hjl@gnu.org>
418
419         * binutils/binutils.texi: Put back "@end table" deleted by
420         accident.
421
422 2000-07-05  Kenneth Block  <krblock@computer.org>
423
424         * binutils/nm.c: Add optional style to demangle switch.
425         * binutils/objdump.c: Add optional style to demangle switch.
426         * binutils/addr2line.c: Add optional style to demangle switch.
427         * binutils/binutils.texi: Document optional style to demangle
428         switch.
429
430 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
431
432         * MAINTAINERS: Add self as CRIS port maintainer.
433         * readelf.c: Include elf/cris.h.
434         (guess_is_rela): Handle EM_CRIS.
435         (dump_relocations): Ditto.
436         (get_machine_name): Ditto.
437         * Makefile.am: Rebuild dependencies.
438         * Makefile.in: Regenerate.
439         * po/binutils.pot: Regenerate.
440
441 2000-07-19  H.J. Lu  <hjl@gnu.org>
442
443         * readelf.c (get_dynamic_type): Change "AUXILARY" to
444         "AUXILIARY".
445         (process_dynamic_segment): Print out strings for DT_CONFIG,
446         DT_DEPAUDIT, DT_AUDIT and DT_RUNPATH.
447
448 2000-07-19  Mark Kettenis  <kettenis@gnu.org>
449
450         * nm.c (usage): Change output of `nm --help' to include a
451         description of the purpose of the program and a detailed
452         description of the accepted options.
453
454 2000-07-19  H.J. Lu  <hjl@gnu.org>
455
456         * readelf.c (process_dynamic_segment): Change DF_1_NODEPLIB
457         to DF_1_NODEFLIB.
458
459 2000-07-19  H.J. Lu  <hjl@gnu.org>
460
461         * readelf.c (get_dynamic_type): Fix DT_CHECKSUM.
462
463 2000-07-19  H.J. Lu  <hjl@gnu.org>
464
465         * readelf.c (get_dynamic_type): Change DT_FEATURE_1 to
466         DT_FEATURE.
467         (process_dynamic_segment): Likewise.
468
469         * readelf.c (get_dynamic_type): Handle DT_CONFIG, DT_DEPAUDIT,
470         DT_AUDIT, DT_PLTPAD, DT_MOVETAB and DT_CHECKSUM.
471         (process_dynamic_segment): Handle DTF_1_CONFEXP, DF_1_NODEPLIB,
472         DF_1_NODUMP and DF_1_CONLFAT.
473
474 2000-07-18  Nick Clifton  <nickc@cygnus.com>
475
476         * binutils.texi (readelf): Fix spelling typo.
477
478 2000-07-11  Mark Kettenis  <kettenis@gnu.org>
479
480         * objdump.c (usage): Make output of `objdump --help' more
481         consistent with the rest of the GNU world.  Add a line describing
482         the purpose of the program.
483
484 2000-07-10  David Huggins-Daines  <dhd@linuxcare.com>
485
486         * stabs.c (parse_stab_range_type): Cast to proper type to fix
487         warning.
488
489 2000-07-10  Ryan Bradetich  <rbradetich@uswest.net>
490
491         * readelf.c (get_dynamic_data): Add casts and use unsigned chars
492         to fix warnings.
493         (process_symbol_table): Ditto.
494         (procesS_extended_line_op): Ditto.
495         (display_debug_lines): Ditto.
496         (display_debug_pubnames): Ditto.
497         (read_and_display_attr): Ditto.
498
499 2000-07-09  Nick Clifton  <nickc@cygnus.com>
500
501         * MAINTAINERS: Add several more port specific maintainers.
502
503 2000-07-05  Nick Clifton  <nickc@cygnus.com>
504
505         * MAINTAINERS: Add blanket write privs for Michael Meissner.
506
507 2000-06-05  DJ Delorie  <dj@redhat.com>
508
509         * MAINTAINERS: New.
510
511 2000-07-01  Eric Fifer  <EFifer@sanwaint.com>
512
513         * dllwrap.c: Changed mistaken dyn_string_append() calls
514         to dyn_string_append_cstr().
515
516 2000-07-01  Alexander Aganichev <AAganichev@hypercom.com>
517
518         * stabs.c (parse_stab_type): Divide size in bits by 8 as binutils
519         struct debug_type stores size in bytes.
520
521 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
522
523         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
524         (CLEANFILES): Add DEPA.
525         * Makefile.in: Regenerate.
526
527 2000-06-27  Alan Modra  <alan@linuxcare.com.au>
528
529         * ar.c: Revert incorrect 2000-06-25 patch.
530         * bucomm.c: Likewise.
531
532 2000-06-25 Mark Elbrecht <snowball3@bigfoot.com>
533
534         * rdcoff (parse_coff_symbol): Treat GNU weak symbols as external.
535         (external_coff_symbol_p): New function.
536         (parse_coff): Use it.
537
538 2000-06-25  Alexander Aganichev <AAganichev@hypercom.com>
539
540         * ar.c (normalize): Advance past both characters in a DOS based
541         <letter>: filepath prefix.
542         (main): Likewise.
543         * bucomm.c (make_tempname): Likewise.
544
545 2000-06-24  Nick Clifton  <nickc@cygnus.com>
546
547         * objdump.c (usage): Fix description of --stabs switch.
548
549 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
550
551         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
552         find one.
553         * Makefile.in: Regenerate.
554
555 2000-06-20  Alexander Aganichev <AAganichev@hypercom.com>
556
557         * ar.c (normalize): Correct pointer comparison when checking for
558         backslashes.
559         (main): Likewise.
560         * bucomm.c (make_tempname): Likewise.
561
562         * ieee.c (ieee_start_compilation_unit): Correct pointer comparison
563         and search for backslashes in the original pathname.
564         (ieee_add_bb11): Likewise.
565
566 2000-06-18  Nick Clifton  <nickc@redhat.com>
567
568         * ar.c (print_contents): Improve verbose message.
569
570 2000-06-15  H.J. Lu  <hjl@gnu.org>
571
572         * dyn-string.c: Removed. Not needed with dyn-string.c in
573         libiberty.
574         * dyn-string.h: Likewise.
575
576         * Makefile.am: Remove references to dyn-string.c and
577         dyn-string.h. Rebuild dependency.
578         * Makefile.in: Rebuild.
579
580 2000-06-15  H.J. Lu  <hjl@gnu.org>
581
582         * binutils.texi: Put a warning on copying relocatable object
583         files between two different formats.
584
585 2000-06-13  DJ Delorie  <dj@cygnus.com>
586
587         * rcparse.y (control): ICON controls take an id as the first
588         parameter, not an optional string.  Also, call new convenience
589         function that takes res_id's.
590         * resrc.c (define_control): missing text means zero-length string,
591         not zero ID.
592         (define_icon_control): New.
593         * windres.h: declare define_icon_control.
594
595 2000-06-13  H.J. Lu  <hjl@gnu.org>
596
597         * configure: Regenerate.
598
599 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
600
601         * configure.in (VERSION): Update to show this is the CVS mainline.
602
603 2000-06-02  David O'Brien  <obrien@FreeBSD.org>
604
605         * strings.c (isgraphic): Interpret <TAB> as a printable character,
606         analogous to <SPACE>.
607
608 2000-05-30  Alan Modra  <alan@linuxcare.com.au>
609
610         * objdump.c (display_target_list): Use bfd_close_all_done, not
611         bfd_close to fix crash caused by 2000-05-24 change.
612
613 2000-05-25  DJ Delorie  <dj@cygnus.com>
614
615         * resrc.c (close_input_stream): zero out cpp_pipe after closing it.
616
617 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
618
619         * Makefile.am: Update dependencies with "make dep-am"
620         * Makefile.in: Regenerate.
621
622 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
623
624         * ar.c: Include filenames.h.
625         (normalize) [HAVE_DOS_BASED_FILE_SYSTEM]: Support backslashes
626         and drive letters in file names.
627         (main): Support backslashes and drive letters in argv[0].  Drop
628         the .exe suffix, if any, in argv[0] if is_ranlib is negative.  Use
629         FILENAME_CMP instead of strcmp to compare file names.
630         (open_inarch) [__GO32__]: Don't ifdef errno != ENOENT test for
631         DJGPP v2.
632         (do_quick_append) [__GO32__]: Ditto.
633         (get_pos_bfd, delete_members, move_members, replace_members):
634         Compare file names with FILENAME_CMP.
635
636         * bucomm.c: Include filenames.h.
637         (make_tempname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support mixed
638         forward/backward slashes and drive letters in file names.
639
640         * ieee.c (ieee_start_compilation_unit, ieee_add_bb11): Support
641         mixed forward/backward slashes and drive letters in file names.
642
643         * strings.c (O_BINARY, setmode, SET_BINARY): Define.
644         (main) [SET_BINARY]: Use SET_BINARY to switch stdin into binary
645         mode.
646
647         * objcopy.c: Include filenames.h.
648         (main) [HAVE_DOS_BASED_FILE_SYSTEM]: Drop the .exe suffix
649         before comparing to "strip".
650         Use FILENAME_CMP to compare file names.
651
652         * arsup.c: Include filenames.h.
653         (map_over_list, ar_delete, ar_replace, ar_extract): Use
654         FILENAME_CMP to compare file names.
655         (ar_open): Prepend "tmp-" instead of appending "-tmp", to create
656         the temporary file name.
657
658         * configure.in: Check for setmode.
659         * configure: Regenerate.
660
661 2000-05-24  Alan Modra  <alan@linuxcare.com.au>
662
663         * objdump.c (display_target_list): Close the bfd.
664         (display_info_table): Likewise.
665
666 2000-05-14  H.J. Lu  (hjl@gnu.org)
667
668         * objcopy.c (filter_symbols): Don't strip global symbols in
669         relocatable object files.
670
671 2000-05-14  Alan Modra  <alan@linuxcare.com.au>
672
673         * size.c (usage): Associate short options with corresponding long
674         option to give a clue as to their function.
675
676 2000-05-14  Philippe De Muyter  <phdm@macqel.be>
677
678         * size.c (main): Accept and ignore `-f' option.
679
680 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
681
682         * bucomm.h (gettext, dgettext, dcgettext, textdomain,
683         bindtextdomain): Replace defines with those from intl/libgettext.h
684         to quieten gcc warnings.
685
686 2000-05-12  H.J. Lu  <hjl@gnu.org>
687
688         * nlmconv.c (temp_filename): Removed.
689
690         * nlmconv.c (link_inputs): Use make_temp_file () instead of
691         choose_temp_base ().
692         * objdump.c (display_target_list): Likewise.
693         (display_info_table): Likewise.
694
695 2000-05-08  Alan Modra  <alan@linuxcare.com.au>
696
697         * objcopy.c (setup_section): Add const and gettext calls for err.
698
699 2000-05-02  H.J. Lu  <hjl@gnu.org>
700
701         * readelf.c (get_osabi_name): Handle ELFOSABI_NONE instead of
702         ELFOSABI_SYSV. Also handle ELFOSABI_NETBSD, ELFOSABI_HURD,
703         ELFOSABI_SOLARIS, ELFOSABI_MONTEREY, ELFOSABI_IRIX,
704         ELFOSABI_FREEBSD, ELFOSABI_TRU64, ELFOSABI_MODESTO
705         and ELFOSABI_OPENBSD.
706
707 2000-05-02  Kazu Hirata  <kazu@hxi.com>
708
709         * coffgrok.c: Add ATTRIBUTE_UNUSED as appropriate.
710         * srconv.c: Likewise.
711         * sysdump.c: Likewise.
712
713 Sun Apr 23 14:23:26 2000  Denis Chertykov  <denisc@overta.ru>
714
715         * readelf.c (guess_is_rela): AVR uses RELA relocations.
716         (get_machine_name): machine name for EM_AVR added.
717
718 Fri Apr 21 13:20:53 2000  Richard Henderson  <rth@cygnus.com>
719                           David Mosberger  <davidm@hpl.hp.com>
720
721         * Makefile.am (readelf.o): Add elf/ia64.h.
722         * Makefile.in: Rebuild.
723         * readelf.c: Include elf/ia64.h.
724         (guess_is_rela, dump_relocations): Handle EM_IA_64.
725
726 2000-04-17  Timothy Wall  <twall@cygnus.com>
727
728         * objdump.c (disassemble_data): Set octets per byte *after*
729         resolving arch/mach for binary files.
730
731 2000-04-14  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
732
733         * arlex.l: Add directives to increase lex buffer size.
734
735         * objdump.c, readelf.c: Don't include strarg.h or varargs.h. They are
736         already included by bucomm.h.
737
738 2000-04-10  Philippe De Muyter  <phdm@macqel.be>
739
740         * readelf (dynamic_segment_mips_val): Call `sprintf', not
741         `strftime' since strftime is not available on all systems.
742         (process_mips_specific): Ditto.
743
744 Fri Apr  7 15:56:57 2000  Andrew Cagney  <cagney@b1.cygnus.com>
745
746         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
747         --enable-build-warnings option.
748         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
749         * Makefile.in, configure: Re-generate.
750
751 2000-04-06  Alan Modra  <alan@linuxcare.com.au>
752
753         * addr2line.c: Update copyright.
754         * objcopy.1: Likewise, and title.
755         * strings.1: Likewise.
756
757         * version.c (print_version): Add 2000.
758
759         * rddbg.c (read_section_stabs_debugging_info): Don't use
760         bfd_size_type for strx to avoid printf problems if BFD64.
761
762         * bucomm.c: (report): Remove `static'.
763         Move inclusion of stdarg.h/vararg.h from here.
764         * bucomm.h: To here.
765         (CONST): Change all occurences to const.
766         (report): Declare it.
767         (bfd_fatal): Add ATTRIBUTE_NORETURN.
768         (fatal): Add ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN.
769         (non_fatal): Add ATTRIBUTE_PRINTF_1.
770
771         * ar.c (main): Use fatal or non_fatal instead of fprintf.
772         Correct a typo in an error message.
773         (do_quick_append): Use non_fatal instead of fprintf.
774         (move_members): Use fatal instead of fprintf, exit.
775         * coffdump.c (main): Same here.
776
777         * dlltool.c (display): Delete.
778         (warn): Delete.
779         (inform): Use `report' instead of `display'.
780         (rvaafter): Remove trailing \n from fatal error msg.
781         (rvabefore): Ditto.
782         (asm_prefix): Ditto.
783         (yyerror): Replace `warn' with `non_fatal', and remove \n.
784         (def_name): Likewise.
785         (run): Likewise.
786         (scan_all_symbols): Likewise.
787         (gen_lib_file): Likewise.
788         (def_library): Likewise.  Remove extra program_name too.
789         (run): Remove \n from inform strings.
790         (scan_drectve_symbols): Likewise.
791         (add_excludes): Likewise.
792         (scan_open_obj_file): Likewise.
793         (gen_exp_file): Likewise.
794         (gen_lib_file): Likewise.
795         (process_duplicates): Likewise.
796
797         * Makefile.am (dllwrap_SOURCES): Add version.c.
798         * dllwrap.c (program_version): Delete.
799         (print_version): Delete.
800         (display): Always print trailing \n.
801         (warn): New.
802         (delete_temp_files): Use warn instead of fprintf.  Use gettext.
803         (run): Here too.
804         (main): And here.
805         (usage): gettext'ify.
806         (long_options): Add missing initialisers.
807
808         * nlmconv.c (main): Use fatal/non_fatal instead of fprintf.
809         (select_output_format): Likewise.
810         (powerpc_mangle_relocs): Likewise.
811         (link_inputs): Likewise.
812
813         * nm.c (set_print_radix): Use fatal instead of fprintf, exit.
814         (set_output_format): Likewise.
815         (main): Use non_fatal instead of fprintf.
816         (display_rel_file): Likewise.
817
818         * objdump.c (slurp_symtab): Use non_fatal instead of fprintf.
819         (slurp_dynamic_symtab): Same here.
820         (disassemble_data): And here.
821         (read_section_stabs): And here.
822         (read_section_stabs): And here.
823         (dump_bfd): And here.
824         (main): And here.
825         (objdump_sprintf): Use fatal instead of fprintf, exit.
826         (disassemble_data): Same here.
827
828         * rdcoff.c (parse_coff_type): Use non_fatal instead of fprintf.
829         (parse_coff_struct_type): Same here.
830         (parse_coff_enum_type): And here.
831         (parse_coff): And here.
832         * rddbg.c (read_debugging_info): And here.
833         * size.c (main): And here.
834         * windres.c (format_from_name): And here.
835         * wrstabs.c (stab_write_symbol): Here too.
836         (write_stabs_in_sections_debugging_info): And here.
837         (stab_int_type): And here.
838         (stab_struct_field): And here.
839         (stab_typdef): And here.
840
841         * rescoff.c (read_coff_rsrc): Use fatal instead of fprintf, exit.
842         * srconv.c (main): Same here.
843         * strings.c (main): And here.
844         (integer_arg): And here.
845         * sysdump.c (main): And here.
846
847 2000-04-06  Timothy Wall  <twall@cygnus.com>
848
849         * objdump.c (dump_section_header): Print CLINK and BLOCK flags.
850
851 2000-04-06  Jason Merrill  <jason@yorick.cygnus.com>
852
853         * readelf.c (decode_location_expression): Loop through multiple
854         operations.
855         (read_and_display_attr): Pass in length.
856
857         * readelf.c (read_and_display_attr): Add CU offset to references.
858         (display_debug_info): Pass it in.
859
860 2000-04-06  Nick Clifton  <nickc@cygnus.com>
861
862         * readelf.c (decode_ARM_machine_flags): New function.
863         (get_machine_flags): Call decode_ARM_machine_flags for ARM
864         targets.
865
866         (get_machine_name): Catch EM_AVR
867
868 2000-04-05  Alan Modra  <alan@linuxcare.com.au>
869
870         * binutils.texi: Remove optional `=' from long options that have
871         an `=' in the argument.
872         * objcopy.1: Here too.  Remove extra space on discard-all.
873
874         * binutils.texi (objcopy): Mention --redefine-sym.
875         * objcopy.1: Here too.
876         * NEWS: And here.
877
878         * objcopy.c (parse_flags): Split off flag names from error message
879         gettext as they are not translated.
880         (copy_main): Similarly split off option name for --add-section,
881         --set-section-flags, --change-section-vma, --change-section-lma
882         error messages.
883         Some white space changes.
884
885         from Matthew Benjamin <matt@linuxbox.nu>
886         * objcopy.c (struct redefine_node): New.
887         (redefine_sym_list): New.
888         (redefine_list_append): New.
889         (lookup_sym_redefinition): New.
890         (OPTION_REDEFINE_SYM): New.
891         (copy_options): Add --redefine-sym option.
892         (copy_usage): Mention it.
893         (filter_symbols): Rename symbols on redefine_sym_list.
894         (copy_object): Call filter_symbols if redefine_sym_list != NULL.
895         (copy_main): Handle OPTION_REDEFINE_SYM.
896
897 2000-04-04  H.J. Lu  <hjl@gnu.org>
898
899         * readelf.c (process_symbol_table): Correctly read in symbol
900         versioning information.
901
902 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
903
904         * po/binutils.pot: Regenerate.
905
906         * addr2line.c (usage): Restore translated part of bug string.
907         * ar.c (usage): Likewise.
908         * nlmconv.c (show_usage): Likewise.
909         * nm.c (usage): Likewise.
910         * objcopy.c (copy_usage): Likewise.
911         (strip_usage): Likewise.
912         * objdump.c (usage): Likewise.
913         * readelf.c (usage): Likewise.
914         * size.c (usage): Likewise.
915         * strings.c (usage): Likewise.
916         * windres.c (usage): Likewise.
917
918         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
919         (DEP): Quote when passing vars to sub-make.  Add warning
920         message to end.
921         (DEP1): Rewrite for "gcc -MM".
922         (CLEANFILES): Add DEP2.
923         Update dependencies.
924         * Makefile.in: Regenerate.
925
926 2000-04-04  H.J. Lu  <hjl@gnu.org>
927
928         * Makefile.am (GENERATED_HFILES): Add rcparse.h
929         (arparse.h): Depend on arparse.c
930         (defparse.h, nlmheader.h, rcparse.h, sysinfo.h): Similarly.
931
932 2000-04-03  H.J. Lu  (hjl@gnu.org)
933
934         * size.c (usage): Use REPORT_BUGS_TO.
935
936 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
937
938         * bucomm.h: #include "bin-bugs.h"
939         * addr2line.c (usage): Use REPORT_BUGS_TO.
940         * ar.c (usage): Likewise.
941         * nlmconv.c (show_usage): Likewise.
942         * nm.c (usage): Likewise.
943         (OPTION_TARGET): Define.
944         (long_options): Use OPTION_TARGET rather than 200.
945         (main): Likewise.
946
947         * objcopy.c (copy_usage): Use REPORT_BUGS_TO.
948         (strip_usage): Likewise.
949         * objdump.c (usage): Likewise.
950         * readelf.c (usage): Likewise.
951         * strings.c (usage): Likewise.
952         * windres.c (usage): Likewise.
953
954 2000-03-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
955
956         * readelf.c: Include sys/types.h before sys/stat.h for ultrix.
957
958 2000-03-27  Nick Clifton  <nickc@cygnus.com>
959
960         * rddbg.c (read_section_stabs_debugging_info): Catch out of range
961         string offsets in corrupt stabs entries.
962
963 2000-03-27  Alan Modra  <alan@linuxcare.com.au>
964
965         * readelf.c: Include elf/avr.h
966         (dump_relocations): Add EM_AVR case.
967
968 2000-03-09  Tim Waugh  <twaugh@redhat.com>
969
970         * strings.1: Correct '-bytes' to '--bytes'.
971
972 2000-03-08  H.J. Lu  <hjl@gnu.org>
973
974         * Makefile.am (install-exec-local): Depend on
975         install-binPROGRAMS for parallel make.
976         * Makefile.in: Regenerated.
977
978 2000-02-27  Ian Lance Taylor  <ian@zembu.com>
979
980         From Brad Lucier <lucier@math.purdue.edu>:
981         * readelf.c (process_dynamic_segment): Add cast to make sure
982         argument to %* is int.
983
984 2000-02-25  H.J. Lu  <hjl@gnu.org>
985
986         * configure.in (AC_SEARCH_LIBS): Pass m, not -lm.
987
988 2000-02-24  Nick Clifton  <nickc@cygnus.com>
989
990         * configure.in: Add arm-wince, mips-pe and sh-pe targets.
991         * configure: Regenerate.
992
993         * dlltoolc.: Add support for sh-pe and mips-pe targets.
994         * rescoff.c: Add support for sh-pe and mips-pe targets.
995
996 2000-02-23  H.J. Lu  <hjl@gnu.org>
997
998         * readelf.c (get_osabi_name): Handle ELFOSABI_LINUX.
999
1000 2000-02-22  Nick Clifton  <nickc@cygnus.com>
1001
1002         * readelf.c (process_symbol_table): Remove use of ELF_ST_OTHER.
1003
1004 2000-02-22  Ian Lance Taylor  <ian@zembu.com>
1005
1006         From Brad Lucier <lucier@math.purdue.edu>:
1007         * readelf.c (process_version_sections): Add casts to make sure
1008         argument to %* is an int.
1009         (process_mips_specific): Add casts to make printf arguments match
1010         format.
1011
1012 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
1013
1014         * objdump.c (dump_section_header): Change `opb' to unsigned.
1015         (find_symbol_for_address): Same here.
1016         (disassemble_data): And here.  Change `addr_offset',
1017         `stop_offset', `nextstop_offset' to unsigned long.
1018         (dump_data): Change opb to unsigned.
1019
1020 2000-02-18  Frank Ch. Eigler  <fche@redhat.com>
1021
1022         * resrc.c: Remove unmatched #if for cygwin.
1023
1024 2000-02-14  Fernando Nasser  <fnasser@totem.to.cygnus.com>
1025
1026         * binutils.texi: Document the change of flavor name from atpcs-special
1027         to special-atpcs to prevent name conflict in gdb.
1028
1029 2000-02-08  Timothy Wall  <twall@redhat.com>
1030
1031         * objdump.c (show_line): Fix bug preventing printing of the very
1032         first line (line zero) of a file when interlisting source and
1033         assembly.  Added option to print entire context from start of file
1034         when the first line from that file is encountered.
1035
1036 2000-02-03  Timothy Wall <twall@redhat.com>
1037
1038         * binutils/objdump.c (dump_section_header, find_symbol_for_address,
1039         show_line, disassemble_bytes, disassemble_data, dump_data):
1040         distinguish between octets and bytes.
1041
1042 2000-01-27  Thomas de Lellis  <tdel@windriver.com>
1043
1044         * nm.c (print_symbol_info_bsd): Use bfd_is_undefined_symclass to
1045         check to unresolved symbols.
1046         (print_symbol_info_sysv):  Ditto.
1047         (print_symbol_info_posix):  Ditto.
1048
1049         * binutils.texi: Document new 'V' symclass flag for nm.
1050
1051 2000-01-27  Nick Clifton  <nickc@redhat.com>
1052
1053         * binutils.texi (objdump): Document new ARM specific
1054         disassembler options.
1055
1056         * objdump.c (usage): Call disassembler_usage().
1057
1058 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
1059
1060         * readelf.c (get_dynamic_flags): Return buff.
1061         (process_dynamic_segment): Don't pass error strings to printf
1062         as format arg.
1063         (read_and_display_attr): Use lx and ld to print longs.
1064         (process_corefile_note_segment): Cast bfd_vma to unsigned long
1065         before printing.
1066         Update copyright.
1067
1068 2000-01-17  Nick Clifton  <nickc@cygnus.com>
1069
1070         * readelf.c (get_osabi_name): Recognise ELFOSABI_ARM.
1071
1072 2000-01-15  Alan Modra  <alan@spri.levels.unisa.edu.au>
1073
1074         * debug.c (debug_name_type): Return DEBUG_TYPE_NULL rather than
1075         false.
1076         (debug_tag_type): Here too.
1077         * ieee.c (ieee_builtin_type): And here.
1078         * stabs.c (parse_stab_type, parse_stab_array_type): And here.
1079
1080 2000-01-13  Nick Clifton  <nickc@cygnus.com>
1081
1082         * readelf.c (get_machine_name): Change EM_S370 to return "IBM
1083         System/370".
1084
1085 2000-01-11  Nick Clifton  <nickc@cygnus.com>
1086
1087         * readelf.c (get_dynamic_type): Remove DT_ENCODING.
1088
1089 2000-01-10  Nick Clifton  <nickc@cygnus.com>
1090
1091         * readelf.c (get_note_type): Display NT_WIN32PSTATUS notes.
1092
1093 2000-01-07  Mumit Khan  <khan@xraylith.wisc.edu>
1094
1095         * windres.c (long_options): Add --use-temp-file and
1096         --no-use-temp-file options.
1097         (usage): Document.
1098         (main): Handle.
1099
1100         * windres.h: Update read_rc_file prototype.
1101
1102         * resrc.c (cpp_temp_file): New static variable.
1103         (istream_type): New static variable.
1104         (close_pipe): Delete function.
1105         (run_cmd): New static function.
1106         (open_input_stream): New static function.
1107         (close_input_stream): New static function.
1108         (look_for_default): Handle DOS directory separator. Use
1109         open_input_stream instead of popen.
1110         (read_rc_file): Likewise.
1111
1112         * binutils.texi: Document --use-temp-file, --no-use-temp-file
1113         options.
1114
1115 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
1116
1117         * dlltool.c (create_compat_implib): New variable.
1118         (gen_exp_file): Use.
1119         (make_one_lib_file): Use.
1120         (long_options): Add --compat-implib option.
1121         (usage): Handle.
1122         (main): Handle.
1123
1124         * dllwrap.c (enum target_type): Rename MINGW32_TARGET to MINGW_TARGET.
1125         (main): Use. Don't look for "32" in cygwin and mingw target names.
1126
1127 2000-01-03  Nick Clifton  <nickc@cygnus.com>
1128
1129         * binutils.texi: Document new, ARM specific disassembler
1130         command line switch "-M force-thumb".
1131
1132 For older changes see ChangeLog-9899
1133 \f
1134 Local Variables:
1135 mode: change-log
1136 left-margin: 8
1137 fill-column: 74
1138 version-control: never
1139 End: