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