Fail run_dump_test when an error is expected but not seen
[binutils-gdb.git] / binutils / ChangeLog
1 2021-02-20 Alan Modra <amodra@gmail.com>
2
3 * testsuite/lib/binutils-common.exp: Whitespace fixes throughout.
4 (run_dump_test): Fail if expecting errors from a file like we do
5 for error strings, if no error is seen.
6
7 2021-02-19 Alan Modra <amodra@gmail.com>
8
9 * testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too.
10
11 2021-02-19 Siddhesh Poyarekar <siddhesh@gotplt.org>
12
13 * ar.c (write_archive): Remove TARGET_STAT. Adjust call to
14 SMART_RENAME.
15 * arsup.c (ar_save): Likewise.
16 * objcopy (strip_main): Don't copy TMPFD. Don't set times on
17 temporary file and adjust call to SMART_RENAME.
18 (copy_main): Likewise.
19 * rename.c [!S_ISLNK]: Remove definitions.
20 (try_preserve_permissions): Remove function.
21 (smart_rename): Remove FD, PRESERVE_DATES arguments. Use
22 rename system call only if TO does not exist.
23 * bucomm.h (smart_rename): Adjust declaration.
24
25 2021-02-18 Nick Clifton <nickc@redhat.com>
26
27 * objcopy.c (merge_gnu_build_notes): Handle notes with a start
28 address that is higher than the end address.
29
30 2021-02-17 Alan Modra <amodra@gmail.com>
31
32 * dwarf.c: Include limits.h.
33 (CHAR_BIT): Provide backup define.
34 (read_leb128): Use CHAR_BIT to size "result" in bits. Correct
35 signed overflow checking.
36 * testsuite/binutils-all/pr26548.s,
37 * testsuite/binutils-all/pr26548.d,
38 * testsuite/binutils-all/pr26548e.d: New tests.
39 * testsuite/binutils-all/readelf.exp: Run them.
40 (readelf_test): Drop unused "xfails" parameter. Update all uses.
41
42 2021-02-16 Jan Beulich <jbeulich@suse.com>
43
44 * dwarf.c (process_debug_info): Initialize "dwo_id".
45
46 2021-02-15 Alan Modra <amodra@gmail.com>
47
48 * objdump.c (load_specific_debug_section): Don't call
49 bfd_cache_section_contents. Rearrange so that
50 bfd_get_full_section_contents is not called on path where
51 bfd_simple_get_relocated_section_contents is called.
52 Don't set section->user_data.
53 (free_debug_section): Always free section->start. Don't twiddle
54 section flags.
55 * readelf.c (load_specific_debug_section): Don't set user_data.
56 * dwarf.h (struct dwarf_section): Remove use_data field.
57 * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit.
58
59 2021-02-15 Alan Modra <amodra@gmail.com>
60
61 * testsuite/binutils-all/compress.exp: Remove nds32 xfails.
62 * testsuite/binutils-all/objdump.exp: Likewise.
63
64 2021-02-14 Alan Modra <amodra@gmail.com>
65
66 * objdump.c (slurp_symtab): Don't add an extra entry for NULL
67 to the symbol array.
68 (slurp_dynamic_symtab): Likewise.
69 (dump_bfd): Formatting. Copy terminating NULL from extra_syms.
70
71 2021-02-14 Alan Modra <amodra@gmail.com>
72
73 * Makefile.in: Regenerate.
74 * doc/Makefile.in: Regenerate.
75
76 2021-02-13 Mike Frysinger <vapier@gentoo.org>
77
78 * aclocal.m4: Regenerate.
79
80 2021-02-12 Nick Clifton <nickc@redhat.com>
81
82 * configure.ac (follow-debug-links): Add option to enable or
83 disable the following of debug links by default. Set the
84 default for the option to be 'follow'.
85 * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS.
86 (dwarf_select_sections_by_names): Add no-follow-links option.
87 (dwarf_select_sections_by_letter): Add 'N' option.
88 * objdump.c (usage): Add conditional text describing the
89 follow links option.
90 (slurp_symtab): Ensure that there is a NULL entry at the end
91 of the symbol table.
92 (slurp_dynamic_symtab): Likewise.
93 (dump_bfd): When extending the symbol table, ensure that there
94 is still a NULL entry at the end.
95 * readelf.c (usage): Add conditional text describing the
96 follow links option.
97 * doc/binutils.texi: Update documentation for objcopy and
98 readelf.
99 * doc/debug.options.texi: Update documentation of the
100 follow-links option.
101 * config.in: Regenerate.
102 * configure: Regenerate.
103 * testsuite/binutils-all/compress.exp: Add the -WN option to
104 objdump command lines that are not expecting to follow links.
105 * testsuite/binutils-all/readelf.exp: Add the
106 --debug-dump=no-follow-links option to tests that are not
107 expecting to follow debug links.
108 * NEWS: Mention the new behaviour.
109
110 2021-02-12 Alan Modra <amodra@gmail.com>
111
112 * testsuite/binutils-all/objcopy.exp: Report "unsupported" when
113 gas or ld fails to build a testcase rather than "unresolved".
114 Report "fail" when readelf returns an error status rather than
115 "unresolved".
116 * testsuite/binutils-all/ar.exp: Likewise.
117 * testsuite/binutils-all/compress.exp: Likewise.
118 * testsuite/binutils-all/readelf.exp: Likewise.
119
120 2021-02-12 Alan Modra <amodra@gmail.com>
121
122 * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and
123 "c" with "ccc" labels.
124
125 2021-02-12 Tom de Vries <tdevries@suse.de>
126
127 * dwarf.h (debug_info): Fix typo in comment.
128
129 2021-02-12 Tom de Vries <tdevries@suse.de>
130
131 * dwarf.c (display_debug_str_offsets): Handle multiple sets of
132 entries.
133
134 2021-02-12 Tom de Vries <tdevries@suse.de>
135
136 * dwarf.c (process_debug_info): Print DWO ID.
137
138 2021-02-11 Alan Modra <amodra@gmail.com>
139
140 PR 27290
141 PR 27293
142 PR 27295
143 * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting.
144 Use bfd_malloc_and_get_section.
145 (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity
146 check namesz. Return NULL if descsz is too small. Ensure
147 string table is terminated.
148 (elf32_avr_get_device_info): Formatting. Add note_size param.
149 Sanity check note.
150 (elf32_avr_dump_mem_usage): Adjust to suit.
151
152 2021-02-10 Tom de Vries <tdevries@suse.de>
153
154 PR binutils/27391
155 * dwarf.c (load_dwo_file): Handle case that name is absolute path.
156
157 2021-02-10 Tom de Vries <tdevries@suse.de>
158
159 PR binutils/27371
160 * dwarf.c (display_debug_ranges): Filter range lists according to
161 section.
162
163 2021-02-09 Tom de Vries <tdevries@suse.de>
164
165 PR binutils/27370
166 * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
167
168 2021-02-09 Tom de Vries <tdevries@suse.de>
169
170 PR binutils/27386
171 * dwarf.c (process_debug_info): Handling DW_UT_skeleton and
172 DW_UT_split_compile.
173
174 2021-02-09 Alan Modra <amodra@gmail.com>
175
176 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove
177 symbianelf.
178
179 2021-02-07 Alan Modra <amodra@gmail.com>
180
181 * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer
182 uninitialised on invalid input.
183
184 2021-02-06 Alan Modra <amodra@gmail.com>
185
186 PR 27349
187 * rename.c (smart_rename): Test for existence and type of output
188 file with lstat.
189
190 2021-02-05 Nick Clifton <nickc@redhat.com>
191
192 * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer.
193
194 2021-02-05 Eli Zaretskii <eliz@gnu.org>
195
196 PR 27252
197 * elfedit.c (check_file):
198 * bucomm.c (get_file_size): Fix typos in comments.
199
200 2021-02-05 Alan Modra <amodra@gmail.com>
201
202 PR 27345
203 * arsup.c (ar_save): Use stat rather than lstat.
204
205 2021-02-03 Alan Modra <amodra@gmail.com>
206
207 PR 27270
208 PR 27284
209 PR 26945
210 * ar.c: Don't include libbfd.h.
211 (write_archive): Replace xmalloc+strcpy with xstrdup. Use
212 bfd_stat rather than fstat on iostream. Move stat and fd tests
213 outside of _WIN32 ifdef. Delete skip_stat variable.
214 * arsup.c (temp_name, real_ofd): New static variables.
215 (ar_open): Use make_tempname and bfd_fdopenw.
216 (ar_save): Adjust to suit ar_open changes. Move stat output
217 of _WIN32 ifdef.
218 * objcopy.c: Don't include libbfd.h.
219 (copy_file): Use bfd_stat.
220
221 2021-02-02 H.J. Lu <hongjiu.lu@intel.com>
222
223 PR binutils/27281
224 * readelf.c (process_section_headers): Add 'R' and 'D' to
225 "Key to Flags:".
226 * testsuite/binutils-all/retain1a.d: Updated.
227
228 2021-01-30 Nick Clifton <nickc@redhat.com>
229
230 * README-how-to-make-a-release: Small updates after the 2.35.2
231 release.
232
233 2021-01-28 Eli Zaretskii <eliz@gnu.org>
234
235 PR 4356
236 * windres.c (quot): Use double quotes to protect strings on
237 Windows platforms.
238
239 2021-01-28 Eli Zaretskii <eliz@gnu.org>
240
241 PR 27252
242 * bucomm.c (get_file_size): Add code to handle /dev/null on
243 Windows systems.
244 * elfedit.c (check_file): Likewise.
245
246 2021-01-27 Nick Clifton <nickc@redhat.com>
247
248 * objcopy.c (copy_main): Remove conditional control of the calls
249 to free, simplifying the code and making it easier to detect
250 typos.
251
252 2021-01-26 Frederic Cambus <fred@statdns.com>
253
254 * objcopy.c (copy_main): Fix a double free happening when both
255 --localize-symbols and --globalize-symbols options are invoked
256 together.
257
258 2021-01-24 Nick Clifton <nickc@redhat.com>
259
260 * README-how-to-make-a-release: Minor updates after the 2.36 release.
261
262 2021-01-16 Alan Modra <amodra@gmail.com>
263
264 * readelf.c (uncompress_section_contents): Tidy inflateEnd result test.
265
266 2021-01-15 Alan Modra <amodra@gmail.com>
267
268 PR 26539
269 * readelf.c (uncompress_section_contents): Always call inflateEnd.
270
271 2021-01-14 Alexandre Oliva <oliva@gnu.org>
272
273 * MAINTAINERS: Update my email address.
274
275 2021-01-14 Nick Clifton <nickc@redhat.com>
276
277 * po/sv.po: Updated Swedish translation.
278
279 2021-01-13 Alan Modra <amodra@gmail.com>
280
281 * Makefile.in: Regenerate.
282 * doc/Makefile.in: Regenerate.
283
284 2021-01-13 Zebediah Figura <z.figura12@gmail.com>
285
286 PR 27037
287 * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry
288 and before exit.
289 (i386_x64_trampoline): Add SEH annotations.
290 (struct mac): Add how_seh field.
291 (make_delay_head): If how_set field is true add SEh instructions.
292
293 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
294
295 PR binutils/26792
296 * configure.ac: Use GNU_MAKE_JOBSERVER.
297 * aclocal.m4: Regenerated.
298 * configure: Likewise.
299
300 2021-01-12 Nick Clifton <nickc@redhat.com>
301
302 * po/fr.po: Updated French translation.
303
304 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
305
306 PR ld/27173
307 * configure: Regenerated.
308
309 2021-01-11 Nick Clifton <nickc@redhat.com>
310
311 * po/pt.po: Updated Portuguese translation.
312 * po/sr.po: Updated Serbian translation.
313 * po/uk.po: Updated Ukranian translation.
314
315 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
316
317 * configure: Regenerated.
318
319 2021-01-09 Nick Clifton <nickc@redhat.com>
320
321 * configure: Regenerate.
322 * po/binutils.pot: Regenerate.
323
324 2021-01-09 Nick Clifton <nickc@redhat.com>
325
326 * 2.36 release branch crated.
327 * README-how-to-make-a-release: Add note about updating Makefiles
328 and libtool files.
329 * BRANCHES: Add binutils-2.36-branch.
330
331 2021-01-09 Alan Modra <amodra@gmail.com>
332
333 * configure: Regenerate.
334
335 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
336
337 * configure: Regenerate.
338
339 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
340
341 PR 27109
342 * objcopy.c (copy_object): Handle section symbols for
343 non-relocatable inputs.
344 * testsuite/binutils-all/readelf.exp (readelf_test): Check
345 is_elf_unused_section_symbols.
346 * testsuite/binutils-all/readelf.s-64: Updated.
347 * testsuite/binutils-all/readelf.ss: Likewise.
348 * testsuite/binutils-all/readelf.ss-64: Likewise.
349 * testsuite/binutils-all/readelf.s-64-unused: New file.
350 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
351 * testsuite/binutils-all/readelf.ss-unused: Likewise.
352 * testsuite/lib/binutils-common.exp
353 (is_elf_unused_section_symbols): New proc.
354
355 2021-01-06 Reuben Thomas <rrt@sc3d.org>
356
357 * binutils/readelf.c: Correct grammar in comment.
358
359 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
360
361 * coffgrok.c (do_type): Correct spelling of auxiliary in errors.
362 * doc/binutils.texi: Correct grammar.
363 * readelf.c (process_version_sections): Correct spelling of auxiliary
364 in warning.
365 * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix.
366
367 2021-01-01 Alan Modra <amodra@gmail.com>
368
369 Update year range in copyright notice of all files.
370
371 For older changes see ChangeLog-2020
372 \f
373 Copyright (C) 2021 Free Software Foundation, Inc.
374
375 Copying and distribution of this file, with or without modification,
376 are permitted in any medium without royalty provided the copyright
377 notice and this notice are preserved.
378
379 Local Variables:
380 mode: change-log
381 left-margin: 8
382 fill-column: 74
383 version-control: never
384 End: