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