* read.c (read_symbol_name): New function. Reads a symbol names.
[external/binutils.git] / binutils / ChangeLog
1 2012-05-28  Nick Clifton  <nickc@redhat.com>
2
3         * readelf.c (print_symbol): Display multibyte characters in symbol
4         names.
5         (process_section_headers): Use print_symbol.
6
7 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
8
9         * aclocal.m4: Regenerate.
10         * configure: Regenerate.
11         * config.in: Regenerate.
12         * Makefile.in: Regenerate.
13
14 2012-05-17  Daniel Richard G.  <skunk@iskunk.org>
15             Nick Clifton  <nickc@redhat.com>
16
17         PR 14072
18         * configure.in: Add check that sysdep.h has been included before
19         any system header files.
20         * configure: Regenerate.
21         * config.in: Regenerate.
22         * unwind-ia64.h: Include config.h.
23
24 2012-05-17  Alan Modra  <amodra@gmail.com>
25
26         * dwarf.c (process_debug_info): Display abbrev offset in hex.
27         (display_debug_abbrev): Show offset of abbrev.
28
29 2012-05-17  Alan Modra  <amodra@gmail.com>
30
31         * dwarf.c (display_debug_ranges): Don't report more than one use
32         of the same range set as an overlap.
33
34 2012-05-16  Daniel Richard G.  <skunk@iskunk.org>
35
36         PR binutils/13558
37         * Makefile.am (CFILES): Add syslex_wrap.c.
38         (sysinfo): Depend upon syslex_wrap.o.
39         (syslex_wrap.o): New rule.
40         (syslex.o): Delete rule.
41         * syslex_wrap.c: New file.
42         * Makefile.in: Regenerate.
43
44 2012-05-15  James Murray <jsm@jsm-net.demon.co.uk>
45
46         * readelf.c (get_machine_name): Update m68hc12 entry.
47
48 2012-05-13  H.J. Lu  <hongjiu.lu@intel.com>
49
50         * objdump.c (disassemble_bytes): Print addend as signed.
51         (dump_reloc_set): Likewise.
52
53 2012-05-04  Sterling Augustine  <saugustine@google.com>
54             Cary Coutant  <ccoutant@google.com>
55
56         * doc/binutils.texi: Add --dwarf-check option.
57         * dwarf.c (dwarf_check): New global flag.
58         (fetch_indexed_string): New function.
59         (fetch_indexed_value): New function.
60         (get_FORM_name): Add DW_FORM_GNU_str_index and DW_FORM_GNU_addr_index.
61         (decode_location_expression): Add DW_OP_GNU_addr_index.
62         (read_and_display_attr_value): Add DW_FORM_GNU_str_index,
63         DW_FORM_GNU_addr_index, DW_AT_GNU_addr_base, and DW_AT_GNU_ranges_base.
64         (get_AT_name): Add new attributes for Fission.
65         (process_debug_info): Load new debug sections for Fission.
66         (load_debug_info): Check for .debug_info.dwo section.
67         (display_loc_list, display_loc_list_dwo): New functions.
68         (display_debug_loc): Move logic to above two functions.
69         (display_debug_info): Choose abbrev section based on info section.
70         (display_debug_types): Likewise.
71         (display_trace_info): Likewise.
72         (comp_addr_base): New function.
73         (display_debug_addr): New function.
74         (display_debug_str_offsets): New function.
75         (display_debug_ranges): Allow missing range lists.  Suppress
76         diagnostics if dwarf_check not set.
77         (debug_displays): Add column to select abbrev section.
78         * dwarf.h (enum dwarf_section_display_enum): Add new debug sections
79         for Fission.
80         (struct dwarf_section): Add abbrev_sec field.
81         (struct dwarf_section_display): New type.
82         (debug_info): Add addr_base, ranges_base fields.
83         (dwarf_check): New global variable.
84         * objdump.c (usage): Add --dwarf-check option.
85         (enum option_values): Add OPTION_DWARF_CHECK.
86         (long_options): Add --dwarf-check.
87         (main): Likewise.
88         * readelf.c (OPTION_DWARF_CHECK): New macro.
89         (options): Add --dwarf-check.
90         (parse_args): Likewise.
91         (process_section_headers): Use const_strneq instead of
92         streq.
93
94 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
95
96         PR binutils/14088
97         * readelf.c (dump_relocations): Always display addend as
98         signed hex number.
99
100 2012-05-11  Daniel Richard G.  <skunk@iskunk.org>
101
102         PR binutils/14028
103         * configure.in: Invoke ACX_HEADER_STRING.
104         * configure: Regenerate.
105         * config.in: Regenerate.
106         * sysdep.h: If STRINGS_WITH_STRING is defined then include both
107         string.h and strings.h.
108
109 2012-05-10  Jakub Jelinek  <jakub@redhat.com>
110
111         * dwarf.c (read_and_display_attr_value): Don't look up tag from
112         abbrev for DW_FORM_ref_addr.
113
114 2012-05-08  Sean Keys  <skeys@ipdatasys.com>
115
116         * binutils/MAINTAINERS: Added my entry to the maintainers secion.
117
118 2012-05-08  Cary Coutant  <ccoutant@google.com>
119
120         * doc/binutils.texi (objcopy): Add --strip-dwo, --extract-dwo options.
121         (strip): Add --strip-dwo option.
122         * objcopy.c (enum strip_action): Add STRIP_DWO, STRIP_NONDWO.
123         (enum command_line_switch): Add OPTION_EXTRACT_DWO, OPTION_STRIP_DWO.
124         (strip_options): Add --strip-dwo option.
125         (copy_options): Add --extract-dwo, --strip-dwo options.
126         (copy_usage): Likewise.
127         (strip_usage): Add --strip-dwo option.
128         (is_dwo_section): New function.
129         (is_strip_section_1): Check for DWO sections.
130         (copy_object): Check for --strip-dwo, --extract-dwo options.
131         (copy_relocations_in_section): Discard relocations for DWO sections.
132         Discard entire relocation section when no relocations.
133         (strip_main): Add --strip-dwo option.
134         (copy_main): Add --strip-dwo, --extract-dwo options.
135
136 2012-05-08  Alan Modra  <amodra@gmail.com>
137
138         * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
139         LC and LANG environment vars.
140         * Makefile.in: Regenerate.
141
142 2012-05-07  Tom Tromey  <tromey@redhat.com>
143
144         * dwarf.c (get_TAG_name): Use get_DW_TAG_name.
145         (get_FORM_name): Use get_DW_FORM_name.
146         (get_AT_name): Use get_DW_AT_name.
147
148 2012-05-07  Alan Modra  <amodra@gmail.com>
149
150         * Makefile.am (check-DEJAGNU): Clear LC_COLLATE, LC_ALL and LANG.
151         * Makefile.in: Regenerate.
152
153 2012-05-05  Alan Modra  <amodra@gmail.com>
154
155         * dlltool.c (make_one_lib_file): Use bfd_und_section_ptr.
156
157 2012-05-03  Sean Keys  <skeys@ipdatasys.com>
158
159         * readelf.c: Add support for XGATE.
160
161 2012-05-02  Nick Clifton  <nickc@redhat.com>
162
163         * po/vi.po: Updated Vietnamese translation.
164         * po/it.po: New Italian translation.
165         * configure.in (ALL_LINGUAS): Add it.
166         * configure: Regenerate.
167
168 2012-05-01  Nick Clifton  <nickc@redhat.com>
169
170         PR binutils/13121
171         * rescoff.c: Rename 'finfo' to 'flaginfo' to avoid conflicts with
172         AIX system headers.
173
174 2012-04-25  Cary Coutant  <ccoutant@google.com>
175
176         * doc/binutils.texi: Add -D/--enable-deterministic-archives option
177         to strip and objcopy.
178         * objcopy.c (deterministic): New global variable.
179         (strip_options): Add --enable-deterministic-archives.
180         (copy_options): Likewise.
181         (copy_usage): Likewise.
182         (strip_usage): Likewise.
183         (copy_archive): When stripping all, don't add archive map; set
184         deterministic output when requested.
185         (strip_main): Add -D/--enable-deterministic-archives option.
186         (copy_main): Likewise.
187
188 2012-04-12  H.J. Lu  <hongjiu.lu@intel.com>
189
190         PR binutils/13947
191         * objcopy.c (copy_object): Call copy_relocations_in_section
192         before copy_section.
193         (skip_section): New.
194         (copy_relocations_in_section): Likewise.
195         (copy_section): Use skip_section.  Don't copy relocations here.
196
197 2012-04-11  Ryan Mansfield  <rmansfield@qnx.com>
198
199         * objdump.c (dump_bfd): If defaulting to dwarf call
200         dwarf_select_sections_all to enable displays.
201
202 2012-04-06  Roland McGrath  <mcgrathr@google.com>
203
204         * configure.in (AC_CHECK_HEADERS): Add locale.h.
205         * config.in: Regenerate.
206         * configure: Regenerate.
207
208 2012-04-05  Nick Clifton  <nickc@redhat.com>
209
210         * configure.in (AC_CHECK_FUNCS): Add setlocale.
211         (AM_LC_MESSAGES): Add.
212         * aclocal.m4: Regenerate.
213         * config.in: Regenerate.
214         * configure: Regenerate.
215
216 2012-03-30  Nick Clifton  <nickc@redhat.com>
217
218         PR binutils/13925
219         * stabs.c (stab_demangle_v3_arglist): Cope with the demangler
220         returning an empty context for a function with no arguments.
221
222 2012-03-28  Tom Tromey  <tromey@redhat.com>
223
224         * dwarf.c (display_gdb_index): Handle index version 6.
225
226 2012-03-07  Nick Clifton  <nickc@redhat.com>
227
228         * readelf.c (is_16bit_abs_reloc): Add detection of R_MN10300_16.
229
230 2012-02-29  Jeff Law  <law@redhat.com>
231
232         * doc/binutils.texi (c++filt): Fix typos.
233
234 2012-02-24  Kai Tietz  <ktietz@redhat.com>
235
236         PR binutils/13710
237         * defparse.y (keyword_as_name): Disable LIBRARY
238         keyword.
239         * doc/binutils.texi: Document LIBRARY exception.
240
241 2012-02-21  Kai Tietz<ktietz@redhat.com>
242
243         PR binutils/13682
244         * NEWS: Mention new feature.
245         * dlltool.c (i386_x64_dljtab): New stub-code for x64
246         delayed-load feature.
247         (i386_x64_trampoline): New trampoline-code for x64
248         delayed-load feature.
249         (make_one_lib_file): Add support for x64 delayed-load
250         feature.
251         (make_delay_head): Likewis
252
253 2012-02-20  Namhyung Kim  <namhyung.kim@lge.com>
254
255         * objdump.c (slurp_file): Close file if fstat fails.
256
257 2012-02-14  Cary Coutant  <ccoutant@google.com>
258
259         * dwarf.c (dwarf_vmatoa64): New function.
260         (read_and_display_attr_value): Print 8-byte forms as single hex
261         numbers.
262         (process_debug_info): Print type signatures as single hex numbers.
263         * elfcomm.c (byte_get_64): New function.
264         * elfcomm.h (byte_get_64): New function.
265
266 2012-02-11  Kai Tietz  <ktietz@redhat.com>
267
268         PR binutils/13657
269         * defparse.y (%union): New type id_const.
270         (opt_name2): New rule.
271         (keyword_as_name): New rule.
272         (opt_name): Adjust rule.
273         (opt_import_name): Likewise.
274         (opt_equal_name): Likewise.
275
276 2012-02-11  Kai Tietz  <ktietz@redhat.com>
277
278         PR binutils/13297
279         * resrc.c (write_rc_dialog_control): Omit text dump for
280         EDITTEXT, COMBOBOX, LISTBOX, and SCROLLBAR.
281
282 2012-02-09  Alan Modra  <amodra@gmail.com>
283
284         * sysdep.h: Include sys/stat.h here.
285         * ar.c: Don't include headers already included by sysdep.h.
286         * bucomm.c: Likewise.
287         * budbg.h: Likewise.
288         * dlltool.h: Likewise.
289         * elfedit.c: Likewise.
290         * nlmconv.c: Likewise.
291         * objcopy.c: Likewise.
292         * objdump.c: Likewise.
293         * objdump.h: Likewise.
294         * readelf.c: Likewise.
295         * rename.c: Likewise.
296         * resrc.c: Likewise.
297         * strings.c: Likewise.
298         * windres.c: Likewise.
299         * od-macho.c: Ensure #include sysdep.h is first.
300         * od-xcoff.c: Likewise.
301         * dllwrap.c: Remove alloca pragma handled by sysdep.h, and
302         remove duplicate headers.
303         * dlltool.c: Likewise and ensure #include sysdep.h is first.
304
305 2012-02-01  Nick Clifton  <nickc@redhat.com>
306
307         PR binutils/13493
308         * ar.c (ranlib_main): Process --plugin option.
309         * doc/binutils.texi: Document --plugin support for ranlib.
310
311 2012-02-01  Nick Clifton  <nickc@redhat.com>
312
313         PR binutils/13482
314         * readelf.c (process_corefile_note_segment): Fix off-by-one errors
315         verifying the contents of a note.
316
317 2012-01-26  Nick Clifton  <nickc@redhat.com>
318
319         PR binutils/13622
320         * readelf.c (process_section_groups): If there are no section
321         headers do not scan for section groups.
322         (process_note_sections): Likewise for note sections.
323
324 2012-01-20  Tristan Gingold  <gingold@adacore.com>
325
326         * od-macho.c (OPT_SEG_SPLIT_INFO): New macro.
327         (options): Add an entry for seg_split_info.
328         (mach_o_help): Document it.
329         (dump_segment_split_info): New function.
330         (dump_load_command): Handle seg_split_info.
331
332 2012-01-19  Tristan Gingold  <gingold@adacore.com>
333
334         * dwarf.c (process_extended_line_op): Add a cast to silent a
335         warning.
336
337 2012-01-19  Tristan Gingold  <gingold@adacore.com>
338
339         * dwarf.c (process_extended_line_op): Reindent define_file output.
340         Detect define_file opcode length mismatch.
341         (display_debug_lines_decoded): Add an entry in file_table for each
342         define_file opcode.
343         Ignore DW_LNE_set_discriminator and DW_LNE_HP_set_sequence.
344         Display extended opcode for unhandle opcode.
345
346 2012-01-17  Alan Modra  <amodra@gmail.com>
347
348         * version.c (print_version): Update copyright message year.
349
350 2012-01-16  Alan Modra  <amodra@gmail.com>
351
352         PR binutils/13593
353         * nm.c (OPTION_SIZE_SORT): Define.
354         (long_options): Don't set no_sort, sort_numerically or
355         sort_by_size directly.
356         (main): Instead set the flags here, making them mutually exclusive.
357
358 2012-01-10  Tristan Gingold  <gingold@adacore.com>
359
360         * objdump.c (display_object_bfd): Renamed from ...
361         (display_bfd): ... this.
362         (display_any_bfd): New function.
363         (display_file): Split.  Handle nested archives.
364
365 2012-01-09  Roland McGrath  <mcgrathr@google.com>
366
367         * configure.in: Use AM_ZLIB.
368         * configure: Regenerated.
369
370 2012-01-06  Nick Clifton  <nickc@redhat.com>
371
372         * po/ru.po: Updated Russian translation.
373
374 2012-01-04  Tristan Gingold  <gingold@adacore.com>
375
376         * od-macho.c (dump_load_command): Handle fvmlib.
377
378 2012-01-04  Tristan Gingold  <gingold@adacore.com>
379
380         * od-macho.c: Update copyright year.
381         (dump_load_command): Handle BFD_MACH_O_LC_ENCRYPTION_INFO.
382
383 For older changes see ChangeLog-2011
384 \f
385 Local Variables:
386 mode: change-log
387 left-margin: 8
388 fill-column: 74
389 version-control: never
390 End: