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