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