* ar.c (mri_mode): Make static.
[external/binutils.git] / binutils / ChangeLog
1 2005-04-29  Ben Elliston  <bje@au.ibm.com>
2
3         * ar.c (mri_mode): Make static.
4         * arsup.c (obfd, real_name, outfile): Likewise.
5         * binemul.c (ar_emul_create): Remove unused function.
6         (ar_emul_default_create): Likewise.
7         * binemul.h (ar_emul_create): Remove declaration.
8         (ar_emul_default_create): Likewise.
9         (struct bin_emulation_xfer_struct): Remove ar_create member.
10         * bucomm.c (report): Make static.
11         * bucomm.h (report): Remove declaration.
12         * cxxfilt.c (mbuffer): Make static.
13         (main): Use unsigned ints for some loop control variables.
14         * readelf.c: Make many global variables static.
15         * size.c (berkeley_format): Make static.
16         (long_options): Likewise.
17         * emul_aix.c (bin_aix_emulation): Remove ar_emul_default_create
18         structure initialiser.
19         (bin_aix5_emulation): Likewise.
20         * emul_vanilla.c (bin_vanilla_emulation): Likewise.
21
22 2005-04-27  Ben Elliston  <bje@au.ibm.com>
23
24         * syslex.l: Adjust top-of-file comment: this file is part of GNU
25         binutils, not GNU ld.
26
27 2005-04-25  Nick Clifton  <nickc@redhat.com>
28
29         PR872
30         * objcopy.c (copy_archive): Initialise 'obfd' field of new
31         name_list structure.
32         
33         * objcopy.c (copy_usage): Fix description of -K switch.
34
35         * doc/binutils.texi (strip, objcopy): Fix description of -K
36         switch.
37
38 2005-04-20  Daniel Jacobowitz  <dan@codesourcery.com>
39
40         * readelf.c (display_debug_frames): Use data factor for
41         DW_CFA_def_cfa_sf and DW_CFA_def_cfa_offset_sf.
42
43 2005-04-19  H.J. Lu  <hongjiu.lu@intel.com>
44
45         * objdump.c (dump_section_header): Skip linker created section.
46
47 2005-04-17  H.J. Lu  <hongjiu.lu@intel.com>
48
49         * objdump.c (dump_section_header): Support SEC_GROUP.
50
51 2005-04-16  Nick Clifton  <nickc@redhat.com>
52
53         * readelf.c (debug_apply_rela_addends): Remove redundant %s from
54         printf string.
55
56 2005-04-15  Nick Clifton  <nickc@redhat.com>
57
58         * objcopy.c (copy_file): Issue an error message when attmepting to
59         copy an empty input file.
60
61 2005-04-14  Alan Modra  <amodra@bigpond.net.au>
62
63         * Makefile.am (NO_WERROR): Define.  Use instead of -Wno-error.
64         * configure.in: Include ../bfd/warning.m4 contents.
65         * Makefile.in: Regenerate.
66         * configure: Regenerate.
67         * doc/Makefile.in: Regenerate.
68
69 2005-04-12  Alan Modra  <amodra@bigpond.net.au>
70
71         * Makefile.am: Run "make dep-am".
72         (syslex.o, sysinfo.o, arparse.o, arlex.o): Add -Wno-error to command.
73         (sysroff.o, defparse.o, deflex.o): Likewise.
74         (nlmheader.o, rcparse.o, rclex.o): Likewise.
75         * Makefile.in: Regenerate.
76         * aclocal.m4: Regenerate.
77         * config.in: Regenerate.
78         * configure: Regenerate.
79
80 2005-04-11  Jan Beulich  <jbeulich@novell.com>
81
82         * MAINTAINERS: Add myself as ix86 Intel mode maintainer.
83
84 2005-04-06  Nick Clifton  <nickc@redhat.com>
85             H.J. Lu  <hongjiu.lu@intel.com>
86
87         * po/rw.po: New translation: Kinyarwanda.
88         * configure.in (ALL_LINGUAS): Add rw.
89         * configure: Regenerate.
90
91 2005-04-04  Maciej W. Rozycki  <macro@linux-mips.org>
92
93         * readelf.c (debug_apply_rela_addends): Reorder r_info as
94         necessary for 64-bit MIPS.
95
96 2005-04-04  Maciej W. Rozycki  <macro@linux-mips.org>
97
98         * doc/binutils.texi (readelf): Remove a duplicate paragraph.
99
100 2005-04-04  Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
101
102         PR binutils/813
103         * objdump.c (dump_symbols): Add a check to see if the section for
104         the symbol is chosen using process_section_p.
105
106 2005-04-01  H.J. Lu  <hongjiu.lu@intel.com>
107
108         * NEWS: Mention new readelf options, "-N/--full-section-name"
109         and "-g/--section-groups".
110
111         * doc/binutils.texi: Document new readelf options,
112         "-N/--full-section-name" and "-g/--section-groups".
113
114 2005-03-31  H.J. Lu  <hongjiu.lu@intel.com>
115
116         * readelf.c (do_full_section_name): New.
117         (options): Add "--full-section-name"/'N'.
118         (usage): Add -N/--full-section-name.
119         (parse_args): Handle 'N'.
120         (process_section_headers): Print out the full section name if
121         do_full_section_name isn't 0.
122
123 2005-03-31  Nick Clifton  <nickc@redhat.com>
124
125         * configure.in: Add a check for <unistd.h> providing a prototype
126         for getopt() which is compatible with the one in
127         include/getopt.h.  If so then define HAVE_DECL_GETOPT.
128         * configure: Regenerate.
129         * config.in (HAVE_DECL_GETOPT): Add.
130         * aclocal.m4: Regenerate.
131         * addr2line.c: Include "config.h" before "bfd.h" so that
132         HAVE_DECL_GETOPT is defined before getopt.h is included.
133
134 2005-03-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
135
136         * doc/binutils.texi: Document new VAX disassembler-specific option
137         -M entry:0xfooba8.
138         * NEWS: Mention the new option.
139         
140 2005-03-29  Anil Paranjpe  <anilp1@kpitcummins.com>
141
142         * MAINTAINERS: Add myself as H8300 maintainer.
143
144 2005-03-28  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
145
146         * objdump.c (disassemble_bytes): Remove cast.
147
148 2005-03-25  Daniel Jacobowitz  <dan@codesourcery.com>
149
150         * BRANCHES: Add binutils-csl-arm-2005q1-branch and
151         binutils-2_16-branch.
152
153 2005-03-25  Mark Kettenis  <kettenis@gnu.org>
154
155         * MAINTAINERS: Add myself as M88k maintainer.
156
157 2005-03-24  Danny Smith  <dannysmith@users.sourceforge.net>
158
159         * winduni.c (unicode_from_ascii): Don't declare variables
160         's' and 'w' if _WIN32.  Use MultiByteToWideChar to set the unicode
161         string len.
162
163 2005-03-24  Dmitry Diky   <diwil@spec.ru>
164
165         * MAINTAINERS: Add myself as MSP430 maintainer. 
166
167 2005-03-23  Nick Clifton  <nickc@redhat.com>
168
169         * po/fr.po: Updated translation.
170
171 2005-03-22  Nick Clifton  <nickc@redhat.com>
172
173         * MAINTAINERS: Add Daniel Jacobwitz to the blanket write
174         privileges list.
175
176 2005-03-17  Paul Brook <paul@codesourcery.com>
177             Dan Jacobowitz <dan@codesourcery.com>
178             Mark Mitchell  <mark@codesourcery.com>
179
180         * binutils/readelf.c (get_arm_segment_type): New function.
181         (get_segment_type): Use it.
182
183 2005-03-18  Paul Brook  <paul@codesourcery.com>
184
185         * objdump.c (objdump_print_addr): Avoid uninitialized warning.
186
187 2005-03-17  Diego Novillo  <dnovillo@redhat.com>
188
189         * MAINTAINERS: Remove self as maintainer of x86 intel
190         mode.
191
192 2005-03-16  Nick Clifton  <nickc@redhat.com>
193             Ben Elliston  <bje@au.ibm.com>
194
195         * configure.in (werror): New switch: Add -Werror to the
196         compiler command line.  Enabled by default.  Disable via
197         --disable-werror.
198         * configure: Regenerate.
199
200 2005-03-15  Daniel Marques  <marques@cs.cornell.edu>
201             Nick Clifton  <nickc@redhat.com>
202
203         * objcopy.c (globalize_specific_list): New linked list of symbols
204         to convert from local binding into global binding.
205         (command_line_switch): Add OPTION_GLOBALIZE_SYMBOL and
206         OPTION_GLOBALIZE_SYMBOLS.
207         (copy_options): Add "globalize-symbol" and "globalize-symbols".
208         (copy_usage): Document the new switches.
209         (filter_symbols): Convert defined local symbols mentioned on the
210         globalize_specific_list into global symbols.
211         (copy_object): Perform actions if the globalize_specific_list is
212         not empty.
213         (copy_main): Handle new switches.
214         * NEWS: Mention new feature.
215         * doc/binutils.texi: Document new switches.
216
217 2005-03-15  Alan Modra  <amodra@bigpond.net.au>
218
219         * po/es.po: Commit new Spanish translation.
220
221         * po/fr.po: Commit new French translation.
222
223 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
224
225         * po/tr.po: Commit new Turkish translation.
226
227 2005-03-11  Nick Clifton  <nickc@redhat.com>
228
229         * po/fr.po: Updated French translation.
230
231 2005-03-10  Nick Clifton  <nickc@redhat.com>
232
233         * configure.in (ALL_LINGUAS): Add Romanian lingua "ro".
234         * configure: Regenerate.
235         * po/ro.po: New file.
236
237         * po/ru.po: Updated file.
238
239 2005-03-05  Alan Modra  <amodra@bigpond.net.au>
240
241         * po/binutils.pot: Regenerate.
242
243 2005-03-02  Jan Beulich  <jbeulich@novell.com>
244
245         * ar.c (remove_output): Use unlink_if_ordinary instead of unlink.
246         * objcopy.c (copy_file): Likewise.
247         (strip_main): Likewise.
248
249 2005-03-01  Stig Petter Olsroed  <stigpo@users.sourceforge.net>
250             Nick Clifton  <nickc@redhat.com>
251
252         * objdump.c: Fix coding for DISASSEMBLER_NEEDS_RELOC:
253         (struct objdump_disasm_info): Add 'reloc' field.
254         (disassemble_bytes): Fix check for when an insn has a reloc
255         associated with it.  Improve comment explaining why the use of
256         octets is wrong.  Set the 'reloc' field in objdump_disasm_info
257         structure.
258         (objdump_print_addr): Use new 'reloc' field to lookup the correct
259         address for the symbol associated with the current instruction's
260         relocation.
261         (disassemble_info): Initialise 'reloc' field.
262
263 2005-02-28  Jakub Jelinek  <jakub@redhat.com>
264
265         * readelf.c (get_file_type, get_machine_name, get_osabi_name,
266         get_segment_type, get_section_type_name, get_elf_class,
267         get_data_encoding, get_group_flags, dynamic_section_mips_val,
268         get_symbol_binding, get_symbol_type, get_TAG_name, get_FORM_name,
269         get_AT_name, process_mips_specific, process_gnu_liblist,
270         get_note_type, get_netbsd_elfcore_note_type): Use snprintf instead of
271         sprintf where needed.
272         (get_dynamic_type): Likewise.  Increase buff to 64 bytes.
273         (get_elf_section_flags): Increase buff to 33 bytes.  Avoid
274         using strcat.
275         (get_dynamic_flags): Renamed to...
276         (print_dynamic_flags): ... this.  Print the flags to stdout instead
277         of returning them as string.
278         (process_dynamic_section): Adjust caller.
279
280 2005-02-25  H.J. Lu  <hongjiu.lu@intel.com>
281
282         * readelf.c (display_debug_ranges): Print out offset for end of
283         list.
284
285 2005-02-23  Alan Modra  <amodra@bigpond.net.au>
286
287         * dlltool.c: Warning fixes.
288         * objdump.c: Likewise.
289
290 2005-02-22  Alan Modra  <amodra@bigpond.net.au>
291
292         * Makefile.am (syslex.o, sysinfo.o): Pass AM_CFLAGS to compiler.
293         (syslex.o, sysinfo.o, dlltool.o, rescoff.o): Remove duplicate
294         dependencies.  Run "make dep-am".
295         * nlmconv.c: Warning fixes.
296         * readelf.c: Likewise.
297         * srconv.c: Likewise.
298         * sysdump.c: Likewise.
299         * sysinfo.y: Likewise.
300         * syslex.l: Likewise.  Use yyleng instead of strlen, memcpy instead
301         of strcpy.
302         * Makefile.in: Regenerate.
303
304 2005-02-21  H.J. Lu  <hongjiu.lu@intel.com>
305
306         * objcopy.c (parse_flags): Replace SEC_SHARED with
307         SEC_COFF_SHARED.
308
309         * objdump.c (dump_section_header): Dump SEC_TIC54X_BLOCK and
310         SEC_TIC54X_CLINK for TI c54x only. Remove SEC_ARCH_BIT_0. Dump
311         SEC_COFF_SHARED for COFF only.
312
313 2005-02-21  Alan Modra  <amodra@bigpond.net.au>
314
315         * Makefile.am: Run "make dep-am"
316         * Makefile.in: Regenerate.
317         * doc/Makefile.in: Regenerate.
318
319 2005-02-21  Alan Modra  <amodra@bigpond.net.au>
320
321         * readelf.c (BYTE_GET8): Delete.  Replace uses with BYTE_GET.
322         (byte_get_little_endian): Don't handle size of -8.
323         (byte_get_signed, byte_get_big_endian): Likewise.
324         (print_dec_vma, print_hex_vma): New functions.
325         (print_vma): Use them.  Return chars output.
326         (get_dynamic_data): Return a bfd_vma array.  Add ent_size parm.
327         (process_symbol_table): Handle alpha and s390 .hash.
328
329 2005-02-18  H.J. Lu  <hongjiu.lu@intel.com>
330
331         * readelf.c (display_debug_loc): Print out offset for end of
332         list.
333
334 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
335
336         * Makefile.am (TOOL_PROGS): Add objdump.
337         * Makefile.in: Regenerate.
338
339 2005-02-17  Alan Modra  <amodra@bigpond.net.au>
340
341         * deflex.l (YY_NO_UNPUT): Define.
342         * rclex.l (YY_NO_UNPUT): Define.
343         * rcparse.y (null_unichar): New static var.
344         (res_null_text): Use it rather than attempting to init from wchar_t.
345         * windres.c: Include assert.h and time.h before getopt.h.
346         Include config.h and unistd.h too.
347
348 2005-02-15  Nick Clifton  <nickc@redhat.com>
349
350         * nlmconv.c: Provide a full prototype for the localtime() function
351         in order to avoid a compile time warning.
352
353 2005-02-11  H.J. Lu  <hongjiu.lu@intel.com>
354
355         * readelf.c (group_count): Don't initialize it.
356         (process_section_groups): Reurn 1 if we won't do unwind nor
357         section groups. Set group_count to 0 before counting group
358         sections and return 1 if there are no group sections. Reread
359         SHT_SYMTAB/SHT_STRTAB sections only when needed. Don't skip
360         section 0.
361         (process_object): Only set do_unwind to 0 if
362         process_section_groups return 0.
363
364 2005-02-10  Ian Lance Taylor  <ian@airs.com>
365
366         * MAINTAINERS: Update my e-mail address.
367
368 2005-02-10  Mark Mitchell  <mark@codesourcery.com>
369
370         * MAINTAINERS: Add Paul Brook and Mark Mitchell as ARM (Symbian)
371         maintainers.
372
373 2005-02-07  Inderpreet Singh <inderpreetb@noida.hcltech.com>
374
375          * MAINTAINERS: Add self as maintainer of MAXQ.
376
377 2005-01-31  Richard Sandiford  <rsandifo@redhat.com>
378
379         * readelf.c (eh_addr_size): New variable.
380         (find_section): Move earlier in file.  Return empty sections too.
381         (process_program_headers): Use find_section to find .dynamic.
382         (process_section_headers): Initialize eh_addr_size.
383         (dump_ia64_unwind, slurp_ia64_unwind_table, ia64_process_unwind)
384         (dump_hppa_unwind, slurp_hppa_unwind_table, hppa_process_unwind)
385         (display_debug_frames): Use it instead of local addr_size variable.
386         (size_of_encoded_value): Get pointer size from eh_addr_size rather
387         than is_32bit_elf.
388
389 2005-01-31  Andrew Cagney  <cagney@gnu.org>
390
391         * configure: Regenerate to track ../gettext.m4.
392
393 2005-01-31  Nick Clifton  <nickc@redhat.com>
394
395         * version.c (print_version): Bump the copyright date to 2005.
396
397 2005-01-25  Alan Modra  <amodra@bigpond.net.au>
398
399         * nm.c (display_rel_file): Read dynamic syms before calling
400         bfd_get_synthetic_symtab.
401
402 2005-01-21  Ben Elliston  <bje@au.ibm.com>
403
404         * dlltool.c (dump_iat): Remove unused function.
405         (gen_exp_file): Remove #if 0'd code.
406         (make_one_lib_file): Likewise.
407         * srconv.c: Remove #if 0'd code throughout.
408         * size.c (lprint_number): Remove.
409         (print_berkeley_format): Remove #if 0'd code.
410         * ar.c (do_quick_append): Remove declaration and definiton.
411         (main): Remove #if 0'd code.
412         * filemode.c (filemodestring): Remove #if 0'd function.
413         * sysdump.c (unit_info_list): Remove function.
414         (object_body_list): Likewise.
415         (program_structure): Likewise.
416         (debug_list): Likewise.
417         (module): Remove #if 0'd code.
418
419 2005-01-20  Mark Mitchell  <mark@codesourcery.com>
420
421         * BRANCHES: Add binutils-2_15-branch.
422
423         * MAINTAINERS: Document branch policy.
424         * BRANCHES: New file.
425
426 2005-01-19  Fred Fish  <fnf@specifixinc.com>
427
428         * NEWS: Make note of the new MIPS disassembly option "no-aliases".
429         * doc/binutils.texi (objdump): Document the "no-aliases"
430         disassembly option.
431
432 2005-01-17   Eugene Kotlyarov  <ekot@narod.ru>
433
434         PR binutils/647
435         * rcparse.y (RCDATA): Allow a filename to be supplied as the
436         parameter.  Parse it with define_rcdata_file().
437         * resrc.c (define_rcdata_file): New function.
438         * windres.h: Provide a prototype for the new function.
439
440         * resrc.c (define_user_file): Fix typo by replacing "font file"
441         with "file".
442
443 2005-01-16  Jason Thorpe  <thorpej@netbsd.org>
444
445         * MAINTAINERS: Update my email address.
446
447 2005-01-16  Danny Smith  <dannysmith@users.sourceforge.net>
448
449         * dlltool.c (set_dll_name_from_def): New function.  Strip name
450         to basename, with warning.
451         (def_name): Use it.
452         (def_library): Likwise.
453         (main): Strip arg of --dllname to basename, with warning.
454         Only use basename of exp_name when inferring dll_name.
455
456 2005-01-11  Nick Clifton  <nickc@redhat.com>
457
458         PR binutils/637
459         * doc/binutils.texi (c++filt): Use uppercase CXXFILT in the
460         footnote in order to prevent the sed script in the Makefile from
461         converting it into c++filt.
462
463 2005-01-10  H.J. Lu  <hongjiu.lu@intel.com>
464
465         BZ 635
466         readelf.c (saved_base_address): Removed.
467         (decode_64bit_range): Likewise.
468         (decode_range): Likewise.
469         (display_64bit_debug_ranges): Likewise.
470         (debug_info): Add range_lists, num_range_lists and
471         max_range_lists.
472         (read_and_display_attr_value): Handle do_debug_ranges.
473         (process_debug_info): Likewise.
474         (display_debug_ranges): Rewrite.
475         (process_object): Free range_lists.
476
477 2005-01-10  Andreas Schwab  <schwab@suse.de>
478
479         * configure.in: Don't define SKIP_ZEROES.
480         * configure: Regenerate.
481         * objdump.c (disassemble_data): Set skip_zeroes and
482         skip_zeroes_at_end in disasm_info to defaults.
483         (DEFAULT_SKIP_ZEROES): Rename from SKIP_ZEROES and always define.
484         (DEFAULT_SKIP_ZEROES_AT_END): Rename from SKIP_ZEROES_AT_END and
485         always define.
486         (disassemble_bytes): Use skip_zeroes and skip_zeroes_at_end from
487         objdump_disasm_info.
488
489 2005-01-05  H.J. Lu  <hongjiu.lu@intel.com>
490
491         * readelf.c (display_debug_loc): Display base address
492         specifiers.  Always output <End of list>.
493
494 2005-01-05  H.J. Lu  <hongjiu.lu@intel.com>
495
496         * readelf.c (have_frame_base): New.
497         (need_base_address): Likewise.
498         (saved_base_address): Likewise.
499         (decode_location_expression): Return 1 if DW_AT_frame_base is
500         needed.
501         (debug_info): Add base_address and a have_frame_base pointer.
502         (read_and_display_attr_value): Replace saved_DW_AT_low_pc with
503         saved_base_address. Record base address. Set have_frame_base.
504         Record if a location list has DW_AT_frame_base. Display if a
505         location expression has no DW_AT_frame_base but needs one. Set
506         saved_base_address only if needed.
507         (process_debug_info): Clear have_frame_base, saved_base_address
508         and set need_base_address.
509         (display_debug_loc): Display if a location expression has no
510         DW_AT_frame_base but needs one. Display if start >= end. Don't
511         adjust for section address. Properly handle base address.
512         (process_object): Free the have_frame_base pointer in
513         debug_info.
514
515 2005-01-04  H.J. Lu  <hongjiu.lu@intel.com>
516
517         * readelf.c (display_debug_loc): Display offsets for hole and
518         overlap.
519         (display_debug_str): Add a newline at the end.
520
521 2005-01-04  Armin Diehl  <diehl@nordrhein.de>
522
523         PR binutils/630
524         * nlmconv.c (main): Only store the basename of the output filename
525         in the module table.
526
527 2005-01-04  H.J. Lu  <hongjiu.lu@intel.com>
528
529         BZ 615
530         * readelf.c (process_debug_info): New.
531         (debug_info): Add num_loc_offsets, loc_offsets and
532         last_loc_offset_p.
533         (get_debug_info): Use process_debug_info.
534         (display_debug_loc): Properly handle location list. Warn if bad
535         location lists are encoutnered.
536         (read_and_process_attr_value): New.
537         (read_and_display_attr_value): Use "%lx" for DW_FORM_data4.
538         (display_debug_info): Use process_debug_info.
539         (process_object): Also free loc_offsets in debug_information.
540
541 2004-12-31  Alan Modra  <amodra@bigpond.net.au>
542
543         * objdump.c (remove_useless_symbols): Discard section symbols.
544
545 2004-12-27  H.J. Lu  <hongjiu.lu@intel.com>
546
547         * readelf.c (read_leb128): Support 64bit host.
548
549 2004-12-23  Nick Clifton  <nickc@redhat.com>
550
551         PR binutils/616
552         * readelf.c (debug_info): Add 'cu_offset' field.
553         (get+pointer_size_of_comp_unit): Rename to
554         'get_pointer_size_and_offset_of_comp_unit'.  Add code to return
555         the offset of the comp_unit if requested.
556         (get_debug_info): Record comp_unit offsets as well.
557         (display_debug_lines): Call get_pointer_size_of_comp_unit.
558         (decode_location_expression): Add an extra parameter - the offset
559         of the current comp-unit.  Use this when decoding the DW_OP_call2
560         and DW_OP_call4 operators.
561         (display_debug_loc): Call get_pointer_size_of_comp_unit, pass the
562         comp_unit offset on the decode_location_expression.
563         (read_and_display_attr_value): Pass the comp_unit offset on the
564         decode_location_expression.
565         (display_debug_frames): Pass 0 as the comp_unit offset to
566         decode_location_expression.
567
568 2004-12-22  Nick Clifton  <nickc@redhat.com>
569
570         * readelf.c (last_pointer_size, warned_about_missing_comp_units):
571         New variables associated with obtaining the pointer size for a
572         comp_unit.
573         (get_pointer_size_of_comp_unit): Add an extra parameter - the name
574         of the section requesting the pointer size.  Use this name in
575         error messages.  If there are not enough comp_units available
576         produce a warning message, but return the last known pointer size
577         so that section dumping can continue.
578         (get_debug_info): Reset the new variables.
579         (display_debug_lines): Add extra parameter to invocation of
580         get_pointer_size_of_comp_unit and remove error message when it
581         returns 0.
582         (display_debug_loc): Likewise.
583
584 2004-12-15 Jan Beulich  <jbeulich@novell.com>
585
586         * doc/binutils.texi: Document --strip-unneeded-symbol and
587         --strip-unneeded-symbols.
588         * objcopy.c (strip_unneeded_list): New.
589         (enum command_line_switch): Add OPTION_STRIP_UNNEEDED_SYMBOL
590         and OPTION_STRIP_UNNEEDED_SYMBOLS.
591         (copy_options): Add  --strip-unneeded-symbol and
592         --strip-unneeded-symbols.
593         (copy_usage): Likewise.
594         (filter_symbols): Suppress copying of symbol if in strip_unneeded_list
595         and the symbol is not needed.
596         (copy_main): Handle OPTION_STRIP_UNNEEDED_SYMBOL and
597         OPTION_STRIP_UNNEEDED_SYMBOLS.
598
599 2004-12-09  Ian Lance Taylor  <ian@wasabisystems.com>
600
601         * readelf.c (get_machine_flags): Handle E_MIPS_MACH_9000.
602
603 2004-12-08  Ben Elliston  <bje@au.ibm.com>
604
605         * arlex.l: Fix formatting.
606
607 2004-12-08  Ben Elliston  <bje@au.ibm.com>
608
609         * doc/Makefile.am (config.texi): Emit a @set UPDATED command to
610         config.texi whose value is the current month and year.
611         * doc/Makefile.in: Rebuild.
612         * doc/binutils.texi: Set the document subtitle to be the value of
613         the Texinfo UPDATED variable (obtained from config.texi).
614
615 2004-12-07  Ben Elliston  <bje@au.ibm.com>
616
617         PR binutils/249
618         * doc/binutils.texi (def file format): New node.
619         (dlltool): Use the tool name as the @chapter name, like all the
620         other binutils.  Use @file{.def} throughout for consistency.
621
622 2004-12-06  Ben Elliston  <bje@au.ibm.com>
623
624         * dlltool.c: Comment fix.
625
626 2004-12-06  Ben Elliston  <bje@au.ibm.com>
627
628         * doc/binutils.texi: Update copyright years.
629
630 2004-12-03  Richard Sandiford  <rsandifo@redhat.com>
631
632         * MAINTAINERS: Remove mention of config.if.
633
634 2004-11-30  Tero Niemela  <tero_niemela@yahoo.com>
635
636         * Makefile.am: Change LOCALEDIR to $(datadir)/share.
637         * Makefile.in: Regenerate.
638
639 2004-11-10  Ian Lance Taylor  <ian@wasabisystems.com>
640
641         PR binutils/536
642         * stabs.c (stab_demangle_template): Call stab_demangle_count
643         rather than stab_demangle_get_count to get the length of a pointer
644         target.
645
646 2004-11-10  Danny Smith  <dannysmith@users.sourceforge.net>
647
648         * defparse.y: Remove unnecessary commas from token list.
649
650 2004-11-08  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
651
652         * doc/binutils.texi (nm): Update description of weak symbols.
653
654 2004-11-03  Nick Clifton  <nickc@redhat.com>
655
656         * readelf.c (do_debug_ranges): New variable.
657         (usage): Document new switch: -wR or --debug-dump=Ranges.
658         (parse_args): Handle new switch.  Replace switch statement for the
659         long options with a more compact table structure.
660         (process_section_headers): Allow the dumping of .debug_ranges
661         sections if so requested.
662         (debug_displays): Likewise.
663         (load_debug_range): New function: Grabs the contents of a
664         .debug_ranges section.
665         (free_debug_range): New function: Releases the grabbed
666         .debug_ranges section.
667         (decode_64bit_range): New function: Displays a 64-bit range in a
668         .debug_ranges section.
669         (decode_range): New function: Displays a 32-bit range in a
670         .debug_ranges section.
671         (read_and_display_attr_value): Record the value of DW_AT_low_pc
672         attributes.  Use decode_ranges() to display a DW_AT_ranges
673         attribute.
674         (display_debug_info): Use load_debug_range() and
675         free_debug_range().
676         (display_64bit_debug_ranges): New function.  Displays the contents
677         of a 64-bit format .debug_ranges section.
678         (display_debug_ranges): New function: Displays the contents of a
679         32-bit .debug_ranges section.
680
681         (main): Move cmdline_dump_sects and num_cmdline_dump_sects into the
682         global scope.
683         (process_object): Initialise the dump_sects array from the
684         cmdline_dump_sects array before processing each object file.
685
686         (streq, strneq): New macros.  Use them to replace occurrences of
687         strcmp() and strncmp().
688
689         (debug_information): New structure array to replace
690         debug_line_pointer_sizes array.
691         (num_debug_info_entries): New variable to replace
692         num_debug_line_pointers.
693         (get_pointer_size_of_comp_unit): New function: Returns the pointer
694         size of a given compilation unit.
695         (get_debug_info): New function to replace
696         get_debug_line_pointer_sizes.
697         (display_debug_lines): Use the new functions.
698         (display_debug_loc): Likewise.
699
700         (disassemble_section): Change return type to int.
701         (display_debug_lines): Move local variables to their
702         innermost scope.
703         (display_debug_section): Likewise.  Also record the return value
704         of functions called and pass this back to the parent.  Also only
705         warn about undumped sections when the user explicitly requested
706         their dumping.
707
708         (debug_apply_rela_addends): Allow relocations against STT_OBJECT
709         types as well.
710
711         * NEWS: Mention the support for decoding .debug_ranges sections.
712         * doc/binutils.texi: Document the new command line switch to
713         readelf.
714
715 2004-11-03  Randolph Chung  <tausq@debian.org>
716
717         * readelf.c (ia64_unw_aux_info, ia64_unw_table_entry): Rename from
718         unw_aux_info and unw_table_entry.
719         (find_symbol_for_address): Pass symtab and strtab info explicitly.
720         (dump_ia64_unwind): Rename unw_{aux_info,table_entry} with ia64_
721         prefix.
722         (slurp_ia64_unwind_table): Likewise.
723         (ia64_process_unwind): Rename from old process_unwind.
724         (hppa_unw_aux_info): New.
725         (dump_hppa_unwind): New.
726         (slurp_hppa_unwind_table): New.
727         (hppa_process_unwind): New.
728         (process_unwind): Factor out common unwinding checks; dispatch to
729         unwind handler based on machine type.
730
731 2004-11-02  Nick Clifton  <nickc@redhat.com>
732
733         * readelf.c (display_debug_lines): Fix typo in error message.
734
735 2004-10-26  Mark Mitchell  <mark@codesourcery.com>
736
737         * readelf.c (get_note_type): Handle notes not in core files.
738         (process_note_sections): New function.
739         (process_corefile_contents): Rename to ...
740         (process_notes): ... this.
741         (process_object): Call process_notes, not
742         process_corefile_contents.
743         * doc/binutils.texi: Update readelf -n documentation.
744
745 2004-10-26  Jakub Jelinek  <jakub@redhat.com>
746
747         * ar.c (extract_file): Set atime to mtime for ar xo.
748
749 2004-10-25  Ian Lance Taylor  <ian@wasabisystems.com>
750
751         * stabs.c (stab_demangle_v3_arglist): New static function, broken
752         out of stab_demangle_v3_argtypes.
753         (stab_demangle_v3_argtypes): Call it.
754         (stab_demangle_v3_arg): Handle DEMANGLE_COMPONENT_FUNCTION_TYPE.
755         If we find an unrecognized component, print out its number.
756
757 2004-10-25  David Mosberger  <davidm@hpl.hp.com>
758
759         * readelf.c (slurp_ia64_unwind_table): Support relocations against
760         non-section symbols by adding in the symbol value.
761
762 2004-10-25  Nick Clifton  <nickc@redhat.com>
763
764         PR 465
765         * readelf.c (dynamic_strings_length): New global variable.
766         (VALID_DYNAMIC_NAME, GET_DYNAMIC_NAME): New macros for accessing
767         strings in the dynamic string table.
768         (process_section_headers): Initialise dynamic_strings_length.
769         (process_dynamic_section): Likewise.
770         (process_object): Reset dynamic_string_length when the buffer is freed.
771         (dynamic_sections_mips_val): Use the new macros.
772         (process_dynamic_section): Likewise.
773         (process_version_sections): Likewise.
774         (process_symbol_table): Likewise.
775         (process_syminfo): Likewise.
776         (process_mips_specific): Likewise.
777         (dump_relocations): Add a new parameter 'strtablen' and use this
778         to verify that string offset in a given reloc is valid.  Print a
779         suitable error message otherwise.
780         (process_relocs): Pass the new argument to dump_relocations.
781
782 2004-10-23  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
783
784         * dlltool.c: Include <assert.h>.
785         (PREFIX_ALIAS_BASE): Define.
786         (struct export): Add member import_name;
787         (def_exports): Set import_name.
788         (make_one_lib_file): Remove prefix alias code, use import_name
789         in .idata$6.
790         (gen_lib_file): Create and delete aliases.
791
792 2004-10-19  H.J. Lu  <hongjiu.lu@intel.com>
793
794         * readelf.c (process_section_groups): Free symtab after use.
795
796 2004-10-18  Tommy Pettersson <ptp@lysator.liu.se>
797             Nick Clifton  <nickc@redhat.com>
798
799         * strings.c (usage): Place radix values for -t option into the
800         correct order.
801
802         * objcopy.c (add_redefine_syms_file): Change error messages to use
803         <filename>:<linenumber>: format for easier parsing by automatic
804         tools.
805
806         * srconv.c (show_usage): Fix spelling typo.
807
808         * windres.c (format_from_filename): Suggest the use of -J instead
809         of -I if the file type cannot be determined.
810
811 2004-10-18  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
812
813         * strings.c: Include <sys/stat.h>.
814
815 2004-10-18  Alan Modra  <amodra@bigpond.net.au>
816
817         * budemang.c (demangle): Fix thinko.
818
819         * budemang.c (demangle): Handle "@plt" suffix.
820
821 2004-10-14  Nick Clifton  <nickc@redhat.com>
822
823         * nm.c (usage): Fix description of --special-syms switch.
824
825 2004-10-13  Jakub Jelinek  <jakub@redhat.com>
826
827         * strings.c (statbuf): New typedef.
828         (file_stat): Define.
829         (strings_object_file): Avoid using get_file_size, instead do the
830         checks here, using file_stat.
831         * configure.in (HAVE_STAT64): New test.
832         * configure: Rebuilt.
833         * config.in: Rebuilt.
834
835 2004-10-12  Paul Brook  <paul@codesourcery.com>
836
837         * readelf.c (decode_ARM_machine_flags): Support EABI version 4.
838
839 2004-10-11  Alan Modra  <amodra@bigpond.net.au>
840
841         * objdump.c (dump_symbols): Fix thinko last change.  Improve error
842         messages.
843
844 2004-10-08  Nick Clifton  <nickc@redhat.com>
845
846         * nm.c: Add a new switch --special-syms which, if enabled, will
847         include the ARM Mapping symbols in nm's output.
848         (usage): Mention the switch.
849         (filter_symbols): Handle the switch.
850         * objdump.c: Add a similar switch.
851         (usage): Mention the switch.
852         (dump_symbols): Handle the switch.
853         * doc/binutils.texi: Document the new switches.
854         * NEWS: Mention the new switches.
855
856 2004-10-08  Daniel Jacobowitz  <dan@debian.org>
857
858         * readelf.c (get_x86_64_section_type_name): New function.
859         (get_section_type_name): Use it.
860
861 2004-10-08  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
862
863         * dlltool.c (make_one_lib_file): Revert 2004-09-02 and 2004-09-04
864         patches.
865         * doc/binutils.texi (dlltool): Revert 2004-09-06 patch.
866
867 2004-10-07  Alexandre Oliva  <aoliva@redhat.com>
868
869         * readelf.c (get_machine_flags): Don't fall through into m68k cpu
870         types.
871
872 2004-10-01  Paul Brook  <paul@codesourcery.com>
873
874         * readelf.c (get_arm_section_type_name): New function.
875         (get_section_type_name): Use it.
876
877 2004-09-28  Nick Clifton  <nickc@redhat.com>
878
879         * nm.c: Reorder functions to eliminate most of the static function
880         prototypes.
881
882 2004-09-22  Alan Modra  <amodra@bigpond.net.au>
883
884         * readelf.c (process_program_headers): Don't include .tbss in non-TLS
885         segments.
886
887 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
888
889         * Makefile.am: Run "make dep-am".
890         * Makefile.in: Regenerate.
891         * config.in: Regenerate.
892         * configure: Regenerate.
893         * doc/Makefile.in: Regenerate.
894         * po/binutils.pot: Regenerate.
895
896 2004-09-12  Alan Modra  <amodra@bigpond.net.au>
897
898         * readelf.c (decode_location_expression): Sign extend value for
899         DW_OP_const1s, DW_OP_const2s, DW_OP_const4s, DW_OP_bra, DW_OP_skip.
900
901 2004-09-09  Nick Clifton  <nickc@redhat.com>
902
903         PR 363
904         * ar.c (replace_members): Do not use get_file_size as
905         ar_emul_append correctly handles missing files.
906
907 2004-09-07  H.J. Lu  <hongjiu.lu@intel.com>
908
909         * configure: Regenerated with autconfig 2.13.
910
911 2004-09-06  Danny Smith  <dannysmith@users.sourceforge.net>
912
913         * doc/binutils.texi (dlltool): Update --add-underscore, --kill-at
914         documentation.
915
916 2004-09-06  Michael Wardle  <mbw@endbracket.net>
917
918         * doc/binutils.texi (objdump): Document that the -x switch includes
919         the effect of the -p switch.
920
921 2004-09-04  Danny Smith  <dannysmith@users.sourceforge.net>
922
923         * dlltool.c (make_one_lib_file): Test if internal_name was
924         specified by user before using it.
925
926 2004-09-02  Carlo Wood  <carlo@alinoe.com>
927
928         PR binutils/351
929         * dlltool.c (make_one_lib_file): For IDATA6 take the name from
930         exp->internal_name if it is present.
931
932 2004-09-02  Alexandre Oliva  <aoliva@redhat.com>
933
934         * MAINTAINERS: Add self as co-maintainer of FR-V.
935         * readelf.c (get_machine_flags): Print FR-V cpu types.
936
937 2004-08-28  Alan Modra  <amodra@bigpond.net.au>
938
939         * nm.c (show_synthetic): New var.
940         (long_options): Add "synthetic".
941         (usage): Here too.
942         (display_rel_file): Handle show_synthetic.
943
944 2004-08-28  Alan Modra  <amodra@bigpond.net.au>
945
946         * objdump.c (dump_bfd): Pass both symbol tables to
947         bfd_get_synthetic_symtab.
948
949 2004-08-17  Jakub Jelinek  <jakub@redhat.com>
950
951         * objdump.c (dump_bfd): For relocatable objects, pass syms instead
952         of dynsyms to bfd_get_synthetic_symtab.
953
954 2004-08-16  Alan Modra  <amodra@bigpond.net.au>
955
956         * readelf.c (debug_apply_rela_addends): New function, extracted from..
957         (display_debug_info): ..here.
958         (display_debug_frames): Call debug_apply_rela_addends.  Don't do
959         DW_EH_PE_pcrel adjustment for ET_REL.
960
961 2004-08-06  Andreas Schwab  <schwab@suse.de>
962
963         * readelf.c (dump_relocations): Fix typo when calculating
964         sec_index.
965
966 2004-08-02  Jakub Bogusz  <qboosh@pld-linux.org>
967
968         * dllwrap.c (deduce_name): Fix typos introduced when program_name
969         was renamed to prog_name.
970
971 2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
972
973         * readelf.c (get_machine_flags <EM_SH>): Handle EF_SH2A and
974         EF_SH2A_NOFPU.
975
976 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
977
978         2003-07-08  Alexandre Oliva  <aoliva@redhat.com>
979         * readelf.c (get_machine_flags <EM_SH)): Handle EF_SH4_NOFPU and
980         EF_SH4A_NOFPU.
981         2003-06-12  Alexandre Oliva  <aoliva@redhat.com>
982         * readelf.c (get_machine_flags <EM_SH>): Print SH ISA name.
983
984 2004-07-21  H.J. Lu  <hongjiu.lu@intel.com>
985
986         * objcopy.c (filter_symbols): Use bfd_coff_get_comdat_section
987         to access comdat.
988         * objdump.c (dump_section_header): Likewise.
989
990 2004-07-15  Aravinda PR  <aravindapr@rediffmail.com>
991
992         * nlmconv.c (main): Pass map_file argument to link_inputs.
993         (link_inputs): Use map_file argument if it is defined.
994
995 2004-07-13  Nick Clifton  <nickc@redhat.com>
996
997         * dllwrap.c: Replace 'program_name' with 'prog_name' to avoid
998         conflicts with exported global defined in bucomm.h.
999         (deduce_name): Rename parameter 'program_name' to 'name' to avoid
1000         shadowing the global defined in bucomm.h.
1001
1002 2004-07-12  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
1003
1004         * dlltool.c (ext_prefix_alias): New global variable.
1005         (make_one_lib_file): Add aliases with prefixes for external
1006         and import definitions.
1007         (usage): Document -p option.
1008         (long_options): Add --ext-prefix-alias option.
1009         (main): Handle -p.
1010         * doc/binutils.texi: Document new switch.
1011         * NEWS: Mention new switch.
1012
1013 2004-07-09  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1014
1015         * binutils/dlltool.c (asm_prefix): Add parameter: name.
1016         No underscore for symbols beginning with ?.
1017         (ASM_PREFIX): Add parameter: NAME.
1018         (gen_exp_file): Use new parameter.
1019         (make_label): Likewise.
1020         (make_imp_label): Likewise.
1021         (make_one_lib_file): Likewise.
1022
1023 2004-07-07  Tomer Levi  <Tomer.Levi@nsc.com>
1024
1025         * MAINTAINERS: Added myself to the list.
1026         * readelf.c: Include "elf/crx.h".
1027         (guess_is_rela): Handle EM_CRX.
1028         (get_machine_name): Likewise.
1029         (dump_relocations): Likewise.
1030
1031 2004-07-03  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
1032
1033         * doc/binutils.texi (nm): Clarify weak symbol description.
1034
1035 2004-06-24  Ben Elliston  <bje@au.ibm.com>
1036
1037         * readelf.c (get_segment_type): Display "GNU_STACK", not just
1038         "STACK", when a PT_GNU_STACK segment is encountered.
1039
1040 2004-06-24  Alan Modra  <amodra@bigpond.net.au>
1041
1042         * objcopy.c (copy_section): Don't set _cooked_size.
1043
1044 2004-06-22  Alan Modra  <amodra@bigpond.net.au>
1045
1046         * readelf.c (Elf32_Word): Delete.
1047         (get_32bit_dynamic_section): Handle SGI ELF dynamic segment.
1048         (get_64bit_dynamic_section): Likewise.
1049
1050         * readelf.c (get_32bit_dynamic_section): Stop at first DT_NULL entry.
1051         (get_64bit_dynamic_section): Likewise.
1052
1053         * readelf.c (dynamic_nent): New variable.
1054         (get_32bit_dynamic_section): Set it.
1055         (get_64bit_dynamic_section): Here too.
1056         (process_dynamic_section): Use it instead of dynamic_size.
1057         (process_syminfo): Likewise.
1058
1059         * readelf.c (get_32bit_dynamic_section): Correct number of entries
1060         translated from external to internal form.
1061         (get_64bit_dynamic_section): Likewise.
1062
1063 2004-06-18  Jie Zhang  <zhangjie@magima.com.cn>
1064
1065         * readelf.c (process_program_headers): When locating the dynamic
1066         section use the section table if it is present.
1067         (dynamic_segment): Renamed to dynamic_section.
1068         Replace references to dynamic segment with references to dynamic
1069         section, except where appropriate.
1070         (dynamic_segment_mips_val): Rename to dynamic_section_mips_val.
1071         (dynamic_segment_parisc_val): Rename to dynamic_section_parisc_val.
1072         (dynamic_segment_ia64_val): Rename to dynamic_section_ia64_val.
1073         (get_32bit_dynamic_segment): Rename to get_32bit_dynamic_section.
1074         Remove tag counting code as it is no longer needed.
1075         (get_64bit_dynamic_segment): Rename to get_64bit_dynamic_section.
1076         Remove tag counting code as it is no longer needed.
1077         (process_dynamic_segment): Rename to process_dynamic_section.
1078
1079 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
1080
1081         * objcopy.c (copy_section): Use bfd_get_section_size instead of
1082         _raw_size or bfd_get_section_size_before_reloc.  Don't set reloc_done.
1083         (compare_section_lma): Likewise.
1084         * addr2line.c (find_address_in_section): Likewise.
1085         * coffgrok.c (do_sections_p1): Likewise.
1086         * dlltool.c (scan_drectve_symbols): Likewise.
1087         * nlmconv.c (main): Likewise.
1088         (copy_sections): Likewise.
1089         (powerpc_mangle_relocs): Likewise.
1090         * objdump.c (disassemble_section): Likewise.
1091         * prdbg.c (find_address_in_section): Likewise.
1092         * size.c (berkeley_sum): Likewise.
1093         * srconv.c (wr_ob): Likewise.
1094         * strings.c (strings_a_section): Likewise.
1095
1096 2004-05-28  Ian Lance Taylor  <ian@wasabisystems.com>
1097
1098         * readelf.c (decode_ARM_machine_flags): Add EF_ARM_VFP_FLOAT.
1099
1100 2004-05-17  David Heine  <dlheine@tensilica.com>
1101
1102         * objcopy.c (setup_bfd_headers): New function.
1103         (copy_object): Call setup_bfd_headers.
1104
1105 2004-05-13  Paul Brook  <paul@codesourcery.com>
1106
1107         * readelf.c (display_debug_frames): Handle dwarf3 format CIE
1108         entries.
1109
1110 2004-05-13  Nick Clifton  <nickc@redhat.com>
1111
1112         * po/fr.po: Updated French translation.
1113
1114 2004-05-11  Jakub Jelinek  <jakub@redhat.com>
1115
1116         * readelf.c (get_segment_type): Handle PT_GNU_RELRO.
1117
1118 2004-05-07  H.J. Lu  <hongjiu.lu@intel.com>
1119
1120         * readelf.c (section_groups): New.
1121         (group_count): New.
1122         (section_headers_groups): New.
1123         (process_section_groups): Populate group_count, section_groups
1124         and section_headers_groups.
1125         (process_unwind): Support section group.
1126         (process_object): Always call process_section_groups. Free
1127         section_groups and section_headers_groups.
1128
1129 2004-04-30  H.J. Lu  <hongjiu.lu@intel.com>
1130
1131         * readelf.c (process_section_headers): Use %3lu on sh_info.
1132
1133 2004-04-30  Michael Deutschmann  <michael@talamasca.ocis.net>
1134
1135         * ranlib.sh: Quote $1 argument in case it contains spaces.
1136
1137 2004-04-27  John Paul Wallington  <jpw@gnu.org>
1138
1139         * objcopy.c (copy_usage, strip_usage): Fix spelling.
1140
1141 2004-04-26  H.J. Lu  <hongjiu.lu@intel.com>
1142
1143         * readelf.c (do_section_groups): New.
1144         (options): Add --section-groups/-g.
1145         (usage): Mention --section-groups/-g.
1146         (parse_args): Support --section-groups/-g.
1147         (get_group_flags): New.
1148         (process_section_groups): New.
1149         (process_object): Call process_section_groups.
1150
1151 2004-04-24  Alan Modra  <amodra@bigpond.net.au>
1152
1153         * objdump.c (disassemble_section): Don't disassemble sections
1154         without SEC_HAS_CONTENTS.
1155
1156 2004-04-22  Jakub Jelinek  <jakub@redhat.com>
1157
1158         * objdump.c (synthsyms, synthcount): New variables.
1159         (disassemble_data): Use dynsyms for stripped binaries or libraries.
1160         Add synthetized symbols.
1161         (dump_bfd): For disassemble, initialize dynsyms always and
1162         also synthsyms.  Free synthsyms and clear {sym,dynsym,synth}count
1163         before returning.
1164
1165 2004-04-14  Alan Modra  <amodra@bigpond.net.au>
1166
1167         * strings.c (print_strings): Cast file_off to unsigned long in
1168         printf arg list.
1169
1170 2004-04-07  Benjamin Monate  <benjamin.monate@cea.fr>
1171
1172         PR 86
1173         * arsup.c (ar_save): Use smart_rename.
1174
1175 2004-04-01  Dean Luick <luick@cray.com>
1176
1177         * readelf.c (display_debug_pubnames): Align offset and data
1178         columns.
1179         (read_and_display_attr_value): Add missing break;
1180         (debug_displays): Enable the display of the .debug_pubtypes
1181         section.
1182
1183 2004-03-30  Stan Shebs  <shebs@apple.com>
1184
1185         * mpw-config.in, mpw-make.sed, mac-binutils.r: Remove MPW
1186         support files, no longer used.
1187
1188 2004-03-23  Paul Brook  <paul@codesourcery.com>
1189
1190         * readelf.c (decode_ARM_machine_flags): Add EABI v3.
1191
1192 2004-03-21  Richard Henderson  <rth@redhat.com>
1193
1194         * readelf.c (display_debug_frames): Don't crash for mismatched
1195         DW_CFA_restore_state.
1196
1197 2004-03-19  Alan Modra  <amodra@bigpond.net.au>
1198
1199         * Makefile.am: Run "make dep-am".
1200         * Makefile.in: Regenerate.
1201         * aclocal.m4: Regenerate.
1202         * config.in: Regenerate.
1203         * configure: Regenerate.
1204         * po/binutils.pot: Regenerate.
1205
1206 2004-03-15  Nathan Sidwell  <nathan@codesourcery.com>
1207
1208         * objdump.c (struct SFILE): Replace current pointer with pos
1209         offset, rename size to alloc.
1210         (objdump_sprintf): Avoid unnecessary copies in the common case
1211         (disassemble_bytes): Keep sfile live throughout the
1212         function. Adjust usage appropriately.
1213
1214 2004-03-10  Ben Elliston  <bje@gnu.org>
1215
1216         * MAINTAINERS: Update my mail address.
1217
1218 2004-03-08  Danny Smith  <dannysmith@users.sourceforge.net>
1219
1220         * deflex.l: Handle "PRIVATE" string.
1221         * defparse.y (%token): Add PRIVATE.
1222         (%type): Add opt_PRIVATE.
1223         (expline): Pass opt_PRIVATE to def_exports.
1224         (opt_PRIVATE): Handle PRIVATE token.
1225         * dlltool.h (def_exports): Add 7th param for private flag to
1226         declaration.
1227         * dlltool.c: Add PRIVATE to comment on EXPORTS syntax.
1228         (struct export): Add 'private' field.
1229         (def_exports): Set 'private' field of struct exports.
1230         (scan_drectve_symbols): Adjust calls to def_exports.
1231         (scan_filtered_symbols): Likewise.
1232         (dump_def_info): Print 'private' field.
1233         (gen_def_file): Likewise.
1234         (gen_lib_file): Skip generation of lib object if private.
1235         Delete tmp object files in same order as they were generated.
1236         Don't delete non-existent private object files.
1237
1238 2004-02-27  Andreas Schwab  <schwab@suse.de>
1239
1240         * ar.c (main): Support POSIX-compatible argument parsing.
1241
1242 2004-02-23  Daniel Lucq  <daniel@lucq.org>
1243
1244         * readelf.c (process_mips_specific): Print conflictsno as an
1245         unsigned long.
1246
1247 2004-02-21  Dmitry Timoshkov  <dmitry@baikal.ru>
1248
1249         * dlltool.c (gen_exp_file): Always output names for forwarded symbols.
1250
1251 2004-02-19  Jakub Jelinek  <jakub@redhat.com>
1252
1253         * objcopy.c (copy_section): Avoid warnings.
1254
1255 2004-02-14  Andrew Cagney  <cagney@redhat.com>
1256
1257         * ar.c (remove_output): Use bfd_cache_close.
1258         * arsup.c (ar_end): Ditto.
1259
1260 2004-01-21  Roland McGrath  <roland@redhat.com>
1261
1262         * readelf.c (get_note_type): Match NT_AUXV.
1263
1264 2004-01-20  Nick Clifton  <nickc@redhat.com>
1265
1266         * version.c (print_version): Update copyright year to 2004.
1267
1268 2004-01-14  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1269
1270         * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
1271         throughout.
1272         * aclocal.m4: Regenerate.
1273         * configure: Regenerate.
1274
1275 2004-01-12  Jakub Jelinek  <jakub@redhat.com>
1276
1277         * objcopy.c: Include elf-bfd.h.
1278         (is_strip_section): Don't strip debugging sections if
1279         STRIP_NONDEBUG.
1280         (setup_section): If STRIP_NONDEBUG make SEC_ALLOC sections
1281         ~(SEC_LOAD | SEC_HAS_CONTENTS) and on ELF targets also SHT_NOBITS.
1282
1283         * objcopy.c (copy_section): Free relpp if relcount == 0.
1284
1285 2004-01-12  Ian Lance Taylor  <ian@wasabisystems.com>
1286
1287         * stabs.c (parse_stab_argtypes): Handle g++ ABI version 3 names.
1288         (stab_demangle_argtypes): Likewise.
1289         (stab_demangle_v3_argtypes): New static function.
1290         (stab_demangle_v3_arg): New static function.
1291
1292 2004-01-12  Nick Clifton  <nickc@redhat.com>
1293
1294         * objcopy.c (copy_object): Make the function boolean, returning
1295         FALSE upon failure.
1296         (copy_archive): Handle the return value from copy_object.
1297         (copy_file): Likewise.
1298
1299 2004-01-07  Nick Clifton  <nickc@redhat.com>
1300
1301         * readelf.c (find_section): New function.  Locates a named
1302         section.
1303         (get_debug_line_pointer_sizes): New function:  Initialises the
1304         debug_line_pointer_sizes array.
1305         (display_debug_lines): Call get_debug_line_pointer_sizes.
1306         (display_debug_loc): Likewise.
1307         (load_debug_loc): Use find_section.
1308         (load_debug_str): Likewise.
1309         (display_debug_info): Likewise.
1310         (prescan_debug_info): Delete.
1311         (debug_displays): Remove prescan field.
1312         (process_section_contents): Do not perform prescans.
1313
1314 2004-01-03  Alan Modra  <amodra@bigpond.net.au>
1315
1316         * objcopy.c (filter_bytes): Delete.  Move code to..
1317         (copy_section): ..here.  Simplify size adjustment.  Divide
1318         section lma by interleave.
1319
1320 2004-01-02  Nick Clifton  <nickc@redhat.com>
1321
1322         * po/ru.po: New file: Russian translation.
1323         * configure.in (ALL_LINGUAS): Add ru
1324         * configure: Regenerate.
1325
1326 For older changes see ChangeLog-0203
1327 \f
1328 Local Variables:
1329 mode: change-log
1330 left-margin: 8
1331 fill-column: 74
1332 version-control: never
1333 End: