strings.c (usage): Place radix values for -t option into the correct order.
[platform/upstream/binutils.git] / binutils / ChangeLog
1 2004-10-18  Tommy Pettersson <ptp@lysator.liu.se>
2             Nick Clifton  <nickc@redhat.com>
3
4         * strings.c (usage): Place radix values for -t option into the
5         correct order.
6
7         * objcopy.c (add_redefine_syms_file): Change error messages to use
8         <filename>:<linenumber>: format for easier parsing by automatic
9         tools.
10
11         * srconv.c (show_usage): Fix spelling typo.
12
13         * windres.c (format_from_filename): Suggest the use of -J instead
14         of -I if the file type cannot be determined.
15
16 2004-10-18  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
17
18         * strings.c: Include <sys/stat.h>.
19
20 2004-10-18  Alan Modra  <amodra@bigpond.net.au>
21
22         * budemang.c (demangle): Fix thinko.
23
24         * budemang.c (demangle): Handle "@plt" suffix.
25
26 2004-10-14  Nick Clifton  <nickc@redhat.com>
27
28         * nm.c (usage): Fix description of --special-syms switch.
29
30 2004-10-13  Jakub Jelinek  <jakub@redhat.com>
31
32         * strings.c (statbuf): New typedef.
33         (file_stat): Define.
34         (strings_object_file): Avoid using get_file_size, instead do the
35         checks here, using file_stat.
36         * configure.in (HAVE_STAT64): New test.
37         * configure: Rebuilt.
38         * config.in: Rebuilt.
39
40 2004-10-12  Paul Brook  <paul@codesourcery.com>
41
42         * readelf.c (decode_ARM_machine_flags): Support EABI version 4.
43
44 2004-10-11  Alan Modra  <amodra@bigpond.net.au>
45
46         * objdump.c (dump_symbols): Fix thinko last change.  Improve error
47         messages.
48
49 2004-10-08  Nick Clifton  <nickc@redhat.com>
50
51         * nm.c: Add a new switch --special-syms which, if enabled, will
52         include the ARM Mapping symbols in nm's output.
53         (usage): Mention the switch.
54         (filter_symbols): Handle the switch.
55         * objdump.c: Add a similar switch.
56         (usage): Mention the switch.
57         (dump_symbols): Handle the switch.
58         * doc/binutils.texi: Document the new switches.
59         * NEWS: Mention the new switches.
60
61 2004-10-08  Daniel Jacobowitz  <dan@debian.org>
62
63         * readelf.c (get_x86_64_section_type_name): New function.
64         (get_section_type_name): Use it.
65
66 2004-10-08  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
67
68         * dlltool.c (make_one_lib_file): Revert 2004-09-02 and 2004-09-04
69         patches.
70         * doc/binutils.texi (dlltool): Revert 2004-09-06 patch.
71
72 2004-10-07  Alexandre Oliva  <aoliva@redhat.com>
73
74         * readelf.c (get_machine_flags): Don't fall through into m68k cpu
75         types.
76
77 2004-10-01  Paul Brook  <paul@codesourcery.com>
78
79         * readelf.c (get_arm_section_type_name): New function.
80         (get_section_type_name): Use it.
81
82 2004-09-28  Nick Clifton  <nickc@redhat.com>
83
84         * nm.c: Reorder functions to eliminate most of the static function
85         prototypes.
86
87 2004-09-22  Alan Modra  <amodra@bigpond.net.au>
88
89         * readelf.c (process_program_headers): Don't include .tbss in non-TLS
90         segments.
91
92 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
93
94         * Makefile.am: Run "make dep-am".
95         * Makefile.in: Regenerate.
96         * config.in: Regenerate.
97         * configure: Regenerate.
98         * doc/Makefile.in: Regenerate.
99         * po/binutils.pot: Regenerate.
100
101 2004-09-12  Alan Modra  <amodra@bigpond.net.au>
102
103         * readelf.c (decode_location_expression): Sign extend value for
104         DW_OP_const1s, DW_OP_const2s, DW_OP_const4s, DW_OP_bra, DW_OP_skip.
105
106 2004-09-09  Nick Clifton  <nickc@redhat.com>
107
108         PR 363
109         * ar.c (replace_members): Do not use get_file_size as
110         ar_emul_append correctly handles missing files.
111
112 2004-09-07  H.J. Lu  <hongjiu.lu@intel.com>
113
114         * configure: Regenerated with autconfig 2.13.
115
116 2004-09-06  Danny Smith  <dannysmith@users.sourceforge.net>
117
118         * doc/binutils.texi (dlltool): Update --add-underscore, --kill-at
119         documentation.
120
121 2004-09-06  Michael Wardle  <mbw@endbracket.net>
122
123         * doc/binutils.texi (objdump): Document that the -x switch includes
124         the effect of the -p switch.
125
126 2004-09-04  Danny Smith  <dannysmith@users.sourceforge.net>
127
128         * dlltool.c (make_one_lib_file): Test if internal_name was
129         specified by user before using it.
130
131 2004-09-02  Carlo Wood  <carlo@alinoe.com>
132
133         PR binutils/351
134         * dlltool.c (make_one_lib_file): For IDATA6 take the name from
135         exp->internal_name if it is present.
136
137 2004-09-02  Alexandre Oliva  <aoliva@redhat.com>
138
139         * MAINTAINERS: Add self as co-maintainer of FR-V.
140         * readelf.c (get_machine_flags): Print FR-V cpu types.
141
142 2004-08-28  Alan Modra  <amodra@bigpond.net.au>
143
144         * nm.c (show_synthetic): New var.
145         (long_options): Add "synthetic".
146         (usage): Here too.
147         (display_rel_file): Handle show_synthetic.
148
149 2004-08-28  Alan Modra  <amodra@bigpond.net.au>
150
151         * objdump.c (dump_bfd): Pass both symbol tables to
152         bfd_get_synthetic_symtab.
153
154 2004-08-17  Jakub Jelinek  <jakub@redhat.com>
155
156         * objdump.c (dump_bfd): For relocatable objects, pass syms instead
157         of dynsyms to bfd_get_synthetic_symtab.
158
159 2004-08-16  Alan Modra  <amodra@bigpond.net.au>
160
161         * readelf.c (debug_apply_rela_addends): New function, extracted from..
162         (display_debug_info): ..here.
163         (display_debug_frames): Call debug_apply_rela_addends.  Don't do
164         DW_EH_PE_pcrel adjustment for ET_REL.
165
166 2004-08-06  Andreas Schwab  <schwab@suse.de>
167
168         * readelf.c (dump_relocations): Fix typo when calculating
169         sec_index.
170
171 2004-08-02  Jakub Bogusz  <qboosh@pld-linux.org>
172
173         * dllwrap.c (deduce_name): Fix typos introduced when program_name
174         was renamed to prog_name.
175
176 2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
177
178         * readelf.c (get_machine_flags <EM_SH>): Handle EF_SH2A and
179         EF_SH2A_NOFPU.
180
181 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
182
183         2003-07-08  Alexandre Oliva  <aoliva@redhat.com>
184         * readelf.c (get_machine_flags <EM_SH)): Handle EF_SH4_NOFPU and
185         EF_SH4A_NOFPU.
186         2003-06-12  Alexandre Oliva  <aoliva@redhat.com>
187         * readelf.c (get_machine_flags <EM_SH>): Print SH ISA name.
188
189 2004-07-21  H.J. Lu  <hongjiu.lu@intel.com>
190
191         * objcopy.c (filter_symbols): Use bfd_coff_get_comdat_section
192         to access comdat.
193         * objdump.c (dump_section_header): Likewise.
194
195 2004-07-15  Aravinda PR  <aravindapr@rediffmail.com>
196
197         * nlmconv.c (main): Pass map_file argument to link_inputs.
198         (link_inputs): Use map_file argument if it is defined.
199
200 2004-07-13  Nick Clifton  <nickc@redhat.com>
201
202         * dllwrap.c: Replace 'program_name' with 'prog_name' to avoid
203         conflicts with exported global defined in bucomm.h.
204         (deduce_name): Rename parameter 'program_name' to 'name' to avoid
205         shadowing the global defined in bucomm.h.
206
207 2004-07-12  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
208
209         * dlltool.c (ext_prefix_alias): New global variable.
210         (make_one_lib_file): Add aliases with prefixes for external
211         and import definitions.
212         (usage): Document -p option.
213         (long_options): Add --ext-prefix-alias option.
214         (main): Handle -p.
215         * doc/binutils.texi: Document new switch.
216         * NEWS: Mention new switch.
217
218 2004-07-09  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
219
220         * binutils/dlltool.c (asm_prefix): Add parameter: name.
221         No underscore for symbols beginning with ?.
222         (ASM_PREFIX): Add parameter: NAME.
223         (gen_exp_file): Use new parameter.
224         (make_label): Likewise.
225         (make_imp_label): Likewise.
226         (make_one_lib_file): Likewise.
227
228 2004-07-07  Tomer Levi  <Tomer.Levi@nsc.com>
229
230         * MAINTAINERS: Added myself to the list.
231         * readelf.c: Include "elf/crx.h".
232         (guess_is_rela): Handle EM_CRX.
233         (get_machine_name): Likewise.
234         (dump_relocations): Likewise.
235
236 2004-07-03  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
237
238         * doc/binutils.texi (nm): Clarify weak symbol description.
239
240 2004-06-24  Ben Elliston  <bje@au.ibm.com>
241
242         * readelf.c (get_segment_type): Display "GNU_STACK", not just
243         "STACK", when a PT_GNU_STACK segment is encountered.
244
245 2004-06-24  Alan Modra  <amodra@bigpond.net.au>
246
247         * objcopy.c (copy_section): Don't set _cooked_size.
248
249 2004-06-22  Alan Modra  <amodra@bigpond.net.au>
250
251         * readelf.c (Elf32_Word): Delete.
252         (get_32bit_dynamic_section): Handle SGI ELF dynamic segment.
253         (get_64bit_dynamic_section): Likewise.
254
255         * readelf.c (get_32bit_dynamic_section): Stop at first DT_NULL entry.
256         (get_64bit_dynamic_section): Likewise.
257
258         * readelf.c (dynamic_nent): New variable.
259         (get_32bit_dynamic_section): Set it.
260         (get_64bit_dynamic_section): Here too.
261         (process_dynamic_section): Use it instead of dynamic_size.
262         (process_syminfo): Likewise.
263
264         * readelf.c (get_32bit_dynamic_section): Correct number of entries
265         translated from external to internal form.
266         (get_64bit_dynamic_section): Likewise.
267
268 2004-06-18  Jie Zhang  <zhangjie@magima.com.cn>
269
270         * readelf.c (process_program_headers): When locating the dynamic
271         section use the section table if it is present.
272         (dynamic_segment): Renamed to dynamic_section.
273         Replace references to dynamic segment with references to dynamic
274         section, except where appropriate.
275         (dynamic_segment_mips_val): Rename to dynamic_section_mips_val.
276         (dynamic_segment_parisc_val): Rename to dynamic_section_parisc_val.
277         (dynamic_segment_ia64_val): Rename to dynamic_section_ia64_val.
278         (get_32bit_dynamic_segment): Rename to get_32bit_dynamic_section.
279         Remove tag counting code as it is no longer needed.
280         (get_64bit_dynamic_segment): Rename to get_64bit_dynamic_section.
281         Remove tag counting code as it is no longer needed.
282         (process_dynamic_segment): Rename to process_dynamic_section.
283
284 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
285
286         * objcopy.c (copy_section): Use bfd_get_section_size instead of
287         _raw_size or bfd_get_section_size_before_reloc.  Don't set reloc_done.
288         (compare_section_lma): Likewise.
289         * addr2line.c (find_address_in_section): Likewise.
290         * coffgrok.c (do_sections_p1): Likewise.
291         * dlltool.c (scan_drectve_symbols): Likewise.
292         * nlmconv.c (main): Likewise.
293         (copy_sections): Likewise.
294         (powerpc_mangle_relocs): Likewise.
295         * objdump.c (disassemble_section): Likewise.
296         * prdbg.c (find_address_in_section): Likewise.
297         * size.c (berkeley_sum): Likewise.
298         * srconv.c (wr_ob): Likewise.
299         * strings.c (strings_a_section): Likewise.
300
301 2004-05-28  Ian Lance Taylor  <ian@wasabisystems.com>
302
303         * readelf.c (decode_ARM_machine_flags): Add EF_ARM_VFP_FLOAT.
304
305 2004-05-17  David Heine  <dlheine@tensilica.com>
306
307         * objcopy.c (setup_bfd_headers): New function.
308         (copy_object): Call setup_bfd_headers.
309
310 2004-05-13  Paul Brook  <paul@codesourcery.com>
311
312         * readelf.c (display_debug_frames): Handle dwarf3 format CIE
313         entries.
314
315 2004-05-13  Nick Clifton  <nickc@redhat.com>
316
317         * po/fr.po: Updated French translation.
318
319 2004-05-11  Jakub Jelinek  <jakub@redhat.com>
320
321         * readelf.c (get_segment_type): Handle PT_GNU_RELRO.
322
323 2004-05-07  H.J. Lu  <hongjiu.lu@intel.com>
324
325         * readelf.c (section_groups): New.
326         (group_count): New.
327         (section_headers_groups): New.
328         (process_section_groups): Populate group_count, section_groups
329         and section_headers_groups.
330         (process_unwind): Support section group.
331         (process_object): Always call process_section_groups. Free
332         section_groups and section_headers_groups.
333
334 2004-04-30  H.J. Lu  <hongjiu.lu@intel.com>
335
336         * readelf.c (process_section_headers): Use %3lu on sh_info.
337
338 2004-04-30  Michael Deutschmann  <michael@talamasca.ocis.net>
339
340         * ranlib.sh: Quote $1 argument in case it contains spaces.
341
342 2004-04-27  John Paul Wallington  <jpw@gnu.org>
343
344         * objcopy.c (copy_usage, strip_usage): Fix spelling.
345
346 2004-04-26  H.J. Lu  <hongjiu.lu@intel.com>
347
348         * readelf.c (do_section_groups): New.
349         (options): Add --section-groups/-g.
350         (usage): Mention --section-groups/-g.
351         (parse_args): Support --section-groups/-g.
352         (get_group_flags): New.
353         (process_section_groups): New.
354         (process_object): Call process_section_groups.
355
356 2004-04-24  Alan Modra  <amodra@bigpond.net.au>
357
358         * objdump.c (disassemble_section): Don't disassemble sections
359         without SEC_HAS_CONTENTS.
360
361 2004-04-22  Jakub Jelinek  <jakub@redhat.com>
362
363         * objdump.c (synthsyms, synthcount): New variables.
364         (disassemble_data): Use dynsyms for stripped binaries or libraries.
365         Add synthetized symbols.
366         (dump_bfd): For disassemble, initialize dynsyms always and
367         also synthsyms.  Free synthsyms and clear {sym,dynsym,synth}count
368         before returning.
369
370 2004-04-14  Alan Modra  <amodra@bigpond.net.au>
371
372         * strings.c (print_strings): Cast file_off to unsigned long in
373         printf arg list.
374
375 2004-04-07  Benjamin Monate  <benjamin.monate@cea.fr>
376
377         PR 86
378         * arsup.c (ar_save): Use smart_rename.
379
380 2004-04-01  Dean Luick <luick@cray.com>
381
382         * readelf.c (display_debug_pubnames): Align offset and data
383         columns.
384         (read_and_display_attr_value): Add missing break;
385         (debug_displays): Enable the display of the .debug_pubtypes
386         section.
387
388 2004-03-30  Stan Shebs  <shebs@apple.com>
389
390         * mpw-config.in, mpw-make.sed, mac-binutils.r: Remove MPW
391         support files, no longer used.
392
393 2004-03-23  Paul Brook  <paul@codesourcery.com>
394
395         * readelf.c (decode_ARM_machine_flags): Add EABI v3.
396
397 2004-03-21  Richard Henderson  <rth@redhat.com>
398
399         * readelf.c (display_debug_frames): Don't crash for mismatched
400         DW_CFA_restore_state.
401
402 2004-03-19  Alan Modra  <amodra@bigpond.net.au>
403
404         * Makefile.am: Run "make dep-am".
405         * Makefile.in: Regenerate.
406         * aclocal.m4: Regenerate.
407         * config.in: Regenerate.
408         * configure: Regenerate.
409         * po/binutils.pot: Regenerate.
410
411 2004-03-15  Nathan Sidwell  <nathan@codesourcery.com>
412
413         * objdump.c (struct SFILE): Replace current pointer with pos
414         offset, rename size to alloc.
415         (objdump_sprintf): Avoid unnecessary copies in the common case
416         (disassemble_bytes): Keep sfile live throughout the
417         function. Adjust usage appropriately.
418
419 2004-03-10  Ben Elliston  <bje@gnu.org>
420
421         * MAINTAINERS: Update my mail address.
422
423 2004-03-08  Danny Smith  <dannysmith@users.sourceforge.net>
424
425         * deflex.l: Handle "PRIVATE" string.
426         * defparse.y (%token): Add PRIVATE.
427         (%type): Add opt_PRIVATE.
428         (expline): Pass opt_PRIVATE to def_exports.
429         (opt_PRIVATE): Handle PRIVATE token.
430         * dlltool.h (def_exports): Add 7th param for private flag to
431         declaration.
432         * dlltool.c: Add PRIVATE to comment on EXPORTS syntax.
433         (struct export): Add 'private' field.
434         (def_exports): Set 'private' field of struct exports.
435         (scan_drectve_symbols): Adjust calls to def_exports.
436         (scan_filtered_symbols): Likewise.
437         (dump_def_info): Print 'private' field.
438         (gen_def_file): Likewise.
439         (gen_lib_file): Skip generation of lib object if private.
440         Delete tmp object files in same order as they were generated.
441         Don't delete non-existent private object files.
442
443 2004-02-27  Andreas Schwab  <schwab@suse.de>
444
445         * ar.c (main): Support POSIX-compatible argument parsing.
446
447 2004-02-23  Daniel Lucq  <daniel@lucq.org>
448
449         * readelf.c (process_mips_specific): Print conflictsno as an
450         unsigned long.
451
452 2004-02-21  Dmitry Timoshkov  <dmitry@baikal.ru>
453
454         * dlltool.c (gen_exp_file): Always output names for forwarded symbols.
455
456 2004-02-19  Jakub Jelinek  <jakub@redhat.com>
457
458         * objcopy.c (copy_section): Avoid warnings.
459
460 2004-02-14  Andrew Cagney  <cagney@redhat.com>
461
462         * ar.c (remove_output): Use bfd_cache_close.
463         * arsup.c (ar_end): Ditto.
464
465 2004-01-21  Roland McGrath  <roland@redhat.com>
466
467         * readelf.c (get_note_type): Match NT_AUXV.
468
469 2004-01-20  Nick Clifton  <nickc@redhat.com>
470
471         * version.c (print_version): Update copyright year to 2004.
472
473 2004-01-14  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
474
475         * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
476         throughout.
477         * aclocal.m4: Regenerate.
478         * configure: Regenerate.
479
480 2004-01-12  Jakub Jelinek  <jakub@redhat.com>
481
482         * objcopy.c: Include elf-bfd.h.
483         (is_strip_section): Don't strip debugging sections if
484         STRIP_NONDEBUG.
485         (setup_section): If STRIP_NONDEBUG make SEC_ALLOC sections
486         ~(SEC_LOAD | SEC_HAS_CONTENTS) and on ELF targets also SHT_NOBITS.
487
488         * objcopy.c (copy_section): Free relpp if relcount == 0.
489
490 2004-01-12  Ian Lance Taylor  <ian@wasabisystems.com>
491
492         * stabs.c (parse_stab_argtypes): Handle g++ ABI version 3 names.
493         (stab_demangle_argtypes): Likewise.
494         (stab_demangle_v3_argtypes): New static function.
495         (stab_demangle_v3_arg): New static function.
496
497 2004-01-12  Nick Clifton  <nickc@redhat.com>
498
499         * objcopy.c (copy_object): Make the function boolean, returning
500         FALSE upon failure.
501         (copy_archive): Handle the return value from copy_object.
502         (copy_file): Likewise.
503
504 2004-01-07  Nick Clifton  <nickc@redhat.com>
505
506         * readelf.c (find_section): New function.  Locates a named
507         section.
508         (get_debug_line_pointer_sizes): New function:  Initialises the
509         debug_line_pointer_sizes array.
510         (display_debug_lines): Call get_debug_line_pointer_sizes.
511         (display_debug_loc): Likewise.
512         (load_debug_loc): Use find_section.
513         (load_debug_str): Likewise.
514         (display_debug_info): Likewise.
515         (prescan_debug_info): Delete.
516         (debug_displays): Remove prescan field.
517         (process_section_contents): Do not perform prescans.
518
519 2004-01-03  Alan Modra  <amodra@bigpond.net.au>
520
521         * objcopy.c (filter_bytes): Delete.  Move code to..
522         (copy_section): ..here.  Simplify size adjustment.  Divide
523         section lma by interleave.
524
525 2004-01-02  Nick Clifton  <nickc@redhat.com>
526
527         * po/ru.po: New file: Russian translation.
528         * configure.in (ALL_LINGUAS): Add ru
529         * configure: Regenerate.
530
531 For older changes see ChangeLog-0203
532 \f
533 Local Variables:
534 mode: change-log
535 left-margin: 8
536 fill-column: 74
537 version-control: never
538 End: