Prevent a buffer overrun when parsing corrupt STABS debug information.
[deliverable/binutils-gdb.git] / binutils / ChangeLog
1 2018-03-13 Nick Clifton <nickc@redhat.com>
2
3 PR 22957
4 * stabs.c (pop_binincl): Fail if the file index is off the end of
5 the stack.
6
7 2018-03-13 Nick Clifton <nickc@redhat.com>
8
9 PR 22955
10 * stabs.c (parse_number): Add p_end parameter and use it to check
11 the validity of the pp parameter. Add checks to prevent walking
12 off the end of the string buffer.
13 (parse_stab_string): Likewise.
14 (parse_stab_type): Likewise.
15 (parse_stab_type_number): Likewise.
16 (parse_stab_range_type): Likewise.
17 (parse_stab_sun_builtin_type): Likewise.
18 (parse_stab_sun_floating_type): Likewise.
19 (parse_stab_enum_type): Likewise.
20 (parse_stab_struct_type): Likewise.
21 (parse_stab_baseclasses): Likewise.
22 (parse_stab_struct_fields): Likewise.
23 (parse_stab_cpp_abbrev): Likewise.
24 (parse_stab_one_struct_field): Likewise.
25 (parse_stab_members): Likewise.
26 (parse_stab_tilde_field): Likewise.
27 (parse_stab_array_type): Likewise.
28
29 * parse_stab: Compute the end of the string and then pass it on to
30 individual parser functions.
31
32 2018-03-07 Paul Pluzhnikov <ppluzhnikov@google.com>
33
34 PR binutils/22923
35 * binutils/readelf.c (get_ver_flags): Expand buffer to avoid
36 overflow.
37
38 2018-03-07 Alan Modra <amodra@gmail.com>
39
40 * configure.ac: Add objdump_private_desc_xcoff for rs6000.
41 * configure: Regenerate.
42
43 2018-03-05 H.J. Lu <hongjiu.lu@intel.com>
44
45 PR binutils/22911
46 * objdump.c (is_significant_symbol_name): Return TRUE for all
47 .plt* sections.
48 (find_symbol_for_address): Replace linear search with binary
49 search on dynamic relocations.
50
51 2018-03-01 Nick Clifton <nickc@redhat.com>
52
53 PR 22905
54 * dwarf.c (display_debug_ranges): Check that the offset loaded
55 from the range_entry structure is valid.
56
57 2018-03-01 Alan Modra <amodra@gmail.com>
58
59 * configure.ac (ALL_LINGUAS): Add sr. Sort.
60 * configure: Regenerate.
61
62 2018-02-27 Nick Clifton <nickc@redhat.com>
63
64 * po/pt.po: New Portuguese translation.
65 * configure.ac (ALL_LINGUAS): Add pt.
66 * configure: Regenerate.
67
68 2018-02-27 Nick Clifton <nickc@redhat.com>
69
70 PR 22875
71 * objcopy.c (copy_object): Check the error status after marking
72 symbols used in relocations.
73 * testsuite/binutils-all/strip-13.s: New test source file.
74 * testsuite/binutils-all/strip-13.s: New test driver file.
75 * testsuite/binutils-all/objcopy.exp: Run the new test.
76
77 2018-02-26 Alan Modra <amodra@gmail.com>
78
79 * testsuite/binutils-all/mips/mips-reginfo-n32.d,
80 * testsuite/binutils-all/mips/mips-reginfo.d: Update.
81
82 2018-02-23 Alan Modra <amodra@gmail.com>
83
84 * testsuite/binutils-all/mips/mips-reginfo-n32.d,
85 * testsuite/binutils-all/mips/mips-reginfo.d: Update.
86
87 2018-02-20 Ronald Hoogenboom <hoogenboom30@zonnet.nl>
88
89 * doc/binutils.texi (objcopy): Add missing closing square
90 parenthesis to listing of objcopy's command line options.
91
92 2018-02-19 Matthias Klose <doko@debian.org>
93
94 * strings.c (long_options): Include-all-whitespace does not take
95 an extra agument.
96
97 2018-02-13 Alan Modra <amodra@gmail.com>
98
99 PR 22836
100 * testsuite/binutils-all/group-7.s,
101 * testsuite/binutils-all/group-7a.d,
102 * testsuite/binutils-all/group-7b.d,
103 * testsuite/binutils-all/group-7c.d: New tests.
104 * testsuite/binutils-all/objcopy.exp: Run them.
105
106 2018-02-08 Nick Clifton <nickc@redhat.com>
107
108 PR 22802
109 * dwarf.c (load_separate_debug_file): Return early if the user is
110 not interested in debug links.
111
112 2018-02-06 Nick Clifton <nickc@redhat.com>
113
114 PR 22793
115 * readelf.c (find_section): Replace assertion with test and return
116 of NULL.
117 (find_section_by_address): Add test of section header table
118 existance.
119 (find_section_by_type): Likewise.
120 (find_section_in_set): Likewise.
121
122 2018-02-05 Maciej W. Rozycki <macro@mips.com>
123
124 * testsuite/binutils-all/mips/mips-reginfo.d: New test.
125 * testsuite/binutils-all/mips/mips-reginfo-n32.d: New test.
126 * testsuite/binutils-all/mips/mips-reginfo.s: New test source.
127 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
128
129 2018-02-05 Maciej W. Rozycki <macro@mips.com>
130
131 * testsuite/config/default.exp (binutils_run): Document
132 `binutils_run_status'.
133 * testsuite/lib/utils-lib.exp (default_binutils_run): Likewise,
134 and set it.
135 (run_dump_test): Add `error', `error_output', `warning' and
136 `warning_output' options. Update documentation accordingly.
137
138 2018-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
139
140 * dwarf.c (dwarf_regnames_riscv): New register name table.
141 (init_dwarf_regnames_riscv): New function.
142 (init_dwarf_regnames): Add call to initialise RiscV register
143 names.
144 * dwarf.h (init_dwarf_regnames_riscv): Declare.
145 * objdump.c (dump_dwarf): Add call to initialise RiscV register
146 names.
147
148 2018-02-01 Alan Modra <amodra@gmail.com>
149
150 PR 22769
151 * objdump.c (load_specific_debug_section): Check for overflow
152 when adding one to section size for a string section terminator.
153
154 2018-01-30 Nick Clifton <nickc@redhat.com>
155
156 PR 22734
157 * doc/binutils.texi (nm): Update description to point out that
158 zero-initialized values can also be shown as type B, b, S or s
159 since they can be stored in the BSS section.
160
161 2018-01-30 Alan Modra <amodra@gmail.com>
162
163 * objcopy.c (merge_gnu_build_notes): Use (bfd_vma) -1 as
164 "artificially large" end address.
165
166 2018-01-28 Nick Clifton <nickc@redhat.com>
167
168 * README-how-to-make-a-release: Add note about checking gpg key
169 and the results of gnupload.
170
171 2018-01-27 Nick Clifton <nickc@redhat.com>
172
173 * README-how-to-make-a-release: Add details on how to actually
174 make the release.
175
176 2018-01-26 Nick Clifton <nickc@redhat.com>
177
178 * README-how-to-make-a-release: Add more details on updating
179 version numbers.
180
181 2018-01-22 Maciej W. Rozycki <macro@mips.com>
182
183 * doc/binutils.texi (objcopy): Fix a typo in `--rename-section'
184 option description.
185
186 2018-01-22 Maciej W. Rozycki <macro@mips.com>
187
188 * MAINTAINERS: Update my company e-mail address.
189
190 2018-01-22 Nick Clifton <nickc@redhat.com>
191
192 * po/sv.po: Updated Swedish translation.
193
194 2018-01-18 Nick Clifton <nickc@redhat.com>
195
196 * po/bg.po: Updated Bulgarian translation.
197
198 2018-01-16 Joel Brobecker <brobecker@adacore.com>
199
200 * README-how-to-make-a-release: Add reminder to update the
201 branch name in gdbadmin's crontab on sourceware.
202
203 2018-01-16 Joel Brobecker <brobecker@adacore.com>
204
205 * README-how-to-make-a-release: Remove trailing spaces.
206
207 2018-01-16 Nick Clifton <nickc@redhat.com>
208
209 * po/fr.po: Updated French translation.
210
211 2018-01-15 Nick Clifton <nickc@redhat.com>
212
213 * po/uk.po: Updated Ukranian translation.
214
215 2018-01-13 Nick Clifton <nickc@redhat.com>
216
217 * README-how-to-make-a-release: Update notes.
218 * po/binutils.pot: Regenerated.
219
220 2018-01-13 Nick Clifton <nickc@redhat.com>
221
222 * configure: Regenerate.
223
224 2018-01-13 Nick Clifton <nickc@redhat.com>
225
226 2.30 branch created.
227 * NEWS: Add marker for 2.30.
228
229 2018-01-12 Nick Clifton <nickc@redhat.com>
230
231 * README-how-to-make-a-release: Add notes on how to make the
232 branch and prelease snapshot.
233 * BRANCHES: Add binutils-2_29-branch.
234
235 2018-01-10 Nick Clifton <nickc@redhat.com>
236
237 * MAINTAINERS: Note that it is now the configure.ac file and not
238 the configure.in file that needs to be kept in sync with gcc.
239 Add a note about sending patches for libiberty to gcc.
240
241 2018-01-03 Nick Clifton <nickc@redhat.com>
242
243 * objcopy.c (merge_gnu_build_notes): Add cast to maximum address
244 constants.
245
246 2018-01-03 Nick Clifton <nickc@redhat.com>
247
248 * objcopy.c (objcopy_internal_note): New structure.
249 (gap_exists): New function.
250 (is_open_note): New function.
251 (is_func_note): New function.
252 (is_64bit): New function.
253 (merge_gnu_build_notes): Handle v3 notes. Do not merge
254 if there are relocations against the notes.
255 * readelf.c (get_note_type): Use short names for build attribute
256 notes.
257 (print_symbol_for_build_attribute): Rename to
258 get_symbol_for_build_attribute. Returns the found symbol rather
259 than printing it.
260 (print_gnu_build_attribute_description): Maintain address ranges
261 for function notes as well as global notes. Handle v3 notes.
262 (print_gnu_build_attribute_name): Use more space for printing the
263 name in wide mode.
264 * testsuite/binutils-all/note-2-32.s: Use .dc.l instead of .word.
265 Eliminate symbol references in order to remove the need for
266 relocations.
267 * testsuite/binutils-all/note-2-64.s: Likewise.
268 * testsuite/binutils-all/note-3-32.s: Add a size to the note_1
269 symbol.
270 * testsuite/binutils-all/note-3-64.s: Likewise.
271 * testsuite/binutils-all/mips/mips-note-2r-n32.d: Update expected
272 output.
273 * testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
274 * testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
275 * testsuite/binutils-all/note-2-32.d: Likewise.
276 * testsuite/binutils-all/note-2-64.d: Likewise.
277 * testsuite/binutils-all/note-3-32.d: Likewise.
278 * testsuite/binutils-all/note-3-64.d: Likewise.
279 * testsuite/binutils-all/note-4-64.s: New test. Checks v3 notes.
280 * testsuite/binutils-all/note-4-32.s: New test.
281 * testsuite/binutils-all/note-4-64.d: New test result file.
282 * testsuite/binutils-all/note-4-32.d: New test result file.
283
284 2018-01-03 Alan Modra <amodra@gmail.com>
285
286 Update year range in copyright notice of all files.
287
288 For older changes see ChangeLog-2017
289 \f
290 Copyright (C) 2018 Free Software Foundation, Inc.
291
292 Copying and distribution of this file, with or without modification,
293 are permitted in any medium without royalty provided the copyright
294 notice and this notice are preserved.
295
296 Local Variables:
297 mode: change-log
298 left-margin: 8
299 fill-column: 74
300 version-control: never
301 End:
This page took 0.042675 seconds and 4 git commands to generate.