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