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