* config.in: Disable sanity check for kfreebsd.
[external/binutils.git] / binutils / ChangeLog
1 2012-09-10  Matthias Klose  <doko@ubuntu.com>
2
3         * config.in: Disable sanity check for kfreebsd.
4
5 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
6
7         * configure: Regenerated.
8
9 2012-09-06  Cary Coutant  <ccoutant@google.com>
10
11         * dwarf.c (decode_location_expression): Add
12         DW_OP_GNU_const_index.
13
14 2012-09-06  Nick Clifton  <nickc@redhat.com>
15
16         * doc/binutils.texi (nm): Alpha-sort the option descriptions.
17         Add description of the --synthetic option.
18
19 2012-09-04  H.J. Lu  <hongjiu.lu@intel.com>
20
21         PR binutils/14493
22         * readelf.c (get_symbol_index_type): Check bad section index.
23
24 2012-08-24  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
25
26         * readelf.c (arm_attr_tag_CPU_arch): Update for ARMv8.
27         (arm_attr_tag_FP_arch): Likewise.
28         (arm_attr_tag_Advanced_SIMD_arch): Likewise.
29
30 2012-08-17  Yuri Chornoivan  <yurchor@ukr.net>
31
32         * doc/binutils.texi, * objdump.c, * od-xcoff.c: Typo fixes.
33
34 2012-08-16  H.J. Lu  <hongjiu.lu@intel.com>
35
36         PR binutils/14481
37         * Makefile.am (BFDTEST1_PROG): New.
38         (TEST_PROGS): Likewise.
39         (bfdtest1_DEPENDENCIES): Likewise.
40         (noinst_PROGRAMS): Add $(TEST_PROGS).
41         * Makefile.in: Regenerated.
42
43         * bfdtest1.c: New file.
44
45 2012-08-13  Ian Bolton  <ian.bolton@arm.com>
46             Laurent Desnogues  <laurent.desnogues@arm.com>
47             Jim MacArthur  <jim.macarthur@arm.com>
48             Marcus Shawcroft  <marcus.shawcroft@arm.com>
49             Nigel Stephens  <nigel.stephens@arm.com>
50             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
51             Richard Earnshaw  <rearnsha@arm.com>
52             Sofiane Naci  <sofiane.naci@arm.com>
53             Tejas Belagod  <tejas.belagod@arm.com>
54             Yufeng Zhang  <yufeng.zhang@arm.com>
55
56         * readelf.c (guess_is_rela): Handle EM_AARCH64.
57         (get_machine_name): Likewise.
58         (get_aarch64_segment_type): New function.
59         (get_segment_type): Handle EM_AARCH64 by calling the new function.
60         (get_aarch64_section_type_name): New function.
61         (get_section_type_name): Handle EM_AARCH64 by calling the new function.
62         (is_32bit_abs_reloc): Handle EM_AARCH64.
63         (is_32bit_pcrel_reloc): Likewise.
64         (is_64bit_abs_reloc): Likewise.
65         (is_64bit_pcrel_reloc): Likewise.
66         (is_none_reloc): Likewise.
67
68 2012-08-09  Nick Clifton  <nickc@redhat.com>
69
70         * po/vi.po: Updated Vietnamese translation.
71
72 2012-08-03  Tom Tromey  <tromey@redhat.com>
73
74         * dlltool.c (scan_obj_file): Close arfile after calling
75         bfd_openr_next_archived_file.
76
77 2012-08-02  H.J. Lu  <hongjiu.lu@intel.com>
78
79         PR binutils/14420
80         * dwarf.c (process_abbrev_section): Add attribute terminator.
81         Warn missing section terminator.
82         (get_FORM_name): Special check for 0 value.
83         (get_AT_name): Likewise.
84         (process_debug_info): Display zero abbrev number.  Check
85         attribute terminator.
86
87 2012-07-30  Nick Clifton  <nickc@redhat.com>
88
89         * po/binutils.pot: Updated template.
90         * po/bg.po: Updated Bulgarian translation.
91         * po/es.po: Updated Spanish translation.
92         * po/fi.po: Updated Finnish translation.
93         * po/fr.po: Updated French translation.
94         * po/uk.po: Updated Ukranian translation.
95
96 2012-07-28  Kai Tietz  <ktietz@redhat.com>
97
98         * rcparse.y (FILEVERSION): Use optcnumexpr instead of cnumexpr.
99         (PRODUCTVERSION): Likewise.
100
101 2012-07-27  Mike Frysinger  <vapier@gentoo.org>
102
103         * configure.in (BFD_VERSION): Run bfd/configure --version and
104         parse the output of that.
105         * configure: Regenerate.
106
107 2012-07-27  Tristan Gingold  <gingold@adacore.com>
108
109         * NEWS: Add marker for 2.23.
110
111 2012-07-24  Teresa Johnson  <tejohnson@google.com>
112
113         * addr2line.c (find_address_in_section): Invoke
114         bfd_find_nearest_line_discriminator to get the discriminator.
115         (find_offset_in_section): Likewise.
116         (translate_addresses): Print discriminator if it is non-zero.
117         * objdump.c (show_line): Invoke
118         bfd_find_nearest_line_discriminator to get the discriminator,
119         and keep track of prev_discriminator. Print discriminator
120         if it is non-zero.
121         (disassemble_data): Initialize prev_discriminator.
122         (dump_reloc_set): Invoke bfd_find_nearest_line_discriminator
123         to get the discriminator, and keep track of last_discriminator.
124         Print discriminator if it is non-zero.
125
126 2012-07-17  Nick Clifton  <nickc@redhat.com>
127
128         * elfcomm.c (setup_archive): Extract index table and symbol table
129         scanning code into...
130         (process_archive_index_and_symbols): ... this function and add
131         support for 64-bit index tables.
132         * elfcomm.h (struct archive_info): Change type of index_num and
133         index_array to elf_vma.
134         Add 'uses_64bit_indicies' field.
135         * readelf.c (process_archive): Fix support for 64-bit indicies.
136
137 2012-07-03  Nick Clifton  <nickc@redhat.com>
138
139         * readelf.c (process_archive): Display member indicies when
140         dumping index.
141
142 2012-07-02  Tom Tromey  <tromey@redhat.com>
143
144         * dwarf.c: Include gdb-index.h.
145         (display_gdb_index): Handle version 7.
146
147 2012-06-29  H.J. Lu  <hongjiu.lu@intel.com>
148
149         * nm.c (filter_symbols): Simplify global symbol handling.
150
151 2012-06-29  Francois Gouget  <fgouget@codeweavers.com>
152
153         PR binutils/14302
154         * bucomm.c (print_arelt_descr): Correctly report the archive size
155         field (for 'ar tv').
156         * ar.c (print_contents): Use correct types for archive element
157         sizes (for 'ar p').
158         (extract_file): Likewise (for 'ar x').
159
160 2012-06-29  Alan Modra  <amodra@gmail.com>
161
162         * readelf.c (is_16bit_abs_reloc): Handle mn10200 reloc.
163
164 2012-06-12  Tom Tromey  <tromey@redhat.com>
165
166         * dwarf-mode.el: Add final comment.  Bump version.
167         (dwarf-insert-substructure-button): Use string-to-number.
168         (dwarf-browse): Fix autoload cookie.
169
170 2012-06-08  Jakub Jelinek  <jakub@redhat.com>
171
172         * dwarf.c (read_and_display_attr_value): Handle
173         DW_FORM_GNU_ref_alt and DW_FORM_GNU_strp_alt.
174         (display_debug_macro): Handle DW_MACRO_GNU_define_indirect_alt,
175         DW_MACRO_GNU_undef_indirect_alt and
176         DW_MACRO_GNU_transparent_include_alt.
177
178 2012-06-01  Alan Modra  <amodra@gmail.com>
179
180         * addr2line.c (translate_addresses): Truncate input addresses to
181         arch_size bits.  Avoid undefined shift.  Print '?' for zero line.
182
183 2012-05-30  Nick Clifton  <nickc@redhat.com>
184
185         * readelf.c (process_section_headers): Correct bug in previous
186         delta - display full section type in wide mode.
187
188 2012-05-28  Nick Clifton  <nickc@redhat.com>
189
190         * readelf.c (print_symbol): Display multibyte characters in symbol
191         names.
192         (process_section_headers): Use print_symbol.
193
194 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
195
196         * aclocal.m4: Regenerate.
197         * configure: Regenerate.
198         * config.in: Regenerate.
199         * Makefile.in: Regenerate.
200
201 2012-05-17  Daniel Richard G.  <skunk@iskunk.org>
202             Nick Clifton  <nickc@redhat.com>
203
204         PR 14072
205         * configure.in: Add check that sysdep.h has been included before
206         any system header files.
207         * configure: Regenerate.
208         * config.in: Regenerate.
209         * unwind-ia64.h: Include config.h.
210
211 2012-05-17  Alan Modra  <amodra@gmail.com>
212
213         * dwarf.c (process_debug_info): Display abbrev offset in hex.
214         (display_debug_abbrev): Show offset of abbrev.
215
216 2012-05-17  Alan Modra  <amodra@gmail.com>
217
218         * dwarf.c (display_debug_ranges): Don't report more than one use
219         of the same range set as an overlap.
220
221 2012-05-16  Daniel Richard G.  <skunk@iskunk.org>
222
223         PR binutils/13558
224         * Makefile.am (CFILES): Add syslex_wrap.c.
225         (sysinfo): Depend upon syslex_wrap.o.
226         (syslex_wrap.o): New rule.
227         (syslex.o): Delete rule.
228         * syslex_wrap.c: New file.
229         * Makefile.in: Regenerate.
230
231 2012-05-15  James Murray <jsm@jsm-net.demon.co.uk>
232
233         * readelf.c (get_machine_name): Update m68hc12 entry.
234
235 2012-05-13  H.J. Lu  <hongjiu.lu@intel.com>
236
237         * objdump.c (disassemble_bytes): Print addend as signed.
238         (dump_reloc_set): Likewise.
239
240 2012-05-04  Sterling Augustine  <saugustine@google.com>
241             Cary Coutant  <ccoutant@google.com>
242
243         * doc/binutils.texi: Add --dwarf-check option.
244         * dwarf.c (dwarf_check): New global flag.
245         (fetch_indexed_string): New function.
246         (fetch_indexed_value): New function.
247         (get_FORM_name): Add DW_FORM_GNU_str_index and DW_FORM_GNU_addr_index.
248         (decode_location_expression): Add DW_OP_GNU_addr_index.
249         (read_and_display_attr_value): Add DW_FORM_GNU_str_index,
250         DW_FORM_GNU_addr_index, DW_AT_GNU_addr_base, and DW_AT_GNU_ranges_base.
251         (get_AT_name): Add new attributes for Fission.
252         (process_debug_info): Load new debug sections for Fission.
253         (load_debug_info): Check for .debug_info.dwo section.
254         (display_loc_list, display_loc_list_dwo): New functions.
255         (display_debug_loc): Move logic to above two functions.
256         (display_debug_info): Choose abbrev section based on info section.
257         (display_debug_types): Likewise.
258         (display_trace_info): Likewise.
259         (comp_addr_base): New function.
260         (display_debug_addr): New function.
261         (display_debug_str_offsets): New function.
262         (display_debug_ranges): Allow missing range lists.  Suppress
263         diagnostics if dwarf_check not set.
264         (debug_displays): Add column to select abbrev section.
265         * dwarf.h (enum dwarf_section_display_enum): Add new debug sections
266         for Fission.
267         (struct dwarf_section): Add abbrev_sec field.
268         (struct dwarf_section_display): New type.
269         (debug_info): Add addr_base, ranges_base fields.
270         (dwarf_check): New global variable.
271         * objdump.c (usage): Add --dwarf-check option.
272         (enum option_values): Add OPTION_DWARF_CHECK.
273         (long_options): Add --dwarf-check.
274         (main): Likewise.
275         * readelf.c (OPTION_DWARF_CHECK): New macro.
276         (options): Add --dwarf-check.
277         (parse_args): Likewise.
278         (process_section_headers): Use const_strneq instead of
279         streq.
280
281 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
282
283         PR binutils/14088
284         * readelf.c (dump_relocations): Always display addend as
285         signed hex number.
286
287 2012-05-11  Daniel Richard G.  <skunk@iskunk.org>
288
289         PR binutils/14028
290         * configure.in: Invoke ACX_HEADER_STRING.
291         * configure: Regenerate.
292         * config.in: Regenerate.
293         * sysdep.h: If STRINGS_WITH_STRING is defined then include both
294         string.h and strings.h.
295
296 2012-05-10  Jakub Jelinek  <jakub@redhat.com>
297
298         * dwarf.c (read_and_display_attr_value): Don't look up tag from
299         abbrev for DW_FORM_ref_addr.
300
301 2012-05-08  Sean Keys  <skeys@ipdatasys.com>
302
303         * binutils/MAINTAINERS: Added my entry to the maintainers secion.
304
305 2012-05-08  Cary Coutant  <ccoutant@google.com>
306
307         * doc/binutils.texi (objcopy): Add --strip-dwo, --extract-dwo options.
308         (strip): Add --strip-dwo option.
309         * objcopy.c (enum strip_action): Add STRIP_DWO, STRIP_NONDWO.
310         (enum command_line_switch): Add OPTION_EXTRACT_DWO, OPTION_STRIP_DWO.
311         (strip_options): Add --strip-dwo option.
312         (copy_options): Add --extract-dwo, --strip-dwo options.
313         (copy_usage): Likewise.
314         (strip_usage): Add --strip-dwo option.
315         (is_dwo_section): New function.
316         (is_strip_section_1): Check for DWO sections.
317         (copy_object): Check for --strip-dwo, --extract-dwo options.
318         (copy_relocations_in_section): Discard relocations for DWO sections.
319         Discard entire relocation section when no relocations.
320         (strip_main): Add --strip-dwo option.
321         (copy_main): Add --strip-dwo, --extract-dwo options.
322
323 2012-05-08  Alan Modra  <amodra@gmail.com>
324
325         * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
326         LC and LANG environment vars.
327         * Makefile.in: Regenerate.
328
329 2012-05-07  Tom Tromey  <tromey@redhat.com>
330
331         * dwarf.c (get_TAG_name): Use get_DW_TAG_name.
332         (get_FORM_name): Use get_DW_FORM_name.
333         (get_AT_name): Use get_DW_AT_name.
334
335 2012-05-07  Alan Modra  <amodra@gmail.com>
336
337         * Makefile.am (check-DEJAGNU): Clear LC_COLLATE, LC_ALL and LANG.
338         * Makefile.in: Regenerate.
339
340 2012-05-05  Alan Modra  <amodra@gmail.com>
341
342         * dlltool.c (make_one_lib_file): Use bfd_und_section_ptr.
343
344 2012-05-03  Sean Keys  <skeys@ipdatasys.com>
345
346         * readelf.c: Add support for XGATE.
347
348 2012-05-02  Nick Clifton  <nickc@redhat.com>
349
350         * po/vi.po: Updated Vietnamese translation.
351         * po/it.po: New Italian translation.
352         * configure.in (ALL_LINGUAS): Add it.
353         * configure: Regenerate.
354
355 2012-05-01  Nick Clifton  <nickc@redhat.com>
356
357         PR binutils/13121
358         * rescoff.c: Rename 'finfo' to 'flaginfo' to avoid conflicts with
359         AIX system headers.
360
361 2012-04-25  Cary Coutant  <ccoutant@google.com>
362
363         * doc/binutils.texi: Add -D/--enable-deterministic-archives option
364         to strip and objcopy.
365         * objcopy.c (deterministic): New global variable.
366         (strip_options): Add --enable-deterministic-archives.
367         (copy_options): Likewise.
368         (copy_usage): Likewise.
369         (strip_usage): Likewise.
370         (copy_archive): When stripping all, don't add archive map; set
371         deterministic output when requested.
372         (strip_main): Add -D/--enable-deterministic-archives option.
373         (copy_main): Likewise.
374
375 2012-04-12  H.J. Lu  <hongjiu.lu@intel.com>
376
377         PR binutils/13947
378         * objcopy.c (copy_object): Call copy_relocations_in_section
379         before copy_section.
380         (skip_section): New.
381         (copy_relocations_in_section): Likewise.
382         (copy_section): Use skip_section.  Don't copy relocations here.
383
384 2012-04-11  Ryan Mansfield  <rmansfield@qnx.com>
385
386         * objdump.c (dump_bfd): If defaulting to dwarf call
387         dwarf_select_sections_all to enable displays.
388
389 2012-04-06  Roland McGrath  <mcgrathr@google.com>
390
391         * configure.in (AC_CHECK_HEADERS): Add locale.h.
392         * config.in: Regenerate.
393         * configure: Regenerate.
394
395 2012-04-05  Nick Clifton  <nickc@redhat.com>
396
397         * configure.in (AC_CHECK_FUNCS): Add setlocale.
398         (AM_LC_MESSAGES): Add.
399         * aclocal.m4: Regenerate.
400         * config.in: Regenerate.
401         * configure: Regenerate.
402
403 2012-03-30  Nick Clifton  <nickc@redhat.com>
404
405         PR binutils/13925
406         * stabs.c (stab_demangle_v3_arglist): Cope with the demangler
407         returning an empty context for a function with no arguments.
408
409 2012-03-28  Tom Tromey  <tromey@redhat.com>
410
411         * dwarf.c (display_gdb_index): Handle index version 6.
412
413 2012-03-07  Nick Clifton  <nickc@redhat.com>
414
415         * readelf.c (is_16bit_abs_reloc): Add detection of R_MN10300_16.
416
417 2012-02-29  Jeff Law  <law@redhat.com>
418
419         * doc/binutils.texi (c++filt): Fix typos.
420
421 2012-02-24  Kai Tietz  <ktietz@redhat.com>
422
423         PR binutils/13710
424         * defparse.y (keyword_as_name): Disable LIBRARY
425         keyword.
426         * doc/binutils.texi: Document LIBRARY exception.
427
428 2012-02-21  Kai Tietz<ktietz@redhat.com>
429
430         PR binutils/13682
431         * NEWS: Mention new feature.
432         * dlltool.c (i386_x64_dljtab): New stub-code for x64
433         delayed-load feature.
434         (i386_x64_trampoline): New trampoline-code for x64
435         delayed-load feature.
436         (make_one_lib_file): Add support for x64 delayed-load
437         feature.
438         (make_delay_head): Likewis
439
440 2012-02-20  Namhyung Kim  <namhyung.kim@lge.com>
441
442         * objdump.c (slurp_file): Close file if fstat fails.
443
444 2012-02-14  Cary Coutant  <ccoutant@google.com>
445
446         * dwarf.c (dwarf_vmatoa64): New function.
447         (read_and_display_attr_value): Print 8-byte forms as single hex
448         numbers.
449         (process_debug_info): Print type signatures as single hex numbers.
450         * elfcomm.c (byte_get_64): New function.
451         * elfcomm.h (byte_get_64): New function.
452
453 2012-02-11  Kai Tietz  <ktietz@redhat.com>
454
455         PR binutils/13657
456         * defparse.y (%union): New type id_const.
457         (opt_name2): New rule.
458         (keyword_as_name): New rule.
459         (opt_name): Adjust rule.
460         (opt_import_name): Likewise.
461         (opt_equal_name): Likewise.
462
463 2012-02-11  Kai Tietz  <ktietz@redhat.com>
464
465         PR binutils/13297
466         * resrc.c (write_rc_dialog_control): Omit text dump for
467         EDITTEXT, COMBOBOX, LISTBOX, and SCROLLBAR.
468
469 2012-02-09  Alan Modra  <amodra@gmail.com>
470
471         * sysdep.h: Include sys/stat.h here.
472         * ar.c: Don't include headers already included by sysdep.h.
473         * bucomm.c: Likewise.
474         * budbg.h: Likewise.
475         * dlltool.h: Likewise.
476         * elfedit.c: Likewise.
477         * nlmconv.c: Likewise.
478         * objcopy.c: Likewise.
479         * objdump.c: Likewise.
480         * objdump.h: Likewise.
481         * readelf.c: Likewise.
482         * rename.c: Likewise.
483         * resrc.c: Likewise.
484         * strings.c: Likewise.
485         * windres.c: Likewise.
486         * od-macho.c: Ensure #include sysdep.h is first.
487         * od-xcoff.c: Likewise.
488         * dllwrap.c: Remove alloca pragma handled by sysdep.h, and
489         remove duplicate headers.
490         * dlltool.c: Likewise and ensure #include sysdep.h is first.
491
492 2012-02-01  Nick Clifton  <nickc@redhat.com>
493
494         PR binutils/13493
495         * ar.c (ranlib_main): Process --plugin option.
496         * doc/binutils.texi: Document --plugin support for ranlib.
497
498 2012-02-01  Nick Clifton  <nickc@redhat.com>
499
500         PR binutils/13482
501         * readelf.c (process_corefile_note_segment): Fix off-by-one errors
502         verifying the contents of a note.
503
504 2012-01-26  Nick Clifton  <nickc@redhat.com>
505
506         PR binutils/13622
507         * readelf.c (process_section_groups): If there are no section
508         headers do not scan for section groups.
509         (process_note_sections): Likewise for note sections.
510
511 2012-01-20  Tristan Gingold  <gingold@adacore.com>
512
513         * od-macho.c (OPT_SEG_SPLIT_INFO): New macro.
514         (options): Add an entry for seg_split_info.
515         (mach_o_help): Document it.
516         (dump_segment_split_info): New function.
517         (dump_load_command): Handle seg_split_info.
518
519 2012-01-19  Tristan Gingold  <gingold@adacore.com>
520
521         * dwarf.c (process_extended_line_op): Add a cast to silent a
522         warning.
523
524 2012-01-19  Tristan Gingold  <gingold@adacore.com>
525
526         * dwarf.c (process_extended_line_op): Reindent define_file output.
527         Detect define_file opcode length mismatch.
528         (display_debug_lines_decoded): Add an entry in file_table for each
529         define_file opcode.
530         Ignore DW_LNE_set_discriminator and DW_LNE_HP_set_sequence.
531         Display extended opcode for unhandle opcode.
532
533 2012-01-17  Alan Modra  <amodra@gmail.com>
534
535         * version.c (print_version): Update copyright message year.
536
537 2012-01-16  Alan Modra  <amodra@gmail.com>
538
539         PR binutils/13593
540         * nm.c (OPTION_SIZE_SORT): Define.
541         (long_options): Don't set no_sort, sort_numerically or
542         sort_by_size directly.
543         (main): Instead set the flags here, making them mutually exclusive.
544
545 2012-01-10  Tristan Gingold  <gingold@adacore.com>
546
547         * objdump.c (display_object_bfd): Renamed from ...
548         (display_bfd): ... this.
549         (display_any_bfd): New function.
550         (display_file): Split.  Handle nested archives.
551
552 2012-01-09  Roland McGrath  <mcgrathr@google.com>
553
554         * configure.in: Use AM_ZLIB.
555         * configure: Regenerated.
556
557 2012-01-06  Nick Clifton  <nickc@redhat.com>
558
559         * po/ru.po: Updated Russian translation.
560
561 2012-01-04  Tristan Gingold  <gingold@adacore.com>
562
563         * od-macho.c (dump_load_command): Handle fvmlib.
564
565 2012-01-04  Tristan Gingold  <gingold@adacore.com>
566
567         * od-macho.c: Update copyright year.
568         (dump_load_command): Handle BFD_MACH_O_LC_ENCRYPTION_INFO.
569
570 For older changes see ChangeLog-2011
571 \f
572 Local Variables:
573 mode: change-log
574 left-margin: 8
575 fill-column: 74
576 version-control: never
577 End: