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