ChangeLog-2015 32 KB

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