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