3 * readelf.c (process_archive): Also skip Irix6-style archive symbol
8 * readelf.c (NUM_ELEM): Remove redundant macro; replace references
9 to it with references to ARRAY_SIZE.
16 * srconv.c (strip_suffix): Add const qualifier to argument.
20 * po/uk.po: New Ukrainian translation.
21 * configure.in (ALL_LINGUAS): Add 'uk'.
22 * configure: Regenerate.
26 * objdump.c (dump_dwarf): Correct setting of is_relocatable.
30 * readelf.c (get_gnu_elf_note_type): New function.
31 (process_note): Use it for "GNU" name.
35 * Makefile.am (HFILES): Add dwarf.h, sysdep.h and unwind-ia64.h.
36 (CFILES): Add unwind-ia64.c.
37 Regenerate dependencies.
38 * Makefile.in: Regenerate.
42 * addr2line.c: Update copyright notice to refer to GPLv3.
43 * ar.c, arlex.l, arparse.y, arsup.c, arsup.h, bin2c.c, binemul.c,
44 binemul.h, bucomm.c, bucomm.h, budbg.h, coffdump.c, coffgrok.c,
45 coffgrok.h, cxxfilt.c, debug.c, debug.h, deflex.l, defparse.y,
46 dlltool.c, dlltool.h, dllwrap.c, dwarf.c, dwarf.h, embedspu.sh,
47 emul_aix.c, emul_vanilla.c, filemode.c, ieee.c, mclex.c,
48 mcparse.y, nlmconv.c, nlmconv.h, nlmheader.y, nm.c, objcopy.c,
49 objdump.c, prdbg.c, rclex.c, rcparse.y, rdcoff.c, rddbg.c,
50 readelf.c, rename.c, resbin.c, rescoff.c, resrc.c, resres.c,
51 size.c, srconv.c, stabs.c, strings.c, sysdep.h, sysdump.c,
52 sysinfo.y, syslex.l, unwind-ia64.c, unwind-ia64.h, version.c,
53 windint.h, windmc.c, windmc.h, windres.c, windres.h, winduni.c,
54 winduni.h, wrstabs.c: Likewise.
55 * is-ranlib.c, is-strip.c, maybe-ranlib.c, maybe-strip.c,
56 not-ranlib.c, not-strip.c, ranlib.sh, sanity.sh: Add a copyright
58 * NEWS: Mention that the sources are now released under GPLv3.
59 Add a marker for the changes that went into v2.17.
60 * version.c (print_version): Specify that the program is released
61 under version 3 of the GPL.
65 * resrc.c: (read_rc_file): Add include path of user passed rc
67 * windres.c: (windres_add_include_dir): New.
68 (main): Use of windres_add_include_dir.
69 * windres.h: (windres_add_include_dir): Add prototype.
73 * doc/binutils.texi (size): Document --common.
74 * size.c: Make a number of vars static. Delete unnecessary
75 function declarations.
76 (show_common, common_size): New vars.
77 (usage): Describe --common.
78 (OPTION_FORMAT, OPTION_RADIX, OPTION_TARGET): Define and use.
79 (long_options): Add common.
80 (calculate_common_size): New function.
81 (print_berkeley_format): Add common_size to bsssize.
82 (sysv_one_line): New function split out from..
83 (sysv_internal_printer): ..here.
84 (print_sysv_format): Handle display of *COM*.
85 (print_sizes): Call calculate_common_size.
89 * emul_aix.c (ar_emul_aix_internal): Rename "next" to "archive_next".
94 * objcopy.c (filter_symbols): Correct relocatable file test.
98 * Makefile.am: Run "make dep-am".
99 * Makefile.in: Regenerate.
100 * aclocal.m4: Regenerate.
101 * config.in: Regenerate.
102 * doc/Makefile.in: Regenerate.
103 * po/POTFILES.in: Regenerate.
104 * po/binutils.pot: Regenerate.
108 * aclocal.m4: Regenerated.
109 * doc/Makefile.in: Likewise.
110 * Makefile.in: Likewise.
114 * readelf.c (display_power_gnu_attribute, process_power_specific):
116 (process_arch_specific): Call process_power_specific.
120 * readelf.c (display_mips_gnu_attribute): New.
121 (process_mips_specific): Call process_attributes.
125 * readelf.c (display_gnu_attribute): New.
126 (process_arm_specific): Rearrange as process_attributes.
127 (process_arm_specific): Replace by wrapper of process_attributes.
131 * objcopy.c (setup_section): Don't reset ELF section type to
132 SHT_NOBITS when it is SHT_NOTE.
133 * doc/binutils.texi (objcopy, strip): Mention under --only-keep-debug.
137 * ar.c: Rename uses of bfd.next to bfd.archive_next throughout.
139 * binemul.c: Likewise.
140 * objcopy.c: Likewise.
141 * dlltool.c: Likewise.
146 * Makefile.am (windres_DEPENDENCIES, windmc_DEPENDENCIES): Move
147 dependency on $(LIBICONV) to ...
148 (windres_LDADD, windmc_LDADD) ... here.
149 * Makefile.in: Regenerate.
153 * embedspu.sh (relas): Correct sh_info parsing.
157 * objdump.c: Include sys/stat.h.
161 * Makefile.am: Add windmc tool.
162 * Makefile.in: Regenerate.
163 * configure.in: Add windmc tool.
164 * configure: Regenerate.
169 * doc/Makefile.am: Add windmc tool.
170 * doc/Makefile.in: Regenerate.
171 * doc/binutils.texi: Add windmc documentation.
172 * NEWS: Mention new tool.
176 * objdump.c: Include sys/mman.h
177 (print_file_list): Remove f, add map, mapsize, linemap, maxline,
178 last_line, first fields.
181 (print_file_open): Call slurp_file and index_file. Initialize new
183 (skip_to_line): Rename to print_line and write only single line.
185 (show_line): Change to new algorithm.
189 * resres.c (probe_binary): Fix test for badly formatted headers.
193 * rclex.c: (cpp_line): Add code_page pragma support.
194 * windres.c: (usage, long_options, main): Add new option
196 * winduni.c: (wind_default_codepage, wind_current_codepage): New.
197 (unicode_from_ascii, ascii_from_unicode): Use
198 wind_current_codepage as codepage parameter.
199 (unicode_print): Print 4 characters for hexadecimal values in
201 * winduni.h: (wind_default_codepage, wind_current_codepage):
203 * doc/binutils.texi: Document new option.
204 * NEWS: Mention new features of windres.
208 * embedspu.sh: Parse _SPUEAR_ symbol values as hex.
212 * Makefile.am (ACLOCAL_AMFLAGS): Add -I ../config -I ../bfd.
214 * acinclude.m4: Removed.
216 * Makefile.in: Regenerated.
217 * aclocal.m4: Likewise.
218 * configure: Likewise.
222 * dwarf.c (decode_location_expression): Add DW_OP_form_tls_address.
226 PR binutils/4356 binutils/591
227 * resrc.c (filename_need_quotes): New function.
228 (look_for_default): If filename_need_quotes is true then quote the
229 filename in the command line being created.
230 (read_rc_file): Likewise.
234 * doc/binutils.texi (objdump): Fix capitalisation of "PowerPC".
238 * Makefile.am: Add LIBICONV to windres.
239 * acinclude.m4: Added missing "lib-*.m4" and "lt*.m4" files.
240 * configure.in: Add AC_CHECK_HEADER for iconv.h and use AM_ICONV.
241 * config.in: Add ICONV defines.
242 * aclocal.m4: Regenerate.
243 * confugure: Regenerate.
244 * winduni.c: (local_iconv_map codepages, wind_language_t,
245 languages, unicode_is_valid_codepage, wind_find_language_by_id,
246 wind_find_language_by_codepage, wind_find_codepage_info,
247 unicode_from_codepage, codepage_from_unicode, iconv_onechar,
248 wind_iconv_cp, wind_MultiByteToWideChar wind_WideCharToMultiByte):
250 (ascii_from_unicode): Use codepage_from_unicode.
251 (ascii_from_unicode): Use unicode_from_codepage.
252 Use for cygwin windows API for unicode transformation.
253 * winduni.h: (CP_ACP, CP_UTF7, CP_UTF8, CP_OEM, CP_UTF16): New
255 (wind_language_t, local_iconv_map): New types.
256 (wind_find_language_by_id, wind_find_language_by_codepage,
257 unicode_is_valid_codepage, wind_find_codepage_info,
258 unicode_from_codepage, codepage_from_unicode): New
263 * embedspu.sh: Handle R_SPU_PPU* relocs with no symbol.
267 * objcopy.c (copy_object): Revert 2007-05-11 change. Don't
268 avoid calling bfd_copy_private_bfd_data for ELF STRIP_NONDEBUG.
269 (setup_section): Don't modify flags, and don't avoid calling
270 bfd_copy_private_section_data for ELF STRIP_NONDEBUG.
271 * readelf.c (process_program_headers): Ignore .dynamic of type
276 * embedspu.sh: Emit SPU ELF image to .data.rel.ro.speelf if
277 pic or pie and image needs relocs.
281 * Makefile.in: Regenerate.
282 * configure: Regenerate.
283 * aclocal.m4: Regenerate.
284 * doc/Makefile.in: Regenerate.
288 * rcparse.y: Join strings for elements having no side-effects in
293 * rclex.c: New file replacing rclex.l.
295 * windint.h: New file holding common structure and type
297 * Makefile.am: Added new header windint.h and exchanged rclex.l by
299 * Makefile.in: Regenerate.
300 * rcparse.y: Renamed some structures.
301 Use in internal representation always bfd_vma instead of long or
303 Removed from %union unused stringtable.
304 Added to %union suni structure for unicode strings.
305 Added new tokens for ANICURSOR, ANIICON, DLGINCLUDE,
306 DLGINIT, FONTDIR, HTML, MANIFEST, PLUGPLAY, VXD,
307 TOOLBAR, BUTTON, QUOTEDUNISTRING, and SIZEDUNISTRING.
308 Added support for these new rc file tokens.
309 * resbin.c: Rewrote using bfd and binary structures, and support
311 * rescoff.c: Likewise.
312 * resres.c: Likewise.
313 * resrc.c: Likewise. Dumps as RC are now recompilable.
314 * windres.c: As above. Using bfd for res and provide target
315 specific endianess support.
316 * windres.h: Use windint.h as include. Additionally removed K&R
318 * winduni.c: New printing and unichar support routines.
319 * winduni.h: Prototypes for new unichar helpers.
320 * windint.h: New file.
324 * objdump.c (find_symbol_for_address): Merge section and target
325 specific filtering code.
329 * doc/binutils.texi: Use @copying around the copyright notice.
333 * objdump.c (disassemble_bytes): Ignore disassembler_needs_relocs
334 for executables and shared libraries.
338 * objcopy.c (strip_main): Detect identical input and output file
340 (copy_main): Refactor tempname detection and use.
344 * objdump.c (load_debug_section): Select bias for DWARF debug
345 addresses based on the flavour of the bfd.
350 * objcopy.c (copy_object): Don't copy ELF program headers for
355 * embedspu.sh (find_prog): Prefer prog in same dir as embedspu
356 over one found on the users path.
357 (main): Generate .reloc for each R_SPU_PPU* reloc.
361 * prdbg.c (tg_variable): Adjust for changed demangler.
362 (tg_start_function): Likewise.
366 * bucumm.h: Split off host dependencies to..
368 Many files: Include sysdep.h. Remove duplicate headers and reorder.
369 * Makefile.am: Run "make dep-am".
370 * Makefile.in: Regenerate.
374 * srconv.c (walk_tree_type_1): Initialise dpt.dunno.
379 * objcopy.c (filter_symbols): Explicitly stripping a symbol
380 used in relocations is an error.
381 Retype 'keep' to bfd_boolean.
385 * Makefile.in: Regenerate.
386 * doc/Makefile.in: Regenerate.
392 * objcopy.c (reverse_bytes): New variable.
393 (command_line_switch, copy_main): Add OPTION_REVERSE_ENDIAN.
394 (copy_options, copy_usage): Add "reverse-bytes" entry.
395 (copy_section): Reverse bytes within output sections.
396 * doc/binutils.texi: Document new objcopy option.
400 * rclex.l: Allow underscores at the start of identifiers.
404 * budemang.c: Delete.
405 * budemang.h: Delete.
406 * addr2line.c (translate_addresses): Call bfd_demangle rather than
408 * nm.c (print_symname): Likewise.
409 * objdump.c (objdump_print_symname, dump_symbols): Likewise.
410 (dump_bfd): Likewise.
411 * prdbg.c (struct pr_handle <demangler>): Add int param.
412 (tg_variable, tg_start_function): Adjust demangler calls.
413 * Makefile.am: Remove mention of budemang.[ch]. Run "make dep-am".
414 * Makefile.in: Regenerate.
415 * po/POTFILES.in: Regenerate.
419 * Makefile.am: Add ACLOCAL_AMFLAGS.
420 * configure.in: Change macro call order.
421 * Makefile.in: Regenerate.
422 * configure: Regenerate.
426 * Makefile.am (TOOL_PROGS): Add objcopy.
427 * Makefile.in: Rebuilt.
432 * objcopy.c (copy_object): Don't stop when there are no
433 sections to be copied.
437 * NEWS: Mention disjoint histograms support in
442 * dwarf.c (process_debug_info): Do not require DW_AT_frame_base for
443 DW_TAG_inlined_subroutine.
447 * MAINTAINERS: Add myself as VAX and NetBSD support maintainer.
452 * nm.c (print_value): Cast bfd_vma to unsigned long to suit
458 * nm.c (value_format): Replace with value_format_32bit and
460 (set_radix): Update setting of value_format.
461 (set_print_width): New function. Compute the address size of a
462 given bfd and set the print_width global appropriately.
463 (display_archive): Use set_print_width.
464 (display_file): Likewise,
465 (print_object_filename_sysv): Update use of print_width.
466 (print_archive_member_sysv): Likewise.
467 (print_symbol_filename_posix): Likewise.
468 (print_sumbol_info_bfd, print_symbol_info_sysv): Likewise.
473 * doc/binutils.texi: Put the contents after the title page rather
474 than at the end of the document.
478 * readelf.c (slurp_rela_relocs): Add newline to end of error
480 (slurp_rel_relocs, request_dump, request_dump_byname,
481 process_program_headers, process_dynamic_section,
482 process_symbol_table, process_mips_specific, main): Likewise.
486 * MAINTAINERS: Update mailing list addresses. Add myself
491 * embedspu.sh: Correct toe_addr quoting.
495 * embedspu.sh: Combine "_EAR_" and "_EAR_*" patterns. Tighten
496 .toe section and .toe address checks. Use .reloc for _EAR*
497 symbols defined in non-BSS sections. Build table for _SPUEAR_
503 * readelf.c (debug_apply_rela_addends): Do nothing for SH.
507 * doc/binutils.texi: Include VERSION_PACKAGE when reporting
512 * dlltool.c (make_one_lib_file): Use pc-relative relocation
513 instead of an absolute relocation for x86_64-pc-mingw32 target.
517 * Makefile.am (REPORT_BUGS_TO): Removed.
518 (INCLUDES): Remove -DREPORT_BUGS_TO.
519 * Makefile.in: Regenerated.
521 * bucomm.c: Don't include bfdver.h.
522 * objdump.c: Likewise.
523 * version.c: Likewise.
525 * bucomm.h: Include bfdver.h.
527 * configure.in (--with-bugurl): Removed.
528 * configure: Regenerated.
530 * doc/Makefile.am (binutils_TEXINFOS): Removed.
531 (AM_MAKEINFOFLAGS): Add -I ../../bfd/doc.
532 (TEXI2DVI): Likewise.
533 (config.texi): Removed.
534 (MOSTLYCLEANFILES): Remove config.texi.
535 * doc/Makefile.in: Regenerated.
537 * doc/binutils.texi: Include bfdver.texi instead of
542 * readelf.c (dump_section): Also test for SHT_REL sections when
543 producing the warning about unapplied relocs.
547 * configure.in (REPORT_BUGS_TEXI): Define to Texinfo version of
549 * doc/Makefile.am (config.texi): Define BUGURL.
550 * doc/binutils.texi: Use BUGURL. Remove text about large files
552 * Makefile.in, configure, doc/Makefile.in: Regenerate.
557 * NEWS: Mention addition of --extract-symbol.
558 * doc/binutils.texi: Document it.
559 * objcopy.c (extract_symbol): New variable.
560 (OPTION_EXTRACT_SYMBOLS): New command_line_switch.
561 (copy_options): Add an entry for --extract-symbol.
562 (copy_usage): Mention --extract-symbol.
563 (copy_object): Set the start address to zero for --extract-symbol.
564 Do not copy private BFD data in that case.
565 (setup_section): Set the size, LMA and VMA to zero for
566 --extract-symbol. Do not copy private BFD data in that case.
567 (copy_section): Do not copy section contents if --extract-symbol
569 (copy_main): Set extract_symbol to TRUE if --extract-symbol
574 * MAINTAINERS: Update my entry.
578 * version.c: Update copyright date.
582 * Makefile.am (install-exec-local): Depend on $(noinst_PROGRAMS).
583 Adjust $(EXEEXT) handling for $(RENAMED_PROGS).
584 * Makefile.in, doc/Makefile.in: Regenerate.
588 * embedspu.sh: Set type and size of global program handle symbol.
592 * Makefile.am (PROGS): Delete.
593 (RENAMED_PROGS): Define. Extracted from..
594 (noinst_PROGRAMS): ..here. Add BUILD_MISC.
595 (install-exec-local): Adjust.
596 * Makefile.in: Regenerate.
600 * Makefile.am (PROGS): Add BUILD_INSTALL_MISC.
601 (bin_PROGRAMS): Replace BUILD_MISC with BUILD_INSTALL_MISC.
602 (EXTRA_PROGRAMS): Remove bin2c.
603 (bin2c$(EXEEXT_FOR_BUILD)): New rule.
604 (bin2c_SOURCES): Delete.
605 (DISTCLEANFILES): Remove sysinfo.
606 (MOSTLYCLEANFILES): Add sysinfo$(EXEEXT_FOR_BUILD) and
607 bin2c$(EXEEXT_FOR_BUILD).
608 * configure.in (BUILD_MISC): Add $(EXEEXT_FOR_BUILD) to bin2c.
610 (BUILD_INSTALL_MISC): ..here.
611 * Makefile.in: Regenerate.
612 * configure: Regenerate.
617 * Makefile.am (EXTRA_PROGRAMS): Add bin2c.
618 (CFILES): Add bin2c.c.
619 (bin2c_SOURCES): Define.
620 (bin2c.o): Dependencies from "make dep-am".
621 * configure.in (BUILD_MISC): Add bin2c.
622 * version.c: Update year.
623 * po/POTFILES.in: Regenerate.
624 * Makefile.in: Regenerate.
625 * configure: Regenerate.
632 * configure.in (--with-bugurl): New option.
633 * configure: Regenerate.
634 * Makefile.am (REPORT_BUGS_TO): Define.
635 (INCLUDES): Define REPORT_BUGS_TO.
636 Regenerate dependencies.
637 * Makefile.in: Regenerate.
638 * doc/Makefile.in: Regenerate.
639 * bucomm.h: Remove include of bin-bugs.h.
640 * addr2line.c (usage): Don't print empty REPORT_BUGS_TO.
641 * ar.c (usage): Pass s to list_supported_targets. Don't print
642 empty REPORT_BUGS_TO.
643 * coffdump.c (show_usage): Don't print empty REPORT_BUGS_TO.
644 * cxxfilt.c (usage): Print bug url when giving help.
645 * dlltool.c (usage): Likewise.
646 * dllwrap.c (usage): Likewise.
647 * nlmconv.c (show_usage): Don't print empty REPORT_BUGS_TO.
648 * nm.c (usage): Likewise.
649 * objcopy.c (copy_usage, strip_usage): Likewise.
650 * objdump.c (usage): Likewise.
651 * readelf.c ((usage): Likewise. Add STREAM argument. Adjust
653 * size.c (usage): Don't print empty REPORT_BUGS_TO.
654 * srconv.c (show_usage): Likewise.
655 * strings.c (usage): Likewise.
656 * sysdymp.c (show_usage): Likewise.
657 * windres.c (usage): Likewise.
661 * embedspu.sh: Add -W to readelf invocation.
665 * MAINTAINERS: Add myself as the maintainer of the MeP port.
670 * readelf.c: Include elf/h8.h twice. The first time in order to
671 get the reloc numbers, the second time in order to get the reloc
673 (dump_section): Tell the user if the section being displayed has
674 unprocessed relocs associated with it.
675 (get_reloc_size): New function - returns the size of a reloc.
676 (debug_apply_rela_addends): Use get_reloc_size().
677 * dwarf.c (read_and_display_attr_value): Extend number of
678 languages known for the DW_AT_language attribute.
679 (process_debug_info): Display the attribute offset before decoding
680 the attribute, in case there are problems.
684 * readelf.c (dump_relocations): Don't check for
685 (rtype == NULL && type == R_RELC).
689 * Makefile.am (readelf.o): Depends on $(INCDIR)/elf/mep.h.
690 * Makefile.in: Regenerated.
691 * Contribute the following changes:
694 * configure.in: Define SKIP_ZEROES and SKIP_ZEROES_AT_END for mep.
695 * configure: Regenerated.
699 * readelf.c: Include "elf/mep.h".
700 (guess_is_rela): Handle EM_CYGNUS_MEP.
701 (get_machine_name): Ditto.
702 (dump_relocations): Ditto.
706 * MAINTAINERS: Add a space between H.J. and Lu.
710 * doc/binutils.texi (objdump): Document the new addr64 option
711 for i386 disassembler.
716 * configure.in (DLLTOOL_DEFAULT): New. Defined for the first PE
718 (DLLTOOL_DEFS): Add $DLLTOOL_DEFAULT.
719 * configure: Regenerated.
721 * dlltool.c (mname): Defined with DLLTOOL_DEFAULT_XXX.
725 * doc/binutils.texi (objdump): Document support for disassembling
726 the 440 PowerPC architecture.
730 * dwarf.c (process_debug_info): Protect against bogus length and
735 * ar.c (print_contents, extract_file): Cast the return value
740 * ar.c (open_inarch): Check fwrite return. Use size_t.
741 (extract_file): Likewise. Remove test for "negative" file size.
742 * readelf.c (process_program_headers): Check fscanf return.
746 * bucomm.c (template_in_dir): Fix typo.
750 * embedspu.sh: New file.
751 * Makefile.am (embedspu): Add rule.
752 * configure.in (BUILD_MISC): Add embedspu for powerpc-linux.
753 * Makefile.in: Regenerate.
754 * configure: Regenerate.
758 * bucomm.h (make_tempdir): Declare independently of HAVE_MKDTEMP.
759 * bucomm.c (template_in_dir): New function, split out from..
760 (make_tempname): ..here. Open the file with O_EXCL if !HAVE_MKSTEMP.
761 (make_tempdir): Use template_in_dir. Handle directory creation
763 * objcopy.c (MKDIR): Don't define.
764 (copy_archive): Use make_tempdir when !HAVE_MKDTEMP too. Fix
769 * readelf.c (get_machine_flags): Treat Fido as an architecture
774 * configure.in: Renamed target x86_64-*-mingw64 to
776 * configure: Regenerated.
780 * readelf.c (dump_section): Don't print 32-bit values, which
781 were done incorrectly for little-endian. Instead print bytes.
783 For older changes see ChangeLog-2006
789 version-control: never