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