1d243157b3e60a1210d2f88d3cc0bc2c24f2cf23
[external/binutils.git] / binutils / ChangeLog
1 2011-07-03  Samuel Thibault  <samuel.thibault@gnu.org>
2             Thomas Schwinge  <thomas@schwinge.name>
3
4         * elfedit.c (osabis): Use ELFOSABI_GNU name instead of ELFOSABI_LINUX
5         alias and ELFOSABI_HURD.  Add GNU alias.
6         * readelf.c (get_osabi_name, get_symbol_binding, get_symbol_type):
7         Likewise.
8         * doc/binutils.texi <elfedit>: Update accordingly.
9
10 2011-07-01  Nick Clifton  <nickc@redhat.com>
11
12         PR binutils/12325
13         * doc/binutils.texi (ar cmdline): Document --target, --version and
14         --help command line options.
15
16 2011-06-30  Nick Clifton  <nickc@redhat.com>
17
18         PR binutils/12558
19         * ar.c (main): When asked to move members in an archive that is
20         being created, ignore the move request.
21
22 2011-06-29  Nick Clifton  <nickc@redhat.com>
23
24         * readelf.c (get_section_type_name): When displaying an unknown
25         section type display the hex value first on the assumption that
26         the full message will probably be truncated into a 15 character
27         field.
28
29 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
30
31         * dwarf.c (decode_location_expression): For DW_OP_GNU_convert and
32         DW_OP_GNU_reinterpret, if uvalue is 0, don't add cu_offset.
33         Handle DW_OP_GNU_parameter_ref.
34
35 2011-06-16  Tom Tromey  <tromey@redhat.com>
36
37         * dwarf-mode.el (dwarf-do-insert-substructure): Call
38         expand-file-name.
39         (dwarf-do-refresh): Likewise.
40
41 2011-06-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
42
43         * readelf.c (get_note_type): Handle NT_ARM_VFP.
44
45 2011-06-13  Walter Lee  <walt@tilera.com>
46
47         * readelf.c: Include tilepro.h and tilegx.h.
48         (guess_is_rela): Handle EM_TILEGX and EM_TILEPRO.
49         (dump_relocations): Likewise.
50         (get_machine_name): Likewise.
51         (is_32bit_abs_reloc): Likewise.
52         (is_32bit_pcerel_reloc): Likewise.
53         (is_64bit_abs_reloc): Likewise.
54         (is_64bit_pcrel_reloc): Likewise.
55
56 2011-06-09  Tristan Gingold  <gingold@adacore.com>
57
58         * od-xcoff.c (xcoff32_read_symbols): Allow missing string table
59         length.
60
61 2011-06-08  Nick Clifton  <nickc@redhat.com>
62
63         PR binutils/12855
64         * readelf.c (process_version_sections): Handle binaries containing
65         corrupt version information.
66         (process_symbol_table): Stop processing a symbol's version
67         information if it could not be read in.
68
69         (get_data): Add comment describing the function.
70         (process_section_headers): Set dynamic_strings_length to 0 if the
71         dynamic strings could not be read in.
72         (process_dynamic_section): Likewise.
73         (process_section_groups): Stop processing the group information if
74         the data could not be read in.
75         (hppa_processs_unwind): Assert that there is only one string table
76         in the file.
77         (arm_process_unwind): Likewise.
78         (ia64_process_unwind): Likewise.
79         Set the size of the unwind auxillary information to 0 if the data
80         could not be read.
81         (load_specific_debug_section): Handle a failure to read in the
82         section.
83         (process_mips_specific): Stop display of the PLT GOT section if it
84         could not be read in.
85
86 2011-06-08  Tristan Gingold  <gingold@adacore.com>
87
88         * makefile.vms (DEFS): Define OBJDUMP_PRIVATE_VECTORS.
89
90 2011-06-07  Cary Coutant  <ccoutant@google.com>
91
92         * dwarf.c: Fix conversion to TU number.
93
94 2011-06-02  Nick Clifton  <nickc@redhat.com>
95
96         * resres.c: Fix spelling typo.
97         * windint.h: Likewise.
98         * windmc.c: Likewise.
99         * windres.c: Likewise.
100         * po/POTFILES.in: Regenerate.
101         * po/binutils.pot: Regenerate.
102
103 2011-06-01  Daniel Jacobowitz  <drow@false.org>
104
105         * MAINTAINERS: Update my email address.
106
107 2011-05-31  Matthias Klose  <doko@ubuntu.com>
108
109         * configure.in (BUILD_INSTALL_MISC): Only add embedspu once.
110         * configure: Regenerate.
111
112 2011-05-30  Alan Modra  <amodra@gmail.com>
113
114         PR binutils/12820
115         * Makefile.am (bin_PROGRAMS): Move BUILD_INSTALL_MISC to..
116         (bin_SCRIPTS): ..here.
117         (EXTRA_SCRIPTS): Define.
118         (EXTRA_DIST): Add embedspu.sh.
119         (DISTCLEANFILES): Add embedspu.
120         (embedspu): Depend on Makefile.  Replace sed "s" command with "c".
121         * Makefile.in: Regenerate.
122
123 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
124
125         * dwarf.c (loc_offsets): New variable.
126         (loc_offsets_compar): New routine.
127         (display_debug_loc): Handle loc_offsets not being in ascending order
128         and also a single .debug_loc entry being used multiple times.
129
130 2011-05-18  Nick Clifton  <nickc@redhat.com>
131
132         PR binutils/12753
133         * nm.c (filter_symbols): Treat unique symbols as global symbols.
134         * doc/binutils.texi (nm): Mention that some lowercase letters
135         actually indicate global symbols.
136
137 2011-05-15  Tristan Gingold  <gingold@adacore.com>
138
139         * od-xcoff.c: New file.
140         * objdump.h: New file.
141         * objdump.c: Include objdump.h
142         (dump_private_options, objdump_private_vectors): New variables.
143         (usage): Mention -P/--private.  Display handled options.
144         (long_options): Add -P/--private.
145         (dump_target_specific): New function.
146         (dump_bfd): Handle dump_private_options.
147         (main): Handle -P.
148         * doc/binutils.texi (objdump): Document -P/--private.
149         * configure.in (OBJDUMP_PRIVATE_VECTORS, OBJDUMP_PRIVATE_OFILES):
150         New variables, compute them.
151         (od_vectors): Add vectors for private dumpers. Make them uniq.
152         (OBJDUMP_DEFS): Add OBJDUMP_PRIVATE_VECTORS.
153         * Makefile.am (HFILES): Add objdump.h
154         (CFILES): Add od-xcoff.c
155         (OBJDUMP_PRIVATE_OFILES): New variable.
156         (objdump_DEPENDENCIES): Append OBJDUMP_PRIVATE_OFILES.
157         (objdump_LDADD): Ditto.
158         (EXTRA_objdump_SOURCES): Define.
159         * Makefile.in: Regenerate.
160         * configure: Regenerate.
161
162 2011-05-10  Tristan Gingold  <gingold@adacore.com>
163
164         * dwarf.c (process_extended_line_op): Dump unknown records.
165
166 2011-05-07  Alan Modra  <amodra@gmail.com>
167
168         PR binutils/12632
169         * objcopy.c (copy_archive): Check bfd_openw result in unknown object
170         case.  Rewrite without goto.
171
172 2011-05-03  Jakub Jelinek  <jakub@redhat.com>
173
174         * dwarf.c (decode_location_expression): Handle DW_OP_GNU_const_type,
175         DW_OP_GNU_regval_type, DW_OP_GNU_deref_type, DW_OP_GNU_convert
176         and DW_OP_GNU_reinterpret.
177
178         * MAINTAINERS: Add myself as DWARF2 maintainer.
179
180 2011-05-02  Alan Modra  <amodra@gmail.com>
181
182         PR binutils/12720
183         Revert the following change
184         Michael Snyder  <msnyder@vmware.com>
185         * ar.c (move_members): Plug memory leak.
186         (delete_members): Plug memory leak.
187
188 2011-04-28  Tom Tromey  <tromey@redhat.com>
189
190         * NEWS: Add note about --dwarf-depth, --dwarf-start, and
191         dwarf-mode.el.
192         * objdump.c (suppress_bfd_header): New global.
193         (usage): Update.
194         (OPTION_DWARF_DEPTH, OPTION_DWARF_START): New constants.
195         (options): Add dwarf-depth and dwarf-start entries.
196         (dump_bfd): Use suppress_bfd_header.
197         (main): Handle OPTION_DWARF_START, OPTION_DWARF_DEPTH.
198         * doc/binutils.texi (objcopy): Document --dwarf-depth and
199         --dwarf-start.
200         (readelf): Likewise.
201         * dwarf-mode.el: New file.
202         * dwarf.c (dwarf_cutoff_level, dwarf_start_die): New globals.
203         (read_and_display_attr_value): Also check debug_info_p.
204         (process_debug_info): Handle dwarf_start_die and
205         dwarf_cutoff_level.
206         * dwarf.h (dwarf_cutoff_level, dwarf_start_die): Declare.
207         * readelf.c (usage): Update.
208         (OPTION_DWARF_DEPTH): New macro.
209         (OPTION_DWARF_START): Likewise.
210         (options): Add dwarf-depth and dwarf-start entries.
211         (parse_args): Handle OPTION_DWARF_START and OPTION_DWARF_DEPTH.
212
213 2011-04-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
214
215         * dwarf.c (display_gdb_index): Support version 5, warn on version 4.
216
217 2011-04-27  Tristan Gingold  <gingold@adacore.com>
218
219         * dwarf.c (process_extended_line_op): Handle
220         DW_LNE_HP_source_file_correlation.
221
222 2011-04-27  Nick Clifton  <nickc@redhat.com>
223
224         * po/da.po: Updated Danish translation.
225
226 2011-04-21  Tom Tromey  <tromey@redhat.com>
227
228         * readelf.c (print_stapsdt_note): New function.
229         (process_note): Use it.
230
231 2011-04-21  Tom Tromey  <tromey@redhat.com>
232
233         * readelf.c (get_stapsdt_note_type): New function.
234         (process_note): Recognize "stapsdt" notes.
235
236 2011-04-21  Tom Tromey  <tromey@redhat.com>
237
238         * readelf.c (process_corefile_note_segment): Change header field
239         widths.
240         (process_note): Change field widths.
241
242 2011-04-21  Tom Tromey  <tromey@redhat.com>
243
244         * readelf.c (print_gnu_note): New function.
245         (process_note): Use it.
246
247 2011-04-21  Jie Zhang  <jzhang918@gmail.com>
248
249         * MAINTAINERS: Update my email address.
250
251 2011-04-11  Kai Tietz  <ktietz@redhat.com>
252
253         * windres.c (usage): Add new --preprocessor-arg option.
254         (option_values): Add new OPTION_PREPROCESSOR_ARG enumerator.
255         (option long_options): Add preprocessor-arg option.
256         (main): Handle it.
257         * doc/binutils.texi: Add documentation for --preprocessor-arg
258         option.
259         * NEWS: Add line about new --preprocessor-arg option for windres.
260
261 2011-04-08  John Marino  <binutils@marino.st>
262
263         * arlex.l: Prevent redefinition of YY_NO_UNPUT.
264         * syslex.l: Likewise.
265
266 2011-04-07  Paul Brook  <paul@codesourcery.com>
267
268         * readelf.c (arm_section_get_word): Handle C6000 relocations.
269         (decode_tic6x_unwind_regmask, decode_arm_unwind_bytecode,
270         decode_tic6x_unwind_bytecode, expand_prel31): New functions.
271         (decode_arm_unwind): Split out common code from ARM specific bits.
272         (dump_arm_unwind): Use expand_prel31.
273         (arm_process_unwind): Handle SHT_C6000_UNWIND sections.
274         (process_unwind): Add SHT_C6000_UNWIND.
275
276 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
277
278         * configure.in (thumb-*-pe*): Remove.
279         * configure: Regenerate.
280
281 2011-04-05  Sterling Augustine  <augustine.sterling@gmail.com>
282
283         * MAINTAINERS: Update my email address.
284
285 2011-04-03  H.J. Lu  <hongjiu.lu@intel.com>
286
287         PR binutils/12632
288         * objcopy.c (copy_unknown_object): Make the archive element
289         readable.
290
291 2011-04-03  David S. Miller  <davem@davemloft.net>
292
293         * objdump.c (dump_reloc_set): Output R_SPARC_OLO10 relocations
294         accurately, rather than how they are represented internally.
295
296 2011-03-31  Tristan Gingold  <gingold@adacore.com>
297
298         * makefile.vms (readelf.exe): New target.
299
300 2011-03-31  Tristan Gingold  <gingold@adacore.com>
301
302         * makefile.vms (DEBUG_OBJS): Add elfcomm.obj.
303
304 2011-03-31  Bernd Schmidt  <bernds@codesourcery.com>
305
306         * readelf.c (get_symbol_index_type): Handle SCOM for TIC6X.
307         (dump_relocations): Likewise.
308
309 2011-03-31  Tristan Gingold  <gingold@adacore.com>
310
311         * readelf.c (get_ia64_vms_note_type): New function.
312         (print_ia64_vms_note): Ditto.
313         (process_note): Recognize VMS/ia64 specific notes.
314         Display them.
315         (process_corefile_note_segment): Decode VMS notes.
316
317 2011-03-30  Catherine Moore  <clm@codesourcery.com>
318
319         * addr2line.c (translate_addresses): Sign extend the pc
320         if sign_extend_vma is enabled.
321
322 2011-03-30  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
323
324         * readelf.c (process_gnu_liblist): Stop memory leak.
325
326 2011-03-29  Alan Modra  <amodra@gmail.com>
327
328         * coffdump.c: Include bfd_stdint.h
329
330 2011-03-28  Pierre Muller  <muller@ics.u-strasbg.fr>
331
332         * coffdump.c (coff_dump): Correct spelling error.
333         (show_usage): Replace SYSROFF by COFF.
334
335 2011-03-25  Pierre Muller  <muller@ics.u-strasbg.fr>
336
337         * coffdump.c (dump_coff_scope): Use double typecast for pointer P
338         to allow compilation for all targets.
339
340 2011-03-25  Pierre Muller  <muller@ics.u-strasbg.fr>
341
342         * dwarf.c (process_debug_info): Use offset_size to determine
343         the bit-size of the computation unit's offset.
344         (decode_location_expression): Use dwarf_vmatoa function to display
345         DW_OP_addr OP.
346         (process_debug_info): Use dwarf_vma type for local variables
347         length and type_offset.
348
349 2011-03-25  Michael Snyder  <msnyder@vmware.com>
350
351         * strings.c (print_strings): Plug memory leak.
352         * ar.c (move_members): Plug memory leak.
353         (delete_members): Plug memory leak.
354         (write_archive): Plug memory leak.
355         * ieee.c (ieee_add_bb11): Plug memory leak.
356         (ieee_function_type): Likewise.
357         (ieee_class_baseclass): Likewise.
358         * prdbg.c (pr_function_type): Close memory leaks.
359         (pr_method_type): Likewise.
360         (tg_class_static_member): Likewise.
361         (tg_class_method_variant): Likewise.
362         (tg_class_static_method_variant): Likewise.
363         * stabs.c (parse_stab_enum_type): Fix memory leaks.
364         (parse_stab_struct_type): Likewise.
365         (parse_stab_struct_fields): Likewise.
366         (parse_stab_one_struct_field): Likewise.
367         (parse_stab_members): Likewise.
368         (stab_demangle_qualified): Likewise.
369         * objdump.c (dump_reloc_set): Free malloced memory.
370         * bucomm.c (make_tempname): Stop memory leak.
371
372 2011-03-25  Pierre Muller  <muller@ics.u-strasbg.fr>
373
374         Replace bfd_vma type and analog types by dwarf_vma and analogs.
375         Use dwarf specific print functions to display these type values.
376         * dwarf.h (dwarf_signed_vma): New type;
377         (DWARF2_External_LineInfo): Replace bfd_vma by dwarf_vma.
378         (DWARF2_External_PubNames): Likewise.
379         (DWARF2_External_CompUnit): Likewise.
380         (DWARF2_External_ARange): Likewise.
381         (read_leb128): Change return type to dwarf_vma.
382         * dwarf.c (print_dwarf_vma): Use __MINGW32__ conditional and
383         check byte_size values.
384         (dwarf_vmatoa): Change parameter type to dwarf_vma.
385         (dwarf_svmatoa): New static function.
386         (read_leb128): Change return type to dwarf_vma.
387         (read_sleb128): New static function.
388         (struct State_Machine_Registers): Change address field type to
389         dwarf_vma.
390         (process_extended_line_op): Adapt to type changes.
391         (fetch_indirect_string): Likewise.
392         (idisplay_block): Likewise.
393         (decode_location_expression): Likewise.
394         (read_and_display_attr_value): Likewise.
395         (process_debug_info): Likewise.
396         (display_debug_lines_raw): Likewise.
397         (display_debug_lines_decoded): Likewise.
398         (SLEB macro): Use new read_sleb128 function.
399
400 2011-03-17  Alan Modra  <amodra@gmail.com>
401
402         PR 12590
403         * ar.c (ranlib_main): Init arg_index properly.
404         (usage): Describe --target.
405
406 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
407
408         * dwarf.c (dw_TAG_name): Handle DW_TAG_GNU_call_site_parameter.
409         (read_and_display_attr_value): Handle DW_AT_GNU_call_site_data_value,
410         DW_AT_GNU_call_site_target and DW_AT_GNU_call_site_target_clobbered.
411         (get_AT_name): Handle DW_AT_GNU_call_site_value,
412         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
413         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
414         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites and
415         DW_AT_GNU_all_source_call_sites.
416         (decode_location_expression) <case DW_OP_GNU_entry_value>: Adjust
417         handling.
418
419 2011-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
420
421         * dwarf.c (get_TAG_name): Handle DW_TAG_GNU_call_site.
422         (decode_location_expression): Handle DW_OP_GNU_entry_value.
423         (read_and_display_attr_value): Handle DW_AT_GNU_call_site_value.
424         (get_AT_name): Likewise.
425
426 2011-03-14  Michael Snyder  <msnyder@vmware.com>
427
428         * objcopy.c (set_pe_subsystem): Free subsystem.
429
430         * wrstabs.c (stab_start_struct_type): Close memory leak.
431
432         * readelf.c (process_version_sections): Free symbols.
433
434         * nm.c (display_rel_file): Free symsizes.
435
436 2011-03-10  Nick Clifton  <nickc@redhat.com>
437
438         * readelf.c (get_machine_name): Update EM_V850 entry.
439
440 2011-03-03  Mike Frysinger  <vapier@gentoo.org>
441
442         * objdump.c (usage): Fix single typo.
443         * po/bg.po, po/binutils.pot, po/da.po, po/es.po, po/fi.po,
444         po/fr.po, po/id.po, po/ja.po, po/ru.po, po/vi.po: Likewise.
445
446 2011-03-01  Akos Pasztory  <akos.pasztory@gmail.com>
447
448         PR binutils/12523
449         * readelf.c (process_object): Clear dynamic_info_DT_GNU_HASH.
450
451 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
452
453         * debug.c (debug_start_source): Use filename_(n)cmp.
454         * ieee.c (ieee_finish_compilation_unit): Likewise.
455         (ieee_lineno): Likewise.
456         * nlmconv.c (main): Likewise.
457         * objcopy.c (strip_main): Likewise.
458         (copy_main): Likewise.
459         * objdump.c (show_line): Likewise.
460         (dump_reloc_set): Likewise.
461         * srconv.c (main): Likewise.
462         * wrstabs.c (stab_lineno): Likewise.
463
464 2011-02-24  Zachary T Welch  <zwelch@codesourcery.com>
465
466         * readelf.c (decode_arm_unwind): Implement decoding of remaining
467         ARM unwind instructions (i.e. VFP/NEON and Intel Wireless MMX).
468
469 2011-02-23  Kai Tietz  <kai.tietz@onevision.com>
470
471         * dwarf.c (read_leb128): Use bfd_vma instead of
472         long type.
473         (dwarf_vmatoa): New helper routine.
474         (process_extended_line_op): Use for adr bfd_vma
475         type and print those typed values via BFD_VMA_FMT
476         or via dwarf_vmatoa for localized prints.
477         (fetch_indirect_string): Adjust offset's type.
478         (decode_location_expression): Adjust argument types
479         and uvalue type.
480         (read_and_display_attr_value): Likewise.
481         (read_and_display_attr): Likewise.
482         (decode_location_expression): Adjust printf format.
483         (process_debug_info): Likewise.
484         (display_debug_lines_raw): Likewise.
485         (display_debug_lines_decoded): Likewise.
486         (display_debug_pubnames): Likewise.
487         (display_debug_loc): Likewise.
488         (display_debug_aranges): Likewise.
489         * dwarf.h (DWARF2_External_LineInfo,
490         DWARF2_Internal_LineInfo, DWARF2_External_PubNames,
491         DWARF2_Internal_PubNames, DWARF2_External_CompUnit,
492         DWARF2_Internal_CompUnit, DWARF2_External_ARange,
493         DWARF2_Internal_ARange): Added..
494         (read_leb128): Adjust return type.
495
496 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
497
498         * configure: Regenerate.
499
500 2011-02-08  Nick Clifton  <nickc@redhat.com>
501
502         PR binutils/12467
503         * readelf.c (process_program_headers): Issue a warning if there
504         are no program headers but the file header has a non-zero program
505         header offset.
506         (process_section_headers): Issue a warning if there are no section
507         headers but the file header has a non-zero section header offset.
508         (process_section_groups): Reword the no section message so that it
509         can be distinguished from the one issued by process_section_headers.
510
511 2011-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
512             Doug Evans  <dje@google.com>
513
514         * dwarf.c (display_gdb_index): Support version 4, warn on version 3.
515
516 2011-01-19  Maciej W. Rozycki  <macro@codesourcery.com>
517
518         * readelf.c (process_object): Free dynamic_section after use.
519
520 2011-01-18  H.J. Lu  <hongjiu.lu@intel.com>
521
522         PR binutils/12408
523         * readelf.c (process_archive): Free and reset dump_sects
524         after processing each archive member.
525
526 2011-01-11  Andreas Schwab  <schwab@redhat.com>
527
528         * readelf.c (print_symbol): Handle symbol characters as unsigned.
529         Whitespace fixes.
530
531 2011-01-10  Nick Clifton  <nickc@redhat.com>
532
533         * po/da.po: Updated Danish translation.
534
535 2011-01-06  Vladimir Siminov  <sv@sw.ru>
536
537         * bucomm.c (get_file_size): Check for negative sizes and issue a
538         warning message if encountered.
539
540 2011-01-01  H.J. Lu  <hongjiu.lu@intel.com>
541
542         * version.c (print_version): Update copyright to 2011.
543
544 For older changes see ChangeLog-2010
545 \f
546 Local Variables:
547 mode: change-log
548 left-margin: 8
549 fill-column: 74
550 version-control: never
551 End: