1 2015-02-26 Nick Clifton <nickc@redhat.com>
4 * resrc.c (write_rc_messagetable): Tighten check for invalid
7 * dwarf.c (display_debug_loc): Pacify the undefined behaviour
8 sanitizer by simplifying address difference calculation.
9 (struct Frame_Chunk): Change type of cfa_offset to dwarf_vma in
10 order to avoid arithmetic overflows.
11 (frame_display_row): Cast cfa_offset before printing it.
12 (display_debug_frames): Likewise.
13 Check for an unexpected segment size.
14 Chnage type of 'l' local to dwarf_vma and cast it back to an int
16 (process_cu_tu_index): Tighten check for an invalid ncols value.
17 * readelf.c (process_corefile_note_segment): Check for
18 inote.descdata extending beyond the end of the section.
19 (process_v850_notes): Likewise.
21 2015-02-26 Terry Guo <terry.guo@arm.com>
23 * readelf.c (arm_attr_tag_ABI_HardFP_use): Update how we
26 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
28 * objcopy.c (init_section_add): New function.
29 (section_add_load_file): New function.
30 (copy_main): Make use of new functions.
32 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
34 * od-elf32_avr.c: Add elf32-avr.h include.
35 (OPT_AVRPROP): Define.
36 (options[]): Add 'avr-prop' entry.
37 (elf32_avr_help): Add avr-prop help text.
38 (elf32_avr_dump_avr_prop): New function.
39 (elf32_avr_dump): Add check for avr-prop.
41 2015-02-24 Nick Clifton <nickc@redhat.com>
43 * readelf.c (get_machine_flags): Remove deprecated V850 machine
45 (get_v850_section_type_name): New function. Handles V850 special
47 (get_section_type_name): Add support for V850.
48 (get_v850_elf_note_type): New function. Returns the name of a
50 (print_v850_note): New function. Prints a V850 note.
51 (process_v850_notes): New function. Prints V850 notes.
52 (process_note_sections): Add support for V850.
54 2015-02-24 Mike Frysinger <vapier@gentoo.org>
57 * readelf.c (process_symbol_table): Declare chained. Increment it
58 in every loop. Abort when chained is larger than nchains. Move
59 error check outside of chain loop.
61 2015-02-24 Dmitry Antipov <dantipov@nvidia.com>
63 * readelf.c (find_symbol_for_address): Use a binary search to
64 speed up symbol location. Skip check for function symbol type.
65 (*_unw_aux_info): Add funtab and nfuns fields contains a sorted
66 list of function symbols.
67 (dump_ia64_unwind): Initialise the funtab and nfuns fields and
68 pass them to find_symbol_for_address.
69 (dump_hppa_unwind): Likewise.
70 (arm_print_vma_and_name): Pass funtab to find_symbol_for_address.
71 (dump_arm_unwind): Initialise the funtab and nfuns fields.
73 2015-02-24 Nick Clifton <nickc@redhat.com>
75 * objdump.c (dump_section): Extend the warning message displayed
76 when a section cannot be loaded.
78 2015-02-21 Mike Frysinger <vapier@gentoo.org>
80 * readelf.c (process_program_headers): Add newline to warning
83 2015-02-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
85 * readelf.c (get_note_type): Add NT_S390_VXRS_LOW and
88 2015-02-13 Nick Clifton <nickc@redhat.com>
91 * dwarf.c (read_leb128): Fix test for shift becoming too large.
93 * coffgrok.c (do_define): Add check for type size overflow.
94 * srconv.c (walk_tree_sfile): Check that enough sections are
95 available before parsing.
99 * dwarf.c (display_debug_aranges): Add check for an excessive
101 (process_cu_tu_index): Check for a row * columns sum being too
104 2015-02-13 Alan Modra <amodra@gmail.com>
106 * dwarf.c: Formatting, whitespace.
107 (process_debug_info): Style fix.
109 2015-02-11 Nick Clifton <nickc@redhat.com>
111 * rl78-decode.opc: Add 'a' attribute to instructions that support
113 * rl78-decode.c: Regenerate.
114 * rl78-dis.c (print_insn_rl78): Display the offset in [HL+0]
117 2015-02-11 Nick Clifton <nickc@redhat.com>
120 * dwarf.c (display_debug_pubnames_worker): Work around compiler
121 bug checking address ranges.
122 (display_debug_frames): Likewise.
123 (display_gdb_index): Likewise.
124 (process_cu_tu_index): Add range check on the ncols value.
126 2015-02-10 Nick Clifton <nickc@redhat.com>
129 * dwarf.c (eh_addr_size): Use an unsigned type.
130 (size_of_encoded_value): Return an unsigned type.
131 (read_leb128): Break if the shift becomes too big.
132 (process_extended_line_op): Do not read the address if the length
134 (read_cie): Warn and fail if the pointer size or segment size are
136 * dwarf.h (DWARF2_External_LineInfo): Delete unused and incorrect
137 structure definition.
138 (DWARF2_External_PubNames): Likewise.
139 (DWARF2_External_CompUnit): Likewise.
140 (DWARF2_External_ARange): Likewise.
141 (DWARF2_Internal_LineInfo): Use dwarf_vma type for
143 (eh_addr_size): Update prototype.
146 * dwarf.c (process_debug_info): Zero the debug information array
147 since correct initialisation cannot be relied upon.
148 (process_cu_tu_index): Improve range checks.
151 * dwarf.c (display_debug_pubnames_worker): Use dwarf_vma type for
153 * readelf.c (dump_relocations): Handle printing offsets which are
155 (process_corefile_note_segment): Add range check of the namesz
158 2015-02-09 Mark Wielaard <mjw@redhat.com>
160 * dwarf.c (read_and_display_attr_value): Handle DW_LANG_Fortran03
161 and DW_LANG_Fortran08.
163 2015-02-06 Nick Clifton <nickc@redhat.com>
166 * dwarf.c (display_debug_frames): Fix range checks to work on
167 32-bit binaries complied on a 64-bit host.
170 * dwarf.c (xcmalloc): Fail if the arguments are too big.
171 (xcrealloc): Likewise.
172 (xcalloc2): Likewise.
173 * readelf.c (process_mips_specific): Fail if an option has an
176 2015-02-05 Alan Modra <amodra@gmail.com>
179 * dwarf.c (dwarf_select_sections_by_letters): Don't refer to optarg.
181 2015-02-04 Nick Clifton <nickc@redhat.com>
184 * dwarf.c (read_and_display_attr_value): Test for a block length
185 being so long that it wraps around to before the start of the block.
186 (process_debug_info): Test for section_begin wrapping around to
187 before the start of the section.
188 (display_gdb_index): Test for num_cus being so large that the end
189 address wraps around to before the start of the section.
190 (process_cu_tu_index): Test for j being so large that the section
191 index pool wraps around to before the start of the section.
193 2015-02-03 Nick Clifton <nickc@redhat.com>
196 * dwarf.c (process_debug_info): Add range check.
197 (display_debug_pubnames_worker): Likewise.
198 (display_gdb_index): Fix range check.
199 (process_cu_tu_index): Add range check.
200 * readelf.c (get_data): Change parameter types from size_t to
201 bfd_size_type. Add checks for loss of accuracy when casting from
202 bfd_size_type to size_t.
203 (get_dynamic_data): Likewise.
204 (process_section_groups): Limit number of error messages.
206 2015-02-03 Nick Clifton <nickc@redhat.com>
209 * objdump.c (display_any_bfd): Fail if archives nest too deeply.
211 2015-01-28 James Bowman <james.bowman@ftdichip.com>
213 * readelf.c: Add FT32 support.
215 2015-01-27 Nick Clifton <nickc@redhat.com>
218 * dlltool.c (identify_search_archive): If the last archive was the
219 same as the current archive, terminate the loop.
221 * addr2line.c (slurp_symtab): If the symcount is zero, free the
222 symbol table pointer.
224 * rcparse.y: Add checks to avoid integer divide by zero.
225 * rescoff.c (read_coff_rsrc): Add check on the size of the
227 (read_coff_res_dir): Add check on the nesting level.
228 Check for resource names overrunning the buffer.
229 * resrc.c (write_rc_messagetable): Update formatting.
230 Add check of 'elen' being zero.
232 2015-01-23 Nick Clifton <nickc@redhat.com>
234 * nlmconv.c (powerpc_mangle_relocs): Fix build errors introduced
235 by recent delta, when compiling on for a 32-bit host.
237 2015-01-21 Nick Clifton <nickc@redhat.com>
240 * addr2line.c (main): Call bfd_set_error_program_name.
241 * ar.c (main): Likewise.
242 * coffdump.c (main): Likewise.
243 * cxxfilt.c (main): Likewise.
244 * dlltool.c (main): Likewise.
245 * nlmconv.c (main): Likewise.
246 * nm.c (main): Likewise.
247 * objdump.c (main): Likewise.
248 * size.c (main): Likewise.
249 * srconv.c (main): Likewise.
250 * strings.c (main): Likewise.
251 * sysdump.c (main): Likewise.
252 * windmc.c (main): Likewise.
253 * windres.c (main): Likewise.
254 * objcopy.c (main): Likewise.
255 (copy_relocations_in_section): Check for relocs without associated
258 2015-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
260 * MAINTAINERS: Add self to ARM maintainers list.
262 2015-01-21 Nick Clifton <nickc@redhat.com>
265 * coffgrok.c (do_type): Check that computed ref exists.
266 (doit): Add range checks when computing section for scope.
268 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
270 * dwarf.c (process_debug_info): Properly check abbrev size.
272 2015-01-12 Nick Clifton <nickc@redhat.com>
275 * dwarf.c (process_debug_info): Check for abbrev_base being larger
276 than the section size.
277 (process_cu_tu_index): Use xcalloc2 to allocate the CU and TU
279 (xcalloc2): New function. Like xcalloc, but checks for overflow.
280 (display_debug_addr): Use xcalloc to allocate the debug_addr_info
281 array. Check for an address_base that is too large.
283 * dwarf.h (xcalloc2): Prototype.
285 2015-01-12 Alan Modra <amodra@gmail.com>
287 * prdbg.c (print_debugging_info): Don't use void* for function
289 * budbg.h (print_debugging_info): Update prototype.
291 2015-01-08 Nick Clifton <nickc@redhat.com>
294 * ojcopy.c (copy_object): Free the symbol table if no symbols
296 (copy_file): Use bfd_close_all_done to close files that could not
299 * sysdump.c (getINT): Fail if reading off the end of the buffer.
300 Replace call to abort with a call to fatal.
301 (getCHARS): Prevetn reading off the end of the buffer.
303 * nlmconv.c (i386_mangle_relocs): Skip relocs without an
305 (powerpc_mangle_relocs): Skip unrecognised relocs. Check address
306 range before applying a reloc.
308 2015-01-07 Nick Clifton <nickc@redhat.com>
311 * dlltool.c (scan_obj_file): Break loop if the last archive
312 displayed matches the current archive.
314 * objdump.c (display_any_bfd): Add a depth limit to nested archive
315 display in order to avoid infinite loops.
316 * srconv.c: Replace calls to abort with calls to fatal with an
319 2015-01-06 Nick Clifton <nickc@redhat.com>
322 * coffdump.c (dump_coff_section): Check for a symbol being
323 available before printing its name.
324 (main): Check the return value from coff_grok.
325 * coffgrok.c: Reformat and tidy.
326 Add range checks to most functions.
327 (coff_grok): Return NULL if the input bfd is not in a COFF
329 * coffgrok.h: Reformat and tidy.
330 (struct coff_section): Change the nrelocs field to unsigned.
331 * srconv.c (main): Check the return value from coff_grok.
333 2015-01-05 Nick Clifton <nickc@redhat.com>
336 * nm.c (print_symbol): Add 'is_synthetic' parameter. Use it to
337 help initialize the info.elfinfo field.
338 (print_size_symbols): Add 'synth_count' parameter. Use it to set
339 the is_synthetic parameter when calling print_symbol.
340 (print_symbols): Likewise.
341 (display_rel_file): Pass synth_count to printing function.
342 (display_archive): Break loop if the last archive displayed
343 matches the current archive.
344 * size.c (display_archive): Likewise.
346 2015-01-05 Nick Clifton <nickc@redhat.com>
349 * dwarf.c (alloc_num_debug_info_entries): New variable.
350 (process_debug_info): Set it. Use it to avoid displaying
351 attributes for which there is no info.
352 (display_debug_abbrev): Check that the debug_info_entry index is
353 valid before using it.
354 (display_loc_list_dwo): Likewise.
355 (process_cu_tu_index): Add range check for an overlarge dw_sect
357 (free_debug_memory): Reset alloc_num_debug_info_entries.
358 * readelf.c (slurp_ia64_unwind_table): Warn if the reloc could not
360 (dynamic_section_mips_val): Warn if the timestamp is invalid.
361 (print_mips_got_entry): Add a data_end parameter. Warn if a read
362 would go beyond the end of the data, and return an error value.
363 (process_mips_specific): Do not read options from beyond the end
365 Correct code to display optional data at the end of an option.
366 Warn if there are too many GOT symbols.
367 Update calls to print_mips_got_entry, and handle error returns.
369 2015-01-05 Daniel Klauer <daniel.c.klauer@web.de>
372 * doc/binutils.texi (dlltool): Correct description of --kill-at
375 2015-01-01 Alan Modra <amodra@gmail.com>
377 * version.c (print_version): Just print current year.
379 2015-01-01 Alan Modra <amodra@gmail.com>
381 Update year range in copyright notice of all files.
383 For older changes see ChangeLog-2014
385 Copyright (C) 2015 Free Software Foundation, Inc.
387 Copying and distribution of this file, with or without modification,
388 are permitted in any medium without royalty provided the copyright
389 notice and this notice are preserved.
395 version-control: never