1 2005-03-17 Diego Novillo <dnovillo@redhat.com>
3 * MAINTAINERS: Remove self as maintainer of x86 intel
6 2005-03-16 Nick Clifton <nickc@redhat.com>
7 Ben Elliston <bje@au.ibm.com>
9 * configure.in (werror): New switch: Add -Werror to the
10 compiler command line. Enabled by default. Disable via
12 * configure: Regenerate.
14 2005-03-15 Daniel Marques <marques@cs.cornell.edu>
15 Nick Clifton <nickc@redhat.com>
17 * objcopy.c (globalize_specific_list): New linked list of symbols
18 to convert from local binding into global binding.
19 (command_line_switch): Add OPTION_GLOBALIZE_SYMBOL and
20 OPTION_GLOBALIZE_SYMBOLS.
21 (copy_options): Add "globalize-symbol" and "globalize-symbols".
22 (copy_usage): Document the new switches.
23 (filter_symbols): Convert defined local symbols mentioned on the
24 globalize_specific_list into global symbols.
25 (copy_object): Perform actions if the globalize_specific_list is
27 (copy_main): Handle new switches.
28 * NEWS: Mention new feature.
29 * doc/binutils.texi: Document new switches.
31 2005-03-15 Alan Modra <amodra@bigpond.net.au>
33 * po/es.po: Commit new Spanish translation.
35 * po/fr.po: Commit new French translation.
37 2005-03-14 Alan Modra <amodra@bigpond.net.au>
39 * po/tr.po: Commit new Turkish translation.
41 2005-03-11 Nick Clifton <nickc@redhat.com>
43 * po/fr.po: Updated French translation.
45 2005-03-10 Nick Clifton <nickc@redhat.com>
47 * configure.in (ALL_LINGUAS): Add Romanian lingua "ro".
48 * configure: Regenerate.
51 * po/ru.po: Updated file.
53 2005-03-05 Alan Modra <amodra@bigpond.net.au>
55 * po/binutils.pot: Regenerate.
57 2005-03-02 Jan Beulich <jbeulich@novell.com>
59 * ar.c (remove_output): Use unlink_if_ordinary instead of unlink.
60 * objcopy.c (copy_file): Likewise.
61 (strip_main): Likewise.
63 2005-03-01 Stig Petter Olsroed <stigpo@users.sourceforge.net>
64 Nick Clifton <nickc@redhat.com>
66 * objdump.c: Fix coding for DISASSEMBLER_NEEDS_RELOC:
67 (struct objdump_disasm_info): Add 'reloc' field.
68 (disassemble_bytes): Fix check for when an insn has a reloc
69 associated with it. Improve comment explaining why the use of
70 octets is wrong. Set the 'reloc' field in objdump_disasm_info
72 (objdump_print_addr): Use new 'reloc' field to lookup the correct
73 address for the symbol associated with the current instruction's
75 (disassemble_info): Initialise 'reloc' field.
77 2005-02-28 Jakub Jelinek <jakub@redhat.com>
79 * readelf.c (get_file_type, get_machine_name, get_osabi_name,
80 get_segment_type, get_section_type_name, get_elf_class,
81 get_data_encoding, get_group_flags, dynamic_section_mips_val,
82 get_symbol_binding, get_symbol_type, get_TAG_name, get_FORM_name,
83 get_AT_name, process_mips_specific, process_gnu_liblist,
84 get_note_type, get_netbsd_elfcore_note_type): Use snprintf instead of
86 (get_dynamic_type): Likewise. Increase buff to 64 bytes.
87 (get_elf_section_flags): Increase buff to 33 bytes. Avoid
89 (get_dynamic_flags): Renamed to...
90 (print_dynamic_flags): ... this. Print the flags to stdout instead
91 of returning them as string.
92 (process_dynamic_section): Adjust caller.
94 2005-02-25 H.J. Lu <hongjiu.lu@intel.com>
96 * readelf.c (display_debug_ranges): Print out offset for end of
99 2005-02-23 Alan Modra <amodra@bigpond.net.au>
101 * dlltool.c: Warning fixes.
102 * objdump.c: Likewise.
104 2005-02-22 Alan Modra <amodra@bigpond.net.au>
106 * Makefile.am (syslex.o, sysinfo.o): Pass AM_CFLAGS to compiler.
107 (syslex.o, sysinfo.o, dlltool.o, rescoff.o): Remove duplicate
108 dependencies. Run "make dep-am".
109 * nlmconv.c: Warning fixes.
110 * readelf.c: Likewise.
111 * srconv.c: Likewise.
112 * sysdump.c: Likewise.
113 * sysinfo.y: Likewise.
114 * syslex.l: Likewise. Use yyleng instead of strlen, memcpy instead
116 * Makefile.in: Regenerate.
118 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
120 * objcopy.c (parse_flags): Replace SEC_SHARED with
123 * objdump.c (dump_section_header): Dump SEC_TIC54X_BLOCK and
124 SEC_TIC54X_CLINK for TI c54x only. Remove SEC_ARCH_BIT_0. Dump
125 SEC_COFF_SHARED for COFF only.
127 2005-02-21 Alan Modra <amodra@bigpond.net.au>
129 * Makefile.am: Run "make dep-am"
130 * Makefile.in: Regenerate.
131 * doc/Makefile.in: Regenerate.
133 2005-02-21 Alan Modra <amodra@bigpond.net.au>
135 * readelf.c (BYTE_GET8): Delete. Replace uses with BYTE_GET.
136 (byte_get_little_endian): Don't handle size of -8.
137 (byte_get_signed, byte_get_big_endian): Likewise.
138 (print_dec_vma, print_hex_vma): New functions.
139 (print_vma): Use them. Return chars output.
140 (get_dynamic_data): Return a bfd_vma array. Add ent_size parm.
141 (process_symbol_table): Handle alpha and s390 .hash.
143 2005-02-18 H.J. Lu <hongjiu.lu@intel.com>
145 * readelf.c (display_debug_loc): Print out offset for end of
148 2005-02-18 Joseph S. Myers <joseph@codesourcery.com>
150 * Makefile.am (TOOL_PROGS): Add objdump.
151 * Makefile.in: Regenerate.
153 2005-02-17 Alan Modra <amodra@bigpond.net.au>
155 * deflex.l (YY_NO_UNPUT): Define.
156 * rclex.l (YY_NO_UNPUT): Define.
157 * rcparse.y (null_unichar): New static var.
158 (res_null_text): Use it rather than attempting to init from wchar_t.
159 * windres.c: Include assert.h and time.h before getopt.h.
160 Include config.h and unistd.h too.
162 2005-02-15 Nick Clifton <nickc@redhat.com>
164 * nlmconv.c: Provide a full prototype for the localtime() function
165 in order to avoid a compile time warning.
167 2005-02-11 H.J. Lu <hongjiu.lu@intel.com>
169 * readelf.c (group_count): Don't initialize it.
170 (process_section_groups): Reurn 1 if we won't do unwind nor
171 section groups. Set group_count to 0 before counting group
172 sections and return 1 if there are no group sections. Reread
173 SHT_SYMTAB/SHT_STRTAB sections only when needed. Don't skip
175 (process_object): Only set do_unwind to 0 if
176 process_section_groups return 0.
178 2005-02-10 Ian Lance Taylor <ian@airs.com>
180 * MAINTAINERS: Update my e-mail address.
182 2005-02-10 Mark Mitchell <mark@codesourcery.com>
184 * MAINTAINERS: Add Paul Brook and Mark Mitchell as ARM (Symbian)
187 2005-02-07 Inderpreet Singh <inderpreetb@noida.hcltech.com>
189 * MAINTAINERS: Add self as maintainer of MAXQ.
191 2005-01-31 Richard Sandiford <rsandifo@redhat.com>
193 * readelf.c (eh_addr_size): New variable.
194 (find_section): Move earlier in file. Return empty sections too.
195 (process_program_headers): Use find_section to find .dynamic.
196 (process_section_headers): Initialize eh_addr_size.
197 (dump_ia64_unwind, slurp_ia64_unwind_table, ia64_process_unwind)
198 (dump_hppa_unwind, slurp_hppa_unwind_table, hppa_process_unwind)
199 (display_debug_frames): Use it instead of local addr_size variable.
200 (size_of_encoded_value): Get pointer size from eh_addr_size rather
203 2005-01-31 Andrew Cagney <cagney@gnu.org>
205 * configure: Regenerate to track ../gettext.m4.
207 2005-01-31 Nick Clifton <nickc@redhat.com>
209 * version.c (print_version): Bump the copyright date to 2005.
211 2005-01-25 Alan Modra <amodra@bigpond.net.au>
213 * nm.c (display_rel_file): Read dynamic syms before calling
214 bfd_get_synthetic_symtab.
216 2005-01-21 Ben Elliston <bje@au.ibm.com>
218 * dlltool.c (dump_iat): Remove unused function.
219 (gen_exp_file): Remove #if 0'd code.
220 (make_one_lib_file): Likewise.
221 * srconv.c: Remove #if 0'd code throughout.
222 * size.c (lprint_number): Remove.
223 (print_berkeley_format): Remove #if 0'd code.
224 * ar.c (do_quick_append): Remove declaration and definiton.
225 (main): Remove #if 0'd code.
226 * filemode.c (filemodestring): Remove #if 0'd function.
227 * sysdump.c (unit_info_list): Remove function.
228 (object_body_list): Likewise.
229 (program_structure): Likewise.
230 (debug_list): Likewise.
231 (module): Remove #if 0'd code.
233 2005-01-20 Mark Mitchell <mark@codesourcery.com>
235 * BRANCHES: Add binutils-2_15-branch.
237 * MAINTAINERS: Document branch policy.
238 * BRANCHES: New file.
240 2005-01-19 Fred Fish <fnf@specifixinc.com>
242 * NEWS: Make note of the new MIPS disassembly option "no-aliases".
243 * doc/binutils.texi (objdump): Document the "no-aliases"
246 2005-01-17 Eugene Kotlyarov <ekot@narod.ru>
249 * rcparse.y (RCDATA): Allow a filename to be supplied as the
250 parameter. Parse it with define_rcdata_file().
251 * resrc.c (define_rcdata_file): New function.
252 * windres.h: Provide a prototype for the new function.
254 * resrc.c (define_user_file): Fix typo by replacing "font file"
257 2005-01-16 Jason Thorpe <thorpej@netbsd.org>
259 * MAINTAINERS: Update my email address.
261 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
263 * dlltool.c (set_dll_name_from_def): New function. Strip name
264 to basename, with warning.
266 (def_library): Likwise.
267 (main): Strip arg of --dllname to basename, with warning.
268 Only use basename of exp_name when inferring dll_name.
270 2005-01-11 Nick Clifton <nickc@redhat.com>
273 * doc/binutils.texi (c++filt): Use uppercase CXXFILT in the
274 footnote in order to prevent the sed script in the Makefile from
275 converting it into c++filt.
277 2005-01-10 H.J. Lu <hongjiu.lu@intel.com>
280 readelf.c (saved_base_address): Removed.
281 (decode_64bit_range): Likewise.
282 (decode_range): Likewise.
283 (display_64bit_debug_ranges): Likewise.
284 (debug_info): Add range_lists, num_range_lists and
286 (read_and_display_attr_value): Handle do_debug_ranges.
287 (process_debug_info): Likewise.
288 (display_debug_ranges): Rewrite.
289 (process_object): Free range_lists.
291 2005-01-10 Andreas Schwab <schwab@suse.de>
293 * configure.in: Don't define SKIP_ZEROES.
294 * configure: Regenerate.
295 * objdump.c (disassemble_data): Set skip_zeroes and
296 skip_zeroes_at_end in disasm_info to defaults.
297 (DEFAULT_SKIP_ZEROES): Rename from SKIP_ZEROES and always define.
298 (DEFAULT_SKIP_ZEROES_AT_END): Rename from SKIP_ZEROES_AT_END and
300 (disassemble_bytes): Use skip_zeroes and skip_zeroes_at_end from
303 2005-01-05 H.J. Lu <hongjiu.lu@intel.com>
305 * readelf.c (display_debug_loc): Display base address
306 specifiers. Always output <End of list>.
308 2005-01-05 H.J. Lu <hongjiu.lu@intel.com>
310 * readelf.c (have_frame_base): New.
311 (need_base_address): Likewise.
312 (saved_base_address): Likewise.
313 (decode_location_expression): Return 1 if DW_AT_frame_base is
315 (debug_info): Add base_address and a have_frame_base pointer.
316 (read_and_display_attr_value): Replace saved_DW_AT_low_pc with
317 saved_base_address. Record base address. Set have_frame_base.
318 Record if a location list has DW_AT_frame_base. Display if a
319 location expression has no DW_AT_frame_base but needs one. Set
320 saved_base_address only if needed.
321 (process_debug_info): Clear have_frame_base, saved_base_address
322 and set need_base_address.
323 (display_debug_loc): Display if a location expression has no
324 DW_AT_frame_base but needs one. Display if start >= end. Don't
325 adjust for section address. Properly handle base address.
326 (process_object): Free the have_frame_base pointer in
329 2005-01-04 H.J. Lu <hongjiu.lu@intel.com>
331 * readelf.c (display_debug_loc): Display offsets for hole and
333 (display_debug_str): Add a newline at the end.
335 2005-01-04 Armin Diehl <diehl@nordrhein.de>
338 * nlmconv.c (main): Only store the basename of the output filename
341 2005-01-04 H.J. Lu <hongjiu.lu@intel.com>
344 * readelf.c (process_debug_info): New.
345 (debug_info): Add num_loc_offsets, loc_offsets and
347 (get_debug_info): Use process_debug_info.
348 (display_debug_loc): Properly handle location list. Warn if bad
349 location lists are encoutnered.
350 (read_and_process_attr_value): New.
351 (read_and_display_attr_value): Use "%lx" for DW_FORM_data4.
352 (display_debug_info): Use process_debug_info.
353 (process_object): Also free loc_offsets in debug_information.
355 2004-12-31 Alan Modra <amodra@bigpond.net.au>
357 * objdump.c (remove_useless_symbols): Discard section symbols.
359 2004-12-27 H.J. Lu <hongjiu.lu@intel.com>
361 * readelf.c (read_leb128): Support 64bit host.
363 2004-12-23 Nick Clifton <nickc@redhat.com>
366 * readelf.c (debug_info): Add 'cu_offset' field.
367 (get+pointer_size_of_comp_unit): Rename to
368 'get_pointer_size_and_offset_of_comp_unit'. Add code to return
369 the offset of the comp_unit if requested.
370 (get_debug_info): Record comp_unit offsets as well.
371 (display_debug_lines): Call get_pointer_size_of_comp_unit.
372 (decode_location_expression): Add an extra parameter - the offset
373 of the current comp-unit. Use this when decoding the DW_OP_call2
374 and DW_OP_call4 operators.
375 (display_debug_loc): Call get_pointer_size_of_comp_unit, pass the
376 comp_unit offset on the decode_location_expression.
377 (read_and_display_attr_value): Pass the comp_unit offset on the
378 decode_location_expression.
379 (display_debug_frames): Pass 0 as the comp_unit offset to
380 decode_location_expression.
382 2004-12-22 Nick Clifton <nickc@redhat.com>
384 * readelf.c (last_pointer_size, warned_about_missing_comp_units):
385 New variables associated with obtaining the pointer size for a
387 (get_pointer_size_of_comp_unit): Add an extra parameter - the name
388 of the section requesting the pointer size. Use this name in
389 error messages. If there are not enough comp_units available
390 produce a warning message, but return the last known pointer size
391 so that section dumping can continue.
392 (get_debug_info): Reset the new variables.
393 (display_debug_lines): Add extra parameter to invocation of
394 get_pointer_size_of_comp_unit and remove error message when it
396 (display_debug_loc): Likewise.
398 2004-12-15 Jan Beulich <jbeulich@novell.com>
400 * doc/binutils.texi: Document --strip-unneeded-symbol and
401 --strip-unneeded-symbols.
402 * objcopy.c (strip_unneeded_list): New.
403 (enum command_line_switch): Add OPTION_STRIP_UNNEEDED_SYMBOL
404 and OPTION_STRIP_UNNEEDED_SYMBOLS.
405 (copy_options): Add --strip-unneeded-symbol and
406 --strip-unneeded-symbols.
407 (copy_usage): Likewise.
408 (filter_symbols): Suppress copying of symbol if in strip_unneeded_list
409 and the symbol is not needed.
410 (copy_main): Handle OPTION_STRIP_UNNEEDED_SYMBOL and
411 OPTION_STRIP_UNNEEDED_SYMBOLS.
413 2004-12-09 Ian Lance Taylor <ian@wasabisystems.com>
415 * readelf.c (get_machine_flags): Handle E_MIPS_MACH_9000.
417 2004-12-08 Ben Elliston <bje@au.ibm.com>
419 * arlex.l: Fix formatting.
421 2004-12-08 Ben Elliston <bje@au.ibm.com>
423 * doc/Makefile.am (config.texi): Emit a @set UPDATED command to
424 config.texi whose value is the current month and year.
425 * doc/Makefile.in: Rebuild.
426 * doc/binutils.texi: Set the document subtitle to be the value of
427 the Texinfo UPDATED variable (obtained from config.texi).
429 2004-12-07 Ben Elliston <bje@au.ibm.com>
432 * doc/binutils.texi (def file format): New node.
433 (dlltool): Use the tool name as the @chapter name, like all the
434 other binutils. Use @file{.def} throughout for consistency.
436 2004-12-06 Ben Elliston <bje@au.ibm.com>
438 * dlltool.c: Comment fix.
440 2004-12-06 Ben Elliston <bje@au.ibm.com>
442 * doc/binutils.texi: Update copyright years.
444 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
446 * MAINTAINERS: Remove mention of config.if.
448 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
450 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
451 * Makefile.in: Regenerate.
453 2004-11-10 Ian Lance Taylor <ian@wasabisystems.com>
456 * stabs.c (stab_demangle_template): Call stab_demangle_count
457 rather than stab_demangle_get_count to get the length of a pointer
460 2004-11-10 Danny Smith <dannysmith@users.sourceforge.net>
462 * defparse.y: Remove unnecessary commas from token list.
464 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
466 * doc/binutils.texi (nm): Update description of weak symbols.
468 2004-11-03 Nick Clifton <nickc@redhat.com>
470 * readelf.c (do_debug_ranges): New variable.
471 (usage): Document new switch: -wR or --debug-dump=Ranges.
472 (parse_args): Handle new switch. Replace switch statement for the
473 long options with a more compact table structure.
474 (process_section_headers): Allow the dumping of .debug_ranges
475 sections if so requested.
476 (debug_displays): Likewise.
477 (load_debug_range): New function: Grabs the contents of a
478 .debug_ranges section.
479 (free_debug_range): New function: Releases the grabbed
480 .debug_ranges section.
481 (decode_64bit_range): New function: Displays a 64-bit range in a
482 .debug_ranges section.
483 (decode_range): New function: Displays a 32-bit range in a
484 .debug_ranges section.
485 (read_and_display_attr_value): Record the value of DW_AT_low_pc
486 attributes. Use decode_ranges() to display a DW_AT_ranges
488 (display_debug_info): Use load_debug_range() and
490 (display_64bit_debug_ranges): New function. Displays the contents
491 of a 64-bit format .debug_ranges section.
492 (display_debug_ranges): New function: Displays the contents of a
493 32-bit .debug_ranges section.
495 (main): Move cmdline_dump_sects and num_cmdline_dump_sects into the
497 (process_object): Initialise the dump_sects array from the
498 cmdline_dump_sects array before processing each object file.
500 (streq, strneq): New macros. Use them to replace occurrences of
501 strcmp() and strncmp().
503 (debug_information): New structure array to replace
504 debug_line_pointer_sizes array.
505 (num_debug_info_entries): New variable to replace
506 num_debug_line_pointers.
507 (get_pointer_size_of_comp_unit): New function: Returns the pointer
508 size of a given compilation unit.
509 (get_debug_info): New function to replace
510 get_debug_line_pointer_sizes.
511 (display_debug_lines): Use the new functions.
512 (display_debug_loc): Likewise.
514 (disassemble_section): Change return type to int.
515 (display_debug_lines): Move local variables to their
517 (display_debug_section): Likewise. Also record the return value
518 of functions called and pass this back to the parent. Also only
519 warn about undumped sections when the user explicitly requested
522 (debug_apply_rela_addends): Allow relocations against STT_OBJECT
525 * NEWS: Mention the support for decoding .debug_ranges sections.
526 * doc/binutils.texi: Document the new command line switch to
529 2004-11-03 Randolph Chung <tausq@debian.org>
531 * readelf.c (ia64_unw_aux_info, ia64_unw_table_entry): Rename from
532 unw_aux_info and unw_table_entry.
533 (find_symbol_for_address): Pass symtab and strtab info explicitly.
534 (dump_ia64_unwind): Rename unw_{aux_info,table_entry} with ia64_
536 (slurp_ia64_unwind_table): Likewise.
537 (ia64_process_unwind): Rename from old process_unwind.
538 (hppa_unw_aux_info): New.
539 (dump_hppa_unwind): New.
540 (slurp_hppa_unwind_table): New.
541 (hppa_process_unwind): New.
542 (process_unwind): Factor out common unwinding checks; dispatch to
543 unwind handler based on machine type.
545 2004-11-02 Nick Clifton <nickc@redhat.com>
547 * readelf.c (display_debug_lines): Fix typo in error message.
549 2004-10-26 Mark Mitchell <mark@codesourcery.com>
551 * readelf.c (get_note_type): Handle notes not in core files.
552 (process_note_sections): New function.
553 (process_corefile_contents): Rename to ...
554 (process_notes): ... this.
555 (process_object): Call process_notes, not
556 process_corefile_contents.
557 * doc/binutils.texi: Update readelf -n documentation.
559 2004-10-26 Jakub Jelinek <jakub@redhat.com>
561 * ar.c (extract_file): Set atime to mtime for ar xo.
563 2004-10-25 Ian Lance Taylor <ian@wasabisystems.com>
565 * stabs.c (stab_demangle_v3_arglist): New static function, broken
566 out of stab_demangle_v3_argtypes.
567 (stab_demangle_v3_argtypes): Call it.
568 (stab_demangle_v3_arg): Handle DEMANGLE_COMPONENT_FUNCTION_TYPE.
569 If we find an unrecognized component, print out its number.
571 2004-10-25 David Mosberger <davidm@hpl.hp.com>
573 * readelf.c (slurp_ia64_unwind_table): Support relocations against
574 non-section symbols by adding in the symbol value.
576 2004-10-25 Nick Clifton <nickc@redhat.com>
579 * readelf.c (dynamic_strings_length): New global variable.
580 (VALID_DYNAMIC_NAME, GET_DYNAMIC_NAME): New macros for accessing
581 strings in the dynamic string table.
582 (process_section_headers): Initialise dynamic_strings_length.
583 (process_dynamic_section): Likewise.
584 (process_object): Reset dynamic_string_length when the buffer is freed.
585 (dynamic_sections_mips_val): Use the new macros.
586 (process_dynamic_section): Likewise.
587 (process_version_sections): Likewise.
588 (process_symbol_table): Likewise.
589 (process_syminfo): Likewise.
590 (process_mips_specific): Likewise.
591 (dump_relocations): Add a new parameter 'strtablen' and use this
592 to verify that string offset in a given reloc is valid. Print a
593 suitable error message otherwise.
594 (process_relocs): Pass the new argument to dump_relocations.
596 2004-10-23 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
598 * dlltool.c: Include <assert.h>.
599 (PREFIX_ALIAS_BASE): Define.
600 (struct export): Add member import_name;
601 (def_exports): Set import_name.
602 (make_one_lib_file): Remove prefix alias code, use import_name
604 (gen_lib_file): Create and delete aliases.
606 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
608 * readelf.c (process_section_groups): Free symtab after use.
610 2004-10-18 Tommy Pettersson <ptp@lysator.liu.se>
611 Nick Clifton <nickc@redhat.com>
613 * strings.c (usage): Place radix values for -t option into the
616 * objcopy.c (add_redefine_syms_file): Change error messages to use
617 <filename>:<linenumber>: format for easier parsing by automatic
620 * srconv.c (show_usage): Fix spelling typo.
622 * windres.c (format_from_filename): Suggest the use of -J instead
623 of -I if the file type cannot be determined.
625 2004-10-18 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
627 * strings.c: Include <sys/stat.h>.
629 2004-10-18 Alan Modra <amodra@bigpond.net.au>
631 * budemang.c (demangle): Fix thinko.
633 * budemang.c (demangle): Handle "@plt" suffix.
635 2004-10-14 Nick Clifton <nickc@redhat.com>
637 * nm.c (usage): Fix description of --special-syms switch.
639 2004-10-13 Jakub Jelinek <jakub@redhat.com>
641 * strings.c (statbuf): New typedef.
643 (strings_object_file): Avoid using get_file_size, instead do the
644 checks here, using file_stat.
645 * configure.in (HAVE_STAT64): New test.
646 * configure: Rebuilt.
647 * config.in: Rebuilt.
649 2004-10-12 Paul Brook <paul@codesourcery.com>
651 * readelf.c (decode_ARM_machine_flags): Support EABI version 4.
653 2004-10-11 Alan Modra <amodra@bigpond.net.au>
655 * objdump.c (dump_symbols): Fix thinko last change. Improve error
658 2004-10-08 Nick Clifton <nickc@redhat.com>
660 * nm.c: Add a new switch --special-syms which, if enabled, will
661 include the ARM Mapping symbols in nm's output.
662 (usage): Mention the switch.
663 (filter_symbols): Handle the switch.
664 * objdump.c: Add a similar switch.
665 (usage): Mention the switch.
666 (dump_symbols): Handle the switch.
667 * doc/binutils.texi: Document the new switches.
668 * NEWS: Mention the new switches.
670 2004-10-08 Daniel Jacobowitz <dan@debian.org>
672 * readelf.c (get_x86_64_section_type_name): New function.
673 (get_section_type_name): Use it.
675 2004-10-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
677 * dlltool.c (make_one_lib_file): Revert 2004-09-02 and 2004-09-04
679 * doc/binutils.texi (dlltool): Revert 2004-09-06 patch.
681 2004-10-07 Alexandre Oliva <aoliva@redhat.com>
683 * readelf.c (get_machine_flags): Don't fall through into m68k cpu
686 2004-10-01 Paul Brook <paul@codesourcery.com>
688 * readelf.c (get_arm_section_type_name): New function.
689 (get_section_type_name): Use it.
691 2004-09-28 Nick Clifton <nickc@redhat.com>
693 * nm.c: Reorder functions to eliminate most of the static function
696 2004-09-22 Alan Modra <amodra@bigpond.net.au>
698 * readelf.c (process_program_headers): Don't include .tbss in non-TLS
701 2004-09-17 Alan Modra <amodra@bigpond.net.au>
703 * Makefile.am: Run "make dep-am".
704 * Makefile.in: Regenerate.
705 * config.in: Regenerate.
706 * configure: Regenerate.
707 * doc/Makefile.in: Regenerate.
708 * po/binutils.pot: Regenerate.
710 2004-09-12 Alan Modra <amodra@bigpond.net.au>
712 * readelf.c (decode_location_expression): Sign extend value for
713 DW_OP_const1s, DW_OP_const2s, DW_OP_const4s, DW_OP_bra, DW_OP_skip.
715 2004-09-09 Nick Clifton <nickc@redhat.com>
718 * ar.c (replace_members): Do not use get_file_size as
719 ar_emul_append correctly handles missing files.
721 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
723 * configure: Regenerated with autconfig 2.13.
725 2004-09-06 Danny Smith <dannysmith@users.sourceforge.net>
727 * doc/binutils.texi (dlltool): Update --add-underscore, --kill-at
730 2004-09-06 Michael Wardle <mbw@endbracket.net>
732 * doc/binutils.texi (objdump): Document that the -x switch includes
733 the effect of the -p switch.
735 2004-09-04 Danny Smith <dannysmith@users.sourceforge.net>
737 * dlltool.c (make_one_lib_file): Test if internal_name was
738 specified by user before using it.
740 2004-09-02 Carlo Wood <carlo@alinoe.com>
743 * dlltool.c (make_one_lib_file): For IDATA6 take the name from
744 exp->internal_name if it is present.
746 2004-09-02 Alexandre Oliva <aoliva@redhat.com>
748 * MAINTAINERS: Add self as co-maintainer of FR-V.
749 * readelf.c (get_machine_flags): Print FR-V cpu types.
751 2004-08-28 Alan Modra <amodra@bigpond.net.au>
753 * nm.c (show_synthetic): New var.
754 (long_options): Add "synthetic".
756 (display_rel_file): Handle show_synthetic.
758 2004-08-28 Alan Modra <amodra@bigpond.net.au>
760 * objdump.c (dump_bfd): Pass both symbol tables to
761 bfd_get_synthetic_symtab.
763 2004-08-17 Jakub Jelinek <jakub@redhat.com>
765 * objdump.c (dump_bfd): For relocatable objects, pass syms instead
766 of dynsyms to bfd_get_synthetic_symtab.
768 2004-08-16 Alan Modra <amodra@bigpond.net.au>
770 * readelf.c (debug_apply_rela_addends): New function, extracted from..
771 (display_debug_info): ..here.
772 (display_debug_frames): Call debug_apply_rela_addends. Don't do
773 DW_EH_PE_pcrel adjustment for ET_REL.
775 2004-08-06 Andreas Schwab <schwab@suse.de>
777 * readelf.c (dump_relocations): Fix typo when calculating
780 2004-08-02 Jakub Bogusz <qboosh@pld-linux.org>
782 * dllwrap.c (deduce_name): Fix typos introduced when program_name
783 was renamed to prog_name.
785 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
787 * readelf.c (get_machine_flags <EM_SH>): Handle EF_SH2A and
790 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
792 2003-07-08 Alexandre Oliva <aoliva@redhat.com>
793 * readelf.c (get_machine_flags <EM_SH)): Handle EF_SH4_NOFPU and
795 2003-06-12 Alexandre Oliva <aoliva@redhat.com>
796 * readelf.c (get_machine_flags <EM_SH>): Print SH ISA name.
798 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
800 * objcopy.c (filter_symbols): Use bfd_coff_get_comdat_section
802 * objdump.c (dump_section_header): Likewise.
804 2004-07-15 Aravinda PR <aravindapr@rediffmail.com>
806 * nlmconv.c (main): Pass map_file argument to link_inputs.
807 (link_inputs): Use map_file argument if it is defined.
809 2004-07-13 Nick Clifton <nickc@redhat.com>
811 * dllwrap.c: Replace 'program_name' with 'prog_name' to avoid
812 conflicts with exported global defined in bucomm.h.
813 (deduce_name): Rename parameter 'program_name' to 'name' to avoid
814 shadowing the global defined in bucomm.h.
816 2004-07-12 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
818 * dlltool.c (ext_prefix_alias): New global variable.
819 (make_one_lib_file): Add aliases with prefixes for external
820 and import definitions.
821 (usage): Document -p option.
822 (long_options): Add --ext-prefix-alias option.
824 * doc/binutils.texi: Document new switch.
825 * NEWS: Mention new switch.
827 2004-07-09 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
829 * binutils/dlltool.c (asm_prefix): Add parameter: name.
830 No underscore for symbols beginning with ?.
831 (ASM_PREFIX): Add parameter: NAME.
832 (gen_exp_file): Use new parameter.
833 (make_label): Likewise.
834 (make_imp_label): Likewise.
835 (make_one_lib_file): Likewise.
837 2004-07-07 Tomer Levi <Tomer.Levi@nsc.com>
839 * MAINTAINERS: Added myself to the list.
840 * readelf.c: Include "elf/crx.h".
841 (guess_is_rela): Handle EM_CRX.
842 (get_machine_name): Likewise.
843 (dump_relocations): Likewise.
845 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
847 * doc/binutils.texi (nm): Clarify weak symbol description.
849 2004-06-24 Ben Elliston <bje@au.ibm.com>
851 * readelf.c (get_segment_type): Display "GNU_STACK", not just
852 "STACK", when a PT_GNU_STACK segment is encountered.
854 2004-06-24 Alan Modra <amodra@bigpond.net.au>
856 * objcopy.c (copy_section): Don't set _cooked_size.
858 2004-06-22 Alan Modra <amodra@bigpond.net.au>
860 * readelf.c (Elf32_Word): Delete.
861 (get_32bit_dynamic_section): Handle SGI ELF dynamic segment.
862 (get_64bit_dynamic_section): Likewise.
864 * readelf.c (get_32bit_dynamic_section): Stop at first DT_NULL entry.
865 (get_64bit_dynamic_section): Likewise.
867 * readelf.c (dynamic_nent): New variable.
868 (get_32bit_dynamic_section): Set it.
869 (get_64bit_dynamic_section): Here too.
870 (process_dynamic_section): Use it instead of dynamic_size.
871 (process_syminfo): Likewise.
873 * readelf.c (get_32bit_dynamic_section): Correct number of entries
874 translated from external to internal form.
875 (get_64bit_dynamic_section): Likewise.
877 2004-06-18 Jie Zhang <zhangjie@magima.com.cn>
879 * readelf.c (process_program_headers): When locating the dynamic
880 section use the section table if it is present.
881 (dynamic_segment): Renamed to dynamic_section.
882 Replace references to dynamic segment with references to dynamic
883 section, except where appropriate.
884 (dynamic_segment_mips_val): Rename to dynamic_section_mips_val.
885 (dynamic_segment_parisc_val): Rename to dynamic_section_parisc_val.
886 (dynamic_segment_ia64_val): Rename to dynamic_section_ia64_val.
887 (get_32bit_dynamic_segment): Rename to get_32bit_dynamic_section.
888 Remove tag counting code as it is no longer needed.
889 (get_64bit_dynamic_segment): Rename to get_64bit_dynamic_section.
890 Remove tag counting code as it is no longer needed.
891 (process_dynamic_segment): Rename to process_dynamic_section.
893 2004-06-15 Alan Modra <amodra@bigpond.net.au>
895 * objcopy.c (copy_section): Use bfd_get_section_size instead of
896 _raw_size or bfd_get_section_size_before_reloc. Don't set reloc_done.
897 (compare_section_lma): Likewise.
898 * addr2line.c (find_address_in_section): Likewise.
899 * coffgrok.c (do_sections_p1): Likewise.
900 * dlltool.c (scan_drectve_symbols): Likewise.
901 * nlmconv.c (main): Likewise.
902 (copy_sections): Likewise.
903 (powerpc_mangle_relocs): Likewise.
904 * objdump.c (disassemble_section): Likewise.
905 * prdbg.c (find_address_in_section): Likewise.
906 * size.c (berkeley_sum): Likewise.
907 * srconv.c (wr_ob): Likewise.
908 * strings.c (strings_a_section): Likewise.
910 2004-05-28 Ian Lance Taylor <ian@wasabisystems.com>
912 * readelf.c (decode_ARM_machine_flags): Add EF_ARM_VFP_FLOAT.
914 2004-05-17 David Heine <dlheine@tensilica.com>
916 * objcopy.c (setup_bfd_headers): New function.
917 (copy_object): Call setup_bfd_headers.
919 2004-05-13 Paul Brook <paul@codesourcery.com>
921 * readelf.c (display_debug_frames): Handle dwarf3 format CIE
924 2004-05-13 Nick Clifton <nickc@redhat.com>
926 * po/fr.po: Updated French translation.
928 2004-05-11 Jakub Jelinek <jakub@redhat.com>
930 * readelf.c (get_segment_type): Handle PT_GNU_RELRO.
932 2004-05-07 H.J. Lu <hongjiu.lu@intel.com>
934 * readelf.c (section_groups): New.
936 (section_headers_groups): New.
937 (process_section_groups): Populate group_count, section_groups
938 and section_headers_groups.
939 (process_unwind): Support section group.
940 (process_object): Always call process_section_groups. Free
941 section_groups and section_headers_groups.
943 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
945 * readelf.c (process_section_headers): Use %3lu on sh_info.
947 2004-04-30 Michael Deutschmann <michael@talamasca.ocis.net>
949 * ranlib.sh: Quote $1 argument in case it contains spaces.
951 2004-04-27 John Paul Wallington <jpw@gnu.org>
953 * objcopy.c (copy_usage, strip_usage): Fix spelling.
955 2004-04-26 H.J. Lu <hongjiu.lu@intel.com>
957 * readelf.c (do_section_groups): New.
958 (options): Add --section-groups/-g.
959 (usage): Mention --section-groups/-g.
960 (parse_args): Support --section-groups/-g.
961 (get_group_flags): New.
962 (process_section_groups): New.
963 (process_object): Call process_section_groups.
965 2004-04-24 Alan Modra <amodra@bigpond.net.au>
967 * objdump.c (disassemble_section): Don't disassemble sections
968 without SEC_HAS_CONTENTS.
970 2004-04-22 Jakub Jelinek <jakub@redhat.com>
972 * objdump.c (synthsyms, synthcount): New variables.
973 (disassemble_data): Use dynsyms for stripped binaries or libraries.
974 Add synthetized symbols.
975 (dump_bfd): For disassemble, initialize dynsyms always and
976 also synthsyms. Free synthsyms and clear {sym,dynsym,synth}count
979 2004-04-14 Alan Modra <amodra@bigpond.net.au>
981 * strings.c (print_strings): Cast file_off to unsigned long in
984 2004-04-07 Benjamin Monate <benjamin.monate@cea.fr>
987 * arsup.c (ar_save): Use smart_rename.
989 2004-04-01 Dean Luick <luick@cray.com>
991 * readelf.c (display_debug_pubnames): Align offset and data
993 (read_and_display_attr_value): Add missing break;
994 (debug_displays): Enable the display of the .debug_pubtypes
997 2004-03-30 Stan Shebs <shebs@apple.com>
999 * mpw-config.in, mpw-make.sed, mac-binutils.r: Remove MPW
1000 support files, no longer used.
1002 2004-03-23 Paul Brook <paul@codesourcery.com>
1004 * readelf.c (decode_ARM_machine_flags): Add EABI v3.
1006 2004-03-21 Richard Henderson <rth@redhat.com>
1008 * readelf.c (display_debug_frames): Don't crash for mismatched
1009 DW_CFA_restore_state.
1011 2004-03-19 Alan Modra <amodra@bigpond.net.au>
1013 * Makefile.am: Run "make dep-am".
1014 * Makefile.in: Regenerate.
1015 * aclocal.m4: Regenerate.
1016 * config.in: Regenerate.
1017 * configure: Regenerate.
1018 * po/binutils.pot: Regenerate.
1020 2004-03-15 Nathan Sidwell <nathan@codesourcery.com>
1022 * objdump.c (struct SFILE): Replace current pointer with pos
1023 offset, rename size to alloc.
1024 (objdump_sprintf): Avoid unnecessary copies in the common case
1025 (disassemble_bytes): Keep sfile live throughout the
1026 function. Adjust usage appropriately.
1028 2004-03-10 Ben Elliston <bje@gnu.org>
1030 * MAINTAINERS: Update my mail address.
1032 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1034 * deflex.l: Handle "PRIVATE" string.
1035 * defparse.y (%token): Add PRIVATE.
1036 (%type): Add opt_PRIVATE.
1037 (expline): Pass opt_PRIVATE to def_exports.
1038 (opt_PRIVATE): Handle PRIVATE token.
1039 * dlltool.h (def_exports): Add 7th param for private flag to
1041 * dlltool.c: Add PRIVATE to comment on EXPORTS syntax.
1042 (struct export): Add 'private' field.
1043 (def_exports): Set 'private' field of struct exports.
1044 (scan_drectve_symbols): Adjust calls to def_exports.
1045 (scan_filtered_symbols): Likewise.
1046 (dump_def_info): Print 'private' field.
1047 (gen_def_file): Likewise.
1048 (gen_lib_file): Skip generation of lib object if private.
1049 Delete tmp object files in same order as they were generated.
1050 Don't delete non-existent private object files.
1052 2004-02-27 Andreas Schwab <schwab@suse.de>
1054 * ar.c (main): Support POSIX-compatible argument parsing.
1056 2004-02-23 Daniel Lucq <daniel@lucq.org>
1058 * readelf.c (process_mips_specific): Print conflictsno as an
1061 2004-02-21 Dmitry Timoshkov <dmitry@baikal.ru>
1063 * dlltool.c (gen_exp_file): Always output names for forwarded symbols.
1065 2004-02-19 Jakub Jelinek <jakub@redhat.com>
1067 * objcopy.c (copy_section): Avoid warnings.
1069 2004-02-14 Andrew Cagney <cagney@redhat.com>
1071 * ar.c (remove_output): Use bfd_cache_close.
1072 * arsup.c (ar_end): Ditto.
1074 2004-01-21 Roland McGrath <roland@redhat.com>
1076 * readelf.c (get_note_type): Match NT_AUXV.
1078 2004-01-20 Nick Clifton <nickc@redhat.com>
1080 * version.c (print_version): Update copyright year to 2004.
1082 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1084 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
1086 * aclocal.m4: Regenerate.
1087 * configure: Regenerate.
1089 2004-01-12 Jakub Jelinek <jakub@redhat.com>
1091 * objcopy.c: Include elf-bfd.h.
1092 (is_strip_section): Don't strip debugging sections if
1094 (setup_section): If STRIP_NONDEBUG make SEC_ALLOC sections
1095 ~(SEC_LOAD | SEC_HAS_CONTENTS) and on ELF targets also SHT_NOBITS.
1097 * objcopy.c (copy_section): Free relpp if relcount == 0.
1099 2004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
1101 * stabs.c (parse_stab_argtypes): Handle g++ ABI version 3 names.
1102 (stab_demangle_argtypes): Likewise.
1103 (stab_demangle_v3_argtypes): New static function.
1104 (stab_demangle_v3_arg): New static function.
1106 2004-01-12 Nick Clifton <nickc@redhat.com>
1108 * objcopy.c (copy_object): Make the function boolean, returning
1110 (copy_archive): Handle the return value from copy_object.
1111 (copy_file): Likewise.
1113 2004-01-07 Nick Clifton <nickc@redhat.com>
1115 * readelf.c (find_section): New function. Locates a named
1117 (get_debug_line_pointer_sizes): New function: Initialises the
1118 debug_line_pointer_sizes array.
1119 (display_debug_lines): Call get_debug_line_pointer_sizes.
1120 (display_debug_loc): Likewise.
1121 (load_debug_loc): Use find_section.
1122 (load_debug_str): Likewise.
1123 (display_debug_info): Likewise.
1124 (prescan_debug_info): Delete.
1125 (debug_displays): Remove prescan field.
1126 (process_section_contents): Do not perform prescans.
1128 2004-01-03 Alan Modra <amodra@bigpond.net.au>
1130 * objcopy.c (filter_bytes): Delete. Move code to..
1131 (copy_section): ..here. Simplify size adjustment. Divide
1132 section lma by interleave.
1134 2004-01-02 Nick Clifton <nickc@redhat.com>
1136 * po/ru.po: New file: Russian translation.
1137 * configure.in (ALL_LINGUAS): Add ru
1138 * configure: Regenerate.
1140 For older changes see ChangeLog-0203
1146 version-control: never