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