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