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