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