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