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