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