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