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