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