MIPS/binutils/testsuite: Bail out right away if !ELF
[deliverable/binutils-gdb.git] / binutils / ChangeLog
1 2017-05-19 Maciej W. Rozycki <macro@imgtec.com>
2
3 * testsuite/binutils-all/mips/mips.exp: Bail out right away if
4 non-ELF.
5
6 2017-05-18 Alan Modra <amodra@gmail.com>
7
8 * strings.c: Don't compare boolean values against TRUE or FALSE.
9
10 2017-05-15 Jeff Law <law@redhat.com>
11
12 * readelf.c (display_arc_attribute): Avoid implicit fallthru.
13
14 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
15
16 * testsuite/binutils-all/mips/mips16-undecoded.d: Add `-mips3'
17 to `as' flags.
18 * testsuite/binutils-all/mips/mips16e2-undecoded.d: New test.
19 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: New test.
20 * testsuite/binutils-all/mips/mips16-undecoded.s: Remove
21 `.module mips3'.
22 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
23
24 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
25
26 * readelf.c (print_mips_ases): Handle MIPS16e2 ASE.
27 * NEWS: Mention MIPS16e2 ASE support.
28
29 2017-05-12 Maciej W. Rozycki <macro@imgtec.com>
30
31 * testsuite/binutils-all/mips/mips16-extend-insn.d: Adjust BREAK
32 and SDBBP disassembly.
33
34 2017-05-10 Maciej W. Rozycki <macro@imgtec.com>
35
36 * testsuite/binutils-all/mips/mips.exp: Define `tempfile' and
37 `copyfile' variables.
38
39 2017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
40
41 * readelf.c (decode_ARC_machine_flags): Recognize OSABI v4.
42 (get_arc_section_type_name): New function.
43 (get_section_type_name): Use the above function.
44 (display_arc_attribute): New function.
45 (process_arc_specific): Likewise.
46 (process_arch_specific): Handle ARC specific information.
47
48 2017-05-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
49
50 * MAINTAINERS (SH): Remove myself as SH maintainer.
51
52 2017-05-02 H.J. Lu <hongjiu.lu@intel.com>
53
54 * objcopy.c (merge_gnu_build_notes): Cast relcount to unsigned
55 long when comparing with sec->reloc_count.
56
57 2017-05-02 Nick Clifton <nickc@redhat.com>
58
59 * objcopy.c (merge_gnu_build_notes): Disable merge if there are
60 more internal relocs than external relocs.
61
62 2017-05-02 Maciej W. Rozycki <macro@imgtec.com>
63
64 * testsuite/binutils-all/mips/mips16-undecoded.d: Adjust the
65 disassembly of PC-relative LA and LW synthetic instructions.
66
67 2017-05-02 Nick Clifton <nickc@redhat.com>
68
69 PR 21440
70 * objdump.c (dump_relocs_in_section): Check for an excessive
71 number of relocs before attempting to dump them.
72
73 2017-05-01 Alan Modra <amodra@gmail.com>
74
75 * objcopy.c (merge_gnu_build_notes): Correct code deleting
76 relocs.
77
78 2017-04-28 Nick Clifton <nickc@redhat.com>
79
80 PR binutils/21439
81 * readelf.c (print_gnu_build_attribute_name): Allow for an empty
82 name field.
83
84 2017-04-28 Nick Clifton <nickc@redhat.com>
85
86 PR binutils/21437
87 * readelf.c (process_version_sections): Check for underflow when
88 computing the start address of the auxillary version data.
89
90 2017-04-28 Nick Clifton <nickc@redhat.com>
91
92 PR binutils/21438
93 * dwarf.c (process_extended_line_op): Do not assume that the
94 string extracted from the section is NUL terminated.
95 (fetch_indirect_string): If the string retrieved from the section
96 is not NUL terminated, return an error message.
97 (fetch_indirect_line_string): Likewise.
98 (fetch_indexed_string): Likewise.
99
100 2017-04-26 Nick Clifton <nickc@redhat.com>
101
102 PR binutils/21433
103 * bucomm.c (get_file_size): Return -1 if file_name is NULL.
104 * ar.c (main): Fail with usage() invocation if no file names are
105 provided.
106
107 2017-04-26 Nick Clifton <nickc@redhat.com>
108
109 * readelf.c (process_section_headers): Warn about overlarge
110 sections.
111 (print_gnu_build_attribute_name): Print the number of unrecognised
112 note types. Fix formatting in the presence of errors.
113 (testsuite/binutils-all/note-2-32.s): Fix encoding of numeric notes.
114 (testsuite/binutils-all/note-2-64.s): Likewise.
115
116 2017-04-26 Maciej W. Rozycki <macro@imgtec.com>
117
118 * readelf.c (process_mips_specific): Add static GOT support.
119
120 2017-04-25 Maciej W. Rozycki <macro@imgtec.com>
121
122 * readelf.c (process_mips_specific): Remove error reporting from
123 GOT[1] processing.
124
125 2017-04-25 Maciej W. Rozycki <macro@imgtec.com>
126
127 * readelf.c (process_mips_specific): Remove null GOT data check.
128
129 2017-04-25 Maciej W. Rozycki <macro@imgtec.com>
130
131 * testsuite/binutils-all/mips/mips16-alias.d: New test.
132 * testsuite/binutils-all/mips/mips16-noalias.d: New test.
133 * testsuite/binutils-all/mips/mips16-alias.s: New test source.
134 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
135
136 2017-04-23 Alan Modra <amodra@gmail.com>
137
138 PR 21418
139 * ar.c (main): Check -a, -b, -i and -N args are given.
140
141 2017-04-23 Alan Modra <amodra@gmail.com>
142
143 PR 21417
144 * ar.c (main): Check that an archive file is given after options.
145
146 2017-04-23 Alan Modra <amodra@gmail.com>
147
148 PR 21415
149 * objdump.c (disassemble_section): Check bfd_get_section_contents
150 status.
151
152 2017-04-23 Alan Modra <amodra@gmail.com>
153
154 PR 21408
155 * dwarf.c (display_debug_lines_decoded): Don't segfault on NULL
156 file_table.
157
158 2017-04-21 Nick Clifton <nickc@redhat.com>
159
160 PR binutils/21378
161 * readelf.c (print_gnu_build_attribute_name): Check for an
162 overlarge name field.
163
164 2017-04-13 Nick Clifton <nickc@redhat.com>
165
166 PR binutils/21379
167 * readelf.c (process_dynamic_section): Detect over large section
168 offsets in the DT_SYMTAB entry.
169
170 2017-04-13 Nick Clifton <nickc@redhat.com>
171
172 PR binutils/21345
173 * readelf.c (process_mips_specific): Catch an unfeasible memory
174 allocation before it happens and print a suitable error message.
175
176 2017-04-13 Nick Clifton <nickc@redhat.com>
177
178 * objcopy.c: Add --no-merge-notes option to disable note merging.
179 Add --[no-]merge-notes option to strip, and enable it by default.
180 (num_bytes): New function.
181 (merge_gnu_build_notes): Add code to merge stack size notes.
182 * binutils.texi: Update strip and objcopy documentation.
183 * readelf.c (print_gnu_build_attribute_name): Use defined
184 constants for note types.
185
186 2017-04-10 John Delsignor <john.delsignore@roguewave.com>
187
188 PR binutils/21319
189 * dwarf.c (display_gdb_index): Correct test for a corrupt address
190 table size.
191
192 2017-04-05 Jiong Wang <jiong.wang@arm.com>
193
194 * objcopy.c (struct redefine_node): Delete the field "next".
195 (redefine_sym_list): Deleted.
196 (redefine_specific_htab): New hash table.
197 (redefine_specific_reverse_htab): Likewise.
198 (eq_string_redefnode): New function.
199 (htab_hash_redefnode): Likewise.
200 (create_symbol2redef_htab): Likewise.
201 (add_specific_symbol_node): Likewise.
202 (create_symbol_htabs): Create redefine_specific_htab and
203 redefine_specific_reverse_htab.
204 (lookup_sym_redefinition): Use hash table instead of list.
205 (redefine_list_append): Likewise, and rename to add_redefine_and_check.
206 (copy_main): Use redefine_specific_htab instead of redefine_sym_list.
207 Update comments.
208
209 2017-04-04 H.J. Lu <hongjiu.lu@intel.com>
210
211 * NEWS: Mention support for ELF SHF_GNU_MBIND and
212 PT_GNU_MBIND_XXX.
213 * readelf.c (get_segment_type): Handle PT_GNU_MBIND_XXX.
214 (get_elf_section_flags): Handle SHF_GNU_MBIND.
215 (process_section_headers): Likewise.
216 * testsuite/binutils-all/mbind1.s: New file.
217 * testsuite/binutils-all/objcopy.exp: Run readelf test on
218 mbind1.s.
219
220 2017-04-03 Nick Clifton <nickc@redhat.com>
221
222 PR binutils/21345
223 * readelf.c (get_program_headers): Check for there being too many
224 program headers before attempting to allocate space for them.
225
226 2017-04-03 Nick Clifton <nickc@redhat.com>
227
228 PR binutils/21344
229 * readelf.c (process_mips_specific): Check for an out of range GOT
230 entry before reading the module pointer.
231
232 2017-04-03 Nick Clifton <nickc@redhat.com>
233
234 PR binutils/21343
235 * readelf.c (get_unwind_section_word): Fix snafu checking for
236 invalid word offsets in ARM unwind information.
237
238 2017-03-31 Pip Cet <pipcet@gmail.com>
239
240 * NEWS: Use "WebAssembly" consistently.
241 * testsuite/binutils-all/wasm32/wasm32.exp: Fix copyright notice.
242
243 2017-03-30 Pip Cet <pipcet@gmail.com>
244
245 * readelf.c: Add support for wasm32 ELF format WebAssembly files.
246 (guess_is_rela): Likewise.
247 (dump_relocations): Likewise.
248 (is_32bit_abs_reloc): Likewise.
249 (is_none_reloc_): Likewise.
250 * NEWS: Mention the new support.
251 * testsuite/lib/binutils-common.exp (is_elf_format): Mark wasm32
252 as ELF target.
253 (supports_gnu_unique): Mark wasm32 as supporting STB_GNU_UNIQUE.
254 * testsuite/binutils-all/nm.exp: Mark wasm32 as requiring .size annotations.
255 * testsuite/binutils-all/wasm32: New directory.
256 * testsuite/binutils-all/wasm32/create-wasm.d: New file.
257 * testsuite/binutils-all/wasm32/create-wasm.s: Likewise.
258 * testsuite/binutils-all/wasm32/custom-section.d: Likewise.
259 * testsuite/binutils-all/wasm32/custom-section.s: Likewise.
260 * testsuite/binutils-all/wasm32/invalid-wasm-1.d: Likewise.
261 * testsuite/binutils-all/wasm32/invalid-wasm-1.s: Likewise.
262 * testsuite/binutils-all/wasm32/long-sections.d: Likewise.
263 * testsuite/binutils-all/wasm32/long-sections.s: Likewise.
264 * testsuite/binutils-all/wasm32/parse-wasm.d: Likewise.
265 * testsuite/binutils-all/wasm32/parse-wasm.s: Likewise.
266 * testsuite/binutils-all/wasm32/parse-wasm-2.d: Likewise.
267 * testsuite/binutils-all/wasm32/parse-wasm-2.s: Likewise.
268 * testsuite/binutils-all/wasm32/prepared-section.d: Likewise.
269 * testsuite/binutils-all/wasm32/prepared-section.s: Likewise.
270 * testsuite/binutils-all/wasm32/wasm32.exp: New file, run tests.
271
272 2017-03-29 Alan Modra <amodra@gmail.com>
273
274 * doc/binutils.texi (objdump): Document PowerPC -M options.
275
276 2017-03-21 Andi Kleen <ak@linux.intel.com>
277
278 * objdump.c (unwind_inlines): Add.
279 (option_values): Add OPTION_INLINES.
280 (show_line): Unwind inlines if requested.
281 (main): Parse OPTION_INLINES.
282 (usage): Document --inlines.
283 * doc/binutils.texi: Document --inlines.
284 * NEWS: Likewise.
285
286 2017-03-21 Nick Clifton <nickc@redhat.com>
287
288 * readelf.c (print_gnu_build_attribute_name): Allow stack
289 protection notes to contain numeric values. Use a colon rather
290 than a space to separate a string name from its values. Decode
291 the numeric value of a stack protection note.
292 * objcopy.c (merge_gnu_build_notes): Allow version notes to
293 contain extra text after the protocol version number.
294
295 2017-03-20 Mark Wielaard <mark@klomp.org>
296
297 * readelf.c (process_program_headers): Move dynamic_addr check
298 after .dynamic section cross check.
299
300 2017-03-17 Nick Clifton <nickc@redhat.com>
301
302 * readelf.c (print_gnu_build_attribute_name): Fix off by one error
303 printing the value for a build note with an ascii name.
304
305 2017-03-16 Nick Clifton <nickc@redhat.com>
306
307 * readelf.c (print_gnu_build_attribute_name): Add support for
308 GNU_BUILD_ATTRIBUTE_SHORT_ENUM.
309
310 2017-03-14 Nick Clifton <nickc@redhat.com>
311
312 * readelf.c (print_gnu_build_attribute_description): Move symbol
313 printing code to...
314 (print_symbol_for_build_attribute): New function. ...here.
315 Add to find the best symbol to associate with an OPEN note.
316 Add code to cache the symbol table and string table, so that they
317 are not loaded every time a note is displayed.
318 * testsuite/binutils-all/note-2-32.s: Add a function symbol.
319 * testsuite/binutils-all/note-2-64.s: Likewise.
320 * testsuite/binutils-all/note-2-32.d: Update expected note output.
321 * testsuite/binutils-all/note-2-64.d: Likewise.
322
323 2017-03-13 Alan Modra <amodra@gmail.com>
324 Taeung Song <treeze.taeung@gmail.com>
325
326 * objdump.c (update_source_path): Add abfd param. Add struct
327 stat var. Pass to try_print_file_open. Warn if source is more
328 recent than object.
329 (try_print_file_open, slurp_file): Add struct stat param to
330 return fstat.
331 (show_line): Call update_source_path with bfd.
332
333 2017-03-10 Chia-Hao Lo <fcamel@gmail.com>
334
335 PR binutils/21235
336 * objdump.c (main): Set do_wide with --wide.
337
338 2017-03-10 Nick Clifton <nickc@redhat.com>
339
340 * readelf.c (get_machine_name): Rearrange switch table in order of
341 increasing machine number. Add missing entries.
342
343 2017-03-08 H.J. Lu <hongjiu.lu@intel.com>
344
345 PR binutils/21231
346 * readelf.c (decode_x86_isa): Change argument to unsigned int.
347 (print_gnu_property_note): Retrieve property type and datasz as
348 4-byte integer. Consolidate property datasz check. Check
349 GNU_PROPERTY_LOPROC and GNU_PROPERTY_LOUSER.
350 * testsuite/binutils-all/i386/pr21231a.d: New file.
351 * testsuite/binutils-all/i386/pr21231a.s: Likewise.
352 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
353 * testsuite/binutils-all/i386/pr21231b.s: Likewise.
354 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
355 * testsuite/binutils-all/x86-64/pr21231a.s: Likewise.
356 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
357 * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
358
359 2017-03-06 Nick Clifton <nickc@redhat.com>
360
361 * readelf.c (print_gnu_build_attribute_name): Read byte values
362 from the name string as unsigned bytes.
363 (process_notes_at): Use memcpy to copy an unterminated name
364 string.
365
366 2017-03-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
367
368 * configure.ac (AC_CHECK_DECLS): Add asprintf.
369 * config.in: Regenerate.
370 * configure: Regenerate.
371
372 2017-03-02 Nick Clifton <nickc@redhat.com>
373
374 * readelf.c (print_gnu_build_attribute_description): Use global
375 symbols for OPEN attributes if at all possible.
376 * objcopy.c (is_merged_note_section): Support build note sections
377 without the SHF_GNU_BUILD_NOTE section flag set.
378
379 2017-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
380
381 * dwarf.c (debug_displays_assert): New static assertion.
382
383 2017-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
384
385 * dwarf.h (enum dwarf_section_display_enum): Add loclists and rnglists.
386
387 2017-03-01 Nick Clifton <nickc@redhat.com>
388
389 * readelf.c (get_note_type): Add support for GNU_BUILD_NOTEs.
390 (get_gnu_elf_note_type): Add support for GNU_PROPERTY_NOTEs.
391 (decode_x86_isa): New function.
392 (print_gnu_property_note): New function.
393 (print_gnu_note): Handle GNU_PROPERTY_NOTEs.
394 (print_gnu_build_attribute_description): New function.
395 (print_gnu_build_attribute_name): New function.
396 (process_note): Add support for GNU_BUILD_NOTEs.
397 * objcopy.c (--merge-notes): New command line option.
398 (copy_options): Add merge-notes.
399 (copy_usage): Likewise.
400 (is_merge_note_section): New function.
401 (merge_gnu_build_notes): New function.
402 (copy_object): Merge note sections if asked to do so.
403 (skip_section): Add skip_copy parameter. Add support for skipping
404 merged note sections.
405 (copy_relocations_in_section): Update call to skip_section.
406 (copy_section): Likewise.
407 (copy_main): Add support for merge-notes option.
408 * doc/binutils.texi: Document the new option to objcopy.
409 * NEWS: Mention the new feature.
410 * testsuite/binutils-all/note-2-32.d: New test. Checks note
411 merging on 32-bit targets.
412 * testsuite/binutils-all/note-2-32.s: New test source file.
413 * testsuite/binutils-all/note-2-64.d: New test. Like note-2-32.d
414 but for 64-bit targets.
415 * testsuite/binutils-all/note-2-64.s: New test source file.
416 * testsuite/binutils-all/objcopy.exp: Run the new test.
417
418 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
419
420 * objdump.c (main): Use remove_whitespace_and_extra_commas.
421
422 2017-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
423
424 Fix compilation with GCC 4.4.7.
425 * dwarf.c (display_loclists_list, display_debug_rnglists_list):
426 Initialize begin and end.
427
428 2017-02-25 Alan Modra <amodra@gmail.com>
429
430 * testsuite/binutils-all/dw5.S: Replace .string with .asciz.
431 Support hpux .comm variant.
432 * testsuite/binutils-all/readelf.exp: Define HPUX when assembling
433 dw5 test for hppa64-hpux.
434
435 2017-02-24 Nick Clifton <nickc@redhat.com>
436
437 * readelf.c (show_name, do_dynamic, do_syms, do_dyn_syms,
438 (do_reloc, do_sections, do_section_groups, do_section_details,
439 (do_segments, do_unwind, do_using_dynamic, do_header, do_dump,
440 (do_version, do_histogram, do_debugging, do_arch, do_notes,
441 (do_archive_index, is_32bit_elf, decompress_dumps): Use
442 bfd_boolean type.
443 (parse_args): Treat the do_* variables as booleans.
444 (print_vma): Return an unsigned int.
445 (print_symbol): Change width parameter to signed int.
446 (is_ia64_vms): Change return type to bfd_boolean.
447 (guess_is_rela): Likewise.
448 (slurp_rela_relocs): Likewise.
449 (slurp_rel_relocs): Likewise.
450 (dump_relocations): Likewise.
451 (process_file_header): Likewise.
452 (get_program_headers): Likewise.
453 (process_program_headers): Likewise.
454 (process_section_headers): Likewise.
455 (process_section_groups): Likewise.
456 (dump_ia64_vms_dynamic_fixups): Likewise.
457 (dump_ia64_vms_dynamic_relocs): Likewise.
458 (process_ia64_vms_dynamic_relocs): Likewise.
459 (process_relocs): Likewise.
460 (dump_ia64_unwind): Likewise.
461 (ia64_process_unwind): Likewise.
462 (dump_hppa_unwind): Likewise.
463 (slurp_hppa_unwind_table): Likewise.
464 (hppa_process_unwind): Likewise.
465 (decode_arm_unwind_bytecode): Likewise.
466 (decode_tic6x_unwind_bytecode): Likewise.
467 (decode_arm_unwind): Likewise.
468 (dump_arm_unwind): Likewise.
469 (arm_process_unwind): Likewise.
470 (process_unwind): Likewise.
471 (get_32bit_dynamic_section): Likewise.
472 (get_64bit_dynamic_section): Likewise.
473 (process_dynamic_section): Likewise.
474 (process_version_sections): Likewise.
475 (process_symbol_table): Likewise.
476 (process_syminfo): Likewise.
477 (apply_relocations): Likewise.
478 (disassemble_section): Likewise.
479 (dump_section_as_strings): Likewise.
480 (dump_section_as_bytes): Likewise.
481 (load_specific_debug_section): Likewise.
482 (load_debug_section): Likewise.
483 (display_debug_section): Likewise.
484 (process_section_contents): Likewise.
485 (process_attributes): Likewise.
486 (process_nds32_specific): Likewise.
487 (process_gnu_liblist): Likewise.
488 (print_core_note): Likewise.
489 (print_gnu_note): Likewise.
490 (print_v850_note): Likewise.
491 (process_netbsd_elf_note): Likewise.
492 (print_stapsdt_note): Likewise.
493 (print_ia64_vms_note): Likewise.
494 (process_note): Likewise.
495 (process_notes_at): Likewise.
496 (process_corefile_note_segments): Likewise.
497 (process_v850_notes): Likewise.
498 (process_note_sections): Likewise.
499 (process_notes): Likewise.
500 (process_arch_specific): Likewise.
501 (get_file_header): Likewise.
502 (process_object): Likewise.
503 (process_archive): Likewise.
504 (process_file): Likewise.
505 (section_subset): Make static.
506 (get_mips_reg_size): Return a signed integer.
507 (process_object): Reverse the logic of the return value.
508 (process_archive): Likewise.
509 (process_file): Likewise.
510 (process_program_headers): Fix snafu - if the program headers are
511 not available then this is not a cause to fail.
512 (process_corefile_note_segments): Likewise.
513
514 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
515
516 * readelf.c (get_ver_flags): Tidy the formatting of the string
517 returned
518
519 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
520
521 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Make
522 `isum' unsigned.
523 <SHT_GNU_verneed>: Likewise.
524
525 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
526
527 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Limit
528 the number of entries processed by the section size. Don't
529 break out of the loop if `ent.vd_next' is 0.
530
531 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
532
533 * testsuite/binutils-all/dw5.S: New file.
534 * testsuite/binutils-all/dw5.W: New file.
535 * testsuite/binutils-all/readelf.exp (readelf -wiaoRlL): New test.
536
537 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
538
539 * dwarf.c (read_and_display_attr_value): Support DW_FORM_data16.
540
541 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
542
543 * dwarf.c (display_debug_macro): Support DWARF-5. Rename
544 DW_MACRO_GNU_*.
545
546 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
547
548 * dwarf.c (decode_location_expression): Support DW_OP_implicit_pointer,
549 DW_OP_const_type, DW_OP_regval_type, DW_OP_deref_type, DW_OP_convert
550 and DW_OP_reinterpret.
551 (read_and_display_attr_value): Support DW_AT_call_value,
552 DW_AT_call_data_value, DW_AT_call_target and
553 DW_AT_call_target_clobbered.
554
555 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
556
557 * dwarf.c (fetch_indirect_line_string): New function.
558 (abbrev_attr): New field implicit_const.
559 (add_abbrev_attr): New parameter implicit_const.
560 (process_abbrev_section): Support DW_FORM_implicit_const.
561 (decode_location_expression): Support DW_OP_entry_value.
562 (read_and_display_attr_value): Add parameter implicit_const. Support
563 DW_FORM_line_strp and DW_FORM_implicit_const.
564 (read_and_display_attr): Add parameter implicit_const.
565 (process_debug_info): Support line_str and DWARF-5.
566 (read_debug_line_header): Support DWARF-5.
567 (display_formatted_table): New function.
568 (display_debug_lines_raw): New parameter file. Support DWARF-5.
569 (display_debug_lines_decoded): New parameter fileptr. Support DWARF-5.
570 (display_debug_lines): Pass file parameter.
571 (display_debug_macro): Update read_and_display_attr_value caller.
572 (display_debug_abbrev): Support DW_FORM_implicit_const.
573 (display_loclists_list): New function.
574 (display_loc_list): Support .debug_loclists.
575 (display_debug_ranges_list): New function from display_debug_ranges.
576 (display_debug_rnglists_list): New function.
577 (display_debug_ranges): Support .debug_rnglists.
578 (debug_displays): Add .debug_line_str, .debug_loclists and
579 .debug_rnglists.
580 * dwarf.h: Include dwarf2.h
581 (DWARF2_Internal_LineInfo): Add li_offset_size.
582 (DWARF2_Internal_CompUnit): Add cu_unit_type.
583 (enum dwarf_section_display_enum): Add line_str.
584 * readelf.c (process_section_headers): Add rnglists and loclists.
585
586 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
587
588 * dwarf.c (display_block): Add parameter delimiter.
589 (decode_location_expression): Update display_block callers.
590 (read_and_display_attr_value): Add parameter delimiter.
591 (read_and_display_attr, display_debug_macro): Update
592 read_and_display_attr_value caller.
593
594 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
595
596 * dwarf.c (display_loc_list): Use dwarf_vma for offset, base_address
597 and off.
598 (display_loc_list_dwo): Use dwarf_vma for offset.
599 (display_debug_loc): Use dwarf_vma for offset, base_address.
600 (struct range_entry, range_entry_compar): Use dwarf_vma for
601 ranges_offset.
602 (display_debug_ranges): Use dwarf_vma for ranges_offset, offset and
603 base_address.
604
605 2017-02-23 Nick Clifton <nickc@redhat.com>
606
607 * readelf.c (display_tag_value): Use an explicit signed type for
608 the tag parameter.
609 (display_gnu_attributes): Use an unsigned integer type for
610 attribute tags.
611 (display_power_gnu_attribute): Likewise.
612 (display_s390_gnu_attribute): Likewise.
613 (display_sparc_hwcaps): Likewise.
614 (display_sparc_hwcaps2): Likewise.
615 (display_sparc_gnu_attribute): Likewise.
616 (display_mips_gnu_attribute): Likewise.
617 (display_tic6x_attribute): Likewise.
618 (display_raw_attribute): Likewise.
619 (process_attributes): Likewise.
620 (process_arm_specific): Delete redundant function.
621 (process_power_specific): Likewise.
622 (process_s390_specific): Likewise.
623 (process_sparc_specific): Likewise.
624 (process_tic6x_specific): Likewise.
625 (process_msp430x_specific): Likewise.
626 (display_public_gnu_attributes): New function. Displays known
627 information about an unknown gnu attribute.
628 (display_generic_attribute): New function. Calls
629 display_tag_value for non-nul tags.
630 (process_arch_specific): Call process_attributes even for
631 architectures not known to specifically support gnu attributes.
632
633 2017-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
634
635 * dwarf.c (decode_location_expression): Display also OP.
636
637 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
638
639 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Print a
640 new line between the heading and the first version definition
641 entry.
642
643 2017-02-20 Nick Clifton <nickc@redhat.com>
644
645 PR binutils/21156
646 * dwarf.c (cu_tu_indexes_read): Move into...
647 (load_cu_tu_indexes): ... here. Change the variable into
648 tri-state. Change the function into boolean, returning
649 false if the indicies could not be loaded.
650 (find_cu_tu_set): Return NULL if the indicies could not be
651 loaded.
652
653 2017-02-17 Nick Clifton <nickc@redhat.com>
654
655 PR binutils/21156
656 * readelf.c (find_section_in_set): Test for invalid section
657 indicies.
658
659 2017-02-17 Nick Clifton <nickc@redhat.com>
660
661 * readelf.c (get_section_type_name): Add decoding of GNU section
662 types.
663
664 2017-02-15 Nick Clifton <nickc@redhat.com>
665
666 * MAINTAINERS: (MIPS, MN10300): Move Eric Christopher to Past
667 Maintainers section.
668
669 2017-02-14 Nick Clifton <nickc@redhat.com>
670
671 PR binutils/21159
672 * readelf.c (dump_section_as_strings): Reset the start address if
673 no decompression is perfromed.
674 (dump_section_as_bytes): Likewise.
675
676 2017-02-14 Nick Clifton <nickc@redhat.com>
677
678 PR binutils/21158
679 * rddbg.c (read_symbol_stabs_debugging_info): Check for a null or
680 empty symbol name.
681
682 2017-02-14 Nick Clifton <nickc@redhat.com>
683
684 PR binutils/21157
685 * stabs.c (parse_stab_enum_type): Check for corrupt NAME:VALUE
686 pairs.
687 (parse_number): Exit early if passed an empty string.
688
689 2017-02-14 Nick Clifton <nickc@redhat.com>
690
691 PR binutils/21155
692 * readelf.c (IN_RANGE): New macro. Tests for an address + offset
693 being within a given range.
694 (target_specific_reloc_handling): Use macro to test for underflow
695 as well as overflow of reloc offset.
696
697 2017-02-13 Nick Clifton <nickc@redhat.com>
698
699 PR binutils/21150
700 * nm.c (file_symbol): Add test of string length before testing
701 string characters.
702
703 2017-02-13 Nick Clifton <nickc@redhat.com>
704
705 PR binutils/21135
706 * readelf.c (dump_section_as_bytes): Handle the case where
707 uncompress_section_contents returns false.
708 (dump_section_as_bytes, load_specific_debug_section): Likewise.
709
710 2017-02-13 Nick Clifton <nickc@redhat.com>
711
712 PR binutils/21149
713 * readelf.c (get_compression_header): Add size parameter. Check
714 size against sizeof compression header before attempting to
715 extract the header.
716 (process_section_headers): Pass size to get_compression_header.
717 (dump_section_as_strings): Likewise.
718 (dump_section_as_bytes): Likewise.
719 (load_specific_debug_section): Likewise.
720
721 2017-02-13 Nick Clifton <nickc@redhat.com>
722
723 PR binutils/21148
724 * readelf.c (process_version_sections): Include size of auxillary
725 version information when checking for buffer overflow.
726
727 2017-02-13 Nick Clifton <nickc@redhat.com>
728
729 PR binutils/21147
730 * readelf.c (process_section_contents): Fix off by one error
731 reporting un-dumped sections.
732
733 2017-02-13 Nick Clifton <nickc@redhat.com>
734
735 PR binutils/21139
736 * readelf.c (target_specific_reloc_handling): Add num_syms
737 parameter. Check for symbol table overflow before accessing
738 symbol value. If reloc pointer is NULL, discard all saved state.
739 (apply_relocations): Pass num_syms to target_specific_reloc_handling.
740 Call target_specific_reloc_handling with a NULL reloc pointer
741 after processing all of the relocs.
742
743 2017-02-13 Nick Clifton <nickc@redhat.com>
744
745 PR binutils/21137
746 * readelf.c (target_specific_reloc_handling): Add end parameter.
747 Check for buffer overflow before writing relocated values.
748 (apply_relocations): Pass end to target_specific_reloc_handling.
749
750 2017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
751 Nick Clifton <nickc@redhat.com>
752
753 PR 20343
754 * doc/binutils.texi (ar): Extend documentation of the --plugin
755 option. Include a description of where the plugins should be
756 located.
757 (nm): Likewise.
758
759 2017-01-23 Nick Clifton <nickc@redhat.com>
760
761 * MAINTAINERS: Add Bernd to Past Maintainers section.
762 (SCORE): Remove Mei Ligang as maintainer. Add to Past Maintainers
763 section.
764
765 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
766
767 * MAINTAINERS (BFIN): Remove myself as Blackfin maintainer.
768
769 2017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
770
771 * objdump.c (dump_section_header): Extract max section name length
772 from data parameter, use this when formatting output.
773 (find_longest_section_name): New function.
774 (dump_headers): Calculate longest section name when in wide mode,
775 reformat to unify printing of header line.
776
777 2017-01-18 Bernhard Rosenkranzer <bero@lindev.ch>
778
779 PR 21059
780 * arlex.l: Support processing with flex 2.6.3.
781 * deflex.l: Likewise.
782
783 2017-01-17 Dmitry Timoshkov <dmitry@baikal.ru>
784
785 * resbin.c: Optional dialog control data immediately follows
786 the control description without alignment.
787 * testsuite/binutils-all/windres/controldata.rc: New test.
788 source.
789 * testsuite/binutils-all/windres/controldata.rsd: New test.
790
791 2017-01-12 Nick Clifton <nickc@redhat.com>
792
793 PR binutils/20876
794 * NEWS: Mention the new feature.
795 * testsuite/binutils-all/objdump.exp (test_build_id_debuglink):
796 New proc to test the location of separate debug info files using
797 the build-id method.
798
799 2017-01-10 Nick Clifton <nickc@redhat.com>
800
801 PR 21034
802 * stabs.c (parse_stab_members): Fix thinko checking for g++
803 version 1 stabs information.
804
805 2017-01-09 Nick Clifton <nickc@redhat.com>
806
807 * objdump.c (display_file): Add new parameter 'last_file'. If
808 last_file is true, do not call bfd_close at the end of the
809 function.
810 (main): Set the value of the last_file parameter when calling
811 display_file.
812
813 2017-01-09 Alan Modra <amodra@gmail.com>
814
815 * readelf.c (process_section_headers): Correct .rel.dyn/.rela.dyn
816 comment.
817
818 2017-01-06 Nick Clifton <nickc@redhat.com>
819
820 * MAINTAINERS: Move Paul Brook to the Past Maintainers section.
821
822 2017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
823
824 PR 20958
825 * syslex.l (option): Add noyywrap
826 (yywrap): Delete.
827
828 2017-01-02 Alan Modra <amodra@gmail.com>
829
830 Update year range in copyright notice of all files.
831
832 For older changes see ChangeLog-2016
833 \f
834 Copyright (C) 2017 Free Software Foundation, Inc.
835
836 Copying and distribution of this file, with or without modification,
837 are permitted in any medium without royalty provided the copyright
838 notice and this notice are preserved.
839
840 Local Variables:
841 mode: change-log
842 left-margin: 8
843 fill-column: 74
844 version-control: never
845 End:
This page took 0.048062 seconds and 4 git commands to generate.