1 2004-10-26 Mark Mitchell <mark@codesourcery.com>
3 * readelf.c (get_note_type): Handle notes not in core files.
4 (process_note_sections): New function.
5 (process_corefile_contents): Rename to ...
6 (process_notes): ... this.
7 (process_object): Call process_notes, not
8 process_corefile_contents.
9 * doc/binutils.texi: Update readelf -n documentation.
11 2004-10-26 Jakub Jelinek <jakub@redhat.com>
13 * ar.c (extract_file): Set atime to mtime for ar xo.
15 2004-10-25 Ian Lance Taylor <ian@wasabisystems.com>
17 * stabs.c (stab_demangle_v3_arglist): New static function, broken
18 out of stab_demangle_v3_argtypes.
19 (stab_demangle_v3_argtypes): Call it.
20 (stab_demangle_v3_arg): Handle DEMANGLE_COMPONENT_FUNCTION_TYPE.
21 If we find an unrecognized component, print out its number.
23 2004-10-25 David Mosberger <davidm@hpl.hp.com>
25 * readelf.c (slurp_ia64_unwind_table): Support relocations against
26 non-section symbols by adding in the symbol value.
28 2004-10-25 Nick Clifton <nickc@redhat.com>
31 * readelf.c (dynamic_strings_length): New global variable.
32 (VALID_DYNAMIC_NAME, GET_DYNAMIC_NAME): New macros for accessing
33 strings in the dynamic string table.
34 (process_section_headers): Initialise dynamic_strings_length.
35 (process_dynamic_section): Likewise.
36 (process_object): Reset dynamic_string_length when the buffer is freed.
37 (dynamic_sections_mips_val): Use the new macros.
38 (process_dynamic_section): Likewise.
39 (process_version_sections): Likewise.
40 (process_symbol_table): Likewise.
41 (process_syminfo): Likewise.
42 (process_mips_specific): Likewise.
43 (dump_relocations): Add a new parameter 'strtablen' and use this
44 to verify that string offset in a given reloc is valid. Print a
45 suitable error message otherwise.
46 (process_relocs): Pass the new argument to dump_relocations.
48 2004-10-23 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
50 * dlltool.c: Include <assert.h>.
51 (PREFIX_ALIAS_BASE): Define.
52 (struct export): Add member import_name;
53 (def_exports): Set import_name.
54 (make_one_lib_file): Remove prefix alias code, use import_name
56 (gen_lib_file): Create and delete aliases.
58 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
60 * readelf.c (process_section_groups): Free symtab after use.
62 2004-10-18 Tommy Pettersson <ptp@lysator.liu.se>
63 Nick Clifton <nickc@redhat.com>
65 * strings.c (usage): Place radix values for -t option into the
68 * objcopy.c (add_redefine_syms_file): Change error messages to use
69 <filename>:<linenumber>: format for easier parsing by automatic
72 * srconv.c (show_usage): Fix spelling typo.
74 * windres.c (format_from_filename): Suggest the use of -J instead
75 of -I if the file type cannot be determined.
77 2004-10-18 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
79 * strings.c: Include <sys/stat.h>.
81 2004-10-18 Alan Modra <amodra@bigpond.net.au>
83 * budemang.c (demangle): Fix thinko.
85 * budemang.c (demangle): Handle "@plt" suffix.
87 2004-10-14 Nick Clifton <nickc@redhat.com>
89 * nm.c (usage): Fix description of --special-syms switch.
91 2004-10-13 Jakub Jelinek <jakub@redhat.com>
93 * strings.c (statbuf): New typedef.
95 (strings_object_file): Avoid using get_file_size, instead do the
96 checks here, using file_stat.
97 * configure.in (HAVE_STAT64): New test.
101 2004-10-12 Paul Brook <paul@codesourcery.com>
103 * readelf.c (decode_ARM_machine_flags): Support EABI version 4.
105 2004-10-11 Alan Modra <amodra@bigpond.net.au>
107 * objdump.c (dump_symbols): Fix thinko last change. Improve error
110 2004-10-08 Nick Clifton <nickc@redhat.com>
112 * nm.c: Add a new switch --special-syms which, if enabled, will
113 include the ARM Mapping symbols in nm's output.
114 (usage): Mention the switch.
115 (filter_symbols): Handle the switch.
116 * objdump.c: Add a similar switch.
117 (usage): Mention the switch.
118 (dump_symbols): Handle the switch.
119 * doc/binutils.texi: Document the new switches.
120 * NEWS: Mention the new switches.
122 2004-10-08 Daniel Jacobowitz <dan@debian.org>
124 * readelf.c (get_x86_64_section_type_name): New function.
125 (get_section_type_name): Use it.
127 2004-10-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
129 * dlltool.c (make_one_lib_file): Revert 2004-09-02 and 2004-09-04
131 * doc/binutils.texi (dlltool): Revert 2004-09-06 patch.
133 2004-10-07 Alexandre Oliva <aoliva@redhat.com>
135 * readelf.c (get_machine_flags): Don't fall through into m68k cpu
138 2004-10-01 Paul Brook <paul@codesourcery.com>
140 * readelf.c (get_arm_section_type_name): New function.
141 (get_section_type_name): Use it.
143 2004-09-28 Nick Clifton <nickc@redhat.com>
145 * nm.c: Reorder functions to eliminate most of the static function
148 2004-09-22 Alan Modra <amodra@bigpond.net.au>
150 * readelf.c (process_program_headers): Don't include .tbss in non-TLS
153 2004-09-17 Alan Modra <amodra@bigpond.net.au>
155 * Makefile.am: Run "make dep-am".
156 * Makefile.in: Regenerate.
157 * config.in: Regenerate.
158 * configure: Regenerate.
159 * doc/Makefile.in: Regenerate.
160 * po/binutils.pot: Regenerate.
162 2004-09-12 Alan Modra <amodra@bigpond.net.au>
164 * readelf.c (decode_location_expression): Sign extend value for
165 DW_OP_const1s, DW_OP_const2s, DW_OP_const4s, DW_OP_bra, DW_OP_skip.
167 2004-09-09 Nick Clifton <nickc@redhat.com>
170 * ar.c (replace_members): Do not use get_file_size as
171 ar_emul_append correctly handles missing files.
173 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
175 * configure: Regenerated with autconfig 2.13.
177 2004-09-06 Danny Smith <dannysmith@users.sourceforge.net>
179 * doc/binutils.texi (dlltool): Update --add-underscore, --kill-at
182 2004-09-06 Michael Wardle <mbw@endbracket.net>
184 * doc/binutils.texi (objdump): Document that the -x switch includes
185 the effect of the -p switch.
187 2004-09-04 Danny Smith <dannysmith@users.sourceforge.net>
189 * dlltool.c (make_one_lib_file): Test if internal_name was
190 specified by user before using it.
192 2004-09-02 Carlo Wood <carlo@alinoe.com>
195 * dlltool.c (make_one_lib_file): For IDATA6 take the name from
196 exp->internal_name if it is present.
198 2004-09-02 Alexandre Oliva <aoliva@redhat.com>
200 * MAINTAINERS: Add self as co-maintainer of FR-V.
201 * readelf.c (get_machine_flags): Print FR-V cpu types.
203 2004-08-28 Alan Modra <amodra@bigpond.net.au>
205 * nm.c (show_synthetic): New var.
206 (long_options): Add "synthetic".
208 (display_rel_file): Handle show_synthetic.
210 2004-08-28 Alan Modra <amodra@bigpond.net.au>
212 * objdump.c (dump_bfd): Pass both symbol tables to
213 bfd_get_synthetic_symtab.
215 2004-08-17 Jakub Jelinek <jakub@redhat.com>
217 * objdump.c (dump_bfd): For relocatable objects, pass syms instead
218 of dynsyms to bfd_get_synthetic_symtab.
220 2004-08-16 Alan Modra <amodra@bigpond.net.au>
222 * readelf.c (debug_apply_rela_addends): New function, extracted from..
223 (display_debug_info): ..here.
224 (display_debug_frames): Call debug_apply_rela_addends. Don't do
225 DW_EH_PE_pcrel adjustment for ET_REL.
227 2004-08-06 Andreas Schwab <schwab@suse.de>
229 * readelf.c (dump_relocations): Fix typo when calculating
232 2004-08-02 Jakub Bogusz <qboosh@pld-linux.org>
234 * dllwrap.c (deduce_name): Fix typos introduced when program_name
235 was renamed to prog_name.
237 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
239 * readelf.c (get_machine_flags <EM_SH>): Handle EF_SH2A and
242 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
244 2003-07-08 Alexandre Oliva <aoliva@redhat.com>
245 * readelf.c (get_machine_flags <EM_SH)): Handle EF_SH4_NOFPU and
247 2003-06-12 Alexandre Oliva <aoliva@redhat.com>
248 * readelf.c (get_machine_flags <EM_SH>): Print SH ISA name.
250 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
252 * objcopy.c (filter_symbols): Use bfd_coff_get_comdat_section
254 * objdump.c (dump_section_header): Likewise.
256 2004-07-15 Aravinda PR <aravindapr@rediffmail.com>
258 * nlmconv.c (main): Pass map_file argument to link_inputs.
259 (link_inputs): Use map_file argument if it is defined.
261 2004-07-13 Nick Clifton <nickc@redhat.com>
263 * dllwrap.c: Replace 'program_name' with 'prog_name' to avoid
264 conflicts with exported global defined in bucomm.h.
265 (deduce_name): Rename parameter 'program_name' to 'name' to avoid
266 shadowing the global defined in bucomm.h.
268 2004-07-12 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
270 * dlltool.c (ext_prefix_alias): New global variable.
271 (make_one_lib_file): Add aliases with prefixes for external
272 and import definitions.
273 (usage): Document -p option.
274 (long_options): Add --ext-prefix-alias option.
276 * doc/binutils.texi: Document new switch.
277 * NEWS: Mention new switch.
279 2004-07-09 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
281 * binutils/dlltool.c (asm_prefix): Add parameter: name.
282 No underscore for symbols beginning with ?.
283 (ASM_PREFIX): Add parameter: NAME.
284 (gen_exp_file): Use new parameter.
285 (make_label): Likewise.
286 (make_imp_label): Likewise.
287 (make_one_lib_file): Likewise.
289 2004-07-07 Tomer Levi <Tomer.Levi@nsc.com>
291 * MAINTAINERS: Added myself to the list.
292 * readelf.c: Include "elf/crx.h".
293 (guess_is_rela): Handle EM_CRX.
294 (get_machine_name): Likewise.
295 (dump_relocations): Likewise.
297 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
299 * doc/binutils.texi (nm): Clarify weak symbol description.
301 2004-06-24 Ben Elliston <bje@au.ibm.com>
303 * readelf.c (get_segment_type): Display "GNU_STACK", not just
304 "STACK", when a PT_GNU_STACK segment is encountered.
306 2004-06-24 Alan Modra <amodra@bigpond.net.au>
308 * objcopy.c (copy_section): Don't set _cooked_size.
310 2004-06-22 Alan Modra <amodra@bigpond.net.au>
312 * readelf.c (Elf32_Word): Delete.
313 (get_32bit_dynamic_section): Handle SGI ELF dynamic segment.
314 (get_64bit_dynamic_section): Likewise.
316 * readelf.c (get_32bit_dynamic_section): Stop at first DT_NULL entry.
317 (get_64bit_dynamic_section): Likewise.
319 * readelf.c (dynamic_nent): New variable.
320 (get_32bit_dynamic_section): Set it.
321 (get_64bit_dynamic_section): Here too.
322 (process_dynamic_section): Use it instead of dynamic_size.
323 (process_syminfo): Likewise.
325 * readelf.c (get_32bit_dynamic_section): Correct number of entries
326 translated from external to internal form.
327 (get_64bit_dynamic_section): Likewise.
329 2004-06-18 Jie Zhang <zhangjie@magima.com.cn>
331 * readelf.c (process_program_headers): When locating the dynamic
332 section use the section table if it is present.
333 (dynamic_segment): Renamed to dynamic_section.
334 Replace references to dynamic segment with references to dynamic
335 section, except where appropriate.
336 (dynamic_segment_mips_val): Rename to dynamic_section_mips_val.
337 (dynamic_segment_parisc_val): Rename to dynamic_section_parisc_val.
338 (dynamic_segment_ia64_val): Rename to dynamic_section_ia64_val.
339 (get_32bit_dynamic_segment): Rename to get_32bit_dynamic_section.
340 Remove tag counting code as it is no longer needed.
341 (get_64bit_dynamic_segment): Rename to get_64bit_dynamic_section.
342 Remove tag counting code as it is no longer needed.
343 (process_dynamic_segment): Rename to process_dynamic_section.
345 2004-06-15 Alan Modra <amodra@bigpond.net.au>
347 * objcopy.c (copy_section): Use bfd_get_section_size instead of
348 _raw_size or bfd_get_section_size_before_reloc. Don't set reloc_done.
349 (compare_section_lma): Likewise.
350 * addr2line.c (find_address_in_section): Likewise.
351 * coffgrok.c (do_sections_p1): Likewise.
352 * dlltool.c (scan_drectve_symbols): Likewise.
353 * nlmconv.c (main): Likewise.
354 (copy_sections): Likewise.
355 (powerpc_mangle_relocs): Likewise.
356 * objdump.c (disassemble_section): Likewise.
357 * prdbg.c (find_address_in_section): Likewise.
358 * size.c (berkeley_sum): Likewise.
359 * srconv.c (wr_ob): Likewise.
360 * strings.c (strings_a_section): Likewise.
362 2004-05-28 Ian Lance Taylor <ian@wasabisystems.com>
364 * readelf.c (decode_ARM_machine_flags): Add EF_ARM_VFP_FLOAT.
366 2004-05-17 David Heine <dlheine@tensilica.com>
368 * objcopy.c (setup_bfd_headers): New function.
369 (copy_object): Call setup_bfd_headers.
371 2004-05-13 Paul Brook <paul@codesourcery.com>
373 * readelf.c (display_debug_frames): Handle dwarf3 format CIE
376 2004-05-13 Nick Clifton <nickc@redhat.com>
378 * po/fr.po: Updated French translation.
380 2004-05-11 Jakub Jelinek <jakub@redhat.com>
382 * readelf.c (get_segment_type): Handle PT_GNU_RELRO.
384 2004-05-07 H.J. Lu <hongjiu.lu@intel.com>
386 * readelf.c (section_groups): New.
388 (section_headers_groups): New.
389 (process_section_groups): Populate group_count, section_groups
390 and section_headers_groups.
391 (process_unwind): Support section group.
392 (process_object): Always call process_section_groups. Free
393 section_groups and section_headers_groups.
395 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
397 * readelf.c (process_section_headers): Use %3lu on sh_info.
399 2004-04-30 Michael Deutschmann <michael@talamasca.ocis.net>
401 * ranlib.sh: Quote $1 argument in case it contains spaces.
403 2004-04-27 John Paul Wallington <jpw@gnu.org>
405 * objcopy.c (copy_usage, strip_usage): Fix spelling.
407 2004-04-26 H.J. Lu <hongjiu.lu@intel.com>
409 * readelf.c (do_section_groups): New.
410 (options): Add --section-groups/-g.
411 (usage): Mention --section-groups/-g.
412 (parse_args): Support --section-groups/-g.
413 (get_group_flags): New.
414 (process_section_groups): New.
415 (process_object): Call process_section_groups.
417 2004-04-24 Alan Modra <amodra@bigpond.net.au>
419 * objdump.c (disassemble_section): Don't disassemble sections
420 without SEC_HAS_CONTENTS.
422 2004-04-22 Jakub Jelinek <jakub@redhat.com>
424 * objdump.c (synthsyms, synthcount): New variables.
425 (disassemble_data): Use dynsyms for stripped binaries or libraries.
426 Add synthetized symbols.
427 (dump_bfd): For disassemble, initialize dynsyms always and
428 also synthsyms. Free synthsyms and clear {sym,dynsym,synth}count
431 2004-04-14 Alan Modra <amodra@bigpond.net.au>
433 * strings.c (print_strings): Cast file_off to unsigned long in
436 2004-04-07 Benjamin Monate <benjamin.monate@cea.fr>
439 * arsup.c (ar_save): Use smart_rename.
441 2004-04-01 Dean Luick <luick@cray.com>
443 * readelf.c (display_debug_pubnames): Align offset and data
445 (read_and_display_attr_value): Add missing break;
446 (debug_displays): Enable the display of the .debug_pubtypes
449 2004-03-30 Stan Shebs <shebs@apple.com>
451 * mpw-config.in, mpw-make.sed, mac-binutils.r: Remove MPW
452 support files, no longer used.
454 2004-03-23 Paul Brook <paul@codesourcery.com>
456 * readelf.c (decode_ARM_machine_flags): Add EABI v3.
458 2004-03-21 Richard Henderson <rth@redhat.com>
460 * readelf.c (display_debug_frames): Don't crash for mismatched
461 DW_CFA_restore_state.
463 2004-03-19 Alan Modra <amodra@bigpond.net.au>
465 * Makefile.am: Run "make dep-am".
466 * Makefile.in: Regenerate.
467 * aclocal.m4: Regenerate.
468 * config.in: Regenerate.
469 * configure: Regenerate.
470 * po/binutils.pot: Regenerate.
472 2004-03-15 Nathan Sidwell <nathan@codesourcery.com>
474 * objdump.c (struct SFILE): Replace current pointer with pos
475 offset, rename size to alloc.
476 (objdump_sprintf): Avoid unnecessary copies in the common case
477 (disassemble_bytes): Keep sfile live throughout the
478 function. Adjust usage appropriately.
480 2004-03-10 Ben Elliston <bje@gnu.org>
482 * MAINTAINERS: Update my mail address.
484 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
486 * deflex.l: Handle "PRIVATE" string.
487 * defparse.y (%token): Add PRIVATE.
488 (%type): Add opt_PRIVATE.
489 (expline): Pass opt_PRIVATE to def_exports.
490 (opt_PRIVATE): Handle PRIVATE token.
491 * dlltool.h (def_exports): Add 7th param for private flag to
493 * dlltool.c: Add PRIVATE to comment on EXPORTS syntax.
494 (struct export): Add 'private' field.
495 (def_exports): Set 'private' field of struct exports.
496 (scan_drectve_symbols): Adjust calls to def_exports.
497 (scan_filtered_symbols): Likewise.
498 (dump_def_info): Print 'private' field.
499 (gen_def_file): Likewise.
500 (gen_lib_file): Skip generation of lib object if private.
501 Delete tmp object files in same order as they were generated.
502 Don't delete non-existent private object files.
504 2004-02-27 Andreas Schwab <schwab@suse.de>
506 * ar.c (main): Support POSIX-compatible argument parsing.
508 2004-02-23 Daniel Lucq <daniel@lucq.org>
510 * readelf.c (process_mips_specific): Print conflictsno as an
513 2004-02-21 Dmitry Timoshkov <dmitry@baikal.ru>
515 * dlltool.c (gen_exp_file): Always output names for forwarded symbols.
517 2004-02-19 Jakub Jelinek <jakub@redhat.com>
519 * objcopy.c (copy_section): Avoid warnings.
521 2004-02-14 Andrew Cagney <cagney@redhat.com>
523 * ar.c (remove_output): Use bfd_cache_close.
524 * arsup.c (ar_end): Ditto.
526 2004-01-21 Roland McGrath <roland@redhat.com>
528 * readelf.c (get_note_type): Match NT_AUXV.
530 2004-01-20 Nick Clifton <nickc@redhat.com>
532 * version.c (print_version): Update copyright year to 2004.
534 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
536 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
538 * aclocal.m4: Regenerate.
539 * configure: Regenerate.
541 2004-01-12 Jakub Jelinek <jakub@redhat.com>
543 * objcopy.c: Include elf-bfd.h.
544 (is_strip_section): Don't strip debugging sections if
546 (setup_section): If STRIP_NONDEBUG make SEC_ALLOC sections
547 ~(SEC_LOAD | SEC_HAS_CONTENTS) and on ELF targets also SHT_NOBITS.
549 * objcopy.c (copy_section): Free relpp if relcount == 0.
551 2004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
553 * stabs.c (parse_stab_argtypes): Handle g++ ABI version 3 names.
554 (stab_demangle_argtypes): Likewise.
555 (stab_demangle_v3_argtypes): New static function.
556 (stab_demangle_v3_arg): New static function.
558 2004-01-12 Nick Clifton <nickc@redhat.com>
560 * objcopy.c (copy_object): Make the function boolean, returning
562 (copy_archive): Handle the return value from copy_object.
563 (copy_file): Likewise.
565 2004-01-07 Nick Clifton <nickc@redhat.com>
567 * readelf.c (find_section): New function. Locates a named
569 (get_debug_line_pointer_sizes): New function: Initialises the
570 debug_line_pointer_sizes array.
571 (display_debug_lines): Call get_debug_line_pointer_sizes.
572 (display_debug_loc): Likewise.
573 (load_debug_loc): Use find_section.
574 (load_debug_str): Likewise.
575 (display_debug_info): Likewise.
576 (prescan_debug_info): Delete.
577 (debug_displays): Remove prescan field.
578 (process_section_contents): Do not perform prescans.
580 2004-01-03 Alan Modra <amodra@bigpond.net.au>
582 * objcopy.c (filter_bytes): Delete. Move code to..
583 (copy_section): ..here. Simplify size adjustment. Divide
584 section lma by interleave.
586 2004-01-02 Nick Clifton <nickc@redhat.com>
588 * po/ru.po: New file: Russian translation.
589 * configure.in (ALL_LINGUAS): Add ru
590 * configure: Regenerate.
592 For older changes see ChangeLog-0203
598 version-control: never