4 * Makefile.am (BFDTEST1_PROG): New.
5 (TEST_PROGS): Likewise.
6 (bfdtest1_DEPENDENCIES): Likewise.
7 (noinst_PROGRAMS): Add $(TEST_PROGS).
8 * Makefile.in: Regenerated.
10 * bfdtest1.c: New file.
23 * readelf.c (guess_is_rela): Handle EM_AARCH64.
24 (get_machine_name): Likewise.
25 (get_aarch64_segment_type): New function.
26 (get_segment_type): Handle EM_AARCH64 by calling the new function.
27 (get_aarch64_section_type_name): New function.
28 (get_section_type_name): Handle EM_AARCH64 by calling the new function.
29 (is_32bit_abs_reloc): Handle EM_AARCH64.
30 (is_32bit_pcrel_reloc): Likewise.
31 (is_64bit_abs_reloc): Likewise.
32 (is_64bit_pcrel_reloc): Likewise.
33 (is_none_reloc): Likewise.
37 * po/vi.po: Updated Vietnamese translation.
41 * dlltool.c (scan_obj_file): Close arfile after calling
42 bfd_openr_next_archived_file.
47 * dwarf.c (process_abbrev_section): Add attribute terminator.
48 Warn missing section terminator.
49 (get_FORM_name): Special check for 0 value.
50 (get_AT_name): Likewise.
51 (process_debug_info): Display zero abbrev number. Check
56 * po/binutils.pot: Updated template.
57 * po/bg.po: Updated Bulgarian translation.
58 * po/es.po: Updated Spanish translation.
59 * po/fi.po: Updated Finnish translation.
60 * po/fr.po: Updated French translation.
61 * po/uk.po: Updated Ukranian translation.
65 * rcparse.y (FILEVERSION): Use optcnumexpr instead of cnumexpr.
66 (PRODUCTVERSION): Likewise.
70 * configure.in (BFD_VERSION): Run bfd/configure --version and
71 parse the output of that.
72 * configure: Regenerate.
76 * NEWS: Add marker for 2.23.
80 * addr2line.c (find_address_in_section): Invoke
81 bfd_find_nearest_line_discriminator to get the discriminator.
82 (find_offset_in_section): Likewise.
83 (translate_addresses): Print discriminator if it is non-zero.
84 * objdump.c (show_line): Invoke
85 bfd_find_nearest_line_discriminator to get the discriminator,
86 and keep track of prev_discriminator. Print discriminator
88 (disassemble_data): Initialize prev_discriminator.
89 (dump_reloc_set): Invoke bfd_find_nearest_line_discriminator
90 to get the discriminator, and keep track of last_discriminator.
91 Print discriminator if it is non-zero.
95 * elfcomm.c (setup_archive): Extract index table and symbol table
97 (process_archive_index_and_symbols): ... this function and add
98 support for 64-bit index tables.
99 * elfcomm.h (struct archive_info): Change type of index_num and
100 index_array to elf_vma.
101 Add 'uses_64bit_indicies' field.
102 * readelf.c (process_archive): Fix support for 64-bit indicies.
106 * readelf.c (process_archive): Display member indicies when
111 * dwarf.c: Include gdb-index.h.
112 (display_gdb_index): Handle version 7.
116 * nm.c (filter_symbols): Simplify global symbol handling.
121 * bucomm.c (print_arelt_descr): Correctly report the archive size
123 * ar.c (print_contents): Use correct types for archive element
125 (extract_file): Likewise (for 'ar x').
129 * readelf.c (is_16bit_abs_reloc): Handle mn10200 reloc.
133 * dwarf-mode.el: Add final comment. Bump version.
134 (dwarf-insert-substructure-button): Use string-to-number.
135 (dwarf-browse): Fix autoload cookie.
139 * dwarf.c (read_and_display_attr_value): Handle
140 DW_FORM_GNU_ref_alt and DW_FORM_GNU_strp_alt.
141 (display_debug_macro): Handle DW_MACRO_GNU_define_indirect_alt,
142 DW_MACRO_GNU_undef_indirect_alt and
143 DW_MACRO_GNU_transparent_include_alt.
147 * addr2line.c (translate_addresses): Truncate input addresses to
148 arch_size bits. Avoid undefined shift. Print '?' for zero line.
152 * readelf.c (process_section_headers): Correct bug in previous
153 delta - display full section type in wide mode.
157 * readelf.c (print_symbol): Display multibyte characters in symbol
159 (process_section_headers): Use print_symbol.
163 * aclocal.m4: Regenerate.
164 * configure: Regenerate.
165 * config.in: Regenerate.
166 * Makefile.in: Regenerate.
172 * configure.in: Add check that sysdep.h has been included before
173 any system header files.
174 * configure: Regenerate.
175 * config.in: Regenerate.
176 * unwind-ia64.h: Include config.h.
180 * dwarf.c (process_debug_info): Display abbrev offset in hex.
181 (display_debug_abbrev): Show offset of abbrev.
185 * dwarf.c (display_debug_ranges): Don't report more than one use
186 of the same range set as an overlap.
191 * Makefile.am (CFILES): Add syslex_wrap.c.
192 (sysinfo): Depend upon syslex_wrap.o.
193 (syslex_wrap.o): New rule.
194 (syslex.o): Delete rule.
195 * syslex_wrap.c: New file.
196 * Makefile.in: Regenerate.
200 * readelf.c (get_machine_name): Update m68hc12 entry.
204 * objdump.c (disassemble_bytes): Print addend as signed.
205 (dump_reloc_set): Likewise.
210 * doc/binutils.texi: Add --dwarf-check option.
211 * dwarf.c (dwarf_check): New global flag.
212 (fetch_indexed_string): New function.
213 (fetch_indexed_value): New function.
214 (get_FORM_name): Add DW_FORM_GNU_str_index and DW_FORM_GNU_addr_index.
215 (decode_location_expression): Add DW_OP_GNU_addr_index.
216 (read_and_display_attr_value): Add DW_FORM_GNU_str_index,
217 DW_FORM_GNU_addr_index, DW_AT_GNU_addr_base, and DW_AT_GNU_ranges_base.
218 (get_AT_name): Add new attributes for Fission.
219 (process_debug_info): Load new debug sections for Fission.
220 (load_debug_info): Check for .debug_info.dwo section.
221 (display_loc_list, display_loc_list_dwo): New functions.
222 (display_debug_loc): Move logic to above two functions.
223 (display_debug_info): Choose abbrev section based on info section.
224 (display_debug_types): Likewise.
225 (display_trace_info): Likewise.
226 (comp_addr_base): New function.
227 (display_debug_addr): New function.
228 (display_debug_str_offsets): New function.
229 (display_debug_ranges): Allow missing range lists. Suppress
230 diagnostics if dwarf_check not set.
231 (debug_displays): Add column to select abbrev section.
232 * dwarf.h (enum dwarf_section_display_enum): Add new debug sections
234 (struct dwarf_section): Add abbrev_sec field.
235 (struct dwarf_section_display): New type.
236 (debug_info): Add addr_base, ranges_base fields.
237 (dwarf_check): New global variable.
238 * objdump.c (usage): Add --dwarf-check option.
239 (enum option_values): Add OPTION_DWARF_CHECK.
240 (long_options): Add --dwarf-check.
242 * readelf.c (OPTION_DWARF_CHECK): New macro.
243 (options): Add --dwarf-check.
244 (parse_args): Likewise.
245 (process_section_headers): Use const_strneq instead of
251 * readelf.c (dump_relocations): Always display addend as
257 * configure.in: Invoke ACX_HEADER_STRING.
258 * configure: Regenerate.
259 * config.in: Regenerate.
260 * sysdep.h: If STRINGS_WITH_STRING is defined then include both
261 string.h and strings.h.
265 * dwarf.c (read_and_display_attr_value): Don't look up tag from
266 abbrev for DW_FORM_ref_addr.
270 * binutils/MAINTAINERS: Added my entry to the maintainers secion.
274 * doc/binutils.texi (objcopy): Add --strip-dwo, --extract-dwo options.
275 (strip): Add --strip-dwo option.
276 * objcopy.c (enum strip_action): Add STRIP_DWO, STRIP_NONDWO.
277 (enum command_line_switch): Add OPTION_EXTRACT_DWO, OPTION_STRIP_DWO.
278 (strip_options): Add --strip-dwo option.
279 (copy_options): Add --extract-dwo, --strip-dwo options.
280 (copy_usage): Likewise.
281 (strip_usage): Add --strip-dwo option.
282 (is_dwo_section): New function.
283 (is_strip_section_1): Check for DWO sections.
284 (copy_object): Check for --strip-dwo, --extract-dwo options.
285 (copy_relocations_in_section): Discard relocations for DWO sections.
286 Discard entire relocation section when no relocations.
287 (strip_main): Add --strip-dwo option.
288 (copy_main): Add --strip-dwo, --extract-dwo options.
292 * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
293 LC and LANG environment vars.
294 * Makefile.in: Regenerate.
298 * dwarf.c (get_TAG_name): Use get_DW_TAG_name.
299 (get_FORM_name): Use get_DW_FORM_name.
300 (get_AT_name): Use get_DW_AT_name.
304 * Makefile.am (check-DEJAGNU): Clear LC_COLLATE, LC_ALL and LANG.
305 * Makefile.in: Regenerate.
309 * dlltool.c (make_one_lib_file): Use bfd_und_section_ptr.
313 * readelf.c: Add support for XGATE.
317 * po/vi.po: Updated Vietnamese translation.
318 * po/it.po: New Italian translation.
319 * configure.in (ALL_LINGUAS): Add it.
320 * configure: Regenerate.
325 * rescoff.c: Rename 'finfo' to 'flaginfo' to avoid conflicts with
330 * doc/binutils.texi: Add -D/--enable-deterministic-archives option
331 to strip and objcopy.
332 * objcopy.c (deterministic): New global variable.
333 (strip_options): Add --enable-deterministic-archives.
334 (copy_options): Likewise.
335 (copy_usage): Likewise.
336 (strip_usage): Likewise.
337 (copy_archive): When stripping all, don't add archive map; set
338 deterministic output when requested.
339 (strip_main): Add -D/--enable-deterministic-archives option.
340 (copy_main): Likewise.
345 * objcopy.c (copy_object): Call copy_relocations_in_section
348 (copy_relocations_in_section): Likewise.
349 (copy_section): Use skip_section. Don't copy relocations here.
353 * objdump.c (dump_bfd): If defaulting to dwarf call
354 dwarf_select_sections_all to enable displays.
358 * configure.in (AC_CHECK_HEADERS): Add locale.h.
359 * config.in: Regenerate.
360 * configure: Regenerate.
364 * configure.in (AC_CHECK_FUNCS): Add setlocale.
365 (AM_LC_MESSAGES): Add.
366 * aclocal.m4: Regenerate.
367 * config.in: Regenerate.
368 * configure: Regenerate.
373 * stabs.c (stab_demangle_v3_arglist): Cope with the demangler
374 returning an empty context for a function with no arguments.
378 * dwarf.c (display_gdb_index): Handle index version 6.
382 * readelf.c (is_16bit_abs_reloc): Add detection of R_MN10300_16.
386 * doc/binutils.texi (c++filt): Fix typos.
391 * defparse.y (keyword_as_name): Disable LIBRARY
393 * doc/binutils.texi: Document LIBRARY exception.
398 * NEWS: Mention new feature.
399 * dlltool.c (i386_x64_dljtab): New stub-code for x64
400 delayed-load feature.
401 (i386_x64_trampoline): New trampoline-code for x64
402 delayed-load feature.
403 (make_one_lib_file): Add support for x64 delayed-load
405 (make_delay_head): Likewis
409 * objdump.c (slurp_file): Close file if fstat fails.
413 * dwarf.c (dwarf_vmatoa64): New function.
414 (read_and_display_attr_value): Print 8-byte forms as single hex
416 (process_debug_info): Print type signatures as single hex numbers.
417 * elfcomm.c (byte_get_64): New function.
418 * elfcomm.h (byte_get_64): New function.
423 * defparse.y (%union): New type id_const.
424 (opt_name2): New rule.
425 (keyword_as_name): New rule.
426 (opt_name): Adjust rule.
427 (opt_import_name): Likewise.
428 (opt_equal_name): Likewise.
433 * resrc.c (write_rc_dialog_control): Omit text dump for
434 EDITTEXT, COMBOBOX, LISTBOX, and SCROLLBAR.
438 * sysdep.h: Include sys/stat.h here.
439 * ar.c: Don't include headers already included by sysdep.h.
440 * bucomm.c: Likewise.
442 * dlltool.h: Likewise.
443 * elfedit.c: Likewise.
444 * nlmconv.c: Likewise.
445 * objcopy.c: Likewise.
446 * objdump.c: Likewise.
447 * objdump.h: Likewise.
448 * readelf.c: Likewise.
449 * rename.c: Likewise.
451 * strings.c: Likewise.
452 * windres.c: Likewise.
453 * od-macho.c: Ensure #include sysdep.h is first.
454 * od-xcoff.c: Likewise.
455 * dllwrap.c: Remove alloca pragma handled by sysdep.h, and
456 remove duplicate headers.
457 * dlltool.c: Likewise and ensure #include sysdep.h is first.
462 * ar.c (ranlib_main): Process --plugin option.
463 * doc/binutils.texi: Document --plugin support for ranlib.
468 * readelf.c (process_corefile_note_segment): Fix off-by-one errors
469 verifying the contents of a note.
474 * readelf.c (process_section_groups): If there are no section
475 headers do not scan for section groups.
476 (process_note_sections): Likewise for note sections.
480 * od-macho.c (OPT_SEG_SPLIT_INFO): New macro.
481 (options): Add an entry for seg_split_info.
482 (mach_o_help): Document it.
483 (dump_segment_split_info): New function.
484 (dump_load_command): Handle seg_split_info.
488 * dwarf.c (process_extended_line_op): Add a cast to silent a
493 * dwarf.c (process_extended_line_op): Reindent define_file output.
494 Detect define_file opcode length mismatch.
495 (display_debug_lines_decoded): Add an entry in file_table for each
497 Ignore DW_LNE_set_discriminator and DW_LNE_HP_set_sequence.
498 Display extended opcode for unhandle opcode.
502 * version.c (print_version): Update copyright message year.
507 * nm.c (OPTION_SIZE_SORT): Define.
508 (long_options): Don't set no_sort, sort_numerically or
509 sort_by_size directly.
510 (main): Instead set the flags here, making them mutually exclusive.
514 * objdump.c (display_object_bfd): Renamed from ...
515 (display_bfd): ... this.
516 (display_any_bfd): New function.
517 (display_file): Split. Handle nested archives.
521 * configure.in: Use AM_ZLIB.
522 * configure: Regenerated.
526 * po/ru.po: Updated Russian translation.
530 * od-macho.c (dump_load_command): Handle fvmlib.
534 * od-macho.c: Update copyright year.
535 (dump_load_command): Handle BFD_MACH_O_LC_ENCRYPTION_INFO.
537 For older changes see ChangeLog-2011
543 version-control: never