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