[ARM]: Don't tail-pad over-aligned functions to the alignment boundary.
[deliverable/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
f6fe1ccd
L
12015-04-23 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR binutils/18209
4 * objcopy.c (setup_section): Copy compress status.
5
ea556d25
L
62015-04-15 H.J. Lu <hongjiu.lu@intel.com>
7
8 * NEWS: Mention
9 --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
10
6ff71e76
NC
112015-04-14 Nick Clifton <nickc@redhat.com>
12
13 * readelf.c (target_specific_reloc_handling): Add code to handle
14 RL78 complex relocs.
15
0d2a7a93
DE
162015-04-13 Doug Evans <dje@google.com>
17
18 PR binutils/18218
19 * readelf.c (printable_section_name): Constify sec argument.
20 (apply_relocations): Ditto. New arg "size". All callers updated.
21 (load_specific_debug_section): Constify sec argument.
22 Remove side-effect of modifying sec->sh_size.
23
cd6faa73
L
242015-04-09 H.J. Lu <hongjiu.lu@intel.com>
25
26 * objcopy.c (do_debug_sections): Use bit patterns.
27 (copy_object): Return FALSE for compress_zlib, compress_gnu_zlib
28 and compress_gabi_zlib on non-ELF input.
29 (copy_file): Don't check non-ELF input here.
30
3525236c
NC
312015-04-09 Nick Clifton <nickc@redhat.com>
32
33 * readelf.c (get_machine_flags): Report the setting of the string
34 insn using bits.
35
151411f8
L
362015-04-08 H.J. Lu <hongjiu.lu@intel.com>
37
38 * objcopy.c (do_debug_sections): Add compress_zlib,
39 compress_gnu_zlib and compress_gabi_zlib.
40 (copy_options): Use optional_argument on compress-debug-sections.
41 (copy_usage): Update --compress-debug-sections.
42 (copy_file): Handle compress_zlib, compress_gnu_zlib and
43 compress_gabi_zlib.
44 (copy_main): Handle
45 --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
46 * doc/binutils.texi: Document
47 --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
48
bfcf0ccd
L
492015-04-08 H.J. Lu <hongjiu.lu@intel.com>
50
51 * objcopy.c (copy_usage): Replace "--interleave [<number>]" with
52 --interleave[=<number>].
53
77115a4a
L
542015-04-05 H.J. Lu <hongjiu.lu@intel.com>
55
56 * readelf.c (get_elf_section_flags): Support SHF_COMPRESSED.
57 (get_compression_header): New.
58 (process_section_headers): Dump compression header if needed.
59 (uncompress_section_contents): Don't free compressed_buffer here.
60 (load_specific_debug_section): Free the compressed buffer, update
61 the section buffer and the section size if uncompress is
62 successful.
63
39f3de7c
L
642015-04-02 H.J. Lu <hongjiu.lu@intel.com>
65
66 * configure: Regenerated.
67
3d5ff620
MF
682015-04-02 Mike Frysinger <vapier@gentoo.org>
69
70 * MAINTAINERS: Update my e-mail address.
71
afa59b79
L
722015-04-01 H.J. Lu <hongjiu.lu@intel.com>
73
74 * configure: Regenerated.
75
ed2b5077
L
762015-03-31 H.J. Lu <hongjiu.lu@intel.com>
77
78 * configure.ac: Revert the AM_ZLIB change.
79 * Makefile.in: Regenerated.
80 * aclocal.m4: Likewise.
81 * configure: Likewise.
82
0ee42ecd
L
832015-03-31 H.J. Lu <hongjiu.lu@intel.com>
84
85 * Makefile.am (ZLIB): New.
86 (ZLIBINC): Likewise.
87 (AM_CFLAGS): Add $(ZLIBINC).
88 (readelf_LDADD): Add $(ZLIB).
89 * configure.ac (AM_ZLIB): Removed.
90 (zlibdir): New. AC_SUBST.
91 (zlibinc): Likewise.
92 Add --with-system-zlib.
93 * Makefile.in: Regenerated.
94 * config.in: Likewise.
95 * configure: Likewise.
96
1740ba0c
NC
972015-03-19 Nick Clifton <nickc@redhat.com>
98
99 * readelf.c (get_machine_flags): Decode RL78's G13 and G14 flags.
100
273a4985
JT
1012015-03-18 Jon Turney <jon.turney@dronecode.org.uk>
102 Nick Clifton <nickc@redhat.com>
103
104 PR binutils/18087
105 * doc/binutils.texi: Note that when objcopy compresses debug
106 sections the compression is only performed if it makes the section
107 smaller.
108
5656ba2c
L
1092015-03-10 H.J. Lu <hongjiu.lu@intel.com>
110
111 PR binutils/18101
112 * readelf.c (parse_args): Move nothing to do warning to ...
113 (main): Here.
114
cfad8730
NC
1152015-03-10 Nick Clifton <nickc@redhat.com>
116
b6370efb
NC
117 PR binutils/18101
118 * readelf.c (parse_args): Enhance check for nothing to do by
119 accounting for the --wide option.
120
cfad8730
NC
121 PR binutils/17636
122 * objcopy.c (copy_object): Avoid calling fatal as that does not
123 allow the parent to clean up temporary files.
124
a5721edd
JW
1252015-03-10 Yuri Gribov <y.gribov@samsung.arm>
126
127 PR ld/16572
128 * readelf.c: Remove support for ELF_ARM_HASENTRY.
129
4fd77a3d
NC
1302015-03-05 Nick Clifton <nickc@redhat.com>
131
132 PR binutils/18064
133 * doc/binutils.texi (objcopy): Extend description of
134 --add-gnu-debuglink option to explain that the separate debug info
135 file must exist. Add a description of what to do if the debug
136 info file is built in one place but then installed into a separate
137 location.
138
81fb971a
NC
1392015-03-05 Nick Clifton <nickc@redhat.com>
140
141 PR binutils/17994
142 * dlltool.c (temp_file_to_remove): New local array.
143 (unlink_temp_files): New functions - unlinks any file in the
144 temp_file_to_remove array, unless dotdeltemps is set.
145 (gen_exp_file): Add temp files to array.
146 (make_head): Likewise.
147 (make_delay_head): Likewise.
148 (make_tail): Likewise.
149 (gen_lib_file): Call unlink_temp_files.
150
acf1419f
AB
1512015-02-28 Andrew Burgess <andrew.burgess@embecosm.com>
152
153 * objcopy.c (update_sections): New list.
154 (command_line_switch): Add OPTION_UPDATE_SECTION.
155 (copy_options): Add update-section.
156 (copy_usage): Document new option.
157 (is_update_section): New function.
158 (is_strip_section_1): Add check for attempt to update and remove
159 the same section.
160 (copy_object): Update size and content of requested sections.
161 (skip_section): Don't copy for updated sections.
162 (copy_main): Handle --update-section.
163 * doc/binutils.texi (objcopy): Add description of --update-section
164 option.
165 * NEWS: Mention --update-section option.
166
d93c7787
NC
1672015-02-26 Nick Clifton <nickc@redhat.com>
168
169 PR binutils/17512
170 * coffgrok.c (do_type): Check for an out of range tag index.
171 Check for integer overflow computing array dimension.
172 (do_define): Likewise.
173
06b73f41
AB
1742015-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
175
176 * objcopy.c (init_section_add): Rename optarg to arg in order to
177 avoid shadowing a global variable.
178
e3ee4005
NC
1792015-02-26 Nick Clifton <nickc@redhat.com>
180
181 PR binutils/17512
182 * resrc.c (write_rc_messagetable): Tighten check for invalid
183 message lengths.
184
c8071705
NC
185 * dwarf.c (display_debug_loc): Pacify the undefined behaviour
186 sanitizer by simplifying address difference calculation.
187 (struct Frame_Chunk): Change type of cfa_offset to dwarf_vma in
188 order to avoid arithmetic overflows.
189 (frame_display_row): Cast cfa_offset before printing it.
190 (display_debug_frames): Likewise.
191 Check for an unexpected segment size.
192 Chnage type of 'l' local to dwarf_vma and cast it back to an int
193 when printing.
194 (process_cu_tu_index): Tighten check for an invalid ncols value.
195 * readelf.c (process_corefile_note_segment): Check for
196 inote.descdata extending beyond the end of the section.
197 (process_v850_notes): Likewise.
198
99654aaf
TG
1992015-02-26 Terry Guo <terry.guo@arm.com>
200
201 * readelf.c (arm_attr_tag_ABI_HardFP_use): Update how we
202 display it.
203
7173b38a
AB
2042015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
205
206 * objcopy.c (init_section_add): New function.
207 (section_add_load_file): New function.
208 (copy_main): Make use of new functions.
209
137c83d6
AB
2102015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
211
212 * od-elf32_avr.c: Add elf32-avr.h include.
213 (OPT_AVRPROP): Define.
214 (options[]): Add 'avr-prop' entry.
215 (elf32_avr_help): Add avr-prop help text.
216 (elf32_avr_dump_avr_prop): New function.
217 (elf32_avr_dump): Add check for avr-prop.
218
685080f2
NC
2192015-02-24 Nick Clifton <nickc@redhat.com>
220
221 * readelf.c (get_machine_flags): Remove deprecated V850 machine
222 flags.
223 (get_v850_section_type_name): New function. Handles V850 special
224 sections.
225 (get_section_type_name): Add support for V850.
226 (get_v850_elf_note_type): New function. Returns the name of a
227 V850 note.
228 (print_v850_note): New function. Prints a V850 note.
229 (process_v850_notes): New function. Prints V850 notes.
230 (process_note_sections): Add support for V850.
231
94d15024
MF
2322015-02-24 Mike Frysinger <vapier@gentoo.org>
233
234 PR binutils/17531
235 * readelf.c (process_symbol_table): Declare chained. Increment it
236 in every loop. Abort when chained is larger than nchains. Move
237 error check outside of chain loop.
238
948f632f
DA
2392015-02-24 Dmitry Antipov <dantipov@nvidia.com>
240
241 * readelf.c (find_symbol_for_address): Use a binary search to
242 speed up symbol location. Skip check for function symbol type.
243 (*_unw_aux_info): Add funtab and nfuns fields contains a sorted
244 list of function symbols.
245 (dump_ia64_unwind): Initialise the funtab and nfuns fields and
246 pass them to find_symbol_for_address.
247 (dump_hppa_unwind): Likewise.
248 (arm_print_vma_and_name): Pass funtab to find_symbol_for_address.
249 (dump_arm_unwind): Initialise the funtab and nfuns fields.
250
0821d5b1
NC
2512015-02-24 Nick Clifton <nickc@redhat.com>
252
253 * objdump.c (dump_section): Extend the warning message displayed
254 when a section cannot be loaded.
255
9035ed51
MF
2562015-02-21 Mike Frysinger <vapier@gentoo.org>
257
258 * readelf.c (process_program_headers): Add newline to warning
259 message.
260
4ef9f41a
AA
2612015-02-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
262
263 * readelf.c (get_note_type): Add NT_S390_VXRS_LOW and
264 NT_S390_VXRS_HIGH.
265
951eaaec
NC
2662015-02-13 Nick Clifton <nickc@redhat.com>
267
268 PR binutils/17512
269 * dwarf.c (read_leb128): Fix test for shift becoming too large.
270
271 * coffgrok.c (do_define): Add check for type size overflow.
272 * srconv.c (walk_tree_sfile): Check that enough sections are
273 available before parsing.
274 (prescan): Likewise.
275
ffc0f143
NC
276 PR binutils/17531
277 * dwarf.c (display_debug_aranges): Add check for an excessive
278 ar_length value.
279 (process_cu_tu_index): Check for a row * columns sum being too
280 large.
281
b4eb7656
AM
2822015-02-13 Alan Modra <amodra@gmail.com>
283
284 * dwarf.c: Formatting, whitespace.
285 (process_debug_info): Style fix.
286
0e7f931f
NC
2872015-02-11 Nick Clifton <nickc@redhat.com>
288
289 * rl78-decode.opc: Add 'a' attribute to instructions that support
290 [HL+0] addressing.
291 * rl78-decode.c: Regenerate.
292 * rl78-dis.c (print_insn_rl78): Display the offset in [HL+0]
293 addresses.
294
362beea4
NC
2952015-02-11 Nick Clifton <nickc@redhat.com>
296
297 PR binutils/17531
298 * dwarf.c (display_debug_pubnames_worker): Work around compiler
299 bug checking address ranges.
300 (display_debug_frames): Likewise.
301 (display_gdb_index): Likewise.
302 (process_cu_tu_index): Add range check on the ncols value.
303
77ef8654
NC
3042015-02-10 Nick Clifton <nickc@redhat.com>
305
306 PR binutils/17512
307 * dwarf.c (eh_addr_size): Use an unsigned type.
308 (size_of_encoded_value): Return an unsigned type.
309 (read_leb128): Break if the shift becomes too big.
310 (process_extended_line_op): Do not read the address if the length
311 is too long.
312 (read_cie): Warn and fail if the pointer size or segment size are
313 too big.
314 * dwarf.h (DWARF2_External_LineInfo): Delete unused and incorrect
315 structure definition.
316 (DWARF2_External_PubNames): Likewise.
317 (DWARF2_External_CompUnit): Likewise.
318 (DWARF2_External_ARange): Likewise.
319 (DWARF2_Internal_LineInfo): Use dwarf_vma type for
320 li_prologue_length.
321 (eh_addr_size): Update prototype.
322
03a91817
NC
323 PR binutils/17531
324 * dwarf.c (process_debug_info): Zero the debug information array
325 since correct initialisation cannot be relied upon.
326 (process_cu_tu_index): Improve range checks.
327
834f871c
NC
328 PR binutils/17531
329 * dwarf.c (display_debug_pubnames_worker): Use dwarf_vma type for
330 offset.
331 * readelf.c (dump_relocations): Handle printing offsets which are
332 MIN_INT.
333 (process_corefile_note_segment): Add range check of the namesz
334 field.
335
5a195044
MW
3362015-02-09 Mark Wielaard <mjw@redhat.com>
337
338 * dwarf.c (read_and_display_attr_value): Handle DW_LANG_Fortran03
339 and DW_LANG_Fortran08.
340
5929c344
NC
3412015-02-06 Nick Clifton <nickc@redhat.com>
342
343 PR binutils/17512
344 * dwarf.c (display_debug_frames): Fix range checks to work on
345 32-bit binaries complied on a 64-bit host.
346
8490fb40
NC
347 PR binutils/17531
348 * dwarf.c (xcmalloc): Fail if the arguments are too big.
349 (xcrealloc): Likewise.
350 (xcalloc2): Likewise.
55325047
NC
351 * readelf.c (process_mips_specific): Fail if an option has an
352 invalid size.
8490fb40 353
7cc78d07
AM
3542015-02-05 Alan Modra <amodra@gmail.com>
355
356 PR binutils/17926
357 * dwarf.c (dwarf_select_sections_by_letters): Don't refer to optarg.
358
f3853b34
NC
3592015-02-04 Nick Clifton <nickc@redhat.com>
360
361 PR binutils/17531
362 * dwarf.c (read_and_display_attr_value): Test for a block length
363 being so long that it wraps around to before the start of the block.
364 (process_debug_info): Test for section_begin wrapping around to
365 before the start of the section.
366 (display_gdb_index): Test for num_cus being so large that the end
367 address wraps around to before the start of the section.
368 (process_cu_tu_index): Test for j being so large that the section
369 index pool wraps around to before the start of the section.
370
57028622
NC
3712015-02-03 Nick Clifton <nickc@redhat.com>
372
373 PR binutils/17531
374 * dwarf.c (process_debug_info): Add range check.
375 (display_debug_pubnames_worker): Likewise.
376 (display_gdb_index): Fix range check.
377 (process_cu_tu_index): Add range check.
378 * readelf.c (get_data): Change parameter types from size_t to
379 bfd_size_type. Add checks for loss of accuracy when casting from
380 bfd_size_type to size_t.
381 (get_dynamic_data): Likewise.
382 (process_section_groups): Limit number of error messages.
383
64d29018
NC
3842015-02-03 Nick Clifton <nickc@redhat.com>
385
386 PR binutils/17512
387 * objdump.c (display_any_bfd): Fail if archives nest too deeply.
388
3f8107ab
AM
3892015-01-28 James Bowman <james.bowman@ftdichip.com>
390
391 * readelf.c: Add FT32 support.
392
37e3922e
NC
3932015-01-27 Nick Clifton <nickc@redhat.com>
394
395 PR binutils/17512
396 * dlltool.c (identify_search_archive): If the last archive was the
397 same as the current archive, terminate the loop.
398
877a8638
NC
399 * addr2line.c (slurp_symtab): If the symcount is zero, free the
400 symbol table pointer.
401
0897ec15
NC
402 * rcparse.y: Add checks to avoid integer divide by zero.
403 * rescoff.c (read_coff_rsrc): Add check on the size of the
404 resource section.
405 (read_coff_res_dir): Add check on the nesting level.
406 Check for resource names overrunning the buffer.
407 * resrc.c (write_rc_messagetable): Update formatting.
408 Add check of 'elen' being zero.
409
bb97bdd7
NC
4102015-01-23 Nick Clifton <nickc@redhat.com>
411
412 * nlmconv.c (powerpc_mangle_relocs): Fix build errors introduced
413 by recent delta, when compiling on for a 32-bit host.
414
86eafac0
NC
4152015-01-21 Nick Clifton <nickc@redhat.com>
416
417 PR binutils/17512
418 * addr2line.c (main): Call bfd_set_error_program_name.
419 * ar.c (main): Likewise.
420 * coffdump.c (main): Likewise.
421 * cxxfilt.c (main): Likewise.
422 * dlltool.c (main): Likewise.
423 * nlmconv.c (main): Likewise.
424 * nm.c (main): Likewise.
425 * objdump.c (main): Likewise.
426 * size.c (main): Likewise.
427 * srconv.c (main): Likewise.
428 * strings.c (main): Likewise.
429 * sysdump.c (main): Likewise.
430 * windmc.c (main): Likewise.
431 * windres.c (main): Likewise.
432 * objcopy.c (main): Likewise.
433 (copy_relocations_in_section): Check for relocs without associated
434 symbol pointers.
435
6c1965f9
RR
4362015-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
437
438 * MAINTAINERS: Add self to ARM maintainers list.
439
5b7d6237
NC
4402015-01-21 Nick Clifton <nickc@redhat.com>
441
442 PR binutils/17512
443 * coffgrok.c (do_type): Check that computed ref exists.
444 (doit): Add range checks when computing section for scope.
445
a0a3b04c
L
4462015-01-12 H.J. Lu <hongjiu.lu@intel.com>
447
448 * dwarf.c (process_debug_info): Properly check abbrev size.
449
72c61a0d
NC
4502015-01-12 Nick Clifton <nickc@redhat.com>
451
452 PR binutils/17531
453 * dwarf.c (process_debug_info): Check for abbrev_base being larger
454 than the section size.
455 (process_cu_tu_index): Use xcalloc2 to allocate the CU and TU
456 arrays.
457 (xcalloc2): New function. Like xcalloc, but checks for overflow.
1306a742
NC
458 (display_debug_addr): Use xcalloc to allocate the debug_addr_info
459 array. Check for an address_base that is too large.
460
72c61a0d
NC
461 * dwarf.h (xcalloc2): Prototype.
462
b38ead21
AM
4632015-01-12 Alan Modra <amodra@gmail.com>
464
465 * prdbg.c (print_debugging_info): Don't use void* for function
466 pointer param.
467 * budbg.h (print_debugging_info): Update prototype.
468
3565cf8f
NC
4692015-01-08 Nick Clifton <nickc@redhat.com>
470
471 PR binutils/17512
063bb025
NC
472 * ojcopy.c (copy_object): Free the symbol table if no symbols
473 could be loaded.
474 (copy_file): Use bfd_close_all_done to close files that could not
475 be copied.
476
848cde35
NC
477 * sysdump.c (getINT): Fail if reading off the end of the buffer.
478 Replace call to abort with a call to fatal.
479 (getCHARS): Prevetn reading off the end of the buffer.
480
3565cf8f
NC
481 * nlmconv.c (i386_mangle_relocs): Skip relocs without an
482 associated symbol.
483 (powerpc_mangle_relocs): Skip unrecognised relocs. Check address
484 range before applying a reloc.
485
c88f5b8e
NC
4862015-01-07 Nick Clifton <nickc@redhat.com>
487
488 PR binutils/17512
d7b24d29
NC
489 * dlltool.c (scan_obj_file): Break loop if the last archive
490 displayed matches the current archive.
491
c88f5b8e
NC
492 * objdump.c (display_any_bfd): Add a depth limit to nested archive
493 display in order to avoid infinite loops.
494 * srconv.c: Replace calls to abort with calls to fatal with an
495 error message.
496
85880250
NC
4972015-01-06 Nick Clifton <nickc@redhat.com>
498
499 PR binutils/17512
500 * coffdump.c (dump_coff_section): Check for a symbol being
501 available before printing its name.
502 (main): Check the return value from coff_grok.
503 * coffgrok.c: Reformat and tidy.
504 Add range checks to most functions.
505 (coff_grok): Return NULL if the input bfd is not in a COFF
506 format.
507 * coffgrok.h: Reformat and tidy.
508 (struct coff_section): Change the nrelocs field to unsigned.
509 * srconv.c (main): Check the return value from coff_grok.
510
896ca098
NC
5112015-01-05 Nick Clifton <nickc@redhat.com>
512
513 PR binutils/17512
514 * nm.c (print_symbol): Add 'is_synthetic' parameter. Use it to
515 help initialize the info.elfinfo field.
516 (print_size_symbols): Add 'synth_count' parameter. Use it to set
517 the is_synthetic parameter when calling print_symbol.
518 (print_symbols): Likewise.
519 (display_rel_file): Pass synth_count to printing function.
520 (display_archive): Break loop if the last archive displayed
521 matches the current archive.
522 * size.c (display_archive): Likewise.
523
82b1b41b
NC
5242015-01-05 Nick Clifton <nickc@redhat.com>
525
526 PR binutils/17531
527 * dwarf.c (alloc_num_debug_info_entries): New variable.
528 (process_debug_info): Set it. Use it to avoid displaying
529 attributes for which there is no info.
530 (display_debug_abbrev): Check that the debug_info_entry index is
531 valid before using it.
532 (display_loc_list_dwo): Likewise.
533 (process_cu_tu_index): Add range check for an overlarge dw_sect
534 value.
535 (free_debug_memory): Reset alloc_num_debug_info_entries.
536 * readelf.c (slurp_ia64_unwind_table): Warn if the reloc could not
537 be indentified.
538 (dynamic_section_mips_val): Warn if the timestamp is invalid.
539 (print_mips_got_entry): Add a data_end parameter. Warn if a read
540 would go beyond the end of the data, and return an error value.
541 (process_mips_specific): Do not read options from beyond the end
542 of the section.
543 Correct code to display optional data at the end of an option.
544 Warn if there are too many GOT symbols.
545 Update calls to print_mips_got_entry, and handle error returns.
546
c1724c7f
DK
5472015-01-05 Daniel Klauer <daniel.c.klauer@web.de>
548
549 PR binutils/17489
550 * doc/binutils.texi (dlltool): Correct description of --kill-at
551 option.
552
efd321f9
AM
5532015-01-01 Alan Modra <amodra@gmail.com>
554
555 * version.c (print_version): Just print current year.
556
b90efa5b 5572015-01-01 Alan Modra <amodra@gmail.com>
5c294fee 558
b90efa5b 559 Update year range in copyright notice of all files.
5c294fee 560
b90efa5b 561For older changes see ChangeLog-2014
252b5132 562\f
b90efa5b 563Copyright (C) 2015 Free Software Foundation, Inc.
752937aa
NC
564
565Copying and distribution of this file, with or without modification,
566are permitted in any medium without royalty provided the copyright
567notice and this notice are preserved.
568
252b5132
RH
569Local Variables:
570mode: change-log
571left-margin: 8
572fill-column: 74
573version-control: never
574End:
This page took 0.696223 seconds and 4 git commands to generate.