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