Commit | Line | Data |
---|---|---|
88988473 L |
1 | 2015-07-10 H.J. Lu <hongjiu.lu@intel.com> |
2 | ||
3 | PR binutils/18656 | |
4 | * objcopy.c (setup_section): Call bfd_convert_section_size | |
5 | to get the output section size. | |
6 | (copy_section): Get the section size from the output section | |
7 | and call bfd_get_full_section_contents to convert section | |
8 | contents for output. | |
9 | ||
813dabb9 L |
10 | 2015-07-10 H.J. Lu <hongjiu.lu@intel.com> |
11 | ||
12 | * readelf.c (dump_section_as_strings): Warn unsupported compress | |
13 | type and corrupted compressed section. | |
14 | (dump_section_as_bytes): Likewise. | |
15 | (load_specific_debug_section): Likewise. | |
16 | ||
3350cc01 CM |
17 | 2015-07-09 Catherine Moore <clm@codesourcery.com> |
18 | ||
19 | * readelf.c (print_mips_fp_abi_value): Handle | |
20 | Val_GNU_MIPS_ABI_FP_NAN2008. | |
21 | ||
a5499fa4 MF |
22 | 2015-06-26 Matthew Fortune <matthew.fortune@imgtec.com> |
23 | ||
24 | * readelf.c (get_mips_dynamic_type): Handle DT_MIPS_RLD_MAP_REL. | |
25 | ||
bdc4de1b NC |
26 | 2015-06-22 Nick Clifton <nickc@redhat.com> |
27 | ||
28 | * objdump.c (disassemble_bytes): Set the stop_vma field in the | |
29 | disassemble_info structure when disassembling code sections with | |
30 | -d. | |
31 | * doc/binutils.texi (objdump): Document the discrepancy between -d | |
32 | and -D. | |
33 | ||
8fcc61b4 NC |
34 | 2015-06-05 Nick Clifton <nickc@redhat.com> |
35 | ||
36 | * dwarf.c (read_debug_line_header): Use reloc_at to detect | |
37 | incomplete .debug_line headers | |
38 | ||
14ae95f2 RM |
39 | 2015-05-29 Roland McGrath <mcgrathr@google.com> |
40 | ||
41 | * readelf.c (print_gnu_note: NT_GNU_ABI_TAG): Recognize | |
42 | GNU_ABI_TAG_SYLLABLE and GNU_ABI_TAG_NACL. | |
43 | ||
030f4c7f SK |
44 | 2015-05-29 Stephen Kitt <steve@sk2.org> |
45 | ||
46 | * dlltool.c (make_one_lib_file): Clear .idata$6 before use. | |
47 | (main): Fail if the output file specified by the -z option cannot | |
48 | be opened. | |
49 | ||
b4477bc8 NC |
50 | 2015-05-18 Nick Clifton <nickc@redhat.com> |
51 | ||
52 | PR binutils/18420 | |
53 | * ia64-unwind.c (unw_decode): Add end parameter. Pass parameter | |
54 | on to decode functions. | |
55 | (unw_devode_p2_p5): Pass end paraemter to UNW_DEC_SPILL_MASK. | |
56 | (UNW_DEC_SPILL_MASK): Add end parameter. Check that unw_rlen does | |
57 | not take us beyond the end of the buffer. | |
58 | * ia64-unwind.h (unw_decode): Update prototype. | |
59 | * readelf.c (dump_ia64_unwind): Pass end pointer to unw_decode. | |
60 | ||
fd8008d8 L |
61 | 2015-05-15 H.J. Lu <hongjiu.lu@intel.com> |
62 | ||
63 | * readelf.c (dump_section_as_strings): Change pointers from | |
64 | char * to unsigned char *. | |
65 | ||
5db04b09 L |
66 | 2015-05-15 H.J. Lu <hongjiu.lu@intel.com> |
67 | ||
68 | PR binutis/18386 | |
69 | * doc/binutils.texi: Document -Mamd64 and -Mintel64. | |
70 | ||
0e602686 NC |
71 | 2015-05-15 Nick Clifton <nickc@redhat.com> |
72 | ||
73 | * readelf.c (options): Add "decompress". | |
74 | (usage): Mention -z/--decompress. | |
75 | (parse_args): Handle -z. | |
76 | (uncompress_section_contents): Move to earlier in the file. | |
77 | (dump_section_as_strings): If requested, decompress the section | |
78 | before dumping. | |
79 | (dump_section_as_bytes): Likewise. | |
80 | * doc/binutils.texi: Document the new option. | |
81 | ||
4bc0608a PB |
82 | 2015-05-14 Peter Bergner <bergner@vnet.ibm.com> |
83 | ||
84 | * MAINTAINERS: Add myself as PPC maintainer. | |
85 | ||
dab394de L |
86 | 2015-05-14 H.J. Lu <hongjiu.lu@intel.com> |
87 | ||
88 | * readelf.c (uncompress_section_contents): Add a parameter for | |
89 | uncompressed size. Don't check the zlib header. | |
90 | (load_specific_debug_section): Updated. | |
91 | ||
d1c4b12b NC |
92 | 2015-05-15 Nick Clifton <nickc@redhat.com> |
93 | ||
94 | PR binutils/18374 | |
95 | * dwarf.h (struct dwarf_section): Add reloc_info and num_relocs | |
96 | fields. | |
97 | (struct dwarf_section_display): Change bitfield to boolean. | |
98 | (reloc_at): Add prototype. | |
99 | * dwarf.c (display_loc_list): Ignore list terminators if there are | |
100 | relocs against them. | |
101 | (display_debug_loc): Issue a warning if there are relocs against | |
102 | the .debug_loc section. | |
103 | (display_displays): Initialise reloc_info and num_relocs fields. | |
104 | * objdump.c (load_specific_debug_section): Initialise reloc_info | |
105 | and num_relocs fields. | |
106 | (reloc_at): New function. | |
107 | * readelf.c (is_32bit_abs_reloc): Add IA64's R_IA64_DIS32LSB | |
108 | reloc. | |
109 | (reloc_at): New function. | |
110 | (apply_relocations): Add relocs_return and num_relocs_return | |
111 | parameters. Fill them in with the loaded relocs if non-NULL. | |
112 | (dump_section_as_bytes): Update call to apply_relocations. | |
113 | (load_specific_debug_section): Initialise reloc_info and | |
114 | num_relocs fields. | |
115 | ||
aa9f7286 L |
116 | 2015-05-13 H.J. Lu <hongjiu.lu@intel.com> |
117 | ||
118 | * elfedit.c (elf_class): Return ELF_CLASS_BOTH by default. | |
119 | ||
6604eb5f AK |
120 | 2015-05-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com> |
121 | ||
122 | * MAINTAINERS: Add myself as s390 and s390x maintainer. | |
123 | ||
5b155b95 SK |
124 | 2015-05-12 Stephen Kitt <steve@sk2.org> |
125 | ||
126 | * dlltool.c (main): Accept -t as an abbreviation for | |
127 | --temp-prefix. | |
128 | ||
3d875af5 L |
129 | 2015-05-11 H.J. Lu <hongjiu.lu@intel.com> |
130 | ||
131 | * dwarf.c (dwarf_regnames_iamcu): New. | |
132 | (init_dwarf_regnames_iamcu): Likewise. | |
133 | (init_dwarf_regnames): Call init_dwarf_regnames_iamcu for EM_IAMCU. | |
134 | * dwarf.h (init_dwarf_regnames_iamcu): New. | |
135 | * objdump.c (dump_dwarf): Call init_dwarf_regnames_iamcu for | |
136 | bfd_arch_iamcu. | |
137 | ||
6c14750f L |
138 | 2015-05-11 H.J. Lu <hongjiu.lu@intel.com> |
139 | ||
140 | * elfedit.c (enum elfclass): New. | |
141 | (input_elf_class): Change type to enum elfclass. | |
142 | (output_elf_class): New. | |
143 | (elf_class): Change return type to enum elfclass. Support EM_386 | |
144 | and EM_IAMCU. | |
145 | (update_elf_header): Check if input and output ELF classes match. | |
146 | (elf_machine): Support EM_386 and EM_IAMCU. | |
147 | (main): Update input_elf_class. Set output_elf_class. | |
148 | * doc/binutils.texi: Update elfedit. | |
149 | ||
22abe556 L |
150 | 2015-05-11 H.J. Lu <hongjiu.lu@intel.com> |
151 | ||
152 | * dwarf.c (init_dwarf_regnames): Replace EM_486 with EM_IAMCU. | |
153 | * readelf.c (guess_is_rela): Likewise. | |
154 | (dump_relocations): Likewise. | |
155 | (get_machine_name): Likewise. | |
156 | (get_elf_section_flags): Likewise. | |
157 | (process_section_headers): Likewise. | |
158 | (is_32bit_abs_reloc): Likewise. | |
159 | (is_32bit_pcrel_reloc): Likewise. | |
160 | ||
153a2776 NC |
161 | 2015-04-30 Nick Clifton <nickc@redhat.com> |
162 | ||
163 | * readelf.c (get_machine_flags): Add description of MeP flags. | |
164 | ||
643f7afb AK |
165 | 2015-04-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com> |
166 | ||
167 | * readelf.c (display_s390_gnu_attribute): New function. | |
168 | (process_s390_specific): New function. | |
169 | (process_arch_specific): Call process_s390_specific. | |
170 | ||
de13ef81 NC |
171 | 2015-04-24 Nick Clifton <nickc@redhat.com> |
172 | ||
173 | PR 18313 | |
174 | * ieee.c (ieee_read_cxx_class): Initialise the varargs variable. | |
175 | * readelf.c (uncompress_section_contents): Zero initialise the | |
176 | zstream structure. | |
177 | ||
f6fe1ccd L |
178 | 2015-04-23 H.J. Lu <hongjiu.lu@intel.com> |
179 | ||
180 | PR binutils/18209 | |
181 | * objcopy.c (setup_section): Copy compress status. | |
182 | ||
ea556d25 L |
183 | 2015-04-15 H.J. Lu <hongjiu.lu@intel.com> |
184 | ||
185 | * NEWS: Mention | |
186 | --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi]. | |
187 | ||
6ff71e76 NC |
188 | 2015-04-14 Nick Clifton <nickc@redhat.com> |
189 | ||
190 | * readelf.c (target_specific_reloc_handling): Add code to handle | |
191 | RL78 complex relocs. | |
192 | ||
0d2a7a93 DE |
193 | 2015-04-13 Doug Evans <dje@google.com> |
194 | ||
195 | PR binutils/18218 | |
196 | * readelf.c (printable_section_name): Constify sec argument. | |
197 | (apply_relocations): Ditto. New arg "size". All callers updated. | |
198 | (load_specific_debug_section): Constify sec argument. | |
199 | Remove side-effect of modifying sec->sh_size. | |
200 | ||
cd6faa73 L |
201 | 2015-04-09 H.J. Lu <hongjiu.lu@intel.com> |
202 | ||
203 | * objcopy.c (do_debug_sections): Use bit patterns. | |
204 | (copy_object): Return FALSE for compress_zlib, compress_gnu_zlib | |
205 | and compress_gabi_zlib on non-ELF input. | |
206 | (copy_file): Don't check non-ELF input here. | |
207 | ||
3525236c NC |
208 | 2015-04-09 Nick Clifton <nickc@redhat.com> |
209 | ||
210 | * readelf.c (get_machine_flags): Report the setting of the string | |
211 | insn using bits. | |
212 | ||
151411f8 L |
213 | 2015-04-08 H.J. Lu <hongjiu.lu@intel.com> |
214 | ||
215 | * objcopy.c (do_debug_sections): Add compress_zlib, | |
216 | compress_gnu_zlib and compress_gabi_zlib. | |
217 | (copy_options): Use optional_argument on compress-debug-sections. | |
218 | (copy_usage): Update --compress-debug-sections. | |
219 | (copy_file): Handle compress_zlib, compress_gnu_zlib and | |
220 | compress_gabi_zlib. | |
221 | (copy_main): Handle | |
222 | --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}. | |
223 | * doc/binutils.texi: Document | |
224 | --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}. | |
225 | ||
bfcf0ccd L |
226 | 2015-04-08 H.J. Lu <hongjiu.lu@intel.com> |
227 | ||
228 | * objcopy.c (copy_usage): Replace "--interleave [<number>]" with | |
229 | --interleave[=<number>]. | |
230 | ||
77115a4a L |
231 | 2015-04-05 H.J. Lu <hongjiu.lu@intel.com> |
232 | ||
233 | * readelf.c (get_elf_section_flags): Support SHF_COMPRESSED. | |
234 | (get_compression_header): New. | |
235 | (process_section_headers): Dump compression header if needed. | |
236 | (uncompress_section_contents): Don't free compressed_buffer here. | |
237 | (load_specific_debug_section): Free the compressed buffer, update | |
238 | the section buffer and the section size if uncompress is | |
239 | successful. | |
240 | ||
39f3de7c L |
241 | 2015-04-02 H.J. Lu <hongjiu.lu@intel.com> |
242 | ||
243 | * configure: Regenerated. | |
244 | ||
3d5ff620 MF |
245 | 2015-04-02 Mike Frysinger <vapier@gentoo.org> |
246 | ||
247 | * MAINTAINERS: Update my e-mail address. | |
248 | ||
afa59b79 L |
249 | 2015-04-01 H.J. Lu <hongjiu.lu@intel.com> |
250 | ||
251 | * configure: Regenerated. | |
252 | ||
ed2b5077 L |
253 | 2015-03-31 H.J. Lu <hongjiu.lu@intel.com> |
254 | ||
255 | * configure.ac: Revert the AM_ZLIB change. | |
256 | * Makefile.in: Regenerated. | |
257 | * aclocal.m4: Likewise. | |
258 | * configure: Likewise. | |
259 | ||
0ee42ecd L |
260 | 2015-03-31 H.J. Lu <hongjiu.lu@intel.com> |
261 | ||
262 | * Makefile.am (ZLIB): New. | |
263 | (ZLIBINC): Likewise. | |
264 | (AM_CFLAGS): Add $(ZLIBINC). | |
265 | (readelf_LDADD): Add $(ZLIB). | |
266 | * configure.ac (AM_ZLIB): Removed. | |
267 | (zlibdir): New. AC_SUBST. | |
268 | (zlibinc): Likewise. | |
269 | Add --with-system-zlib. | |
270 | * Makefile.in: Regenerated. | |
271 | * config.in: Likewise. | |
272 | * configure: Likewise. | |
273 | ||
1740ba0c NC |
274 | 2015-03-19 Nick Clifton <nickc@redhat.com> |
275 | ||
276 | * readelf.c (get_machine_flags): Decode RL78's G13 and G14 flags. | |
277 | ||
273a4985 JT |
278 | 2015-03-18 Jon Turney <jon.turney@dronecode.org.uk> |
279 | Nick Clifton <nickc@redhat.com> | |
280 | ||
281 | PR binutils/18087 | |
282 | * doc/binutils.texi: Note that when objcopy compresses debug | |
283 | sections the compression is only performed if it makes the section | |
284 | smaller. | |
285 | ||
5656ba2c L |
286 | 2015-03-10 H.J. Lu <hongjiu.lu@intel.com> |
287 | ||
288 | PR binutils/18101 | |
289 | * readelf.c (parse_args): Move nothing to do warning to ... | |
290 | (main): Here. | |
291 | ||
cfad8730 NC |
292 | 2015-03-10 Nick Clifton <nickc@redhat.com> |
293 | ||
b6370efb NC |
294 | PR binutils/18101 |
295 | * readelf.c (parse_args): Enhance check for nothing to do by | |
296 | accounting for the --wide option. | |
297 | ||
cfad8730 NC |
298 | PR binutils/17636 |
299 | * objcopy.c (copy_object): Avoid calling fatal as that does not | |
300 | allow the parent to clean up temporary files. | |
301 | ||
a5721edd JW |
302 | 2015-03-10 Yuri Gribov <y.gribov@samsung.arm> |
303 | ||
304 | PR ld/16572 | |
305 | * readelf.c: Remove support for ELF_ARM_HASENTRY. | |
306 | ||
4fd77a3d NC |
307 | 2015-03-05 Nick Clifton <nickc@redhat.com> |
308 | ||
309 | PR binutils/18064 | |
310 | * doc/binutils.texi (objcopy): Extend description of | |
311 | --add-gnu-debuglink option to explain that the separate debug info | |
312 | file must exist. Add a description of what to do if the debug | |
313 | info file is built in one place but then installed into a separate | |
314 | location. | |
315 | ||
81fb971a NC |
316 | 2015-03-05 Nick Clifton <nickc@redhat.com> |
317 | ||
318 | PR binutils/17994 | |
319 | * dlltool.c (temp_file_to_remove): New local array. | |
320 | (unlink_temp_files): New functions - unlinks any file in the | |
321 | temp_file_to_remove array, unless dotdeltemps is set. | |
322 | (gen_exp_file): Add temp files to array. | |
323 | (make_head): Likewise. | |
324 | (make_delay_head): Likewise. | |
325 | (make_tail): Likewise. | |
326 | (gen_lib_file): Call unlink_temp_files. | |
327 | ||
acf1419f AB |
328 | 2015-02-28 Andrew Burgess <andrew.burgess@embecosm.com> |
329 | ||
330 | * objcopy.c (update_sections): New list. | |
331 | (command_line_switch): Add OPTION_UPDATE_SECTION. | |
332 | (copy_options): Add update-section. | |
333 | (copy_usage): Document new option. | |
334 | (is_update_section): New function. | |
335 | (is_strip_section_1): Add check for attempt to update and remove | |
336 | the same section. | |
337 | (copy_object): Update size and content of requested sections. | |
338 | (skip_section): Don't copy for updated sections. | |
339 | (copy_main): Handle --update-section. | |
340 | * doc/binutils.texi (objcopy): Add description of --update-section | |
341 | option. | |
342 | * NEWS: Mention --update-section option. | |
343 | ||
d93c7787 NC |
344 | 2015-02-26 Nick Clifton <nickc@redhat.com> |
345 | ||
346 | PR binutils/17512 | |
347 | * coffgrok.c (do_type): Check for an out of range tag index. | |
348 | Check for integer overflow computing array dimension. | |
349 | (do_define): Likewise. | |
350 | ||
06b73f41 AB |
351 | 2015-02-26 Andrew Burgess <andrew.burgess@embecosm.com> |
352 | ||
353 | * objcopy.c (init_section_add): Rename optarg to arg in order to | |
354 | avoid shadowing a global variable. | |
355 | ||
e3ee4005 NC |
356 | 2015-02-26 Nick Clifton <nickc@redhat.com> |
357 | ||
358 | PR binutils/17512 | |
359 | * resrc.c (write_rc_messagetable): Tighten check for invalid | |
360 | message lengths. | |
361 | ||
c8071705 NC |
362 | * dwarf.c (display_debug_loc): Pacify the undefined behaviour |
363 | sanitizer by simplifying address difference calculation. | |
364 | (struct Frame_Chunk): Change type of cfa_offset to dwarf_vma in | |
365 | order to avoid arithmetic overflows. | |
366 | (frame_display_row): Cast cfa_offset before printing it. | |
367 | (display_debug_frames): Likewise. | |
368 | Check for an unexpected segment size. | |
369 | Chnage type of 'l' local to dwarf_vma and cast it back to an int | |
370 | when printing. | |
371 | (process_cu_tu_index): Tighten check for an invalid ncols value. | |
372 | * readelf.c (process_corefile_note_segment): Check for | |
373 | inote.descdata extending beyond the end of the section. | |
374 | (process_v850_notes): Likewise. | |
375 | ||
99654aaf TG |
376 | 2015-02-26 Terry Guo <terry.guo@arm.com> |
377 | ||
378 | * readelf.c (arm_attr_tag_ABI_HardFP_use): Update how we | |
379 | display it. | |
380 | ||
7173b38a AB |
381 | 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com> |
382 | ||
383 | * objcopy.c (init_section_add): New function. | |
384 | (section_add_load_file): New function. | |
385 | (copy_main): Make use of new functions. | |
386 | ||
137c83d6 AB |
387 | 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com> |
388 | ||
389 | * od-elf32_avr.c: Add elf32-avr.h include. | |
390 | (OPT_AVRPROP): Define. | |
391 | (options[]): Add 'avr-prop' entry. | |
392 | (elf32_avr_help): Add avr-prop help text. | |
393 | (elf32_avr_dump_avr_prop): New function. | |
394 | (elf32_avr_dump): Add check for avr-prop. | |
395 | ||
685080f2 NC |
396 | 2015-02-24 Nick Clifton <nickc@redhat.com> |
397 | ||
398 | * readelf.c (get_machine_flags): Remove deprecated V850 machine | |
399 | flags. | |
400 | (get_v850_section_type_name): New function. Handles V850 special | |
401 | sections. | |
402 | (get_section_type_name): Add support for V850. | |
403 | (get_v850_elf_note_type): New function. Returns the name of a | |
404 | V850 note. | |
405 | (print_v850_note): New function. Prints a V850 note. | |
406 | (process_v850_notes): New function. Prints V850 notes. | |
407 | (process_note_sections): Add support for V850. | |
408 | ||
94d15024 MF |
409 | 2015-02-24 Mike Frysinger <vapier@gentoo.org> |
410 | ||
411 | PR binutils/17531 | |
412 | * readelf.c (process_symbol_table): Declare chained. Increment it | |
413 | in every loop. Abort when chained is larger than nchains. Move | |
414 | error check outside of chain loop. | |
415 | ||
948f632f DA |
416 | 2015-02-24 Dmitry Antipov <dantipov@nvidia.com> |
417 | ||
418 | * readelf.c (find_symbol_for_address): Use a binary search to | |
419 | speed up symbol location. Skip check for function symbol type. | |
420 | (*_unw_aux_info): Add funtab and nfuns fields contains a sorted | |
421 | list of function symbols. | |
422 | (dump_ia64_unwind): Initialise the funtab and nfuns fields and | |
423 | pass them to find_symbol_for_address. | |
424 | (dump_hppa_unwind): Likewise. | |
425 | (arm_print_vma_and_name): Pass funtab to find_symbol_for_address. | |
426 | (dump_arm_unwind): Initialise the funtab and nfuns fields. | |
427 | ||
0821d5b1 NC |
428 | 2015-02-24 Nick Clifton <nickc@redhat.com> |
429 | ||
430 | * objdump.c (dump_section): Extend the warning message displayed | |
431 | when a section cannot be loaded. | |
432 | ||
9035ed51 MF |
433 | 2015-02-21 Mike Frysinger <vapier@gentoo.org> |
434 | ||
435 | * readelf.c (process_program_headers): Add newline to warning | |
436 | message. | |
437 | ||
4ef9f41a AA |
438 | 2015-02-20 Andreas Arnez <arnez@linux.vnet.ibm.com> |
439 | ||
440 | * readelf.c (get_note_type): Add NT_S390_VXRS_LOW and | |
441 | NT_S390_VXRS_HIGH. | |
442 | ||
951eaaec NC |
443 | 2015-02-13 Nick Clifton <nickc@redhat.com> |
444 | ||
445 | PR binutils/17512 | |
446 | * dwarf.c (read_leb128): Fix test for shift becoming too large. | |
447 | ||
448 | * coffgrok.c (do_define): Add check for type size overflow. | |
449 | * srconv.c (walk_tree_sfile): Check that enough sections are | |
450 | available before parsing. | |
451 | (prescan): Likewise. | |
452 | ||
ffc0f143 NC |
453 | PR binutils/17531 |
454 | * dwarf.c (display_debug_aranges): Add check for an excessive | |
455 | ar_length value. | |
456 | (process_cu_tu_index): Check for a row * columns sum being too | |
457 | large. | |
458 | ||
b4eb7656 AM |
459 | 2015-02-13 Alan Modra <amodra@gmail.com> |
460 | ||
461 | * dwarf.c: Formatting, whitespace. | |
462 | (process_debug_info): Style fix. | |
463 | ||
0e7f931f NC |
464 | 2015-02-11 Nick Clifton <nickc@redhat.com> |
465 | ||
466 | * rl78-decode.opc: Add 'a' attribute to instructions that support | |
467 | [HL+0] addressing. | |
468 | * rl78-decode.c: Regenerate. | |
469 | * rl78-dis.c (print_insn_rl78): Display the offset in [HL+0] | |
470 | addresses. | |
471 | ||
362beea4 NC |
472 | 2015-02-11 Nick Clifton <nickc@redhat.com> |
473 | ||
474 | PR binutils/17531 | |
475 | * dwarf.c (display_debug_pubnames_worker): Work around compiler | |
476 | bug checking address ranges. | |
477 | (display_debug_frames): Likewise. | |
478 | (display_gdb_index): Likewise. | |
479 | (process_cu_tu_index): Add range check on the ncols value. | |
480 | ||
77ef8654 NC |
481 | 2015-02-10 Nick Clifton <nickc@redhat.com> |
482 | ||
483 | PR binutils/17512 | |
484 | * dwarf.c (eh_addr_size): Use an unsigned type. | |
485 | (size_of_encoded_value): Return an unsigned type. | |
486 | (read_leb128): Break if the shift becomes too big. | |
487 | (process_extended_line_op): Do not read the address if the length | |
488 | is too long. | |
489 | (read_cie): Warn and fail if the pointer size or segment size are | |
490 | too big. | |
491 | * dwarf.h (DWARF2_External_LineInfo): Delete unused and incorrect | |
492 | structure definition. | |
493 | (DWARF2_External_PubNames): Likewise. | |
494 | (DWARF2_External_CompUnit): Likewise. | |
495 | (DWARF2_External_ARange): Likewise. | |
496 | (DWARF2_Internal_LineInfo): Use dwarf_vma type for | |
497 | li_prologue_length. | |
498 | (eh_addr_size): Update prototype. | |
499 | ||
03a91817 NC |
500 | PR binutils/17531 |
501 | * dwarf.c (process_debug_info): Zero the debug information array | |
502 | since correct initialisation cannot be relied upon. | |
503 | (process_cu_tu_index): Improve range checks. | |
504 | ||
834f871c NC |
505 | PR binutils/17531 |
506 | * dwarf.c (display_debug_pubnames_worker): Use dwarf_vma type for | |
507 | offset. | |
508 | * readelf.c (dump_relocations): Handle printing offsets which are | |
509 | MIN_INT. | |
510 | (process_corefile_note_segment): Add range check of the namesz | |
511 | field. | |
512 | ||
5a195044 MW |
513 | 2015-02-09 Mark Wielaard <mjw@redhat.com> |
514 | ||
515 | * dwarf.c (read_and_display_attr_value): Handle DW_LANG_Fortran03 | |
516 | and DW_LANG_Fortran08. | |
517 | ||
5929c344 NC |
518 | 2015-02-06 Nick Clifton <nickc@redhat.com> |
519 | ||
520 | PR binutils/17512 | |
521 | * dwarf.c (display_debug_frames): Fix range checks to work on | |
522 | 32-bit binaries complied on a 64-bit host. | |
523 | ||
8490fb40 NC |
524 | PR binutils/17531 |
525 | * dwarf.c (xcmalloc): Fail if the arguments are too big. | |
526 | (xcrealloc): Likewise. | |
527 | (xcalloc2): Likewise. | |
55325047 NC |
528 | * readelf.c (process_mips_specific): Fail if an option has an |
529 | invalid size. | |
8490fb40 | 530 | |
7cc78d07 AM |
531 | 2015-02-05 Alan Modra <amodra@gmail.com> |
532 | ||
533 | PR binutils/17926 | |
534 | * dwarf.c (dwarf_select_sections_by_letters): Don't refer to optarg. | |
535 | ||
f3853b34 NC |
536 | 2015-02-04 Nick Clifton <nickc@redhat.com> |
537 | ||
538 | PR binutils/17531 | |
539 | * dwarf.c (read_and_display_attr_value): Test for a block length | |
540 | being so long that it wraps around to before the start of the block. | |
541 | (process_debug_info): Test for section_begin wrapping around to | |
542 | before the start of the section. | |
543 | (display_gdb_index): Test for num_cus being so large that the end | |
544 | address wraps around to before the start of the section. | |
545 | (process_cu_tu_index): Test for j being so large that the section | |
546 | index pool wraps around to before the start of the section. | |
547 | ||
57028622 NC |
548 | 2015-02-03 Nick Clifton <nickc@redhat.com> |
549 | ||
550 | PR binutils/17531 | |
551 | * dwarf.c (process_debug_info): Add range check. | |
552 | (display_debug_pubnames_worker): Likewise. | |
553 | (display_gdb_index): Fix range check. | |
554 | (process_cu_tu_index): Add range check. | |
555 | * readelf.c (get_data): Change parameter types from size_t to | |
556 | bfd_size_type. Add checks for loss of accuracy when casting from | |
557 | bfd_size_type to size_t. | |
558 | (get_dynamic_data): Likewise. | |
559 | (process_section_groups): Limit number of error messages. | |
560 | ||
64d29018 NC |
561 | 2015-02-03 Nick Clifton <nickc@redhat.com> |
562 | ||
563 | PR binutils/17512 | |
564 | * objdump.c (display_any_bfd): Fail if archives nest too deeply. | |
565 | ||
3f8107ab AM |
566 | 2015-01-28 James Bowman <james.bowman@ftdichip.com> |
567 | ||
568 | * readelf.c: Add FT32 support. | |
569 | ||
37e3922e NC |
570 | 2015-01-27 Nick Clifton <nickc@redhat.com> |
571 | ||
572 | PR binutils/17512 | |
573 | * dlltool.c (identify_search_archive): If the last archive was the | |
574 | same as the current archive, terminate the loop. | |
575 | ||
877a8638 NC |
576 | * addr2line.c (slurp_symtab): If the symcount is zero, free the |
577 | symbol table pointer. | |
578 | ||
0897ec15 NC |
579 | * rcparse.y: Add checks to avoid integer divide by zero. |
580 | * rescoff.c (read_coff_rsrc): Add check on the size of the | |
581 | resource section. | |
582 | (read_coff_res_dir): Add check on the nesting level. | |
583 | Check for resource names overrunning the buffer. | |
584 | * resrc.c (write_rc_messagetable): Update formatting. | |
585 | Add check of 'elen' being zero. | |
586 | ||
bb97bdd7 NC |
587 | 2015-01-23 Nick Clifton <nickc@redhat.com> |
588 | ||
589 | * nlmconv.c (powerpc_mangle_relocs): Fix build errors introduced | |
590 | by recent delta, when compiling on for a 32-bit host. | |
591 | ||
86eafac0 NC |
592 | 2015-01-21 Nick Clifton <nickc@redhat.com> |
593 | ||
594 | PR binutils/17512 | |
595 | * addr2line.c (main): Call bfd_set_error_program_name. | |
596 | * ar.c (main): Likewise. | |
597 | * coffdump.c (main): Likewise. | |
598 | * cxxfilt.c (main): Likewise. | |
599 | * dlltool.c (main): Likewise. | |
600 | * nlmconv.c (main): Likewise. | |
601 | * nm.c (main): Likewise. | |
602 | * objdump.c (main): Likewise. | |
603 | * size.c (main): Likewise. | |
604 | * srconv.c (main): Likewise. | |
605 | * strings.c (main): Likewise. | |
606 | * sysdump.c (main): Likewise. | |
607 | * windmc.c (main): Likewise. | |
608 | * windres.c (main): Likewise. | |
609 | * objcopy.c (main): Likewise. | |
610 | (copy_relocations_in_section): Check for relocs without associated | |
611 | symbol pointers. | |
612 | ||
6c1965f9 RR |
613 | 2015-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
614 | ||
615 | * MAINTAINERS: Add self to ARM maintainers list. | |
616 | ||
5b7d6237 NC |
617 | 2015-01-21 Nick Clifton <nickc@redhat.com> |
618 | ||
619 | PR binutils/17512 | |
620 | * coffgrok.c (do_type): Check that computed ref exists. | |
621 | (doit): Add range checks when computing section for scope. | |
622 | ||
a0a3b04c L |
623 | 2015-01-12 H.J. Lu <hongjiu.lu@intel.com> |
624 | ||
625 | * dwarf.c (process_debug_info): Properly check abbrev size. | |
626 | ||
72c61a0d NC |
627 | 2015-01-12 Nick Clifton <nickc@redhat.com> |
628 | ||
629 | PR binutils/17531 | |
630 | * dwarf.c (process_debug_info): Check for abbrev_base being larger | |
631 | than the section size. | |
632 | (process_cu_tu_index): Use xcalloc2 to allocate the CU and TU | |
633 | arrays. | |
634 | (xcalloc2): New function. Like xcalloc, but checks for overflow. | |
1306a742 NC |
635 | (display_debug_addr): Use xcalloc to allocate the debug_addr_info |
636 | array. Check for an address_base that is too large. | |
637 | ||
72c61a0d NC |
638 | * dwarf.h (xcalloc2): Prototype. |
639 | ||
b38ead21 AM |
640 | 2015-01-12 Alan Modra <amodra@gmail.com> |
641 | ||
642 | * prdbg.c (print_debugging_info): Don't use void* for function | |
643 | pointer param. | |
644 | * budbg.h (print_debugging_info): Update prototype. | |
645 | ||
3565cf8f NC |
646 | 2015-01-08 Nick Clifton <nickc@redhat.com> |
647 | ||
648 | PR binutils/17512 | |
063bb025 NC |
649 | * ojcopy.c (copy_object): Free the symbol table if no symbols |
650 | could be loaded. | |
651 | (copy_file): Use bfd_close_all_done to close files that could not | |
652 | be copied. | |
653 | ||
848cde35 NC |
654 | * sysdump.c (getINT): Fail if reading off the end of the buffer. |
655 | Replace call to abort with a call to fatal. | |
656 | (getCHARS): Prevetn reading off the end of the buffer. | |
657 | ||
3565cf8f NC |
658 | * nlmconv.c (i386_mangle_relocs): Skip relocs without an |
659 | associated symbol. | |
660 | (powerpc_mangle_relocs): Skip unrecognised relocs. Check address | |
661 | range before applying a reloc. | |
662 | ||
c88f5b8e NC |
663 | 2015-01-07 Nick Clifton <nickc@redhat.com> |
664 | ||
665 | PR binutils/17512 | |
d7b24d29 NC |
666 | * dlltool.c (scan_obj_file): Break loop if the last archive |
667 | displayed matches the current archive. | |
668 | ||
c88f5b8e NC |
669 | * objdump.c (display_any_bfd): Add a depth limit to nested archive |
670 | display in order to avoid infinite loops. | |
671 | * srconv.c: Replace calls to abort with calls to fatal with an | |
672 | error message. | |
673 | ||
85880250 NC |
674 | 2015-01-06 Nick Clifton <nickc@redhat.com> |
675 | ||
676 | PR binutils/17512 | |
677 | * coffdump.c (dump_coff_section): Check for a symbol being | |
678 | available before printing its name. | |
679 | (main): Check the return value from coff_grok. | |
680 | * coffgrok.c: Reformat and tidy. | |
681 | Add range checks to most functions. | |
682 | (coff_grok): Return NULL if the input bfd is not in a COFF | |
683 | format. | |
684 | * coffgrok.h: Reformat and tidy. | |
685 | (struct coff_section): Change the nrelocs field to unsigned. | |
686 | * srconv.c (main): Check the return value from coff_grok. | |
687 | ||
896ca098 NC |
688 | 2015-01-05 Nick Clifton <nickc@redhat.com> |
689 | ||
690 | PR binutils/17512 | |
691 | * nm.c (print_symbol): Add 'is_synthetic' parameter. Use it to | |
692 | help initialize the info.elfinfo field. | |
693 | (print_size_symbols): Add 'synth_count' parameter. Use it to set | |
694 | the is_synthetic parameter when calling print_symbol. | |
695 | (print_symbols): Likewise. | |
696 | (display_rel_file): Pass synth_count to printing function. | |
697 | (display_archive): Break loop if the last archive displayed | |
698 | matches the current archive. | |
699 | * size.c (display_archive): Likewise. | |
700 | ||
82b1b41b NC |
701 | 2015-01-05 Nick Clifton <nickc@redhat.com> |
702 | ||
703 | PR binutils/17531 | |
704 | * dwarf.c (alloc_num_debug_info_entries): New variable. | |
705 | (process_debug_info): Set it. Use it to avoid displaying | |
706 | attributes for which there is no info. | |
707 | (display_debug_abbrev): Check that the debug_info_entry index is | |
708 | valid before using it. | |
709 | (display_loc_list_dwo): Likewise. | |
710 | (process_cu_tu_index): Add range check for an overlarge dw_sect | |
711 | value. | |
712 | (free_debug_memory): Reset alloc_num_debug_info_entries. | |
713 | * readelf.c (slurp_ia64_unwind_table): Warn if the reloc could not | |
714 | be indentified. | |
715 | (dynamic_section_mips_val): Warn if the timestamp is invalid. | |
716 | (print_mips_got_entry): Add a data_end parameter. Warn if a read | |
717 | would go beyond the end of the data, and return an error value. | |
718 | (process_mips_specific): Do not read options from beyond the end | |
719 | of the section. | |
720 | Correct code to display optional data at the end of an option. | |
721 | Warn if there are too many GOT symbols. | |
722 | Update calls to print_mips_got_entry, and handle error returns. | |
723 | ||
c1724c7f DK |
724 | 2015-01-05 Daniel Klauer <daniel.c.klauer@web.de> |
725 | ||
726 | PR binutils/17489 | |
727 | * doc/binutils.texi (dlltool): Correct description of --kill-at | |
728 | option. | |
729 | ||
efd321f9 AM |
730 | 2015-01-01 Alan Modra <amodra@gmail.com> |
731 | ||
732 | * version.c (print_version): Just print current year. | |
733 | ||
b90efa5b | 734 | 2015-01-01 Alan Modra <amodra@gmail.com> |
5c294fee | 735 | |
b90efa5b | 736 | Update year range in copyright notice of all files. |
5c294fee | 737 | |
b90efa5b | 738 | For older changes see ChangeLog-2014 |
252b5132 | 739 | \f |
b90efa5b | 740 | Copyright (C) 2015 Free Software Foundation, Inc. |
752937aa NC |
741 | |
742 | Copying and distribution of this file, with or without modification, | |
743 | are permitted in any medium without royalty provided the copyright | |
744 | notice and this notice are preserved. | |
745 | ||
252b5132 RH |
746 | Local Variables: |
747 | mode: change-log | |
748 | left-margin: 8 | |
749 | fill-column: 74 | |
750 | version-control: never | |
751 | End: |