ChangeLog-2017 63 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886
  1. 2017-12-19 Nick Clifton <nickc@redhat.com>
  2. PR 22587
  3. * readelf.c (process_section_headers): Do not complain about an
  4. sh_info field of 0 in relocation sections of ET_EXEC or ET_DYN
  5. type executables.
  6. 2017-12-19 Alan Modra <amodra@gmail.com>
  7. * testsuite/binutils-all/ar.exp (unique_symbol): Don't run AR
  8. if assembly fails.
  9. * testsuite/binutils-all/arc/objdump.exp (check_assembly): If
  10. objfile is empty, fail test.
  11. * testsuite/binutils-all/arm/objdump.exp: Don't return if assembly
  12. fails for a test, continue on to other tests.
  13. * testsuite/binutils-all/bfin/objdump.exp: Likewise.
  14. * testsuite/binutils-all/hppa/objdump.exp: Likewise.
  15. * testsuite/binutils-all/m68k/objdump.exp: Likewise.
  16. * testsuite/binutils-all/vax/objdump.exp: Likewise.
  17. * testsuite/binutils-all/size.exp: Likewise.
  18. * testsuite/binutils-all/nm.exp: Likewise. Move PR12753 test.
  19. * testsuite/binutils-all/objcopy.exp: Don't perror on assembly fail.
  20. * testsuite/binutils-all/objdump.exp: Report assembly fails.
  21. 2017-12-18 Nick Clifton <nickc@redhat.com>
  22. PR 22532
  23. * dwarf.c (read_and_display_attr_value): Add attributes that might
  24. use the DW_FORM_exprloc form, and if so, display the decoded
  25. location expression list.
  26. 2017-12-14 Alan Modra <amodra@gmail.com>
  27. * testsuite/lib/utils-lib.exp (default_binutils_assemble_flags):
  28. Don't perror on assembler diagnostic output.
  29. * testsuite/binutils-all/nm.exp: Run unique symbol test on all
  30. ELF targets. Resolve as "unsupported" on assembly failure.
  31. 2017-12-11 Renlin Li <renlin.li@arm.com>
  32. * testsuite/binutils-all/aarch64/objdump.d: New.
  33. * testsuite/binutils-all/aarch64/objdump.s: New.
  34. 2017-12-08 Nick Clifton <nickc@redhat.com>
  35. * objcopy.c (copy_relocations_in_section): Use the orelocations
  36. field of the input section, if it has been initialised.
  37. * testsuite/binutils-all/note-2-64.d: Skip test on Sparc64.
  38. 2017-12-06 Jim Wilson <jimw@sifive.com>
  39. PR 22465
  40. * objcopy.c (copy_section): New local extra. If isection->lma not
  41. exactly divisible by interleave, then bias from. Also adjust
  42. osection->lma if necessary.
  43. 2017-12-06 Alan Modra <amodra@gmail.com>
  44. PR 22552
  45. * readelf.c (process_file_header): Don't assume XINDEX case
  46. value for e_shstrndx is within bounds.
  47. (load_debug_section): Sanity test e_shstrndx before attempting
  48. to read .shstrtab. Wrap long lines.
  49. 2017-12-01 Oleksandr Pikozh <o.pikozh@gmail.com>
  50. * doc/binutils.texi: Add --strip-unneeded to objcopy synopsis.
  51. 2017-11-30 Nick Clifton <nickc@redhat.com>
  52. PR 22510
  53. * readelf.c (load_debug_section): Fail if there are no section
  54. headers available.
  55. 2017-11-29 Nick Clifton <nickc@redhat.com>
  56. PR 22508
  57. * objdump.c (dump_relocs_in_section): Also check the section's
  58. relocation count to make sure that it is reasonable before
  59. attempting to allocate space for the relocs.
  60. 2017-11-29 Stefan Stroe <stroestefan@gmail.com>
  61. * po/Make-in (datadir): Define as @datadir@.
  62. (localedir): Define as @localedir@.
  63. (gnulocaledir, gettextsrcdir): Use @datarootdir@.
  64. 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
  65. PR binutils/22490
  66. * readelf.c (process_notes_at): Add an argument for note
  67. alignment. If note alignment is less than 4, use 4 byte
  68. alignment. Otherwise, skip notes if alignment isn't 4 nor
  69. 8 bytes.
  70. (process_corefile_note_segments): Pass segment alignment to
  71. process_notes_at.
  72. (process_note_sections): Pass section alignment to
  73. process_notes_at.
  74. (process_object): Call load_separate_debug_file only if
  75. e_shstrndx != SHN_UNDEF.
  76. 2017-11-27 Nick Clifton <nickc@redhat.com>
  77. PR 22490
  78. * readelf.c (dump_section_as_bytes): Check for a NULL string
  79. section pointer.
  80. (process_notes_at): Compute the alignment to use if displaying
  81. notes from a segment.
  82. 2017-11-26 H.J. Lu <hongjiu.lu@intel.com>
  83. * dwarf.c (load_separate_debug_info): Rename argument name from
  84. link to xlink.
  85. 2017-11-24 H.J. Lu <hongjiu.lu@intel.com>
  86. PR binutils/22444
  87. * readelf.c (process_notes_at): Use ELF_NOTE_DESC_OFFSET to get
  88. the offset of the note descriptor. Use ELF_NOTE_NEXT_OFFSET to
  89. get the offset of the next note entry.
  90. 2017-11-23 Pavel I. Kryukov <kryukov@frtk.ru>
  91. PR 22485
  92. * readelf.c (process_archive): Use memset to initiaise
  93. thin_filedata structure.
  94. 2017-11-21 H.J. Lu <hongjiu.lu@intel.com>
  95. PR binutils/22451
  96. * testsuite/binutils-all/x86-64/objects.exp: New file.
  97. * testsuite/binutils-all/x86-64/pr22451.o.bz2: Likewise.
  98. 2017-11-21 Claudiu Zissulescu <claziss@synopsys.com>
  99. * testsuite/binutils-all/arc/objdump.exp: Update pattern matching
  100. expression.
  101. 2017-11-21 Nick Clifton <nickc@redhat.com>
  102. * dwarf.c (dwo_name, dwo_dir, dwo_id, dwo_id_len): New variables.
  103. (read_and_display_attr_value): Record dwo variables if requested.
  104. (display_augmentation_data): Rename to display_data and make
  105. generic.
  106. (load_dwo_file): New function. Loads a separate dwarf object
  107. file.
  108. (load_separate_debug_file): Add reporting and loading of separate
  109. dwarf objet files.
  110. * readelf.c (process_section_headers): Add do_debug_links to list
  111. of flags requiring a debug dump.
  112. (display_debug_section): Tidy up code.
  113. * doc/debug.options.texi: Add note that dwo links will also be
  114. followed.
  115. * testsuite/binutils-all/debuglink.s: Tidy code.
  116. * testsuite/binutils-all/dwo.s: New test file.
  117. * testsuite/binutils-all/readelf.wk2: New file - expected output
  118. from readelf.
  119. * testsuite/binutils-all/readelf.exp: Run the new test.
  120. 2017-11-18 Alan Modra <amodra@gmail.com>
  121. PR 22443
  122. * nm.c (sort_symbols_by_size): Don't attempt to access
  123. section symbol internal_elf_sym.
  124. (print_symbol): Likewise. Don't call bfd_get_symbol_version_string
  125. for section symbols.
  126. * objdump.c (compare_symbols): Don't attempt to access
  127. section symbol internal_elf_sym.
  128. (objdump_print_symname): Don't call bfd_get_symbol_version_string
  129. for section symbols.
  130. 2017-11-17 Jim Wilson <jimw@sifive.com>
  131. * readelf.c (elf/riscv.h): Alphabetize include.
  132. (is_32bit_inplace_add_reloc, is_32bit_inplace_sub_reloc)
  133. (is_64bit_inplace_add_reloc, is_64bit_inplace_sub_reloc)
  134. (is_16bit_inplace_add_reloc, is_16bit_inplace_sub_reloc)
  135. (is_8bit_inplace_add_reloc, is_8bit_inplace_sub_reloc): New.
  136. (apply_relocations): New locals reloc_inplace and reloc_subtract.
  137. Call the new functions and set the new locals. Call byte_get if
  138. reloc_inplace. Subtract sym->st_value if reloc_subtract.
  139. 2017-11-17 Nick Clifton <nickc@redhat.com>
  140. PR 22449
  141. * ar.c (write_archive): Free the temporary file name.
  142. 2017-11-17 Nick Clifton <nickc@redhat.com>
  143. * readelf.c (process_archive): Include member name in the
  144. file_name of the filedata structure.
  145. 2017-11-15 Alan Modra <amodra@gmail.com>
  146. PR 22426
  147. * objcopy.c (copy_main): Free tmpname.
  148. 2017-11-15 Nick Clifton <nickc@redhat.com>
  149. PR 15152
  150. * dwarf.h (enum dwarf_section_display_enum): Add gnu_debuglink,
  151. gnu_debugaltlink and separate_debug_str.
  152. (struct dwarf_section): Add filename field.
  153. Add prototypes for load_separate_debug_file, close_debug_file and
  154. open_debug_file.
  155. * dwarf.c (do_debug_links): New.
  156. (do_follow_links): New.
  157. (separate_debug_file, separate_debug_filename): New.
  158. (fetch_alt_indirect_string): New function. Retrieves a string
  159. from the debug string table in the separate debug info file.
  160. (read_and_display_attr_value): Use it with DW_FORM_GNU_strp_alt.
  161. (load_debug_section_with_follow): New function. Like
  162. load_debug_section, but if the first attempt fails, then tries
  163. again in the separate debug info file.
  164. (introduce): New function.
  165. (process_debug_info): Use load_debug_section_with_follow and
  166. introduce.
  167. (load_debug_info): Likewise.
  168. (display_debug_lines_raw): Likewise.
  169. (display_debug_lines_decoded): Likewise.
  170. (display_debug_macinfo): Likewise.
  171. (display_debug_macro): Likewise.
  172. (display_debug_abbrev): Likewise.
  173. (display_debug_loc): Likewise.
  174. (display_debug_str): Likewise.
  175. (display_debug_aranges): Likewise.
  176. (display_debug_addr); Likewise.
  177. (display_debug_frames): Likewise.
  178. (display_gdb_index): Likewise.
  179. (process_cu_tu_index): Likewise.
  180. (load_cu_tu_indexes): Likewise.
  181. (display_debug_links): New function. Displays the contents of a
  182. .gnu_debuglink or .gnu_debugaltlink section.
  183. (calc_gnu_debuglink_ctc32):New function. Calculates a CRC32
  184. value.
  185. (check_gnu_debuglink): New function. Checks the CRC of a
  186. potential separate debug info file.
  187. (parse_gnu_debuglink): New function. Reads a CRC value out of a
  188. .gnu_debuglink section.
  189. (check_gnu_debugaltlink): New function.
  190. (parse_gnu_debugaltlink): New function. Reads the build-id value
  191. out of a .gnu_debugaltlink section.
  192. (load_separate_debug_info): New function. Finds and loads a
  193. separate debug info file.
  194. (load_separate_debug_file): New function. Attempts to find and
  195. follow a link to a separate debug info file.
  196. (free_debug_memory): Free the separate debug info file
  197. information.
  198. (opts_table): Add "follow-links" and "links".
  199. (dwarf_select_sections_by_letters): Add "k" and "K".
  200. (debug_displays): Reformat. Add .gnu-debuglink and
  201. .gnu_debugaltlink.
  202. Add an extra entry for .debug_str in a separate debug info file.
  203. * doc/binutils.texi: Move description of debug dump features
  204. common to both readelf and objdump into...
  205. * objdump.c (usage): Add -Wk and -WK.
  206. (load_specific_debug_section): Initialise the filename field in
  207. the dwarf_section structure.
  208. (close_debug_file): New function.
  209. (open_debug_file): New function.
  210. (dump_dwarf): Load and dump the separate debug info sections.
  211. * readelf.c (struct filedata): New structure. Contains various
  212. variables that used to be global:
  213. (current_file_size, string_table, string_table_length, elf_header)
  214. (section_headers, program_headers, dump_sects, num_dump_sects):
  215. Move into filedata structure.
  216. (cmdline): New global variable. Contains list of sections to dump
  217. by number, as specified on the command line.
  218. Add filedata parameter to most functions.
  219. (load_debug_section): Load the string table if it has not already
  220. been retrieved.
  221. (close_file): New function.
  222. (close_debug_file): New function.
  223. (open_file): New function.
  224. (open_debug_file): New function.
  225. (process_object): Process sections in any separate debug info files.
  226. * doc/debug.options.texi: New file. Add description of =links and
  227. =follow-links options.
  228. * NEWS: Mention the new feature.
  229. * elfcomm.c: Have the byte get functions take a const pointer.
  230. * elfcomm.h: Update prototypes.
  231. * testsuite/binutils-all/dw5.W: Update expected output.
  232. * testsuite/binutils-all/objdump.WL: Update expected output.
  233. * testsuite/binutils-all/objdump.exp: Add test of -WK and -Wk.
  234. * testsuite/binutils-all/readelf.exp: Add test of -wK and -wk.
  235. * testsuite/binutils-all/readelf.k: New file.
  236. * testsuite/binutils-all/objdump.Wk: New file.
  237. * testsuite/binutils-all/objdump.WK2: New file.
  238. * testsuite/binutils-all/linkdebug.s: New file.
  239. * testsuite/binutils-all/debuglink.s: New file.
  240. 2017-11-10 Jim Wilson <jimw@sifive.com>
  241. * testsuite/binutils-all/objdump.exp: Expect the debug_ranges test to
  242. pass.
  243. 2017-11-07 Jim Wilson <jimw@sifive.com>
  244. * MAINTAINERS (RISC-V): Fix typo in my email address.
  245. 2017-11-07 Palmer Dabbelt <palmer@sifive.com>
  246. * MAINTAINERS (RISC-V): Add Jim Wilson as a maintainer.
  247. Clean up Andrew's entry (remove trailing space, add tabs).
  248. Change Palmer's email address, and clean up entry (add tabs).
  249. 2017-11-07 Alan Modra <amodra@gmail.com>
  250. * dwarf.c (read_uleb128): Properly pluralize messages.
  251. (display_debug_lines_raw, display_debug_loc): Likewise.
  252. (display_debug_names, process_cu_tu_index): Likewise.
  253. * od-macho.c (dump_code_signature_superblob): Likewise.
  254. * readelf.c (process_program_headers): Likewise.
  255. (process_section_header, process_relocs): Likewise.
  256. (hppa_process_unwind, arm_process_unwind): Likewise.
  257. (process_dynamic_section, process_version_sections): Likewise.
  258. (process_symbol_table, process_syminfo): Likewise.
  259. (apply_relocations, process_mips_specific): Likewise.
  260. (process_gnu_liblist, process_notes_at): Likewise.
  261. (process_archive): Likewise.
  262. * testsuite/binutils-all/dw2-1.W,
  263. * testsuite/binutils-all/dw2-3.W,
  264. * testsuite/binutils-all/dw2-3gabi.W,
  265. * testsuite/binutils-all/dw5.S,
  266. * testsuite/binutils-all/dw5.W,
  267. * testsuite/binutils-all/i386/compressed-1a.d,
  268. * testsuite/binutils-all/libdw2-compressedgabi.out,
  269. * testsuite/binutils-all/objdump.W,
  270. * testsuite/binutils-all/readelf.r,
  271. * testsuite/binutils-all/readelf.r-64,
  272. * testsuite/binutils-all/x86-64/compressed-1a.d: Update
  273. for pluralization fixes.
  274. 2017-11-07 Alan Modra <amodra@gmail.com>
  275. * sysdep.h (textdomain, bindtextdomain): Use safer "do nothing".
  276. (ngettext, dngettext, dcngettext): Define when !ENABLE_NLS.
  277. 2017-11-03 Claudiu Zissulescu <claziss@synopsys.com>
  278. * doc/binutils.texi (ARC): Update disassembler options.
  279. * testsuite/binutils-all/arc/hexprint.s: New file.
  280. * testsuite/binutils-all/arc/objdump.exp: Test hex printing
  281. feature.
  282. 2017-11-03 Mingi Cho <mgcho.minic@gmail.com>
  283. Nick Clifton <nickc@redhat.com>
  284. PR 22386
  285. * dwarf.c (read_cie): Use bfd_size_type for
  286. augmentation_data_len.
  287. (display_augmentation_data): New function.
  288. (display_debug_frames): Use it.
  289. Check for integer overflow when testing augmentation_data_len.
  290. 2017-11-02 Mingi Cho <mgcho.minic@gmail.com>
  291. PR 22384
  292. * readelf.c (print_gnu_property_note): Improve overflow checks so
  293. that they will work on a 32-bit host.
  294. 2017-11-01 James Bowman <james.bowman@ftdichip.com>
  295. * readelf.c (is_16bit_abs_reloc): Add entry for FT32.
  296. 2017-10-31 Nick Clifton <nickc@redhat.com>
  297. * readelf.c (process_relocs): Tell users if no static relocs were
  298. found, but if they had added --use-dynamic to the command line
  299. then relocs would have been displayed.
  300. 2017-10-28 Alan Modra <amodra@gmail.com>
  301. PR 22361
  302. * readelf.c (process_archive_index_and_symbols): Ensure ar_size
  303. field is zero terminated for strtoul.
  304. (setup_archive, get_archive_member_name): Likewise.
  305. 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
  306. * dwarf.c (struct Frame_Chunk) <cfa_reg>: Change type to
  307. unsigned int.
  308. (display_debug_frames): Read CFA reg as an unsigned number.
  309. 2017-10-25 Alan Modra <amodra@gmail.com>
  310. * nm.c (filter_symbols): Match "__gnu_lto_slim" optionally prefixed
  311. with "_".
  312. 2017-10-18 Eric Botcazou <ebotcazou@adacore.com>
  313. * MAINTAINERS: Add myself as Visium maintainer.
  314. 2017-10-18 Nick Clifton <nickc@redhat.com>
  315. * README-how-to-make-a-release: A note about checking file and
  316. directory permissions.
  317. * MAINTAINERS: Move Svein Seldal to Past Maintainers section.
  318. 2017-10-18 Alan Modra <amodra@gmail.com>
  319. PR 22303
  320. * readelf.c (print_core_note): Ensure "count" sanity check
  321. calculation doesn't overflow.
  322. (process_notes_at): Perform note namesz and descsz checks
  323. using unsigned comparisons against data remaining. Catch
  324. alignment overflow of namesz and descsz too. Don't allocate a
  325. temp for terminating "name" when there is space available
  326. before descdata.
  327. 2017-10-17 Tom Tromey <tom@tromey.com>
  328. * MAINTAINERS: Add myself as dwarf-mode.el maintainer.
  329. 2017-10-11 Peeter Joot <peeter.joot@lzlabs.com>
  330. Nick Clifton <nickc@redhat.com>
  331. * dwarf.c (read_and_display_attr_value): Handle DW_AT_endianity,
  332. DW_END_default, DW_END_big, DW_END_little, DW_ATE_UCS,
  333. DW_ATE_ASCII, DW_CC_pass_by_reference, DW_CC_pass_by_value,
  334. DW_CC_GNU_renesas_sh, DW_CC_GNU_borland_fastcall_i386,
  335. DW_AT_decimal_sign, DW_AT_defaulted, DW_AT_discr_list.
  336. (get_TAG_name): Report user generated tag values.
  337. * testsuite/binutils-all/dwarf-attributes.S: New test.
  338. * testsuite/binutils-all/dwarf-attributes.W. Expected output from
  339. readelf.
  340. * testsuite/binutils-all/readelf.exp: Run the new test.
  341. 2017-10-10 Tom Tromey <tom@tromey.com>
  342. * dwarf-mode.el: Bump to version 1.4.
  343. 2017-10-10 Tom Tromey <tom@tromey.com>
  344. * dwarf-mode.el (dwarf--process, dwarf--deletion-region): New
  345. defvar.
  346. (dwarf--check-running, dwarf--sentinel, dwarf--invoke)
  347. (dwarf--filter): New functions.
  348. (dwarf-do-insert-substructure, dwarf-do-refresh): Call
  349. dwarf--check-running, dwarf--invoke.
  350. (dwarf-browse): Initialize new variables.
  351. 2017-10-10 Tom Tromey <tom@tromey.com>
  352. * dwarf-mode.el: Set lexical-binding.
  353. 2017-10-10 Tom Tromey <tom@tromey.com>
  354. * dwarf-mode.el (dwarf-mode-map): New defvar.
  355. 2017-10-10 Tom Tromey <tromey@sourceware.org>
  356. PR 22249
  357. * dwarf.c (process_debug_info): Skip any comp unit that ends
  358. before dwarf_start_die.
  359. 2017-10-06 Alan Modra <amodra@gmail.com>
  360. * dwarf.c (process_debug_info): Consolidate header length checks.
  361. (display_debug_pubnames_worker): Use "start" to read header.
  362. Properly check header length and report errors earlier.
  363. Simplify loop printing pubnames.
  364. (get_line_filename_and_dirname): Catch small negative "length"
  365. values.
  366. (display_debug_aranges): Likewise. Report header errors
  367. earlier using standardized message.
  368. (display_debug_names): Likewise.
  369. 2017-10-05 Joseph Myers <joseph@codesourcery.com>
  370. * readelf.c (decode_arm_unwind): Initialize res to TRUE.
  371. 2017-10-05 Nick Clifton <nickc@redhat.com>
  372. PR 22260
  373. * objcopy.c (strip_main): Add 'M' character to short options list
  374. when calling getopt_long.
  375. 2017-10-05 Nick Clifton <nickc@redhat.com>
  376. PR 22262
  377. * readelf.c (dump_relocations): Do not truncate reloc names when
  378. displaying output in wide mode.
  379. 2017-10-05 Nick Clifton <nickc@redhat.com>
  380. * README-how-to-make-a-release: Merge steps 3, 4 and 5, and insert
  381. the git tag operation at the correct location.
  382. 2017-10-05 Alan Modra <amodra@gmail.com>
  383. PR 22239
  384. * dwarf.c (read_cie): Don't compare "start" and "end" pointers
  385. after adding a possibly wild length to "start", compare the length
  386. to the difference of the pointers instead. Remove now redundant
  387. "negative" length test.
  388. 2017-10-05 Tristan Gingold <tgingold@free.fr>
  389. * MAINTAINERS: Update email address. Redirect release maintainer
  390. to global maitainers.
  391. 2017-10-01 Alan Modra <amodra@gmail.com>
  392. PR 22232
  393. PR 22230
  394. * objdump.c (load_specific_debug_section): Introduce a temp to
  395. stop bfd_get_full_section_contents NULLing out section->start.
  396. 2017-10-01 Alan Modra <amodra@gmail.com>
  397. PR 22230
  398. * objdump.c (load_specific_debug_section): Allocate an extra byte
  399. for a terminating NUL.
  400. 2017-09-30 Alan Modra <amodra@gmail.com>
  401. PR 21978
  402. * objdump.c: Formatting.
  403. (show_line): Reset prev_line when function name changes.
  404. 2017-09-27 Nick Clifton <nickc@redhat.com>
  405. PR 22219
  406. * dwarf.c (process_debug_info): Add a check for a negative
  407. cu_length field.
  408. 2017-09-27 Alan Modra <amodra@gmail.com>
  409. PR 22216
  410. * readelf.c (process_symbol_table): Check that DT_HASH symbol
  411. chains are only visited once, and report an error if not. Display
  412. invalid symbol index if chain is out of range. Use the same logic
  413. when calculating histograms rather than the PR 17531 fix. Delete
  414. bogus check that chained index is less than number of buckets.
  415. 2017-09-26 Nick Clifton <nickc@redhat.com>
  416. PR 22154
  417. * dwarf.c (get_line_filename_and_dirname): Add extra checks for
  418. buffer overruns.
  419. 2017-09-26 Nick Clifton <nickc@redhat.com>
  420. * README-how-to-make-a-release: New file.
  421. 2017-09-26 Alan Modra <amodra@gmail.com>
  422. PR 21732
  423. * dwarf.c (READ_ULEB): Don't use DWARF_VMA_FMT in translated string.
  424. (READ_SLEB): Likewise.
  425. * readelf.c (bfd_vmatoa): New function.
  426. (get_data, get_dynamic_data): Use it for printing error messages.
  427. 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
  428. PR binutils/22203
  429. * nm.c (display_rel_file): Free memory returned from
  430. bfd_get_synthetic_symtab.
  431. 2017-09-22 Alexandre Oliva <aoliva@redhat.com>
  432. * dwarf.h (debug_info): Add loc_views and num_loc_views.
  433. * dwarf.c (vm1): New constant.
  434. (print_dwarf_view): New function.
  435. (read_and_display_attr_value): Support DW_AT_GNU_locviews.
  436. (process_debug_info): Keep num_loc_offsets and num_loc_views
  437. in sync.
  438. (display_view_pair_list): New function.
  439. (display_loc_list_dwo): Take vstart_ptr; update it. Dump
  440. location view pairs before the range they apply to, when a
  441. viewlist augments the loc list.
  442. (display_loc_list): Likewise. Check view numbers in range
  443. tests.
  444. (display_loclists_list): Likewise. Handle view pair entries,
  445. and warn on trailing ones.
  446. (loc_views): New variable.
  447. (loc_offsets_compar): Compare loc_views if loc_offsets are the
  448. same.
  449. (display_debug_loc): Check and sort loc_views too. Accept
  450. loc_view as expected_start. Skip if lists and views are the
  451. same. Dump locview list separately in order, and pass the
  452. locview list base to each list dump function. Warn and skip
  453. overlap and hole checking if we find loclists and locviews to
  454. not be adjacent.
  455. * testsuite/binutils-all/locview-1.s: New.
  456. * testsuite/binutils-all/readelf.locview-1: New.
  457. * testsuite/binutils-all/locview-2.s: New.
  458. * testsuite/binutils-all/readelf.locview-2: New.
  459. * testsuite/binutils-all/readelf.exp: Run new tests. Fix
  460. option spelling in pr18374 fail message. XFAIL dw5 test on
  461. nds32*-elf.
  462. 2017-09-22 Alan Modra <amodra@gmail.com>
  463. * testsuite/binutils-all/readelf.exp: Don't perror and exit on
  464. bintest.s assembly failure. Report tests unresolved instead.
  465. Likewise for version note test, pr18374, decompress, and dw5
  466. tests.
  467. (readelf_test): Set testname to include both option and binary
  468. file name. Use for pass/fail.
  469. 2017-09-21 Maciej W. Rozycki <macro@imgtec.com>
  470. * readelf.c (get_machine_flags) <E_MIPS_MACH_5900>: New case.
  471. 2017-09-05 Nick Clifton <nickc@redhat.com>
  472. PR 21995
  473. * readelf.c (process_mips_specific): Add checks for a NULL data
  474. pointer.
  475. 2017-09-05 Alexander Fedotov <alexander.fedotov@nxp.com>
  476. Edmar Wienskoski <edmar.wienskoski@nxp.com
  477. * readelf.c (get_elf_section_flags): Add VLE.
  478. (process_section_headers): Add VLE key to details.
  479. 2017-08-25 Alan Modra <amodra@gmail.com>
  480. PR 21994
  481. * readelf.c (process_version_sections <SHT_GNU_verdef>): Check
  482. vd_aux and vda_next for sanity. Delete "end". Correct overflow
  483. checks.
  484. (process_version_sections <SHT_GNU_verneed>): Correct overflow
  485. check. Don't report invalid vna_next on overflow. Do report
  486. invalid vna_next on size less than aux info.
  487. 2017-08-23 Alan Modra <amodra@gmail.com>
  488. PR 21990
  489. * readelf.c (process_version_sections <SHT_GNU_verneed>): Check
  490. for invalid vn_next field before adding to idx. Use unsigned
  491. long for index vars. Move index checks.
  492. <SHT_GNU_verdef>: Likewise for vd_next.
  493. 2017-08-17 Nick Clifton <nickc@redhat.com>
  494. * testsuite/binutils-all/note-3-64.s: New test. Checks assembly
  495. and decoding of version2 GNU build attribute notes.
  496. * testsuite/binutils-all/note-3-32.s: New test. 32-bit version of
  497. the above test.
  498. * testsuite/binutils-all/note-3-64.d: New test driver.
  499. * testsuite/binutils-all/note-3-32.d: New test driver.
  500. * testsuite/binutils-all/objcopy.exp: Run the new test.
  501. * readelf.c (is_64bit_abs_reloc): Add R_SPARC_64.
  502. 2017-08-14 Gustavo Romero <gromero@linux.vnet.ibm.com>
  503. * readelf.c (get_note_type): Handle PPC note types available
  504. since Linux 4.8.
  505. 2017-08-12 Alan Modra <amodra@gmail.com>
  506. * readelf.c (process_note): Qualify NT_GNU_BUILD_ATTRIBUTE notes
  507. by name data.
  508. 2017-08-08 Nick Clifton <nickc@redhat.com>
  509. PR 21909
  510. * prdbg.c (pr_int_type): Increase size of local string buffer.
  511. (pr_float_type): Likewise.
  512. (pr_bool_type): Likewise.
  513. 2017-08-02 Nick Clifton <nickc@redhat.com>
  514. PR 21702
  515. * arsup.c (ar_addmod): Add plugin support for the MRI ADDMOD
  516. command.
  517. 2017-08-02 Nick Clifton <nickc@redhat.com>
  518. * testsuite/binutils-all/objdump.exp (cpus_expected): Add am33-2.
  519. 2017-08-02 Alan Modra <amodra@gmail.com>
  520. * readelf.c (is_32bit_abs_reloc): Add R_IA64_SECREL32MSB and
  521. R_IA64_DIR32MSB.
  522. (is_64bit_abs_reloc): Add R_IA64_DIR64MSB.
  523. (is_64bit_pcrel_reloc): Add R_IA64_PCREL64MSB.
  524. 2017-08-01 Nick Clifton <nickc@redhat.com>
  525. * po/sv.po: Updated Swedish translation.
  526. 2017-07-31 Marty Plummer <ntzrmtthihu777@gmail.com>
  527. PR 21861
  528. * winduni.c (codepages): Use cp1252 for codepage 0.
  529. 2017-07-25 Nick Clifton <nickc@redhat.com>
  530. PR 21820
  531. * readelf.c (dump_section_as_strings): Do not fail if the section
  532. was empty.
  533. (dump_section_as_bytes): Likewise.
  534. 2017-07-24 Nick Clifton <nickc@redhat.com>
  535. PR 21813
  536. * rddbg.c (read_symbol_stabs_debugging_info): Check for an empty
  537. string whilst concatenating symbol names.
  538. 2017-07-21 Nick Clifton <nickc@redhat.com>
  539. * po/fr.po: Updated French translation.
  540. 2017-07-21 Simon Marchi <simon.marchi@ericsson.com>
  541. * dwarf.c (last_pointer_size, warned_about_missing_comp_units):
  542. Remove.
  543. (load_debug_info): Remove assignments to those two variables.
  544. 2017-07-21 Alexandre Oliva <aoliva@redhat.com>
  545. * dwarf.c (struct State_Machine_Registers): Add view field.
  546. (reset_state_machine): Reset view.
  547. (process_extended_line_op): Reset view when appropriate.
  548. (display_debug_lines_raw): Increment or reset view when appropriate.
  549. Print nonzero views. Support print view resets, disabled by default.
  550. (display_debug_lines_decoded): Likewise. Disambiguate op_code tests,
  551. enabling printing of end_sequence.
  552. * testsuite/binutils-all/dw2-1.W: Add nonzero views.
  553. * testsuite/binutils-all/dw2-3.W: Likewise.
  554. * testsuite/binutils-all/dw2-3gabi.W: Likewise.
  555. * testsuite/binutils-all/dw5.W: Add end sequence lines.
  556. * testsuite/binutils-all/i386/compressed-1a.d: Add nonzero views.
  557. * testsuite/binutils-all/libdw2-compressedgabi.out: Likewise.
  558. * testsuite/binutils-all/objdump.W: Likewise.
  559. * testsuite/binutils-all/objdump.WL: Add end sequence lines.
  560. * testsuite/binutils-all/x86-64/compressed-1a.d: Add nonzero views.
  561. 2017-07-19 Tristan Gingold <gingold@adacore.com>
  562. * nm.c (show_stats): Remove variable.
  563. (long_options): Remove --stats option.
  564. (main): Remove handling of --stats.
  565. 2017-07-18 Nick Clifton <nickc@redhat.com>
  566. PR 21775
  567. * coffgrok.c: Fix spelling typos.
  568. * readelf.c: Likewise.
  569. * stabs.c: Likewise.
  570. * testsuite/binutils-all/objcopy.exp: Likewise.
  571. 2017-07-18 Nick Clifton <nickc@redhat.com>
  572. * po/sv.po: Updated Swedish translation.
  573. 2017-07-18 Hans-Peter Nilsson <hp@bitrange.com>
  574. * dwarf.c (display_debug_names): Initialize hash_prev.
  575. 2017-07-17 Nick Clifton <nickc@redhat.com>
  576. PR 21433
  577. * ar.c (main): Skip check for no files on the command line when
  578. running in MRI mode.
  579. 2017-07-13 H.J. Lu <hongjiu.lu@intel.com>
  580. * testsuite/binutils-all/objdump.exp: Always delete $testarchive
  581. first.
  582. 2017-07-12 Alan Modra <amodra@gmail.com>
  583. * po/bg.po: Update from translationproject.org/latest/binutils/.
  584. * po/ca.po: Likewise.
  585. * po/da.po: Likewise.
  586. * po/es.po: Likewise.
  587. * po/fi.po: Likewise.
  588. * po/fr.po: Likewise.
  589. * po/hr.po: Likewise.
  590. * po/id.po: Likewise.
  591. * po/it.po: Likewise.
  592. * po/ja.po: Likewise.
  593. * po/ro.po: Likewise.
  594. * po/ru.po: Likewise.
  595. * po/sk.po: Likewise.
  596. * po/sr.po: Likewise.
  597. * po/sv.po: Likewise.
  598. * po/tr.po: Likewise.
  599. * po/uk.po: Likewise.
  600. * po/vi.po: Likewise.
  601. * po/zh_CN.po: Likewise.
  602. * po/zh_TW.po: Likewise.
  603. 2017-07-12 Nick Clifton <nickc@redhat.com>
  604. Fix compile time warnings using gcc 7.1.1.
  605. * dwarf.c (dwarf_vmatoa_1): Do not pass a NULL string pointer to
  606. sprintf.
  607. * srconv.c (walk_tree_type): Initialise the spare field of the
  608. IT_dty structure.
  609. 2017-07-11 Andreas Schwab <schwab@suse.de>
  610. * readelf.c (process_note): Print newline after description data
  611. in narrow mode.
  612. (print_core_note): Print newline if nothing was printed in wide
  613. mode.
  614. 2017-07-09 Rafael Fontenelle <rafaelff@gnome.org>
  615. * dwarf.c (display_formatted_table): Fix error message typo.
  616. 2017-07-07 John Baldwin <jhb@FreeBSD.org>
  617. * readelf.c (get_freebsd_elfcore_note_type): Handle
  618. NT_FREEBSD_PTLWPINFO.
  619. 2017-07-05 H.J. Lu <hongjiu.lu@intel.com>
  620. * dwarf.c (display_debug_names): Replace index with xindex.
  621. 2017-07-04 Tristan Gingold <gingold@adacore.com>
  622. * configure: Regenerate.
  623. 2017-07-04 Tristan Gingold <gingold@adacore.com>
  624. * NEWS: Add marker for 2.29.
  625. 2017-07-03 Tristan Gingold <gingold@adacore.com>
  626. * po/binutils.pot: Regenerate.
  627. 2017-07-03 Alan Modra <amodra@gmail.com>
  628. * strings.c (filename_and_size_t): Delete.
  629. (strings_a_section): Don't check section size against file size.
  630. Use bdf_malloc_and_get_section. Report an error on failures.
  631. Replace arg param with filename and got_a_section param.
  632. (got_a_section): Move to..
  633. (strings_object_file): ..an auto var here. Iterate over sections
  634. rather than calling bfd_map_over_sections. Adjust strings_a_section
  635. call.
  636. 2017-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  637. * dwarf.c: Include assert.h.
  638. (MAX, MIN, get_IDX_name, display_debug_names): New.
  639. (debug_displays): Add .debug_names.
  640. * dwarf.h: (enum dwarf_section_display_enum): Add debug_names.
  641. * readelf.c (process_section_headers): Add ".debug_names".
  642. 2017-07-01 Alan Modra <amodra@gmail.com>
  643. PR binutils/21665
  644. * objdump.c (strtab): Make var a bfd_byte*.
  645. (disassemble_section): Don't limit malloc size. Instead, use
  646. bfd_malloc_and_get_section.
  647. (read_section_stabs): Use bfd_malloc_and_get_section. Return
  648. bfd_byte*.
  649. (find_stabs_section): Remove now unnecessary cast.
  650. * objcopy.c (copy_object): Use bfd_malloc_and_get_section. Free
  651. contents on error return.
  652. * nlmconv.c (copy_sections): Use bfd_malloc_and_get_section.
  653. 2017-06-30 Nick Clifton <nickc@redhat.com>
  654. PR binutils/21665
  655. * objdump.c (disassemble_section): Move check for an overlarge
  656. section to just before the allocation of memory. Do not check
  657. section size against file size, but instead use an arbitrary 2Gb
  658. limit. Issue a warning message if the section is too big.
  659. 2017-06-30 Maciej W. Rozycki <macro@imgtec.com>
  660. * NEWS: Mention microMIPS XPA support.
  661. 2017-06-30 Maciej W. Rozycki <macro@imgtec.com>
  662. * NEWS: Mention microMIPS Release 5 ISA support.
  663. 2017-06-30 Maciej W. Rozycki <macro@imgtec.com>
  664. * testsuite/binutils-all/mips/mips-xpa-virt-1.d: New test.
  665. * testsuite/binutils-all/mips/mips-xpa-virt-2.d: New test.
  666. * testsuite/binutils-all/mips/mips-xpa-virt-3.d: New test.
  667. * testsuite/binutils-all/mips/mips-xpa-virt-4.d: New test.
  668. * testsuite/binutils-all/mips/mips-xpa-virt.s: New test source.
  669. * testsuite/binutils-all/mips/mips.exp: Run the new tests.
  670. 2017-06-29 Anton Kolesov <Anton.Kolesov@synopsys.com>
  671. * testsuite/binutils-all/arc/double_store.s: New file.
  672. * testsuite/binutils-all/arc/objdump.exp: Tests for disassembler
  673. options.
  674. (do_objfile): New function.
  675. (check_assembly): Likewise.
  676. 2017-06-29 Andreas Arnez <arnez@linux.vnet.ibm.com>
  677. * readelf.c (get_note_type): Add NT_S390_GS_CB and NT_S390_GS_BC.
  678. 2017-06-28 H.J. Lu <hongjiu.lu@intel.com>
  679. * objdump.c (dump_relocs_in_section): Cast to ufile_ptr when
  680. comparing against bfd_get_file_size return.
  681. 2017-06-28 Nick Clifton <nickc@redhat.com>
  682. * objcopy.c (merge_gnu_build_notes): Add support for version 2 notes.
  683. * readelf.c (print_gnu_build_attribute_name): Likewise.
  684. 2017-06-28 Maciej W. Rozycki <macro@imgtec.com>
  685. Matthew Fortune <matthew.fortune@imgtec.com>
  686. * readelf.c (get_machine_flags) <E_MIPS_MACH_IAMR2>: New case.
  687. (print_mips_isa_ext) <AFL_EXT_INTERAPTIV_MR2>: Likewise.
  688. * NEWS: Mention Imagination interAptiv MR2 processor support.
  689. 2017-06-26 Nick Clifton <nickc@redhat.com>
  690. PR binutils/21665
  691. * objdump.c (disassemble_section): Skip any section that is bigger
  692. than the entire file.
  693. 2017-06-26 Nick Clifton <nickc@redhat.com>
  694. PR binutils/21659
  695. * bucomm.c (get_file_size): Explicitly warn if the file is a
  696. directory.
  697. 2017-06-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
  698. * readelf.c (arm_attr_tag_CPU_arch): Fill value for ARMv8-R.
  699. 2017-06-23 Nick Clifton <nickc@redhat.com>
  700. PR binutils/21659
  701. * strings.c (strings_file): Warn about attempts to run strings on
  702. a directory.
  703. 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
  704. * readelf.c (decode_x86_feature): Decode
  705. GNU_PROPERTY_X86_FEATURE_1_SHSTK.
  706. * testsuite/binutils-all/i386/shstk.d: New file.
  707. * testsuite/binutils-all/i386/shstk.s: Likewise.
  708. * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
  709. * testsuite/binutils-all/x86-64/shstk.d: Likewise.
  710. * testsuite/binutils-all/x86-64/shstk.s: Likewise.
  711. 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
  712. * readelf.c (decode_x86_feature): New.
  713. (print_gnu_property_note): Call decode_x86_feature on
  714. GNU_PROPERTY_X86_FEATURE_1_AND.
  715. * testsuite/binutils-all/i386/empty.d: New file.
  716. * testsuite/binutils-all/i386/empty.s: Likewise.
  717. * testsuite/binutils-all/i386/ibt.d: Likewise.
  718. * testsuite/binutils-all/i386/ibt.s: Likewise.
  719. * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
  720. * testsuite/binutils-all/x86-64/empty.d: Likewise.
  721. * testsuite/binutils-all/x86-64/empty.s: Likewise.
  722. * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
  723. * testsuite/binutils-all/x86-64/ibt.d: Likewise.
  724. * testsuite/binutils-all/x86-64/ibt.s: Likewise.
  725. 2017-06-21 H.J. Lu <hongjiu.lu@intel.com>
  726. * dwarf.c (READ_ULEB): Use DWARF_VMA_FMT to report error.
  727. (READ_SLEB): Likewise.
  728. 2017-06-21 Nick Clifton <nickc@redhat.com>
  729. PR binutils/21648
  730. * dwarf.c (LEB): Rename to SKIP_ULEB and READ_ULEB. Add check for
  731. reading a value that is too big for the containing variable.
  732. (SLEB): Rename to SKIP_SLEB and READ_SLEB. Add similar check.
  733. Replace uses of LEB and SLEB with appropriate new macro.
  734. (display_debug_frames): Use an unsigned int for the 'reg'
  735. variable. Use a signed long for the 'l' variable.
  736. 2017-06-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
  737. * readelf.c (get_s390_segment_type): Add support for the new
  738. segment type PT_S390_PGSTE.
  739. (get_segment_type): Call get_s390_segment_type.
  740. 2017-06-19 Nick Clifton <nickc@redhat.com>
  741. PR binutils/21619
  742. * objdump.c (disassemble_bytes): Check that there is sufficient
  743. data available before attempting to display it.
  744. 2017-06-06 Simon Marchi <simon.marchi@ericsson.com>
  745. * sysinfo.y: Free memory allocated by token NAME.
  746. 2017-05-30 Anton Kolesov <anton.kolesov@synopsys.com>
  747. * doc/binutils.texi: Document new cpu=... disassembler options for ARC.
  748. 2017-05-30 H.J. Lu <hongjiu.lu@intel.com>
  749. PR binutils/21519
  750. * objdump.c (dump_relocs_in_section): Replace get_file_size
  751. with bfd_get_file_size to get archive element size.
  752. * testsuite/binutils-all/objdump.exp (test_objdump_f): New
  753. proc.
  754. (test_objdump_h): Likewise.
  755. (test_objdump_t): Likewise.
  756. (test_objdump_r): Likewise.
  757. (test_objdump_s): Likewise.
  758. Add objdump tests on archive.
  759. 2017-05-24 Yao Qi <yao.qi@linaro.org>
  760. * objdump.c (disassemble_data): Caller update.
  761. 2017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
  762. * objcopy.c (merge_gnu_build_notes): Remove workaround that
  763. prevented deleting relocations in duplicated notes in mips64 and
  764. sparc.
  765. 2017-05-19 Maciej W. Rozycki <macro@imgtec.com>
  766. * testsuite/binutils-all/mips/mips-note-2.d: New test.
  767. * testsuite/binutils-all/mips/mips-note-2r.d: New test.
  768. * testsuite/binutils-all/mips/mips-note-2-n32.d: New test.
  769. * testsuite/binutils-all/mips/mips-note-2-n64.d: New test.
  770. * testsuite/binutils-all/mips/mips-note-2r-n32.d: New test.
  771. * testsuite/binutils-all/mips/mips-note-2r-n64.d: New test.
  772. * testsuite/binutils-all/mips/mips.exp: Define `has_newabi'.
  773. Run the new tests.
  774. 2017-05-19 Maciej W. Rozycki <macro@imgtec.com>
  775. * testsuite/lib/utils-lib.exp (run_dump_test): Handle the `dump'
  776. option.
  777. 2017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
  778. * NEWS: Mention the SPARC M8 support.
  779. 2017-05-19 Maciej W. Rozycki <macro@imgtec.com>
  780. * testsuite/binutils-all/mips/mips.exp: Bail out right away if
  781. non-ELF.
  782. 2017-05-18 Alan Modra <amodra@gmail.com>
  783. * strings.c: Don't compare boolean values against TRUE or FALSE.
  784. 2017-05-15 Jeff Law <law@redhat.com>
  785. * readelf.c (display_arc_attribute): Avoid implicit fallthru.
  786. 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
  787. * testsuite/binutils-all/mips/mips16-undecoded.d: Add `-mips3'
  788. to `as' flags.
  789. * testsuite/binutils-all/mips/mips16e2-undecoded.d: New test.
  790. * testsuite/binutils-all/mips/mips16e2-extend-insn.d: New test.
  791. * testsuite/binutils-all/mips/mips16-undecoded.s: Remove
  792. `.module mips3'.
  793. * testsuite/binutils-all/mips/mips.exp: Run the new tests.
  794. 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
  795. * readelf.c (print_mips_ases): Handle MIPS16e2 ASE.
  796. * NEWS: Mention MIPS16e2 ASE support.
  797. 2017-05-12 Maciej W. Rozycki <macro@imgtec.com>
  798. * testsuite/binutils-all/mips/mips16-extend-insn.d: Adjust BREAK
  799. and SDBBP disassembly.
  800. 2017-05-10 Maciej W. Rozycki <macro@imgtec.com>
  801. * testsuite/binutils-all/mips/mips.exp: Define `tempfile' and
  802. `copyfile' variables.
  803. 2017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
  804. * readelf.c (decode_ARC_machine_flags): Recognize OSABI v4.
  805. (get_arc_section_type_name): New function.
  806. (get_section_type_name): Use the above function.
  807. (display_arc_attribute): New function.
  808. (process_arc_specific): Likewise.
  809. (process_arch_specific): Handle ARC specific information.
  810. 2017-05-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  811. * MAINTAINERS (SH): Remove myself as SH maintainer.
  812. 2017-05-02 H.J. Lu <hongjiu.lu@intel.com>
  813. * objcopy.c (merge_gnu_build_notes): Cast relcount to unsigned
  814. long when comparing with sec->reloc_count.
  815. 2017-05-02 Nick Clifton <nickc@redhat.com>
  816. * objcopy.c (merge_gnu_build_notes): Disable merge if there are
  817. more internal relocs than external relocs.
  818. 2017-05-02 Maciej W. Rozycki <macro@imgtec.com>
  819. * testsuite/binutils-all/mips/mips16-undecoded.d: Adjust the
  820. disassembly of PC-relative LA and LW synthetic instructions.
  821. 2017-05-02 Nick Clifton <nickc@redhat.com>
  822. PR 21440
  823. * objdump.c (dump_relocs_in_section): Check for an excessive
  824. number of relocs before attempting to dump them.
  825. 2017-05-01 Alan Modra <amodra@gmail.com>
  826. * objcopy.c (merge_gnu_build_notes): Correct code deleting
  827. relocs.
  828. 2017-04-28 Nick Clifton <nickc@redhat.com>
  829. PR binutils/21439
  830. * readelf.c (print_gnu_build_attribute_name): Allow for an empty
  831. name field.
  832. 2017-04-28 Nick Clifton <nickc@redhat.com>
  833. PR binutils/21437
  834. * readelf.c (process_version_sections): Check for underflow when
  835. computing the start address of the auxiliary version data.
  836. 2017-04-28 Nick Clifton <nickc@redhat.com>
  837. PR binutils/21438
  838. * dwarf.c (process_extended_line_op): Do not assume that the
  839. string extracted from the section is NUL terminated.
  840. (fetch_indirect_string): If the string retrieved from the section
  841. is not NUL terminated, return an error message.
  842. (fetch_indirect_line_string): Likewise.
  843. (fetch_indexed_string): Likewise.
  844. 2017-04-26 Nick Clifton <nickc@redhat.com>
  845. PR binutils/21433
  846. * bucomm.c (get_file_size): Return -1 if file_name is NULL.
  847. * ar.c (main): Fail with usage() invocation if no file names are
  848. provided.
  849. 2017-04-26 Nick Clifton <nickc@redhat.com>
  850. * readelf.c (process_section_headers): Warn about overlarge
  851. sections.
  852. (print_gnu_build_attribute_name): Print the number of unrecognised
  853. note types. Fix formatting in the presence of errors.
  854. (testsuite/binutils-all/note-2-32.s): Fix encoding of numeric notes.
  855. (testsuite/binutils-all/note-2-64.s): Likewise.
  856. 2017-04-26 Maciej W. Rozycki <macro@imgtec.com>
  857. * readelf.c (process_mips_specific): Add static GOT support.
  858. 2017-04-25 Maciej W. Rozycki <macro@imgtec.com>
  859. * readelf.c (process_mips_specific): Remove error reporting from
  860. GOT[1] processing.
  861. 2017-04-25 Maciej W. Rozycki <macro@imgtec.com>
  862. * readelf.c (process_mips_specific): Remove null GOT data check.
  863. 2017-04-25 Maciej W. Rozycki <macro@imgtec.com>
  864. * testsuite/binutils-all/mips/mips16-alias.d: New test.
  865. * testsuite/binutils-all/mips/mips16-noalias.d: New test.
  866. * testsuite/binutils-all/mips/mips16-alias.s: New test source.
  867. * testsuite/binutils-all/mips/mips.exp: Run the new tests.
  868. 2017-04-23 Alan Modra <amodra@gmail.com>
  869. PR 21418
  870. * ar.c (main): Check -a, -b, -i and -N args are given.
  871. 2017-04-23 Alan Modra <amodra@gmail.com>
  872. PR 21417
  873. * ar.c (main): Check that an archive file is given after options.
  874. 2017-04-23 Alan Modra <amodra@gmail.com>
  875. PR 21415
  876. * objdump.c (disassemble_section): Check bfd_get_section_contents
  877. status.
  878. 2017-04-23 Alan Modra <amodra@gmail.com>
  879. PR 21408
  880. * dwarf.c (display_debug_lines_decoded): Don't segfault on NULL
  881. file_table.
  882. 2017-04-21 Nick Clifton <nickc@redhat.com>
  883. PR binutils/21378
  884. * readelf.c (print_gnu_build_attribute_name): Check for an
  885. overlarge name field.
  886. 2017-04-13 Nick Clifton <nickc@redhat.com>
  887. PR binutils/21379
  888. * readelf.c (process_dynamic_section): Detect over large section
  889. offsets in the DT_SYMTAB entry.
  890. 2017-04-13 Nick Clifton <nickc@redhat.com>
  891. PR binutils/21345
  892. * readelf.c (process_mips_specific): Catch an unfeasible memory
  893. allocation before it happens and print a suitable error message.
  894. 2017-04-13 Nick Clifton <nickc@redhat.com>
  895. * objcopy.c: Add --no-merge-notes option to disable note merging.
  896. Add --[no-]merge-notes option to strip, and enable it by default.
  897. (num_bytes): New function.
  898. (merge_gnu_build_notes): Add code to merge stack size notes.
  899. * binutils.texi: Update strip and objcopy documentation.
  900. * readelf.c (print_gnu_build_attribute_name): Use defined
  901. constants for note types.
  902. 2017-04-10 John Delsignor <john.delsignore@roguewave.com>
  903. PR binutils/21319
  904. * dwarf.c (display_gdb_index): Correct test for a corrupt address
  905. table size.
  906. 2017-04-05 Jiong Wang <jiong.wang@arm.com>
  907. * objcopy.c (struct redefine_node): Delete the field "next".
  908. (redefine_sym_list): Deleted.
  909. (redefine_specific_htab): New hash table.
  910. (redefine_specific_reverse_htab): Likewise.
  911. (eq_string_redefnode): New function.
  912. (htab_hash_redefnode): Likewise.
  913. (create_symbol2redef_htab): Likewise.
  914. (add_specific_symbol_node): Likewise.
  915. (create_symbol_htabs): Create redefine_specific_htab and
  916. redefine_specific_reverse_htab.
  917. (lookup_sym_redefinition): Use hash table instead of list.
  918. (redefine_list_append): Likewise, and rename to add_redefine_and_check.
  919. (copy_main): Use redefine_specific_htab instead of redefine_sym_list.
  920. Update comments.
  921. 2017-04-04 H.J. Lu <hongjiu.lu@intel.com>
  922. * NEWS: Mention support for ELF SHF_GNU_MBIND and
  923. PT_GNU_MBIND_XXX.
  924. * readelf.c (get_segment_type): Handle PT_GNU_MBIND_XXX.
  925. (get_elf_section_flags): Handle SHF_GNU_MBIND.
  926. (process_section_headers): Likewise.
  927. * testsuite/binutils-all/mbind1.s: New file.
  928. * testsuite/binutils-all/objcopy.exp: Run readelf test on
  929. mbind1.s.
  930. 2017-04-03 Nick Clifton <nickc@redhat.com>
  931. PR binutils/21345
  932. * readelf.c (get_program_headers): Check for there being too many
  933. program headers before attempting to allocate space for them.
  934. 2017-04-03 Nick Clifton <nickc@redhat.com>
  935. PR binutils/21344
  936. * readelf.c (process_mips_specific): Check for an out of range GOT
  937. entry before reading the module pointer.
  938. 2017-04-03 Nick Clifton <nickc@redhat.com>
  939. PR binutils/21343
  940. * readelf.c (get_unwind_section_word): Fix snafu checking for
  941. invalid word offsets in ARM unwind information.
  942. 2017-03-31 Pip Cet <pipcet@gmail.com>
  943. * NEWS: Use "WebAssembly" consistently.
  944. * testsuite/binutils-all/wasm32/wasm32.exp: Fix copyright notice.
  945. 2017-03-30 Pip Cet <pipcet@gmail.com>
  946. * readelf.c: Add support for wasm32 ELF format WebAssembly files.
  947. (guess_is_rela): Likewise.
  948. (dump_relocations): Likewise.
  949. (is_32bit_abs_reloc): Likewise.
  950. (is_none_reloc_): Likewise.
  951. * NEWS: Mention the new support.
  952. * testsuite/lib/binutils-common.exp (is_elf_format): Mark wasm32
  953. as ELF target.
  954. (supports_gnu_unique): Mark wasm32 as supporting STB_GNU_UNIQUE.
  955. * testsuite/binutils-all/nm.exp: Mark wasm32 as requiring .size annotations.
  956. * testsuite/binutils-all/wasm32: New directory.
  957. * testsuite/binutils-all/wasm32/create-wasm.d: New file.
  958. * testsuite/binutils-all/wasm32/create-wasm.s: Likewise.
  959. * testsuite/binutils-all/wasm32/custom-section.d: Likewise.
  960. * testsuite/binutils-all/wasm32/custom-section.s: Likewise.
  961. * testsuite/binutils-all/wasm32/invalid-wasm-1.d: Likewise.
  962. * testsuite/binutils-all/wasm32/invalid-wasm-1.s: Likewise.
  963. * testsuite/binutils-all/wasm32/long-sections.d: Likewise.
  964. * testsuite/binutils-all/wasm32/long-sections.s: Likewise.
  965. * testsuite/binutils-all/wasm32/parse-wasm.d: Likewise.
  966. * testsuite/binutils-all/wasm32/parse-wasm.s: Likewise.
  967. * testsuite/binutils-all/wasm32/parse-wasm-2.d: Likewise.
  968. * testsuite/binutils-all/wasm32/parse-wasm-2.s: Likewise.
  969. * testsuite/binutils-all/wasm32/prepared-section.d: Likewise.
  970. * testsuite/binutils-all/wasm32/prepared-section.s: Likewise.
  971. * testsuite/binutils-all/wasm32/wasm32.exp: New file, run tests.
  972. 2017-03-29 Alan Modra <amodra@gmail.com>
  973. * doc/binutils.texi (objdump): Document PowerPC -M options.
  974. 2017-03-21 Andi Kleen <ak@linux.intel.com>
  975. * objdump.c (unwind_inlines): Add.
  976. (option_values): Add OPTION_INLINES.
  977. (show_line): Unwind inlines if requested.
  978. (main): Parse OPTION_INLINES.
  979. (usage): Document --inlines.
  980. * doc/binutils.texi: Document --inlines.
  981. * NEWS: Likewise.
  982. 2017-03-21 Nick Clifton <nickc@redhat.com>
  983. * readelf.c (print_gnu_build_attribute_name): Allow stack
  984. protection notes to contain numeric values. Use a colon rather
  985. than a space to separate a string name from its values. Decode
  986. the numeric value of a stack protection note.
  987. * objcopy.c (merge_gnu_build_notes): Allow version notes to
  988. contain extra text after the protocol version number.
  989. 2017-03-20 Mark Wielaard <mark@klomp.org>
  990. * readelf.c (process_program_headers): Move dynamic_addr check
  991. after .dynamic section cross check.
  992. 2017-03-17 Nick Clifton <nickc@redhat.com>
  993. * readelf.c (print_gnu_build_attribute_name): Fix off by one error
  994. printing the value for a build note with an ascii name.
  995. 2017-03-16 Nick Clifton <nickc@redhat.com>
  996. * readelf.c (print_gnu_build_attribute_name): Add support for
  997. GNU_BUILD_ATTRIBUTE_SHORT_ENUM.
  998. 2017-03-14 Nick Clifton <nickc@redhat.com>
  999. * readelf.c (print_gnu_build_attribute_description): Move symbol
  1000. printing code to...
  1001. (print_symbol_for_build_attribute): New function. ...here.
  1002. Add to find the best symbol to associate with an OPEN note.
  1003. Add code to cache the symbol table and string table, so that they
  1004. are not loaded every time a note is displayed.
  1005. * testsuite/binutils-all/note-2-32.s: Add a function symbol.
  1006. * testsuite/binutils-all/note-2-64.s: Likewise.
  1007. * testsuite/binutils-all/note-2-32.d: Update expected note output.
  1008. * testsuite/binutils-all/note-2-64.d: Likewise.
  1009. 2017-03-13 Alan Modra <amodra@gmail.com>
  1010. Taeung Song <treeze.taeung@gmail.com>
  1011. * objdump.c (update_source_path): Add abfd param. Add struct
  1012. stat var. Pass to try_print_file_open. Warn if source is more
  1013. recent than object.
  1014. (try_print_file_open, slurp_file): Add struct stat param to
  1015. return fstat.
  1016. (show_line): Call update_source_path with bfd.
  1017. 2017-03-10 Chia-Hao Lo <fcamel@gmail.com>
  1018. PR binutils/21235
  1019. * objdump.c (main): Set do_wide with --wide.
  1020. 2017-03-10 Nick Clifton <nickc@redhat.com>
  1021. * readelf.c (get_machine_name): Rearrange switch table in order of
  1022. increasing machine number. Add missing entries.
  1023. 2017-03-08 H.J. Lu <hongjiu.lu@intel.com>
  1024. PR binutils/21231
  1025. * readelf.c (decode_x86_isa): Change argument to unsigned int.
  1026. (print_gnu_property_note): Retrieve property type and datasz as
  1027. 4-byte integer. Consolidate property datasz check. Check
  1028. GNU_PROPERTY_LOPROC and GNU_PROPERTY_LOUSER.
  1029. * testsuite/binutils-all/i386/pr21231a.d: New file.
  1030. * testsuite/binutils-all/i386/pr21231a.s: Likewise.
  1031. * testsuite/binutils-all/i386/pr21231b.d: Likewise.
  1032. * testsuite/binutils-all/i386/pr21231b.s: Likewise.
  1033. * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
  1034. * testsuite/binutils-all/x86-64/pr21231a.s: Likewise.
  1035. * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
  1036. * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
  1037. 2017-03-06 Nick Clifton <nickc@redhat.com>
  1038. * readelf.c (print_gnu_build_attribute_name): Read byte values
  1039. from the name string as unsigned bytes.
  1040. (process_notes_at): Use memcpy to copy an unterminated name
  1041. string.
  1042. 2017-03-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
  1043. * configure.ac (AC_CHECK_DECLS): Add asprintf.
  1044. * config.in: Regenerate.
  1045. * configure: Regenerate.
  1046. 2017-03-02 Nick Clifton <nickc@redhat.com>
  1047. * readelf.c (print_gnu_build_attribute_description): Use global
  1048. symbols for OPEN attributes if at all possible.
  1049. * objcopy.c (is_merged_note_section): Support build note sections
  1050. without the SHF_GNU_BUILD_NOTE section flag set.
  1051. 2017-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  1052. * dwarf.c (debug_displays_assert): New static assertion.
  1053. 2017-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  1054. * dwarf.h (enum dwarf_section_display_enum): Add loclists and rnglists.
  1055. 2017-03-01 Nick Clifton <nickc@redhat.com>
  1056. * readelf.c (get_note_type): Add support for GNU_BUILD_NOTEs.
  1057. (get_gnu_elf_note_type): Add support for GNU_PROPERTY_NOTEs.
  1058. (decode_x86_isa): New function.
  1059. (print_gnu_property_note): New function.
  1060. (print_gnu_note): Handle GNU_PROPERTY_NOTEs.
  1061. (print_gnu_build_attribute_description): New function.
  1062. (print_gnu_build_attribute_name): New function.
  1063. (process_note): Add support for GNU_BUILD_NOTEs.
  1064. * objcopy.c (--merge-notes): New command line option.
  1065. (copy_options): Add merge-notes.
  1066. (copy_usage): Likewise.
  1067. (is_merge_note_section): New function.
  1068. (merge_gnu_build_notes): New function.
  1069. (copy_object): Merge note sections if asked to do so.
  1070. (skip_section): Add skip_copy parameter. Add support for skipping
  1071. merged note sections.
  1072. (copy_relocations_in_section): Update call to skip_section.
  1073. (copy_section): Likewise.
  1074. (copy_main): Add support for merge-notes option.
  1075. * doc/binutils.texi: Document the new option to objcopy.
  1076. * NEWS: Mention the new feature.
  1077. * testsuite/binutils-all/note-2-32.d: New test. Checks note
  1078. merging on 32-bit targets.
  1079. * testsuite/binutils-all/note-2-32.s: New test source file.
  1080. * testsuite/binutils-all/note-2-64.d: New test. Like note-2-32.d
  1081. but for 64-bit targets.
  1082. * testsuite/binutils-all/note-2-64.s: New test source file.
  1083. * testsuite/binutils-all/objcopy.exp: Run the new test.
  1084. 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
  1085. * objdump.c (main): Use remove_whitespace_and_extra_commas.
  1086. 2017-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
  1087. Fix compilation with GCC 4.4.7.
  1088. * dwarf.c (display_loclists_list, display_debug_rnglists_list):
  1089. Initialize begin and end.
  1090. 2017-02-25 Alan Modra <amodra@gmail.com>
  1091. * testsuite/binutils-all/dw5.S: Replace .string with .asciz.
  1092. Support hpux .comm variant.
  1093. * testsuite/binutils-all/readelf.exp: Define HPUX when assembling
  1094. dw5 test for hppa64-hpux.
  1095. 2017-02-24 Nick Clifton <nickc@redhat.com>
  1096. * readelf.c (show_name, do_dynamic, do_syms, do_dyn_syms,
  1097. (do_reloc, do_sections, do_section_groups, do_section_details,
  1098. (do_segments, do_unwind, do_using_dynamic, do_header, do_dump,
  1099. (do_version, do_histogram, do_debugging, do_arch, do_notes,
  1100. (do_archive_index, is_32bit_elf, decompress_dumps): Use
  1101. bfd_boolean type.
  1102. (parse_args): Treat the do_* variables as booleans.
  1103. (print_vma): Return an unsigned int.
  1104. (print_symbol): Change width parameter to signed int.
  1105. (is_ia64_vms): Change return type to bfd_boolean.
  1106. (guess_is_rela): Likewise.
  1107. (slurp_rela_relocs): Likewise.
  1108. (slurp_rel_relocs): Likewise.
  1109. (dump_relocations): Likewise.
  1110. (process_file_header): Likewise.
  1111. (get_program_headers): Likewise.
  1112. (process_program_headers): Likewise.
  1113. (process_section_headers): Likewise.
  1114. (process_section_groups): Likewise.
  1115. (dump_ia64_vms_dynamic_fixups): Likewise.
  1116. (dump_ia64_vms_dynamic_relocs): Likewise.
  1117. (process_ia64_vms_dynamic_relocs): Likewise.
  1118. (process_relocs): Likewise.
  1119. (dump_ia64_unwind): Likewise.
  1120. (ia64_process_unwind): Likewise.
  1121. (dump_hppa_unwind): Likewise.
  1122. (slurp_hppa_unwind_table): Likewise.
  1123. (hppa_process_unwind): Likewise.
  1124. (decode_arm_unwind_bytecode): Likewise.
  1125. (decode_tic6x_unwind_bytecode): Likewise.
  1126. (decode_arm_unwind): Likewise.
  1127. (dump_arm_unwind): Likewise.
  1128. (arm_process_unwind): Likewise.
  1129. (process_unwind): Likewise.
  1130. (get_32bit_dynamic_section): Likewise.
  1131. (get_64bit_dynamic_section): Likewise.
  1132. (process_dynamic_section): Likewise.
  1133. (process_version_sections): Likewise.
  1134. (process_symbol_table): Likewise.
  1135. (process_syminfo): Likewise.
  1136. (apply_relocations): Likewise.
  1137. (disassemble_section): Likewise.
  1138. (dump_section_as_strings): Likewise.
  1139. (dump_section_as_bytes): Likewise.
  1140. (load_specific_debug_section): Likewise.
  1141. (load_debug_section): Likewise.
  1142. (display_debug_section): Likewise.
  1143. (process_section_contents): Likewise.
  1144. (process_attributes): Likewise.
  1145. (process_nds32_specific): Likewise.
  1146. (process_gnu_liblist): Likewise.
  1147. (print_core_note): Likewise.
  1148. (print_gnu_note): Likewise.
  1149. (print_v850_note): Likewise.
  1150. (process_netbsd_elf_note): Likewise.
  1151. (print_stapsdt_note): Likewise.
  1152. (print_ia64_vms_note): Likewise.
  1153. (process_note): Likewise.
  1154. (process_notes_at): Likewise.
  1155. (process_corefile_note_segments): Likewise.
  1156. (process_v850_notes): Likewise.
  1157. (process_note_sections): Likewise.
  1158. (process_notes): Likewise.
  1159. (process_arch_specific): Likewise.
  1160. (get_file_header): Likewise.
  1161. (process_object): Likewise.
  1162. (process_archive): Likewise.
  1163. (process_file): Likewise.
  1164. (section_subset): Make static.
  1165. (get_mips_reg_size): Return a signed integer.
  1166. (process_object): Reverse the logic of the return value.
  1167. (process_archive): Likewise.
  1168. (process_file): Likewise.
  1169. (process_program_headers): Fix snafu - if the program headers are
  1170. not available then this is not a cause to fail.
  1171. (process_corefile_note_segments): Likewise.
  1172. 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
  1173. * readelf.c (get_ver_flags): Tidy the formatting of the string
  1174. returned
  1175. 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
  1176. * readelf.c (process_version_sections) <SHT_GNU_verdef>: Make
  1177. `isum' unsigned.
  1178. <SHT_GNU_verneed>: Likewise.
  1179. 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
  1180. * readelf.c (process_version_sections) <SHT_GNU_verdef>: Limit
  1181. the number of entries processed by the section size. Don't
  1182. break out of the loop if `ent.vd_next' is 0.
  1183. 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
  1184. * testsuite/binutils-all/dw5.S: New file.
  1185. * testsuite/binutils-all/dw5.W: New file.
  1186. * testsuite/binutils-all/readelf.exp (readelf -wiaoRlL): New test.
  1187. 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
  1188. * dwarf.c (read_and_display_attr_value): Support DW_FORM_data16.
  1189. 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
  1190. * dwarf.c (display_debug_macro): Support DWARF-5. Rename
  1191. DW_MACRO_GNU_*.
  1192. 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
  1193. * dwarf.c (decode_location_expression): Support DW_OP_implicit_pointer,
  1194. DW_OP_const_type, DW_OP_regval_type, DW_OP_deref_type, DW_OP_convert
  1195. and DW_OP_reinterpret.
  1196. (read_and_display_attr_value): Support DW_AT_call_value,
  1197. DW_AT_call_data_value, DW_AT_call_target and
  1198. DW_AT_call_target_clobbered.
  1199. 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
  1200. * dwarf.c (fetch_indirect_line_string): New function.
  1201. (abbrev_attr): New field implicit_const.
  1202. (add_abbrev_attr): New parameter implicit_const.
  1203. (process_abbrev_section): Support DW_FORM_implicit_const.
  1204. (decode_location_expression): Support DW_OP_entry_value.
  1205. (read_and_display_attr_value): Add parameter implicit_const. Support
  1206. DW_FORM_line_strp and DW_FORM_implicit_const.
  1207. (read_and_display_attr): Add parameter implicit_const.
  1208. (process_debug_info): Support line_str and DWARF-5.
  1209. (read_debug_line_header): Support DWARF-5.
  1210. (display_formatted_table): New function.
  1211. (display_debug_lines_raw): New parameter file. Support DWARF-5.
  1212. (display_debug_lines_decoded): New parameter fileptr. Support DWARF-5.
  1213. (display_debug_lines): Pass file parameter.
  1214. (display_debug_macro): Update read_and_display_attr_value caller.
  1215. (display_debug_abbrev): Support DW_FORM_implicit_const.
  1216. (display_loclists_list): New function.
  1217. (display_loc_list): Support .debug_loclists.
  1218. (display_debug_ranges_list): New function from display_debug_ranges.
  1219. (display_debug_rnglists_list): New function.
  1220. (display_debug_ranges): Support .debug_rnglists.
  1221. (debug_displays): Add .debug_line_str, .debug_loclists and
  1222. .debug_rnglists.
  1223. * dwarf.h: Include dwarf2.h
  1224. (DWARF2_Internal_LineInfo): Add li_offset_size.
  1225. (DWARF2_Internal_CompUnit): Add cu_unit_type.
  1226. (enum dwarf_section_display_enum): Add line_str.
  1227. * readelf.c (process_section_headers): Add rnglists and loclists.
  1228. 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
  1229. * dwarf.c (display_block): Add parameter delimiter.
  1230. (decode_location_expression): Update display_block callers.
  1231. (read_and_display_attr_value): Add parameter delimiter.
  1232. (read_and_display_attr, display_debug_macro): Update
  1233. read_and_display_attr_value caller.
  1234. 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
  1235. * dwarf.c (display_loc_list): Use dwarf_vma for offset, base_address
  1236. and off.
  1237. (display_loc_list_dwo): Use dwarf_vma for offset.
  1238. (display_debug_loc): Use dwarf_vma for offset, base_address.
  1239. (struct range_entry, range_entry_compar): Use dwarf_vma for
  1240. ranges_offset.
  1241. (display_debug_ranges): Use dwarf_vma for ranges_offset, offset and
  1242. base_address.
  1243. 2017-02-23 Nick Clifton <nickc@redhat.com>
  1244. * readelf.c (display_tag_value): Use an explicit signed type for
  1245. the tag parameter.
  1246. (display_gnu_attributes): Use an unsigned integer type for
  1247. attribute tags.
  1248. (display_power_gnu_attribute): Likewise.
  1249. (display_s390_gnu_attribute): Likewise.
  1250. (display_sparc_hwcaps): Likewise.
  1251. (display_sparc_hwcaps2): Likewise.
  1252. (display_sparc_gnu_attribute): Likewise.
  1253. (display_mips_gnu_attribute): Likewise.
  1254. (display_tic6x_attribute): Likewise.
  1255. (display_raw_attribute): Likewise.
  1256. (process_attributes): Likewise.
  1257. (process_arm_specific): Delete redundant function.
  1258. (process_power_specific): Likewise.
  1259. (process_s390_specific): Likewise.
  1260. (process_sparc_specific): Likewise.
  1261. (process_tic6x_specific): Likewise.
  1262. (process_msp430x_specific): Likewise.
  1263. (display_public_gnu_attributes): New function. Displays known
  1264. information about an unknown gnu attribute.
  1265. (display_generic_attribute): New function. Calls
  1266. display_tag_value for non-nul tags.
  1267. (process_arch_specific): Call process_attributes even for
  1268. architectures not known to specifically support gnu attributes.
  1269. 2017-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
  1270. * dwarf.c (decode_location_expression): Display also OP.
  1271. 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
  1272. * readelf.c (process_version_sections) <SHT_GNU_verdef>: Print a
  1273. new line between the heading and the first version definition
  1274. entry.
  1275. 2017-02-20 Nick Clifton <nickc@redhat.com>
  1276. PR binutils/21156
  1277. * dwarf.c (cu_tu_indexes_read): Move into...
  1278. (load_cu_tu_indexes): ... here. Change the variable into
  1279. tri-state. Change the function into boolean, returning
  1280. false if the indicies could not be loaded.
  1281. (find_cu_tu_set): Return NULL if the indicies could not be
  1282. loaded.
  1283. 2017-02-17 Nick Clifton <nickc@redhat.com>
  1284. PR binutils/21156
  1285. * readelf.c (find_section_in_set): Test for invalid section
  1286. indicies.
  1287. 2017-02-17 Nick Clifton <nickc@redhat.com>
  1288. * readelf.c (get_section_type_name): Add decoding of GNU section
  1289. types.
  1290. 2017-02-15 Nick Clifton <nickc@redhat.com>
  1291. * MAINTAINERS: (MIPS, MN10300): Move Eric Christopher to Past
  1292. Maintainers section.
  1293. 2017-02-14 Nick Clifton <nickc@redhat.com>
  1294. PR binutils/21159
  1295. * readelf.c (dump_section_as_strings): Reset the start address if
  1296. no decompression is perfromed.
  1297. (dump_section_as_bytes): Likewise.
  1298. 2017-02-14 Nick Clifton <nickc@redhat.com>
  1299. PR binutils/21158
  1300. * rddbg.c (read_symbol_stabs_debugging_info): Check for a null or
  1301. empty symbol name.
  1302. 2017-02-14 Nick Clifton <nickc@redhat.com>
  1303. PR binutils/21157
  1304. * stabs.c (parse_stab_enum_type): Check for corrupt NAME:VALUE
  1305. pairs.
  1306. (parse_number): Exit early if passed an empty string.
  1307. 2017-02-14 Nick Clifton <nickc@redhat.com>
  1308. PR binutils/21155
  1309. * readelf.c (IN_RANGE): New macro. Tests for an address + offset
  1310. being within a given range.
  1311. (target_specific_reloc_handling): Use macro to test for underflow
  1312. as well as overflow of reloc offset.
  1313. 2017-02-13 Nick Clifton <nickc@redhat.com>
  1314. PR binutils/21150
  1315. * nm.c (file_symbol): Add test of string length before testing
  1316. string characters.
  1317. 2017-02-13 Nick Clifton <nickc@redhat.com>
  1318. PR binutils/21135
  1319. * readelf.c (dump_section_as_bytes): Handle the case where
  1320. uncompress_section_contents returns false.
  1321. (dump_section_as_bytes, load_specific_debug_section): Likewise.
  1322. 2017-02-13 Nick Clifton <nickc@redhat.com>
  1323. PR binutils/21149
  1324. * readelf.c (get_compression_header): Add size parameter. Check
  1325. size against sizeof compression header before attempting to
  1326. extract the header.
  1327. (process_section_headers): Pass size to get_compression_header.
  1328. (dump_section_as_strings): Likewise.
  1329. (dump_section_as_bytes): Likewise.
  1330. (load_specific_debug_section): Likewise.
  1331. 2017-02-13 Nick Clifton <nickc@redhat.com>
  1332. PR binutils/21148
  1333. * readelf.c (process_version_sections): Include size of auxiliary
  1334. version information when checking for buffer overflow.
  1335. 2017-02-13 Nick Clifton <nickc@redhat.com>
  1336. PR binutils/21147
  1337. * readelf.c (process_section_contents): Fix off by one error
  1338. reporting un-dumped sections.
  1339. 2017-02-13 Nick Clifton <nickc@redhat.com>
  1340. PR binutils/21139
  1341. * readelf.c (target_specific_reloc_handling): Add num_syms
  1342. parameter. Check for symbol table overflow before accessing
  1343. symbol value. If reloc pointer is NULL, discard all saved state.
  1344. (apply_relocations): Pass num_syms to target_specific_reloc_handling.
  1345. Call target_specific_reloc_handling with a NULL reloc pointer
  1346. after processing all of the relocs.
  1347. 2017-02-13 Nick Clifton <nickc@redhat.com>
  1348. PR binutils/21137
  1349. * readelf.c (target_specific_reloc_handling): Add end parameter.
  1350. Check for buffer overflow before writing relocated values.
  1351. (apply_relocations): Pass end to target_specific_reloc_handling.
  1352. 2017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
  1353. Nick Clifton <nickc@redhat.com>
  1354. PR 20343
  1355. * doc/binutils.texi (ar): Extend documentation of the --plugin
  1356. option. Include a description of where the plugins should be
  1357. located.
  1358. (nm): Likewise.
  1359. 2017-01-23 Nick Clifton <nickc@redhat.com>
  1360. * MAINTAINERS: Add Bernd to Past Maintainers section.
  1361. (SCORE): Remove Mei Ligang as maintainer. Add to Past Maintainers
  1362. section.
  1363. 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
  1364. * MAINTAINERS (BFIN): Remove myself as Blackfin maintainer.
  1365. 2017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
  1366. * objdump.c (dump_section_header): Extract max section name length
  1367. from data parameter, use this when formatting output.
  1368. (find_longest_section_name): New function.
  1369. (dump_headers): Calculate longest section name when in wide mode,
  1370. reformat to unify printing of header line.
  1371. 2017-01-18 Bernhard Rosenkranzer <bero@lindev.ch>
  1372. PR 21059
  1373. * arlex.l: Support processing with flex 2.6.3.
  1374. * deflex.l: Likewise.
  1375. 2017-01-17 Dmitry Timoshkov <dmitry@baikal.ru>
  1376. * resbin.c: Optional dialog control data immediately follows
  1377. the control description without alignment.
  1378. * testsuite/binutils-all/windres/controldata.rc: New test.
  1379. source.
  1380. * testsuite/binutils-all/windres/controldata.rsd: New test.
  1381. 2017-01-12 Nick Clifton <nickc@redhat.com>
  1382. PR binutils/20876
  1383. * NEWS: Mention the new feature.
  1384. * testsuite/binutils-all/objdump.exp (test_build_id_debuglink):
  1385. New proc to test the location of separate debug info files using
  1386. the build-id method.
  1387. 2017-01-10 Nick Clifton <nickc@redhat.com>
  1388. PR 21034
  1389. * stabs.c (parse_stab_members): Fix thinko checking for g++
  1390. version 1 stabs information.
  1391. 2017-01-09 Nick Clifton <nickc@redhat.com>
  1392. * objdump.c (display_file): Add new parameter 'last_file'. If
  1393. last_file is true, do not call bfd_close at the end of the
  1394. function.
  1395. (main): Set the value of the last_file parameter when calling
  1396. display_file.
  1397. 2017-01-09 Alan Modra <amodra@gmail.com>
  1398. * readelf.c (process_section_headers): Correct .rel.dyn/.rela.dyn
  1399. comment.
  1400. 2017-01-06 Nick Clifton <nickc@redhat.com>
  1401. * MAINTAINERS: Move Paul Brook to the Past Maintainers section.
  1402. 2017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
  1403. PR 20958
  1404. * syslex.l (option): Add noyywrap
  1405. (yywrap): Delete.
  1406. 2017-01-02 Alan Modra <amodra@gmail.com>
  1407. Update year range in copyright notice of all files.
  1408. For older changes see ChangeLog-2016
  1409. Copyright (C) 2017 Free Software Foundation, Inc.
  1410. Copying and distribution of this file, with or without modification,
  1411. are permitted in any medium without royalty provided the copyright
  1412. notice and this notice are preserved.
  1413. Local Variables:
  1414. mode: change-log
  1415. left-margin: 8
  1416. fill-column: 74
  1417. version-control: never
  1418. End: