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