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