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