ChangeLog 29 KB

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