Properly handle note sections and segments
[deliverable/binutils-gdb.git] / binutils / ChangeLog
1 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR binutils/22490
4 * readelf.c (process_notes_at): Add an argument for note
5 alignment. If note alignment is less than 4, use 4 byte
6 alignment. Otherwise, skip notes if alignment isn't 4 nor
7 8 bytes.
8 (process_corefile_note_segments): Pass segment alignment to
9 process_notes_at.
10 (process_note_sections): Pass section alignment to
11 process_notes_at.
12 (process_object): Call load_separate_debug_file only if
13 e_shstrndx != SHN_UNDEF.
14
15 2017-11-27 Nick Clifton <nickc@redhat.com>
16
17 PR 22490
18 * readelf.c (dump_section_as_bytes): Check for a NULL string
19 section pointer.
20 (process_notes_at): Compute the alignment to use if displaying
21 notes from a segment.
22
23 2017-11-26 H.J. Lu <hongjiu.lu@intel.com>
24
25 * dwarf.c (load_separate_debug_info): Rename argument name from
26 link to xlink.
27
28 2017-11-24 H.J. Lu <hongjiu.lu@intel.com>
29
30 PR binutils/22444
31 * readelf.c (process_notes_at): Use ELF_NOTE_DESC_OFFSET to get
32 the offset of the note descriptor. Use ELF_NOTE_NEXT_OFFSET to
33 get the offset of the next note entry.
34
35 2017-11-23 Pavel I. Kryukov <kryukov@frtk.ru>
36
37 PR 22485
38 * readelf.c (process_archive): Use memset to initiaise
39 thin_filedata structure.
40
41 2017-11-21 H.J. Lu <hongjiu.lu@intel.com>
42
43 PR binutils/22451
44 * testsuite/binutils-all/x86-64/objects.exp: New file.
45 * testsuite/binutils-all/x86-64/pr22451.o.bz2: Likewise.
46
47 2017-11-21 Claudiu Zissulescu <claziss@synopsys.com>
48
49 * testsuite/binutils-all/arc/objdump.exp: Update pattern matching
50 expression.
51
52 2017-11-21 Nick Clifton <nickc@redhat.com>
53
54 * dwarf.c (dwo_name, dwo_dir, dwo_id, dwo_id_len): New variables.
55 (read_and_display_attr_value): Record dwo variables if requested.
56 (display_augmentation_data): Rename to display_data and make
57 generic.
58 (load_dwo_file): New function. Loads a separate dwarf object
59 file.
60 (load_separate_debug_file): Add reporting and loading of separate
61 dwarf objet files.
62 * readelf.c (process_section_headers): Add do_debug_links to list
63 of flags requiring a debug dump.
64 (display_debug_section): Tidy up code.
65 * doc/debug.options.texi: Add note that dwo links will also be
66 followed.
67 * testsuite/binutils-all/debuglink.s: Tidy code.
68 * testsuite/binutils-all/dwo.s: New test file.
69 * testsuite/binutils-all/readelf.wk2: New file - expected output
70 from readelf.
71 * testsuite/binutils-all/readelf.exp: Run the new test.
72
73 2017-11-18 Alan Modra <amodra@gmail.com>
74
75 PR 22443
76 * nm.c (sort_symbols_by_size): Don't attempt to access
77 section symbol internal_elf_sym.
78 (print_symbol): Likewise. Don't call bfd_get_symbol_version_string
79 for section symbols.
80 * objdump.c (compare_symbols): Don't attempt to access
81 section symbol internal_elf_sym.
82 (objdump_print_symname): Don't call bfd_get_symbol_version_string
83 for section symbols.
84
85 2017-11-17 Jim Wilson <jimw@sifive.com>
86
87 * readelf.c (elf/riscv.h): Alphabetize include.
88 (is_32bit_inplace_add_reloc, is_32bit_inplace_sub_reloc)
89 (is_64bit_inplace_add_reloc, is_64bit_inplace_sub_reloc)
90 (is_16bit_inplace_add_reloc, is_16bit_inplace_sub_reloc)
91 (is_8bit_inplace_add_reloc, is_8bit_inplace_sub_reloc): New.
92 (apply_relocations): New locals reloc_inplace and reloc_subtract.
93 Call the new functions and set the new locals. Call byte_get if
94 reloc_inplace. Subtract sym->st_value if reloc_subtract.
95
96 2017-11-17 Nick Clifton <nickc@redhat.com>
97
98 PR 22449
99 * ar.c (write_archive): Free the temporary file name.
100
101 2017-11-17 Nick Clifton <nickc@redhat.com>
102
103 * readelf.c (process_archive): Include member name in the
104 file_name of the filedata structure.
105
106 2017-11-15 Alan Modra <amodra@gmail.com>
107
108 PR 22426
109 * objcopy.c (copy_main): Free tmpname.
110
111 2017-11-15 Nick Clifton <nickc@redhat.com>
112
113 PR 15152
114 * dwarf.h (enum dwarf_section_display_enum): Add gnu_debuglink,
115 gnu_debugaltlink and separate_debug_str.
116 (struct dwarf_section): Add filename field.
117 Add prototypes for load_separate_debug_file, close_debug_file and
118 open_debug_file.
119 * dwarf.c (do_debug_links): New.
120 (do_follow_links): New.
121 (separate_debug_file, separate_debug_filename): New.
122 (fetch_alt_indirect_string): New function. Retrieves a string
123 from the debug string table in the separate debug info file.
124 (read_and_display_attr_value): Use it with DW_FORM_GNU_strp_alt.
125 (load_debug_section_with_follow): New function. Like
126 load_debug_section, but if the first attempt fails, then tries
127 again in the separate debug info file.
128 (introduce): New function.
129 (process_debug_info): Use load_debug_section_with_follow and
130 introduce.
131 (load_debug_info): Likewise.
132 (display_debug_lines_raw): Likewise.
133 (display_debug_lines_decoded): Likewise.
134 (display_debug_macinfo): Likewise.
135 (display_debug_macro): Likewise.
136 (display_debug_abbrev): Likewise.
137 (display_debug_loc): Likewise.
138 (display_debug_str): Likewise.
139 (display_debug_aranges): Likewise.
140 (display_debug_addr); Likewise.
141 (display_debug_frames): Likewise.
142 (display_gdb_index): Likewise.
143 (process_cu_tu_index): Likewise.
144 (load_cu_tu_indexes): Likewise.
145 (display_debug_links): New function. Displays the contents of a
146 .gnu_debuglink or .gnu_debugaltlink section.
147 (calc_gnu_debuglink_ctc32):New function. Calculates a CRC32
148 value.
149 (check_gnu_debuglink): New function. Checks the CRC of a
150 potential separate debug info file.
151 (parse_gnu_debuglink): New function. Reads a CRC value out of a
152 .gnu_debuglink section.
153 (check_gnu_debugaltlink): New function.
154 (parse_gnu_debugaltlink): New function. Reads the build-id value
155 out of a .gnu_debugaltlink section.
156 (load_separate_debug_info): New function. Finds and loads a
157 separate debug info file.
158 (load_separate_debug_file): New function. Attempts to find and
159 follow a link to a separate debug info file.
160 (free_debug_memory): Free the separate debug info file
161 information.
162 (opts_table): Add "follow-links" and "links".
163 (dwarf_select_sections_by_letters): Add "k" and "K".
164 (debug_displays): Reformat. Add .gnu-debuglink and
165 .gnu_debugaltlink.
166 Add an extra entry for .debug_str in a separate debug info file.
167 * doc/binutils.texi: Move description of debug dump features
168 common to both readelf and objdump into...
169 * objdump.c (usage): Add -Wk and -WK.
170 (load_specific_debug_section): Initialise the filename field in
171 the dwarf_section structure.
172 (close_debug_file): New function.
173 (open_debug_file): New function.
174 (dump_dwarf): Load and dump the separate debug info sections.
175 * readelf.c (struct filedata): New structure. Contains various
176 variables that used to be global:
177 (current_file_size, string_table, string_table_length, elf_header)
178 (section_headers, program_headers, dump_sects, num_dump_sects):
179 Move into filedata structure.
180 (cmdline): New global variable. Contains list of sections to dump
181 by number, as specified on the command line.
182 Add filedata parameter to most functions.
183 (load_debug_section): Load the string table if it has not already
184 been retrieved.
185 (close_file): New function.
186 (close_debug_file): New function.
187 (open_file): New function.
188 (open_debug_file): New function.
189 (process_object): Process sections in any separate debug info files.
190 * doc/debug.options.texi: New file. Add description of =links and
191 =follow-links options.
192 * NEWS: Mention the new feature.
193 * elfcomm.c: Have the byte get functions take a const pointer.
194 * elfcomm.h: Update prototypes.
195 * testsuite/binutils-all/dw5.W: Update expected output.
196 * testsuite/binutils-all/objdump.WL: Update expected output.
197 * testsuite/binutils-all/objdump.exp: Add test of -WK and -Wk.
198 * testsuite/binutils-all/readelf.exp: Add test of -wK and -wk.
199 * testsuite/binutils-all/readelf.k: New file.
200 * testsuite/binutils-all/objdump.Wk: New file.
201 * testsuite/binutils-all/objdump.WK2: New file.
202 * testsuite/binutils-all/linkdebug.s: New file.
203 * testsuite/binutils-all/debuglink.s: New file.
204
205 2017-11-10 Jim Wilson <jimw@sifive.com>
206
207 * testsuite/binutils-all/objdump.exp: Expect the debug_ranges test to
208 pass.
209
210 2017-11-07 Jim Wilson <jimw@sifive.com>
211
212 * MAINTAINERS (RISC-V): Fix typo in my email address.
213
214 2017-11-07 Palmer Dabbelt <palmer@sifive.com>
215
216 * MAINTAINERS (RISC-V): Add Jim Wilson as a maintainer.
217 Clean up Andrew's entry (remove trailing space, add tabs).
218 Change Palmer's email address, and clean up entry (add tabs).
219
220 2017-11-07 Alan Modra <amodra@gmail.com>
221
222 * dwarf.c (read_uleb128): Properly pluralize messages.
223 (display_debug_lines_raw, display_debug_loc): Likewise.
224 (display_debug_names, process_cu_tu_index): Likewise.
225 * od-macho.c (dump_code_signature_superblob): Likewise.
226 * readelf.c (process_program_headers): Likewise.
227 (process_section_header, process_relocs): Likewise.
228 (hppa_process_unwind, arm_process_unwind): Likewise.
229 (process_dynamic_section, process_version_sections): Likewise.
230 (process_symbol_table, process_syminfo): Likewise.
231 (apply_relocations, process_mips_specific): Likewise.
232 (process_gnu_liblist, process_notes_at): Likewise.
233 (process_archive): Likewise.
234 * testsuite/binutils-all/dw2-1.W,
235 * testsuite/binutils-all/dw2-3.W,
236 * testsuite/binutils-all/dw2-3gabi.W,
237 * testsuite/binutils-all/dw5.S,
238 * testsuite/binutils-all/dw5.W,
239 * testsuite/binutils-all/i386/compressed-1a.d,
240 * testsuite/binutils-all/libdw2-compressedgabi.out,
241 * testsuite/binutils-all/objdump.W,
242 * testsuite/binutils-all/readelf.r,
243 * testsuite/binutils-all/readelf.r-64,
244 * testsuite/binutils-all/x86-64/compressed-1a.d: Update
245 for pluralization fixes.
246
247 2017-11-07 Alan Modra <amodra@gmail.com>
248
249 * sysdep.h (textdomain, bindtextdomain): Use safer "do nothing".
250 (ngettext, dngettext, dcngettext): Define when !ENABLE_NLS.
251
252 2017-11-03 Claudiu Zissulescu <claziss@synopsys.com>
253
254 * doc/binutils.texi (ARC): Update disassembler options.
255 * testsuite/binutils-all/arc/hexprint.s: New file.
256 * testsuite/binutils-all/arc/objdump.exp: Test hex printing
257 feature.
258
259 2017-11-03 Mingi Cho <mgcho.minic@gmail.com>
260 Nick Clifton <nickc@redhat.com>
261
262 PR 22386
263 * dwarf.c (read_cie): Use bfd_size_type for
264 augmentation_data_len.
265 (display_augmentation_data): New function.
266 (display_debug_frames): Use it.
267 Check for integer overflow when testing augmentation_data_len.
268
269 2017-11-02 Mingi Cho <mgcho.minic@gmail.com>
270
271 PR 22384
272 * readelf.c (print_gnu_property_note): Improve overflow checks so
273 that they will work on a 32-bit host.
274
275 2017-11-01 James Bowman <james.bowman@ftdichip.com>
276
277 * readelf.c (is_16bit_abs_reloc): Add entry for FT32.
278
279 2017-10-31 Nick Clifton <nickc@redhat.com>
280
281 * readelf.c (process_relocs): Tell users if no static relocs were
282 found, but if they had added --use-dynamic to the command line
283 then relocs would have been displayed.
284
285 2017-10-28 Alan Modra <amodra@gmail.com>
286
287 PR 22361
288 * readelf.c (process_archive_index_and_symbols): Ensure ar_size
289 field is zero terminated for strtoul.
290 (setup_archive, get_archive_member_name): Likewise.
291
292 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
293
294 * dwarf.c (struct Frame_Chunk) <cfa_reg>: Change type to
295 unsigned int.
296 (display_debug_frames): Read CFA reg as an unsigned number.
297
298 2017-10-25 Alan Modra <amodra@gmail.com>
299
300 * nm.c (filter_symbols): Match "__gnu_lto_slim" optionally prefixed
301 with "_".
302
303 2017-10-18 Eric Botcazou <ebotcazou@adacore.com>
304
305 * MAINTAINERS: Add myself as Visium maintainer.
306
307 2017-10-18 Nick Clifton <nickc@redhat.com>
308
309 * README-how-to-make-a-release: A note about checking file and
310 directory permissions.
311
312 * MAINTAINERS: Move Svein Seldal to Past Maintainers section.
313
314 2017-10-18 Alan Modra <amodra@gmail.com>
315
316 PR 22303
317 * readelf.c (print_core_note): Ensure "count" sanity check
318 calculation doesn't overflow.
319 (process_notes_at): Perform note namesz and descsz checks
320 using unsigned comparisons against data remaining. Catch
321 alignment overflow of namesz and descsz too. Don't allocate a
322 temp for terminating "name" when there is space available
323 before descdata.
324
325 2017-10-17 Tom Tromey <tom@tromey.com>
326
327 * MAINTAINERS: Add myself as dwarf-mode.el maintainer.
328
329 2017-10-11 Peeter Joot <peeter.joot@lzlabs.com>
330 Nick Clifton <nickc@redhat.com>
331
332 * dwarf.c (read_and_display_attr_value): Handle DW_AT_endianity,
333 DW_END_default, DW_END_big, DW_END_little, DW_ATE_UCS,
334 DW_ATE_ASCII, DW_CC_pass_by_reference, DW_CC_pass_by_value,
335 DW_CC_GNU_renesas_sh, DW_CC_GNU_borland_fastcall_i386,
336 DW_AT_decimal_sign, DW_AT_defaulted, DW_AT_discr_list.
337 (get_TAG_name): Report user generated tag values.
338 * testsuite/binutils-all/dwarf-attributes.S: New test.
339 * testsuite/binutils-all/dwarf-attributes.W. Expected output from
340 readelf.
341 * testsuite/binutils-all/readelf.exp: Run the new test.
342
343 2017-10-10 Tom Tromey <tom@tromey.com>
344
345 * dwarf-mode.el: Bump to version 1.4.
346
347 2017-10-10 Tom Tromey <tom@tromey.com>
348
349 * dwarf-mode.el (dwarf--process, dwarf--deletion-region): New
350 defvar.
351 (dwarf--check-running, dwarf--sentinel, dwarf--invoke)
352 (dwarf--filter): New functions.
353 (dwarf-do-insert-substructure, dwarf-do-refresh): Call
354 dwarf--check-running, dwarf--invoke.
355 (dwarf-browse): Initialize new variables.
356
357 2017-10-10 Tom Tromey <tom@tromey.com>
358
359 * dwarf-mode.el: Set lexical-binding.
360
361 2017-10-10 Tom Tromey <tom@tromey.com>
362
363 * dwarf-mode.el (dwarf-mode-map): New defvar.
364
365 2017-10-10 Tom Tromey <tromey@sourceware.org>
366
367 PR 22249
368 * dwarf.c (process_debug_info): Skip any comp unit that ends
369 before dwarf_start_die.
370
371 2017-10-06 Alan Modra <amodra@gmail.com>
372
373 * dwarf.c (process_debug_info): Consolidate header length checks.
374 (display_debug_pubnames_worker): Use "start" to read header.
375 Properly check header length and report errors earlier.
376 Simplify loop printing pubnames.
377 (get_line_filename_and_dirname): Catch small negative "length"
378 values.
379 (display_debug_aranges): Likewise. Report header errors
380 earlier using standardized message.
381 (display_debug_names): Likewise.
382
383 2017-10-05 Joseph Myers <joseph@codesourcery.com>
384
385 * readelf.c (decode_arm_unwind): Initialize res to TRUE.
386
387 2017-10-05 Nick Clifton <nickc@redhat.com>
388
389 PR 22260
390 * objcopy.c (strip_main): Add 'M' character to short options list
391 when calling getopt_long.
392
393 2017-10-05 Nick Clifton <nickc@redhat.com>
394
395 PR 22262
396 * readelf.c (dump_relocations): Do not truncate reloc names when
397 displaying output in wide mode.
398
399 2017-10-05 Nick Clifton <nickc@redhat.com>
400
401 * README-how-to-make-a-release: Merge steps 3, 4 and 5, and insert
402 the git tag operation at the correct location.
403
404 2017-10-05 Alan Modra <amodra@gmail.com>
405
406 PR 22239
407 * dwarf.c (read_cie): Don't compare "start" and "end" pointers
408 after adding a possibly wild length to "start", compare the length
409 to the difference of the pointers instead. Remove now redundant
410 "negative" length test.
411
412 2017-10-05 Tristan Gingold <tgingold@free.fr>
413
414 * MAINTAINERS: Update email address. Redirect release maintainer
415 to global maitainers.
416
417 2017-10-01 Alan Modra <amodra@gmail.com>
418
419 PR 22232
420 PR 22230
421 * objdump.c (load_specific_debug_section): Introduce a temp to
422 stop bfd_get_full_section_contents NULLing out section->start.
423
424 2017-10-01 Alan Modra <amodra@gmail.com>
425
426 PR 22230
427 * objdump.c (load_specific_debug_section): Allocate an extra byte
428 for a terminating NUL.
429
430 2017-09-30 Alan Modra <amodra@gmail.com>
431
432 PR 21978
433 * objdump.c: Formatting.
434 (show_line): Reset prev_line when function name changes.
435
436 2017-09-27 Nick Clifton <nickc@redhat.com>
437
438 PR 22219
439 * dwarf.c (process_debug_info): Add a check for a negative
440 cu_length field.
441
442 2017-09-27 Alan Modra <amodra@gmail.com>
443
444 PR 22216
445 * readelf.c (process_symbol_table): Check that DT_HASH symbol
446 chains are only visited once, and report an error if not. Display
447 invalid symbol index if chain is out of range. Use the same logic
448 when calculating histograms rather than the PR 17531 fix. Delete
449 bogus check that chained index is less than number of buckets.
450
451 2017-09-26 Nick Clifton <nickc@redhat.com>
452
453 PR 22154
454 * dwarf.c (get_line_filename_and_dirname): Add extra checks for
455 buffer overruns.
456
457 2017-09-26 Nick Clifton <nickc@redhat.com>
458
459 * README-how-to-make-a-release: New file.
460
461 2017-09-26 Alan Modra <amodra@gmail.com>
462
463 PR 21732
464 * dwarf.c (READ_ULEB): Don't use DWARF_VMA_FMT in translated string.
465 (READ_SLEB): Likewise.
466 * readelf.c (bfd_vmatoa): New function.
467 (get_data, get_dynamic_data): Use it for printing error messages.
468
469 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
470
471 PR binutils/22203
472 * nm.c (display_rel_file): Free memory returned from
473 bfd_get_synthetic_symtab.
474
475 2017-09-22 Alexandre Oliva <aoliva@redhat.com>
476
477 * dwarf.h (debug_info): Add loc_views and num_loc_views.
478 * dwarf.c (vm1): New constant.
479 (print_dwarf_view): New function.
480 (read_and_display_attr_value): Support DW_AT_GNU_locviews.
481 (process_debug_info): Keep num_loc_offsets and num_loc_views
482 in sync.
483 (display_view_pair_list): New function.
484 (display_loc_list_dwo): Take vstart_ptr; update it. Dump
485 location view pairs before the range they apply to, when a
486 viewlist augments the loc list.
487 (display_loc_list): Likewise. Check view numbers in range
488 tests.
489 (display_loclists_list): Likewise. Handle view pair entries,
490 and warn on trailing ones.
491 (loc_views): New variable.
492 (loc_offsets_compar): Compare loc_views if loc_offsets are the
493 same.
494 (display_debug_loc): Check and sort loc_views too. Accept
495 loc_view as expected_start. Skip if lists and views are the
496 same. Dump locview list separately in order, and pass the
497 locview list base to each list dump function. Warn and skip
498 overlap and hole checking if we find loclists and locviews to
499 not be adjacent.
500 * testsuite/binutils-all/locview-1.s: New.
501 * testsuite/binutils-all/readelf.locview-1: New.
502 * testsuite/binutils-all/locview-2.s: New.
503 * testsuite/binutils-all/readelf.locview-2: New.
504 * testsuite/binutils-all/readelf.exp: Run new tests. Fix
505 option spelling in pr18374 fail message. XFAIL dw5 test on
506 nds32*-elf.
507
508 2017-09-22 Alan Modra <amodra@gmail.com>
509
510 * testsuite/binutils-all/readelf.exp: Don't perror and exit on
511 bintest.s assembly failure. Report tests unresolved instead.
512 Likewise for version note test, pr18374, decompress, and dw5
513 tests.
514 (readelf_test): Set testname to include both option and binary
515 file name. Use for pass/fail.
516
517 2017-09-21 Maciej W. Rozycki <macro@imgtec.com>
518
519 * readelf.c (get_machine_flags) <E_MIPS_MACH_5900>: New case.
520
521 2017-09-05 Nick Clifton <nickc@redhat.com>
522
523 PR 21995
524 * readelf.c (process_mips_specific): Add checks for a NULL data
525 pointer.
526
527 2017-09-05 Alexander Fedotov <alexander.fedotov@nxp.com>
528 Edmar Wienskoski <edmar.wienskoski@nxp.com
529
530 * readelf.c (get_elf_section_flags): Add VLE.
531 (process_section_headers): Add VLE key to details.
532
533 2017-08-25 Alan Modra <amodra@gmail.com>
534
535 PR 21994
536 * readelf.c (process_version_sections <SHT_GNU_verdef>): Check
537 vd_aux and vda_next for sanity. Delete "end". Correct overflow
538 checks.
539 (process_version_sections <SHT_GNU_verneed>): Correct overflow
540 check. Don't report invalid vna_next on overflow. Do report
541 invalid vna_next on size less than aux info.
542
543 2017-08-23 Alan Modra <amodra@gmail.com>
544
545 PR 21990
546 * readelf.c (process_version_sections <SHT_GNU_verneed>): Check
547 for invalid vn_next field before adding to idx. Use unsigned
548 long for index vars. Move index checks.
549 <SHT_GNU_verdef>: Likewise for vd_next.
550
551 2017-08-17 Nick Clifton <nickc@redhat.com>
552
553 * testsuite/binutils-all/note-3-64.s: New test. Checks assembly
554 and decoding of version2 GNU build attribute notes.
555 * testsuite/binutils-all/note-3-32.s: New test. 32-bit version of
556 the above test.
557 * testsuite/binutils-all/note-3-64.d: New test driver.
558 * testsuite/binutils-all/note-3-32.d: New test driver.
559 * testsuite/binutils-all/objcopy.exp: Run the new test.
560 * readelf.c (is_64bit_abs_reloc): Add R_SPARC_64.
561
562 2017-08-14 Gustavo Romero <gromero@linux.vnet.ibm.com>
563
564 * readelf.c (get_note_type): Handle PPC note types available
565 since Linux 4.8.
566
567 2017-08-12 Alan Modra <amodra@gmail.com>
568
569 * readelf.c (process_note): Qualify NT_GNU_BUILD_ATTRIBUTE notes
570 by name data.
571
572 2017-08-08 Nick Clifton <nickc@redhat.com>
573
574 PR 21909
575 * prdbg.c (pr_int_type): Increase size of local string buffer.
576 (pr_float_type): Likewise.
577 (pr_bool_type): Likewise.
578
579 2017-08-02 Nick Clifton <nickc@redhat.com>
580
581 PR 21702
582 * arsup.c (ar_addmod): Add plugin support for the MRI ADDMOD
583 command.
584
585 2017-08-02 Nick Clifton <nickc@redhat.com>
586
587 * testsuite/binutils-all/objdump.exp (cpus_expected): Add am33-2.
588
589 2017-08-02 Alan Modra <amodra@gmail.com>
590
591 * readelf.c (is_32bit_abs_reloc): Add R_IA64_SECREL32MSB and
592 R_IA64_DIR32MSB.
593 (is_64bit_abs_reloc): Add R_IA64_DIR64MSB.
594 (is_64bit_pcrel_reloc): Add R_IA64_PCREL64MSB.
595
596 2017-08-01 Nick Clifton <nickc@redhat.com>
597
598 * po/sv.po: Updated Swedish translation.
599
600 2017-07-31 Marty Plummer <ntzrmtthihu777@gmail.com>
601
602 PR 21861
603 * winduni.c (codepages): Use cp1252 for codepage 0.
604
605 2017-07-25 Nick Clifton <nickc@redhat.com>
606
607 PR 21820
608 * readelf.c (dump_section_as_strings): Do not fail if the section
609 was empty.
610 (dump_section_as_bytes): Likewise.
611
612 2017-07-24 Nick Clifton <nickc@redhat.com>
613
614 PR 21813
615 * rddbg.c (read_symbol_stabs_debugging_info): Check for an empty
616 string whilst concatenating symbol names.
617
618 2017-07-21 Nick Clifton <nickc@redhat.com>
619
620 * po/fr.po: Updated French translation.
621
622 2017-07-21 Simon Marchi <simon.marchi@ericsson.com>
623
624 * dwarf.c (last_pointer_size, warned_about_missing_comp_units):
625 Remove.
626 (load_debug_info): Remove assignments to those two variables.
627
628 2017-07-21 Alexandre Oliva <aoliva@redhat.com>
629
630 * dwarf.c (struct State_Machine_Registers): Add view field.
631 (reset_state_machine): Reset view.
632 (process_extended_line_op): Reset view when appropriate.
633 (display_debug_lines_raw): Increment or reset view when appropriate.
634 Print nonzero views. Support print view resets, disabled by default.
635 (display_debug_lines_decoded): Likewise. Disambiguate op_code tests,
636 enabling printing of end_sequence.
637 * testsuite/binutils-all/dw2-1.W: Add nonzero views.
638 * testsuite/binutils-all/dw2-3.W: Likewise.
639 * testsuite/binutils-all/dw2-3gabi.W: Likewise.
640 * testsuite/binutils-all/dw5.W: Add end sequence lines.
641 * testsuite/binutils-all/i386/compressed-1a.d: Add nonzero views.
642 * testsuite/binutils-all/libdw2-compressedgabi.out: Likewise.
643 * testsuite/binutils-all/objdump.W: Likewise.
644 * testsuite/binutils-all/objdump.WL: Add end sequence lines.
645 * testsuite/binutils-all/x86-64/compressed-1a.d: Add nonzero views.
646
647 2017-07-19 Tristan Gingold <gingold@adacore.com>
648
649 * nm.c (show_stats): Remove variable.
650 (long_options): Remove --stats option.
651 (main): Remove handling of --stats.
652
653 2017-07-18 Nick Clifton <nickc@redhat.com>
654
655 PR 21775
656 * coffgrok.c: Fix spelling typos.
657 * readelf.c: Likewise.
658 * stabs.c: Likewise.
659 * testsuite/binutils-all/objcopy.exp: Likewise.
660
661 2017-07-18 Nick Clifton <nickc@redhat.com>
662
663 * po/sv.po: Updated Swedish translation.
664
665 2017-07-18 Hans-Peter Nilsson <hp@bitrange.com>
666
667 * dwarf.c (display_debug_names): Initialize hash_prev.
668
669 2017-07-17 Nick Clifton <nickc@redhat.com>
670
671 PR 21433
672 * ar.c (main): Skip check for no files on the command line when
673 running in MRI mode.
674
675 2017-07-13 H.J. Lu <hongjiu.lu@intel.com>
676
677 * testsuite/binutils-all/objdump.exp: Always delete $testarchive
678 first.
679
680 2017-07-12 Alan Modra <amodra@gmail.com>
681
682 * po/bg.po: Update from translationproject.org/latest/binutils/.
683 * po/ca.po: Likewise.
684 * po/da.po: Likewise.
685 * po/es.po: Likewise.
686 * po/fi.po: Likewise.
687 * po/fr.po: Likewise.
688 * po/hr.po: Likewise.
689 * po/id.po: Likewise.
690 * po/it.po: Likewise.
691 * po/ja.po: Likewise.
692 * po/ro.po: Likewise.
693 * po/ru.po: Likewise.
694 * po/sk.po: Likewise.
695 * po/sr.po: Likewise.
696 * po/sv.po: Likewise.
697 * po/tr.po: Likewise.
698 * po/uk.po: Likewise.
699 * po/vi.po: Likewise.
700 * po/zh_CN.po: Likewise.
701 * po/zh_TW.po: Likewise.
702
703 2017-07-12 Nick Clifton <nickc@redhat.com>
704
705 Fix compile time warnings using gcc 7.1.1.
706 * dwarf.c (dwarf_vmatoa_1): Do not pass a NULL string pointer to
707 sprintf.
708 * srconv.c (walk_tree_type): Initialise the spare field of the
709 IT_dty structure.
710
711 2017-07-11 Andreas Schwab <schwab@suse.de>
712
713 * readelf.c (process_note): Print newline after description data
714 in narrow mode.
715 (print_core_note): Print newline if nothing was printed in wide
716 mode.
717
718 2017-07-09 Rafael Fontenelle <rafaelff@gnome.org>
719
720 * dwarf.c (display_formatted_table): Fix error message typo.
721
722 2017-07-07 John Baldwin <jhb@FreeBSD.org>
723
724 * readelf.c (get_freebsd_elfcore_note_type): Handle
725 NT_FREEBSD_PTLWPINFO.
726
727 2017-07-05 H.J. Lu <hongjiu.lu@intel.com>
728
729 * dwarf.c (display_debug_names): Replace index with xindex.
730
731 2017-07-04 Tristan Gingold <gingold@adacore.com>
732
733 * configure: Regenerate.
734
735 2017-07-04 Tristan Gingold <gingold@adacore.com>
736
737 * NEWS: Add marker for 2.29.
738
739 2017-07-03 Tristan Gingold <gingold@adacore.com>
740
741 * po/binutils.pot: Regenerate.
742
743 2017-07-03 Alan Modra <amodra@gmail.com>
744
745 * strings.c (filename_and_size_t): Delete.
746 (strings_a_section): Don't check section size against file size.
747 Use bdf_malloc_and_get_section. Report an error on failures.
748 Replace arg param with filename and got_a_section param.
749 (got_a_section): Move to..
750 (strings_object_file): ..an auto var here. Iterate over sections
751 rather than calling bfd_map_over_sections. Adjust strings_a_section
752 call.
753
754 2017-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
755
756 * dwarf.c: Include assert.h.
757 (MAX, MIN, get_IDX_name, display_debug_names): New.
758 (debug_displays): Add .debug_names.
759 * dwarf.h: (enum dwarf_section_display_enum): Add debug_names.
760 * readelf.c (process_section_headers): Add ".debug_names".
761
762 2017-07-01 Alan Modra <amodra@gmail.com>
763
764 PR binutils/21665
765 * objdump.c (strtab): Make var a bfd_byte*.
766 (disassemble_section): Don't limit malloc size. Instead, use
767 bfd_malloc_and_get_section.
768 (read_section_stabs): Use bfd_malloc_and_get_section. Return
769 bfd_byte*.
770 (find_stabs_section): Remove now unnecessary cast.
771 * objcopy.c (copy_object): Use bfd_malloc_and_get_section. Free
772 contents on error return.
773 * nlmconv.c (copy_sections): Use bfd_malloc_and_get_section.
774
775 2017-06-30 Nick Clifton <nickc@redhat.com>
776
777 PR binutils/21665
778 * objdump.c (disassemble_section): Move check for an overlarge
779 section to just before the allocation of memory. Do not check
780 section size against file size, but instead use an arbitrary 2Gb
781 limit. Issue a warning message if the section is too big.
782
783 2017-06-30 Maciej W. Rozycki <macro@imgtec.com>
784
785 * NEWS: Mention microMIPS XPA support.
786
787 2017-06-30 Maciej W. Rozycki <macro@imgtec.com>
788
789 * NEWS: Mention microMIPS Release 5 ISA support.
790
791 2017-06-30 Maciej W. Rozycki <macro@imgtec.com>
792
793 * testsuite/binutils-all/mips/mips-xpa-virt-1.d: New test.
794 * testsuite/binutils-all/mips/mips-xpa-virt-2.d: New test.
795 * testsuite/binutils-all/mips/mips-xpa-virt-3.d: New test.
796 * testsuite/binutils-all/mips/mips-xpa-virt-4.d: New test.
797 * testsuite/binutils-all/mips/mips-xpa-virt.s: New test source.
798 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
799
800 2017-06-29 Anton Kolesov <Anton.Kolesov@synopsys.com>
801
802 * testsuite/binutils-all/arc/double_store.s: New file.
803 * testsuite/binutils-all/arc/objdump.exp: Tests for disassembler
804 options.
805 (do_objfile): New function.
806 (check_assembly): Likewise.
807
808 2017-06-29 Andreas Arnez <arnez@linux.vnet.ibm.com>
809
810 * readelf.c (get_note_type): Add NT_S390_GS_CB and NT_S390_GS_BC.
811
812 2017-06-28 H.J. Lu <hongjiu.lu@intel.com>
813
814 * objdump.c (dump_relocs_in_section): Cast to ufile_ptr when
815 comparing against bfd_get_file_size return.
816
817 2017-06-28 Nick Clifton <nickc@redhat.com>
818
819 * objcopy.c (merge_gnu_build_notes): Add support for version 2 notes.
820 * readelf.c (print_gnu_build_attribute_name): Likewise.
821
822 2017-06-28 Maciej W. Rozycki <macro@imgtec.com>
823 Matthew Fortune <matthew.fortune@imgtec.com>
824
825 * readelf.c (get_machine_flags) <E_MIPS_MACH_IAMR2>: New case.
826 (print_mips_isa_ext) <AFL_EXT_INTERAPTIV_MR2>: Likewise.
827 * NEWS: Mention Imagination interAptiv MR2 processor support.
828
829 2017-06-26 Nick Clifton <nickc@redhat.com>
830
831 PR binutils/21665
832 * objdump.c (disassemble_section): Skip any section that is bigger
833 than the entire file.
834
835 2017-06-26 Nick Clifton <nickc@redhat.com>
836
837 PR binutils/21659
838 * bucomm.c (get_file_size): Explicitly warn if the file is a
839 directory.
840
841 2017-06-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
842
843 * readelf.c (arm_attr_tag_CPU_arch): Fill value for ARMv8-R.
844
845 2017-06-23 Nick Clifton <nickc@redhat.com>
846
847 PR binutils/21659
848 * strings.c (strings_file): Warn about attempts to run strings on
849 a directory.
850
851 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
852
853 * readelf.c (decode_x86_feature): Decode
854 GNU_PROPERTY_X86_FEATURE_1_SHSTK.
855 * testsuite/binutils-all/i386/shstk.d: New file.
856 * testsuite/binutils-all/i386/shstk.s: Likewise.
857 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
858 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
859 * testsuite/binutils-all/x86-64/shstk.s: Likewise.
860
861 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
862
863 * readelf.c (decode_x86_feature): New.
864 (print_gnu_property_note): Call decode_x86_feature on
865 GNU_PROPERTY_X86_FEATURE_1_AND.
866 * testsuite/binutils-all/i386/empty.d: New file.
867 * testsuite/binutils-all/i386/empty.s: Likewise.
868 * testsuite/binutils-all/i386/ibt.d: Likewise.
869 * testsuite/binutils-all/i386/ibt.s: Likewise.
870 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
871 * testsuite/binutils-all/x86-64/empty.d: Likewise.
872 * testsuite/binutils-all/x86-64/empty.s: Likewise.
873 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
874 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
875 * testsuite/binutils-all/x86-64/ibt.s: Likewise.
876
877 2017-06-21 H.J. Lu <hongjiu.lu@intel.com>
878
879 * dwarf.c (READ_ULEB): Use DWARF_VMA_FMT to report error.
880 (READ_SLEB): Likewise.
881
882 2017-06-21 Nick Clifton <nickc@redhat.com>
883
884 PR binutils/21648
885 * dwarf.c (LEB): Rename to SKIP_ULEB and READ_ULEB. Add check for
886 reading a value that is too big for the containing variable.
887 (SLEB): Rename to SKIP_SLEB and READ_SLEB. Add similar check.
888 Replace uses of LEB and SLEB with appropriate new macro.
889 (display_debug_frames): Use an unsigned int for the 'reg'
890 variable. Use a signed long for the 'l' variable.
891
892 2017-06-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
893
894 * readelf.c (get_s390_segment_type): Add support for the new
895 segment type PT_S390_PGSTE.
896 (get_segment_type): Call get_s390_segment_type.
897
898 2017-06-19 Nick Clifton <nickc@redhat.com>
899
900 PR binutils/21619
901 * objdump.c (disassemble_bytes): Check that there is sufficient
902 data available before attempting to display it.
903
904 2017-06-06 Simon Marchi <simon.marchi@ericsson.com>
905
906 * sysinfo.y: Free memory allocated by token NAME.
907
908 2017-05-30 Anton Kolesov <anton.kolesov@synopsys.com>
909
910 * doc/binutils.texi: Document new cpu=... disassembler options for ARC.
911
912 2017-05-30 H.J. Lu <hongjiu.lu@intel.com>
913
914 PR binutils/21519
915 * objdump.c (dump_relocs_in_section): Replace get_file_size
916 with bfd_get_file_size to get archive element size.
917 * testsuite/binutils-all/objdump.exp (test_objdump_f): New
918 proc.
919 (test_objdump_h): Likewise.
920 (test_objdump_t): Likewise.
921 (test_objdump_r): Likewise.
922 (test_objdump_s): Likewise.
923 Add objdump tests on archive.
924
925 2017-05-24 Yao Qi <yao.qi@linaro.org>
926
927 * objdump.c (disassemble_data): Caller update.
928
929 2017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
930
931 * objcopy.c (merge_gnu_build_notes): Remove workaround that
932 prevented deleting relocations in duplicated notes in mips64 and
933 sparc.
934
935 2017-05-19 Maciej W. Rozycki <macro@imgtec.com>
936
937 * testsuite/binutils-all/mips/mips-note-2.d: New test.
938 * testsuite/binutils-all/mips/mips-note-2r.d: New test.
939 * testsuite/binutils-all/mips/mips-note-2-n32.d: New test.
940 * testsuite/binutils-all/mips/mips-note-2-n64.d: New test.
941 * testsuite/binutils-all/mips/mips-note-2r-n32.d: New test.
942 * testsuite/binutils-all/mips/mips-note-2r-n64.d: New test.
943 * testsuite/binutils-all/mips/mips.exp: Define `has_newabi'.
944 Run the new tests.
945
946 2017-05-19 Maciej W. Rozycki <macro@imgtec.com>
947
948 * testsuite/lib/utils-lib.exp (run_dump_test): Handle the `dump'
949 option.
950
951 2017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
952
953 * NEWS: Mention the SPARC M8 support.
954
955 2017-05-19 Maciej W. Rozycki <macro@imgtec.com>
956
957 * testsuite/binutils-all/mips/mips.exp: Bail out right away if
958 non-ELF.
959
960 2017-05-18 Alan Modra <amodra@gmail.com>
961
962 * strings.c: Don't compare boolean values against TRUE or FALSE.
963
964 2017-05-15 Jeff Law <law@redhat.com>
965
966 * readelf.c (display_arc_attribute): Avoid implicit fallthru.
967
968 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
969
970 * testsuite/binutils-all/mips/mips16-undecoded.d: Add `-mips3'
971 to `as' flags.
972 * testsuite/binutils-all/mips/mips16e2-undecoded.d: New test.
973 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: New test.
974 * testsuite/binutils-all/mips/mips16-undecoded.s: Remove
975 `.module mips3'.
976 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
977
978 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
979
980 * readelf.c (print_mips_ases): Handle MIPS16e2 ASE.
981 * NEWS: Mention MIPS16e2 ASE support.
982
983 2017-05-12 Maciej W. Rozycki <macro@imgtec.com>
984
985 * testsuite/binutils-all/mips/mips16-extend-insn.d: Adjust BREAK
986 and SDBBP disassembly.
987
988 2017-05-10 Maciej W. Rozycki <macro@imgtec.com>
989
990 * testsuite/binutils-all/mips/mips.exp: Define `tempfile' and
991 `copyfile' variables.
992
993 2017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
994
995 * readelf.c (decode_ARC_machine_flags): Recognize OSABI v4.
996 (get_arc_section_type_name): New function.
997 (get_section_type_name): Use the above function.
998 (display_arc_attribute): New function.
999 (process_arc_specific): Likewise.
1000 (process_arch_specific): Handle ARC specific information.
1001
1002 2017-05-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1003
1004 * MAINTAINERS (SH): Remove myself as SH maintainer.
1005
1006 2017-05-02 H.J. Lu <hongjiu.lu@intel.com>
1007
1008 * objcopy.c (merge_gnu_build_notes): Cast relcount to unsigned
1009 long when comparing with sec->reloc_count.
1010
1011 2017-05-02 Nick Clifton <nickc@redhat.com>
1012
1013 * objcopy.c (merge_gnu_build_notes): Disable merge if there are
1014 more internal relocs than external relocs.
1015
1016 2017-05-02 Maciej W. Rozycki <macro@imgtec.com>
1017
1018 * testsuite/binutils-all/mips/mips16-undecoded.d: Adjust the
1019 disassembly of PC-relative LA and LW synthetic instructions.
1020
1021 2017-05-02 Nick Clifton <nickc@redhat.com>
1022
1023 PR 21440
1024 * objdump.c (dump_relocs_in_section): Check for an excessive
1025 number of relocs before attempting to dump them.
1026
1027 2017-05-01 Alan Modra <amodra@gmail.com>
1028
1029 * objcopy.c (merge_gnu_build_notes): Correct code deleting
1030 relocs.
1031
1032 2017-04-28 Nick Clifton <nickc@redhat.com>
1033
1034 PR binutils/21439
1035 * readelf.c (print_gnu_build_attribute_name): Allow for an empty
1036 name field.
1037
1038 2017-04-28 Nick Clifton <nickc@redhat.com>
1039
1040 PR binutils/21437
1041 * readelf.c (process_version_sections): Check for underflow when
1042 computing the start address of the auxillary version data.
1043
1044 2017-04-28 Nick Clifton <nickc@redhat.com>
1045
1046 PR binutils/21438
1047 * dwarf.c (process_extended_line_op): Do not assume that the
1048 string extracted from the section is NUL terminated.
1049 (fetch_indirect_string): If the string retrieved from the section
1050 is not NUL terminated, return an error message.
1051 (fetch_indirect_line_string): Likewise.
1052 (fetch_indexed_string): Likewise.
1053
1054 2017-04-26 Nick Clifton <nickc@redhat.com>
1055
1056 PR binutils/21433
1057 * bucomm.c (get_file_size): Return -1 if file_name is NULL.
1058 * ar.c (main): Fail with usage() invocation if no file names are
1059 provided.
1060
1061 2017-04-26 Nick Clifton <nickc@redhat.com>
1062
1063 * readelf.c (process_section_headers): Warn about overlarge
1064 sections.
1065 (print_gnu_build_attribute_name): Print the number of unrecognised
1066 note types. Fix formatting in the presence of errors.
1067 (testsuite/binutils-all/note-2-32.s): Fix encoding of numeric notes.
1068 (testsuite/binutils-all/note-2-64.s): Likewise.
1069
1070 2017-04-26 Maciej W. Rozycki <macro@imgtec.com>
1071
1072 * readelf.c (process_mips_specific): Add static GOT support.
1073
1074 2017-04-25 Maciej W. Rozycki <macro@imgtec.com>
1075
1076 * readelf.c (process_mips_specific): Remove error reporting from
1077 GOT[1] processing.
1078
1079 2017-04-25 Maciej W. Rozycki <macro@imgtec.com>
1080
1081 * readelf.c (process_mips_specific): Remove null GOT data check.
1082
1083 2017-04-25 Maciej W. Rozycki <macro@imgtec.com>
1084
1085 * testsuite/binutils-all/mips/mips16-alias.d: New test.
1086 * testsuite/binutils-all/mips/mips16-noalias.d: New test.
1087 * testsuite/binutils-all/mips/mips16-alias.s: New test source.
1088 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
1089
1090 2017-04-23 Alan Modra <amodra@gmail.com>
1091
1092 PR 21418
1093 * ar.c (main): Check -a, -b, -i and -N args are given.
1094
1095 2017-04-23 Alan Modra <amodra@gmail.com>
1096
1097 PR 21417
1098 * ar.c (main): Check that an archive file is given after options.
1099
1100 2017-04-23 Alan Modra <amodra@gmail.com>
1101
1102 PR 21415
1103 * objdump.c (disassemble_section): Check bfd_get_section_contents
1104 status.
1105
1106 2017-04-23 Alan Modra <amodra@gmail.com>
1107
1108 PR 21408
1109 * dwarf.c (display_debug_lines_decoded): Don't segfault on NULL
1110 file_table.
1111
1112 2017-04-21 Nick Clifton <nickc@redhat.com>
1113
1114 PR binutils/21378
1115 * readelf.c (print_gnu_build_attribute_name): Check for an
1116 overlarge name field.
1117
1118 2017-04-13 Nick Clifton <nickc@redhat.com>
1119
1120 PR binutils/21379
1121 * readelf.c (process_dynamic_section): Detect over large section
1122 offsets in the DT_SYMTAB entry.
1123
1124 2017-04-13 Nick Clifton <nickc@redhat.com>
1125
1126 PR binutils/21345
1127 * readelf.c (process_mips_specific): Catch an unfeasible memory
1128 allocation before it happens and print a suitable error message.
1129
1130 2017-04-13 Nick Clifton <nickc@redhat.com>
1131
1132 * objcopy.c: Add --no-merge-notes option to disable note merging.
1133 Add --[no-]merge-notes option to strip, and enable it by default.
1134 (num_bytes): New function.
1135 (merge_gnu_build_notes): Add code to merge stack size notes.
1136 * binutils.texi: Update strip and objcopy documentation.
1137 * readelf.c (print_gnu_build_attribute_name): Use defined
1138 constants for note types.
1139
1140 2017-04-10 John Delsignor <john.delsignore@roguewave.com>
1141
1142 PR binutils/21319
1143 * dwarf.c (display_gdb_index): Correct test for a corrupt address
1144 table size.
1145
1146 2017-04-05 Jiong Wang <jiong.wang@arm.com>
1147
1148 * objcopy.c (struct redefine_node): Delete the field "next".
1149 (redefine_sym_list): Deleted.
1150 (redefine_specific_htab): New hash table.
1151 (redefine_specific_reverse_htab): Likewise.
1152 (eq_string_redefnode): New function.
1153 (htab_hash_redefnode): Likewise.
1154 (create_symbol2redef_htab): Likewise.
1155 (add_specific_symbol_node): Likewise.
1156 (create_symbol_htabs): Create redefine_specific_htab and
1157 redefine_specific_reverse_htab.
1158 (lookup_sym_redefinition): Use hash table instead of list.
1159 (redefine_list_append): Likewise, and rename to add_redefine_and_check.
1160 (copy_main): Use redefine_specific_htab instead of redefine_sym_list.
1161 Update comments.
1162
1163 2017-04-04 H.J. Lu <hongjiu.lu@intel.com>
1164
1165 * NEWS: Mention support for ELF SHF_GNU_MBIND and
1166 PT_GNU_MBIND_XXX.
1167 * readelf.c (get_segment_type): Handle PT_GNU_MBIND_XXX.
1168 (get_elf_section_flags): Handle SHF_GNU_MBIND.
1169 (process_section_headers): Likewise.
1170 * testsuite/binutils-all/mbind1.s: New file.
1171 * testsuite/binutils-all/objcopy.exp: Run readelf test on
1172 mbind1.s.
1173
1174 2017-04-03 Nick Clifton <nickc@redhat.com>
1175
1176 PR binutils/21345
1177 * readelf.c (get_program_headers): Check for there being too many
1178 program headers before attempting to allocate space for them.
1179
1180 2017-04-03 Nick Clifton <nickc@redhat.com>
1181
1182 PR binutils/21344
1183 * readelf.c (process_mips_specific): Check for an out of range GOT
1184 entry before reading the module pointer.
1185
1186 2017-04-03 Nick Clifton <nickc@redhat.com>
1187
1188 PR binutils/21343
1189 * readelf.c (get_unwind_section_word): Fix snafu checking for
1190 invalid word offsets in ARM unwind information.
1191
1192 2017-03-31 Pip Cet <pipcet@gmail.com>
1193
1194 * NEWS: Use "WebAssembly" consistently.
1195 * testsuite/binutils-all/wasm32/wasm32.exp: Fix copyright notice.
1196
1197 2017-03-30 Pip Cet <pipcet@gmail.com>
1198
1199 * readelf.c: Add support for wasm32 ELF format WebAssembly files.
1200 (guess_is_rela): Likewise.
1201 (dump_relocations): Likewise.
1202 (is_32bit_abs_reloc): Likewise.
1203 (is_none_reloc_): Likewise.
1204 * NEWS: Mention the new support.
1205 * testsuite/lib/binutils-common.exp (is_elf_format): Mark wasm32
1206 as ELF target.
1207 (supports_gnu_unique): Mark wasm32 as supporting STB_GNU_UNIQUE.
1208 * testsuite/binutils-all/nm.exp: Mark wasm32 as requiring .size annotations.
1209 * testsuite/binutils-all/wasm32: New directory.
1210 * testsuite/binutils-all/wasm32/create-wasm.d: New file.
1211 * testsuite/binutils-all/wasm32/create-wasm.s: Likewise.
1212 * testsuite/binutils-all/wasm32/custom-section.d: Likewise.
1213 * testsuite/binutils-all/wasm32/custom-section.s: Likewise.
1214 * testsuite/binutils-all/wasm32/invalid-wasm-1.d: Likewise.
1215 * testsuite/binutils-all/wasm32/invalid-wasm-1.s: Likewise.
1216 * testsuite/binutils-all/wasm32/long-sections.d: Likewise.
1217 * testsuite/binutils-all/wasm32/long-sections.s: Likewise.
1218 * testsuite/binutils-all/wasm32/parse-wasm.d: Likewise.
1219 * testsuite/binutils-all/wasm32/parse-wasm.s: Likewise.
1220 * testsuite/binutils-all/wasm32/parse-wasm-2.d: Likewise.
1221 * testsuite/binutils-all/wasm32/parse-wasm-2.s: Likewise.
1222 * testsuite/binutils-all/wasm32/prepared-section.d: Likewise.
1223 * testsuite/binutils-all/wasm32/prepared-section.s: Likewise.
1224 * testsuite/binutils-all/wasm32/wasm32.exp: New file, run tests.
1225
1226 2017-03-29 Alan Modra <amodra@gmail.com>
1227
1228 * doc/binutils.texi (objdump): Document PowerPC -M options.
1229
1230 2017-03-21 Andi Kleen <ak@linux.intel.com>
1231
1232 * objdump.c (unwind_inlines): Add.
1233 (option_values): Add OPTION_INLINES.
1234 (show_line): Unwind inlines if requested.
1235 (main): Parse OPTION_INLINES.
1236 (usage): Document --inlines.
1237 * doc/binutils.texi: Document --inlines.
1238 * NEWS: Likewise.
1239
1240 2017-03-21 Nick Clifton <nickc@redhat.com>
1241
1242 * readelf.c (print_gnu_build_attribute_name): Allow stack
1243 protection notes to contain numeric values. Use a colon rather
1244 than a space to separate a string name from its values. Decode
1245 the numeric value of a stack protection note.
1246 * objcopy.c (merge_gnu_build_notes): Allow version notes to
1247 contain extra text after the protocol version number.
1248
1249 2017-03-20 Mark Wielaard <mark@klomp.org>
1250
1251 * readelf.c (process_program_headers): Move dynamic_addr check
1252 after .dynamic section cross check.
1253
1254 2017-03-17 Nick Clifton <nickc@redhat.com>
1255
1256 * readelf.c (print_gnu_build_attribute_name): Fix off by one error
1257 printing the value for a build note with an ascii name.
1258
1259 2017-03-16 Nick Clifton <nickc@redhat.com>
1260
1261 * readelf.c (print_gnu_build_attribute_name): Add support for
1262 GNU_BUILD_ATTRIBUTE_SHORT_ENUM.
1263
1264 2017-03-14 Nick Clifton <nickc@redhat.com>
1265
1266 * readelf.c (print_gnu_build_attribute_description): Move symbol
1267 printing code to...
1268 (print_symbol_for_build_attribute): New function. ...here.
1269 Add to find the best symbol to associate with an OPEN note.
1270 Add code to cache the symbol table and string table, so that they
1271 are not loaded every time a note is displayed.
1272 * testsuite/binutils-all/note-2-32.s: Add a function symbol.
1273 * testsuite/binutils-all/note-2-64.s: Likewise.
1274 * testsuite/binutils-all/note-2-32.d: Update expected note output.
1275 * testsuite/binutils-all/note-2-64.d: Likewise.
1276
1277 2017-03-13 Alan Modra <amodra@gmail.com>
1278 Taeung Song <treeze.taeung@gmail.com>
1279
1280 * objdump.c (update_source_path): Add abfd param. Add struct
1281 stat var. Pass to try_print_file_open. Warn if source is more
1282 recent than object.
1283 (try_print_file_open, slurp_file): Add struct stat param to
1284 return fstat.
1285 (show_line): Call update_source_path with bfd.
1286
1287 2017-03-10 Chia-Hao Lo <fcamel@gmail.com>
1288
1289 PR binutils/21235
1290 * objdump.c (main): Set do_wide with --wide.
1291
1292 2017-03-10 Nick Clifton <nickc@redhat.com>
1293
1294 * readelf.c (get_machine_name): Rearrange switch table in order of
1295 increasing machine number. Add missing entries.
1296
1297 2017-03-08 H.J. Lu <hongjiu.lu@intel.com>
1298
1299 PR binutils/21231
1300 * readelf.c (decode_x86_isa): Change argument to unsigned int.
1301 (print_gnu_property_note): Retrieve property type and datasz as
1302 4-byte integer. Consolidate property datasz check. Check
1303 GNU_PROPERTY_LOPROC and GNU_PROPERTY_LOUSER.
1304 * testsuite/binutils-all/i386/pr21231a.d: New file.
1305 * testsuite/binutils-all/i386/pr21231a.s: Likewise.
1306 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
1307 * testsuite/binutils-all/i386/pr21231b.s: Likewise.
1308 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
1309 * testsuite/binutils-all/x86-64/pr21231a.s: Likewise.
1310 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
1311 * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
1312
1313 2017-03-06 Nick Clifton <nickc@redhat.com>
1314
1315 * readelf.c (print_gnu_build_attribute_name): Read byte values
1316 from the name string as unsigned bytes.
1317 (process_notes_at): Use memcpy to copy an unterminated name
1318 string.
1319
1320 2017-03-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
1321
1322 * configure.ac (AC_CHECK_DECLS): Add asprintf.
1323 * config.in: Regenerate.
1324 * configure: Regenerate.
1325
1326 2017-03-02 Nick Clifton <nickc@redhat.com>
1327
1328 * readelf.c (print_gnu_build_attribute_description): Use global
1329 symbols for OPEN attributes if at all possible.
1330 * objcopy.c (is_merged_note_section): Support build note sections
1331 without the SHF_GNU_BUILD_NOTE section flag set.
1332
1333 2017-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1334
1335 * dwarf.c (debug_displays_assert): New static assertion.
1336
1337 2017-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1338
1339 * dwarf.h (enum dwarf_section_display_enum): Add loclists and rnglists.
1340
1341 2017-03-01 Nick Clifton <nickc@redhat.com>
1342
1343 * readelf.c (get_note_type): Add support for GNU_BUILD_NOTEs.
1344 (get_gnu_elf_note_type): Add support for GNU_PROPERTY_NOTEs.
1345 (decode_x86_isa): New function.
1346 (print_gnu_property_note): New function.
1347 (print_gnu_note): Handle GNU_PROPERTY_NOTEs.
1348 (print_gnu_build_attribute_description): New function.
1349 (print_gnu_build_attribute_name): New function.
1350 (process_note): Add support for GNU_BUILD_NOTEs.
1351 * objcopy.c (--merge-notes): New command line option.
1352 (copy_options): Add merge-notes.
1353 (copy_usage): Likewise.
1354 (is_merge_note_section): New function.
1355 (merge_gnu_build_notes): New function.
1356 (copy_object): Merge note sections if asked to do so.
1357 (skip_section): Add skip_copy parameter. Add support for skipping
1358 merged note sections.
1359 (copy_relocations_in_section): Update call to skip_section.
1360 (copy_section): Likewise.
1361 (copy_main): Add support for merge-notes option.
1362 * doc/binutils.texi: Document the new option to objcopy.
1363 * NEWS: Mention the new feature.
1364 * testsuite/binutils-all/note-2-32.d: New test. Checks note
1365 merging on 32-bit targets.
1366 * testsuite/binutils-all/note-2-32.s: New test source file.
1367 * testsuite/binutils-all/note-2-64.d: New test. Like note-2-32.d
1368 but for 64-bit targets.
1369 * testsuite/binutils-all/note-2-64.s: New test source file.
1370 * testsuite/binutils-all/objcopy.exp: Run the new test.
1371
1372 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
1373
1374 * objdump.c (main): Use remove_whitespace_and_extra_commas.
1375
1376 2017-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1377
1378 Fix compilation with GCC 4.4.7.
1379 * dwarf.c (display_loclists_list, display_debug_rnglists_list):
1380 Initialize begin and end.
1381
1382 2017-02-25 Alan Modra <amodra@gmail.com>
1383
1384 * testsuite/binutils-all/dw5.S: Replace .string with .asciz.
1385 Support hpux .comm variant.
1386 * testsuite/binutils-all/readelf.exp: Define HPUX when assembling
1387 dw5 test for hppa64-hpux.
1388
1389 2017-02-24 Nick Clifton <nickc@redhat.com>
1390
1391 * readelf.c (show_name, do_dynamic, do_syms, do_dyn_syms,
1392 (do_reloc, do_sections, do_section_groups, do_section_details,
1393 (do_segments, do_unwind, do_using_dynamic, do_header, do_dump,
1394 (do_version, do_histogram, do_debugging, do_arch, do_notes,
1395 (do_archive_index, is_32bit_elf, decompress_dumps): Use
1396 bfd_boolean type.
1397 (parse_args): Treat the do_* variables as booleans.
1398 (print_vma): Return an unsigned int.
1399 (print_symbol): Change width parameter to signed int.
1400 (is_ia64_vms): Change return type to bfd_boolean.
1401 (guess_is_rela): Likewise.
1402 (slurp_rela_relocs): Likewise.
1403 (slurp_rel_relocs): Likewise.
1404 (dump_relocations): Likewise.
1405 (process_file_header): Likewise.
1406 (get_program_headers): Likewise.
1407 (process_program_headers): Likewise.
1408 (process_section_headers): Likewise.
1409 (process_section_groups): Likewise.
1410 (dump_ia64_vms_dynamic_fixups): Likewise.
1411 (dump_ia64_vms_dynamic_relocs): Likewise.
1412 (process_ia64_vms_dynamic_relocs): Likewise.
1413 (process_relocs): Likewise.
1414 (dump_ia64_unwind): Likewise.
1415 (ia64_process_unwind): Likewise.
1416 (dump_hppa_unwind): Likewise.
1417 (slurp_hppa_unwind_table): Likewise.
1418 (hppa_process_unwind): Likewise.
1419 (decode_arm_unwind_bytecode): Likewise.
1420 (decode_tic6x_unwind_bytecode): Likewise.
1421 (decode_arm_unwind): Likewise.
1422 (dump_arm_unwind): Likewise.
1423 (arm_process_unwind): Likewise.
1424 (process_unwind): Likewise.
1425 (get_32bit_dynamic_section): Likewise.
1426 (get_64bit_dynamic_section): Likewise.
1427 (process_dynamic_section): Likewise.
1428 (process_version_sections): Likewise.
1429 (process_symbol_table): Likewise.
1430 (process_syminfo): Likewise.
1431 (apply_relocations): Likewise.
1432 (disassemble_section): Likewise.
1433 (dump_section_as_strings): Likewise.
1434 (dump_section_as_bytes): Likewise.
1435 (load_specific_debug_section): Likewise.
1436 (load_debug_section): Likewise.
1437 (display_debug_section): Likewise.
1438 (process_section_contents): Likewise.
1439 (process_attributes): Likewise.
1440 (process_nds32_specific): Likewise.
1441 (process_gnu_liblist): Likewise.
1442 (print_core_note): Likewise.
1443 (print_gnu_note): Likewise.
1444 (print_v850_note): Likewise.
1445 (process_netbsd_elf_note): Likewise.
1446 (print_stapsdt_note): Likewise.
1447 (print_ia64_vms_note): Likewise.
1448 (process_note): Likewise.
1449 (process_notes_at): Likewise.
1450 (process_corefile_note_segments): Likewise.
1451 (process_v850_notes): Likewise.
1452 (process_note_sections): Likewise.
1453 (process_notes): Likewise.
1454 (process_arch_specific): Likewise.
1455 (get_file_header): Likewise.
1456 (process_object): Likewise.
1457 (process_archive): Likewise.
1458 (process_file): Likewise.
1459 (section_subset): Make static.
1460 (get_mips_reg_size): Return a signed integer.
1461 (process_object): Reverse the logic of the return value.
1462 (process_archive): Likewise.
1463 (process_file): Likewise.
1464 (process_program_headers): Fix snafu - if the program headers are
1465 not available then this is not a cause to fail.
1466 (process_corefile_note_segments): Likewise.
1467
1468 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
1469
1470 * readelf.c (get_ver_flags): Tidy the formatting of the string
1471 returned
1472
1473 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
1474
1475 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Make
1476 `isum' unsigned.
1477 <SHT_GNU_verneed>: Likewise.
1478
1479 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
1480
1481 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Limit
1482 the number of entries processed by the section size. Don't
1483 break out of the loop if `ent.vd_next' is 0.
1484
1485 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1486
1487 * testsuite/binutils-all/dw5.S: New file.
1488 * testsuite/binutils-all/dw5.W: New file.
1489 * testsuite/binutils-all/readelf.exp (readelf -wiaoRlL): New test.
1490
1491 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1492
1493 * dwarf.c (read_and_display_attr_value): Support DW_FORM_data16.
1494
1495 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1496
1497 * dwarf.c (display_debug_macro): Support DWARF-5. Rename
1498 DW_MACRO_GNU_*.
1499
1500 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1501
1502 * dwarf.c (decode_location_expression): Support DW_OP_implicit_pointer,
1503 DW_OP_const_type, DW_OP_regval_type, DW_OP_deref_type, DW_OP_convert
1504 and DW_OP_reinterpret.
1505 (read_and_display_attr_value): Support DW_AT_call_value,
1506 DW_AT_call_data_value, DW_AT_call_target and
1507 DW_AT_call_target_clobbered.
1508
1509 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1510
1511 * dwarf.c (fetch_indirect_line_string): New function.
1512 (abbrev_attr): New field implicit_const.
1513 (add_abbrev_attr): New parameter implicit_const.
1514 (process_abbrev_section): Support DW_FORM_implicit_const.
1515 (decode_location_expression): Support DW_OP_entry_value.
1516 (read_and_display_attr_value): Add parameter implicit_const. Support
1517 DW_FORM_line_strp and DW_FORM_implicit_const.
1518 (read_and_display_attr): Add parameter implicit_const.
1519 (process_debug_info): Support line_str and DWARF-5.
1520 (read_debug_line_header): Support DWARF-5.
1521 (display_formatted_table): New function.
1522 (display_debug_lines_raw): New parameter file. Support DWARF-5.
1523 (display_debug_lines_decoded): New parameter fileptr. Support DWARF-5.
1524 (display_debug_lines): Pass file parameter.
1525 (display_debug_macro): Update read_and_display_attr_value caller.
1526 (display_debug_abbrev): Support DW_FORM_implicit_const.
1527 (display_loclists_list): New function.
1528 (display_loc_list): Support .debug_loclists.
1529 (display_debug_ranges_list): New function from display_debug_ranges.
1530 (display_debug_rnglists_list): New function.
1531 (display_debug_ranges): Support .debug_rnglists.
1532 (debug_displays): Add .debug_line_str, .debug_loclists and
1533 .debug_rnglists.
1534 * dwarf.h: Include dwarf2.h
1535 (DWARF2_Internal_LineInfo): Add li_offset_size.
1536 (DWARF2_Internal_CompUnit): Add cu_unit_type.
1537 (enum dwarf_section_display_enum): Add line_str.
1538 * readelf.c (process_section_headers): Add rnglists and loclists.
1539
1540 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1541
1542 * dwarf.c (display_block): Add parameter delimiter.
1543 (decode_location_expression): Update display_block callers.
1544 (read_and_display_attr_value): Add parameter delimiter.
1545 (read_and_display_attr, display_debug_macro): Update
1546 read_and_display_attr_value caller.
1547
1548 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1549
1550 * dwarf.c (display_loc_list): Use dwarf_vma for offset, base_address
1551 and off.
1552 (display_loc_list_dwo): Use dwarf_vma for offset.
1553 (display_debug_loc): Use dwarf_vma for offset, base_address.
1554 (struct range_entry, range_entry_compar): Use dwarf_vma for
1555 ranges_offset.
1556 (display_debug_ranges): Use dwarf_vma for ranges_offset, offset and
1557 base_address.
1558
1559 2017-02-23 Nick Clifton <nickc@redhat.com>
1560
1561 * readelf.c (display_tag_value): Use an explicit signed type for
1562 the tag parameter.
1563 (display_gnu_attributes): Use an unsigned integer type for
1564 attribute tags.
1565 (display_power_gnu_attribute): Likewise.
1566 (display_s390_gnu_attribute): Likewise.
1567 (display_sparc_hwcaps): Likewise.
1568 (display_sparc_hwcaps2): Likewise.
1569 (display_sparc_gnu_attribute): Likewise.
1570 (display_mips_gnu_attribute): Likewise.
1571 (display_tic6x_attribute): Likewise.
1572 (display_raw_attribute): Likewise.
1573 (process_attributes): Likewise.
1574 (process_arm_specific): Delete redundant function.
1575 (process_power_specific): Likewise.
1576 (process_s390_specific): Likewise.
1577 (process_sparc_specific): Likewise.
1578 (process_tic6x_specific): Likewise.
1579 (process_msp430x_specific): Likewise.
1580 (display_public_gnu_attributes): New function. Displays known
1581 information about an unknown gnu attribute.
1582 (display_generic_attribute): New function. Calls
1583 display_tag_value for non-nul tags.
1584 (process_arch_specific): Call process_attributes even for
1585 architectures not known to specifically support gnu attributes.
1586
1587 2017-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1588
1589 * dwarf.c (decode_location_expression): Display also OP.
1590
1591 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
1592
1593 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Print a
1594 new line between the heading and the first version definition
1595 entry.
1596
1597 2017-02-20 Nick Clifton <nickc@redhat.com>
1598
1599 PR binutils/21156
1600 * dwarf.c (cu_tu_indexes_read): Move into...
1601 (load_cu_tu_indexes): ... here. Change the variable into
1602 tri-state. Change the function into boolean, returning
1603 false if the indicies could not be loaded.
1604 (find_cu_tu_set): Return NULL if the indicies could not be
1605 loaded.
1606
1607 2017-02-17 Nick Clifton <nickc@redhat.com>
1608
1609 PR binutils/21156
1610 * readelf.c (find_section_in_set): Test for invalid section
1611 indicies.
1612
1613 2017-02-17 Nick Clifton <nickc@redhat.com>
1614
1615 * readelf.c (get_section_type_name): Add decoding of GNU section
1616 types.
1617
1618 2017-02-15 Nick Clifton <nickc@redhat.com>
1619
1620 * MAINTAINERS: (MIPS, MN10300): Move Eric Christopher to Past
1621 Maintainers section.
1622
1623 2017-02-14 Nick Clifton <nickc@redhat.com>
1624
1625 PR binutils/21159
1626 * readelf.c (dump_section_as_strings): Reset the start address if
1627 no decompression is perfromed.
1628 (dump_section_as_bytes): Likewise.
1629
1630 2017-02-14 Nick Clifton <nickc@redhat.com>
1631
1632 PR binutils/21158
1633 * rddbg.c (read_symbol_stabs_debugging_info): Check for a null or
1634 empty symbol name.
1635
1636 2017-02-14 Nick Clifton <nickc@redhat.com>
1637
1638 PR binutils/21157
1639 * stabs.c (parse_stab_enum_type): Check for corrupt NAME:VALUE
1640 pairs.
1641 (parse_number): Exit early if passed an empty string.
1642
1643 2017-02-14 Nick Clifton <nickc@redhat.com>
1644
1645 PR binutils/21155
1646 * readelf.c (IN_RANGE): New macro. Tests for an address + offset
1647 being within a given range.
1648 (target_specific_reloc_handling): Use macro to test for underflow
1649 as well as overflow of reloc offset.
1650
1651 2017-02-13 Nick Clifton <nickc@redhat.com>
1652
1653 PR binutils/21150
1654 * nm.c (file_symbol): Add test of string length before testing
1655 string characters.
1656
1657 2017-02-13 Nick Clifton <nickc@redhat.com>
1658
1659 PR binutils/21135
1660 * readelf.c (dump_section_as_bytes): Handle the case where
1661 uncompress_section_contents returns false.
1662 (dump_section_as_bytes, load_specific_debug_section): Likewise.
1663
1664 2017-02-13 Nick Clifton <nickc@redhat.com>
1665
1666 PR binutils/21149
1667 * readelf.c (get_compression_header): Add size parameter. Check
1668 size against sizeof compression header before attempting to
1669 extract the header.
1670 (process_section_headers): Pass size to get_compression_header.
1671 (dump_section_as_strings): Likewise.
1672 (dump_section_as_bytes): Likewise.
1673 (load_specific_debug_section): Likewise.
1674
1675 2017-02-13 Nick Clifton <nickc@redhat.com>
1676
1677 PR binutils/21148
1678 * readelf.c (process_version_sections): Include size of auxillary
1679 version information when checking for buffer overflow.
1680
1681 2017-02-13 Nick Clifton <nickc@redhat.com>
1682
1683 PR binutils/21147
1684 * readelf.c (process_section_contents): Fix off by one error
1685 reporting un-dumped sections.
1686
1687 2017-02-13 Nick Clifton <nickc@redhat.com>
1688
1689 PR binutils/21139
1690 * readelf.c (target_specific_reloc_handling): Add num_syms
1691 parameter. Check for symbol table overflow before accessing
1692 symbol value. If reloc pointer is NULL, discard all saved state.
1693 (apply_relocations): Pass num_syms to target_specific_reloc_handling.
1694 Call target_specific_reloc_handling with a NULL reloc pointer
1695 after processing all of the relocs.
1696
1697 2017-02-13 Nick Clifton <nickc@redhat.com>
1698
1699 PR binutils/21137
1700 * readelf.c (target_specific_reloc_handling): Add end parameter.
1701 Check for buffer overflow before writing relocated values.
1702 (apply_relocations): Pass end to target_specific_reloc_handling.
1703
1704 2017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
1705 Nick Clifton <nickc@redhat.com>
1706
1707 PR 20343
1708 * doc/binutils.texi (ar): Extend documentation of the --plugin
1709 option. Include a description of where the plugins should be
1710 located.
1711 (nm): Likewise.
1712
1713 2017-01-23 Nick Clifton <nickc@redhat.com>
1714
1715 * MAINTAINERS: Add Bernd to Past Maintainers section.
1716 (SCORE): Remove Mei Ligang as maintainer. Add to Past Maintainers
1717 section.
1718
1719 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
1720
1721 * MAINTAINERS (BFIN): Remove myself as Blackfin maintainer.
1722
1723 2017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
1724
1725 * objdump.c (dump_section_header): Extract max section name length
1726 from data parameter, use this when formatting output.
1727 (find_longest_section_name): New function.
1728 (dump_headers): Calculate longest section name when in wide mode,
1729 reformat to unify printing of header line.
1730
1731 2017-01-18 Bernhard Rosenkranzer <bero@lindev.ch>
1732
1733 PR 21059
1734 * arlex.l: Support processing with flex 2.6.3.
1735 * deflex.l: Likewise.
1736
1737 2017-01-17 Dmitry Timoshkov <dmitry@baikal.ru>
1738
1739 * resbin.c: Optional dialog control data immediately follows
1740 the control description without alignment.
1741 * testsuite/binutils-all/windres/controldata.rc: New test.
1742 source.
1743 * testsuite/binutils-all/windres/controldata.rsd: New test.
1744
1745 2017-01-12 Nick Clifton <nickc@redhat.com>
1746
1747 PR binutils/20876
1748 * NEWS: Mention the new feature.
1749 * testsuite/binutils-all/objdump.exp (test_build_id_debuglink):
1750 New proc to test the location of separate debug info files using
1751 the build-id method.
1752
1753 2017-01-10 Nick Clifton <nickc@redhat.com>
1754
1755 PR 21034
1756 * stabs.c (parse_stab_members): Fix thinko checking for g++
1757 version 1 stabs information.
1758
1759 2017-01-09 Nick Clifton <nickc@redhat.com>
1760
1761 * objdump.c (display_file): Add new parameter 'last_file'. If
1762 last_file is true, do not call bfd_close at the end of the
1763 function.
1764 (main): Set the value of the last_file parameter when calling
1765 display_file.
1766
1767 2017-01-09 Alan Modra <amodra@gmail.com>
1768
1769 * readelf.c (process_section_headers): Correct .rel.dyn/.rela.dyn
1770 comment.
1771
1772 2017-01-06 Nick Clifton <nickc@redhat.com>
1773
1774 * MAINTAINERS: Move Paul Brook to the Past Maintainers section.
1775
1776 2017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
1777
1778 PR 20958
1779 * syslex.l (option): Add noyywrap
1780 (yywrap): Delete.
1781
1782 2017-01-02 Alan Modra <amodra@gmail.com>
1783
1784 Update year range in copyright notice of all files.
1785
1786 For older changes see ChangeLog-2016
1787 \f
1788 Copyright (C) 2017 Free Software Foundation, Inc.
1789
1790 Copying and distribution of this file, with or without modification,
1791 are permitted in any medium without royalty provided the copyright
1792 notice and this notice are preserved.
1793
1794 Local Variables:
1795 mode: change-log
1796 left-margin: 8
1797 fill-column: 74
1798 version-control: never
1799 End:
This page took 0.074032 seconds and 5 git commands to generate.