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