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