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