3 * Makefile.am (HFILES): Add dwarf.h, sysdep.h and unwind-ia64.h.
4 (CFILES): Add unwind-ia64.c.
5 Regenerate dependencies.
6 * Makefile.in: Regenerate.
10 * addr2line.c: Update copyright notice to refer to GPLv3.
11 * ar.c, arlex.l, arparse.y, arsup.c, arsup.h, bin2c.c, binemul.c,
12 binemul.h, bucomm.c, bucomm.h, budbg.h, coffdump.c, coffgrok.c,
13 coffgrok.h, cxxfilt.c, debug.c, debug.h, deflex.l, defparse.y,
14 dlltool.c, dlltool.h, dllwrap.c, dwarf.c, dwarf.h, embedspu.sh,
15 emul_aix.c, emul_vanilla.c, filemode.c, ieee.c, mclex.c,
16 mcparse.y, nlmconv.c, nlmconv.h, nlmheader.y, nm.c, objcopy.c,
17 objdump.c, prdbg.c, rclex.c, rcparse.y, rdcoff.c, rddbg.c,
18 readelf.c, rename.c, resbin.c, rescoff.c, resrc.c, resres.c,
19 size.c, srconv.c, stabs.c, strings.c, sysdep.h, sysdump.c,
20 sysinfo.y, syslex.l, unwind-ia64.c, unwind-ia64.h, version.c,
21 windint.h, windmc.c, windmc.h, windres.c, windres.h, winduni.c,
22 winduni.h, wrstabs.c: Likewise.
23 * is-ranlib.c, is-strip.c, maybe-ranlib.c, maybe-strip.c,
24 not-ranlib.c, not-strip.c, ranlib.sh, sanity.sh: Add a copyright
26 * NEWS: Mention that the sources are now released under GPLv3.
27 Add a marker for the changes that went into v2.17.
28 * version.c (print_version): Specify that the program is released
29 under version 3 of the GPL.
33 * resrc.c: (read_rc_file): Add include path of user passed rc
35 * windres.c: (windres_add_include_dir): New.
36 (main): Use of windres_add_include_dir.
37 * windres.h: (windres_add_include_dir): Add prototype.
41 * doc/binutils.texi (size): Document --common.
42 * size.c: Make a number of vars static. Delete unnecessary
43 function declarations.
44 (show_common, common_size): New vars.
45 (usage): Describe --common.
46 (OPTION_FORMAT, OPTION_RADIX, OPTION_TARGET): Define and use.
47 (long_options): Add common.
48 (calculate_common_size): New function.
49 (print_berkeley_format): Add common_size to bsssize.
50 (sysv_one_line): New function split out from..
51 (sysv_internal_printer): ..here.
52 (print_sysv_format): Handle display of *COM*.
53 (print_sizes): Call calculate_common_size.
57 * emul_aix.c (ar_emul_aix_internal): Rename "next" to "archive_next".
62 * objcopy.c (filter_symbols): Correct relocatable file test.
66 * Makefile.am: Run "make dep-am".
67 * Makefile.in: Regenerate.
68 * aclocal.m4: Regenerate.
69 * config.in: Regenerate.
70 * doc/Makefile.in: Regenerate.
71 * po/POTFILES.in: Regenerate.
72 * po/binutils.pot: Regenerate.
76 * aclocal.m4: Regenerated.
77 * doc/Makefile.in: Likewise.
78 * Makefile.in: Likewise.
82 * readelf.c (display_power_gnu_attribute, process_power_specific):
84 (process_arch_specific): Call process_power_specific.
88 * readelf.c (display_mips_gnu_attribute): New.
89 (process_mips_specific): Call process_attributes.
93 * readelf.c (display_gnu_attribute): New.
94 (process_arm_specific): Rearrange as process_attributes.
95 (process_arm_specific): Replace by wrapper of process_attributes.
99 * objcopy.c (setup_section): Don't reset ELF section type to
100 SHT_NOBITS when it is SHT_NOTE.
101 * doc/binutils.texi (objcopy, strip): Mention under --only-keep-debug.
105 * ar.c: Rename uses of bfd.next to bfd.archive_next throughout.
107 * binemul.c: Likewise.
108 * objcopy.c: Likewise.
109 * dlltool.c: Likewise.
114 * Makefile.am (windres_DEPENDENCIES, windmc_DEPENDENCIES): Move
115 dependency on $(LIBICONV) to ...
116 (windres_LDADD, windmc_LDADD) ... here.
117 * Makefile.in: Regenerate.
121 * embedspu.sh (relas): Correct sh_info parsing.
125 * objdump.c: Include sys/stat.h.
129 * Makefile.am: Add windmc tool.
130 * Makefile.in: Regenerate.
131 * configure.in: Add windmc tool.
132 * configure: Regenerate.
137 * doc/Makefile.am: Add windmc tool.
138 * doc/Makefile.in: Regenerate.
139 * doc/binutils.texi: Add windmc documentation.
140 * NEWS: Mention new tool.
144 * objdump.c: Include sys/mman.h
145 (print_file_list): Remove f, add map, mapsize, linemap, maxline,
146 last_line, first fields.
149 (print_file_open): Call slurp_file and index_file. Initialize new
151 (skip_to_line): Rename to print_line and write only single line.
153 (show_line): Change to new algorithm.
157 * resres.c (probe_binary): Fix test for badly formatted headers.
161 * rclex.c: (cpp_line): Add code_page pragma support.
162 * windres.c: (usage, long_options, main): Add new option
164 * winduni.c: (wind_default_codepage, wind_current_codepage): New.
165 (unicode_from_ascii, ascii_from_unicode): Use
166 wind_current_codepage as codepage parameter.
167 (unicode_print): Print 4 characters for hexadecimal values in
169 * winduni.h: (wind_default_codepage, wind_current_codepage):
171 * doc/binutils.texi: Document new option.
172 * NEWS: Mention new features of windres.
176 * embedspu.sh: Parse _SPUEAR_ symbol values as hex.
180 * Makefile.am (ACLOCAL_AMFLAGS): Add -I ../config -I ../bfd.
182 * acinclude.m4: Removed.
184 * Makefile.in: Regenerated.
185 * aclocal.m4: Likewise.
186 * configure: Likewise.
190 * dwarf.c (decode_location_expression): Add DW_OP_form_tls_address.
194 PR binutils/4356 binutils/591
195 * resrc.c (filename_need_quotes): New function.
196 (look_for_default): If filename_need_quotes is true then quote the
197 filename in the command line being created.
198 (read_rc_file): Likewise.
202 * doc/binutils.texi (objdump): Fix capitalisation of "PowerPC".
206 * Makefile.am: Add LIBICONV to windres.
207 * acinclude.m4: Added missing "lib-*.m4" and "lt*.m4" files.
208 * configure.in: Add AC_CHECK_HEADER for iconv.h and use AM_ICONV.
209 * config.in: Add ICONV defines.
210 * aclocal.m4: Regenerate.
211 * confugure: Regenerate.
212 * winduni.c: (local_iconv_map codepages, wind_language_t,
213 languages, unicode_is_valid_codepage, wind_find_language_by_id,
214 wind_find_language_by_codepage, wind_find_codepage_info,
215 unicode_from_codepage, codepage_from_unicode, iconv_onechar,
216 wind_iconv_cp, wind_MultiByteToWideChar wind_WideCharToMultiByte):
218 (ascii_from_unicode): Use codepage_from_unicode.
219 (ascii_from_unicode): Use unicode_from_codepage.
220 Use for cygwin windows API for unicode transformation.
221 * winduni.h: (CP_ACP, CP_UTF7, CP_UTF8, CP_OEM, CP_UTF16): New
223 (wind_language_t, local_iconv_map): New types.
224 (wind_find_language_by_id, wind_find_language_by_codepage,
225 unicode_is_valid_codepage, wind_find_codepage_info,
226 unicode_from_codepage, codepage_from_unicode): New
231 * embedspu.sh: Handle R_SPU_PPU* relocs with no symbol.
235 * objcopy.c (copy_object): Revert 2007-05-11 change. Don't
236 avoid calling bfd_copy_private_bfd_data for ELF STRIP_NONDEBUG.
237 (setup_section): Don't modify flags, and don't avoid calling
238 bfd_copy_private_section_data for ELF STRIP_NONDEBUG.
239 * readelf.c (process_program_headers): Ignore .dynamic of type
244 * embedspu.sh: Emit SPU ELF image to .data.rel.ro.speelf if
245 pic or pie and image needs relocs.
249 * Makefile.in: Regenerate.
250 * configure: Regenerate.
251 * aclocal.m4: Regenerate.
252 * doc/Makefile.in: Regenerate.
256 * rcparse.y: Join strings for elements having no side-effects in
261 * rclex.c: New file replacing rclex.l.
263 * windint.h: New file holding common structure and type
265 * Makefile.am: Added new header windint.h and exchanged rclex.l by
267 * Makefile.in: Regenerate.
268 * rcparse.y: Renamed some structures.
269 Use in internal representation always bfd_vma instead of long or
271 Removed from %union unused stringtable.
272 Added to %union suni structure for unicode strings.
273 Added new tokens for ANICURSOR, ANIICON, DLGINCLUDE,
274 DLGINIT, FONTDIR, HTML, MANIFEST, PLUGPLAY, VXD,
275 TOOLBAR, BUTTON, QUOTEDUNISTRING, and SIZEDUNISTRING.
276 Added support for these new rc file tokens.
277 * resbin.c: Rewrote using bfd and binary structures, and support
279 * rescoff.c: Likewise.
280 * resres.c: Likewise.
281 * resrc.c: Likewise. Dumps as RC are now recompilable.
282 * windres.c: As above. Using bfd for res and provide target
283 specific endianess support.
284 * windres.h: Use windint.h as include. Additionally removed K&R
286 * winduni.c: New printing and unichar support routines.
287 * winduni.h: Prototypes for new unichar helpers.
288 * windint.h: New file.
292 * objdump.c (find_symbol_for_address): Merge section and target
293 specific filtering code.
297 * doc/binutils.texi: Use @copying around the copyright notice.
301 * objdump.c (disassemble_bytes): Ignore disassembler_needs_relocs
302 for executables and shared libraries.
306 * objcopy.c (strip_main): Detect identical input and output file
308 (copy_main): Refactor tempname detection and use.
312 * objdump.c (load_debug_section): Select bias for DWARF debug
313 addresses based on the flavour of the bfd.
318 * objcopy.c (copy_object): Don't copy ELF program headers for
323 * embedspu.sh (find_prog): Prefer prog in same dir as embedspu
324 over one found on the users path.
325 (main): Generate .reloc for each R_SPU_PPU* reloc.
329 * prdbg.c (tg_variable): Adjust for changed demangler.
330 (tg_start_function): Likewise.
334 * bucumm.h: Split off host dependencies to..
336 Many files: Include sysdep.h. Remove duplicate headers and reorder.
337 * Makefile.am: Run "make dep-am".
338 * Makefile.in: Regenerate.
342 * srconv.c (walk_tree_type_1): Initialise dpt.dunno.
347 * objcopy.c (filter_symbols): Explicitly stripping a symbol
348 used in relocations is an error.
349 Retype 'keep' to bfd_boolean.
353 * Makefile.in: Regenerate.
354 * doc/Makefile.in: Regenerate.
360 * objcopy.c (reverse_bytes): New variable.
361 (command_line_switch, copy_main): Add OPTION_REVERSE_ENDIAN.
362 (copy_options, copy_usage): Add "reverse-bytes" entry.
363 (copy_section): Reverse bytes within output sections.
364 * doc/binutils.texi: Document new objcopy option.
368 * rclex.l: Allow underscores at the start of identifiers.
372 * budemang.c: Delete.
373 * budemang.h: Delete.
374 * addr2line.c (translate_addresses): Call bfd_demangle rather than
376 * nm.c (print_symname): Likewise.
377 * objdump.c (objdump_print_symname, dump_symbols): Likewise.
378 (dump_bfd): Likewise.
379 * prdbg.c (struct pr_handle <demangler>): Add int param.
380 (tg_variable, tg_start_function): Adjust demangler calls.
381 * Makefile.am: Remove mention of budemang.[ch]. Run "make dep-am".
382 * Makefile.in: Regenerate.
383 * po/POTFILES.in: Regenerate.
387 * Makefile.am: Add ACLOCAL_AMFLAGS.
388 * configure.in: Change macro call order.
389 * Makefile.in: Regenerate.
390 * configure: Regenerate.
394 * Makefile.am (TOOL_PROGS): Add objcopy.
395 * Makefile.in: Rebuilt.
400 * objcopy.c (copy_object): Don't stop when there are no
401 sections to be copied.
405 * NEWS: Mention disjoint histograms support in
410 * dwarf.c (process_debug_info): Do not require DW_AT_frame_base for
411 DW_TAG_inlined_subroutine.
415 * MAINTAINERS: Add myself as VAX and NetBSD support maintainer.
420 * nm.c (print_value): Cast bfd_vma to unsigned long to suit
426 * nm.c (value_format): Replace with value_format_32bit and
428 (set_radix): Update setting of value_format.
429 (set_print_width): New function. Compute the address size of a
430 given bfd and set the print_width global appropriately.
431 (display_archive): Use set_print_width.
432 (display_file): Likewise,
433 (print_object_filename_sysv): Update use of print_width.
434 (print_archive_member_sysv): Likewise.
435 (print_symbol_filename_posix): Likewise.
436 (print_sumbol_info_bfd, print_symbol_info_sysv): Likewise.
441 * doc/binutils.texi: Put the contents after the title page rather
442 than at the end of the document.
446 * readelf.c (slurp_rela_relocs): Add newline to end of error
448 (slurp_rel_relocs, request_dump, request_dump_byname,
449 process_program_headers, process_dynamic_section,
450 process_symbol_table, process_mips_specific, main): Likewise.
454 * MAINTAINERS: Update mailing list addresses. Add myself
459 * embedspu.sh: Correct toe_addr quoting.
463 * embedspu.sh: Combine "_EAR_" and "_EAR_*" patterns. Tighten
464 .toe section and .toe address checks. Use .reloc for _EAR*
465 symbols defined in non-BSS sections. Build table for _SPUEAR_
471 * readelf.c (debug_apply_rela_addends): Do nothing for SH.
475 * doc/binutils.texi: Include VERSION_PACKAGE when reporting
480 * dlltool.c (make_one_lib_file): Use pc-relative relocation
481 instead of an absolute relocation for x86_64-pc-mingw32 target.
485 * Makefile.am (REPORT_BUGS_TO): Removed.
486 (INCLUDES): Remove -DREPORT_BUGS_TO.
487 * Makefile.in: Regenerated.
489 * bucomm.c: Don't include bfdver.h.
490 * objdump.c: Likewise.
491 * version.c: Likewise.
493 * bucomm.h: Include bfdver.h.
495 * configure.in (--with-bugurl): Removed.
496 * configure: Regenerated.
498 * doc/Makefile.am (binutils_TEXINFOS): Removed.
499 (AM_MAKEINFOFLAGS): Add -I ../../bfd/doc.
500 (TEXI2DVI): Likewise.
501 (config.texi): Removed.
502 (MOSTLYCLEANFILES): Remove config.texi.
503 * doc/Makefile.in: Regenerated.
505 * doc/binutils.texi: Include bfdver.texi instead of
510 * readelf.c (dump_section): Also test for SHT_REL sections when
511 producing the warning about unapplied relocs.
515 * configure.in (REPORT_BUGS_TEXI): Define to Texinfo version of
517 * doc/Makefile.am (config.texi): Define BUGURL.
518 * doc/binutils.texi: Use BUGURL. Remove text about large files
520 * Makefile.in, configure, doc/Makefile.in: Regenerate.
525 * NEWS: Mention addition of --extract-symbol.
526 * doc/binutils.texi: Document it.
527 * objcopy.c (extract_symbol): New variable.
528 (OPTION_EXTRACT_SYMBOLS): New command_line_switch.
529 (copy_options): Add an entry for --extract-symbol.
530 (copy_usage): Mention --extract-symbol.
531 (copy_object): Set the start address to zero for --extract-symbol.
532 Do not copy private BFD data in that case.
533 (setup_section): Set the size, LMA and VMA to zero for
534 --extract-symbol. Do not copy private BFD data in that case.
535 (copy_section): Do not copy section contents if --extract-symbol
537 (copy_main): Set extract_symbol to TRUE if --extract-symbol
542 * MAINTAINERS: Update my entry.
546 * version.c: Update copyright date.
550 * Makefile.am (install-exec-local): Depend on $(noinst_PROGRAMS).
551 Adjust $(EXEEXT) handling for $(RENAMED_PROGS).
552 * Makefile.in, doc/Makefile.in: Regenerate.
556 * embedspu.sh: Set type and size of global program handle symbol.
560 * Makefile.am (PROGS): Delete.
561 (RENAMED_PROGS): Define. Extracted from..
562 (noinst_PROGRAMS): ..here. Add BUILD_MISC.
563 (install-exec-local): Adjust.
564 * Makefile.in: Regenerate.
568 * Makefile.am (PROGS): Add BUILD_INSTALL_MISC.
569 (bin_PROGRAMS): Replace BUILD_MISC with BUILD_INSTALL_MISC.
570 (EXTRA_PROGRAMS): Remove bin2c.
571 (bin2c$(EXEEXT_FOR_BUILD)): New rule.
572 (bin2c_SOURCES): Delete.
573 (DISTCLEANFILES): Remove sysinfo.
574 (MOSTLYCLEANFILES): Add sysinfo$(EXEEXT_FOR_BUILD) and
575 bin2c$(EXEEXT_FOR_BUILD).
576 * configure.in (BUILD_MISC): Add $(EXEEXT_FOR_BUILD) to bin2c.
578 (BUILD_INSTALL_MISC): ..here.
579 * Makefile.in: Regenerate.
580 * configure: Regenerate.
585 * Makefile.am (EXTRA_PROGRAMS): Add bin2c.
586 (CFILES): Add bin2c.c.
587 (bin2c_SOURCES): Define.
588 (bin2c.o): Dependencies from "make dep-am".
589 * configure.in (BUILD_MISC): Add bin2c.
590 * version.c: Update year.
591 * po/POTFILES.in: Regenerate.
592 * Makefile.in: Regenerate.
593 * configure: Regenerate.
600 * configure.in (--with-bugurl): New option.
601 * configure: Regenerate.
602 * Makefile.am (REPORT_BUGS_TO): Define.
603 (INCLUDES): Define REPORT_BUGS_TO.
604 Regenerate dependencies.
605 * Makefile.in: Regenerate.
606 * doc/Makefile.in: Regenerate.
607 * bucomm.h: Remove include of bin-bugs.h.
608 * addr2line.c (usage): Don't print empty REPORT_BUGS_TO.
609 * ar.c (usage): Pass s to list_supported_targets. Don't print
610 empty REPORT_BUGS_TO.
611 * coffdump.c (show_usage): Don't print empty REPORT_BUGS_TO.
612 * cxxfilt.c (usage): Print bug url when giving help.
613 * dlltool.c (usage): Likewise.
614 * dllwrap.c (usage): Likewise.
615 * nlmconv.c (show_usage): Don't print empty REPORT_BUGS_TO.
616 * nm.c (usage): Likewise.
617 * objcopy.c (copy_usage, strip_usage): Likewise.
618 * objdump.c (usage): Likewise.
619 * readelf.c ((usage): Likewise. Add STREAM argument. Adjust
621 * size.c (usage): Don't print empty REPORT_BUGS_TO.
622 * srconv.c (show_usage): Likewise.
623 * strings.c (usage): Likewise.
624 * sysdymp.c (show_usage): Likewise.
625 * windres.c (usage): Likewise.
629 * embedspu.sh: Add -W to readelf invocation.
633 * MAINTAINERS: Add myself as the maintainer of the MeP port.
638 * readelf.c: Include elf/h8.h twice. The first time in order to
639 get the reloc numbers, the second time in order to get the reloc
641 (dump_section): Tell the user if the section being displayed has
642 unprocessed relocs associated with it.
643 (get_reloc_size): New function - returns the size of a reloc.
644 (debug_apply_rela_addends): Use get_reloc_size().
645 * dwarf.c (read_and_display_attr_value): Extend number of
646 languages known for the DW_AT_language attribute.
647 (process_debug_info): Display the attribute offset before decoding
648 the attribute, in case there are problems.
652 * readelf.c (dump_relocations): Don't check for
653 (rtype == NULL && type == R_RELC).
657 * Makefile.am (readelf.o): Depends on $(INCDIR)/elf/mep.h.
658 * Makefile.in: Regenerated.
659 * Contribute the following changes:
662 * configure.in: Define SKIP_ZEROES and SKIP_ZEROES_AT_END for mep.
663 * configure: Regenerated.
667 * readelf.c: Include "elf/mep.h".
668 (guess_is_rela): Handle EM_CYGNUS_MEP.
669 (get_machine_name): Ditto.
670 (dump_relocations): Ditto.
674 * MAINTAINERS: Add a space between H.J. and Lu.
678 * doc/binutils.texi (objdump): Document the new addr64 option
679 for i386 disassembler.
684 * configure.in (DLLTOOL_DEFAULT): New. Defined for the first PE
686 (DLLTOOL_DEFS): Add $DLLTOOL_DEFAULT.
687 * configure: Regenerated.
689 * dlltool.c (mname): Defined with DLLTOOL_DEFAULT_XXX.
693 * doc/binutils.texi (objdump): Document support for disassembling
694 the 440 PowerPC architecture.
698 * dwarf.c (process_debug_info): Protect against bogus length and
703 * ar.c (print_contents, extract_file): Cast the return value
708 * ar.c (open_inarch): Check fwrite return. Use size_t.
709 (extract_file): Likewise. Remove test for "negative" file size.
710 * readelf.c (process_program_headers): Check fscanf return.
714 * bucomm.c (template_in_dir): Fix typo.
718 * embedspu.sh: New file.
719 * Makefile.am (embedspu): Add rule.
720 * configure.in (BUILD_MISC): Add embedspu for powerpc-linux.
721 * Makefile.in: Regenerate.
722 * configure: Regenerate.
726 * bucomm.h (make_tempdir): Declare independently of HAVE_MKDTEMP.
727 * bucomm.c (template_in_dir): New function, split out from..
728 (make_tempname): ..here. Open the file with O_EXCL if !HAVE_MKSTEMP.
729 (make_tempdir): Use template_in_dir. Handle directory creation
731 * objcopy.c (MKDIR): Don't define.
732 (copy_archive): Use make_tempdir when !HAVE_MKDTEMP too. Fix
737 * readelf.c (get_machine_flags): Treat Fido as an architecture
742 * configure.in: Renamed target x86_64-*-mingw64 to
744 * configure: Regenerated.
748 * readelf.c (dump_section): Don't print 32-bit values, which
749 were done incorrectly for little-endian. Instead print bytes.
751 For older changes see ChangeLog-2006
757 version-control: never