1 2004-11-03 Randolph Chung <tausq@debian.org>
3 * readelf.c (ia64_unw_aux_info, ia64_unw_table_entry): Rename from
4 unw_aux_info and unw_table_entry.
5 (find_symbol_for_address): Pass symtab and strtab info explicitly.
6 (dump_ia64_unwind): Rename unw_{aux_info,table_entry} with ia64_
8 (slurp_ia64_unwind_table): Likewise.
9 (ia64_process_unwind): Rename from old process_unwind.
10 (hppa_unw_aux_info): New.
11 (dump_hppa_unwind): New.
12 (slurp_hppa_unwind_table): New.
13 (hppa_process_unwind): New.
14 (process_unwind): Factor out common unwinding checks; dispatch to
15 unwind handler based on machine type.
17 2004-11-02 Nick Clifton <nickc@redhat.com>
19 * readelf.c (display_debug_lines): Fix typo in error message.
21 2004-10-26 Mark Mitchell <mark@codesourcery.com>
23 * readelf.c (get_note_type): Handle notes not in core files.
24 (process_note_sections): New function.
25 (process_corefile_contents): Rename to ...
26 (process_notes): ... this.
27 (process_object): Call process_notes, not
28 process_corefile_contents.
29 * doc/binutils.texi: Update readelf -n documentation.
31 2004-10-26 Jakub Jelinek <jakub@redhat.com>
33 * ar.c (extract_file): Set atime to mtime for ar xo.
35 2004-10-25 Ian Lance Taylor <ian@wasabisystems.com>
37 * stabs.c (stab_demangle_v3_arglist): New static function, broken
38 out of stab_demangle_v3_argtypes.
39 (stab_demangle_v3_argtypes): Call it.
40 (stab_demangle_v3_arg): Handle DEMANGLE_COMPONENT_FUNCTION_TYPE.
41 If we find an unrecognized component, print out its number.
43 2004-10-25 David Mosberger <davidm@hpl.hp.com>
45 * readelf.c (slurp_ia64_unwind_table): Support relocations against
46 non-section symbols by adding in the symbol value.
48 2004-10-25 Nick Clifton <nickc@redhat.com>
51 * readelf.c (dynamic_strings_length): New global variable.
52 (VALID_DYNAMIC_NAME, GET_DYNAMIC_NAME): New macros for accessing
53 strings in the dynamic string table.
54 (process_section_headers): Initialise dynamic_strings_length.
55 (process_dynamic_section): Likewise.
56 (process_object): Reset dynamic_string_length when the buffer is freed.
57 (dynamic_sections_mips_val): Use the new macros.
58 (process_dynamic_section): Likewise.
59 (process_version_sections): Likewise.
60 (process_symbol_table): Likewise.
61 (process_syminfo): Likewise.
62 (process_mips_specific): Likewise.
63 (dump_relocations): Add a new parameter 'strtablen' and use this
64 to verify that string offset in a given reloc is valid. Print a
65 suitable error message otherwise.
66 (process_relocs): Pass the new argument to dump_relocations.
68 2004-10-23 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
70 * dlltool.c: Include <assert.h>.
71 (PREFIX_ALIAS_BASE): Define.
72 (struct export): Add member import_name;
73 (def_exports): Set import_name.
74 (make_one_lib_file): Remove prefix alias code, use import_name
76 (gen_lib_file): Create and delete aliases.
78 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
80 * readelf.c (process_section_groups): Free symtab after use.
82 2004-10-18 Tommy Pettersson <ptp@lysator.liu.se>
83 Nick Clifton <nickc@redhat.com>
85 * strings.c (usage): Place radix values for -t option into the
88 * objcopy.c (add_redefine_syms_file): Change error messages to use
89 <filename>:<linenumber>: format for easier parsing by automatic
92 * srconv.c (show_usage): Fix spelling typo.
94 * windres.c (format_from_filename): Suggest the use of -J instead
95 of -I if the file type cannot be determined.
97 2004-10-18 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
99 * strings.c: Include <sys/stat.h>.
101 2004-10-18 Alan Modra <amodra@bigpond.net.au>
103 * budemang.c (demangle): Fix thinko.
105 * budemang.c (demangle): Handle "@plt" suffix.
107 2004-10-14 Nick Clifton <nickc@redhat.com>
109 * nm.c (usage): Fix description of --special-syms switch.
111 2004-10-13 Jakub Jelinek <jakub@redhat.com>
113 * strings.c (statbuf): New typedef.
115 (strings_object_file): Avoid using get_file_size, instead do the
116 checks here, using file_stat.
117 * configure.in (HAVE_STAT64): New test.
118 * configure: Rebuilt.
119 * config.in: Rebuilt.
121 2004-10-12 Paul Brook <paul@codesourcery.com>
123 * readelf.c (decode_ARM_machine_flags): Support EABI version 4.
125 2004-10-11 Alan Modra <amodra@bigpond.net.au>
127 * objdump.c (dump_symbols): Fix thinko last change. Improve error
130 2004-10-08 Nick Clifton <nickc@redhat.com>
132 * nm.c: Add a new switch --special-syms which, if enabled, will
133 include the ARM Mapping symbols in nm's output.
134 (usage): Mention the switch.
135 (filter_symbols): Handle the switch.
136 * objdump.c: Add a similar switch.
137 (usage): Mention the switch.
138 (dump_symbols): Handle the switch.
139 * doc/binutils.texi: Document the new switches.
140 * NEWS: Mention the new switches.
142 2004-10-08 Daniel Jacobowitz <dan@debian.org>
144 * readelf.c (get_x86_64_section_type_name): New function.
145 (get_section_type_name): Use it.
147 2004-10-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
149 * dlltool.c (make_one_lib_file): Revert 2004-09-02 and 2004-09-04
151 * doc/binutils.texi (dlltool): Revert 2004-09-06 patch.
153 2004-10-07 Alexandre Oliva <aoliva@redhat.com>
155 * readelf.c (get_machine_flags): Don't fall through into m68k cpu
158 2004-10-01 Paul Brook <paul@codesourcery.com>
160 * readelf.c (get_arm_section_type_name): New function.
161 (get_section_type_name): Use it.
163 2004-09-28 Nick Clifton <nickc@redhat.com>
165 * nm.c: Reorder functions to eliminate most of the static function
168 2004-09-22 Alan Modra <amodra@bigpond.net.au>
170 * readelf.c (process_program_headers): Don't include .tbss in non-TLS
173 2004-09-17 Alan Modra <amodra@bigpond.net.au>
175 * Makefile.am: Run "make dep-am".
176 * Makefile.in: Regenerate.
177 * config.in: Regenerate.
178 * configure: Regenerate.
179 * doc/Makefile.in: Regenerate.
180 * po/binutils.pot: Regenerate.
182 2004-09-12 Alan Modra <amodra@bigpond.net.au>
184 * readelf.c (decode_location_expression): Sign extend value for
185 DW_OP_const1s, DW_OP_const2s, DW_OP_const4s, DW_OP_bra, DW_OP_skip.
187 2004-09-09 Nick Clifton <nickc@redhat.com>
190 * ar.c (replace_members): Do not use get_file_size as
191 ar_emul_append correctly handles missing files.
193 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
195 * configure: Regenerated with autconfig 2.13.
197 2004-09-06 Danny Smith <dannysmith@users.sourceforge.net>
199 * doc/binutils.texi (dlltool): Update --add-underscore, --kill-at
202 2004-09-06 Michael Wardle <mbw@endbracket.net>
204 * doc/binutils.texi (objdump): Document that the -x switch includes
205 the effect of the -p switch.
207 2004-09-04 Danny Smith <dannysmith@users.sourceforge.net>
209 * dlltool.c (make_one_lib_file): Test if internal_name was
210 specified by user before using it.
212 2004-09-02 Carlo Wood <carlo@alinoe.com>
215 * dlltool.c (make_one_lib_file): For IDATA6 take the name from
216 exp->internal_name if it is present.
218 2004-09-02 Alexandre Oliva <aoliva@redhat.com>
220 * MAINTAINERS: Add self as co-maintainer of FR-V.
221 * readelf.c (get_machine_flags): Print FR-V cpu types.
223 2004-08-28 Alan Modra <amodra@bigpond.net.au>
225 * nm.c (show_synthetic): New var.
226 (long_options): Add "synthetic".
228 (display_rel_file): Handle show_synthetic.
230 2004-08-28 Alan Modra <amodra@bigpond.net.au>
232 * objdump.c (dump_bfd): Pass both symbol tables to
233 bfd_get_synthetic_symtab.
235 2004-08-17 Jakub Jelinek <jakub@redhat.com>
237 * objdump.c (dump_bfd): For relocatable objects, pass syms instead
238 of dynsyms to bfd_get_synthetic_symtab.
240 2004-08-16 Alan Modra <amodra@bigpond.net.au>
242 * readelf.c (debug_apply_rela_addends): New function, extracted from..
243 (display_debug_info): ..here.
244 (display_debug_frames): Call debug_apply_rela_addends. Don't do
245 DW_EH_PE_pcrel adjustment for ET_REL.
247 2004-08-06 Andreas Schwab <schwab@suse.de>
249 * readelf.c (dump_relocations): Fix typo when calculating
252 2004-08-02 Jakub Bogusz <qboosh@pld-linux.org>
254 * dllwrap.c (deduce_name): Fix typos introduced when program_name
255 was renamed to prog_name.
257 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
259 * readelf.c (get_machine_flags <EM_SH>): Handle EF_SH2A and
262 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
264 2003-07-08 Alexandre Oliva <aoliva@redhat.com>
265 * readelf.c (get_machine_flags <EM_SH)): Handle EF_SH4_NOFPU and
267 2003-06-12 Alexandre Oliva <aoliva@redhat.com>
268 * readelf.c (get_machine_flags <EM_SH>): Print SH ISA name.
270 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
272 * objcopy.c (filter_symbols): Use bfd_coff_get_comdat_section
274 * objdump.c (dump_section_header): Likewise.
276 2004-07-15 Aravinda PR <aravindapr@rediffmail.com>
278 * nlmconv.c (main): Pass map_file argument to link_inputs.
279 (link_inputs): Use map_file argument if it is defined.
281 2004-07-13 Nick Clifton <nickc@redhat.com>
283 * dllwrap.c: Replace 'program_name' with 'prog_name' to avoid
284 conflicts with exported global defined in bucomm.h.
285 (deduce_name): Rename parameter 'program_name' to 'name' to avoid
286 shadowing the global defined in bucomm.h.
288 2004-07-12 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
290 * dlltool.c (ext_prefix_alias): New global variable.
291 (make_one_lib_file): Add aliases with prefixes for external
292 and import definitions.
293 (usage): Document -p option.
294 (long_options): Add --ext-prefix-alias option.
296 * doc/binutils.texi: Document new switch.
297 * NEWS: Mention new switch.
299 2004-07-09 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
301 * binutils/dlltool.c (asm_prefix): Add parameter: name.
302 No underscore for symbols beginning with ?.
303 (ASM_PREFIX): Add parameter: NAME.
304 (gen_exp_file): Use new parameter.
305 (make_label): Likewise.
306 (make_imp_label): Likewise.
307 (make_one_lib_file): Likewise.
309 2004-07-07 Tomer Levi <Tomer.Levi@nsc.com>
311 * MAINTAINERS: Added myself to the list.
312 * readelf.c: Include "elf/crx.h".
313 (guess_is_rela): Handle EM_CRX.
314 (get_machine_name): Likewise.
315 (dump_relocations): Likewise.
317 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
319 * doc/binutils.texi (nm): Clarify weak symbol description.
321 2004-06-24 Ben Elliston <bje@au.ibm.com>
323 * readelf.c (get_segment_type): Display "GNU_STACK", not just
324 "STACK", when a PT_GNU_STACK segment is encountered.
326 2004-06-24 Alan Modra <amodra@bigpond.net.au>
328 * objcopy.c (copy_section): Don't set _cooked_size.
330 2004-06-22 Alan Modra <amodra@bigpond.net.au>
332 * readelf.c (Elf32_Word): Delete.
333 (get_32bit_dynamic_section): Handle SGI ELF dynamic segment.
334 (get_64bit_dynamic_section): Likewise.
336 * readelf.c (get_32bit_dynamic_section): Stop at first DT_NULL entry.
337 (get_64bit_dynamic_section): Likewise.
339 * readelf.c (dynamic_nent): New variable.
340 (get_32bit_dynamic_section): Set it.
341 (get_64bit_dynamic_section): Here too.
342 (process_dynamic_section): Use it instead of dynamic_size.
343 (process_syminfo): Likewise.
345 * readelf.c (get_32bit_dynamic_section): Correct number of entries
346 translated from external to internal form.
347 (get_64bit_dynamic_section): Likewise.
349 2004-06-18 Jie Zhang <zhangjie@magima.com.cn>
351 * readelf.c (process_program_headers): When locating the dynamic
352 section use the section table if it is present.
353 (dynamic_segment): Renamed to dynamic_section.
354 Replace references to dynamic segment with references to dynamic
355 section, except where appropriate.
356 (dynamic_segment_mips_val): Rename to dynamic_section_mips_val.
357 (dynamic_segment_parisc_val): Rename to dynamic_section_parisc_val.
358 (dynamic_segment_ia64_val): Rename to dynamic_section_ia64_val.
359 (get_32bit_dynamic_segment): Rename to get_32bit_dynamic_section.
360 Remove tag counting code as it is no longer needed.
361 (get_64bit_dynamic_segment): Rename to get_64bit_dynamic_section.
362 Remove tag counting code as it is no longer needed.
363 (process_dynamic_segment): Rename to process_dynamic_section.
365 2004-06-15 Alan Modra <amodra@bigpond.net.au>
367 * objcopy.c (copy_section): Use bfd_get_section_size instead of
368 _raw_size or bfd_get_section_size_before_reloc. Don't set reloc_done.
369 (compare_section_lma): Likewise.
370 * addr2line.c (find_address_in_section): Likewise.
371 * coffgrok.c (do_sections_p1): Likewise.
372 * dlltool.c (scan_drectve_symbols): Likewise.
373 * nlmconv.c (main): Likewise.
374 (copy_sections): Likewise.
375 (powerpc_mangle_relocs): Likewise.
376 * objdump.c (disassemble_section): Likewise.
377 * prdbg.c (find_address_in_section): Likewise.
378 * size.c (berkeley_sum): Likewise.
379 * srconv.c (wr_ob): Likewise.
380 * strings.c (strings_a_section): Likewise.
382 2004-05-28 Ian Lance Taylor <ian@wasabisystems.com>
384 * readelf.c (decode_ARM_machine_flags): Add EF_ARM_VFP_FLOAT.
386 2004-05-17 David Heine <dlheine@tensilica.com>
388 * objcopy.c (setup_bfd_headers): New function.
389 (copy_object): Call setup_bfd_headers.
391 2004-05-13 Paul Brook <paul@codesourcery.com>
393 * readelf.c (display_debug_frames): Handle dwarf3 format CIE
396 2004-05-13 Nick Clifton <nickc@redhat.com>
398 * po/fr.po: Updated French translation.
400 2004-05-11 Jakub Jelinek <jakub@redhat.com>
402 * readelf.c (get_segment_type): Handle PT_GNU_RELRO.
404 2004-05-07 H.J. Lu <hongjiu.lu@intel.com>
406 * readelf.c (section_groups): New.
408 (section_headers_groups): New.
409 (process_section_groups): Populate group_count, section_groups
410 and section_headers_groups.
411 (process_unwind): Support section group.
412 (process_object): Always call process_section_groups. Free
413 section_groups and section_headers_groups.
415 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
417 * readelf.c (process_section_headers): Use %3lu on sh_info.
419 2004-04-30 Michael Deutschmann <michael@talamasca.ocis.net>
421 * ranlib.sh: Quote $1 argument in case it contains spaces.
423 2004-04-27 John Paul Wallington <jpw@gnu.org>
425 * objcopy.c (copy_usage, strip_usage): Fix spelling.
427 2004-04-26 H.J. Lu <hongjiu.lu@intel.com>
429 * readelf.c (do_section_groups): New.
430 (options): Add --section-groups/-g.
431 (usage): Mention --section-groups/-g.
432 (parse_args): Support --section-groups/-g.
433 (get_group_flags): New.
434 (process_section_groups): New.
435 (process_object): Call process_section_groups.
437 2004-04-24 Alan Modra <amodra@bigpond.net.au>
439 * objdump.c (disassemble_section): Don't disassemble sections
440 without SEC_HAS_CONTENTS.
442 2004-04-22 Jakub Jelinek <jakub@redhat.com>
444 * objdump.c (synthsyms, synthcount): New variables.
445 (disassemble_data): Use dynsyms for stripped binaries or libraries.
446 Add synthetized symbols.
447 (dump_bfd): For disassemble, initialize dynsyms always and
448 also synthsyms. Free synthsyms and clear {sym,dynsym,synth}count
451 2004-04-14 Alan Modra <amodra@bigpond.net.au>
453 * strings.c (print_strings): Cast file_off to unsigned long in
456 2004-04-07 Benjamin Monate <benjamin.monate@cea.fr>
459 * arsup.c (ar_save): Use smart_rename.
461 2004-04-01 Dean Luick <luick@cray.com>
463 * readelf.c (display_debug_pubnames): Align offset and data
465 (read_and_display_attr_value): Add missing break;
466 (debug_displays): Enable the display of the .debug_pubtypes
469 2004-03-30 Stan Shebs <shebs@apple.com>
471 * mpw-config.in, mpw-make.sed, mac-binutils.r: Remove MPW
472 support files, no longer used.
474 2004-03-23 Paul Brook <paul@codesourcery.com>
476 * readelf.c (decode_ARM_machine_flags): Add EABI v3.
478 2004-03-21 Richard Henderson <rth@redhat.com>
480 * readelf.c (display_debug_frames): Don't crash for mismatched
481 DW_CFA_restore_state.
483 2004-03-19 Alan Modra <amodra@bigpond.net.au>
485 * Makefile.am: Run "make dep-am".
486 * Makefile.in: Regenerate.
487 * aclocal.m4: Regenerate.
488 * config.in: Regenerate.
489 * configure: Regenerate.
490 * po/binutils.pot: Regenerate.
492 2004-03-15 Nathan Sidwell <nathan@codesourcery.com>
494 * objdump.c (struct SFILE): Replace current pointer with pos
495 offset, rename size to alloc.
496 (objdump_sprintf): Avoid unnecessary copies in the common case
497 (disassemble_bytes): Keep sfile live throughout the
498 function. Adjust usage appropriately.
500 2004-03-10 Ben Elliston <bje@gnu.org>
502 * MAINTAINERS: Update my mail address.
504 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
506 * deflex.l: Handle "PRIVATE" string.
507 * defparse.y (%token): Add PRIVATE.
508 (%type): Add opt_PRIVATE.
509 (expline): Pass opt_PRIVATE to def_exports.
510 (opt_PRIVATE): Handle PRIVATE token.
511 * dlltool.h (def_exports): Add 7th param for private flag to
513 * dlltool.c: Add PRIVATE to comment on EXPORTS syntax.
514 (struct export): Add 'private' field.
515 (def_exports): Set 'private' field of struct exports.
516 (scan_drectve_symbols): Adjust calls to def_exports.
517 (scan_filtered_symbols): Likewise.
518 (dump_def_info): Print 'private' field.
519 (gen_def_file): Likewise.
520 (gen_lib_file): Skip generation of lib object if private.
521 Delete tmp object files in same order as they were generated.
522 Don't delete non-existent private object files.
524 2004-02-27 Andreas Schwab <schwab@suse.de>
526 * ar.c (main): Support POSIX-compatible argument parsing.
528 2004-02-23 Daniel Lucq <daniel@lucq.org>
530 * readelf.c (process_mips_specific): Print conflictsno as an
533 2004-02-21 Dmitry Timoshkov <dmitry@baikal.ru>
535 * dlltool.c (gen_exp_file): Always output names for forwarded symbols.
537 2004-02-19 Jakub Jelinek <jakub@redhat.com>
539 * objcopy.c (copy_section): Avoid warnings.
541 2004-02-14 Andrew Cagney <cagney@redhat.com>
543 * ar.c (remove_output): Use bfd_cache_close.
544 * arsup.c (ar_end): Ditto.
546 2004-01-21 Roland McGrath <roland@redhat.com>
548 * readelf.c (get_note_type): Match NT_AUXV.
550 2004-01-20 Nick Clifton <nickc@redhat.com>
552 * version.c (print_version): Update copyright year to 2004.
554 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
556 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
558 * aclocal.m4: Regenerate.
559 * configure: Regenerate.
561 2004-01-12 Jakub Jelinek <jakub@redhat.com>
563 * objcopy.c: Include elf-bfd.h.
564 (is_strip_section): Don't strip debugging sections if
566 (setup_section): If STRIP_NONDEBUG make SEC_ALLOC sections
567 ~(SEC_LOAD | SEC_HAS_CONTENTS) and on ELF targets also SHT_NOBITS.
569 * objcopy.c (copy_section): Free relpp if relcount == 0.
571 2004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
573 * stabs.c (parse_stab_argtypes): Handle g++ ABI version 3 names.
574 (stab_demangle_argtypes): Likewise.
575 (stab_demangle_v3_argtypes): New static function.
576 (stab_demangle_v3_arg): New static function.
578 2004-01-12 Nick Clifton <nickc@redhat.com>
580 * objcopy.c (copy_object): Make the function boolean, returning
582 (copy_archive): Handle the return value from copy_object.
583 (copy_file): Likewise.
585 2004-01-07 Nick Clifton <nickc@redhat.com>
587 * readelf.c (find_section): New function. Locates a named
589 (get_debug_line_pointer_sizes): New function: Initialises the
590 debug_line_pointer_sizes array.
591 (display_debug_lines): Call get_debug_line_pointer_sizes.
592 (display_debug_loc): Likewise.
593 (load_debug_loc): Use find_section.
594 (load_debug_str): Likewise.
595 (display_debug_info): Likewise.
596 (prescan_debug_info): Delete.
597 (debug_displays): Remove prescan field.
598 (process_section_contents): Do not perform prescans.
600 2004-01-03 Alan Modra <amodra@bigpond.net.au>
602 * objcopy.c (filter_bytes): Delete. Move code to..
603 (copy_section): ..here. Simplify size adjustment. Divide
604 section lma by interleave.
606 2004-01-02 Nick Clifton <nickc@redhat.com>
608 * po/ru.po: New file: Russian translation.
609 * configure.in (ALL_LINGUAS): Add ru
610 * configure: Regenerate.
612 For older changes see ChangeLog-0203
618 version-control: never