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