ChangeLog-2019 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525
  1. 2019-12-30 Alan Modra <amodra@gmail.com>
  2. * od-macho.c: Include elfcomm.h.
  3. (dump_dyld_info_rebase, dump_dyld_info_bind): Fix read_leb128 args.
  4. (dump_dyld_info_export_1, dump_segment_split_info): Likewise.
  5. 2019-12-23 Hans-Peter Nilsson <hp@axis.com>
  6. * dwarf.c (display_debug_lines_decoded): Cast printf parameter to
  7. format type to correct last change.
  8. 2019-12-23 Alan Modra <amodra@gmail.com>
  9. * dwarf.h (read_leb128): Update prototype.
  10. (report_leb_status): New inline function.
  11. (SKIP_ULEB, SKIP_SLEB, READ_ULEB, READ_SLEB): Define.
  12. * dwarf.c: Use above macros throughout file. Formatting.
  13. (read_leb128): Reorder params. Add status return param.
  14. Don't stop reading until finding terminator or end of data.
  15. Detect loss of significant bits. Sign extend only on
  16. terminating byte.
  17. (read_sleb128, read_uleb128): Delete functions.
  18. (SKIP_ULEB, SKIP_SLEB, READ_ULEB, READ_SLEB): Delete macros.
  19. (read_and_print_leb128): Rewrite.
  20. (process_extended_line_op): Return a size_t. Use size_t vars.
  21. Adjust to suit new macros. Add proper name size to "data" when
  22. processing DW_LNE_define_file.
  23. (process_abbrev_section): Adjust to suit new macros.
  24. (decode_location_expression, skip_attr_bytes): Likewise.
  25. (get_type_signedness): Likewise.
  26. (read_and_display_attr_value): Likewise. Consolidate block code.
  27. (process_debug_info): Adjust to suit new macros.
  28. (display_formatted_table, display_debug_lines_raw): Likewise.
  29. (display_debug_lines_decoded): Likewise. Properly check for end
  30. of DW_LNS_extended_op.
  31. (display_debug_macinfo): Adjust to suit new macros.
  32. (get_line_filename_and_dirname, display_debug_macro): Likewise.
  33. (display_view_pair_list): Likewise. Don't back off when hitting
  34. end of data.
  35. (display_loc_list): Adjust to suit new macros.
  36. (display_loclists_list, display_loc_list_dwo): Likewise.
  37. (display_debug_rnglists_list, read_cie): Likewise.
  38. (display_debug_frames): Likewise.
  39. * readelf.c: Use new ULEB macros throughout file.
  40. (read_uleb128): Delete.
  41. (decode_arm_unwind_bytecode): Use read_leb128.
  42. (decode_tic6x_unwind_bytecode): Likewise.
  43. (display_tag_value): Adjust to suit new macros.
  44. (display_arc_attribute, display_arm_attribute): Likewise.
  45. (display_gnu_attribute, display_power_gnu_attribute): Likewise.
  46. (display_s390_gnu_attribute, display_sparc_gnu_attribute): Likewise.
  47. (display_mips_gnu_attribute, display_tic6x_attribute): Likewise.
  48. (display_msp430x_attribute, display_msp430_gnu_attribute): Likewise.
  49. (display_riscv_attribute, process_attributes): Likewise.
  50. 2019-12-17 Alan Modra <amodra@gmail.com>
  51. * objdump.c (compare_section): New static var.
  52. (compare_symbols): Sort by current section only. Don't access
  53. symbol name out of bounds when checking for file symbols.
  54. Sort section symbols and object symbols.
  55. (find_symbol_for_address): Remove bogus debugging and section
  56. symbol test.
  57. (disassemble_data): Move symbol sort from here..
  58. (disassemble_section): ..to here. Set compare_section.
  59. 2019-12-17 Alan Modra <amodra@gmail.com>
  60. * testsuite/binutils-all/objcopy.exp: Remove tic80 support.
  61. * testsuite/binutils-all/objdump.exp: Likewise.
  62. 2019-12-11 Alan Modra <amodra@gmail.com>
  63. * od-xcoff.c (dump_dumpx_core): Adjust for bfd_h_get_8 change.
  64. 2019-12-10 Alan Modra <amodra@gmail.com>
  65. PR 24960
  66. * objdump.c (disassemble_data): Call disassemble_free_target.
  67. 2019-12-10 Alan Modra <amodra@gmail.com>
  68. * objdump.c (struct objdump_disasm_info): Delete "sec".
  69. (find_symbol_for_address): Use inf->section rather than aux->sec.
  70. (objdump_print_addr, disassemble_bytes): Likewise.
  71. (disassemble_section): Don't set aux->sec.
  72. 2019-12-08 Alan Modra <amodra@gmail.com>
  73. * testsuite/lib/binutils-common.exp (regexp_diff): Support #?REGEXP.
  74. 2019-11-22 Andrew Burgess <andrew.burgess@embecosm.com>
  75. * dwarf.c (regname_internal_riscv): New function.
  76. (init_dwarf_regnames_riscv): Use new function.
  77. 2019-11-22 Andrew Burgess <andrew.burgess@embecosm.com>
  78. * dwarf.c (typedef dwarf_regname_lookup_ftype): New typedef.
  79. (dwarf_regnames_lookup_func): New static global.
  80. (init_dwarf_regnames_i386): Set dwarf_regnames_lookup_func.
  81. (init_dwarf_regnames_iamcu): Likewise.
  82. (init_dwarf_regnames_x86_64): Likewise.
  83. (init_dwarf_regnames_aarch64): Likewise.
  84. (init_dwarf_regnames_s390): Likewise.
  85. (init_dwarf_regnames_riscv): Likewise.
  86. (init_dwarf_regnames_by_elf_machine_code): Reset
  87. dwarf_regnames_lookup_func to NULL.
  88. (init_dwarf_regnames_by_bfd_arch_and_mach): Likewise.
  89. (regname_internal_by_table_only): New function.
  90. (regname): Make use of dwarf_regnames_lookup_func.
  91. 2019-11-22 Andrew Burgess <andrew.burgess@embecosm.com>
  92. * dwarf.c (init_dwarf_regnames_i386): Make static.
  93. (init_dwarf_regnames_iamcu): Make static.
  94. (init_dwarf_regnames_x86_64): Make static.
  95. (init_dwarf_regnames_aarch64): Make static.
  96. (init_dwarf_regnames_s390): Make static.
  97. (init_dwarf_regnames_riscv): Make static.
  98. * dwarf.h (init_dwarf_regnames_i386): Delete declaration.
  99. (init_dwarf_regnames_iamcu): Delete declaration.
  100. (init_dwarf_regnames_x86_64): Delete declaration.
  101. (init_dwarf_regnames_aarch64): Delete declaration.
  102. (init_dwarf_regnames_s390): Delete declaration.
  103. (init_dwarf_regnames_riscv): Delete declaration.
  104. 2019-11-22 Andrew Burgess <andrew.burgess@embecosm.com>
  105. * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): New
  106. function.
  107. * dwarf.h (init_dwarf_regnames_by_bfd_arch_and_mach): Declare.
  108. * objdump.c (dump_dwarf): Call new function instead of calling
  109. specific initialization routines. Restrucure so that eh_addr_size
  110. is still calculated correctly.
  111. 2019-11-22 Andrew Burgess <andrew.burgess@embecosm.com>
  112. * dwarf.c (init_dwarf_regnames): Renamed to...
  113. (init_dwarf_regnames_by_elf_machine_code): ...this.
  114. * dwarf.h (init_dwarf_regnames): Renamed to...
  115. (init_dwarf_regnames_by_elf_machine_code): ...this.
  116. * readelf.c (process_file_header): Update call to use new name.
  117. 2019-11-22 Andrew Burgess <andrew.burgess@embecosm.com>
  118. * dwarf.c (frame_need_space): Compare dwarf_regnames_count against
  119. 0, and only warn about large numbers of registers if the number is
  120. more than the dwarf_regnames_count.
  121. 2019-11-25 Christian Eggers <ceggers@gmx.de>
  122. * objdump.c (disassemble_data): Provide section parameter to
  123. bfd_octets_per_byte.
  124. (dump_section): likewise
  125. (dump_section_header): likewise. Show SEC_ELF_OCTETS flag if set.
  126. 2019-11-21 Alan Modra <amodra@gmail.com>
  127. PR 273
  128. * size.c (sysv_internal_sizer, sysv_internal_printer): Exclude
  129. sections with no flag bits set.
  130. * testsuite/binutils-all/size.exp: Allow $CODE$ as a text section.
  131. 2019-11-21 Nick Clifton <nickc@redhat.com>
  132. * objcopy.c (merge_gnu_build_notes): Allow for the possibility
  133. that the new notes might actually be larger than the original
  134. notes.
  135. 2019-11-21 Alan Modra <amodra@gmail.com>
  136. * testsuite/lib/binutils-common.exp (is_pecoff_format): Rewrite
  137. with positive logic and add more target triples.
  138. 2019-11-19 Alan Modra <amodra@gmail.com>
  139. PR 24499
  140. * objcopy.c (copy_file): Ignore --add-gnu-debuglink for archives.
  141. 2019-11-19 Alan Modra <amodra@gmail.com>
  142. PR 24968
  143. * objcopy.c (copy_object): For ELF output and non-ELF input without
  144. arch, take arch from output file if not given by -B. Don't
  145. bfd_get_arch_info when we already have iarch.
  146. 2019-11-19 Alan Modra <amodra@gmail.com>
  147. PR 25191
  148. * objcopy.c (is_nondebug_keep_contents_section): Use bfd_get_flavour.
  149. (copy_object): Likewise.
  150. (setup_section): Likewise. If flavour of input and output files
  151. differ, restrict section flags to the intersection of input and
  152. output bfd_applicable_section_flags.
  153. 2019-11-19 Alan Modra <amodra@gmail.com>
  154. * bucomm.c (bfd_nonfatal_message): Add a space between program
  155. name and file.
  156. 2019-11-18 Alan Modra <amodra@gmail.com>
  157. PR 25198
  158. * prdbg.c (tg_start_class_type): Correct scope of idbuf.
  159. 2019-11-08 Alan Modra <amodra@gmail.com>
  160. PR 25172
  161. * objdump.c (usage): Correct --stop-address description.
  162. 2019-11-07 Nick Clifton <nickc@redhat.com>
  163. * ar.c (open_output_file): Check for filename validity before
  164. prefixing with output directory.
  165. Display the constructed output filename if in verbose mode.
  166. (extract_file): Let open_output_file display the filename.
  167. 2019-11-07 Nick Clifton <nickc@redhat.com>
  168. * objcopy.c (copy_object): Skip note sections that do not have
  169. an output section. Always copy note sections, even if no
  170. changes are made.
  171. 2019-11-06 Christian Eggers <ceggers@gmx.de>
  172. * readelf.c (IN_RANGE): Rename parameter OFF to NELEM. Add
  173. comment. Catch potential integer overflow and fix off by one
  174. error whilst checking reloc location against section size.
  175. (apply_relocations): Use IN_RANGE macro.
  176. 2019-11-04 Fangrui Song <maskray@google.com>
  177. * objcopy.c (enum option_values): Add OPTION_KEEP_SECTION.
  178. (SECTION_CONTEXT_KEEP): Define. Adjust other SECTION_CONTEXT macros.
  179. (copy_usage): Describe --keep-section.
  180. (strip_usage): Likewise.
  181. (copy_main): Handle SECTION_CONTEXT_KEEP.
  182. (strip_main): Likewise.
  183. (is_strip_section_1): Likewise.
  184. * testsuite/binutils-all/objcopy.exp: Add tests.
  185. * testsuite/binutils-all/keep-section-1.d: New test driver file.
  186. * testsuite/binutils-all/keep-section-2.d: Likewise.
  187. * doc/binutils.texi: Document the new feature.
  188. * NEWS: Mention the new feature.
  189. 2019-10-20 Palmer Dabbelt <palmer@sifive.com>
  190. * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
  191. 2019-10-30 Fangrui Song <i@maskray.me>
  192. Nick Clifton <nickc@redhat.com>
  193. * ar.c (emum long option numbers): Declare. Use to provide
  194. numerical values for long options.
  195. (long_options): Add --output option.
  196. (usage): Mention the --output option.
  197. (open_output_file): New function. Create a filepath for an output
  198. file and open it.
  199. (extract_file): Use open_output_file().
  200. (open_output_file):
  201. * testsuite/binutils-all/ar.exp: Add a test of the new feature.
  202. * doc/binutils.texi: Document the new feature.
  203. * NEWS: Mention the new feature.
  204. 2019-10-26 Alan Modra <amodra@gmail.com>
  205. * objcopy.c (sort_gnu_build_notes): Correct sort of deleted
  206. note2.
  207. 2019-10-25 H.J. Lu <hongjiu.lu@intel.com>
  208. * elfedit.c (elf_x86_feature): Report unknown x86 feature.
  209. 2019-10-25 H.J. Lu <hongjiu.lu@intel.com>
  210. * elfedit.c (update_gnu_property): Replace BYTE_PUT with byte_put.
  211. 2019-10-25 Nick Clifton <nickc@redhat.com>
  212. * objcopy.c (struct merged_note_section): New structure. Used to
  213. chain together details of mergeable note sections.
  214. (is_merged_note_section): Rename to is_megreable_note_section and
  215. return true for note sections that use GNU_BUILD_ATTRS_SECTION_NAME
  216. as a prefix.
  217. (num_bytes): Delete
  218. (objcoopy_internal_note): Add padded_namesz field.
  219. (DEBUG_MERGE): New macro. Set to non-zero to enable debugging of
  220. the note merging code.
  221. (gap_exists): Rename to overlaps_or_adjoins and return TRUE for
  222. overlapping notes or adjoining notes.
  223. (contained_by, is_deleted_note, is_version_note)
  224. (compare_gnu_build_notes, sort_gnu_build_notes): New functions.
  225. (merge_gnu_build_notes): Rework. Sort notes into a mergeable
  226. order first. Merge them. Then sort them into an ascending
  227. address order before writing them out.
  228. (copy_object): Handle more than one mergeable note section.
  229. * testsuite/binutils-all/note-2-32.d: Update for new merging
  230. behaviour.
  231. * testsuite/binutils-all/note-2-32.s: Likewise.
  232. * testsuite/binutils-all/note-2-64.d: Likewise.
  233. * testsuite/binutils-all/note-2-64.s: Likewise.
  234. * testsuite/binutils-all/note-3-32.d: Likewise.
  235. * testsuite/binutils-all/note-3-32.s: Likewise.
  236. * testsuite/binutils-all/note-3-64.d: Likewise.
  237. * testsuite/binutils-all/note-3-64.s: Likewise.
  238. * testsuite/binutils-all/note-4-32.d: Likewise.
  239. * testsuite/binutils-all/note-4-32.s: Likewise.
  240. * testsuite/binutils-all/note-4-64.d: Likewise.
  241. * testsuite/binutils-all/note-4-64.s: Likewise.
  242. * testsuite/binutils-all/note-6-32.s: New test source file.
  243. * testsuite/binutils-all/note-6-64.s: New test source file.
  244. * testsuite/binutils-all/note-6-32.d: New test driver file.
  245. * testsuite/binutils-all/note-6-64.d: New test driver file.
  246. * testsuite/binutils-all/objcopy.exp: Run the new test.
  247. 2019-10-25 Alan Modra <amodra@gmail.com>
  248. * readelf.c (process_program_headers): Check PT_PHDR p_offset
  249. as well as p_vaddr. Use p_filesz, not p_memsz, in vaddr test.
  250. 2019-10-21 Alan Modra <amodra@gmail.com>
  251. PR 452
  252. PR 25104
  253. * ar.c (write_archive): Set BFD_ARCHIVE_FULL_PATH.
  254. * doc/binutils.texi (extract from archive): Mention
  255. restrictions when extracting from archives with full paths.
  256. (ar P): Update to current P support.
  257. (ar -X32_64): Fix spelling.
  258. 2019-10-14 Alan Modra <amodra@gmail.com>
  259. * objcopy.c (compare_section_lma): Correct comment. Dereference
  260. section pointer earlier and lose unnecessary const. Style fixes.
  261. Add final sort by id.
  262. 2019-10-13 Nick Clifton <nickc@redhat.com>
  263. * README-how-to-make-a-release: Add a note to reset the
  264. development flag back to true after making a point release.
  265. 2019-10-12 Nick Clifton <nickc@redhat.com>
  266. * README-how-to-make-a-release: Tweak a few sections based on the
  267. results of the 2.33.1 release.
  268. 2019-10-11 Nick Clifton <nickc@redhat.com>
  269. * po/zh_TW.po: Updated Chinese (traditional) translation.
  270. 2019-10-09 Alan Modra <amodra@gmail.com>
  271. PR 25079
  272. * ar.c (decode_options): Don't try for command options if
  273. write_armap or mri_mode is selected.
  274. 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
  275. * readelf.c (display_msp430_gnu_attribute): New.
  276. (process_arch_specific): Use msp430 specific handler for GNU
  277. attributes.
  278. 2019-09-30 Nick Alcock <nick.alcock@oracle.com>
  279. * objdump.c (main): Fix tabdamage.
  280. * readelf.c (CTF_DUMP): Likewise.
  281. (options): Likewise.
  282. (dump_section_as_ctf): Likewise.
  283. 2019-08-03 Nick Alcock <nick.alcock@oracle.com>
  284. * objdump.c (dump_ctf): Use the default CTF archive member as the
  285. parent even when no parent section is specified.
  286. (dump_ctf_archive_member): Only import from the parent
  287. if this is not the default ".ctf" member.
  288. 2019-09-23 Nick Alcock <nick.alcock@oracle.com>
  289. * Makefile.am (LIBCTF): Mention the .la file.
  290. (LIBCTF_NOBFD): New.
  291. (readelf_DEPENDENCIES): Use it.
  292. (readelf_LDADD): Likewise.
  293. * Makefile.in: Regenerated.
  294. 2019-07-13 Nick Alcock <nick.alcock@oracle.com>
  295. * readelf.c (dump_ctf_symtab_name): Give default value.
  296. (dump_ctf_strtab_name): Likewise.
  297. (dump_section_as_ctf): Allow for the null string.
  298. 2019-07-08 Nick Alcock <nick.alcock@oracle.com>
  299. * objdump.c (dump_ctf_archive_member): Dump the CTF header.
  300. * readelf.c (dump_section_as_ctf): Likewise.
  301. 2019-10-02 Niklas Gürtler <profclonk@gmail.com>
  302. PR 24942
  303. * objcopy.c (copy_usage): Update description of
  304. --set-section-alignment.
  305. (copy_main): Interpret numeric argument of --set-section-alignment
  306. as a byte alignment, not a power of two alignment.
  307. * doc/binutils.texi: Update description of
  308. --set-section-alignment.
  309. * testsuite/binutils-all/set-section-alignment.d: New test.
  310. * testsuite/binutils-all/objcopy.exp: Run the new test.
  311. 2019-09-30 Alan Modra <amodra@gmail.com>
  312. PR 25046
  313. * readelf.c (process_program_headers): Clear dynamic_addr and
  314. dynamic_size earlier.
  315. 2019-09-24 Alan Modra <amodra@gmail.com>
  316. PR 25031
  317. * nm.c (print_format_string): New.
  318. (get_print_format): Delete saved_format. Move earlier.
  319. (set_print_width): Call get_print_format.
  320. (print_value): Use print_format_string.
  321. 2019-09-23 Alan Modra <amodra@gmail.com>
  322. * dlltool.c: Include coff-bfd.h.
  323. 2019-09-23 Alan Modra <amodra@gmail.com>
  324. PR 25018
  325. * dwarf.c (get_type_signedness): Delete ineffective pointer
  326. comparison check. Properly range check uvalue offset on
  327. recursive call.
  328. (read_and_display_attr_value): Range check uvalue offset before
  329. calling get_type_signedness.
  330. 2019-09-20 Alan Modra <amodra@gmail.com>
  331. * ar.c (write_archive): Use bfd_set_thin_archive.
  332. 2019-09-18 Tamar Christina <tamar.christina@arm.com>
  333. * testsuite/binutils-all/objdump.exp (objump -S): Update testcases.
  334. 2019-09-18 Alan Modra <amodra@gmail.com>
  335. * addr2line.c, * bucomm.c, * coffgrok.c, * dlltool.c, * nm.c,
  336. * objcopy.c, * objdump.c, * od-elf32_avr.c, * od-macho.c,
  337. * od-xcoff.c, * prdbg.c, * rdcoff.c, * rddbg.c, * rescoff.c,
  338. * resres.c, * size.c, * srconv.c, * strings.c, * windmc.c: Update
  339. throughout for bfd section macro and function changes.
  340. 2019-09-18 Alan Modra <amodra@gmail.com>
  341. * nm.c: Update bfd_get_section to bfd_asymbol_section throughout.
  342. * objcopy.c: Likewise.
  343. * objdump.c: Likewise.
  344. * rdcoff.c: Likewise.
  345. * objcopy.c (create_new_symbol): Use bfd_set_asymbol_name.
  346. (filter_symbols): Likewise.
  347. 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
  348. * doc/Makefile.am (MOSTLYCLEANFILES): Clean all man pages,
  349. cxxfilt.man and binutils.info.
  350. (MAINTAINERCLEANFILES): Remove.
  351. * doc/Makefile.in: Re-generate.
  352. 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
  353. * doc/Makefile.am: Remove references to binutils_TEXINFOS.
  354. * doc/Makefile.in: Re-generate.
  355. 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
  356. * doc/Makefile.am (install-data-loca): Remove target.
  357. (DISTCLEANFILES): Remove variable.
  358. * doc/Makefile.in: Re-generate.
  359. 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
  360. * Makefile.in: Re-generate.
  361. * configure: Re-generate.
  362. * doc/Makefile.in: Re-generate.
  363. 2019-09-16 Phil Blundell <pb@pbcl.net>
  364. * Makefile.in, configure. doc/Makefile.in: Regenerated.
  365. 2019-09-11 Tom Tromey <tom@tromey.com>
  366. * objcopy.c (copy_archive): Update.
  367. * bucomm.h (make_tempname, make_tempdir): Make argument const.
  368. * bucomm.c (make_tempname, make_tempdir): Make argument const.
  369. 2019-09-11 Alan Modra <amodra@gmail.com>
  370. PR 24907
  371. * objdump.c (disassemble_bytes): Adjust code to avoid overlong
  372. lines. Correct max_reloc_offset_into_insn test.
  373. 2019-09-10 Nick Clifton <nickc@redhat.com>
  374. PR 24907
  375. * objdump.c (null_print): New function.
  376. (disassemble_bytes): Delete previous_octets local and replace with
  377. a test of the max_reloc_offset_into_insn field of the
  378. bfd_arch_info structure. If a reloc is a potential match for the
  379. next insn, then perform a dummy disassembly in order to calculate
  380. its real length.
  381. 2019-09-09 Phil Blundell <pb@pbcl.net>
  382. binutils 2.33 branch created.
  383. 2019-09-06 Alan Modra <amodra@gmail.com>
  384. * nm.c (print_object_filename_bsd, print_object_filename_sysv),
  385. (print_object_filename_posix, print_archive_filename_bsd),
  386. (print_archive_filename_sysv, print_archive_filename_posix),
  387. (print_archive_member_bsd, print_archive_member_sysv),
  388. (print_archive_member_posix): Constify parameter.
  389. (struct output_fns <print_object_filename, print_archive_filename>),
  390. (<print_archive_member>): Likewise.
  391. * objcopy.c (copy_archive): Add cast for make_tempdir.
  392. 2019-08-29 Alan Modra <amodra@gmail.com>
  393. * dwarf.c (check_uvalue): Remove unnecessary pointer checks.
  394. 2019-08-28 Niklas Gürtler <profclonk@gmail.com>
  395. PR 24942
  396. * objcopy.c (SECTION_CONTEXT_SET_ALIGNMENT): New constant.
  397. (struct section_list): Add alignment field.
  398. (command_line_switch): Add OPTION_SET_SECTION_ALIGNMENT.
  399. (copy_options): Add --set-section-alignment.
  400. (copy_usage): Describe --set-section-alignment.
  401. (find_section_list): Initialise the alignment field.
  402. (setup_section): Handle the alignment field.
  403. (copy_main): Handle OPTION_SET_SECTION_ALIGNMENT.
  404. * doc/binutils.texi: Document the new feature.
  405. * NEWS: Mention the new feature.
  406. 2019-08-28 Nick Clifton <nickc@redhat.com>
  407. PR 24931
  408. * objdump.c (source_comment): New static variable.
  409. (option_values): Add OPTION_SOURCE_COMMENT.
  410. (long_opions): Add --source-comment.
  411. (print_line): If source comment is set, use it as a prefix to the
  412. source code line.
  413. (main): Handle OPTION_SOURCE_COMMENT.
  414. * doc/binutils.texi: Document the new option.
  415. * NEWS: Mention the new feature.
  416. * testsuite/binutils-all/objdump.exp (test_objdump_S): Add tests
  417. of the -S and --source-comment options.
  418. 2019-08-27 Nick Clifton <nickc@redhat.com>
  419. PR 24510
  420. * dwarf.c (MAX_CU_NESTING): New constant.
  421. (level_type_signed): New static array.
  422. (skip_attr_bytes): New function.
  423. (get_type_signedness): New function.
  424. (read_and_print_leb128): New function.
  425. (display_discr_list): New function.
  426. (read_and_display_attr_value): Add start parameter.
  427. Use new functions when handling DW_AT_type and DW_AT_discr_list.
  428. (read_and_display_attr): Add start parameter. Pass to
  429. read_and_display_attr_value.
  430. (process_debug_info): Update call to read_and_display_attr.
  431. (display_formatted_table): Likewise.
  432. (display_debug_lines_decoded): Likewise. Also add start
  433. parameter.
  434. (display_debug_lines): Likewise.
  435. * testsuite/binutils-all/dwarf-attributes.S: Update discrimination
  436. lists.
  437. * testsuite/binutils-all/dwarf-attributes.W: Update expected
  438. output.
  439. 2019-08-26 Alan Modra <amodra@gmail.com>
  440. PR 24938
  441. * debug.c (debug_write_type): Call empty_type for NULL type here..
  442. (debug_write_type): ..rather than in just one case here.
  443. 2019-08-23 Nick Clifton <nickc@redhat.com>
  444. PR 24829
  445. * dwarf.c (check_uvalue): New function. Ensures that a block's
  446. size is valid.
  447. (read_and_display_attr_value): Use check_value when processsing
  448. DW_FORM_block<n> attributes.
  449. 2019-08-22 Nick Clifton <nickc@redhat.com>
  450. PR 24921
  451. * dwarf.c (process_cu_tu_index): Handle the case where a table
  452. does not have any columns.
  453. 2019-08-19 Alan Modra <amodra@gmail.com>
  454. PR 24898
  455. * dwarf.c (display_debug_frames): Use the read_cie check and error
  456. for augmentation data length.
  457. 2019-08-17 Alan Modra <amodra@gmail.com>
  458. PR 24911
  459. * dwarf.c (comp_addr_base): Dereference args.
  460. 2019-08-16 Alan Modra <amodra@gmail.com>
  461. PR 24909
  462. PR 23499
  463. * readelf.c (get_symbol_version_string): Set sym_info earlier.
  464. 2019-08-15 Nick Clifton <nickc@redhat.com>
  465. PR 24767
  466. * doc/binutils.texi (nm): Document the 'n' symbol type.
  467. 2019-08-15 Christophe Vidal <support@krizalys.com>
  468. * docs/binutils.texi: Fixed notice message disassembler options
  469. section of the man page.
  470. 2019-08-09 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
  471. * readelf.c (get_mips_dynamic_type): Return MIPS_XHASH dynamic type.
  472. (get_mips_section_type_name): Return MI{S_XHASH name string.
  473. (dynamic_section_mips_val): Initialize the .MIPS.xhash dynamic
  474. info.
  475. (process_symbol_table): Initialize the .MIPS.xhash section
  476. pointer. Adjust the readelf output to support the new section.
  477. (process_object): Set the .MIPS.xhash dynamic info to zero.
  478. 2019-08-09 Tamar Christina <tamar.christina@arm.com>
  479. * testsuite/binutils-all/arm/in-order-all.d: Skip on pe, wince, coff.
  480. * testsuite/binutils-all/arm/in-order.d: Likewise.
  481. * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
  482. * testsuite/binutils-all/arm/out-of-order.d: Likewise.
  483. 2019-08-08 Nick Clifton <nickc@redhat.com>
  484. PR 24887
  485. * readelf.c (process_notes_at): Left justify the "Data size"
  486. column heading.
  487. * testsuite/binutils-all/i386/empty.d: Adjust for new output format.
  488. * testsuite/binutils-all/i386/ibt.d: Likewise.
  489. * testsuite/binutils-all/i386/pr21231a.d: Likewise.
  490. * testsuite/binutils-all/i386/pr21231b.d: Likewise.
  491. * testsuite/binutils-all/i386/shstk.d: Likewise.
  492. * testsuite/binutils-all/note-2-32.d: Likewise.
  493. * testsuite/binutils-all/note-2-64.d: Likewise.
  494. * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
  495. * testsuite/binutils-all/x86-64/empty.d: Likewise.
  496. * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
  497. * testsuite/binutils-all/x86-64/ibt.d: Likewise.
  498. * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
  499. * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
  500. * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
  501. * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
  502. * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
  503. * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
  504. * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
  505. * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
  506. * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
  507. * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
  508. * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
  509. * testsuite/binutils-all/x86-64/shstk.d: Likewise.
  510. 2019-08-08 Nick Clifton <nickc@redhat.com>
  511. * testsuite/gentestdlls.c (main): Move declaration of loop
  512. variable outside of the for() statement.
  513. 2019-08-08 Jordan Rupprecht <rupprecht@google.com>
  514. * readelf.c (process_note): Mask unknown description data bytes.
  515. 2019-08-08 Alan Modra <amodra@gmail.com>
  516. * readelf.c (get_data): Improve overflow checks.
  517. 2019-08-07 Nick Clifton <nickc@redhat.com>
  518. PR 24777
  519. * doc/binutils.texi: Ensure consistent formating of title strings
  520. for man pages. Extend the title of the size man page to be more
  521. informative.
  522. 2019-08-07 Omair Majid <omajid@redhat.com>
  523. * testsuite/binutils-all/objdump.exp
  524. (test_objdump_dotnet_assemblies): Fix test to distinguish errors
  525. in parsing simple pei-i386 and pei-x86-64 vs parsing the newly
  526. introduced machine types.
  527. * testsuite/gentestdlls.c (write_simple_dll): New function.
  528. (main): Generate simple and Linux-specific variants of pei-i386
  529. and pei-x86-64 files so both can be used by tests.
  530. 2019-08-07 Alan Modra <amodra@gmail.com>
  531. PR 24876
  532. * readelf.c (dump_ia64_unwind): Check that buffer is large
  533. enough for "stamp" before reading.
  534. 2019-08-05 Nick Clifton <nickc@redhat.com>
  535. PR 24874
  536. * objcopy.c (merge_gnu_build_notes): Do not insist on the first
  537. note being a version note.
  538. Remove spurious debugging fprintf.
  539. 2019-08-05 Nick Clifton <nickc@redhat.com>
  540. PR 24829
  541. * readelf.c (apply_relocations): Catch potential integer overflow
  542. whilst checking reloc location against section size.
  543. 2019-08-02 Alan Modra <amodra@gmail.com>
  544. PR 24871
  545. * readelf.c (ABSADDR): Delete.
  546. (dump_ia64_unwind): Expand ABSADDR. Check validity of info.section.
  547. 2019-07-29 Martin Liska <mliska@suse.cz>
  548. PR 24768
  549. * nm.c (filter_symbols): Set report_plugin_err if
  550. error is reported.
  551. (display_rel_file): Report error for a missing LTO plugin.
  552. 2019-07-26 Alan Modra <amodra@gmail.com>
  553. PR 24798
  554. * dwarf.c (process_cu_tu_index): Avoid integer overflow on 64-bit
  555. systems by casting ncols and nslots expressions to size_t. Display
  556. number of columns and slots before giving up due to buffer overflow.
  557. Use %u to display unsigned ints. Perform more pointer wrap tests.
  558. 2019-07-25 Tom Tromey <tromey@adacore.com>
  559. PR 24809
  560. * dwarf.c (display_debug_names): Display the contents of the
  561. augmentation string, if it is printable.
  562. 2019-07-25 Nick Clifton <nickc@redhat.com>
  563. PR 24837
  564. * readelf.c (process_mips_specific): Check for buffer overflow
  565. before reading reginfo information.
  566. 2019-07-24 Nick Clifton <nickc@redhat.com>
  567. PR 13256
  568. * ar.c (decode_options): Restart option scanning if no operation
  569. is detected and argument remain to be scanned.
  570. 2019-07-23 Nick Clifton <nickc@redhat.com>
  571. PR 24818
  572. * objdump.c (is_relocateable): Delete.
  573. (load_specific_debug_section): Test the abfd for relocations
  574. directly, rather than relying upon is_relocateable.
  575. (dump_dwarf): Delete initlialization of is_relocateable.
  576. 2019-07-23 Alan Modra <amodra@gmail.com>
  577. * readelf.c (get_parisc_segment_type): Split off hpux entries..
  578. (get_ia64_segment_type): ..and these..
  579. (get_hpux_segment_type): ..to here.
  580. (get_segment_type): Condition GNU_MBIND on osabi. Use
  581. get_hpux_segment_type.
  582. (get_symbol_binding): Do not print UNIQUE for ELFOSABI_NONE.
  583. (get_symbol_type): Do not print IFUNC for ELFOSABI_NONE.
  584. 2019-07-23 Alan Modra <amodra@gmail.com>
  585. * testsuite/binutils-all/objcopy.exp (elf64): Correct object
  586. file used to set this variable.
  587. 2019-07-23 Omar Majid <omajid@redhat.com>
  588. * Makefile.am (AUTOMAKE_OPTIONS): Add subdir-objects
  589. (GENTESTDLLSPROG): Define.
  590. (TEST_PROGS): Add GENTESTDLLSPROG.
  591. * Makefile.in: Regenerate.
  592. * testsuite/binutils-all/objdump.exp
  593. (test_objdump_dotnet_assemblies): New proc.
  594. Run the new proc.
  595. * testsuite/gentestdlls.c: New source file.
  596. 2019-06-28 Nick Clifton <nickc@redhat.com>
  597. PR 24707
  598. * objdump.c (slurp_symtab): Fail with a helpful error message if
  599. the symbol table is too large. Skip this check for MMO format
  600. files.
  601. 2019-06-26 Nick Clifton <nickc@redhat.com>
  602. PR 24703
  603. * bucomm.c (bfd_nonfatal): If no bfd error code has been set then
  604. indicate this in the output.
  605. (bfd_nonfatal_message): Likewise.
  606. 2019-06-25 Jan Beulich <jbeulich@suse.com>
  607. * readelf.c (dump_ctf_indent_lines): Rename local variable
  608. "spaces" to "blanks".
  609. 2019-06-25 Jan Beulich <jbeulich@suse.com>
  610. * objdump.c (dump_ctf_indent_lines): Rename local variable
  611. "spaces" to "blanks".
  612. 2019-06-14 Alan Modra <amodra@gmail.com>
  613. * Makefile.in: Regenerate.
  614. * aclocal.m4: Regenerate.
  615. * doc/Makefile.in: Regenerate.
  616. 2019-06-12 Christos Zoulas <christos@zoulas.com>
  617. PR 24663
  618. * readelf.c (process_netbsd_elf_note): Add support for
  619. NT_NETBSD_PAX.
  620. (process_note): Add support for PaX notes.
  621. 2019-06-12 Christos Zoulas <christos@zoulas.com>
  622. PR 24665
  623. * readelf.c (get_netbsd_elfcore_note_type): Add support for SH
  624. core notes.
  625. 2019-06-12 Christos Zoulas <christos@zoulas.com>
  626. PR 24664
  627. * readelf.c (get_netbsd_elfcore_note_type): Add support for NetBSD
  628. auxv notes.
  629. 2019-06-11 Christos Zoulas <christos@zoulas.com>
  630. PR 24662
  631. * readelf.c (get_alpha_symbol_other): New function.
  632. (get_symbol_other): Use for Alpha symbols.
  633. (is_32bit_pcrel_reloc): Add R_VAX_PCREL32.
  634. 2019-06-11 Christos Zoulas <christos@zoulas.com>
  635. PR 24661
  636. * readelf.c (decode_arm_unwind): Ensure that the local variable
  637. 'addr' is always initialised.
  638. 2019-06-10 Christos Zoulas <christos@zoulas.com>
  639. PR 24651
  640. * strings.c (print_strings): Use %u to print unsigned values in
  641. decimal.
  642. 2019-06-10 Christos Zoulas <christos@zoulas.com>
  643. PR 24649
  644. * arsup.c (ar_open): Use asprintf in place of xmalloc and
  645. sprintf.
  646. 2019-06-03 Nick Clifton <nickc@redhat.com>
  647. Revert:
  648. 2019-05-29 Nick Clifton <nickc@redhat.com>
  649. * configure.ac (LIBCTF): Export. Set to empty for non-ELF based
  650. targets.
  651. (HAVE_LIBCTF): Define if libctf support is available.
  652. * Makefile.am (LIBCTF): Set value to @LIBCTF@.
  653. * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
  654. defined.
  655. * readelf.c: Likewise.
  656. * configure: Regenerate.
  657. * Makefile.in: Regenerate.
  658. * config.in: Regenerate.
  659. 2019-05-30 Nick Alcock <nick.alcock@oracle.com>
  660. * objdump.c (make_ctfsect): Drop cts_type, cts_flags, and
  661. cts_offset.
  662. * readelf.c (shdr_to_ctf_sect): Likewise.
  663. 2019-05-30 Nick Clifton <nickc@redhat.com>
  664. PR 24627
  665. * readelf.c (process_version_sections): Add 0x prefix to address
  666. display. Correct indentation.
  667. 2019-05-30 Alan Modra <amodra@gmail.com>
  668. * testsuite/lib/binutils-common.exp (supports_gnu_unique): Add
  669. s12z to targets not supporting this feature.
  670. 2019-05-30 Alan Modra <amodra@gmail.com>
  671. * testsuite/lib/binutils-common.exp (run_dump_test): Support
  672. tcl procedures for xfail args.
  673. 2019-05-29 Nick Clifton <nickc@redhat.com>
  674. * README-how-to-make-a-release: Add libctf to list of directories
  675. that need updates in their ChangeLogs.
  676. 2019-05-29 Nick Clifton <nickc@redhat.com>
  677. * configure.ac (LIBCTF): Export. Set to empty for non-ELF based
  678. targets.
  679. (HAVE_LIBCTF): Define if libctf support is available.
  680. * Makefile.am (LIBCTF): Set value to @LIBCTF@.
  681. * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
  682. defined.
  683. * readelf.c: Likewise.
  684. * configure: Regenerate.
  685. * Makefile.in: Regenerate.
  686. * config.in: Regenerate.
  687. 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
  688. * MAINTAINERS: Add myself as CTF maintainer.
  689. 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
  690. * objdump.c (ctf-api.h): New include.
  691. (dump_ctf_section_info): New variable.
  692. (dump_ctf_section_name): Likewise.
  693. (usage): Describe new options.
  694. (enum option_values): Add OPTION_CTF and OPTION_CTF_PARENT.
  695. (main): Use them to add --ctf and --ctf-parent.
  696. (read_section_stabs): Add new parameter, entsize_ptr.
  697. (find_stabs_section): Adjust accordingly.
  698. (make_ctfsect): New.
  699. (dump_ctf_indent_lines): New.
  700. (dump_ctf_archive_member): New.
  701. (dump_ctf): New.
  702. (dump_bfd): Call it. Free resources afterwards.
  703. * readelf.c (ctf-api.h): New include.
  704. (CTF_DUMP): New.
  705. (static bfd_boolean do_ctf): Likewise.
  706. (dump_ctf_parent_name): Likewise.
  707. (dump_ctf_symtab_name): Likewise.
  708. (dump_ctf_strtab_name): Likewise.
  709. (OPTION_CTF_DUMP): Likewise.
  710. (OPTION_CTF_PARENT): Likewise.
  711. (OPTION_CTF_SYMBOLS): Likewise.
  712. (OPTION_CTF_STRINGS): Likewise.
  713. (options): Add them.
  714. (usage): Likewise.
  715. (parse_args): Handle the new options, requesting CTF_DUMP.
  716. (process_section_contents): Handle CTF_DUMP.
  717. (shdr_to_ctf_sect): New.
  718. (dump_ctf_indent_lines): New.
  719. (dump_section_as_ctf): New.
  720. (main): Free resources.
  721. * Makefile.am (LIBCTF): New variable.
  722. (objdump_DEPENDENCIES): Use it.
  723. (readelf_DEPENDENCIES): Likewise.
  724. (objdump_LDADD): Likewise.
  725. (readelf_LDADD): Likewise.
  726. * aclocal.m4: Regenerated.
  727. * Makefile.in: Likewise.
  728. * doc/binutils.texi (objdump): Document the new options.
  729. (readelf): Likewise.
  730. * doc/ctf.options.texi: New.
  731. * doc/Makefile.in: Regenerated.
  732. * NEWS: Mention the new feature.
  733. 2019-05-27 Alan Modra <amodra@gmail.com>
  734. * readelf.c (process_section_groups): Continue processing groups
  735. when sh_entsize exceeds group size.
  736. 2019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
  737. * readelf.c (get_aarch64_dynamic_type): Handle DT_AARCH64_VARIANT_PCS.
  738. (get_aarch64_symbol_other): New, handles STO_AARCH64_VARIANT_PCS.
  739. (get_symbol_other): Call get_aarch64_symbol_other.
  740. 2019-05-24 Alan Modra <amodra@gmail.com>
  741. * objdump.c (disassemble_bytes): Set WIDE_OUTPUT in flags.
  742. 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
  743. * MAINTAINERS: Add myself as the maintainer for BPF.
  744. 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
  745. * readelf.c: Include elf/bpf.h.
  746. (guess_is_rela): Hanle EM_BPF.
  747. (dump_relocations): Likewise.
  748. (is_32bit_abs_reloc): Likewise.
  749. * testsuite/binutils-all/nm.exp: Add bpf-*-* to the list of
  750. ELF targets.
  751. 2019-05-21 Tamar Christina <tamar.christina@arm.com>
  752. * dwarf.c (dwarf_regnames_aarch64): Add SVE registers.
  753. * testsuite/binutils-all/aarch64/sve-dwarf-registers.d: New test.
  754. * testsuite/binutils-all/aarch64/sve-dwarf-registers.s: New test.
  755. 2019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com>
  756. PR 14798
  757. * testsuite/binutils-all/readelf.ss-mips: Update reference output.
  758. * testsuite/binutils-all/readelf.ss-tmips: Likewise.
  759. 2019-05-20 Nick Clifton <nickc@redhat.com>
  760. * po/ca.po: Updated Catalan translation.
  761. 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
  762. * NEWS: Mention Armv8.1-M Mainline and MVE.
  763. 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
  764. * readelf.c (arm_attr_tag_MVE_arch): New array for Tag_MVE_arch values.
  765. (arm_attr_public_tag arm_attr_public_tags): Add case for Tag_MVE_arch.
  766. 2019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
  767. PR 19921
  768. * objcopy.c: Add new option --verilog-data-width. Use it to set
  769. the value of VerilogDataWidth.
  770. * doc/binutils.texi: Document the new option.
  771. * testsuite/binutils-all/objcopy.exp: Run tests of new option.
  772. * testsuite/binutils-all/verilog-1.hex: New file.
  773. * testsuite/binutils-all/verilog-2.hex: New file.
  774. * testsuite/binutils-all/verilog-4.hex: New file.
  775. * testsuite/binutils-all/verilog-8.hex: New file.
  776. * NEWS: Mention the new feature.
  777. 2019-05-10 Alan Modra <amodra@gmail.com>
  778. * testsuite/binutils-all/objdump.exp (test_objdump_disas_limited),
  779. (test_objdump_content_limited): Add text arg, use in place of .text.
  780. (bintest_signed.o): Call get_standard_section_names for name of
  781. text section.
  782. 2019-05-08 Faraz Shahbazker <fshahbazker@wavecomp.com>
  783. * objdump.c (sign_extend_address): New function.
  784. (dump_bfd): Sign-extend user-specified start/stop addresses
  785. for targets that need it.
  786. * testsuite/binutils-all/objdump.exp: Add tests for objdump
  787. with start and stop addresses in higher address ranges.
  788. 2019-05-01 Matthew Malcomson <matthew.malcomson@arm.com>
  789. * testsuite/binutils-all/objdump.exp: Correct executable
  790. spelling.
  791. * testsuite/binutils-all/compress.exp: Likewise.
  792. 2019-05-01 Nick Clifton <nickc@redhat.com>
  793. PR 24507
  794. * nm.c: (print_format): New variable.
  795. (value_format_32bit, value_format_64bit): Delete.
  796. (set_print_radix): Remove code to alter value_format strings.
  797. (set_output_format): Record chosen format in print_format.
  798. (get_print_format): New function - constructs a printf formatting
  799. string according to the requirements of size, radix, and output
  800. format.
  801. (print_value): Use get_print_format.
  802. * testsuite/binutils-all/nm.exp: Add tests of "nm --format=posix"
  803. and "nm -t d".
  804. 2019-04-30 Alan Modra <amodra@gmail.com>
  805. * wrstabs.c (stab_start_class_type): Add assert to work around
  806. gcc9 warning. Tidy.
  807. 2019-04-24 Nick Clifton <nickc@redhat.com>
  808. * objcopy.c (strip_main): Do not enable note merging by default if
  809. just stripping debug or dwo information.
  810. * doc/binutils.texi (strip): Update documentation.
  811. 2019-04-23 Nick Clifton <nickc@redhat.com>
  812. * README-how-to-make-a-release: Add note to update the symbolic
  813. link from "docs" to "docs-2.x" on the sourceware website.
  814. 2019-04-16 Alan Modra <amodra@gmail.com>
  815. * testsuite/binutils-all/copy-2.d: Don't run for ns32k-*-*.
  816. * testsuite/binutils-all/copy-3.d: Likewise.
  817. 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
  818. * readelf.c (arm_attr_tag_CPU_arch): Add entry for Armv8.1-M Mainline.
  819. 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
  820. * readelf.c (decode_x86_isa): Handle
  821. GNU_PROPERTY_X86_ISA_1_AVX512_BF16.
  822. * testsuite/binutils-all/i386/pr21231b.d: Updated.
  823. * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
  824. 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
  825. * testsuite/binutils-all/nm.exp: Count i386-moss as ELF.
  826. 2019-03-26 Tamar Christina <tamar.christina@arm.com>
  827. * testsuite/binutils-all/aarch64/in-order-all.d: Update.
  828. * testsuite/binutils-all/aarch64/in-order.d: Likewise.
  829. * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
  830. * testsuite/binutils-all/aarch64/out-of-order.d: Likewise.
  831. * testsuite/binutils-all/aarch64/out-of-order.s: Likewise.
  832. * testsuite/binutils-all/arm/in-order-all.d: Likewise.
  833. * testsuite/binutils-all/arm/in-order.d: Likewise.
  834. * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
  835. * testsuite/binutils-all/arm/out-of-order.d: Likewise.
  836. * testsuite/binutils-all/arm/out-of-order.s: Likewise.
  837. 2019-03-26 Nick Clifton <nickc@redhat.com>
  838. * MAINTAINERS: Take over Dave Brolley's maintainerships for FR30,
  839. FRV and MEP.
  840. 2019-03-26 Alan Modra <amodra@gmail.com>
  841. * objdump.c (dump_relocs_in_section): Warning fix.
  842. 2019-03-25 Tamar Christina <tamar.christina@arm.com>
  843. * testsuite/binutils-all/arm/in-order-all.d: New test.
  844. * testsuite/binutils-all/arm/in-order.d: New test.
  845. * testsuite/binutils-all/arm/objdump.exp: Support .d tests.
  846. * testsuite/binutils-all/arm/out-of-order-all.d: New test.
  847. * testsuite/binutils-all/arm/out-of-order.T: New test.
  848. * testsuite/binutils-all/arm/out-of-order.d: New test.
  849. * testsuite/binutils-all/arm/out-of-order.s: New test.
  850. 2019-03-25 Tamar Christina <tamar.christina@arm.com>
  851. * testsuite/binutils-all/aarch64/in-order-all.d: New test.
  852. * testsuite/binutils-all/aarch64/out-of-order-all.d: New test.
  853. * testsuite/binutils-all/aarch64/out-of-order.d:
  854. 2019-03-25 Tamar Christina <tamar.christina@arm.com>
  855. * testsuite/binutils-all/aarch64/in-order.d: New test.
  856. * testsuite/binutils-all/aarch64/out-of-order.d: Disassemble data as
  857. well.
  858. 2019-03-25 Tamar Christina <tamar.christina@arm.com>
  859. * objdump.c (disassemble_bytes): Pass stop_offset.
  860. * testsuite/binutils-all/aarch64/out-of-order.T: New test.
  861. * testsuite/binutils-all/aarch64/out-of-order.d: New test.
  862. * testsuite/binutils-all/aarch64/out-of-order.s: New test.
  863. 2019-03-19 Nick Clifton <nickc@redhat.com>
  864. PR 24360
  865. * objdump.c (load_specific_debug_section): Check that the amount
  866. of memory to be allocated matches the size of the section.
  867. 2019-03-13 Sudakshina Das <sudi.das@arm.com>
  868. * readelf.c (get_aarch64_dynamic_type): Add case for
  869. DT_AARCH64_PAC_PLT.
  870. (dynamic_section_aarch64_val): Likewise.
  871. 2019-03-13 Sudakshina Das <sudi.das@arm.com>
  872. Szabolcs Nagy <szabolcs.nagy@arm.com>
  873. * readelf.c (get_aarch64_dynamic_type): New.
  874. (get_dynamic_type): Use above for EM_AARCH64.
  875. (dynamic_section_aarch64_val): New.
  876. (process_dynamic_section): Use above for EM_AARCH64.
  877. 2019-03-13 Sudakshina Das <sudi.das@arm.com>
  878. * readelf.c (decode_aarch64_feature_1_and): New.
  879. (print_gnu_property_note): Add case for AArch64 gnu notes.
  880. 2019-03-12 Alan Modra <amodra@gmail.com>
  881. * objdump.c (load_specific_debug_section): Don't compare section
  882. size against file size.
  883. (dump_relocs_in_section): Don't compare reloc size against file size.
  884. Print "failed to read relocs" on bfd_get_reloc_upper_bound error.
  885. 2019-03-05 Nick Clifton <nickc@redhat.com>
  886. PR 24295
  887. * doc/binutils.texi (ar cmdline): Fix spelling mistake.
  888. 2019-03-05 Nick Clifton <nickc@redhat.com>
  889. * po/sv.po: Updated Swedish translation.
  890. 2019-03-05 Matthew Malcomson <matthew.malcomson@arm.com>
  891. PR 24287
  892. * testsuite/lib/binutils-common.exp (run_dump_test): Replace a use
  893. of "lmap" with a "foreach" loop.
  894. 2019-03-04 Nick Clifton <nickc@redhat.com>
  895. PR 24281
  896. * objcopy.c (copy_archive): Do not copy thin archives.
  897. 2019-02-27 Matthew Malcomson <matthew.malcomson@arm.com>
  898. * testsuite/lib/binutils-common.exp: Allow multiple "as" lines.
  899. 2019-02-25 Nick Clifton <nickc@redhat.com>
  900. * objdump.c (sym_ok): New function.
  901. (find_symbol_for_address): Use new function.
  902. (disassemble_section): Compare sections by name, not pointer.
  903. (dump_dwarf): Move code to initialise byte_get pointer and iterate
  904. over separate debug files from here to ...
  905. (dump_bfd): ... here. Add parameter indicating that a separate
  906. debug info file is being dumped. For main file, pull in the
  907. symbol tables from all separate debug info files.
  908. (display_object): Update call to dump_bfd.
  909. * doc/binutils.texi: Document extened behaviour of the
  910. --dwarf=follow-links option.
  911. * NEWS: Mention this new feature.
  912. * testsuite/binutils-all/objdump.WK2: Update expected output.
  913. * testsuite/binutils-all/objdump.exp (test_follow_debuglink): Add
  914. options and dump file parameters.
  915. Add extra test.
  916. * testsuite/binutils-all/objdump.WK3: New file.
  917. * testsuite/binutils-all/readelf.exp: Change expected output for
  918. readelf -wKis test.
  919. * testsuite/binutils-all/readelf.wKis: New file.
  920. 2019-02-22 Nick Clifton <nickc@redhat.com>
  921. PR 23843
  922. * dwarf.h (struct separate_info): New structure for containing
  923. information on separate debug info files.
  924. * dwarf.c (struct dwo_info): New structure for containing dwo
  925. links.
  926. (first_dwo_info): Chain of dwo_info structures.
  927. (first_separate_file): Chain of separate_info structures.
  928. (separate_debug_file, separate_debug_filename): Delete.
  929. (fetch_alt_indirect_string): Scan all separate debug info files
  930. for the requested string.
  931. (add_dwo_info): New function.
  932. (add_dwo_name): New function.
  933. (add_dwo_dir): New function.
  934. (add_dwo_id: New function.
  935. (free_dwo_info): New function.
  936. (read_and_display_attr_value): Store DWO data using the new
  937. functions.
  938. (load_debug_section_with_follow): If necessary, scan the list of
  939. separate debug info files for the requested section.
  940. (add_separate_debug_file): New function.
  941. (load_separate_debug_info): Call add_separate_debug_file to store
  942. the information on the newly loaded file.
  943. (load_dwo_file): Likewise.
  944. (load_separate_debif_file): Rename to load_separate_debug_files.
  945. Change return type to boolean. If following links then attempt to
  946. load all separate debug info files, not just the first one.
  947. (free_debug_memory): Release memory in dwo_info and separate_info
  948. chains.
  949. * objdump.c (dump_dwarf): Iterate over all loaded debg info files.
  950. * readelf.c (process_object): Likewise.
  951. * doc/debug.options.texi: Update descriptions of links and
  952. follow-links options.
  953. * testsuite/binutils-all/objdump.WK2: Update expected output.
  954. * testsuite/binutils-all/readelf.k2: Likewise.
  955. * NEWS: Announce the new feature.
  956. 2019-02-21 Nick Clifton <nickc@redhat.com>
  957. PR 24247
  958. * unwind-ia64.c: Include sysdep.h.
  959. (unw_decode_x1): Check current pointer against end pointer before
  960. accessing memory.
  961. (unw_decode_x2): Likewise.
  962. (unw_decode_x3): Likewise.
  963. (unw_decode_x4): Likewise.
  964. (unw_decode_r2): Likewise.
  965. (unw_decode_p2_p5): Likewise.
  966. (unw_decode_p7_p10): Likewise.
  967. (unw_decode): Likewise.
  968. 2019-02-20 Nick Clifton <nickc@redhat.com>
  969. PR 24246
  970. * readelf.c (print_stapsdt_note): Harden against corrupt notes.
  971. PR 24244
  972. * unwind-ia64.c (unw_decode_uleb128): Add end parameter, use it to
  973. prevent walking off the end of the buffer.
  974. (unw_decode_x1): Add end paramter, pass it to unw_decode_uleb128.
  975. (unw_decode_x2): Likewise.
  976. (unw_decode_x3): Likewise.
  977. (unw_decode_x4): Likewise.
  978. (unw_decode_r2): Pass the end parameter to unw_decode_uleb128.
  979. (unw_decode_r3): Likewise.
  980. (unw_decode_p7_p10): Likewise.
  981. (unw_decode_b2): Likewise.
  982. (unw_decode_b3_x4): Likewise.
  983. PR 24243
  984. * readelf.c (process_mips_specific): Check for an options section
  985. that is too small to even contain a single option.
  986. PR 24242
  987. * readelf.c (print_ia64_vms_note): Harden against corrupt notes.
  988. 2019-02-20 Alan Modra <amodra@gmail.com>
  989. PR 24132
  990. PR 24138
  991. * readelf.c (get_data): Avoid possibility of overflow when
  992. checking for a read that may extend past end of file.
  993. (process_program_headers): Likewise.
  994. 2019-02-20 Alan Modra <amodra@gmail.com>
  995. PR 24233
  996. * objdump.c (dump_bfd_private_header): Print warning if
  997. bfd_print_private_bfd_data returns false.
  998. 2019-02-12 Nick Clifton <nickc@redhat.com>
  999. PR 23440
  1000. * README-how-to-make-a-release: Use git clean to delete spurious
  1001. files from the local source repository.
  1002. 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
  1003. * size.c (berkeley_format): Delete.
  1004. (enum output_format): New enum.
  1005. (selected_output_format): New variable.
  1006. (usage): Update to mention GNU format.
  1007. (main): Update to extract options, and select format as needed.
  1008. Handle GNU format where needed.
  1009. (berkeley_sum): Renamed to...
  1010. (berkeley_or_gnu_sum): ...this, and updated to handle both formats.
  1011. (berkeley_format): Renamed to...
  1012. (berkeley_or_gnu_format): ...this, and updated to handle both
  1013. formats.
  1014. (print_sizes): Handle GNU format.
  1015. * doc/binutils.texi (size): Document new GNU format.
  1016. * testsuite/binutils-all/size.exp: Add test of extended
  1017. functionality.
  1018. * NEWS: Mention new functionality.
  1019. 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
  1020. * doc/binutils.texi (size): Update example output for Berkeley
  1021. format output.
  1022. 2019-02-07 Nick Clifton <nickc@redhat.com>
  1023. * README-how-to-make-a-release: Add a note about updating the
  1024. obsolete targets in the bfd/config.bfd file.
  1025. 2019-02-04 Nick Clifton <nickc@redhat.com>
  1026. * README-how-to-make-a-release: Add more notes on making a release.
  1027. 2019-01-25 Nick Clifton <nickc@redhat.com>
  1028. PR 24131
  1029. * readelf.c (process_notes_at): Prevent an illegal memory access
  1030. when the note's namesize is zero.
  1031. (decode_tic6x_unwind_bytecode): Add code to handle the case where
  1032. no registers are specified in a frame pop instruction.
  1033. 2019-01-25 Nick Clifton <nickc@redhat.com>
  1034. * po/bg.po: Updated Bulgarian translation.
  1035. 2019-01-23 Nick Clifton <nickc@redhat.com>
  1036. * po/fr.po: Updated French translation.
  1037. * po/pt.po: Updated Portuguese translation.
  1038. 2019-01-21 Nick Clifton <nickc@redhat.com>
  1039. * po/uk.po: Updated Ukranian translation.
  1040. 2019-01-19 Nick Clifton <nickc@redhat.com>
  1041. * configure: Regenerate.
  1042. * binutils/po/binutils.pot.
  1043. * README-how-to-make-a-release: Update description on how to make
  1044. a branch.
  1045. 2018-06-24 Nick Clifton <nickc@redhat.com>
  1046. 2.32 branch created.
  1047. 2019-01-17 Nick Clifton <nickc@redhat.com>
  1048. * objdump.c (disassemble_section): When disassembling from a
  1049. symbol only stop at the next symbol if the original symbol was not
  1050. a function symbol. Otherwise continue disassembling until a new
  1051. function is reached.
  1052. * testsuite/binutils-all/objdump.exp: Add tests of extended
  1053. functionality.
  1054. * testsuite/binutils-all/disasm.s: New test source file.
  1055. 2019-01-16 Kito Cheng <kito@andestech.com>
  1056. Nelson Chu <nelson@andestech.com>
  1057. * readelf.c (get_riscv_section_type_name): New function.
  1058. (get_section_type_name): Add handler for RISC-V.
  1059. (riscv_attr_tag_t): Declare.
  1060. (riscv_attr_tag): New.
  1061. (display_riscv_attribute): New function.
  1062. (process_attributes): Add handler for RISC-V.
  1063. * testsuite/binutils-all/strip-3.d: Remove .riscv.attribute
  1064. section.
  1065. 2019-01-10 Nick Clifton <nickc@redhat.com>
  1066. PR 23963
  1067. * objdump.c (sanitize_string): New function. Removes control
  1068. characters from symbol names.
  1069. (dump_section_header): Use new function.
  1070. (objdump_print_symname): Likewise.
  1071. (objdump_print_addr_with_sym): Likewise.
  1072. (show_line): Likewise.
  1073. (disassemble_bytes): Likewise.
  1074. (disassemble_section): Likewise.
  1075. (load_specific_debug_section): Likewise.
  1076. (read_section_stabs): Likewise.
  1077. (print_section_stabs): Likewise.
  1078. (dump_section): Likewise.
  1079. (dump_reloc_set): Likewise.
  1080. (dump_relocs_in_section): Likewise.
  1081. (dump_bfd): Likewise.
  1082. (display_any_bfd): Likewise.
  1083. 2019-01-09 Nick Clifton <nickc@redhat.com>
  1084. PR 24049
  1085. * readelf.c (process_archive): Use arch.file_name in error
  1086. messages until the qualified name is available.
  1087. 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
  1088. * configure: Regenerate.
  1089. 2019-01-09 Alan Modra <amodra@gmail.com>
  1090. * testsuite/binutils-all/cxxfilt.exp: Pass --no-strip-underscores
  1091. unconditionally to tests needing the option rather than via a
  1092. list of targets.
  1093. 2019-01-08 Nick Clifton <nickc@redhat.com>
  1094. PR 24044
  1095. * cxxfilt.c (hp_symbol_characters): Delete.
  1096. (main): Remove depcreated demangling styles.
  1097. * stabs.c (parse_stab_argtypes): Remove support for old gnu v2
  1098. demangling opnames.
  1099. * testsuite/binutils-all/cxxfilt.exp: Use the
  1100. --no-strip-underscore option for targets that do prefix their
  1101. symbols with underscores.
  1102. Update tests to eliminate those that use gnu v2 encoding.
  1103. 2019-01-08 Tamar Christina <tamar.christina@arm.com>
  1104. PR 24065
  1105. * testsuite/binutils-all/copy-6.d: New test.
  1106. * testsuite/binutils-all/objcopy.exp: Use it.
  1107. 2019-01-08 Alan Modra <amodra@gmail.com>
  1108. * testsuite/lib/binutils-common.exp (run_dump_test): Don't prepend
  1109. $srcdir/$subdir to source file name if it starts with "./".
  1110. 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
  1111. * readelf.c (get_machine_flags): Add RXv3 output.
  1112. 2019-01-04 Nick Clifton <nickc@redhat.com>
  1113. PR 24005
  1114. * objdump.c (load_specific_debug_section): Check for integer
  1115. overflow before attempting to allocate contents.
  1116. 2019-01-04 Nick Clifton <nickc@redhat.com>
  1117. PR 24001
  1118. * objcopy.c (copy_object): Free dhandle after writing out the
  1119. debug information.
  1120. * objdump.c (dump_bfd): Free dhandle after printing out the debug
  1121. information.
  1122. 2019-01-01 Alan Modra <amodra@gmail.com>
  1123. Update year range in copyright notice of all files.
  1124. For older changes see ChangeLog-2018
  1125. Copyright (C) 2019 Free Software Foundation, Inc.
  1126. Copying and distribution of this file, with or without modification,
  1127. are permitted in any medium without royalty provided the copyright
  1128. notice and this notice are preserved.
  1129. Local Variables:
  1130. mode: change-log
  1131. left-margin: 8
  1132. fill-column: 74
  1133. version-control: never
  1134. End: