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