* dwarf.c (add64): New function.
[deliverable/binutils-gdb.git] / binutils / ChangeLog
1 2013-10-09 Nick Clifton <nickc@redhat.com>
2
3 * dwarf.c (add64): New function.
4 (read_and_display_attr_value): Add CU offset in to the value
5 displayed for a DW_AT_ref8 attribute.
6
7 2013-10-01 Cory Fields <cory@coryfields.com>
8
9 * arsup.c (ar_save): Respect the deterministic setting when
10 reading from an mri script.
11 * ar.c (main): Set the default deterministic mode when reading
12 from an mri script.
13
14 2013-10-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15
16 * dwarf.c (SAFE_BYTE_GET): Fix argument check.
17
18 2013-09-27 H.J. Lu <hongjiu.lu@intel.com>
19
20 * dwarf.c (display_debug_frames): Pass offset_size to
21 print_dwarf_vma for cie_id.
22
23 2013-09-20 Alan Modra <amodra@gmail.com>
24
25 * configure: Regenerate.
26
27 2013-09-18 Tristan Gingold <gingold@adacore.com>
28
29 * NEWS: Add marker for 2.24.
30
31 2013-09-18 Tristan Gingold <gingold@adacore.com>
32
33 * Makefile.am (LEXLIB): Define. Replase references to @LEXLIB@
34 by $(LEXLIB).
35 * Makefile.in: Regenerate.
36
37 2013-09-17 Doug Gilmore <Doug.Gilmore@imgtec.com>
38
39 * readelf.c (get_machine_flags): Handle EF_MIPS_FP64.
40
41 2013-09-12 Nick Clifton <nickc@redhat.com>
42
43 * dwarf.c (dwarf_vmatoa): Rename to dwarf_vmatoa_1 and add a
44 precision parameter.
45 (dwarf_vmatoa): New wrapper for dwarf_vmatoa_1.
46 (print_dwarf_vma): Use dwarf_vmatoa_1.
47 (SAFE_BYTE_GET): Add check that VAL is big enough to contain
48 AMOUNT bytes.
49 (process_debug_info): Use an unsigned int for the offset size.
50 (process_debug_pubnames): Likewise.
51 (display_debug_aranges): Likewise.
52 (struct Frame_Chunk): Use dwarf_vma type for pc_begin and pc_range
53 fields.
54 (frame_display_row): Use print_dwarf_vma to display dwarf_vma
55 values.
56 (display_debug_frames): Likewise.
57
58 2013-09-10 Nick Clifton <nickc@redhat.com>
59
60 * dwarf.c (display_debug_frames): Check for DW64_CIE_ID when
61 parsing 64-bit frames.
62
63 2013-08-27 Nick Clifton <nickc@redhat.com>
64
65 PR binutils/15796
66 * ar.c (map_over_members): Correctly handle multiple same-name
67 entries on the command line and in the archive.
68
69 2013-08-23 H.J. Lu <hongjiu.lu@intel.com>
70
71 * doc/binutils.texi: Remove the extra space.
72
73 2013-08-23 Mikael Pettersson <mikpe@it.uu.se>
74
75 PR binutils/15779
76 * doc/binutils.texi (ranlib -D): Correct description.
77 PR binutils/15777
78 (nm --special-syms): Fix typo.
79
80 2013-08-23 Nick Clifton <nickc@redhat.com>
81
82 PR binutils/15798
83 * doc/binutils.texi (ar cmdline): Update description of 'q'
84 command.
85
86 PR binutils/14136
87 (nm): Add description of 'I' symbol type.
88
89 2013-08-23 Yuri Chornoivan <yurchor@ukr.net>
90
91 PR binutils/15834
92 * od-xcoff.c: Fix typos.
93
94 2013-08-19 Tristan Gingold <gingold@adacore.com>
95
96 * nm.c (print_size_symbols): Directly get symbol size.
97
98 2013-08-12 Andreas Schwab <schwab@suse.de>
99
100 PR binutils/15818
101 * objdump.c (disassemble_section): Return early if nothing from
102 this section needs to be disassembled.
103
104 2013-08-09 Nick Clifton <nickc@redhat.com>
105
106 * readelf.c (get_machine_flags): Handle RL78 G10 flag.
107
108 2013-07-26 Sergey Guriev <sergey.s.guriev@intel.com>
109 Alexander Ivchenko <alexander.ivchenko@intel.com>
110 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
111 Sergey Lega <sergey.s.lega@intel.com>
112 Anna Tikhonova <anna.tikhonova@intel.com>
113 Ilya Tocar <ilya.tocar@intel.com>
114 Andrey Turetskiy <andrey.turetskiy@intel.com>
115 Ilya Verbin <ilya.verbin@intel.com>
116 Kirill Yukhin <kirill.yukhin@intel.com>
117 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
118
119 * dwarf.c (dwarf_regnames_i386): Add k0-k7 registers and
120 numeration in comments.
121 (dwarf_regnames_x86_64): Add xmm16-31 and k0-k7 registers to
122 dwarf table.
123
124 2013-07-19 Nick Clifton <nickc@redhat.com>
125
126 PR binutils/15745
127 * readelf.c (get_unwind_section_word): Whilst searching for a
128 reloc section associated with an unwind section, check the type as
129 well as the section number.
130
131 2013-07-18 Jim Thomas <thomas@cfht.hawaii.edu>
132
133 * ar.c (usage): Fix C conformance issue.
134
135 2013-07-18 Nick Clifton <nickc@redhat.com>
136
137 * doc/binutils.texi (nm, objdump): Remove bogus links to STABS
138 documentation.
139
140 * readelf.c (process_unwind): Do not return the result of a void
141 function.
142
143 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
144
145 * readelf.c (display_mips_gnu_attribute): Replace hardcoded magic
146 numbers with enum values.
147
148 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
149
150 * readelf.c (get_machine_flags): Handle EF_MIPS_NAN2008.
151
152 2013-07-10 Tristan Gingold <gingold@adacore.com>
153
154 * od-xcoff.c (OPT_LDINFO): Define.
155 (options): Add ldinfo.
156 (xcoff_help): Mention ldinfo.
157 (xcoff_dump): Rename to ...
158 (xcoff_dump_obj): ... this. Add a break.
159 (dump_dumpx_core): New function.
160 (xcoff_dump_core): Likewise.
161 (xcoff_dump): Likewise.
162 * doc/binutils.texi (objdump): Mention ldinfo.
163
164 2013-07-09 Tristan Gingold <gingold@adacore.com>
165
166 * configure.com: Add new defines to match changes in configure.
167
168 2013-05-28 Cary Coutant <ccoutant@google.com>
169
170 * dwarf.c (display_debug_lines_raw): Print section offsets.
171
172 2013-05-15 Cary Coutant <ccoutant@google.com>
173
174 * dwarf.c (SAFE_BYTE_GET64): Correct end-of-buffer check;
175 don't increment PTR.
176 (decode_location_expression): DW_OP_const2u should read 2 bytes.
177 (display_debug_lines_decoded): Adjust formatting.
178 * elfcomm.c (byte_get_little_endian): Add cases for 5-, 6-, and
179 7-byte reads.
180 (byte_get_big_endian): Likewise.
181 (byte_get_signed): Likewise.
182
183 2013-05-09 Andrew Pinski <apinski@cavium.com>
184
185 * doc/binutils.texi: Document -Mvirt disassembler option.
186
187 2013-05-02 Nick Clifton <nickc@redhat.com>
188
189 * readelf.c: Add support for MSP430X architecture.
190
191 2013-05-02 Nick Clifton <nickc@redhat.com>
192
193 * dwarf.c (display_debug_lines_raw): Do not treat .debug_line.dwo
194 sections as if they were fragmentary .debug_line sections.
195 (display_debug_lines_decoded): Likewise.
196
197 2013-04-29 Nick Clifton <nickc@redhat.com>
198
199 * dwarf.c (read_debug_line_header): New function. Reads in a
200 header in a .debug_line section.
201 (display_debug_lines_raw): Use new function. Handle fragmentary
202 .debug_line sections.
203 (display_debug_lines_decoded): Likewise.
204 * readelf.c (process_section_headers): Handle fragmenatry
205 .debug_line sections.
206 (display_debug_section): Likewise.
207
208 2013-04-26 Ian Lance Taylor <iant@google.com>
209
210 * MAINTAINERS: Add myself and Cary as gold maintainers.
211
212 2013-04-08 Tom Tromey <tromey@redhat.com>
213
214 * dwarf.c (process_debug_info): Check dwarf_cutoff_level.
215
216 2013-04-08 Tom Tromey <tromey@redhat.com>
217
218 * dwarf-mode.el: Bump version number.
219 (dwarf-mode): Remove autoload.
220 (dwarf-die-reference): Relax regexp.
221
222 2013-04-05 Alan Modra <amodra@gmail.com>
223
224 PR binutils/15324
225 * configure.in: Add strnlen to AC_CHECK_DECLS, sort.
226 * dwarf.c (strnlen): Provide fallback decl.
227 * config.in: Regnerate.
228 * configure: Regenerate.
229
230 2013-03-29 H.J. Lu <hongjiu.lu@intel.com>
231
232 * dwarf.c (process_debug_info): Increment hdrptr by 8 after
233 SAFE_BYTE_GET64.
234
235 2013-03-27 Phil Krylov <phil.krylov@gmail.com>
236
237 PR binutils/13409
238 * winduni.c (codepages[]): Use UTF-16LE.
239 (wind_MultiByteToWideChar): Likewise.
240 (wind_WideCharToMultiByte): Likewise.
241
242 2013-03-27 Alan Modra <amodra@gmail.com>
243
244 PR binutils/15206
245 * dwarf.c (read_and_display_attr_value): Cast format '*' arg to int.
246
247 2013-03-26 Nick Clifton <nickc@redhat.com>
248
249 PR binutils/15206
250 * dwarf.c (SAFE_BYTE_GET): New macro - checks remaining buffer
251 space before calling byte_get.
252 (SAFE_BYTE_GET_AND_INC): New macro.
253 (SAFE_SIGNED_BYTE_GET): New macro.
254 (SAFE_SIGNED_BYTE_GET_AND_INC): New macro.
255 (SAFE_BYTE_GET64): New macro.
256 (process_extened_line_op): Use new macros. Use strnlen when
257 appropriate.
258 (fetch_indirect_string): Likewise.
259 (get_FORM_name): Likewise.
260 (decode_location_expression): Likewise.
261 (read_and_display_attr_value): Likewise.
262 (process_debug_info): Likewise.
263 (display_debug_lines_raw): Likewise.
264 (display_debug_lines_decoded): Likewise.
265 (display_debug_pubnames): Likewise.
266 (display_debug_macinfo): Likewise.
267 (get_line_filename_and_dirname): Likewise.
268 (display_debug_macro): Likewise.
269 (display_loc_list): Likewise.
270 (display_loc_list_dwo): Likewise.
271 (display_debug_aranges): Likewise.
272 (display_debug_ranges): Likewise.
273 (frame_display_row): Likewise.
274 (display_debug_frames): Likewise.
275
276 2013-03-25 Nick Clifton <nickc@redhat.com>
277
278 PR binutils/15202
279 * dwarf.c (read_leb128): Add END parameter. Do not read at or
280 beyond end.
281 (read_sleb128): Add END parameter.
282 (read_uleb128): New function.
283 (process_extended_line_op): Pass END to leb128 functions.
284 (process_abbrev_section): Likewise.
285 (decode_location_expression): Likewise.
286 (read_and_display_attr_value): Likewise.
287 (read_and_display_attr): Likewise.
288 (process_debug_info): Likewise.
289 (display_debug_lines_raw): Likewise.
290 (display_debug_lines_decoded): Likewise.
291 (display_debug_macinfo): Likewise.
292 (get_line_filename_and_dirname): Likewise.
293 (display_debug_macro): Likewise.
294 (display_loc_list_dwo): Likewise.
295 (display_debug_ranges): Likewise.
296 * dwarf.h (read_leb128): Update prototype.
297 * readelf.c (read_uleb128): Add END parameter.
298 (decode_arm_unwind_bytecode): Pass END to read_uleb128.
299 (decode_tic6x_unwind_bytecode): Likewise.
300 (display_tag_value): New function.
301 (display_arm_attribute): Add END parameter. Pass END to
302 read_uleb128. Use display_tag_value.
303 (display_gnu_attribute): Likewise.
304 (display_power_gnu_attribute): Likewise.
305 (display_sparc_gnu_attribute): Likewise.
306 (display_mips_gnu_attribute): Likewise.
307 (display_tic6x_attribute): Likewise.
308 (process_attributes): Likewise.
309 (display_raw_attribute): New function.
310
311 2013-03-22 Nick Clifton <nickc@redhat.com>
312
313 PR binutils/15201
314 * dwarf.c (display_debug_ranges): Add checks for reading beyond
315 the end of the section.
316
317 PR binutils/15157
318 * readelf.c (apply_relocations): Catch relocations with negative
319 offsets.
320
321 2013-03-15 Nick Clifton <nickc@redhat.com>
322
323 * addr2line.c (slurp_symtab): If canonicalization reveals that
324 there were no ordinary symbols, try loading the dynamic symbols
325 instead.
326
327 2013-03-14 Markos Chandras <markos.chandras@imgtec.com>
328
329 * MAINTAINERS: Add myself as Meta maintainer.
330
331 2013-03-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
332
333 * readelf.c (get_note_type): Add NT_S390_TDB.
334
335 2013-03-07 Alan Modra <amodra@gmail.com>
336
337 * strings.c (get_char): Dispense with buf[]. Instead shift
338 chars into big-endian value and byte-swap later if
339 little-endian. Don't EOF check value read from object.
340
341 2013-03-05 Corinna Vinschen <vinschen@redhat.com>
342
343 * configure.in: Build DLL tools on x86_64-*-cygwin* as well.
344 * configure: Regenerate.
345
346 2013-03-04 Nick Clifton <nickc@redhat.com>
347
348 * elfcomm.c (error): Flush stdout before emitting the error
349 message.
350 (warn): Likewise.
351
352 2013-03-01 Cary Coutant <ccoutant@google.com>
353
354 * dwarf.c (cu_tu_indexes_read, shndx_pool, shndx_pool_size)
355 (shndx_pool_used): Move to top of file.
356 (struct cu_tu_set): New type.
357 (cu_count, tu_count, cu_sets, tu_sets): New file scope variables.
358 (fetch_indexed_string): Add "this_set" parameter. Update all callers.
359 (find_cu_tu_set_v2): New function.
360 (read_and_display_attr_value): Add "this_set" parameter.
361 (read_and_display_attr): Likewise.
362 (process_debug_info): Track base offsets for DWARF package files.
363 (load_debug_info): Call load_cu_tu_indexes.
364 (get_DW_SECT_short_name): New function.
365 (process_cu_tu_index): Add support for version 2 DWARF package files.
366
367 2013-02-27 Alan Modra <amodra@gmail.com>
368
369 PR binutils/15191
370 * readelf.c (offsetof): Define.
371 (CHECK_ENTSIZE_VALUES): Remove extraneous indefinite article.
372 (process_corefile_note_segment): Allow notes without name or
373 desc. Combine out-of-range checks. Disallow "negative"
374 notesz or descsz.
375
376 2013-02-26 Nick Clifton <nickc@redhat.com>
377
378 PR binutils/15191
379 * readelf.c (process_corefile_note_segment): Prevent attempts to
380 read beyond the end of the note buffer.
381
382 2013-02-15 Kai Tietz <ktietz@redhat.com>
383
384 * objcopy.c (copy_main): Initialize context variable.
385
386 2013-02-15 Nick Clifton <nickc@redhat.com>
387
388 PR binutils/15140
389 * ar.c (open_inarch): Fail on attempts to convert a normal archive
390 to a thin archive or vice versa.
391 * elfcomm.c (make_qualified_name): Handle corrupted thin
392 archives.
393 * readelf.c (process_archive): Likewise.
394 * doc/binutils.texi: Clarify documentation describing thin
395 archives.
396
397 2013-02-15 Nick Clifton <nickc@redhat.com>
398
399 PR binutils/15033
400 * objcopy.c (enum change_action): Delete.
401 (struct section_list): Delete remove, copy, change_vma, change_lma
402 and set_flags fields. Add context field.
403 (find_section_list): Add a context parameter. Add support for
404 wildcard characters in section names.
405 (is_strip_section): Check for sections being both copied and
406 removed.
407 (copy_object): Pass context to find_section_list.
408 (setup_section): Likewise.
409 (copy_section): Likewise.
410 (copy_main): Likewise.
411 * doc/binutils: Document the new behaviour.
412 * NEWS: Mention the new feature
413
414 2013-02-14 Nick Clifton <nickc@redhat.com>
415
416 PR binutils/15125
417 * objcopy.c (copy_object): Provide a helpful warning message when
418 adding a gnu_debuglink section to an object which already contains
419 one.
420
421 2013-02-07 Nick Clifton <nickc@redhat.com>
422
423 * elfcomm.c (get_archive_member_name): Prevent seg-fault if a
424 corrupt archive uses long names but has no long name table.
425
426 2013-02-06 Sandra Loosemore <sandra@codesourcery.com>
427 Andrew Jenner <andrew@codesourcery.com>
428
429 Based on patches from Altera Corporation.
430
431 * readelf.c: Include elf/nios2.h.
432 (dump_relocations): Add case for EM_ALTERA_NIOS2.
433 (get_nios2_dynamic_type): New.
434 (get_dynamic_type): Add case for EM_ALTERA_NIOS2.
435 (is_32bit_abs_reloc): Fix EM_ALTERA_NIOS2 case.
436 (is_16bit_abs_reloc): Likewise.
437 (is_none_reloc): Add EM_ALTERA_NIOS2 and EM_NIOS32 cases.
438 * NEWS: Note Altera Nios II support.
439 * MAINTAINERS: Add Nios II maintainers.
440
441 2013-01-29 Xi Wang <xi.wang@gmail.com>
442
443 * readelf.c (process_version_sections): Fix overflow checks to
444 avoid undefined behaviour.
445
446 2013-01-28 Doug Evans <dje@google.com>
447
448 * dwarf.c (display_gdb_index): Handle .gdb_index version 8.
449
450 2013-01-28 Robert Schiele <rschiele@gmail.com>
451
452 * objcopy.c (parse_flags): Add merge and strings section flags.
453
454 2013-01-25 Cary Coutant <ccoutant@google.com>
455
456 * dwarf.c (display_loc_list): Update offset for each line
457 printed.
458 (print_addr_index): New function.
459 (display_loc_list_dwo): Update offset for each line printed.
460 Fix problems displaying loclists in .dwo files. Add support
461 for type 4 entries.
462 (display_debug_loc): Remove custom header for .dwo files.
463 (display_debug_addr): Adjust formatting.
464
465 2013-01-25 Marco Atzeri <marco.atzeri@gmail.com>
466
467 * objcopy.c : Enable long section names for OPTION_ADD_GNU_DEBUGLINK.
468
469 2013-01-24 Doug Evans <dje@google.com>
470
471 * dwarf.c (display_debug_addr): Add missing parentheses to expression.
472
473 2013-01-24 Nick Clifton <nickc@redhat.com>
474
475 * readelf.c (get_machine_flags): Decode E_V850E3V5_ARCH.
476
477 2013-01-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
478
479 * readelf.c: Add strings for NT_S390_LAST_BREAK and
480 NT_S390_SYSTEM_CALL.
481
482 2013-01-18 Nick Clifton <nickc@redhat.com>
483
484 PR binutils/15026
485 * addr2line.c (translate_addresses): When pretty printing, print
486 unknown function names on the same line as unknown symbol names.
487
488 2013-01-17 Nickolai Zeldovich <nickolai@csail.mit.edu>
489
490 * objdump.c (dump_target_specific): Fix NULL pointer test.
491
492 2013-01-16 Alan Modra <amodra@gmail.com>
493
494 PR binutils/15018
495 * stabs.c (parse_stab_members): Always set physname here to avoid
496 gcc warning..
497 (parse_stab_argtypes): ..and don't duplicate the init here.
498
499 2013-01-10 Will Newton <will.newton@imgtec.com>
500
501 * binutils/readelf.c: (guess_is_rela): Add EM_METAG.
502 (dump_relocations): Add EM_METAG.
503 (get_machine_name): Correct case for Meta.
504 (is_32bit_abs_reloc): Add support for Meta ADDR32 reloc.
505 (is_none_reloc): Add support for Meta NONE reloc.
506
507 2013-01-08 Yufeng Zhang <yufeng.zhang@arm.com>
508
509 * readelf.c (get_note_type): Handle NT_ARM_TLS, NT_ARM_HW_BREAK
510 and NT_ARM_HW_WATCH.
511
512 2013-01-07 Roland McGrath <mcgrathr@google.com>
513
514 * objcopy.c (deterministic): Make int rather than bfd_boolean,
515 initialize to -1.
516 (strip_options, copy_options): Add -U/--disable-deterministic-archives.
517 (default_deterministic): New function.
518 (strip_main, copy_main): Handle -U. Call default_deterministic.
519 (copy_usage, strip_usage): Describe -U. Cite whether -D or -U is
520 the default based on DEFAULT_AR_DETERMINISTIC.
521 * doc/binutils.texi (objcopy, strip): Describe -U and effect of
522 configure options on -D.
523
524 * ar.c (default_deterministic): Comment fix.
525
526 2013-01-07 Patrice Dumas <pertusus@free.fr>
527
528 * doc/binutils.texi: Fix ordering of top level nodes.
529 Replace erroneous uses of @itemx with @item.
530
531 2013-01-04 Andreas Schwab <schwab@linux-m68k.org>
532
533 * doc/binutils.texi (elfedit): Fix use of @itemx in @table.
534
535 2013-01-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
536
537 * MAINTAINERS: Add myself as AArch64 co-maintainer.
538
539 2013-01-02 H.J. Lu <hongjiu.lu@intel.com>
540
541 * version.c (print_version): Update copyright year to 2013.
542
543 For older changes see ChangeLog-2012
544 \f
545 Copyright (C) 2013 Free Software Foundation, Inc.
546
547 Copying and distribution of this file, with or without modification,
548 are permitted in any medium without royalty provided the copyright
549 notice and this notice are preserved.
550
551 Local Variables:
552 mode: change-log
553 left-margin: 8
554 fill-column: 74
555 version-control: never
556 End:
This page took 0.041652 seconds and 5 git commands to generate.