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