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