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