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