]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - binutils/ChangeLog
Fixes illegal memory accesses triggereb by running a 32-bit binary version of objdump...
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
1 2015-02-06 Nick Clifton <nickc@redhat.com>
2
3 PR binutils/17512
4 * dwarf.c (display_debug_frames): Fix range checks to work on
5 32-bit binaries complied on a 64-bit host.
6
7 2015-02-05 Alan Modra <amodra@gmail.com>
8
9 PR binutils/17926
10 * dwarf.c (dwarf_select_sections_by_letters): Don't refer to optarg.
11
12 2015-02-04 Nick Clifton <nickc@redhat.com>
13
14 PR binutils/17531
15 * dwarf.c (read_and_display_attr_value): Test for a block length
16 being so long that it wraps around to before the start of the block.
17 (process_debug_info): Test for section_begin wrapping around to
18 before the start of the section.
19 (display_gdb_index): Test for num_cus being so large that the end
20 address wraps around to before the start of the section.
21 (process_cu_tu_index): Test for j being so large that the section
22 index pool wraps around to before the start of the section.
23
24 2015-02-03 Nick Clifton <nickc@redhat.com>
25
26 PR binutils/17531
27 * dwarf.c (process_debug_info): Add range check.
28 (display_debug_pubnames_worker): Likewise.
29 (display_gdb_index): Fix range check.
30 (process_cu_tu_index): Add range check.
31 * readelf.c (get_data): Change parameter types from size_t to
32 bfd_size_type. Add checks for loss of accuracy when casting from
33 bfd_size_type to size_t.
34 (get_dynamic_data): Likewise.
35 (process_section_groups): Limit number of error messages.
36
37 2015-02-03 Nick Clifton <nickc@redhat.com>
38
39 PR binutils/17512
40 * objdump.c (display_any_bfd): Fail if archives nest too deeply.
41
42 2015-01-28 James Bowman <james.bowman@ftdichip.com>
43
44 * readelf.c: Add FT32 support.
45
46 2015-01-27 Nick Clifton <nickc@redhat.com>
47
48 PR binutils/17512
49 * dlltool.c (identify_search_archive): If the last archive was the
50 same as the current archive, terminate the loop.
51
52 * addr2line.c (slurp_symtab): If the symcount is zero, free the
53 symbol table pointer.
54
55 * rcparse.y: Add checks to avoid integer divide by zero.
56 * rescoff.c (read_coff_rsrc): Add check on the size of the
57 resource section.
58 (read_coff_res_dir): Add check on the nesting level.
59 Check for resource names overrunning the buffer.
60 * resrc.c (write_rc_messagetable): Update formatting.
61 Add check of 'elen' being zero.
62
63 2015-01-23 Nick Clifton <nickc@redhat.com>
64
65 * nlmconv.c (powerpc_mangle_relocs): Fix build errors introduced
66 by recent delta, when compiling on for a 32-bit host.
67
68 2015-01-21 Nick Clifton <nickc@redhat.com>
69
70 PR binutils/17512
71 * addr2line.c (main): Call bfd_set_error_program_name.
72 * ar.c (main): Likewise.
73 * coffdump.c (main): Likewise.
74 * cxxfilt.c (main): Likewise.
75 * dlltool.c (main): Likewise.
76 * nlmconv.c (main): Likewise.
77 * nm.c (main): Likewise.
78 * objdump.c (main): Likewise.
79 * size.c (main): Likewise.
80 * srconv.c (main): Likewise.
81 * strings.c (main): Likewise.
82 * sysdump.c (main): Likewise.
83 * windmc.c (main): Likewise.
84 * windres.c (main): Likewise.
85 * objcopy.c (main): Likewise.
86 (copy_relocations_in_section): Check for relocs without associated
87 symbol pointers.
88
89 2015-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
90
91 * MAINTAINERS: Add self to ARM maintainers list.
92
93 2015-01-21 Nick Clifton <nickc@redhat.com>
94
95 PR binutils/17512
96 * coffgrok.c (do_type): Check that computed ref exists.
97 (doit): Add range checks when computing section for scope.
98
99 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
100
101 * dwarf.c (process_debug_info): Properly check abbrev size.
102
103 2015-01-12 Nick Clifton <nickc@redhat.com>
104
105 PR binutils/17531
106 * dwarf.c (process_debug_info): Check for abbrev_base being larger
107 than the section size.
108 (process_cu_tu_index): Use xcalloc2 to allocate the CU and TU
109 arrays.
110 (xcalloc2): New function. Like xcalloc, but checks for overflow.
111 (display_debug_addr): Use xcalloc to allocate the debug_addr_info
112 array. Check for an address_base that is too large.
113
114 * dwarf.h (xcalloc2): Prototype.
115
116 2015-01-12 Alan Modra <amodra@gmail.com>
117
118 * prdbg.c (print_debugging_info): Don't use void* for function
119 pointer param.
120 * budbg.h (print_debugging_info): Update prototype.
121
122 2015-01-08 Nick Clifton <nickc@redhat.com>
123
124 PR binutils/17512
125 * ojcopy.c (copy_object): Free the symbol table if no symbols
126 could be loaded.
127 (copy_file): Use bfd_close_all_done to close files that could not
128 be copied.
129
130 * sysdump.c (getINT): Fail if reading off the end of the buffer.
131 Replace call to abort with a call to fatal.
132 (getCHARS): Prevetn reading off the end of the buffer.
133
134 * nlmconv.c (i386_mangle_relocs): Skip relocs without an
135 associated symbol.
136 (powerpc_mangle_relocs): Skip unrecognised relocs. Check address
137 range before applying a reloc.
138
139 2015-01-07 Nick Clifton <nickc@redhat.com>
140
141 PR binutils/17512
142 * dlltool.c (scan_obj_file): Break loop if the last archive
143 displayed matches the current archive.
144
145 * objdump.c (display_any_bfd): Add a depth limit to nested archive
146 display in order to avoid infinite loops.
147 * srconv.c: Replace calls to abort with calls to fatal with an
148 error message.
149
150 2015-01-06 Nick Clifton <nickc@redhat.com>
151
152 PR binutils/17512
153 * coffdump.c (dump_coff_section): Check for a symbol being
154 available before printing its name.
155 (main): Check the return value from coff_grok.
156 * coffgrok.c: Reformat and tidy.
157 Add range checks to most functions.
158 (coff_grok): Return NULL if the input bfd is not in a COFF
159 format.
160 * coffgrok.h: Reformat and tidy.
161 (struct coff_section): Change the nrelocs field to unsigned.
162 * srconv.c (main): Check the return value from coff_grok.
163
164 2015-01-05 Nick Clifton <nickc@redhat.com>
165
166 PR binutils/17512
167 * nm.c (print_symbol): Add 'is_synthetic' parameter. Use it to
168 help initialize the info.elfinfo field.
169 (print_size_symbols): Add 'synth_count' parameter. Use it to set
170 the is_synthetic parameter when calling print_symbol.
171 (print_symbols): Likewise.
172 (display_rel_file): Pass synth_count to printing function.
173 (display_archive): Break loop if the last archive displayed
174 matches the current archive.
175 * size.c (display_archive): Likewise.
176
177 2015-01-05 Nick Clifton <nickc@redhat.com>
178
179 PR binutils/17531
180 * dwarf.c (alloc_num_debug_info_entries): New variable.
181 (process_debug_info): Set it. Use it to avoid displaying
182 attributes for which there is no info.
183 (display_debug_abbrev): Check that the debug_info_entry index is
184 valid before using it.
185 (display_loc_list_dwo): Likewise.
186 (process_cu_tu_index): Add range check for an overlarge dw_sect
187 value.
188 (free_debug_memory): Reset alloc_num_debug_info_entries.
189 * readelf.c (slurp_ia64_unwind_table): Warn if the reloc could not
190 be indentified.
191 (dynamic_section_mips_val): Warn if the timestamp is invalid.
192 (print_mips_got_entry): Add a data_end parameter. Warn if a read
193 would go beyond the end of the data, and return an error value.
194 (process_mips_specific): Do not read options from beyond the end
195 of the section.
196 Correct code to display optional data at the end of an option.
197 Warn if there are too many GOT symbols.
198 Update calls to print_mips_got_entry, and handle error returns.
199
200 2015-01-05 Daniel Klauer <daniel.c.klauer@web.de>
201
202 PR binutils/17489
203 * doc/binutils.texi (dlltool): Correct description of --kill-at
204 option.
205
206 2015-01-01 Alan Modra <amodra@gmail.com>
207
208 * version.c (print_version): Just print current year.
209
210 2015-01-01 Alan Modra <amodra@gmail.com>
211
212 Update year range in copyright notice of all files.
213
214 For older changes see ChangeLog-2014
215 \f
216 Copyright (C) 2015 Free Software Foundation, Inc.
217
218 Copying and distribution of this file, with or without modification,
219 are permitted in any medium without royalty provided the copyright
220 notice and this notice are preserved.
221
222 Local Variables:
223 mode: change-log
224 left-margin: 8
225 fill-column: 74
226 version-control: never
227 End: