]>
Commit | Line | Data |
---|---|---|
6ca07350 AM |
1 | 2021-05-15 Alan Modra <amodra@gmail.com> |
2 | ||
3 | * dwarf.c (display_debug_aranges): Delete initial_length_size. | |
4 | Use end_ranges to constrain data reads to header length. Avoid | |
5 | pointer UB. | |
6 | ||
78480097 AM |
7 | 2021-05-15 Alan Modra <amodra@gmail.com> |
8 | ||
9 | * dwarf.c (display_loc_list): Avoid pointer UB. Correct check | |
10 | before reading uleb length. Warn on excess length. | |
11 | ||
b0d461ec AM |
12 | 2021-05-15 Alan Modra <amodra@gmail.com> |
13 | ||
14 | * dwarf.c (display_debug_macro): Print strings that might not | |
15 | be zero terminated with %*s. Don't bump curr if unterminated. | |
16 | ||
46d1214d AM |
17 | 2021-05-15 Alan Modra <amodra@gmail.com> |
18 | ||
19 | * dwarf.c (get_line_filename_and_dirname): Delete initial_length_size. | |
20 | Simplify length sanity check, and check for too small lengths. | |
21 | Constrain data reads to header length. Avoid pointer UB. | |
22 | ||
c03df922 AM |
23 | 2021-05-15 Alan Modra <amodra@gmail.com> |
24 | ||
25 | * dwarf.c (display_debug_macinfo): Print strings that might not | |
26 | be zero terminated with %*s. Don't bump curr if unterminated. | |
27 | ||
35b2c89e AM |
28 | 2021-05-15 Alan Modra <amodra@gmail.com> |
29 | ||
30 | * dwarf.c (display_debug_pubnames_worker): Delete initial_length_size. | |
31 | Simplify length check. Constrain reads to length given by header. | |
32 | ||
56051e28 AM |
33 | 2021-05-15 Alan Modra <amodra@gmail.com> |
34 | ||
35 | * dwarf.c (display_debug_lines_decoded): Don't use strnlen when | |
36 | we have already checked for NUL termination. | |
37 | ||
37195e23 AM |
38 | 2021-05-15 Alan Modra <amodra@gmail.com> |
39 | ||
40 | * dwarf.c (read_debug_line_header): Delete initial_length_size. | |
41 | Avoid pointer UB. Keep within length specified by header. | |
42 | Delete dead code. | |
43 | ||
edba4e4a AM |
44 | 2021-05-15 Alan Modra <amodra@gmail.com> |
45 | ||
46 | * dwarf.c (process_debug_info): Always do the first CU length | |
47 | scan for sanity checks. Remove initial_length_size var and | |
48 | instead calculate end_cu. Use end_cu to limit data reads. | |
49 | Delete now dead code checking length. | |
50 | ||
ebb17864 AM |
51 | 2021-05-15 Alan Modra <amodra@gmail.com> |
52 | ||
53 | * dwarf.c (SAFE_BYTE_GET_INTERNAL): Assert only when ENABLE_CHECKING. | |
54 | ||
fc5e0925 AM |
55 | 2021-05-15 Alan Modra <amodra@gmail.com> |
56 | ||
57 | * bucomm.h (_mul_overflow): Define. | |
58 | * dwarf.c (get_encoded_value): Avoid pointer UB. | |
59 | ||
b96a1bcb AM |
60 | 2021-05-13 Alan Modra <amodra@gmail.com> |
61 | ||
62 | PR 27861 | |
63 | * dwarf.c (display_debug_str_offsets): Sanity check dwarf5 | |
64 | header length. | |
65 | ||
d21f875d AM |
66 | 2021-05-13 Alan Modra <amodra@gmail.com> |
67 | ||
68 | PR 27860 | |
69 | * dwarf.c (display_debug_frames): Sanity check cie_off before | |
70 | attempting to read cie. | |
71 | ||
a7077ce7 AM |
72 | 2021-05-12 Alan Modra <amodra@gmail.com> |
73 | ||
74 | * dwarf.c (process_extended_line_op): Don't bump data pointer past | |
75 | end when strnlen doesn't find string terminator. | |
76 | (decode_location_expression): Remove dead code. | |
77 | (skip_attr_bytes): Remove const from end param. Ensure data | |
78 | pointer doesn't pass end. | |
79 | (get_type_signedness): Remove const from end param. | |
80 | (read_and_display_attr_value): Ensure data pointer doesn't pass end. | |
81 | (display_debug_lines_raw, display_debug_lines_decoded): Likewise. | |
82 | (display_debug_pubnames_worker): Likewise. | |
83 | (display_debug_pubnames_worker): Use SAFE_BYTE_GET_AND INC rather | |
84 | than blindly incrementing data pointer. | |
85 | (display_debug_addr, display_debug_str_offsets): Likewise. Don't | |
86 | compare pointers, compare lengths. | |
87 | ||
6d1ad6f7 AM |
88 | 2021-05-12 Alan Modra <amodra@gmail.com> |
89 | ||
90 | * dwarf.c (SAFE_BYTE_GET_INTERNAL): Define. | |
91 | (SAFE_BYTE_GET, SAFE_BYTE_GET_AND_INC): Define using the above. | |
92 | (SAFE_SIGNED_BYTE_GET, SAFE_SIGNED_BYTE_GET_AND_INC): Likewise. | |
93 | (display_discr_list): Use SAFE_BYTE_GET_AND_INC rather than | |
94 | SAFE_BYTE_GET followed by increment. | |
95 | (process_debug_info): Likewise, and test bytes remaining before | |
96 | incrementing section_begin rather than using pointer comparison. | |
97 | (display_debug_names): Pass lvalue as SAFE_BYTE_GET PTR. | |
98 | (process_cu_tu_index): Likewise for SAFE_BYTE_GET_AND_INC. | |
99 | ||
af2ddf69 AM |
100 | 2021-05-12 Alan Modra <amodra@gmail.com> |
101 | ||
102 | * dwarf.c (dwarf_vmatoa64, SAFE_BYTE_GET64, add64): Delete. | |
103 | (skip_attr_bytes): Replace use of SAFE_BYTE_GET64 with | |
104 | SAFE_BYTE_GET_AND_INC. | |
105 | (read_and_display_attr_value): Likewise. Print using dwarf_vmatoa. | |
106 | (process_debug_info, process_cu_tu_index): Likewise. | |
107 | * elfcomm.c (byte_put, byte_put_little_endian, byte_put_big_endian), | |
108 | (byte_get, byte_get_little_endian, byte_get_big_endian), | |
109 | (byte_get_signed): Make size param unsigned. Remove code dealing | |
110 | with 4-byte elf_vma. | |
111 | (byte_get_64): Delete. | |
112 | * elfcomm.h (byte_put, byte_put_little_endian, byte_put_big_endian), | |
113 | (byte_get, byte_get_little_endian, byte_get_big_endian), | |
114 | (byte_get_signed): Update prototypes. | |
115 | (byte_get_64): Delete. | |
116 | ||
0d872fca AM |
117 | 2021-05-12 Alan Modra <amodra@gmail.com> |
118 | ||
119 | PR 27836 | |
120 | * dwarf.c (display_debug_frames): Don't compare pointers derived | |
121 | from user input. Test offset against bounds instead. | |
122 | ||
55b26492 AM |
123 | 2021-05-12 Alan Modra <amodra@gmail.com> |
124 | ||
125 | PR 27853 | |
126 | * dwarf.c (display_formatted_table): Test for data >= end rather | |
127 | than data == end. | |
128 | (process_extended_line_op): Likewise. | |
129 | (display_debug_lines_raw): Likewise. | |
130 | (display_debug_lines_decoded): Likewise. | |
131 | ||
5ab39075 AM |
132 | 2021-05-12 Alan Modra <amodra@gmail.com> |
133 | ||
134 | PR 27849 | |
135 | * dwarf.c (fetch_indexed_string): Correct length sanity checks. | |
136 | Sanity check section size for version and padding too. Correct | |
137 | index sanity check. Handle multiple tables in .debug_str_offsets. | |
138 | ||
d30182b5 HPN |
139 | 2021-05-11 Hans-Peter Nilsson <hp@axis.com> |
140 | ||
141 | * dwarf.c (process_abbrev_set): Properly parenthesize before | |
142 | casting to unsigned long. | |
143 | ||
f2f9554b AM |
144 | 2021-05-11 Alan Modra <amodra@gmail.com> |
145 | ||
146 | PR 27845 | |
147 | * dwarf.c (process_abbrev_set): Replace start and end parameters | |
148 | with section, abbrev_base, abbrev_size, abbrev_offset. Update | |
149 | all callers. Sanity check parameters correctly and emit warnings | |
150 | here rather than.. | |
151 | (process_debug_info): ..here. | |
152 | ||
749c7002 TW |
153 | 2021-05-10 Thomas Wolff <towo@towo.net> |
154 | ||
155 | PR 4356 | |
156 | PR 26865 | |
157 | PR 27594 | |
158 | * windres.c (quot): Revert previous delta. Do not use double | |
159 | quotes when spaces are detected in options. | |
160 | * doc/binutils.texi (windres): Remove suggestion that the | |
161 | --preprocessor option can take arguments. | |
162 | ||
2d4b4986 AM |
163 | 2021-05-10 Alan Modra <amodra@gmail.com> |
164 | ||
165 | * dwarf.c (SAFE_BYTE_GET): Check bounds by subtracting amount from | |
166 | END rather than adding amount to PTR. | |
167 | (SAFE_SIGNED_BYTE_GET, SAFE_BYTE_GET64): Likewise. | |
168 | ||
b05a0fc7 AM |
169 | 2021-05-09 Alan Modra <amodra@gmail.com> |
170 | ||
171 | * objcopy.c (eq_string): Delete. | |
172 | (create_symbol_htab): Use htab_eq_string. | |
173 | ||
354c317e MF |
174 | 2021-05-08 Mike Frysinger <vapier@gentoo.org> |
175 | ||
176 | * README-how-to-make-a-release: Update html & pdf entries. | |
177 | ||
cf758b39 MF |
178 | 2021-05-08 Mike Frysinger <vapier@gentoo.org> |
179 | ||
180 | * doc/Makefile.am (html-local, binutils/index.html): New targets. | |
181 | * doc/Makefile.in: Regenerate. | |
182 | ||
2faf902d MF |
183 | 2021-05-08 Mike Frysinger <vapier@gentoo.org> |
184 | ||
185 | * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split. | |
186 | * doc/Makefile.in: Regenerate. | |
187 | ||
3ecc00ec NC |
188 | 2021-05-07 Nick Clifton <nickc@redhat.com> |
189 | ||
190 | * readelf.c (no_processor_specific_unwind): New function. | |
191 | (process_unwind): Use no_processor_specific_unwind for X86 | |
192 | targets. | |
193 | ||
4896932e MF |
194 | 2021-05-07 Michael Forney <mforney@mforney.org> |
195 | ||
196 | * dwarf.c: Don't omit second operand of '?' operator. | |
197 | ||
bfbfa6e7 NC |
198 | 2021-04-30 Nick Clifton <nickc@redhat.com> |
199 | ||
200 | PR 27796 | |
201 | * dwarf.c (load_debug_sup_file): Allocate memory for filename in | |
202 | .debug_sup section. | |
203 | ||
5edb8e3f NC |
204 | 2021-04-29 Nick Clifton <nickc@redhat.com> |
205 | ||
206 | PR 27594 | |
207 | * doc/binutils.texi (windres): Correct the description of the | |
208 | default value of the --preprocessor argument. | |
209 | ||
3d64c987 NC |
210 | 2021-04-27 Nick Clifton <nickc@redhat.com> |
211 | ||
212 | PR 27779 | |
213 | * dwarf.c (parse_gnu_debuglink): Reject empty names. | |
214 | (parse_gnu_debugaltlink): Likewise. | |
215 | ||
b11b2969 CC |
216 | 2021-04-22 Clément Chigot <clement.chigot@atos.net> |
217 | ||
218 | * od-xcoff.c (dump_xcoff32_symbols): Adapt to new | |
219 | aux structures. | |
220 | ||
047c3dbf NL |
221 | 2021-04-21 Nick Lott <nick.lott@gmail.com> |
222 | ||
223 | PR 27672 | |
224 | * readelf.c (sym_base): New variable. | |
225 | (enum print_mode): Add more modes. | |
226 | (print_vma): Add suport for new modes. | |
227 | (options): Add sym-base. | |
228 | (usage): Add sym-base. | |
229 | (parse_args): Add support for --sym-base. | |
230 | (print_dynamic_symbol_size): New function. | |
231 | (print_dynamic_symbol): Use new function. | |
232 | * doc/binutils.texi: Document the new feature. | |
233 | * NEWS: Mention the new feature. | |
234 | ||
23356397 NC |
235 | 2021-04-21 Nick Clifton <nickc@redhat.com> |
236 | ||
237 | * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d: | |
238 | Adjust expected output to allow for named section symbols. | |
239 | * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d: | |
240 | Likewise. | |
241 | * testsuite/binutils-all/readelf.s-64: Likewise. | |
242 | * testsuite/binutils-all/readelf.ss-64-unused: Likewise. | |
243 | * testsuite/binutils-all/readelf.ss-tmips: Likewise. | |
244 | * testsuite/binutils-all/readelf.ss-unused: Likewise. | |
245 | ||
246 | 2021-04-21 Luo Longjun <luolongjun@huawei.com> | |
247 | ||
248 | * readelf.c (print_dynamic_symbol): Print the section name for | |
249 | section symbols without a name of their own. | |
250 | ||
aee4e85e AK |
251 | 2021-04-20 Andreas Krebbel <krebbel@linux.ibm.com> |
252 | ||
253 | * MAINTAINERS: Remove Martin Schwidefsky as s390 maintainer and | |
254 | add him to Past Maintainers. | |
255 | Update my email address. | |
256 | ||
229597a1 NC |
257 | 2021-04-19 Nick Clifton <nickc@redhat.com> |
258 | ||
259 | PR 21702 | |
260 | * arsup.c (ar_addmod): Enable plugin support, if available. | |
261 | ||
4dee4f3e NC |
262 | 2021-04-19 Nick Clifton <nickc@redhat.com> |
263 | ||
264 | * rename.c: (get_stat_atime_ns): Add prototype. | |
265 | (get_stat_mtime_ns): Add prototype. | |
266 | ||
ad7c4616 AM |
267 | 2021-04-16 Alan Modra <amodra@gmail.com> |
268 | ||
269 | PR 27725 | |
270 | * rename.c (get_stat_atime, get_stat_mtime): Make static. | |
271 | (get_stat_atime_ns, get_stat_mtime_ns): Likewise. | |
272 | ||
4c79248a PS |
273 | 2021-04-15 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi> |
274 | ||
275 | PR 27725 | |
276 | * rename.c (get_stat_atime_ns): Add ATTRIBUTE_UNUSED. | |
277 | (get_stat_mtime_ns): Likewise. | |
278 | ||
985e0264 AM |
279 | 2021-04-15 Alan Modra <amodra@gmail.com> |
280 | ||
281 | PR 27725 | |
282 | * configure.ac: Check for sys/time.h and utimensat. Use standard | |
283 | checks for mkstemp and mkdtemp. Whitespace. Check for nanosecond | |
284 | members of struct stat. | |
285 | * rename.c: Prefer sys/time.h for utimes over utime.h for utime. | |
286 | (STAT_TIMESPEC, STAT_TIMESPEC_NS): Define | |
287 | (get_stat_atime_ns, get_stat_mtime_ns): New inline functions. | |
288 | (get_stat_atime, get_stat_mtime): Likewise. | |
289 | (set_times): Choose first available of utimensat, utimes, utime. | |
290 | Use above inline functions to set timespec and timeval values. | |
291 | * configure: Regenerate. | |
292 | * config.in: Regenerate. | |
293 | * testsuite/binutils-all/objcopy.exp (objcopy_test): Add test of | |
294 | file timestamp when --preserve-dates is used. | |
295 | ||
d0ecdcdd AM |
296 | 2021-04-15 Alan Modra <amodra@gmail.com> |
297 | ||
298 | PR 27456 | |
299 | * rename.c (smart_rename): When TO and FROM are equal, just set | |
300 | file timestamp. | |
301 | * objcopy.c (strip_main, copy_main): Always call smart_rename. | |
302 | ||
9917b559 L |
303 | 2021-04-14 H.J. Lu <hongjiu.lu@intel.com> |
304 | ||
305 | PR binutils/27708 | |
306 | * testsuite/binutils-all/x86-64/pr27708.dump: New file. | |
307 | * testsuite/binutils-all/x86-64/pr27708.exe.bz2: Likewise. | |
308 | * testsuite/binutils-all/x86-64/x86-64.exp: Run binutils/27708 | |
309 | test. | |
310 | ||
6be872a4 MH |
311 | 2021-04-14 Mark Harmstone <mark@harmstone.com> |
312 | ||
313 | PR 27686 | |
314 | * resbin.c (bin_to_res_version): Ignore any trailing bytes at the | |
315 | end of the structure. | |
316 | ||
5f47741b FC |
317 | 2021-04-14 Frederic Cambus <fred@statdns.com> |
318 | ||
319 | * readelf.c (get_netbsd_elfcore_note_type): Remove unneeded #ifdef | |
320 | checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS. | |
321 | ||
13acb58d AM |
322 | 2021-04-14 Alan Modra <amodra@gmail.com> |
323 | ||
324 | PR 27716 | |
325 | * objdump.c (show_line): Don't limit paths to PATH_MAX. | |
326 | * readelf.c (struct filedata): Change program_interpreter from | |
327 | a char array to a char pointer. | |
328 | (process_program_headers): Sanity check PT_INTERP p_filesz. | |
329 | Malloc program_interpreter using p_filesz and read directly from | |
330 | file. | |
331 | (process_dynamic_section): Check program_interpreter is non-NULL. | |
332 | (free_filedata): New function, split out from.. | |
333 | (process_object): ..here. | |
334 | (close_debug_file): Call free_filedata. | |
335 | * sysdep.h: Don't include sys/param.h. | |
336 | (PATH_MAX): Don't define. | |
337 | * configure.ac: Don't check for sys/param.h. | |
338 | * configure: Regenerate. | |
339 | ||
0fa29e2d FC |
340 | 2021-04-13 Frederic Cambus <fred@statdns.com> |
341 | ||
342 | * readelf.c (process_netbsd_elf_note): Remove now unneeded #ifdef | |
343 | check for NT_NETBSD_PAX. | |
344 | ||
43e05cd4 AM |
345 | 2021-04-12 Alan Modra <amodra@gmail.com> |
346 | ||
347 | * configure.ac (--enable-checking): Add support. | |
348 | * config.in: Regenerate. | |
349 | * configure: Regenerate. | |
350 | ||
c3f72de4 AM |
351 | 2021-04-09 Alan Modra <amodra@gmail.com> |
352 | ||
353 | * objdump.c (struct objdump_disasm_info): Delete dynrelbuf and | |
354 | dynrelcount. | |
355 | (find_symbol_for_address): Adjust for dynrelbuf and dynrelcount move. | |
356 | (disassemble_section, disassemble_data): Likewise. | |
357 | ||
a2e66773 AM |
358 | 2021-04-06 Alan Modra <amodra@gmail.com> |
359 | ||
360 | * objdump.c (objdump_symbol_at_address): Return asymbol*. | |
361 | ||
4db29512 AM |
362 | 2021-04-06 Alan Modra <amodra@gmail.com> |
363 | ||
364 | * NEWS: Mention C99 requirement. | |
365 | * README: Likewise. Modernise examples and "Reporting bugs". | |
366 | ||
87b9f255 AM |
367 | 2021-04-05 Alan Modra <amodra@gmail.com> |
368 | ||
369 | * configure.ac: Assume long long is available. Don't test for | |
370 | strings.h, stdlib.h, limits.h, locale.h, or wchar.h. Check | |
371 | inttypes.h, stdint.h, sys/stat.h and sys/types.h. Don't check for | |
372 | strcoll, setlocale, setmode or location of time_t. Don't check | |
373 | for fprintf, getenv, snprintf, strnlen, strstr or vsnprintf decls. | |
374 | (AC_ISC_POSIX, AXC_HEADER_STRING, AC_FUNC_ALLOCA): Don't invoke. | |
375 | * sysdep.h: Don't include alloca-conf.h, include config.h instead. | |
376 | Test HAVE_SYS_TYPES_H and reorder includes. Include limits.h, | |
377 | locale.h, string.h and stdlib.h unconditionally. Remove various | |
378 | fallback declarations. Assume long long is available. | |
379 | * addr2line.c: Don't test HAVE_SETLOCALE. | |
380 | * ar.c: Likewise. | |
381 | * coffdump.c: Likewise. | |
382 | * dlltool.c: Likewise. | |
383 | * dllwrap.c: Likewise. | |
384 | * elfedit.c: Likewise. | |
385 | * nm.c: Likewise. | |
386 | * objcopy.c: Likewise. | |
387 | * objdump.c: Likewise. | |
388 | * readelf.c: Likewise. | |
389 | * size.c: Likewise. | |
390 | * srconv.c: Likewise. | |
391 | * strings.c: Likewise. | |
392 | * sysdump.c: Likewise. | |
393 | * windmc.c: Likewise. | |
394 | * windres.c: Likewise. | |
395 | * bucomm.c: Don't test HAVE_TIME_T_IN_TIME_H or HAVE_TIME_T_IN_TYPES_H. | |
396 | * dwarf.c: Include limits.h unconditionally. Assume long long | |
397 | is available. | |
398 | * nm.c: Don't test HAVE_STRCOLL. | |
399 | * readelf.c: Don't test HAVE_WCHAR_H. | |
400 | * strings.c: Assume long long is available. | |
401 | * syslex.l: Include string.h unconditionally. | |
402 | * aclocal.m4: Regenerate. | |
403 | * config.in: Regenerate. | |
404 | * configure: Regenerate. | |
405 | * Makefile.in: Regenerate. | |
406 | * doc/Makefile.in: Regenerate. | |
407 | ||
e9b095a5 ML |
408 | 2021-04-01 Martin Liska <mliska@suse.cz> |
409 | ||
410 | * elfcomm.h (strneq): Remove strneq and use startswith. | |
411 | * readelf.c (ia64_process_unwind): Likewise. | |
412 | (process_note): Likewise. | |
413 | ||
3f3328b8 ML |
414 | 2021-04-01 Martin Liska <mliska@suse.cz> |
415 | ||
416 | * dllwrap.c: Use startswith function. | |
417 | * objcopy.c (is_dwo_section): Likewise. | |
418 | (handle_remove_section_option): Likewise. | |
419 | (copy_main): Likewise. | |
420 | * objdump.c (is_significant_symbol_name): Likewise. | |
421 | ||
24d127aa ML |
422 | 2021-04-01 Martin Liska <mliska@suse.cz> |
423 | ||
424 | * dwarf.c (display_debug_lines_raw): Replace const_strneq with | |
425 | startswith. | |
426 | (display_debug_lines_decoded): Likewise. | |
427 | (display_debug_links): Likewise. | |
428 | * elfcomm.c (setup_archive): Likewise. | |
429 | * elfcomm.h (const_strneq): Likewise. | |
430 | * readelf.c (process_section_headers): Likewise. | |
431 | (slurp_ia64_unwind_table): Likewise. | |
432 | (slurp_hppa_unwind_table): Likewise. | |
433 | (decode_arm_unwind): Likewise. | |
434 | (display_debug_section): Likewise. | |
435 | (process_note): Likewise. | |
436 | ||
015dc7e1 AM |
437 | 2021-03-31 Alan Modra <amodra@gmail.com> |
438 | ||
439 | * sysdep.h (POISON_BFD_BOOLEAN): Define. | |
440 | * addr2line.c, * ar.c, * arsup.c, * bfdtest2.c, * binemul.c, | |
441 | * binemul.h, * bucomm.c, * bucomm.h, * budbg.h, * coffgrok.c, | |
442 | * debug.c, * debug.h, * dlltool.c, * dwarf.c, * dwarf.h, | |
443 | * elfedit.c, * emul_aix.c, * mclex.c, * nm.c, * objcopy.c, | |
444 | * objdump.c, * od-macho.c, * prdbg.c, * rdcoff.c, * rddbg.c, | |
445 | * readelf.c, * rename.c, * stabs.c, * strings.c, * windint.h, | |
446 | * windmc.c, * windmc.h, * windres.c, * winduni.c, | |
447 | * wrstabs.c: Replace bfd_boolean with bool, FALSE with false, | |
448 | and TRUE with true throughout. | |
449 | ||
3dfb1b6d AM |
450 | 2021-03-31 Alan Modra <amodra@gmail.com> |
451 | ||
452 | * coffdump.c: Include stdint.h in place of bfd_stdint.h. | |
453 | * dwarf.c: Likewise. | |
454 | ||
57ae980e AM |
455 | 2021-03-31 Alan Modra <amodra@gmail.com> |
456 | ||
457 | * prdbg.c (pr_function_type): Replace LITSTTCPY with strcpy. | |
458 | ||
63b4cc53 AM |
459 | 2021-03-29 Alan Modra <amodra@gmail.com> |
460 | ||
461 | * dlltool.c (main): Don't use "boolean_condition ? TRUE : FALSE". | |
462 | * dwarf.c (read_and_display_attr_value): Likewise. | |
463 | (display_debug_str_offsets): Likewise. | |
464 | * objdump.c (dump_bfd): Likewise. | |
465 | * readelf.c (dump_section_as_strings): Likewise. | |
466 | (dump_section_as_bytes): Likewise. | |
467 | ||
1be305ff AM |
468 | 2021-03-29 Alan Modra <amodra@gmail.com> |
469 | ||
470 | * objdump.c (process_links): Use type int. | |
471 | * readelf.c (request_dump): Don't increment do_dump, set it. | |
472 | * windint.h (target_is_bigendian): Use type bfd_boolean. | |
473 | * windmc.c (target_is_bigendian): Likewise. | |
474 | * windres.c (target_is_bigendian): Likewise. | |
475 | ||
08dedd66 ML |
476 | 2021-03-22 Martin Liska <mliska@suse.cz> |
477 | ||
1be305ff AM |
478 | * dlltool.c (scan_drectve_symbols): Replace usage of CONST_STRNEQ |
479 | with startswith. | |
08dedd66 ML |
480 | * emul_aix.c (ar_emul_aix_parse_arg): Likewise. |
481 | * objcopy.c (is_mergeable_note_section): Likewise. | |
482 | * objdump.c (dump_dwarf_section): Likewise. | |
483 | * prdbg.c (pr_method_type): Likewise. | |
484 | (pr_class_baseclass): Likewise. | |
485 | (tg_class_baseclass): Likewise. | |
486 | * readelf.c (process_lto_symbol_tables): Likewise. | |
487 | * stabs.c (ULLHIGH): Likewise. | |
488 | (parse_stab_argtypes): Likewise. | |
489 | (stab_demangle_function_name): Likewise. | |
490 | ||
7b9f9859 L |
491 | 2021-03-19 H.J. Lu <hongjiu.lu@intel.com> |
492 | ||
493 | * readelf.c (get_machine_name): Add EM_INTELGT. | |
494 | ||
835f2fae NC |
495 | 2021-03-18 Nick Clifton <nickc@redhat.com> |
496 | ||
497 | PR 27478 | |
498 | * readelf.c (dump_section_as_strings): Mention separate filename. | |
499 | (dump_section_as_bytes): Likewise. | |
500 | (dump_section_as_ctf): Likewise. | |
501 | (initialise_dumkps_byname): Only issue a warning for missing | |
502 | sections if processing the main file. | |
503 | (process_section_contents): Only issue a warning for unsumped | |
504 | section numbers in the main file. | |
505 | (initialise_dump_sects): New function. Contains code extracted | |
506 | from ... | |
507 | (process_object): ... here. Also call initialise_dump_sects for | |
508 | separate files. | |
509 | ||
44266f36 NC |
510 | 2021-03-16 Nick Clifton <nickc@redhat.com> |
511 | ||
512 | PR 27534 | |
513 | * readelf.c (display_debug_section): Also retain .debug_addr | |
514 | sections. | |
515 | ||
d6bfbc39 NC |
516 | 2021-03-16 Nick Clifton <nickc@redhat.com> |
517 | ||
518 | PR 27533 | |
519 | * readelf.c (process_section_contents): Only dump debug | |
520 | information for separate files unless process_links is enabled. | |
521 | (process_object): Always call process_section_contents for | |
522 | separate info files. | |
523 | ||
1996d0f1 NC |
524 | 2021-03-15 Nick Clifton <nickc@redhat.com> |
525 | ||
526 | PR 27487 | |
527 | * nm.c (FORMAT_JUST_SYMBOLS): Define. | |
528 | (struct optput_fns): Add entry for FORMAT_JUST_SYMBOLS. | |
529 | (long_options): Add just-symbols. | |
530 | (set_output_format): Add support for just-symbols. | |
531 | (get_print_format): Likewise. | |
532 | (do_not_print_object_filename): New function. | |
533 | (do_not_print_archive_filename): New function. | |
534 | (do_not_print_archive_member): New function. | |
535 | (do_not_print_symbol_filename): New function. | |
536 | (just_print_symbol_name): New function. | |
537 | (main): Handle --just-symbols. | |
538 | * NEWS: Mention the new feature. | |
539 | * doc/binutils.texi: Document the new feature. | |
540 | ||
2c1bef53 CC |
541 | 2021-03-12 Clément Chigot <clement.chigot@atos.net> |
542 | ||
543 | * od-xcoff.c: Replace RTB by TRL entry. | |
544 | ||
db6092f3 AB |
545 | 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com> |
546 | Andrew Burgess <andrew.burgess@embecosm.com> | |
547 | ||
548 | * readelf.c (get_note_type): Handle NT_RISCV_CSR. | |
549 | ||
b63a5e38 AB |
550 | 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com> |
551 | Andrew Burgess <andrew.burgess@embecosm.com> | |
552 | ||
553 | * readelf.c (get_note_type): Handle NT_GDB_TDESC. | |
554 | ||
d296b736 NC |
555 | 2021-03-05 Nick Clifton <nickc@redhat.com> |
556 | ||
557 | PR 27387 | |
558 | * dwarf.c (display_debug_macro): Handle the displaying of | |
559 | DW_MACRO_define_strp and DW_MACRO_undef_strp in v4 | |
560 | .debug_macro.dwo sections. | |
561 | ||
ca0e11aa NC |
562 | 2021-03-04 Nick Clifton <nickc@redhat.com> |
563 | ||
564 | PR 27478 | |
565 | * objdump.c (process_links): New variable. | |
566 | (usage): Add --process-links. | |
567 | (long_options): Likewise. | |
568 | (dump_bfd): Stop processing once the bfd has been loaded unless | |
569 | this is the main file or process_links has been enabled. | |
570 | (main): Handle the process-links option. | |
571 | * readelf.c (process_links): New variable. | |
572 | (struct filedata): Add is_separate field. | |
573 | (options): Add --process-links. | |
574 | (usage): Likewise. | |
575 | (parse_args): Likewise. | |
576 | (process_file_header): Include the filename when dumping | |
577 | information for separate debuginfo files. | |
578 | (process_program_headers): Likewise. | |
579 | (process_section_headers): Likewise. | |
580 | (process_section_groups): Likewise. | |
581 | (process_relocs): Likewise. | |
582 | (process_dynamic_section): Likewise. | |
583 | (process_version_sections): Likewise. | |
584 | (display_lto_symtab): Likewise. | |
585 | (process_symbol_table): Likewise. | |
586 | (process_syminfo): Likewise. | |
587 | (initialise_dumps_by_name): Likewise. | |
588 | (process_section_contents): Likewise. | |
589 | (process_notes_at): Likewise. | |
590 | (process_notes): Likewise. | |
591 | (open_file): Add is_separate parameter. Use to initialise the | |
592 | is_separate field in the filedata structure. | |
593 | (open_deug): Update call to open_file. | |
594 | (process_object): Add processing of the contents of separate | |
595 | debuginfo files, gated by the process_links variable. | |
596 | (process_archive): Update call to open_file. | |
597 | (process_file): Initialise the is_separate field in the filedata | |
598 | structure. | |
599 | * dwarf.c (load_separate_debug_info_file): Only report the | |
600 | loading of a separate file if debug links are being dumped. | |
601 | * objcopy.c (keep_section_symbols): New variable. | |
602 | (enum command_line_switch): Add OPTION_KEEP_SYMBOLS. | |
603 | (strip_options): Add keep-section-symbols. | |
604 | (copy_options): Likewise. | |
605 | (copy_usage): Likewise. | |
606 | (strip_usage): Likewise. | |
607 | (copy_object): Keep section symbols if requested by command line | |
608 | option. | |
609 | (strip_main): Handle --keep-section-symbols. | |
610 | (copy_main): Likewise. | |
611 | * doc/binutils.texi: Document the new options. | |
612 | * NEWS: Mention the new features. | |
613 | * testsuite/binutils-all/compress.exp (test_gnu_debuglink): | |
614 | Update options passed to objdump. Use diff rather than cmp to | |
615 | compare the dumped data. | |
616 | * testsuite/binutils-all/objdump.WK2: Update regexp. | |
617 | * testsuite/binutils-all/objdump.WK3: Update regexp. | |
618 | * testsuite/binutils-all/objdump.exp: Use --process-links | |
619 | instead of --dwarf=follow-links. | |
620 | * testsuite/binutils-all/readelf.exp (readelf_test): Include | |
621 | readelf's output in the log when the test fails. | |
622 | Add the -P option to the -wKis test. | |
623 | * testsuite/binutils-all/readelf.wKis: Update expected output. | |
624 | ||
fd5c076a AM |
625 | 2021-03-03 Alan Modra <amodra@gmail.com> |
626 | ||
627 | PR 27493 | |
628 | * objcopy.c (filter_symbols): Apply --weaken to undefined symbols. | |
629 | * NEWS: Mention feature. | |
630 | ||
ecd65684 L |
631 | 2021-03-01 H.J. Lu <hongjiu.lu@intel.com> |
632 | ||
633 | PR binutils/27486 | |
634 | * dwarf.c (load_separate_debug_info): Issue warning only if | |
635 | do_debug_links is set. | |
636 | * testsuite/binutils-all/compress.exp: Run objdump and readelf | |
637 | with missing debug file. | |
638 | ||
6a1224ec AM |
639 | 2021-03-01 Alan Modra <amodra@gmail.com> |
640 | ||
641 | PR 27128 | |
642 | * doc/binutils.texi: Add nm --with-symbol-versions and | |
643 | --without-symbol-versions documentation. | |
644 | * nm.c (with_symbol_versions): New variable. | |
645 | (enum long_option_values): Delete OPTION_WITH_SYMBOL_VERSIONS. | |
646 | (long_options): Make --with-symbol-versions entry twiddle the flag. | |
647 | Add --without-symbol-versions. | |
648 | (print_symname): Strip version when !with_symbol_versions. Add | |
649 | dynamic version info under control of with_symbol_versions. | |
650 | (main): Remove OPTION_WITH_SYMBOL_VERSIONS case. | |
651 | ||
7fe1b138 FS |
652 | 2021-02-26 Fangrui Song <maskray@google.com> |
653 | ||
654 | PR 27408 | |
655 | * readelf.c (quiet): New option flag. | |
656 | (enum long_option_values): New enum to hold long option value. | |
657 | (long_options): Add --quiet. | |
658 | (usage): Mention --quiet. | |
659 | (display_rel_file): If quiet is enabled, suppress "no symbols". | |
660 | (main): Handle the new option. | |
661 | * NEWS: Mention --quiet. | |
662 | * docs/binutils.texi: Document --quiet. | |
663 | ||
0e12f6c8 TV |
664 | 2021-02-26 Tom de Vries <tdevries@suse.de> |
665 | ||
666 | * dwarf.c (display_debug_addr): Handle dwarf-5 .debug_addr bits. | |
667 | ||
32e4f96c TV |
668 | 2021-02-26 Tom de Vries <tdevries@suse.de> |
669 | ||
670 | PR 27390 | |
671 | * dwarf.c: (skip_attr_bytes): Add support for DW_FORM_str* and | |
672 | DW_FORM_addrx*. | |
673 | (read_and_display_attr_value): Likewise. | |
674 | ||
e38332c2 NC |
675 | 2021-02-25 Nick Clifton <nickc@redhat.com> |
676 | ||
677 | * dwarf.c (get_type_abbrev_from_form): Accept but ignore sup | |
678 | forms. | |
679 | (read_and_display_attr_value): Handle sup forms. | |
680 | (display_debug_sup): New function. Displays the contents of a | |
681 | .debug_sup section. | |
682 | (load_debug_sup_file): New function. Loads the contents of a file | |
683 | referenced by a .debug_sup section. | |
684 | (check_for_and_load_links): Call load_debug_sup_file. | |
685 | (debug_displays): Add entry for .debug_sup. | |
686 | * dwarf.h (enum dwarf_section_display_enum): Add debug_sup. | |
687 | * readelf.c (process_section_headers): Add support for debug_sup. | |
688 | * doc/debug.options.texi: Note that the =links option will display | |
689 | the contents of .debug_sup sections. | |
690 | * NEWS: Mention the new support. | |
691 | ||
40b02646 AM |
692 | 2021-02-25 Alan Modra <amodra@gmail.com> |
693 | ||
694 | PR 27456 | |
695 | * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED. | |
696 | ||
9d3fcfe0 NC |
697 | 2021-02-24 Nick Clifton <nickc@redhat.com> |
698 | ||
699 | PR 27285 | |
700 | * od-elf32_avr.c (elf32_avr_get_memory_usage): Check for overflows | |
701 | when adding together the section sizes. | |
702 | ||
c74147bb NC |
703 | 2021-02-24 Nick Clifton <nickc@redhat.com> |
704 | ||
705 | * objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU | |
706 | build notes. | |
707 | * readelf.c (print_gnu_build_attribute_description): Likewise. | |
708 | ||
c42c71a1 AM |
709 | 2021-02-24 Alan Modra <amodra@gmail.com> |
710 | Siddhesh Poyarekar <siddhesh@gotplt.org> | |
711 | ||
712 | PR 27456 | |
713 | * bucomm.h (smart_rename): Update prototype. | |
714 | * rename.c (smart_rename): Add fromfd and preserve_dates params. | |
715 | Pass fromfd and target_stat to simple_copy. Call set_times | |
716 | when preserve_dates. | |
717 | (simple_copy): Accept fromfd rather than from filename. Add | |
718 | target_stat param. Rewind fromfd rather than opening. Open | |
719 | "to" file without O_CREAT. Try to preserve S_ISUID and S_ISGID. | |
720 | * ar.c (write_archive): Rename ofd to tmpfd. Dup tmpfd before | |
721 | closing output temp file, and pass tmpfd to smart_rename. | |
722 | * arsup.c (temp_fd): Rename from real_fd. | |
723 | (ar_save): Dup temp_fd and pass to smart_rename. | |
724 | * objcopy.c (strip_main, copy_main): Likewise, and pass | |
725 | preserve_dates. | |
726 | ||
cca8873d AM |
727 | 2021-02-24 Alan Modra <amodra@gmail.com> |
728 | ||
729 | PR 27456 | |
730 | * rename.c: Tidy throughout. | |
731 | (smart_rename): Always copy. Remove windows specific code. | |
732 | ||
4d496013 AM |
733 | 2021-02-20 Alan Modra <amodra@gmail.com> |
734 | ||
735 | * testsuite/lib/binutils-common.exp: Whitespace fixes throughout. | |
736 | (run_dump_test): Fail if expecting errors from a file like we do | |
737 | for error strings, if no error is seen. | |
738 | ||
0be51eb4 AM |
739 | 2021-02-19 Alan Modra <amodra@gmail.com> |
740 | ||
741 | * testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too. | |
742 | ||
3685de75 SP |
743 | 2021-02-19 Siddhesh Poyarekar <siddhesh@gotplt.org> |
744 | ||
745 | * ar.c (write_archive): Remove TARGET_STAT. Adjust call to | |
746 | SMART_RENAME. | |
747 | * arsup.c (ar_save): Likewise. | |
748 | * objcopy (strip_main): Don't copy TMPFD. Don't set times on | |
749 | temporary file and adjust call to SMART_RENAME. | |
750 | (copy_main): Likewise. | |
751 | * rename.c [!S_ISLNK]: Remove definitions. | |
752 | (try_preserve_permissions): Remove function. | |
753 | (smart_rename): Remove FD, PRESERVE_DATES arguments. Use | |
754 | rename system call only if TO does not exist. | |
755 | * bucomm.h (smart_rename): Adjust declaration. | |
756 | ||
85684222 NC |
757 | 2021-02-18 Nick Clifton <nickc@redhat.com> |
758 | ||
759 | * objcopy.c (merge_gnu_build_notes): Handle notes with a start | |
760 | address that is higher than the end address. | |
761 | ||
b9b204b3 AM |
762 | 2021-02-17 Alan Modra <amodra@gmail.com> |
763 | ||
764 | * dwarf.c: Include limits.h. | |
765 | (CHAR_BIT): Provide backup define. | |
766 | (read_leb128): Use CHAR_BIT to size "result" in bits. Correct | |
767 | signed overflow checking. | |
768 | * testsuite/binutils-all/pr26548.s, | |
769 | * testsuite/binutils-all/pr26548.d, | |
770 | * testsuite/binutils-all/pr26548e.d: New tests. | |
771 | * testsuite/binutils-all/readelf.exp: Run them. | |
772 | (readelf_test): Drop unused "xfails" parameter. Update all uses. | |
773 | ||
e6ca1878 JB |
774 | 2021-02-16 Jan Beulich <jbeulich@suse.com> |
775 | ||
776 | * dwarf.c (process_debug_info): Initialize "dwo_id". | |
777 | ||
208599d9 AM |
778 | 2021-02-15 Alan Modra <amodra@gmail.com> |
779 | ||
780 | * objdump.c (load_specific_debug_section): Don't call | |
781 | bfd_cache_section_contents. Rearrange so that | |
782 | bfd_get_full_section_contents is not called on path where | |
783 | bfd_simple_get_relocated_section_contents is called. | |
784 | Don't set section->user_data. | |
785 | (free_debug_section): Always free section->start. Don't twiddle | |
786 | section flags. | |
787 | * readelf.c (load_specific_debug_section): Don't set user_data. | |
788 | * dwarf.h (struct dwarf_section): Remove use_data field. | |
789 | * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit. | |
790 | ||
1781a9d0 AM |
791 | 2021-02-15 Alan Modra <amodra@gmail.com> |
792 | ||
793 | * testsuite/binutils-all/compress.exp: Remove nds32 xfails. | |
794 | * testsuite/binutils-all/objdump.exp: Likewise. | |
795 | ||
1944212b AM |
796 | 2021-02-14 Alan Modra <amodra@gmail.com> |
797 | ||
798 | * objdump.c (slurp_symtab): Don't add an extra entry for NULL | |
799 | to the symbol array. | |
800 | (slurp_dynamic_symtab): Likewise. | |
801 | (dump_bfd): Formatting. Copy terminating NULL from extra_syms. | |
802 | ||
0d0a0d86 AM |
803 | 2021-02-14 Alan Modra <amodra@gmail.com> |
804 | ||
805 | * Makefile.in: Regenerate. | |
806 | * doc/Makefile.in: Regenerate. | |
807 | ||
adeab0c5 MF |
808 | 2021-02-13 Mike Frysinger <vapier@gentoo.org> |
809 | ||
810 | * aclocal.m4: Regenerate. | |
811 | ||
c46b7066 NC |
812 | 2021-02-12 Nick Clifton <nickc@redhat.com> |
813 | ||
814 | * configure.ac (follow-debug-links): Add option to enable or | |
815 | disable the following of debug links by default. Set the | |
816 | default for the option to be 'follow'. | |
817 | * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS. | |
818 | (dwarf_select_sections_by_names): Add no-follow-links option. | |
819 | (dwarf_select_sections_by_letter): Add 'N' option. | |
820 | * objdump.c (usage): Add conditional text describing the | |
821 | follow links option. | |
822 | (slurp_symtab): Ensure that there is a NULL entry at the end | |
823 | of the symbol table. | |
824 | (slurp_dynamic_symtab): Likewise. | |
825 | (dump_bfd): When extending the symbol table, ensure that there | |
826 | is still a NULL entry at the end. | |
827 | * readelf.c (usage): Add conditional text describing the | |
828 | follow links option. | |
829 | * doc/binutils.texi: Update documentation for objcopy and | |
830 | readelf. | |
831 | * doc/debug.options.texi: Update documentation of the | |
832 | follow-links option. | |
833 | * config.in: Regenerate. | |
834 | * configure: Regenerate. | |
835 | * testsuite/binutils-all/compress.exp: Add the -WN option to | |
836 | objdump command lines that are not expecting to follow links. | |
837 | * testsuite/binutils-all/readelf.exp: Add the | |
838 | --debug-dump=no-follow-links option to tests that are not | |
839 | expecting to follow debug links. | |
840 | * NEWS: Mention the new behaviour. | |
841 | ||
17e04eff AM |
842 | 2021-02-12 Alan Modra <amodra@gmail.com> |
843 | ||
844 | * testsuite/binutils-all/objcopy.exp: Report "unsupported" when | |
845 | gas or ld fails to build a testcase rather than "unresolved". | |
846 | Report "fail" when readelf returns an error status rather than | |
847 | "unresolved". | |
848 | * testsuite/binutils-all/ar.exp: Likewise. | |
849 | * testsuite/binutils-all/compress.exp: Likewise. | |
850 | * testsuite/binutils-all/readelf.exp: Likewise. | |
851 | ||
8f054a7a AM |
852 | 2021-02-12 Alan Modra <amodra@gmail.com> |
853 | ||
854 | * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and | |
855 | "c" with "ccc" labels. | |
856 | ||
528a4f87 TV |
857 | 2021-02-12 Tom de Vries <tdevries@suse.de> |
858 | ||
859 | * dwarf.h (debug_info): Fix typo in comment. | |
860 | ||
95abb394 TV |
861 | 2021-02-12 Tom de Vries <tdevries@suse.de> |
862 | ||
863 | * dwarf.c (display_debug_str_offsets): Handle multiple sets of | |
864 | entries. | |
865 | ||
d60f7998 TV |
866 | 2021-02-12 Tom de Vries <tdevries@suse.de> |
867 | ||
868 | * dwarf.c (process_debug_info): Print DWO ID. | |
869 | ||
1cfcf300 AM |
870 | 2021-02-11 Alan Modra <amodra@gmail.com> |
871 | ||
872 | PR 27290 | |
873 | PR 27293 | |
874 | PR 27295 | |
875 | * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting. | |
876 | Use bfd_malloc_and_get_section. | |
877 | (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity | |
878 | check namesz. Return NULL if descsz is too small. Ensure | |
879 | string table is terminated. | |
880 | (elf32_avr_get_device_info): Formatting. Add note_size param. | |
881 | Sanity check note. | |
882 | (elf32_avr_dump_mem_usage): Adjust to suit. | |
883 | ||
d9d9d8ef TV |
884 | 2021-02-10 Tom de Vries <tdevries@suse.de> |
885 | ||
886 | PR binutils/27391 | |
887 | * dwarf.c (load_dwo_file): Handle case that name is absolute path. | |
888 | ||
52ff20fe TV |
889 | 2021-02-10 Tom de Vries <tdevries@suse.de> |
890 | ||
891 | PR binutils/27371 | |
892 | * dwarf.c (display_debug_ranges): Filter range lists according to | |
893 | section. | |
894 | ||
5f128a25 TV |
895 | 2021-02-09 Tom de Vries <tdevries@suse.de> |
896 | ||
897 | PR binutils/27370 | |
898 | * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8. | |
899 | ||
9b87f84a TV |
900 | 2021-02-09 Tom de Vries <tdevries@suse.de> |
901 | ||
902 | PR binutils/27386 | |
903 | * dwarf.c (process_debug_info): Handling DW_UT_skeleton and | |
904 | DW_UT_split_compile. | |
905 | ||
a57d1773 AM |
906 | 2021-02-09 Alan Modra <amodra@gmail.com> |
907 | ||
908 | * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove | |
909 | symbianelf. | |
910 | ||
de8d4203 AM |
911 | 2021-02-07 Alan Modra <amodra@gmail.com> |
912 | ||
913 | * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer | |
914 | uninitialised on invalid input. | |
915 | ||
51a25252 AM |
916 | 2021-02-06 Alan Modra <amodra@gmail.com> |
917 | ||
918 | PR 27349 | |
919 | * rename.c (smart_rename): Test for existence and type of output | |
920 | file with lstat. | |
921 | ||
e37d88e5 NC |
922 | 2021-02-05 Nick Clifton <nickc@redhat.com> |
923 | ||
924 | * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer. | |
925 | ||
887854ba EZ |
926 | 2021-02-05 Eli Zaretskii <eliz@gnu.org> |
927 | ||
928 | PR 27252 | |
929 | * elfedit.c (check_file): | |
930 | * bucomm.c (get_file_size): Fix typos in comments. | |
931 | ||
c180f095 AM |
932 | 2021-02-05 Alan Modra <amodra@gmail.com> |
933 | ||
934 | PR 27345 | |
935 | * arsup.c (ar_save): Use stat rather than lstat. | |
936 | ||
95b91a04 AM |
937 | 2021-02-03 Alan Modra <amodra@gmail.com> |
938 | ||
939 | PR 27270 | |
940 | PR 27284 | |
941 | PR 26945 | |
942 | * ar.c: Don't include libbfd.h. | |
943 | (write_archive): Replace xmalloc+strcpy with xstrdup. Use | |
944 | bfd_stat rather than fstat on iostream. Move stat and fd tests | |
945 | outside of _WIN32 ifdef. Delete skip_stat variable. | |
946 | * arsup.c (temp_name, real_ofd): New static variables. | |
947 | (ar_open): Use make_tempname and bfd_fdopenw. | |
948 | (ar_save): Adjust to suit ar_open changes. Move stat output | |
949 | of _WIN32 ifdef. | |
950 | * objcopy.c: Don't include libbfd.h. | |
951 | (copy_file): Use bfd_stat. | |
952 | ||
5424d7ed L |
953 | 2021-02-02 H.J. Lu <hongjiu.lu@intel.com> |
954 | ||
955 | PR binutils/27281 | |
956 | * readelf.c (process_section_headers): Add 'R' and 'D' to | |
957 | "Key to Flags:". | |
958 | * testsuite/binutils-all/retain1a.d: Updated. | |
959 | ||
72a51a06 NC |
960 | 2021-01-30 Nick Clifton <nickc@redhat.com> |
961 | ||
962 | * README-how-to-make-a-release: Small updates after the 2.35.2 | |
963 | release. | |
964 | ||
cc3edc52 EZ |
965 | 2021-01-28 Eli Zaretskii <eliz@gnu.org> |
966 | ||
967 | PR 4356 | |
968 | * windres.c (quot): Use double quotes to protect strings on | |
969 | Windows platforms. | |
970 | ||
a7ad3cb1 EZ |
971 | 2021-01-28 Eli Zaretskii <eliz@gnu.org> |
972 | ||
973 | PR 27252 | |
974 | * bucomm.c (get_file_size): Add code to handle /dev/null on | |
975 | Windows systems. | |
976 | * elfedit.c (check_file): Likewise. | |
977 | ||
67965ba2 NC |
978 | 2021-01-27 Nick Clifton <nickc@redhat.com> |
979 | ||
980 | * objcopy.c (copy_main): Remove conditional control of the calls | |
981 | to free, simplifying the code and making it easier to detect | |
982 | typos. | |
983 | ||
e37709f0 FC |
984 | 2021-01-26 Frederic Cambus <fred@statdns.com> |
985 | ||
986 | * objcopy.c (copy_main): Fix a double free happening when both | |
987 | --localize-symbols and --globalize-symbols options are invoked | |
988 | together. | |
989 | ||
9b351c9b NC |
990 | 2021-01-24 Nick Clifton <nickc@redhat.com> |
991 | ||
992 | * README-how-to-make-a-release: Minor updates after the 2.36 release. | |
993 | ||
ad92f33d AM |
994 | 2021-01-16 Alan Modra <amodra@gmail.com> |
995 | ||
996 | * readelf.c (uncompress_section_contents): Tidy inflateEnd result test. | |
997 | ||
3624a6c1 AM |
998 | 2021-01-15 Alan Modra <amodra@gmail.com> |
999 | ||
1000 | PR 26539 | |
1001 | * readelf.c (uncompress_section_contents): Always call inflateEnd. | |
1002 | ||
c14dee84 AO |
1003 | 2021-01-14 Alexandre Oliva <oliva@gnu.org> |
1004 | ||
1005 | * MAINTAINERS: Update my email address. | |
1006 | ||
5a10699f NC |
1007 | 2021-01-14 Nick Clifton <nickc@redhat.com> |
1008 | ||
1009 | * po/sv.po: Updated Swedish translation. | |
1010 | ||
5347ed60 AM |
1011 | 2021-01-13 Alan Modra <amodra@gmail.com> |
1012 | ||
1013 | * Makefile.in: Regenerate. | |
1014 | * doc/Makefile.in: Regenerate. | |
1015 | ||
2ce40d1a ZF |
1016 | 2021-01-13 Zebediah Figura <z.figura12@gmail.com> |
1017 | ||
1018 | PR 27037 | |
1019 | * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry | |
1020 | and before exit. | |
1021 | (i386_x64_trampoline): Add SEH annotations. | |
1022 | (struct mac): Add how_seh field. | |
1023 | (make_delay_head): If how_set field is true add SEh instructions. | |
1024 | ||
d546b610 L |
1025 | 2021-01-12 H.J. Lu <hongjiu.lu@intel.com> |
1026 | ||
1027 | PR binutils/26792 | |
1028 | * configure.ac: Use GNU_MAKE_JOBSERVER. | |
1029 | * aclocal.m4: Regenerated. | |
1030 | * configure: Likewise. | |
1031 | ||
6d104cac NC |
1032 | 2021-01-12 Nick Clifton <nickc@redhat.com> |
1033 | ||
1034 | * po/fr.po: Updated French translation. | |
1035 | ||
83b33c6c L |
1036 | 2021-01-11 H.J. Lu <hongjiu.lu@intel.com> |
1037 | ||
1038 | PR ld/27173 | |
1039 | * configure: Regenerated. | |
1040 | ||
a8aa72b9 NC |
1041 | 2021-01-11 Nick Clifton <nickc@redhat.com> |
1042 | ||
1043 | * po/pt.po: Updated Portuguese translation. | |
1044 | * po/sr.po: Updated Serbian translation. | |
1045 | * po/uk.po: Updated Ukranian translation. | |
1046 | ||
a4966cd9 L |
1047 | 2021-01-09 H.J. Lu <hongjiu.lu@intel.com> |
1048 | ||
1049 | * configure: Regenerated. | |
1050 | ||
573fe3fb NC |
1051 | 2021-01-09 Nick Clifton <nickc@redhat.com> |
1052 | ||
1053 | * configure: Regenerate. | |
1054 | * po/binutils.pot: Regenerate. | |
1055 | ||
055bc77a NC |
1056 | 2021-01-09 Nick Clifton <nickc@redhat.com> |
1057 | ||
1058 | * 2.36 release branch crated. | |
573fe3fb NC |
1059 | * README-how-to-make-a-release: Add note about updating Makefiles |
1060 | and libtool files. | |
1061 | * BRANCHES: Add binutils-2.36-branch. | |
055bc77a | 1062 | |
64307045 AM |
1063 | 2021-01-09 Alan Modra <amodra@gmail.com> |
1064 | ||
1065 | * configure: Regenerate. | |
1066 | ||
f4782128 ST |
1067 | 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org> |
1068 | ||
1069 | * configure: Regenerate. | |
1070 | ||
d1bcae83 L |
1071 | 2021-01-07 H.J. Lu <hongjiu.lu@intel.com> |
1072 | ||
1073 | PR 27109 | |
1074 | * objcopy.c (copy_object): Handle section symbols for | |
1075 | non-relocatable inputs. | |
1076 | * testsuite/binutils-all/readelf.exp (readelf_test): Check | |
1077 | is_elf_unused_section_symbols. | |
1078 | * testsuite/binutils-all/readelf.s-64: Updated. | |
1079 | * testsuite/binutils-all/readelf.ss: Likewise. | |
1080 | * testsuite/binutils-all/readelf.ss-64: Likewise. | |
1081 | * testsuite/binutils-all/readelf.s-64-unused: New file. | |
1082 | * testsuite/binutils-all/readelf.ss-64-unused: Likewise. | |
1083 | * testsuite/binutils-all/readelf.ss-unused: Likewise. | |
1084 | * testsuite/lib/binutils-common.exp | |
1085 | (is_elf_unused_section_symbols): New proc. | |
1086 | ||
6987d5a1 RT |
1087 | 2021-01-06 Reuben Thomas <rrt@sc3d.org> |
1088 | ||
1089 | * binutils/readelf.c: Correct grammar in comment. | |
1090 | ||
f9a6a8f0 AM |
1091 | 2021-01-01 Nicolas Boulenguez <nicolas@debian.org> |
1092 | ||
1093 | * coffgrok.c (do_type): Correct spelling of auxiliary in errors. | |
1094 | * doc/binutils.texi: Correct grammar. | |
1095 | * readelf.c (process_version_sections): Correct spelling of auxiliary | |
1096 | in warning. | |
1097 | * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix. | |
1098 | ||
250d07de AM |
1099 | 2021-01-01 Alan Modra <amodra@gmail.com> |
1100 | ||
1101 | Update year range in copyright notice of all files. | |
1102 | ||
c2795844 | 1103 | For older changes see ChangeLog-2020 |
3499769a | 1104 | \f |
c2795844 | 1105 | Copyright (C) 2021 Free Software Foundation, Inc. |
3499769a AM |
1106 | |
1107 | Copying and distribution of this file, with or without modification, | |
1108 | are permitted in any medium without royalty provided the copyright | |
1109 | notice and this notice are preserved. | |
1110 | ||
1111 | Local Variables: | |
1112 | mode: change-log | |
1113 | left-margin: 8 | |
1114 | fill-column: 74 | |
1115 | version-control: never | |
1116 | End: |