1 2013-05-15 Cary Coutant <ccoutant@google.com>
3 * dwarf.c (SAFE_BYTE_GET64): Correct end-of-buffer check;
5 (decode_location_expression): DW_OP_const2u should read 2 bytes.
6 (display_debug_lines_decoded): Adjust formatting.
7 * elfcomm.c (byte_get_little_endian): Add cases for 5-, 6-, and
9 (byte_get_big_endian): Likewise.
10 (byte_get_signed): Likewise.
12 2013-05-09 Andrew Pinski <apinski@cavium.com>
14 * doc/binutils.texi: Document -Mvirt disassembler option.
16 2013-05-02 Nick Clifton <nickc@redhat.com>
18 * readelf.c: Add support for MSP430X architecture.
20 2013-05-02 Nick Clifton <nickc@redhat.com>
22 * dwarf.c (display_debug_lines_raw): Do not treat .debug_line.dwo
23 sections as if they were fragmentary .debug_line sections.
24 (display_debug_lines_decoded): Likewise.
26 2013-04-29 Nick Clifton <nickc@redhat.com>
28 * dwarf.c (read_debug_line_header): New function. Reads in a
29 header in a .debug_line section.
30 (display_debug_lines_raw): Use new function. Handle fragmentary
32 (display_debug_lines_decoded): Likewise.
33 * readelf.c (process_section_headers): Handle fragmenatry
35 (display_debug_section): Likewise.
37 2013-04-26 Ian Lance Taylor <iant@google.com>
39 * MAINTAINERS: Add myself and Cary as gold maintainers.
41 2013-04-08 Tom Tromey <tromey@redhat.com>
43 * dwarf.c (process_debug_info): Check dwarf_cutoff_level.
45 2013-04-08 Tom Tromey <tromey@redhat.com>
47 * dwarf-mode.el: Bump version number.
48 (dwarf-mode): Remove autoload.
49 (dwarf-die-reference): Relax regexp.
51 2013-04-05 Alan Modra <amodra@gmail.com>
54 * configure.in: Add strnlen to AC_CHECK_DECLS, sort.
55 * dwarf.c (strnlen): Provide fallback decl.
56 * config.in: Regnerate.
57 * configure: Regenerate.
59 2013-03-29 H.J. Lu <hongjiu.lu@intel.com>
61 * dwarf.c (process_debug_info): Increment hdrptr by 8 after
64 2013-03-27 Phil Krylov <phil.krylov@gmail.com>
67 * winduni.c (codepages[]): Use UTF-16LE.
68 (wind_MultiByteToWideChar): Likewise.
69 (wind_WideCharToMultiByte): Likewise.
71 2013-03-27 Alan Modra <amodra@gmail.com>
74 * dwarf.c (read_and_display_attr_value): Cast format '*' arg to int.
76 2013-03-26 Nick Clifton <nickc@redhat.com>
79 * dwarf.c (SAFE_BYTE_GET): New macro - checks remaining buffer
80 space before calling byte_get.
81 (SAFE_BYTE_GET_AND_INC): New macro.
82 (SAFE_SIGNED_BYTE_GET): New macro.
83 (SAFE_SIGNED_BYTE_GET_AND_INC): New macro.
84 (SAFE_BYTE_GET64): New macro.
85 (process_extened_line_op): Use new macros. Use strnlen when
87 (fetch_indirect_string): Likewise.
88 (get_FORM_name): Likewise.
89 (decode_location_expression): Likewise.
90 (read_and_display_attr_value): Likewise.
91 (process_debug_info): Likewise.
92 (display_debug_lines_raw): Likewise.
93 (display_debug_lines_decoded): Likewise.
94 (display_debug_pubnames): Likewise.
95 (display_debug_macinfo): Likewise.
96 (get_line_filename_and_dirname): Likewise.
97 (display_debug_macro): Likewise.
98 (display_loc_list): Likewise.
99 (display_loc_list_dwo): Likewise.
100 (display_debug_aranges): Likewise.
101 (display_debug_ranges): Likewise.
102 (frame_display_row): Likewise.
103 (display_debug_frames): Likewise.
105 2013-03-25 Nick Clifton <nickc@redhat.com>
108 * dwarf.c (read_leb128): Add END parameter. Do not read at or
110 (read_sleb128): Add END parameter.
111 (read_uleb128): New function.
112 (process_extended_line_op): Pass END to leb128 functions.
113 (process_abbrev_section): Likewise.
114 (decode_location_expression): Likewise.
115 (read_and_display_attr_value): Likewise.
116 (read_and_display_attr): Likewise.
117 (process_debug_info): Likewise.
118 (display_debug_lines_raw): Likewise.
119 (display_debug_lines_decoded): Likewise.
120 (display_debug_macinfo): Likewise.
121 (get_line_filename_and_dirname): Likewise.
122 (display_debug_macro): Likewise.
123 (display_loc_list_dwo): Likewise.
124 (display_debug_ranges): Likewise.
125 * dwarf.h (read_leb128): Update prototype.
126 * readelf.c (read_uleb128): Add END parameter.
127 (decode_arm_unwind_bytecode): Pass END to read_uleb128.
128 (decode_tic6x_unwind_bytecode): Likewise.
129 (display_tag_value): New function.
130 (display_arm_attribute): Add END parameter. Pass END to
131 read_uleb128. Use display_tag_value.
132 (display_gnu_attribute): Likewise.
133 (display_power_gnu_attribute): Likewise.
134 (display_sparc_gnu_attribute): Likewise.
135 (display_mips_gnu_attribute): Likewise.
136 (display_tic6x_attribute): Likewise.
137 (process_attributes): Likewise.
138 (display_raw_attribute): New function.
140 2013-03-22 Nick Clifton <nickc@redhat.com>
143 * dwarf.c (display_debug_ranges): Add checks for reading beyond
144 the end of the section.
147 * readelf.c (apply_relocations): Catch relocations with negative
150 2013-03-15 Nick Clifton <nickc@redhat.com>
152 * addr2line.c (slurp_symtab): If canonicalization reveals that
153 there were no ordinary symbols, try loading the dynamic symbols
156 2013-03-14 Markos Chandras <markos.chandras@imgtec.com>
158 * MAINTAINERS: Add myself as Meta maintainer.
160 2013-03-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
162 * readelf.c (get_note_type): Add NT_S390_TDB.
164 2013-03-07 Alan Modra <amodra@gmail.com>
166 * strings.c (get_char): Dispense with buf[]. Instead shift
167 chars into big-endian value and byte-swap later if
168 little-endian. Don't EOF check value read from object.
170 2013-03-05 Corinna Vinschen <vinschen@redhat.com>
172 * configure.in: Build DLL tools on x86_64-*-cygwin* as well.
173 * configure: Regenerate.
175 2013-03-04 Nick Clifton <nickc@redhat.com>
177 * elfcomm.c (error): Flush stdout before emitting the error
181 2013-03-01 Cary Coutant <ccoutant@google.com>
183 * dwarf.c (cu_tu_indexes_read, shndx_pool, shndx_pool_size)
184 (shndx_pool_used): Move to top of file.
185 (struct cu_tu_set): New type.
186 (cu_count, tu_count, cu_sets, tu_sets): New file scope variables.
187 (fetch_indexed_string): Add "this_set" parameter. Update all callers.
188 (find_cu_tu_set_v2): New function.
189 (read_and_display_attr_value): Add "this_set" parameter.
190 (read_and_display_attr): Likewise.
191 (process_debug_info): Track base offsets for DWARF package files.
192 (load_debug_info): Call load_cu_tu_indexes.
193 (get_DW_SECT_short_name): New function.
194 (process_cu_tu_index): Add support for version 2 DWARF package files.
196 2013-02-27 Alan Modra <amodra@gmail.com>
199 * readelf.c (offsetof): Define.
200 (CHECK_ENTSIZE_VALUES): Remove extraneous indefinite article.
201 (process_corefile_note_segment): Allow notes without name or
202 desc. Combine out-of-range checks. Disallow "negative"
205 2013-02-26 Nick Clifton <nickc@redhat.com>
208 * readelf.c (process_corefile_note_segment): Prevent attempts to
209 read beyond the end of the note buffer.
211 2013-02-15 Kai Tietz <ktietz@redhat.com>
213 * objcopy.c (copy_main): Initialize context variable.
215 2013-02-15 Nick Clifton <nickc@redhat.com>
218 * ar.c (open_inarch): Fail on attempts to convert a normal archive
219 to a thin archive or vice versa.
220 * elfcomm.c (make_qualified_name): Handle corrupted thin
222 * readelf.c (process_archive): Likewise.
223 * doc/binutils.texi: Clarify documentation describing thin
226 2013-02-15 Nick Clifton <nickc@redhat.com>
229 * objcopy.c (enum change_action): Delete.
230 (struct section_list): Delete remove, copy, change_vma, change_lma
231 and set_flags fields. Add context field.
232 (find_section_list): Add a context parameter. Add support for
233 wildcard characters in section names.
234 (is_strip_section): Check for sections being both copied and
236 (copy_object): Pass context to find_section_list.
237 (setup_section): Likewise.
238 (copy_section): Likewise.
239 (copy_main): Likewise.
240 * doc/binutils: Document the new behaviour.
241 * NEWS: Mention the new feature
243 2013-02-14 Nick Clifton <nickc@redhat.com>
246 * objcopy.c (copy_object): Provide a helpful warning message when
247 adding a gnu_debuglink section to an object which already contains
250 2013-02-07 Nick Clifton <nickc@redhat.com>
252 * elfcomm.c (get_archive_member_name): Prevent seg-fault if a
253 corrupt archive uses long names but has no long name table.
255 2013-02-06 Sandra Loosemore <sandra@codesourcery.com>
256 Andrew Jenner <andrew@codesourcery.com>
258 Based on patches from Altera Corporation.
260 * readelf.c: Include elf/nios2.h.
261 (dump_relocations): Add case for EM_ALTERA_NIOS2.
262 (get_nios2_dynamic_type): New.
263 (get_dynamic_type): Add case for EM_ALTERA_NIOS2.
264 (is_32bit_abs_reloc): Fix EM_ALTERA_NIOS2 case.
265 (is_16bit_abs_reloc): Likewise.
266 (is_none_reloc): Add EM_ALTERA_NIOS2 and EM_NIOS32 cases.
267 * NEWS: Note Altera Nios II support.
268 * MAINTAINERS: Add Nios II maintainers.
270 2013-01-29 Xi Wang <xi.wang@gmail.com>
272 * readelf.c (process_version_sections): Fix overflow checks to
273 avoid undefined behaviour.
275 2013-01-28 Doug Evans <dje@google.com>
277 * dwarf.c (display_gdb_index): Handle .gdb_index version 8.
279 2013-01-28 Robert Schiele <rschiele@gmail.com>
281 * objcopy.c (parse_flags): Add merge and strings section flags.
283 2013-01-25 Cary Coutant <ccoutant@google.com>
285 * dwarf.c (display_loc_list): Update offset for each line
287 (print_addr_index): New function.
288 (display_loc_list_dwo): Update offset for each line printed.
289 Fix problems displaying loclists in .dwo files. Add support
291 (display_debug_loc): Remove custom header for .dwo files.
292 (display_debug_addr): Adjust formatting.
294 2013-01-25 Marco Atzeri <marco.atzeri@gmail.com>
296 * objcopy.c : Enable long section names for OPTION_ADD_GNU_DEBUGLINK.
298 2013-01-24 Doug Evans <dje@google.com>
300 * dwarf.c (display_debug_addr): Add missing parentheses to expression.
302 2013-01-24 Nick Clifton <nickc@redhat.com>
304 * readelf.c (get_machine_flags): Decode E_V850E3V5_ARCH.
306 2013-01-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
308 * readelf.c: Add strings for NT_S390_LAST_BREAK and
311 2013-01-18 Nick Clifton <nickc@redhat.com>
314 * addr2line.c (translate_addresses): When pretty printing, print
315 unknown function names on the same line as unknown symbol names.
317 2013-01-17 Nickolai Zeldovich <nickolai@csail.mit.edu>
319 * objdump.c (dump_target_specific): Fix NULL pointer test.
321 2013-01-16 Alan Modra <amodra@gmail.com>
324 * stabs.c (parse_stab_members): Always set physname here to avoid
326 (parse_stab_argtypes): ..and don't duplicate the init here.
328 2013-01-10 Will Newton <will.newton@imgtec.com>
330 * binutils/readelf.c: (guess_is_rela): Add EM_METAG.
331 (dump_relocations): Add EM_METAG.
332 (get_machine_name): Correct case for Meta.
333 (is_32bit_abs_reloc): Add support for Meta ADDR32 reloc.
334 (is_none_reloc): Add support for Meta NONE reloc.
336 2013-01-08 Yufeng Zhang <yufeng.zhang@arm.com>
338 * readelf.c (get_note_type): Handle NT_ARM_TLS, NT_ARM_HW_BREAK
341 2013-01-07 Roland McGrath <mcgrathr@google.com>
343 * objcopy.c (deterministic): Make int rather than bfd_boolean,
345 (strip_options, copy_options): Add -U/--disable-deterministic-archives.
346 (default_deterministic): New function.
347 (strip_main, copy_main): Handle -U. Call default_deterministic.
348 (copy_usage, strip_usage): Describe -U. Cite whether -D or -U is
349 the default based on DEFAULT_AR_DETERMINISTIC.
350 * doc/binutils.texi (objcopy, strip): Describe -U and effect of
351 configure options on -D.
353 * ar.c (default_deterministic): Comment fix.
355 2013-01-07 Patrice Dumas <pertusus@free.fr>
357 * doc/binutils.texi: Fix ordering of top level nodes.
358 Replace erroneous uses of @itemx with @item.
360 2013-01-04 Andreas Schwab <schwab@linux-m68k.org>
362 * doc/binutils.texi (elfedit): Fix use of @itemx in @table.
364 2013-01-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
366 * MAINTAINERS: Add myself as AArch64 co-maintainer.
368 2013-01-02 H.J. Lu <hongjiu.lu@intel.com>
370 * version.c (print_version): Update copyright year to 2013.
372 For older changes see ChangeLog-2012
374 Copyright (C) 2013 Free Software Foundation, Inc.
376 Copying and distribution of this file, with or without modification,
377 are permitted in any medium without royalty provided the copyright
378 notice and this notice are preserved.
384 version-control: never