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