1 2013-03-27 Alan Modra <amodra@gmail.com>
4 * dwarf.c (read_and_display_attr_value): Cast format '*' arg to int.
6 2013-03-26 Nick Clifton <nickc@redhat.com>
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
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.
35 2013-03-25 Nick Clifton <nickc@redhat.com>
38 * dwarf.c (read_leb128): Add END parameter. Do not read at or
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.
70 2013-03-22 Nick Clifton <nickc@redhat.com>
73 * dwarf.c (display_debug_ranges): Add checks for reading beyond
74 the end of the section.
77 * readelf.c (apply_relocations): Catch relocations with negative
80 2013-03-15 Nick Clifton <nickc@redhat.com>
82 * addr2line.c (slurp_symtab): If canonicalization reveals that
83 there were no ordinary symbols, try loading the dynamic symbols
86 2013-03-14 Markos Chandras <markos.chandras@imgtec.com>
88 * MAINTAINERS: Add myself as Meta maintainer.
90 2013-03-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
92 * readelf.c (get_note_type): Add NT_S390_TDB.
94 2013-03-07 Alan Modra <amodra@gmail.com>
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.
100 2013-03-05 Corinna Vinschen <vinschen@redhat.com>
102 * configure.in: Build DLL tools on x86_64-*-cygwin* as well.
103 * configure: Regenerate.
105 2013-03-04 Nick Clifton <nickc@redhat.com>
107 * elfcomm.c (error): Flush stdout before emitting the error
111 2013-03-01 Cary Coutant <ccoutant@google.com>
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.
126 2013-02-27 Alan Modra <amodra@gmail.com>
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"
135 2013-02-26 Nick Clifton <nickc@redhat.com>
138 * readelf.c (process_corefile_note_segment): Prevent attempts to
139 read beyond the end of the note buffer.
141 2013-02-15 Kai Tietz <ktietz@redhat.com>
143 * objcopy.c (copy_main): Initialize context variable.
145 2013-02-15 Nick Clifton <nickc@redhat.com>
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
152 * readelf.c (process_archive): Likewise.
153 * doc/binutils.texi: Clarify documentation describing thin
156 2013-02-15 Nick Clifton <nickc@redhat.com>
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
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
173 2013-02-14 Nick Clifton <nickc@redhat.com>
176 * objcopy.c (copy_object): Provide a helpful warning message when
177 adding a gnu_debuglink section to an object which already contains
180 2013-02-07 Nick Clifton <nickc@redhat.com>
182 * elfcomm.c (get_archive_member_name): Prevent seg-fault if a
183 corrupt archive uses long names but has no long name table.
185 2013-02-06 Sandra Loosemore <sandra@codesourcery.com>
186 Andrew Jenner <andrew@codesourcery.com>
188 Based on patches from Altera Corporation.
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.
200 2013-01-29 Xi Wang <xi.wang@gmail.com>
202 * readelf.c (process_version_sections): Fix overflow checks to
203 avoid undefined behaviour.
205 2013-01-28 Doug Evans <dje@google.com>
207 * dwarf.c (display_gdb_index): Handle .gdb_index version 8.
209 2013-01-28 Robert Schiele <rschiele@gmail.com>
211 * objcopy.c (parse_flags): Add merge and strings section flags.
213 2013-01-25 Cary Coutant <ccoutant@google.com>
215 * dwarf.c (display_loc_list): Update offset for each line
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
221 (display_debug_loc): Remove custom header for .dwo files.
222 (display_debug_addr): Adjust formatting.
224 2013-01-25 Marco Atzeri <marco.atzeri@gmail.com>
226 * objcopy.c : Enable long section names for OPTION_ADD_GNU_DEBUGLINK.
228 2013-01-24 Doug Evans <dje@google.com>
230 * dwarf.c (display_debug_addr): Add missing parentheses to expression.
232 2013-01-24 Nick Clifton <nickc@redhat.com>
234 * readelf.c (get_machine_flags): Decode E_V850E3V5_ARCH.
236 2013-01-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
238 * readelf.c: Add strings for NT_S390_LAST_BREAK and
241 2013-01-18 Nick Clifton <nickc@redhat.com>
244 * addr2line.c (translate_addresses): When pretty printing, print
245 unknown function names on the same line as unknown symbol names.
247 2013-01-17 Nickolai Zeldovich <nickolai@csail.mit.edu>
249 * objdump.c (dump_target_specific): Fix NULL pointer test.
251 2013-01-16 Alan Modra <amodra@gmail.com>
254 * stabs.c (parse_stab_members): Always set physname here to avoid
256 (parse_stab_argtypes): ..and don't duplicate the init here.
258 2013-01-10 Will Newton <will.newton@imgtec.com>
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.
266 2013-01-08 Yufeng Zhang <yufeng.zhang@arm.com>
268 * readelf.c (get_note_type): Handle NT_ARM_TLS, NT_ARM_HW_BREAK
271 2013-01-07 Roland McGrath <mcgrathr@google.com>
273 * objcopy.c (deterministic): Make int rather than bfd_boolean,
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.
283 * ar.c (default_deterministic): Comment fix.
285 2013-01-07 Patrice Dumas <pertusus@free.fr>
287 * doc/binutils.texi: Fix ordering of top level nodes.
288 Replace erroneous uses of @itemx with @item.
290 2013-01-04 Andreas Schwab <schwab@linux-m68k.org>
292 * doc/binutils.texi (elfedit): Fix use of @itemx in @table.
294 2013-01-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
296 * MAINTAINERS: Add myself as AArch64 co-maintainer.
298 2013-01-02 H.J. Lu <hongjiu.lu@intel.com>
300 * version.c (print_version): Update copyright year to 2013.
302 For older changes see ChangeLog-2012
304 Copyright (C) 2013 Free Software Foundation, Inc.
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.
314 version-control: never