Commit | Line | Data |
---|---|---|
9db70fc3 AM |
1 | 2020-05-21 Alan Modra <amodra@gmail.com> |
2 | ||
3 | * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout. | |
4 | * dlltool.c: Likewise. | |
5 | * elfcomm.c: Likewise. | |
6 | * rddbg.c: Likewise. | |
7 | * readelf.c: Likewise. | |
8 | * stabs.c: Likewise. | |
9 | * windmc.c: Likewise. | |
10 | * windres.c: Likewise. | |
11 | * wrstabs.c: Likewise. | |
12 | ||
c31ab5a0 AM |
13 | 2020-05-21 Alan Modra <amodra@gmail.com> |
14 | ||
15 | * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array | |
16 | access. | |
17 | ||
8f595e9b NC |
18 | 2020-05-20 Nelson Chu <nelson.chu@sifive.com> |
19 | ||
20 | * dwarf.c: Updated since DECLARE_CSR is changed. | |
21 | ||
8ac10c5b L |
22 | 2020-05-19 H.J. Lu <hjl.tools@gmail.com> |
23 | ||
24 | PR binutils/25809 | |
25 | * readelf.c (process_program_headers): Warn if the PT_DYNAMIC | |
26 | segment doesn't match the .dynamic section and checks are | |
27 | enabled. | |
28 | (struct filedata): Add dynamic_symtab_section and | |
29 | dynamic_strtab_section fields. | |
30 | (process_section_headers): Set dynamic_symtab_section to the | |
31 | .dynsym section. Set dynamic_strtab_section to the .dynstr | |
32 | section. | |
33 | (process_dynamic_section): Warn if the .dynsym section doesn't | |
34 | match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't | |
35 | DT_STRTAB and DT_STRSZ. But only if checks are enabled. | |
36 | ||
c177f377 AM |
37 | 2020-05-19 Alan Modra <amodra@gmail.com> |
38 | ||
39 | * ar.c (map_over_members, get_pos_bfd, delete_members, move_members), | |
40 | (replace_members): Use bfd_get_filename rather than accessing | |
41 | bfd->filename directly. | |
42 | * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise. | |
43 | * binemul.c (do_ar_emul_append): Likewise. | |
44 | * coffgrok.c (coff_grok): Likewise. | |
45 | ||
83d27139 SH |
46 | 2020-05-18 Stafford Horne <shorne@gmail.com> |
47 | ||
48 | * MAINTAINERS (OR1K): Add myself as maintainer. | |
49 | ||
d11a9fab AB |
50 | 2020-05-07 Andrew Burgess <andrew.burgess@embecosm.com> |
51 | ||
52 | * doc/binutils.texi: Mention 'entry address' in the set-start and | |
53 | adjust-start options descriptions. | |
54 | ||
546cb2d8 NC |
55 | 2020-05-05 Nick Clifton <nickc@redhat.com> |
56 | ||
57 | * dwarf.c (do_checks): New global variable. | |
58 | (display_formatted_table): Warn about an unexpected number of | |
59 | columns in the table, if checks are enabled. Do not complain | |
60 | about the lack of data following the number of entries in the | |
61 | table if the table is empty. | |
62 | (display_debug_lines_decoded): Only warn about an unexpected | |
63 | number of columns in a table if checks are enabled. | |
64 | * dwarf.h (do_checks): Add a prototype. | |
65 | * elfcomm.c (error): Remove weak attribute. | |
66 | (warn): Likewise. | |
67 | * readelf.c (do_checks): Delete. | |
68 | (warn): Delete. | |
69 | (process_section_headers): Only warn about empty sections if | |
70 | checks are enabled. | |
71 | ||
e052e2ba FS |
72 | 2020-05-04 Fangrui Song <maskray@google.com> |
73 | ||
74 | * objcopy.c (copy_object): Allow empty section. | |
75 | * testsuite/binutils-all/update-section.exp: Add test. | |
76 | ||
070b775f NC |
77 | 2020-05-04 Nick Clifton <nickc@redhat.com> |
78 | ||
79 | PR 25917 | |
80 | * dwarf.c (display_debug_lines_decoded): Warn if encountering a | |
81 | supicious number of entries for DWARF-5 format directory and file | |
82 | name tables. Do not display file name table header if the table | |
83 | is empty. Do not allocate space for empty tables. | |
84 | ||
9c7b8e9b AM |
85 | 2020-05-04 Alan Modra <amodra@gmail.com> |
86 | ||
87 | * readelf.c (process_nds32_specific): Check size of .nds32_e_flags | |
88 | section. Don't assume endian of host matches nds32 target. Free | |
89 | buffer. | |
90 | ||
60832332 AM |
91 | 2020-05-01 Alan Modra <amodra@gmail.com> |
92 | Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com> | |
93 | ||
94 | * objdump.c (disassemble_bytes): Don't scan for zeros when | |
95 | disassembling zeros. Translate "resuming at file offset" message. | |
96 | Formatting. Replace some signed variables with unsigned. | |
97 | ||
09c1e68a AC |
98 | 2020-04-30 Alex Coplan <alex.coplan@arm.com> |
99 | ||
100 | * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new | |
101 | disassembly. | |
102 | * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise. | |
103 | ||
8a8a1171 NC |
104 | 2020-04-30 Nick Clifton <nickc@redhat.com> |
105 | ||
106 | * testsuite/lib/binutils-common.exp (check_pie_support): New | |
107 | proc. | |
108 | ||
cb4c35cf AB |
109 | 2020-04-29 Andrew Burgess <andrew.burgess@embecosm.com> |
110 | ||
111 | * dwarf.c (display_debug_ranges): Ignore duplicate entries in | |
112 | range_entries for the same offset. | |
113 | ||
1b513401 NC |
114 | 2020-04-29 Nick Clifton <nickc@redhat.com> |
115 | ||
116 | * readelf.c (warn): New function - like elfcomm.c version but only | |
117 | produces output if warnings are enabled. | |
118 | (struct options): Add --lint and --enable-checks. | |
119 | (usage): Add entry for --lint. | |
120 | (parse_args): Handle -L. If checks are enabled but no dumps have | |
121 | been selected then enable all dumps. | |
122 | (process_section_headers): Replace long if-then-else sequence with | |
123 | a switch. Add warning messages for empty SHT_REL, SHT_RELA and | |
124 | SHT_PROGBITS sections. | |
125 | (process_file): Do not complain if the file is an archive and lint | |
126 | mode has been enabled. | |
127 | * elfcomm.c (error): Make the function weak. | |
128 | (warn): Likewise. | |
129 | * NEWS: Mention the new feature. | |
130 | * doc/binutils.texi: Document the new feature. | |
131 | * dwarf.h (report_leb_status): Add file name and line number | |
132 | parameters. Include them in the diagnostic output. | |
133 | (READ_ULEB): Pass file and line number to report_leb_status. | |
134 | (READ_SLEB): Likewise. | |
135 | * dwarf.c (read_and_print_leb128): Pass file and line number to | |
136 | report_leb_status. | |
137 | * testsuite/binutils-all/readelf.exp: Add test of new feature. | |
138 | * testsuite/binutils-all/zero-sec.s: New test source file. | |
139 | * testsuite/binutils-all/zero-sec.r: Expected output from new | |
140 | test. | |
141 | ||
c2e71e57 NC |
142 | 2020-04-29 Nick Clifton <nickc@redhat.com> |
143 | ||
144 | * po/sr.po: Updated Serbian translation. | |
145 | ||
90837ea7 AM |
146 | 2020-04-26 Alan Modra <amodra@gmail.com> |
147 | ||
148 | * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was | |
149 | read before dereferencing, and gracefully return. Remove | |
150 | gnu_hash_error variable. Free gnu hash arrays if number of | |
151 | syms found is zero. | |
152 | ||
2482f306 AM |
153 | 2020-04-24 Alan Modra <amodra@gmail.com> |
154 | ||
155 | * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains | |
156 | non-zero. | |
157 | (process_dynamic_section): Call get_num_dynamic_syms once rather | |
158 | than in segment loop. Break out of segment loop on a successful | |
159 | load of dynamic symbols. Formatting. | |
160 | (process_object): Return error status from process_dynamic_section. | |
161 | ||
27456742 AK |
162 | 2020-04-23 Anton Kolesov <anton.kolesov@synopsys.com> |
163 | ||
164 | * elf-bfd.h (elfcore_write_arc_v2): Add prototype. | |
165 | * elf.c (elfcore_grok_arc_v2): New function. | |
166 | (elfcore_grok_note): Call the new function to handle the corresponding | |
167 | note. | |
168 | (elfcore_write_arc_v2): New function. | |
169 | (elfcore_write_register_note): Call the new function to handle the | |
170 | corresponding pseudo-sections. | |
171 | ||
30ce8e47 MF |
172 | 2020-04-22 Max Filippov <jcmvbkbc@gmail.com> |
173 | ||
174 | PR ld/25861 | |
175 | * readelf.c (is_none_reloc): Recognize | |
176 | BFD_RELOC_XTENSA_PDIFF{8,16,32} and | |
177 | BFD_RELOC_XTENSA_NDIFF{8,16,32}. | |
178 | ||
33b5a830 NC |
179 | 2020-04-22 Nick Clifton <nickc@redhat.com> |
180 | ||
181 | * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer. | |
182 | ||
978c4450 AM |
183 | 2020-04-22 Alan Modra <amodra@gmail.com> |
184 | ||
185 | * readelf.c (archive_file_offset, archive_file_size, dynamic_addr), | |
186 | (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length), | |
187 | (num_dynamic_syms, nbuckets, nchains, buckets, chains), | |
188 | (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains), | |
189 | (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset), | |
190 | (dynamic_syminfo_nent, program_interpreter, dynamic_info), | |
191 | (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info), | |
192 | (dynamic_section, symtab_shndx_list, group_count, section_groups), | |
193 | (section_headers_groups): Move to struct filedata. Update use | |
194 | throughout file. | |
195 | ||
6431e409 AM |
196 | 2020-04-22 Alan Modra <amodra@gmail.com> |
197 | ||
198 | * readelf.c (struct dump_data): New, used.. | |
199 | (cmdline): ..here, and.. | |
200 | (struct filedata): ..here. Adjust all uses. | |
201 | (request_dump_bynumber, request_dump, parse_args): Pass in a | |
202 | struct dump_data* rather than Filedata*. Adjust callers. | |
203 | (main): Don't set cmdline.file_name. | |
204 | ||
a5e0be5c AM |
205 | 2020-04-20 Alan Modra <amodra@gmail.com> |
206 | ||
207 | * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets | |
208 | and nbuckets. | |
209 | ||
8ff66993 AM |
210 | 2020-04-20 Alan Modra <amodra@gmail.com> |
211 | ||
212 | * readelf.c (process_section_headers): Free dynamic symbols etc. | |
213 | earlier. | |
214 | ||
ceb9bf11 AM |
215 | 2020-04-20 Alan Modra <amodra@gmail.com> |
216 | ||
217 | * readelf.c (get_num_dynamic_syms): Formatting. Don't return | |
218 | on error without freeing. | |
219 | (process_dynamic_section): Don't recreate dynamic symbols from | |
220 | dynamic tag info when the dynamic symbols have already been | |
221 | read via section headers. | |
222 | ||
e409955d FS |
223 | 2020-04-17 Fredrik Strupe <fredrik@strupe.net> |
224 | ||
225 | * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that | |
226 | conditional VDUP instructions are disassembled correctly. | |
227 | * testsuite/binutils-all/arm/vdup-cond.s: New file used by | |
228 | vdup-cond.d. | |
229 | * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing | |
230 | that VDUP instructions (which are conditional in A32) can be | |
231 | disassembled in thumb mode. | |
232 | * testsuite/binutils-all/arm/vdup-cond.s: New file used by | |
233 | vdup-thumb.d. | |
234 | ||
ca3f923f AM |
235 | 2020-04-17 Alan Modra <amodra@gmail.com> |
236 | ||
237 | PR 25840 | |
238 | * debug.c (debug_class_type_samep): Don't segfault on NULL type. | |
239 | ||
937f6614 AM |
240 | 2020-04-16 Alan Modra <amodra@gmail.com> |
241 | ||
242 | * doc/binutils.texi: Mention --no-show-raw-insn in objdump | |
243 | --no-addresses description. | |
244 | ||
b1bc1394 AM |
245 | 2020-04-15 Alan Modra <amodra@gmail.com> |
246 | ||
247 | * objdump.c (no_addresses): New static var. | |
248 | (usage): Print help for --no-addresses. | |
249 | (long_options): Add --no-addresses entry. | |
250 | (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address. | |
251 | (disassemble_bytes): Don't print current line address, or reloc | |
252 | address. | |
253 | * doc/binutils.texi: Document objdump --no-addresses. | |
254 | ||
001890e1 AM |
255 | 2020-04-15 Alan Modra <amodra@gmail.com> |
256 | ||
257 | PR 25822 | |
258 | * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when | |
259 | reading buckets or chains fails. | |
260 | ||
b71d4fa7 AM |
261 | 2020-04-15 Alan Modra <amodra@gmail.com> |
262 | ||
263 | * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains | |
264 | etc. after freeing. | |
265 | ||
89246a0e AM |
266 | 2020-04-15 Alan Modra <amodra@gmail.com> |
267 | ||
268 | * readelf.c (get_group_flags): Translate text. | |
269 | (get_file_type, get_symbol_binding, get_symbol_type), | |
270 | (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer. | |
271 | ||
c98a4545 AM |
272 | 2020-04-15 Alan Modra <amodra@gmail.com> |
273 | ||
274 | PR 25821 | |
275 | * readelf.c (get_num_dynamic_syms): Typo fix. | |
276 | ||
645f43a8 AM |
277 | 2020-04-14 Alan Modra <amodra@gmail.com> |
278 | ||
279 | * readelf.c (process_mips_specific): Free eopt and iopt. Avoid | |
280 | possibility of overflow when checking number of conflicts. | |
281 | ||
10ca4b04 L |
282 | 2020-04-14 H.J. Lu <hongjiu.lu@intel.com> |
283 | ||
284 | PR binutils/25707 | |
285 | * readelf.c (nbuckets): New. | |
286 | (nchains): Likewise. | |
287 | (buckets): Likewise. | |
288 | (chains): Likewise. | |
289 | (ngnubuckets): Likewise. | |
290 | (gnubuckets): Likewise. | |
291 | (gnuchains): Likewise. | |
292 | (mipsxlat): Likewise. | |
293 | (ngnuchains): Likewise. | |
294 | (gnusymidx): Likewise. | |
295 | (VALID_SYMBOL_NAME): Likewise. | |
296 | (VALID_DYNAMIC_NAME): Use it. | |
297 | (get_dynamic_data): Moved before process_dynamic_section. | |
298 | (get_num_dynamic_syms): New function. | |
299 | (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH, | |
300 | DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol | |
301 | table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string | |
302 | table. | |
303 | (get_symbol_index_type): Don't print "bad section index" when | |
304 | there is no section header. | |
305 | (print_dynamic_symbol): Rewrite. | |
306 | (process_symbol_table): Call print_dynamic_symbol to dump dynamic | |
307 | symbol table. | |
308 | ||
bb897477 RO |
309 | 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
310 | ||
311 | * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't | |
312 | enable on *-*-solaris*. | |
313 | ||
00386881 NC |
314 | 2020-03-30 Nick Clifton <nickc@redhat.com> |
315 | ||
316 | PR binutils/25662 | |
317 | * objcopy.c (copy_object): When copying PE format files set the | |
318 | timestamp field in the pe_data structure if the preserve_dates | |
319 | flag is set. | |
320 | * testsuite/binutils-all/objcopy.exp (objcopy_test) Use | |
321 | --preserve-dates in place of the -p option, in order to make its | |
322 | effect more obvious. | |
323 | ||
0a6a8b59 AM |
324 | 2020-03-28 Alan Modra <amodra@gmail.com> |
325 | ||
326 | * testsuite/binutils-all/objcopy.exp (objcopy_test): Only | |
327 | clear_xfail hppa*-*-*elf*. Revert mips xfails. | |
328 | ||
6a81c59b AM |
329 | 2020-03-28 Alan Modra <amodra@gmail.com> |
330 | ||
331 | * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails | |
332 | from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x | |
333 | but do xfail spu, mipstx39 and mips-sgi-irix for the executable | |
334 | test. Pass "-p" to objcopy for the executable test. | |
335 | ||
1fafefd5 JL |
336 | 2020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com> |
337 | ||
338 | PR binutils/25662 | |
339 | * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to | |
340 | specify whether an object file or executable should be built and tested. | |
341 | Change test names to report whether an object file or executable is | |
342 | being tested. | |
343 | * testsuite/binutils-all/pr25662.ld: New test. | |
344 | * testsuite/binutils-all/pr25662.s: New test. | |
345 | ||
80e2a3b6 AM |
346 | 2020-03-27 Alan Modra <amodra@gmail.com> |
347 | ||
348 | * readelf.c (process_archive): Don't double free qualified_name. | |
349 | Don't break out of loop with "negative" archive_file_size, just | |
350 | set file offset to max. | |
351 | ||
4c836627 AM |
352 | 2020-03-25 Alan Modra <amodra@gmail.com> |
353 | ||
354 | * readelf.c (process_archive): Prevent endless loop. | |
355 | ||
1081065c L |
356 | 2020-03-24 H.J. Lu <hongjiu.lu@intel.com> |
357 | ||
358 | PR binutils/25708 | |
359 | * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name | |
360 | with bfd_get_symbol_version_string. | |
361 | (print_symbo): Pass TRUE to bfd_get_symbol_version_string. | |
362 | * objdump.c (objdump_print_symname): Likewise. | |
363 | ||
7e6e972f L |
364 | 2020-03-24 H.J. Lu <hongjiu.lu@intel.com> |
365 | ||
366 | PR binutils/25708 | |
367 | * nm.c (SYM_NAME): Removed. | |
368 | (print_symname): Add a pointer to struct extended_symbol_info | |
369 | argument. Call _bfd_elf_get_symbol_version_name to get symbol | |
370 | version. | |
371 | (print_symdef_entry): Pass NULL to print_symname. | |
372 | (print_symbol_info_bsd): Update call to print_symname. | |
373 | (print_symbol_info_sysv): Likewise. | |
374 | (print_symbol_info_posix): Likewise. | |
375 | ||
5a814d6d AM |
376 | 2020-03-24 Alan Modra <amodra@gmail.com> |
377 | ||
378 | * readelf.c (process_mips_specific): Free iconf on error path. | |
379 | ||
0636b245 NC |
380 | 2020-03-23 Nick Clifton <nickc@redhat.com> |
381 | ||
382 | PR 25714 | |
383 | * wrstabs.c (stab_pop_type): Replace assertion with error return. | |
384 | * write_stabs_in_sections_debugging_info: Likewise. | |
385 | * stab_enum_type: Likewise. | |
386 | * stab_modify_type: Likewise. | |
387 | * stab_struct_field: Likewise. | |
388 | * stab_end_struct_type: Likewise. | |
389 | * stab_start_class_type: Likewise. | |
390 | * stab_class_static_member: Likewise. | |
391 | * stab_class_baseclass: Likewise. | |
392 | * stab_class_start_method: Likewise. | |
393 | * stab_class_method_var: Likewise. | |
394 | * stab_class_end_method: Likewise. | |
395 | * stab_end_class_type: Likewise. | |
396 | * stab_typedef_type: Likewise. | |
397 | * stab_start_function: Likewise. | |
398 | * stab_end_block: Likewise. | |
399 | * stab_lineno: Likewise. | |
400 | ||
5844b465 NC |
401 | 2020-03-20 Nick Clifton <nickc@redhat.com> |
402 | ||
403 | * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT. | |
404 | (process_section_headers): Check the return value from | |
405 | get_compression_header. | |
406 | (dump_section_as_strings): Likewise. | |
407 | (dump_section_as_bytes): Likewise. | |
408 | (load_specific_debug_section): Likewise. | |
409 | ||
3d98c460 L |
410 | 2020-03-20 H.J. Lu <hongjiu.lu@intel.com> |
411 | ||
412 | * ar.c (main): Update bfd_plugin_set_program_name call. | |
413 | * nm.c (main): Likewise. | |
414 | ||
f3a08f77 NC |
415 | 2020-03-19 Nick Clifton <nickc@redhat.com> |
416 | ||
417 | PR 25676 | |
418 | * testsuite/binutils-all/dw4.s: New test source file. | |
419 | * testsuite/binutils-all/nm.exp: Run the new test. | |
420 | ||
ef3df110 L |
421 | 2020-03-19 H.J. Lu <hongjiu.lu@intel.com> |
422 | ||
423 | * readelf.c (process_symbol_table): Use unsigned long for si. | |
424 | ||
81a65eb3 AM |
425 | 2020-03-19 Alan Modra <amodra@gmail.com> |
426 | ||
427 | * elfcomm.c: Don't include bfd.h or bucomm.h. | |
428 | (program_name): Declare. | |
429 | (process_archive_index_and_symbols): Replace bfd_boolean with int, | |
430 | and substitute FALSE and TRUE. | |
431 | (setup_archive, setup_nested_archive): Likewise. | |
432 | * elfcomm.h: Likewise. | |
433 | ||
1cb7d8b1 AM |
434 | 2020-03-19 Alan Modra <amodra@gmail.com> |
435 | ||
436 | * readelf.c (process_archive): Always return via path freeing | |
437 | memory. Formatting. | |
438 | ||
b966f55f AM |
439 | 2020-03-19 Alan Modra <amodra@gmail.com> |
440 | ||
441 | * readelf.c (process_netbsd_elf_note): Validate descsz before | |
442 | accessing descdata. Formatting. | |
443 | ||
645ba681 AM |
444 | 2020-03-19 Alan Modra <amodra@gmail.com> |
445 | ||
446 | * elfcomm.c (setup_archive): Make file_size an off_t. Comment. | |
447 | * elfcomm.h (setup_archive): Update prototype. | |
448 | ||
28d13567 AM |
449 | 2020-03-16 Alan Modra <amodra@gmail.com> |
450 | ||
451 | * readelf.c (get_symbols): New function. | |
452 | (process_relocs, ia64_process_unwind, hppa_process_unwind), | |
453 | (arm_process_unwind, get_symbol_for_build_attribute): Use it. | |
454 | ||
60e63c3e AM |
455 | 2020-03-16 Alan Modra <amodra@gmail.com> |
456 | ||
457 | * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts. | |
458 | Detect shift overflows and check that terminating byte is found. | |
459 | Print an error on a bad uleb128. | |
460 | ||
1bd6175a AM |
461 | 2020-03-14 Alan Modra <amodra@gmail.com> |
462 | ||
463 | * readelf.c (process_file): Clean ba_cache. | |
464 | ||
780f96ae AM |
465 | 2020-03-14 Alan Modra <amodra@gmail.com> |
466 | ||
467 | * elfcomm.h (setup_archive): Update prototype. | |
468 | * elfcomm.c (setup_archive): Add file_size parameter and sanity | |
469 | check longnames_size. | |
470 | (setup_nested_archive): Get file size and pass to setup_archive. | |
471 | * elfedit.c (process_archive): Likewise. | |
472 | * readelf.c (process_archive): Pass filedata->file_size to | |
473 | setup_archive. | |
474 | ||
f761cb13 AM |
475 | 2020-03-14 Alan Modra <amodra@gmail.com> |
476 | ||
477 | * readelf.c (dump_section_as_strings): Free memory on error exit. | |
478 | (dump_section_as_bytes, process_notes_at): Likewise. | |
479 | (get_build_id): Free enote. | |
480 | ||
06d949ec KR |
481 | 2020-03-13 Kamil Rytarowski <n54@gmx.com> |
482 | ||
483 | * readelf.c (get_netbsd_elfcore_note_type): Add support for | |
484 | NT_NETBSDCORE_LWPSTATUS notes. | |
485 | ||
fd486f32 AM |
486 | 2020-03-13 Alan Modra <amodra@gmail.com> |
487 | ||
488 | * elfcomm.c (get_archive_member_name): Always return malloc'd | |
489 | string or NULL. | |
490 | * elfedit.c (process_archive): Tidy memory on all return paths. | |
491 | * readelf.c (process_archive): Likewise. | |
492 | (process_symbol_table): Likewise. | |
493 | (ba_cache): New, replacing .. | |
494 | (get_symbol_for_build_attribute): ..static vars here. Free | |
495 | strtab and symtab before loading new ones. Reject symtab without | |
496 | valid strtab in loop, breaking out of loop on valid symtab. | |
497 | (process_file): Free ba_cache symtab and strtab here, resetting | |
498 | ba_cache. | |
499 | ||
8fb879cd AM |
500 | 2020-03-12 Alan Modra <amodra@gmail.com> |
501 | ||
502 | * readelf.c (process_section_headers): Don't just set | |
503 | filedata->section_headers NULL, free it first. Similarly for | |
504 | dynamic_symbols, dynamic_strings, dynamic_syminfo and | |
505 | symtab_shndx_list. Zero associated counts too. | |
506 | (process_object): Free symtab_shndx_list. | |
507 | (process_file): Free various allocated filedata tables. | |
508 | ||
5496f3c6 NC |
509 | 2020-03-11 Nick Clifton <nickc@redhat.com> |
510 | ||
511 | PR 25611 | |
512 | PR 25614 | |
513 | * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and | |
514 | li_segment_size fields. | |
515 | * dwarf.c (read_debug_line_header): Record the address size and | |
516 | segment selector size values (if present) in the lineinfo | |
517 | structure. | |
518 | (display_formatted_table): Warn if the format count is empty but | |
519 | the table itself is not empty. | |
520 | Display the format count and entry count at the start of the table | |
521 | dump. | |
522 | (display_debug_lines_raw): Display the address size and segement | |
523 | selector size fields, if present. | |
524 | * testsuite/binutils-all/dw5.W: Update expected output. | |
525 | ||
9cc89dc0 AM |
526 | 2020-03-11 Alan Modra <amodra@gmail.com> |
527 | ||
528 | PR 25651 | |
529 | * objcopy.c (copy_object): Test "gaps" not gap_fill_set or | |
530 | pad_to_set on second block of code dealing with padding. | |
531 | Replace "c" with "num_sec" and don't recalculate number of | |
532 | sections on second block. Size arrays using sizeof (element) | |
533 | rather than sizeof (element type). | |
534 | ||
41da0822 AM |
535 | 2020-03-10 Alan Modra <amodra@gmail.com> |
536 | ||
537 | * objdump.c (disassemble_section): Don't call qsort unless | |
538 | sym count is at least two. | |
539 | (disassemble_data): Don't call memcpy with NULL src. | |
540 | ||
95099889 AM |
541 | 2020-03-09 Alan Modra <amodra@gmail.com> |
542 | ||
543 | PR 25645 | |
544 | * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb | |
545 | to get_data rather than multiplying. | |
546 | (dump_ia64_vms_dynamic_relocs): Likewise. | |
547 | (process_version_sections): Correct order of size and nmemb args | |
548 | in get_data call. | |
549 | (process_mips_specific): Likewise. | |
550 | ||
a15de1f5 L |
551 | 2020-03-08 H.J. Lu <hongjiu.lu@intel.com> |
552 | ||
553 | * readelf.c (get_dynamic_data): Replace "memory chekers" with | |
554 | "memory checkers" in comments. | |
555 | ||
9979ab66 SM |
556 | 2020-03-06 Simon Marchi <simon.marchi@efficios.com> |
557 | ||
558 | PR 25491 | |
559 | * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES. | |
560 | * doc/Makefile.in: Re-generate. | |
561 | ||
a0dcf297 NC |
562 | 2020-03-06 Nick Clifton <nickc@redhat.com> |
563 | ||
564 | * objcopy.c (check_new_section_flags): New function. Reject the | |
565 | SEC_COFF_SHARED flag if the target is not a COFF binary. | |
566 | (copy_object): Call check_new_section_flags. | |
567 | (setup_section): Likewise. | |
568 | * doc/binutils.texi (objcopy): Add a note that the 'share' section | |
569 | flag cannot be applied to ELF binaries. | |
570 | ||
a9b90127 AM |
571 | 2020-03-06 Alan Modra <amodra@gmail.com> |
572 | ||
573 | PR 25637 | |
574 | * objcopy.c (filter_symbols): Correct rem_leading_char logic. | |
575 | ||
d1faf7ca AM |
576 | 2020-03-05 Alan Modra <amodra@gmail.com> |
577 | ||
578 | PR 25629 | |
579 | * objcopy.c (filter_symbols): Don't segfault on NULL | |
580 | prefix_symbols_string. | |
581 | ||
eef64366 CE |
582 | 2020-03-04 Christian Eggers <ceggers@gmx.de> |
583 | ||
584 | * objcopy.c (copy_object): Convert from bytes to octets for | |
585 | --gap-fill and --pad-to. | |
586 | ||
5be2b2f5 NC |
587 | 2020-03-03 Nick Clifton <nickc@redhat.com> |
588 | ||
589 | PR 25625 | |
590 | * prdbg.c (pr_tag_type): Remove call to abort. | |
591 | ||
b312fea1 AM |
592 | 2020-03-02 Aaron Merey <amerey@redhat.com> |
593 | ||
594 | * binutils/testsuite/binutils-all/debuginfod.exp: Improve port | |
595 | selection. | |
596 | ||
ba3265d0 NC |
597 | 2020-03-02 Nick Clifton <nickc@redhat.com> |
598 | ||
599 | PR 25543 | |
600 | * readelf.c (dump_section_as_strings): Display new-line characters | |
601 | as \n and then insert a line break. | |
602 | * testsuite/binutils-all/pr25543.s: New test. | |
603 | * testsuite/binutils-all/pr25543.d: Test driver. | |
604 | * testsuite/binutils-all/readelf.exp: Run the new test. | |
605 | ||
736990c4 NC |
606 | 2020-02-27 Nick Clifton <nickc@redhat.com> |
607 | ||
608 | PR 25526 | |
609 | * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if | |
610 | get_data is unable to load the string table. | |
611 | ||
dc1e8a47 AM |
612 | 2020-02-26 Alan Modra <amodra@gmail.com> |
613 | ||
614 | * elfedit.c: Indent labels correctly. | |
615 | * readelf.c: Likewise. | |
616 | * resres.c: Likewise. | |
617 | ||
ecda9016 L |
618 | 2020-02-25 H.J. Lu <hongjiu.lu@intel.com> |
619 | ||
620 | PR binutils/25584 | |
621 | * ar.c (main): Pass 0 to bfd_plugin_set_program_name. | |
622 | * nm.c (main): Pass 1 to bfd_plugin_set_program_name. | |
623 | ||
83d4d556 NC |
624 | 2020-02-24 Nick Clifton <nickc@redhat.com> |
625 | ||
626 | PR 25499 | |
627 | * doc/binutils.texi (objdump): Fix typo in description of | |
628 | objdump's -g option. | |
629 | ||
bd0cf5a6 NC |
630 | 2020-02-20 Nelson Chu <nelson.chu@sifive.com> |
631 | ||
632 | * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR | |
633 | is changed. | |
634 | ||
741cb839 EC |
635 | 2020-02-19 Jordan Rupprecht <rupprecht@google.com> |
636 | ||
637 | * objdump.c (show_line): call bfd_demangle when using do_demangle. | |
638 | ||
9f1528a1 AB |
639 | 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com> |
640 | ||
641 | * configure: Regenerate. | |
642 | ||
3a5d12fb FS |
643 | 2020-02-10 Fangrui Song <maskray@google.com> |
644 | ||
645 | * objcopy.c (parse_flags): Handle "exclude". | |
646 | * doc/binutils.texi: Document the support. | |
647 | ||
678d457f AM |
648 | 2020-02-10 Aaron Merey <amerey@redhat.com> |
649 | ||
650 | * binutils/testsuite/binutils-all/debuginfod.exp: | |
651 | Replace set ::env with setenv. | |
46471187 AM |
652 | Start server before setting environment variable. |
653 | Specify tmpdir as the location of the server's | |
654 | database. | |
655 | Check additional server metrics at start-up. | |
678d457f | 656 | |
e8319fde NC |
657 | 2020-02-07 Nick Clifton <nickc@redhat.com> |
658 | ||
659 | * README-how-to-make-a-release: Add note about updating the | |
660 | GAS/NEWS URL in the next release. | |
661 | ||
9fc0b501 SB |
662 | 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com> |
663 | ||
664 | PR 25469 | |
665 | * readelf.c (get_machine_flags): Add support for Z80N machine | |
666 | number. | |
667 | ||
e1104d08 NC |
668 | 2020-02-07 Nick Clifton <nickc@redhat.com> |
669 | ||
670 | * dwarf.c (display_debug_lines_decoded): Force a NUL termination | |
671 | of the truncated file name. | |
672 | ||
c2e6f744 | 673 | 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com> |
ece12829 TT |
674 | |
675 | * objdump.c (print_jump_visualisation): New function. | |
676 | (disassemble_bytes): Call new function. | |
677 | ||
02e0be69 AM |
678 | 2020-02-06 Alan Modra <amodra@gmail.com> |
679 | ||
680 | * testsuite/lib/binutils-common.exp (match_target): Accept '!' before | |
681 | TCL procedure. | |
682 | (supports_gnu_osabi): New procedure. | |
683 | (is_generic): New, from ld-lib.exp. | |
684 | (supports_gnu_unique): Use the above. | |
685 | ||
e8b79122 AM |
686 | 2020-02-04 Alan Modra <amodra@gmail.com> |
687 | ||
688 | * Makefile.am (CFILES): Add od-elf32_avr.c. | |
689 | * Makefile.in: Regenerate. | |
690 | * po/POTFILES.in: Regenerate. | |
691 | ||
27a45f42 AS |
692 | 2020-02-03 Andreas Schwab <schwab@linux-m68k.org> |
693 | ||
694 | * readelf.c (dump_relocations, dump_relocations) | |
695 | (decode_arm_unwind_bytecode, process_dynamic_section) | |
696 | (get_symbol_visibility, get_alpha_symbol_other): Add newline to | |
697 | error message. | |
698 | ||
0b398d69 ST |
699 | 2020-02-03 Sergei Trofimovich <siarheit@google.com> |
700 | ||
701 | * coffdump.c (program_name): Drop redundant definition. | |
702 | * srconv.c (program_name): Likewise | |
703 | * sysdump.c (program_name): Likewise | |
704 | ||
a8c4d40b L |
705 | 2020-02-02 H.J. Lu <hongjiu.lu@intel.com> |
706 | ||
707 | PR gas/25380 | |
708 | * objdump.c (sym_ok): Return FALSE if 2 sections are in the | |
709 | same file with different section pointers. | |
710 | ||
cb6ad9bb NC |
711 | 2020-02-01 Nick Clifton <nickc@redhat.com> |
712 | ||
713 | * README-how-to-make-a-release: Update with more details on the | |
714 | release making process. | |
715 | ||
53943f32 NC |
716 | 2020-01-31 Nick Clifton <nickc@redhat.com> |
717 | ||
718 | * po/sv.po: Updated Swedish translation. | |
719 | ||
55be8fd0 NC |
720 | 2020-01-28 Nick Clifton <nickc@redhat.com> |
721 | ||
722 | * readelf.c (get_build_id): Simplify warning message about corrupt | |
723 | notes encountered whilst scanning for the build-id. | |
724 | ||
82ef9cad RM |
725 | 2020-01-27 Roland McGrath <mcgrathr@google.com> |
726 | ||
727 | * objcopy.c (compare_gnu_build_notes): Fix comparison results | |
728 | for overlapping ranges so that (A == B) == (B == A) holds. | |
729 | ||
e3696f67 AM |
730 | 2020-01-27 Alan Modra <amodra@gmail.com> |
731 | ||
732 | * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace | |
733 | case statement with switch statement. | |
734 | ||
2f796de6 NC |
735 | 2020-01-24 Nick Clifton <nickc@redhat.com> |
736 | ||
737 | * readelf.c (get_build_id): Fix warning messages about corrupt | |
738 | notes. | |
739 | ||
24e648d4 NC |
740 | 2020-01-23 Nick Clifton <nickc@redhat.com> |
741 | ||
742 | * po/fr.po: Updated French translation. | |
743 | ||
c48acf6f YC |
744 | 2020-01-22 Yuri Chornoivan <yurchor@mageia.org> |
745 | ||
746 | PR 25417 | |
747 | * readelf.c (get_alpha_symbol_other): Fix error message typo. | |
748 | ||
26916852 NC |
749 | 2020-01-20 Nick Clifton <nickc@redhat.com> |
750 | ||
751 | * po/pt.po: Updated Portuguese translation. | |
752 | * po/uk.po: Updated Ukranian translation. | |
753 | ||
b248e9ce NC |
754 | 2020-01-18 Nick Clifton <nickc@redhat.com> |
755 | ||
756 | * README-how-to-make-a-release: Update notes on how to cut a | |
757 | branch for a release. | |
758 | ||
1b1bb2c6 NC |
759 | 2020-01-18 Nick Clifton <nickc@redhat.com> |
760 | ||
761 | * configure: Regenerate. | |
762 | * po/binutils.pot: Regenerate. | |
763 | ||
ae774686 NC |
764 | 2020-01-18 Nick Clifton <nickc@redhat.com> |
765 | ||
766 | Binutils 2.34 branch created. | |
767 | ||
82a9ed20 TT |
768 | 2020-01-17 Thomas Troeger <tstroege@gmx.de> |
769 | ||
770 | * objdump.c (jump_info_visualize_address): Discard jumps that are | |
771 | no longer needed. | |
772 | (disassemble_bytes): Only compute the maximum level if jumps were | |
773 | detected. | |
774 | ||
6a1939f5 NC |
775 | 2020-01-13 Nick Clifton <nickc@redhat.com> |
776 | ||
c87c17c1 | 777 | * objdump.c (disassemble_bytes): Remove C99-ism. |
6a1939f5 NC |
778 | * testsuite/binutils-all/debuginfod.exp: New tests. |
779 | ||
1d67fe3b TT |
780 | 2020-01-13 Thomas Troeger <tstroege@gmx.de> |
781 | ||
782 | * objdump.c (visualize_jumps, color_output, extended_color_output) | |
783 | (detected_jumps): New variables. | |
784 | (usage): Add the new jump visualization options. | |
785 | (option_values): Add new option value. | |
786 | (long_options): Add the new option. | |
787 | (jump_info_new, jump_info_free): New functions. | |
788 | (jump_info_min_address, jump_info_max_address): Likewise. | |
789 | (jump_info_end_address, jump_info_is_start_address): Likewise. | |
790 | (jump_info_is_end_address, jump_info_size): Likewise. | |
791 | (jump_info_unlink, jump_info_insert): Likewise. | |
792 | (jump_info_add_front, jump_info_move_linked): Likewise. | |
793 | (jump_info_intersect, jump_info_merge): Likewise. | |
794 | (jump_info_sort, jump_info_visualize_address): Likewise. | |
795 | (disassemble_jumps): New function - used to locate jumps. | |
796 | (disassemble_bytes): Add ascii art generation. | |
797 | (disassemble_section): Add scan to locate jumps. | |
798 | (main): Parse the new visualization option. | |
799 | * doc/binutils.texi: Document the new feature. | |
800 | * NEWS: Mention the new feature. | |
801 | ||
a788aedd AM |
802 | 2020-01-13 Alan Modra <amodra@gmail.com> |
803 | ||
a4f2b7c5 AM |
804 | PR 25360 |
805 | PR 25361 | |
a788aedd AM |
806 | * dwarf.c (display_debug_frames): Move fde_fc earlier. Free |
807 | fde_fc col_type and col_offset. | |
808 | * readelf.c (apply_relocations): Move symsec check earlier. | |
809 | (free_debug_section): Free reloc_info. | |
810 | (process_notes_at): Free pnotes on error path. | |
811 | (process_object): Free dump_sects here.. | |
812 | (process_archive): ..not here. | |
813 | ||
805f38bc AM |
814 | 2020-01-13 Alan Modra <amodra@gmail.com> |
815 | ||
816 | PR 25362 | |
817 | * nm.c (display_rel_file): Free dyn_syms. | |
818 | ||
ffebb0bb NC |
819 | 2020-01-09 Nick Clifton <nickc@redhat.com> |
820 | ||
821 | PR 25220 | |
822 | * objcopy.c (empty_name): New variable. | |
823 | (need_sym_before): Prevent an attempt to free a static variable. | |
824 | (filter_symbols): Avoid strcmp test by checking for pointer | |
825 | equality. | |
826 | ||
ade4fd9b NC |
827 | 2020-01-09 Nick Clifton <nickc@redhat.com> |
828 | ||
829 | * po/zh_TW.po: Updated Traditional Chinese translation. | |
830 | ||
831 | 2020-01-09 Aaron Merey <amerey@redhat.com> | |
832 | ||
833 | * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod. | |
834 | * Makefile.in: Regenerate. | |
835 | * NEWS: Update. | |
836 | * config.in: Regenerate. | |
837 | * configure: Regenerate. | |
838 | * configure.ac: Call AC_DEBUGINFOD. | |
839 | * doc/Makefile.in: Regenerate. | |
840 | * doc/binutils.texi: Add section on using binutils | |
841 | with debuginfod. | |
842 | * dwarf.c (debuginfod_fetch_separate_debug_info): New function. | |
843 | Query debuginfod servers for the target debug file. | |
844 | (load_separate_debug_info): Call | |
845 | debuginfod_fetch_separate_debug_info if configured with | |
846 | debuginfod. | |
847 | (load_separate_debug_files): Add file argument to | |
848 | load_separate_debug_info calls. | |
849 | * dwarf.h (get_build_id): Add declaration. | |
850 | * objdump.c (get_build_id): New function. Get build-id of file. | |
851 | * readelf.c (get_build_id): Likewise. | |
852 | * testsuite/binutils-all/debuginfod.exp: New tests. | |
853 | * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id | |
854 | section. | |
855 | ||
6655dba2 SB |
856 | 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com> |
857 | ||
858 | * readelf.c: Add support for new Z*) relocations and machine | |
859 | types. | |
860 | ||
b14ce8bf AM |
861 | 2020-01-01 Alan Modra <amodra@gmail.com> |
862 | ||
863 | Update year range in copyright notice of all files. | |
864 | ||
0b114740 | 865 | For older changes see ChangeLog-2019 |
3499769a | 866 | \f |
0b114740 | 867 | Copyright (C) 2020 Free Software Foundation, Inc. |
3499769a AM |
868 | |
869 | Copying and distribution of this file, with or without modification, | |
870 | are permitted in any medium without royalty provided the copyright | |
871 | notice and this notice are preserved. | |
872 | ||
873 | Local Variables: | |
874 | mode: change-log | |
875 | left-margin: 8 | |
876 | fill-column: 74 | |
877 | version-control: never | |
878 | End: |