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