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