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