* dwarf.c (process_debug_info): Check dwarf_cutoff_level.
[deliverable/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
4337774f
TT
12013-04-08 Tom Tromey <tromey@redhat.com>
2
3 * dwarf.c (process_debug_info): Check dwarf_cutoff_level.
4
2e97048a
TT
52013-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
952781e8
AM
112013-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
f048b142
L
192013-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
7e93ea4b
NC
242013-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
2bdc3eca
AM
312013-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
0c588247
NC
362013-03-26 Nick Clifton <nickc@redhat.com>
37
f4155c00 38 PR binutils/15206
0c588247
NC
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
f6f0e17b
NC
652013-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
c8da6823
NC
1002013-03-22 Nick Clifton <nickc@redhat.com>
101
c842b54b
NC
102 PR binutils/15201
103 * dwarf.c (display_debug_ranges): Add checks for reading beyond
104 the end of the section.
105
c8da6823
NC
106 PR binutils/15157
107 * readelf.c (apply_relocations): Catch relocations with negative
108 offsets.
109
0d0fb1ba
NC
1102013-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
d5c7e0e9
NC
1162013-03-14 Markos Chandras <markos.chandras@imgtec.com>
117
118 * MAINTAINERS: Add myself as Meta maintainer.
119
abb3f6cc
NC
1202013-03-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
121
122 * readelf.c (get_note_type): Add NT_S390_TDB.
123
c54e2ec1
AM
1242013-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
ee36d918
CV
1302013-03-05 Corinna Vinschen <vinschen@redhat.com>
131
132 * configure.in: Build DLL tools on x86_64-*-cygwin* as well.
133 * configure: Regenerate.
134
fafd911d
NC
1352013-03-04 Nick Clifton <nickc@redhat.com>
136
137 * elfcomm.c (error): Flush stdout before emitting the error
138 message.
139 (warn): Likewise.
140
341f9135
CC
1412013-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
15b42fb0
AM
1562013-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
9dd3a467
NC
1652013-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
76d8cf45
KT
1712013-02-15 Kai Tietz <ktietz@redhat.com>
172
173 * objcopy.c (copy_main): Initialize context variable.
174
a043396b
NC
1752013-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
2e62b721
NC
1862013-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
d99b05a3
NC
2032013-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
83ee86b1
NC
2102013-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
36591ba1
SL
2152013-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
7e26601c
NC
2302013-01-29 Xi Wang <xi.wang@gmail.com>
231
232 * readelf.c (process_version_sections): Fix overflow checks to
233 avoid undefined behaviour.
234
aa170720
DE
2352013-01-28 Doug Evans <dje@google.com>
236
237 * dwarf.c (display_gdb_index): Handle .gdb_index version 8.
238
5dddde8e
AM
2392013-01-28 Robert Schiele <rschiele@gmail.com>
240
241 * objcopy.c (parse_flags): Add merge and strings section flags.
242
fab128ef
CC
2432013-01-25 Cary Coutant <ccoutant@google.com>
244
15b42fb0
AM
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.
fab128ef 253
9b8bf321
NC
2542013-01-25 Marco Atzeri <marco.atzeri@gmail.com>
255
256 * objcopy.c : Enable long section names for OPTION_ADD_GNU_DEBUGLINK.
257
90f9a987
DE
2582013-01-24 Doug Evans <dje@google.com>
259
260 * dwarf.c (display_debug_addr): Add missing parentheses to expression.
261
78c8d46c
NC
2622013-01-24 Nick Clifton <nickc@redhat.com>
263
264 * readelf.c (get_machine_flags): Decode E_V850E3V5_ARCH.
265
a367d729
AK
2662013-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
a477bfd1
NC
2712013-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
c32d6f7b
AM
2772013-01-17 Nickolai Zeldovich <nickolai@csail.mit.edu>
278
279 * objdump.c (dump_target_specific): Fix NULL pointer test.
280
cb566e3a
AM
2812013-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
a3c62988
NC
2882013-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
652451f8
YZ
2962013-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
955d0b3b
RM
3012013-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
7ca01ed9
NC
3152013-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
574b25e8
AS
3202013-01-04 Andreas Schwab <schwab@linux-m68k.org>
321
322 * doc/binutils.texi (elfedit): Fix use of @itemx in @table.
323
5b2ab150
MS
3242013-01-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
325
326 * MAINTAINERS: Add myself as AArch64 co-maintainer.
327
62658407
L
3282013-01-02 H.J. Lu <hongjiu.lu@intel.com>
329
330 * version.c (print_version): Update copyright year to 2013.
331
4e5f3f9d 332For older changes see ChangeLog-2012
252b5132 333\f
4e5f3f9d 334Copyright (C) 2013 Free Software Foundation, Inc.
752937aa
NC
335
336Copying and distribution of this file, with or without modification,
337are permitted in any medium without royalty provided the copyright
338notice and this notice are preserved.
339
252b5132
RH
340Local Variables:
341mode: change-log
342left-margin: 8
343fill-column: 74
344version-control: never
345End:
This page took 0.540554 seconds and 4 git commands to generate.