Fix memory access violations triggered by running strip on fuzzed binaries.
[deliverable/binutils-gdb.git] / binutils / ChangeLog
1 2015-01-21 Nick Clifton <nickc@redhat.com>
2
3 PR binutils/17512
4 * addr2line.c (main): Call bfd_set_error_program_name.
5 * ar.c (main): Likewise.
6 * coffdump.c (main): Likewise.
7 * cxxfilt.c (main): Likewise.
8 * dlltool.c (main): Likewise.
9 * nlmconv.c (main): Likewise.
10 * nm.c (main): Likewise.
11 * objdump.c (main): Likewise.
12 * size.c (main): Likewise.
13 * srconv.c (main): Likewise.
14 * strings.c (main): Likewise.
15 * sysdump.c (main): Likewise.
16 * windmc.c (main): Likewise.
17 * windres.c (main): Likewise.
18 * objcopy.c (main): Likewise.
19 (copy_relocations_in_section): Check for relocs without associated
20 symbol pointers.
21
22 2015-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23
24 * MAINTAINERS: Add self to ARM maintainers list.
25
26 2015-01-21 Nick Clifton <nickc@redhat.com>
27
28 PR binutils/17512
29 * coffgrok.c (do_type): Check that computed ref exists.
30 (doit): Add range checks when computing section for scope.
31
32 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
33
34 * dwarf.c (process_debug_info): Properly check abbrev size.
35
36 2015-01-12 Nick Clifton <nickc@redhat.com>
37
38 PR binutils/17531
39 * dwarf.c (process_debug_info): Check for abbrev_base being larger
40 than the section size.
41 (process_cu_tu_index): Use xcalloc2 to allocate the CU and TU
42 arrays.
43 (xcalloc2): New function. Like xcalloc, but checks for overflow.
44 (display_debug_addr): Use xcalloc to allocate the debug_addr_info
45 array. Check for an address_base that is too large.
46
47 * dwarf.h (xcalloc2): Prototype.
48
49 2015-01-12 Alan Modra <amodra@gmail.com>
50
51 * prdbg.c (print_debugging_info): Don't use void* for function
52 pointer param.
53 * budbg.h (print_debugging_info): Update prototype.
54
55 2015-01-08 Nick Clifton <nickc@redhat.com>
56
57 PR binutils/17512
58 * ojcopy.c (copy_object): Free the symbol table if no symbols
59 could be loaded.
60 (copy_file): Use bfd_close_all_done to close files that could not
61 be copied.
62
63 * sysdump.c (getINT): Fail if reading off the end of the buffer.
64 Replace call to abort with a call to fatal.
65 (getCHARS): Prevetn reading off the end of the buffer.
66
67 * nlmconv.c (i386_mangle_relocs): Skip relocs without an
68 associated symbol.
69 (powerpc_mangle_relocs): Skip unrecognised relocs. Check address
70 range before applying a reloc.
71
72 2015-01-07 Nick Clifton <nickc@redhat.com>
73
74 PR binutils/17512
75 * dlltool.c (scan_obj_file): Break loop if the last archive
76 displayed matches the current archive.
77
78 * objdump.c (display_any_bfd): Add a depth limit to nested archive
79 display in order to avoid infinite loops.
80 * srconv.c: Replace calls to abort with calls to fatal with an
81 error message.
82
83 2015-01-06 Nick Clifton <nickc@redhat.com>
84
85 PR binutils/17512
86 * coffdump.c (dump_coff_section): Check for a symbol being
87 available before printing its name.
88 (main): Check the return value from coff_grok.
89 * coffgrok.c: Reformat and tidy.
90 Add range checks to most functions.
91 (coff_grok): Return NULL if the input bfd is not in a COFF
92 format.
93 * coffgrok.h: Reformat and tidy.
94 (struct coff_section): Change the nrelocs field to unsigned.
95 * srconv.c (main): Check the return value from coff_grok.
96
97 2015-01-05 Nick Clifton <nickc@redhat.com>
98
99 PR binutils/17512
100 * nm.c (print_symbol): Add 'is_synthetic' parameter. Use it to
101 help initialize the info.elfinfo field.
102 (print_size_symbols): Add 'synth_count' parameter. Use it to set
103 the is_synthetic parameter when calling print_symbol.
104 (print_symbols): Likewise.
105 (display_rel_file): Pass synth_count to printing function.
106 (display_archive): Break loop if the last archive displayed
107 matches the current archive.
108 * size.c (display_archive): Likewise.
109
110 2015-01-05 Nick Clifton <nickc@redhat.com>
111
112 PR binutils/17531
113 * dwarf.c (alloc_num_debug_info_entries): New variable.
114 (process_debug_info): Set it. Use it to avoid displaying
115 attributes for which there is no info.
116 (display_debug_abbrev): Check that the debug_info_entry index is
117 valid before using it.
118 (display_loc_list_dwo): Likewise.
119 (process_cu_tu_index): Add range check for an overlarge dw_sect
120 value.
121 (free_debug_memory): Reset alloc_num_debug_info_entries.
122 * readelf.c (slurp_ia64_unwind_table): Warn if the reloc could not
123 be indentified.
124 (dynamic_section_mips_val): Warn if the timestamp is invalid.
125 (print_mips_got_entry): Add a data_end parameter. Warn if a read
126 would go beyond the end of the data, and return an error value.
127 (process_mips_specific): Do not read options from beyond the end
128 of the section.
129 Correct code to display optional data at the end of an option.
130 Warn if there are too many GOT symbols.
131 Update calls to print_mips_got_entry, and handle error returns.
132
133 2015-01-05 Daniel Klauer <daniel.c.klauer@web.de>
134
135 PR binutils/17489
136 * doc/binutils.texi (dlltool): Correct description of --kill-at
137 option.
138
139 2015-01-01 Alan Modra <amodra@gmail.com>
140
141 * version.c (print_version): Just print current year.
142
143 2015-01-01 Alan Modra <amodra@gmail.com>
144
145 Update year range in copyright notice of all files.
146
147 For older changes see ChangeLog-2014
148 \f
149 Copyright (C) 2015 Free Software Foundation, Inc.
150
151 Copying and distribution of this file, with or without modification,
152 are permitted in any medium without royalty provided the copyright
153 notice and this notice are preserved.
154
155 Local Variables:
156 mode: change-log
157 left-margin: 8
158 fill-column: 74
159 version-control: never
160 End:
This page took 0.033908 seconds and 5 git commands to generate.