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