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