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