ChangeLog 55 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732
  1. 2022-04-06 Nick Clifton <nickc@redhat.com>
  2. PR 28981
  3. * dwarf.c (fetch_indexed_value): Rename to fecth_indexed_addr and
  4. return the address, rather than a string.
  5. (fetch_indexed_value): New function - returns a value indexed by a
  6. DW_FORM_loclistx or DW_FORM_rnglistx form.
  7. (read_and_display_attr_value): Add support for DW_FORM_loclistx
  8. and DW_FORM_rnglistx.
  9. (process_debug_info): Load the loclists and rnglists sections.
  10. (display_loclists_list): Add support for DW_LLE_base_addressx,
  11. DW_LLE_startx_endx, DW_LLE_startx_length and
  12. DW_LLE_default_location.
  13. (display_offset_entry_loclists): New function. Displays a
  14. .debug_loclists section that contains offset entry tables.
  15. (display_debug_loc): Call the new function.
  16. (display_debug_rnglists_list): Add support for
  17. DW_RLE_base_addressx, DW_RLE_startx_endx and DW_RLE_startx_length.
  18. (display_debug_ranges): Display the contents of the section's
  19. header.
  20. * dwarf.h (struct debug_info): Add loclists_base field.
  21. * testsuite/binutils-all/dw5.W: Update expected output.
  22. * testsuite/binutils-all/x86-64/pr26808.dump: Likewise.
  23. 2022-04-01 John Baldwin <jhb@FreeBSD.org>
  24. * readelf.c (get_freebsd_elfcore_note_type): Handle
  25. NT_FREEBSD_X86_SEGBASES.
  26. 2022-03-31 Nick Clifton <nickc@redhat.com>
  27. * arlex.l: Accept the plus character as part of a filename.
  28. 2022-03-16 Fangrui Song <maskray@google.com>
  29. PR binutils/28926
  30. * objcopy.c (filter_symbols): Apply weaken to STB_GNU_UNIQUE symbols
  31. * NEWS: Mention feature.
  32. * testsuite/binutils-all/objcopy.exp (objcopy_test_symbol_manipulation): New test.
  33. * testsuite/binutils-all/weaken-gnu-unique.s: New.
  34. 2022-03-16 Martin Storsjö <martin@martin.st>
  35. PR 28885
  36. * dlltool.c (main): use imp_name rather than dll_name when
  37. generating a temporary file name.
  38. 2022-03-16 Simon Marchi <simon.marchi@efficios.com>
  39. * readelf.c (dump_relocations): Handle EM_AMDGPU.
  40. 2022-03-16 Simon Marchi <simon.marchi@efficios.com>
  41. * Makefile.am (readelf_CFLAGS): New.
  42. (readelf_LDADD): Add MSGPACK_LIBS.
  43. * Makefile.in: Re-generate.
  44. * config.in: Re-generate.
  45. * configure: Re-generate.
  46. * configure.ac: Add --with-msgpack flag and check for msgpack
  47. using pkg-config.
  48. * readelf.c: Include msgpack.h if HAVE_MSGPACK.
  49. (print_note_contents_hex): New.
  50. (print_indents): New.
  51. (dump_msgpack_obj): New.
  52. (dump_msgpack): New.
  53. (print_amdgpu_note): New.
  54. (process_note): Handle NT_AMDGPU_METADATA note contents.
  55. Use print_note_contents_hex.
  56. 2022-03-16 Simon Marchi <simon.marchi@efficios.com>
  57. * readelf.c (get_amdgpu_elf_note_type): New.
  58. (process_note): Handle "AMDGPU" notes.
  59. 2022-03-16 Simon Marchi <simon.marchi@efficios.com>
  60. * readelf.c: Include elf/amdgcn.h.
  61. (decode_AMDGPU_machine_flags): New.
  62. (get_machine_flags): Handle flags for EM_AMDGPU machine type.
  63. 2022-03-16 Simon Marchi <simon.marchi@efficios.com>
  64. * readelf.c (get_osabi_name): Handle EM_AMDGPU OS ABIs.
  65. 2022-03-16 Nick Clifton <nickc@redhat.com>
  66. * po/sr.po: Updated Serbian translation.
  67. 2022-03-15 Tom Tromey <tromey@adacore.com>
  68. * dwarf-mode.el: Now 1.7.
  69. (dwarf--sentinel): Switch to the process buffer.
  70. 2022-03-11 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
  71. * MAINTAINERS: Add gprofng maintainer.
  72. * README-how-to-make-a-release: Add gprofng.
  73. 2022-03-10 Nick Clifton <nickc@redhat.com>
  74. * dwarf.c (use_debuginfod): New variable. Set to 1.
  75. (load_separate_debug_info): Only call
  76. debuginfod_fetch_separate_debug_info is use_debuginfod is true.
  77. (dwarf_select_sections_by_names): Add do-not-use-debuginfod and
  78. use-debuginfod options.
  79. (dwarf_select_sections_by_letters): Add D and E options.
  80. * dwarf.h (use_debuginfod): New extern.
  81. * objdump.c (usage): Mention the new options.
  82. * readelf.c (usage): Likewise.
  83. * doc/binutils.texi: Document the new options.
  84. * doc/debug-options.texi: Describe the new options.
  85. * NEWS: Mention the new feature.
  86. * testsuite/binutils-all/debuginfod.exp: Add tests of the new
  87. options.
  88. 2021-03-06 Maciej W. Rozycki <macro@orcam.me.uk>
  89. * testsuite/binutils-all/mips/mips1-branch-alias.d: New test.
  90. * testsuite/binutils-all/mips/mips1-branch-noalias.d: New test.
  91. * testsuite/binutils-all/mips/mips2-branch-alias.d: New test.
  92. * testsuite/binutils-all/mips/mips2-branch-noalias.d: New test.
  93. * testsuite/binutils-all/mips/mips32r6-branch-alias.d: New test.
  94. * testsuite/binutils-all/mips/mips32r6-branch-noalias.d: New
  95. test.
  96. * testsuite/binutils-all/mips/micromips-branch-alias.d: New
  97. test.
  98. * testsuite/binutils-all/mips/micromips-branch-noalias.d: New
  99. test.
  100. * testsuite/binutils-all/mips/mips-branch-alias.s: New test
  101. source.
  102. * testsuite/binutils-all/mips/micromips-branch-alias.s: New test
  103. source.
  104. * testsuite/binutils-all/mips/mips.exp: Run the new tests.
  105. 2022-03-04 Simon Marchi <simon.marchi@polymtl.ca>
  106. * readelf.c (process_dynamic_section): Fix indentation.
  107. 2022-02-09 Nick Clifton <nickc@redhat.com>
  108. * README-how-to-make-a-release: Update after the 2.38 release.
  109. 2022-01-27 Nick Clifton <nickc@redhat.com>
  110. * po/sv.po: Updated Swedish translation.
  111. 2022-01-24 Nick Clifton <nickc@redhat.com>
  112. * po/bg.po: Updated Bulgarian translation.
  113. * po/fr.po: Updated French translation.
  114. * po/ro.po: Updated Romanian translation.
  115. * po/uk.po: Updated Ukranian translation.
  116. 2022-01-22 Martin Storsjö <martin@martin.st>
  117. * dlltool.c (main): Allow inferring tmp_prefix from the dll name
  118. from a def file.
  119. 2022-01-22 Nick Clifton <nickc@redhat.com>
  120. * configure: Regenerate.
  121. * po/binutils.pot: Regenerate.
  122. 2022-01-22 Nick Clifton <nickc@redhat.com>
  123. * 2.38 release branch created.
  124. 2022-01-17 Nick Clifton <nickc@redhat.com>
  125. * Makefile.in: Regenerate.
  126. 2022-01-11 Fangrui Song <maskray@google.com>
  127. PR binutils/28759
  128. * ar.c (long_options): Add --thin.
  129. (usage) Add --thin. Deprecate -T without diagnostics.
  130. * doc/binutils.texi: Add doc.
  131. * NEWS: Mention --thin.
  132. * binutils/testsuite/binutils-all/ar.exp: Add tests.
  133. 2022-01-11 Martin Storsjö <martin@martin.st>
  134. * dlltool.c (main): If a prefix has not been provided, attempt to
  135. use a deterministic one based upon the dll name.
  136. 2022-01-07 Pavel Mayorov <pmayorov@cloudlinux.com>
  137. PR 28718
  138. * dwarf.c: Revert previous delta.
  139. (debug_get_real_type): Reject indirect types that point to
  140. indirect types.
  141. (debug_get_type_name, debug_get_type_size, debug_write_type):
  142. Likewise.
  143. 2022-01-06 Nick Clifton <nickc@redhat.com>
  144. * debug.c (debug_write_type): Allow for malicious recursion via
  145. indirect debug types.
  146. 2022-01-04 Nick Clifton <nickc@redhat.com>
  147. PR 28716
  148. * dwarf.c (load_build_id_debug_file): Remove spurious printf.
  149. 2021-12-16 Nick Clifton <nickc@redhat.com>
  150. PR 28697
  151. * dwarf.c (load_build_id_debug_file): New function.
  152. (try_build_id_prefix): New function.
  153. (check_for_and_load_links): Call load_build_id_debug_file.
  154. (debug_displays): Add entry for .note.gnu.build-id.
  155. * dwarf.h (enum dwarf_section_display_enum): Add
  156. note_gnu_build_id.
  157. * testsuite/binutils-all/debuginfod.exp (test_fetch_debuglink):
  158. Fix regexp for loads via debuglink section.
  159. 2021-12-03 Chenghua Xu <xuchenghua@loongson.cn>
  160. * MAINTAINERS: Add myself and Zhensong Liu
  161. as the LoongArch maintainer.
  162. 2021-12-02 Nick Clifton <nickc@redhat.com>
  163. PR 28645
  164. * dwarf.c (process_cu_tu_index): Add test for overruning section
  165. whilst processing slots.
  166. 2021-11-30 Roland McGrath <mcgrathr@google.com>
  167. * doc/local.mk: Give each man page target its missing dependency on
  168. doc/$(am__dirstamp).
  169. 2021-11-30 Nick Clifton <nickc@redhat.com>
  170. * dwarf.c (find_debug_info_for_offset): Use dwarf_vma type for
  171. offsets, sizes and ranges.
  172. (display_loc_list): Likewise. Also use print_dwarf_vma to print
  173. the offset.
  174. (display_loclists_list): Likewise.
  175. (display_loc_list_dwo): Likewise.
  176. (display_debug_str): Likewise.
  177. (display_debug_aranges): Likewise.
  178. (display_debug_ranges_list): Likewise.
  179. (display_debug_rnglists_list): Likewise.
  180. (display_debug_ranges): Likewise.
  181. 2021-11-29 Nick Clifton <nickc@redhat.com>
  182. PR 28632
  183. * strings.c (usage): Update desciption of -n option.
  184. * doc/binutils.texi: Likewise.
  185. 2021-11-24 Nick Clifton <nickc@redhat.com>
  186. PR 28564
  187. * sysdump.c (getCHARS): Check for an out of bounds read.
  188. 2021-11-16 Fangrui Song <maskray@google.com>
  189. * readelf.c (enum relocation_type): New.
  190. (slurp_relr_relocs): New.
  191. (dump_relocations): Change is_rela to rel_type.
  192. Dump RELR.
  193. (dynamic_relocations): Add DT_RELR.
  194. (process_relocs): Check SHT_RELR and DT_RELR.
  195. (process_dynamic_section): Store into dynamic_info for
  196. DT_RELR/DT_RELRENT/DT_RELRSZ.
  197. 2021-11-09 Nick Clifton <nickc@redhat.com>
  198. * nm.c: Add --unicode option to control how unicode characters are
  199. handled.
  200. * objdump.c: Likewise.
  201. * readelf.c: Likewise.
  202. * strings.c: Likewise.
  203. * binutils.texi: Document the new feature.
  204. * NEWS: Document the new feature.
  205. * testsuite/binutils-all/unicode.exp: New file.
  206. * testsuite/binutils-all/nm.hex.unicode
  207. * testsuite/binutils-all/strings.escape.unicode
  208. * testsuite/binutils-all/objdump.highlight.unicode
  209. * testsuite/binutils-all/readelf.invalid.unicode
  210. 2021-11-03 Tom Tromey <tromey@adacore.com>
  211. * dwarf.c (display_debug_loc): Use section name in warnings.
  212. 2021-10-25 Nick Alcock <nick.alcock@oracle.com>
  213. * objdump.c (usage): --ctf now has an optional argument.
  214. (main): Adjust accordingly.
  215. (dump_ctf): Default it.
  216. * doc/ctf.options.texi: Adjust.
  217. 2021-10-25 Nick Alcock <nick.alcock@oracle.com>
  218. * objdump.c (usage): --ctf-parent now takes a name, not a section.
  219. (dump_ctf): Don't open a separate section; use the parent_name in
  220. ctf_dict_open instead. Use ctf_archive_next, not ctf_archive_iter,
  221. so we can pass down a member count.
  222. (dump_ctf_archive_member): Add the member count; don't return
  223. anything. Import parents into children no matter what the
  224. parent's name, while still avoiding displaying the header for the
  225. common parent name of ".ctf".
  226. * readelf.c (usage): Adjust similarly.
  227. (dump_section_as_ctf): Likewise.
  228. (dump_ctf_archive_member): Likewise. Never stop iterating over
  229. archive members, even if ctf_dump of one member fails.
  230. * doc/ctf.options.texi: Adjust.
  231. 2021-10-19 Nick Clifton <nickc@redhat.com>
  232. * nm.c (filter_symbols): Test for a NULL name before checking to
  233. see if the symbol is __gnu_lto_slim.
  234. * objcopy.c (filter_symbols): Likewise.
  235. 2021-09-30 Nick Clifton <nickc@redhat.com>
  236. * objcopy.c (filter_symbols): Fail if attempting to dredefine
  237. symbols in an LTO object file.
  238. 2021-09-27 Nick Alcock <nick.alcock@oracle.com>
  239. * configure: Regenerate.
  240. 2021-09-20 Andrew Burgess <andrew.burgess@embecosm.com>
  241. * testsuite/binutils-all/riscv/riscv.exp: New file.
  242. * testsuite/binutils-all/riscv/unknown.d: New file.
  243. * testsuite/binutils-all/riscv/unknown.s: New file.
  244. 2021-09-07 Luis Machado <luis.machado@linaro.org>
  245. Revert: [AArch64] MTE corefile support
  246. 2021-05-21 Luis Machado <luis.machado@linaro.org>
  247. * readelf.c (get_note_type): Handle NT_MEMTAG note types.
  248. 2021-08-11 Nick Clifton <nickc@redhat.com>
  249. * po/pt.po: Updated Portuguese translation.
  250. 2021-08-10 Nick Clifton <nickc@redhat.com>
  251. * po/sr.po: Updated Serbian translation.
  252. 2021-07-16 Nick Clifton <nickc@redhat.com>
  253. * po/sv.po: Updated Swedish translation.
  254. 2021-07-14 Clément Chigot <clement.chigot@atos.net>
  255. * dwarf.h (struct dwarf_section): Add XCOFF name.
  256. * dwarf.c (struct dwarf_section_display): Update.
  257. * objdump.c (load_debug_section): Add XCOFF name handler.
  258. (dump_dwarf_section): Likewise.
  259. 2021-07-12 Nick Clifton <nickc@redhat.com>
  260. * po/fr.po: Updated French translation.
  261. 2021-07-10 Alan Modra <amodra@gmail.com>
  262. PR 28069
  263. * dwarf.c (display_discr_list): Remove assertions. Delete "end"
  264. parameter, use initial "data" pointer as the end. Formatting.
  265. Don't count down bytes as they are read.
  266. (read_and_display_attr_value): Adjust display_discr_list call.
  267. (read_and_print_leb128): Don't pass __FILE__ and __LINE__ to
  268. report_leb_status.
  269. * dwarf.h (report_leb_status): Don't report file and line
  270. numbers. Delete file and lnum parameters,
  271. (READ_ULEB, READ_SLEB): Adjust.
  272. 2021-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  273. * configure.ac: Check for strnlen declaration.
  274. * configure, config.in: Regenerate.
  275. 2021-07-05 Alan Modra <amodra@gmail.com>
  276. PR 28047
  277. * dwarf.c (get_type_abbrev_from_form): Add cu_end parameter.
  278. Check DW_FORM_ref1 etc. arg against cu_end rather than end of
  279. section. Adjust all callers.
  280. 2021-07-03 Nick Clifton <nickc@redhat.com>
  281. * configure: Regenerate.
  282. * po/opcodes.pot: Regenerate.
  283. * README-how-to-make-a-release: Update.
  284. 2021-07-03 Nick Clifton <nickc@redhat.com>
  285. * 2.37 release branch created.
  286. 2021-07-02 Alan Modra <amodra@gmail.com>
  287. PR 28048
  288. * dwarf.c (get_type_signedness): Don't run off end of buffer
  289. printing DW_FORM_string attribute.
  290. 2021-07-01 Nick Clifton <nickc@redhat.com>
  291. PR 28029
  292. * testsuite/binutils-all/debuginfod.exp: Replace -wK with -wk.
  293. 2021-07-01 Andrei Homescu <ah@immunant.com>
  294. * readelf.c (process_archive): Reset file position to the
  295. beginning when calling process_object for thin archive members.
  296. * testsuite/binutils-all/readelf.exp: Add test.
  297. * testsuite/binutils-all/readelf.h.thin: New file.
  298. 2021-06-30 Tom Tromey <tom@tromey.com>
  299. * dwarf.c (read_and_display_attr_value): Handle
  300. DW_FORM_implicit_const.
  301. 2021-06-30 Richard Henderson <richard.henderson@linaro.org>
  302. * dwarf.c (display_debug_frames): Both DW_CFA_def_cfa_sf
  303. and DW_CFA_def_cfa_offset_sf have a signed offset.
  304. 2021-06-19 Alan Modra <amodra@gmail.com>
  305. * dwarf.c (display_debug_lines_decoded): Use memcpy rather than
  306. strncpy when trimming file name length to MAX_FILENAME_LENGTH.
  307. Don't make an unnecessary copy when length is good.
  308. 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
  309. * readelf.c (print_gnu_property_note): Handle
  310. GNU_PROPERTY_UINT32_AND_LO, GNU_PROPERTY_UINT32_AND_HI,
  311. GNU_PROPERTY_UINT32_OR_LO and GNU_PROPERTY_UINT32_OR_HI.
  312. 2021-06-15 Nick Clifton <nickc@redhat.com>
  313. * readelf.c (get_note_type): Add support for NT_GO_BUILDID.
  314. 2021-06-15 Alan Modra <amodra@gmail.com>
  315. * readelf.c (locate_dynamic_section, is_pie): New functions.
  316. (get_file_type): Replace e_type parameter with filedata. Call
  317. is_pie for ET_DYN. Update all callers.
  318. (process_program_headers): Use local variables dynamic_addr and
  319. dynamic_size, updating filedata on exit from function. Set
  320. dynamic_size of 1 to indicate no dynamic section or segment.
  321. Update tests of dynamic_size throughout.
  322. * testsuite/binutils-all/x86-64/pr27708.dump: Update expected output.
  323. 2021-06-14 Eric Botcazou <ebotcazou@adacore.com>
  324. * dwarf.c (struct abbrev_attr): Change type of implicit_const.
  325. (add_abbrev_attr): Likewise.
  326. (process_abbrev_set): Likewise.
  327. (display_debug_abbrev): Adjust to above change.
  328. 2021-06-12 Alan Modra <amodra@gmail.com>
  329. * readelf.c (process_file_header): Don't clear section_headers.
  330. 2021-06-12 Alan Modra <amodra@gmail.com>
  331. * readelf.c (get_section_headers): Don't test e_shoff here, leave
  332. that to get_32bit_section_headers or get_64bit_section_headers.
  333. (process_object): Throw away section header read to print file
  334. header extension.
  335. 2021-06-11 Alan Modra <amodra@gmail.com>
  336. * readelf.c (struct filedata): Move archive_file_offset and
  337. archive_file_size earlier.
  338. (free_filedata): Clear using memset.
  339. 2021-06-11 Alan Modra <amodra@gmail.com>
  340. * readelf.c (GET_ELF_SYMBOLS): Delete. Replace with..
  341. (get_elf_symbols): ..this new function throughout.
  342. (get_32bit_section_headers): Don't free section_headers.
  343. (get_64bit_section_headers): Likewise.
  344. (get_section_headers): New function, use throughout in place of
  345. 32bit and 64bit variants.
  346. (get_dynamic_section): Similarly.
  347. (process_section_headers): Don't free filedata memory here.
  348. (get_file_header): Don't get section headers here..
  349. (process_object): ..Read them here instead. Don't exit without
  350. freeing filedata memory.
  351. 2021-06-09 Nick Clifton <nickc@redhat.com>
  352. * MAINTAINERS: Remove Daniel Jacobwitz from the maintainers list.
  353. 2021-06-07 Jan Beulich <jbeulich@suse.com>
  354. * dwarf.c (display_debug_aranges): Add u suffix to constant.
  355. 2021-05-29 Alan Modra <amodra@gmail.com>
  356. * objdump (usage): Add missing \n.
  357. 2021-05-29 Alan Modra <amodra@gmail.com>
  358. * readelf.c (parse_args): Call dwarf_select_sections_all on
  359. --debug-dump without optarg.
  360. (usage): Associate -w and --debug-dump options closely.
  361. Split up help message. Remove extraneous blank lines around
  362. ctf help.
  363. * objdump.c (usage): Similarly.
  364. 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
  365. * testsuite/binutils-all/mips/mips-xpa-virt-1.d: Correct CFC0
  366. operand disassembly.
  367. * testsuite/binutils-all/mips/mips-xpa-virt-3.d: Likewise.
  368. 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
  369. * testsuite/binutils-all/mips/mips-xpa-virt-1.d: Use `mips:3000'
  370. machine for disassembly.
  371. * testsuite/binutils-all/mips/mips-xpa-virt-2.d: Likewise.
  372. * testsuite/binutils-all/mips/mips-xpa-virt-3.d: Likewise.
  373. * testsuite/binutils-all/mips/mips-xpa-virt-4.d: Likewise.
  374. 2021-05-28 H.J. Lu <hongjiu.lu@intel.com>
  375. PR ld/27905
  376. * readelf.c (decode_x86_feature_2): Revert commit 50c95a739c9.
  377. 2021-05-27 Alan Modra <amodra@gmail.com>
  378. * readelf (usage): Order -w letters to match --debug-dump= and
  379. move common '=' for --debug-dump out of brackets.
  380. 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
  381. PR ld/27905
  382. * readelf.c (decode_x86_feature_2): Support
  383. GNU_PROPERTY_X86_FEATURE_2_CODE16.
  384. 2021-05-23 Tiezhu Yang <yangtiezhu@loongson.cn>
  385. * readelf.c (get_machine_name): Change Loongson Loongarch to
  386. LoongArch.
  387. 2021-05-21 Luis Machado <luis.machado@linaro.org>
  388. * readelf.c (get_note_type): Add missing NT_ARM_* entries.
  389. 2021-05-21 Luis Machado <luis.machado@linaro.org>
  390. * readelf.c (get_note_type): Handle NT_MEMTAG note types.
  391. 2021-05-19 Eli Schwartz <eschwartz@archlinux.org>
  392. * dwarf.c (ENABLE_CHECKING): Define to 0 if not previously set.
  393. 2021-05-19 Alan Modra <amodra@gmail.com>
  394. PR 27884
  395. * dwarf.c (get_type_abbrev_from_form): Replace cu_offset_return
  396. param with map_return, and return map for DW_FORM_ref_addr.
  397. (get_type_signedness): Adjust calls to get_type_abbrev_from_form.
  398. Pass returned cu map start and end to recursive call.
  399. (read_and_display_attr_value): Similarly.
  400. 2021-05-19 Alan Modra <amodra@gmail.com>
  401. PR 27879
  402. * sysdump.c (getBARRAY): Sanity check size against max.
  403. (getINT): Avoid UB shift left.
  404. 2021-05-15 Alan Modra <amodra@gmail.com>
  405. * dwarf.c (process_cu_tu_index): Avoid pointer UB. Use _mul_overflow.
  406. Delete dead code.
  407. 2021-05-15 Alan Modra <amodra@gmail.com>
  408. * dwarf.c (display_gdb_index): Avoid pointer UB and overflow in
  409. length calculations.
  410. 2021-05-15 Alan Modra <amodra@gmail.com>
  411. * dwarf.c (display_debug_names): Complain when header length is
  412. too small. Avoid pointer UB. Sanity check augmentation string,
  413. CU table, TU table and foreign TU table sizes.
  414. 2021-05-15 Alan Modra <amodra@gmail.com>
  415. * dwarf.c (display_debug_frames): Delete initial_length_size.
  416. Avoid pointer UB. Constrain data reads to length given in header.
  417. Sanity check cie header length. Only skip up to next FDE on
  418. finding augmentation data too long.
  419. 2021-05-15 Alan Modra <amodra@gmail.com>
  420. * dwarf.c (read_cie): Add more sanity checks to ensure data
  421. pointer is not bumped past end.
  422. 2021-05-15 Alan Modra <amodra@gmail.com>
  423. * dwarf.c (display_debug_ranges): Delete initial_length_size.
  424. Correct fallback size calculated on finding a reloc. Constrain
  425. data reads to length given in header. Avoid pointer UB.
  426. 2021-05-15 Alan Modra <amodra@gmail.com>
  427. * dwarf.c (display_debug_rnglists_list): Avoid pointer UB.
  428. 2021-05-15 Alan Modra <amodra@gmail.com>
  429. * dwarf.c (display_debug_str_offsets): Constrain reads to length
  430. given in header.
  431. 2021-05-15 Alan Modra <amodra@gmail.com>
  432. * dwarf.c (display_debug_aranges): Delete initial_length_size.
  433. Use end_ranges to constrain data reads to header length. Avoid
  434. pointer UB.
  435. 2021-05-15 Alan Modra <amodra@gmail.com>
  436. * dwarf.c (display_loc_list): Avoid pointer UB. Correct check
  437. before reading uleb length. Warn on excess length.
  438. 2021-05-15 Alan Modra <amodra@gmail.com>
  439. * dwarf.c (display_debug_macro): Print strings that might not
  440. be zero terminated with %*s. Don't bump curr if unterminated.
  441. 2021-05-15 Alan Modra <amodra@gmail.com>
  442. * dwarf.c (get_line_filename_and_dirname): Delete initial_length_size.
  443. Simplify length sanity check, and check for too small lengths.
  444. Constrain data reads to header length. Avoid pointer UB.
  445. 2021-05-15 Alan Modra <amodra@gmail.com>
  446. * dwarf.c (display_debug_macinfo): Print strings that might not
  447. be zero terminated with %*s. Don't bump curr if unterminated.
  448. 2021-05-15 Alan Modra <amodra@gmail.com>
  449. * dwarf.c (display_debug_pubnames_worker): Delete initial_length_size.
  450. Simplify length check. Constrain reads to length given by header.
  451. 2021-05-15 Alan Modra <amodra@gmail.com>
  452. * dwarf.c (display_debug_lines_decoded): Don't use strnlen when
  453. we have already checked for NUL termination.
  454. 2021-05-15 Alan Modra <amodra@gmail.com>
  455. * dwarf.c (read_debug_line_header): Delete initial_length_size.
  456. Avoid pointer UB. Keep within length specified by header.
  457. Delete dead code.
  458. 2021-05-15 Alan Modra <amodra@gmail.com>
  459. * dwarf.c (process_debug_info): Always do the first CU length
  460. scan for sanity checks. Remove initial_length_size var and
  461. instead calculate end_cu. Use end_cu to limit data reads.
  462. Delete now dead code checking length.
  463. 2021-05-15 Alan Modra <amodra@gmail.com>
  464. * dwarf.c (SAFE_BYTE_GET_INTERNAL): Assert only when ENABLE_CHECKING.
  465. 2021-05-15 Alan Modra <amodra@gmail.com>
  466. * bucomm.h (_mul_overflow): Define.
  467. * dwarf.c (get_encoded_value): Avoid pointer UB.
  468. 2021-05-13 Alan Modra <amodra@gmail.com>
  469. PR 27861
  470. * dwarf.c (display_debug_str_offsets): Sanity check dwarf5
  471. header length.
  472. 2021-05-13 Alan Modra <amodra@gmail.com>
  473. PR 27860
  474. * dwarf.c (display_debug_frames): Sanity check cie_off before
  475. attempting to read cie.
  476. 2021-05-12 Alan Modra <amodra@gmail.com>
  477. * dwarf.c (process_extended_line_op): Don't bump data pointer past
  478. end when strnlen doesn't find string terminator.
  479. (decode_location_expression): Remove dead code.
  480. (skip_attr_bytes): Remove const from end param. Ensure data
  481. pointer doesn't pass end.
  482. (get_type_signedness): Remove const from end param.
  483. (read_and_display_attr_value): Ensure data pointer doesn't pass end.
  484. (display_debug_lines_raw, display_debug_lines_decoded): Likewise.
  485. (display_debug_pubnames_worker): Likewise.
  486. (display_debug_pubnames_worker): Use SAFE_BYTE_GET_AND INC rather
  487. than blindly incrementing data pointer.
  488. (display_debug_addr, display_debug_str_offsets): Likewise. Don't
  489. compare pointers, compare lengths.
  490. 2021-05-12 Alan Modra <amodra@gmail.com>
  491. * dwarf.c (SAFE_BYTE_GET_INTERNAL): Define.
  492. (SAFE_BYTE_GET, SAFE_BYTE_GET_AND_INC): Define using the above.
  493. (SAFE_SIGNED_BYTE_GET, SAFE_SIGNED_BYTE_GET_AND_INC): Likewise.
  494. (display_discr_list): Use SAFE_BYTE_GET_AND_INC rather than
  495. SAFE_BYTE_GET followed by increment.
  496. (process_debug_info): Likewise, and test bytes remaining before
  497. incrementing section_begin rather than using pointer comparison.
  498. (display_debug_names): Pass lvalue as SAFE_BYTE_GET PTR.
  499. (process_cu_tu_index): Likewise for SAFE_BYTE_GET_AND_INC.
  500. 2021-05-12 Alan Modra <amodra@gmail.com>
  501. * dwarf.c (dwarf_vmatoa64, SAFE_BYTE_GET64, add64): Delete.
  502. (skip_attr_bytes): Replace use of SAFE_BYTE_GET64 with
  503. SAFE_BYTE_GET_AND_INC.
  504. (read_and_display_attr_value): Likewise. Print using dwarf_vmatoa.
  505. (process_debug_info, process_cu_tu_index): Likewise.
  506. * elfcomm.c (byte_put, byte_put_little_endian, byte_put_big_endian),
  507. (byte_get, byte_get_little_endian, byte_get_big_endian),
  508. (byte_get_signed): Make size param unsigned. Remove code dealing
  509. with 4-byte elf_vma.
  510. (byte_get_64): Delete.
  511. * elfcomm.h (byte_put, byte_put_little_endian, byte_put_big_endian),
  512. (byte_get, byte_get_little_endian, byte_get_big_endian),
  513. (byte_get_signed): Update prototypes.
  514. (byte_get_64): Delete.
  515. 2021-05-12 Alan Modra <amodra@gmail.com>
  516. PR 27836
  517. * dwarf.c (display_debug_frames): Don't compare pointers derived
  518. from user input. Test offset against bounds instead.
  519. 2021-05-12 Alan Modra <amodra@gmail.com>
  520. PR 27853
  521. * dwarf.c (display_formatted_table): Test for data >= end rather
  522. than data == end.
  523. (process_extended_line_op): Likewise.
  524. (display_debug_lines_raw): Likewise.
  525. (display_debug_lines_decoded): Likewise.
  526. 2021-05-12 Alan Modra <amodra@gmail.com>
  527. PR 27849
  528. * dwarf.c (fetch_indexed_string): Correct length sanity checks.
  529. Sanity check section size for version and padding too. Correct
  530. index sanity check. Handle multiple tables in .debug_str_offsets.
  531. 2021-05-11 Hans-Peter Nilsson <hp@axis.com>
  532. * dwarf.c (process_abbrev_set): Properly parenthesize before
  533. casting to unsigned long.
  534. 2021-05-11 Alan Modra <amodra@gmail.com>
  535. PR 27845
  536. * dwarf.c (process_abbrev_set): Replace start and end parameters
  537. with section, abbrev_base, abbrev_size, abbrev_offset. Update
  538. all callers. Sanity check parameters correctly and emit warnings
  539. here rather than..
  540. (process_debug_info): ..here.
  541. 2021-05-10 Thomas Wolff <towo@towo.net>
  542. PR 4356
  543. PR 26865
  544. PR 27594
  545. * windres.c (quot): Revert previous delta. Do not use double
  546. quotes when spaces are detected in options.
  547. * doc/binutils.texi (windres): Remove suggestion that the
  548. --preprocessor option can take arguments.
  549. 2021-05-10 Alan Modra <amodra@gmail.com>
  550. * dwarf.c (SAFE_BYTE_GET): Check bounds by subtracting amount from
  551. END rather than adding amount to PTR.
  552. (SAFE_SIGNED_BYTE_GET, SAFE_BYTE_GET64): Likewise.
  553. 2021-05-09 Alan Modra <amodra@gmail.com>
  554. * objcopy.c (eq_string): Delete.
  555. (create_symbol_htab): Use htab_eq_string.
  556. 2021-05-08 Mike Frysinger <vapier@gentoo.org>
  557. * README-how-to-make-a-release: Update html & pdf entries.
  558. 2021-05-08 Mike Frysinger <vapier@gentoo.org>
  559. * doc/Makefile.am (html-local, binutils/index.html): New targets.
  560. * doc/Makefile.in: Regenerate.
  561. 2021-05-08 Mike Frysinger <vapier@gentoo.org>
  562. * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
  563. * doc/Makefile.in: Regenerate.
  564. 2021-05-07 Nick Clifton <nickc@redhat.com>
  565. * readelf.c (no_processor_specific_unwind): New function.
  566. (process_unwind): Use no_processor_specific_unwind for X86
  567. targets.
  568. 2021-05-07 Michael Forney <mforney@mforney.org>
  569. * dwarf.c: Don't omit second operand of '?' operator.
  570. 2021-04-30 Nick Clifton <nickc@redhat.com>
  571. PR 27796
  572. * dwarf.c (load_debug_sup_file): Allocate memory for filename in
  573. .debug_sup section.
  574. 2021-04-29 Nick Clifton <nickc@redhat.com>
  575. PR 27594
  576. * doc/binutils.texi (windres): Correct the description of the
  577. default value of the --preprocessor argument.
  578. 2021-04-27 Nick Clifton <nickc@redhat.com>
  579. PR 27779
  580. * dwarf.c (parse_gnu_debuglink): Reject empty names.
  581. (parse_gnu_debugaltlink): Likewise.
  582. 2021-04-22 Clément Chigot <clement.chigot@atos.net>
  583. * od-xcoff.c (dump_xcoff32_symbols): Adapt to new
  584. aux structures.
  585. 2021-04-21 Nick Lott <nick.lott@gmail.com>
  586. PR 27672
  587. * readelf.c (sym_base): New variable.
  588. (enum print_mode): Add more modes.
  589. (print_vma): Add suport for new modes.
  590. (options): Add sym-base.
  591. (usage): Add sym-base.
  592. (parse_args): Add support for --sym-base.
  593. (print_dynamic_symbol_size): New function.
  594. (print_dynamic_symbol): Use new function.
  595. * doc/binutils.texi: Document the new feature.
  596. * NEWS: Mention the new feature.
  597. 2021-04-21 Nick Clifton <nickc@redhat.com>
  598. * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
  599. Adjust expected output to allow for named section symbols.
  600. * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
  601. Likewise.
  602. * testsuite/binutils-all/readelf.s-64: Likewise.
  603. * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
  604. * testsuite/binutils-all/readelf.ss-tmips: Likewise.
  605. * testsuite/binutils-all/readelf.ss-unused: Likewise.
  606. 2021-04-21 Luo Longjun <luolongjun@huawei.com>
  607. * readelf.c (print_dynamic_symbol): Print the section name for
  608. section symbols without a name of their own.
  609. 2021-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
  610. * MAINTAINERS: Remove Martin Schwidefsky as s390 maintainer and
  611. add him to Past Maintainers.
  612. Update my email address.
  613. 2021-04-19 Nick Clifton <nickc@redhat.com>
  614. PR 21702
  615. * arsup.c (ar_addmod): Enable plugin support, if available.
  616. 2021-04-19 Nick Clifton <nickc@redhat.com>
  617. * rename.c: (get_stat_atime_ns): Add prototype.
  618. (get_stat_mtime_ns): Add prototype.
  619. 2021-04-16 Alan Modra <amodra@gmail.com>
  620. PR 27725
  621. * rename.c (get_stat_atime, get_stat_mtime): Make static.
  622. (get_stat_atime_ns, get_stat_mtime_ns): Likewise.
  623. 2021-04-15 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
  624. PR 27725
  625. * rename.c (get_stat_atime_ns): Add ATTRIBUTE_UNUSED.
  626. (get_stat_mtime_ns): Likewise.
  627. 2021-04-15 Alan Modra <amodra@gmail.com>
  628. PR 27725
  629. * configure.ac: Check for sys/time.h and utimensat. Use standard
  630. checks for mkstemp and mkdtemp. Whitespace. Check for nanosecond
  631. members of struct stat.
  632. * rename.c: Prefer sys/time.h for utimes over utime.h for utime.
  633. (STAT_TIMESPEC, STAT_TIMESPEC_NS): Define
  634. (get_stat_atime_ns, get_stat_mtime_ns): New inline functions.
  635. (get_stat_atime, get_stat_mtime): Likewise.
  636. (set_times): Choose first available of utimensat, utimes, utime.
  637. Use above inline functions to set timespec and timeval values.
  638. * configure: Regenerate.
  639. * config.in: Regenerate.
  640. * testsuite/binutils-all/objcopy.exp (objcopy_test): Add test of
  641. file timestamp when --preserve-dates is used.
  642. 2021-04-15 Alan Modra <amodra@gmail.com>
  643. PR 27456
  644. * rename.c (smart_rename): When TO and FROM are equal, just set
  645. file timestamp.
  646. * objcopy.c (strip_main, copy_main): Always call smart_rename.
  647. 2021-04-14 H.J. Lu <hongjiu.lu@intel.com>
  648. PR binutils/27708
  649. * testsuite/binutils-all/x86-64/pr27708.dump: New file.
  650. * testsuite/binutils-all/x86-64/pr27708.exe.bz2: Likewise.
  651. * testsuite/binutils-all/x86-64/x86-64.exp: Run binutils/27708
  652. test.
  653. 2021-04-14 Mark Harmstone <mark@harmstone.com>
  654. PR 27686
  655. * resbin.c (bin_to_res_version): Ignore any trailing bytes at the
  656. end of the structure.
  657. 2021-04-14 Frederic Cambus <fred@statdns.com>
  658. * readelf.c (get_netbsd_elfcore_note_type): Remove unneeded #ifdef
  659. checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
  660. 2021-04-14 Alan Modra <amodra@gmail.com>
  661. PR 27716
  662. * objdump.c (show_line): Don't limit paths to PATH_MAX.
  663. * readelf.c (struct filedata): Change program_interpreter from
  664. a char array to a char pointer.
  665. (process_program_headers): Sanity check PT_INTERP p_filesz.
  666. Malloc program_interpreter using p_filesz and read directly from
  667. file.
  668. (process_dynamic_section): Check program_interpreter is non-NULL.
  669. (free_filedata): New function, split out from..
  670. (process_object): ..here.
  671. (close_debug_file): Call free_filedata.
  672. * sysdep.h: Don't include sys/param.h.
  673. (PATH_MAX): Don't define.
  674. * configure.ac: Don't check for sys/param.h.
  675. * configure: Regenerate.
  676. 2021-04-13 Frederic Cambus <fred@statdns.com>
  677. * readelf.c (process_netbsd_elf_note): Remove now unneeded #ifdef
  678. check for NT_NETBSD_PAX.
  679. 2021-04-12 Alan Modra <amodra@gmail.com>
  680. * configure.ac (--enable-checking): Add support.
  681. * config.in: Regenerate.
  682. * configure: Regenerate.
  683. 2021-04-09 Alan Modra <amodra@gmail.com>
  684. * objdump.c (struct objdump_disasm_info): Delete dynrelbuf and
  685. dynrelcount.
  686. (find_symbol_for_address): Adjust for dynrelbuf and dynrelcount move.
  687. (disassemble_section, disassemble_data): Likewise.
  688. 2021-04-06 Alan Modra <amodra@gmail.com>
  689. * objdump.c (objdump_symbol_at_address): Return asymbol*.
  690. 2021-04-06 Alan Modra <amodra@gmail.com>
  691. * NEWS: Mention C99 requirement.
  692. * README: Likewise. Modernise examples and "Reporting bugs".
  693. 2021-04-05 Alan Modra <amodra@gmail.com>
  694. * configure.ac: Assume long long is available. Don't test for
  695. strings.h, stdlib.h, limits.h, locale.h, or wchar.h. Check
  696. inttypes.h, stdint.h, sys/stat.h and sys/types.h. Don't check for
  697. strcoll, setlocale, setmode or location of time_t. Don't check
  698. for fprintf, getenv, snprintf, strnlen, strstr or vsnprintf decls.
  699. (AC_ISC_POSIX, AXC_HEADER_STRING, AC_FUNC_ALLOCA): Don't invoke.
  700. * sysdep.h: Don't include alloca-conf.h, include config.h instead.
  701. Test HAVE_SYS_TYPES_H and reorder includes. Include limits.h,
  702. locale.h, string.h and stdlib.h unconditionally. Remove various
  703. fallback declarations. Assume long long is available.
  704. * addr2line.c: Don't test HAVE_SETLOCALE.
  705. * ar.c: Likewise.
  706. * coffdump.c: Likewise.
  707. * dlltool.c: Likewise.
  708. * dllwrap.c: Likewise.
  709. * elfedit.c: Likewise.
  710. * nm.c: Likewise.
  711. * objcopy.c: Likewise.
  712. * objdump.c: Likewise.
  713. * readelf.c: Likewise.
  714. * size.c: Likewise.
  715. * srconv.c: Likewise.
  716. * strings.c: Likewise.
  717. * sysdump.c: Likewise.
  718. * windmc.c: Likewise.
  719. * windres.c: Likewise.
  720. * bucomm.c: Don't test HAVE_TIME_T_IN_TIME_H or HAVE_TIME_T_IN_TYPES_H.
  721. * dwarf.c: Include limits.h unconditionally. Assume long long
  722. is available.
  723. * nm.c: Don't test HAVE_STRCOLL.
  724. * readelf.c: Don't test HAVE_WCHAR_H.
  725. * strings.c: Assume long long is available.
  726. * syslex.l: Include string.h unconditionally.
  727. * aclocal.m4: Regenerate.
  728. * config.in: Regenerate.
  729. * configure: Regenerate.
  730. * Makefile.in: Regenerate.
  731. * doc/Makefile.in: Regenerate.
  732. 2021-04-01 Martin Liska <mliska@suse.cz>
  733. * elfcomm.h (strneq): Remove strneq and use startswith.
  734. * readelf.c (ia64_process_unwind): Likewise.
  735. (process_note): Likewise.
  736. 2021-04-01 Martin Liska <mliska@suse.cz>
  737. * dllwrap.c: Use startswith function.
  738. * objcopy.c (is_dwo_section): Likewise.
  739. (handle_remove_section_option): Likewise.
  740. (copy_main): Likewise.
  741. * objdump.c (is_significant_symbol_name): Likewise.
  742. 2021-04-01 Martin Liska <mliska@suse.cz>
  743. * dwarf.c (display_debug_lines_raw): Replace const_strneq with
  744. startswith.
  745. (display_debug_lines_decoded): Likewise.
  746. (display_debug_links): Likewise.
  747. * elfcomm.c (setup_archive): Likewise.
  748. * elfcomm.h (const_strneq): Likewise.
  749. * readelf.c (process_section_headers): Likewise.
  750. (slurp_ia64_unwind_table): Likewise.
  751. (slurp_hppa_unwind_table): Likewise.
  752. (decode_arm_unwind): Likewise.
  753. (display_debug_section): Likewise.
  754. (process_note): Likewise.
  755. 2021-03-31 Alan Modra <amodra@gmail.com>
  756. * sysdep.h (POISON_BFD_BOOLEAN): Define.
  757. * addr2line.c, * ar.c, * arsup.c, * bfdtest2.c, * binemul.c,
  758. * binemul.h, * bucomm.c, * bucomm.h, * budbg.h, * coffgrok.c,
  759. * debug.c, * debug.h, * dlltool.c, * dwarf.c, * dwarf.h,
  760. * elfedit.c, * emul_aix.c, * mclex.c, * nm.c, * objcopy.c,
  761. * objdump.c, * od-macho.c, * prdbg.c, * rdcoff.c, * rddbg.c,
  762. * readelf.c, * rename.c, * stabs.c, * strings.c, * windint.h,
  763. * windmc.c, * windmc.h, * windres.c, * winduni.c,
  764. * wrstabs.c: Replace bfd_boolean with bool, FALSE with false,
  765. and TRUE with true throughout.
  766. 2021-03-31 Alan Modra <amodra@gmail.com>
  767. * coffdump.c: Include stdint.h in place of bfd_stdint.h.
  768. * dwarf.c: Likewise.
  769. 2021-03-31 Alan Modra <amodra@gmail.com>
  770. * prdbg.c (pr_function_type): Replace LITSTTCPY with strcpy.
  771. 2021-03-29 Alan Modra <amodra@gmail.com>
  772. * dlltool.c (main): Don't use "boolean_condition ? TRUE : FALSE".
  773. * dwarf.c (read_and_display_attr_value): Likewise.
  774. (display_debug_str_offsets): Likewise.
  775. * objdump.c (dump_bfd): Likewise.
  776. * readelf.c (dump_section_as_strings): Likewise.
  777. (dump_section_as_bytes): Likewise.
  778. 2021-03-29 Alan Modra <amodra@gmail.com>
  779. * objdump.c (process_links): Use type int.
  780. * readelf.c (request_dump): Don't increment do_dump, set it.
  781. * windint.h (target_is_bigendian): Use type bfd_boolean.
  782. * windmc.c (target_is_bigendian): Likewise.
  783. * windres.c (target_is_bigendian): Likewise.
  784. 2021-03-22 Martin Liska <mliska@suse.cz>
  785. * dlltool.c (scan_drectve_symbols): Replace usage of CONST_STRNEQ
  786. with startswith.
  787. * emul_aix.c (ar_emul_aix_parse_arg): Likewise.
  788. * objcopy.c (is_mergeable_note_section): Likewise.
  789. * objdump.c (dump_dwarf_section): Likewise.
  790. * prdbg.c (pr_method_type): Likewise.
  791. (pr_class_baseclass): Likewise.
  792. (tg_class_baseclass): Likewise.
  793. * readelf.c (process_lto_symbol_tables): Likewise.
  794. * stabs.c (ULLHIGH): Likewise.
  795. (parse_stab_argtypes): Likewise.
  796. (stab_demangle_function_name): Likewise.
  797. 2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
  798. * readelf.c (get_machine_name): Add EM_INTELGT.
  799. 2021-03-18 Nick Clifton <nickc@redhat.com>
  800. PR 27478
  801. * readelf.c (dump_section_as_strings): Mention separate filename.
  802. (dump_section_as_bytes): Likewise.
  803. (dump_section_as_ctf): Likewise.
  804. (initialise_dumkps_byname): Only issue a warning for missing
  805. sections if processing the main file.
  806. (process_section_contents): Only issue a warning for unsumped
  807. section numbers in the main file.
  808. (initialise_dump_sects): New function. Contains code extracted
  809. from ...
  810. (process_object): ... here. Also call initialise_dump_sects for
  811. separate files.
  812. 2021-03-16 Nick Clifton <nickc@redhat.com>
  813. PR 27534
  814. * readelf.c (display_debug_section): Also retain .debug_addr
  815. sections.
  816. 2021-03-16 Nick Clifton <nickc@redhat.com>
  817. PR 27533
  818. * readelf.c (process_section_contents): Only dump debug
  819. information for separate files unless process_links is enabled.
  820. (process_object): Always call process_section_contents for
  821. separate info files.
  822. 2021-03-15 Nick Clifton <nickc@redhat.com>
  823. PR 27487
  824. * nm.c (FORMAT_JUST_SYMBOLS): Define.
  825. (struct optput_fns): Add entry for FORMAT_JUST_SYMBOLS.
  826. (long_options): Add just-symbols.
  827. (set_output_format): Add support for just-symbols.
  828. (get_print_format): Likewise.
  829. (do_not_print_object_filename): New function.
  830. (do_not_print_archive_filename): New function.
  831. (do_not_print_archive_member): New function.
  832. (do_not_print_symbol_filename): New function.
  833. (just_print_symbol_name): New function.
  834. (main): Handle --just-symbols.
  835. * NEWS: Mention the new feature.
  836. * doc/binutils.texi: Document the new feature.
  837. 2021-03-12 Clément Chigot <clement.chigot@atos.net>
  838. * od-xcoff.c: Replace RTB by TRL entry.
  839. 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
  840. Andrew Burgess <andrew.burgess@embecosm.com>
  841. * readelf.c (get_note_type): Handle NT_RISCV_CSR.
  842. 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
  843. Andrew Burgess <andrew.burgess@embecosm.com>
  844. * readelf.c (get_note_type): Handle NT_GDB_TDESC.
  845. 2021-03-05 Nick Clifton <nickc@redhat.com>
  846. PR 27387
  847. * dwarf.c (display_debug_macro): Handle the displaying of
  848. DW_MACRO_define_strp and DW_MACRO_undef_strp in v4
  849. .debug_macro.dwo sections.
  850. 2021-03-04 Nick Clifton <nickc@redhat.com>
  851. PR 27478
  852. * objdump.c (process_links): New variable.
  853. (usage): Add --process-links.
  854. (long_options): Likewise.
  855. (dump_bfd): Stop processing once the bfd has been loaded unless
  856. this is the main file or process_links has been enabled.
  857. (main): Handle the process-links option.
  858. * readelf.c (process_links): New variable.
  859. (struct filedata): Add is_separate field.
  860. (options): Add --process-links.
  861. (usage): Likewise.
  862. (parse_args): Likewise.
  863. (process_file_header): Include the filename when dumping
  864. information for separate debuginfo files.
  865. (process_program_headers): Likewise.
  866. (process_section_headers): Likewise.
  867. (process_section_groups): Likewise.
  868. (process_relocs): Likewise.
  869. (process_dynamic_section): Likewise.
  870. (process_version_sections): Likewise.
  871. (display_lto_symtab): Likewise.
  872. (process_symbol_table): Likewise.
  873. (process_syminfo): Likewise.
  874. (initialise_dumps_by_name): Likewise.
  875. (process_section_contents): Likewise.
  876. (process_notes_at): Likewise.
  877. (process_notes): Likewise.
  878. (open_file): Add is_separate parameter. Use to initialise the
  879. is_separate field in the filedata structure.
  880. (open_deug): Update call to open_file.
  881. (process_object): Add processing of the contents of separate
  882. debuginfo files, gated by the process_links variable.
  883. (process_archive): Update call to open_file.
  884. (process_file): Initialise the is_separate field in the filedata
  885. structure.
  886. * dwarf.c (load_separate_debug_info_file): Only report the
  887. loading of a separate file if debug links are being dumped.
  888. * objcopy.c (keep_section_symbols): New variable.
  889. (enum command_line_switch): Add OPTION_KEEP_SYMBOLS.
  890. (strip_options): Add keep-section-symbols.
  891. (copy_options): Likewise.
  892. (copy_usage): Likewise.
  893. (strip_usage): Likewise.
  894. (copy_object): Keep section symbols if requested by command line
  895. option.
  896. (strip_main): Handle --keep-section-symbols.
  897. (copy_main): Likewise.
  898. * doc/binutils.texi: Document the new options.
  899. * NEWS: Mention the new features.
  900. * testsuite/binutils-all/compress.exp (test_gnu_debuglink):
  901. Update options passed to objdump. Use diff rather than cmp to
  902. compare the dumped data.
  903. * testsuite/binutils-all/objdump.WK2: Update regexp.
  904. * testsuite/binutils-all/objdump.WK3: Update regexp.
  905. * testsuite/binutils-all/objdump.exp: Use --process-links
  906. instead of --dwarf=follow-links.
  907. * testsuite/binutils-all/readelf.exp (readelf_test): Include
  908. readelf's output in the log when the test fails.
  909. Add the -P option to the -wKis test.
  910. * testsuite/binutils-all/readelf.wKis: Update expected output.
  911. 2021-03-03 Alan Modra <amodra@gmail.com>
  912. PR 27493
  913. * objcopy.c (filter_symbols): Apply --weaken to undefined symbols.
  914. * NEWS: Mention feature.
  915. 2021-03-01 H.J. Lu <hongjiu.lu@intel.com>
  916. PR binutils/27486
  917. * dwarf.c (load_separate_debug_info): Issue warning only if
  918. do_debug_links is set.
  919. * testsuite/binutils-all/compress.exp: Run objdump and readelf
  920. with missing debug file.
  921. 2021-03-01 Alan Modra <amodra@gmail.com>
  922. PR 27128
  923. * doc/binutils.texi: Add nm --with-symbol-versions and
  924. --without-symbol-versions documentation.
  925. * nm.c (with_symbol_versions): New variable.
  926. (enum long_option_values): Delete OPTION_WITH_SYMBOL_VERSIONS.
  927. (long_options): Make --with-symbol-versions entry twiddle the flag.
  928. Add --without-symbol-versions.
  929. (print_symname): Strip version when !with_symbol_versions. Add
  930. dynamic version info under control of with_symbol_versions.
  931. (main): Remove OPTION_WITH_SYMBOL_VERSIONS case.
  932. 2021-02-26 Fangrui Song <maskray@google.com>
  933. PR 27408
  934. * readelf.c (quiet): New option flag.
  935. (enum long_option_values): New enum to hold long option value.
  936. (long_options): Add --quiet.
  937. (usage): Mention --quiet.
  938. (display_rel_file): If quiet is enabled, suppress "no symbols".
  939. (main): Handle the new option.
  940. * NEWS: Mention --quiet.
  941. * docs/binutils.texi: Document --quiet.
  942. 2021-02-26 Tom de Vries <tdevries@suse.de>
  943. * dwarf.c (display_debug_addr): Handle dwarf-5 .debug_addr bits.
  944. 2021-02-26 Tom de Vries <tdevries@suse.de>
  945. PR 27390
  946. * dwarf.c: (skip_attr_bytes): Add support for DW_FORM_str* and
  947. DW_FORM_addrx*.
  948. (read_and_display_attr_value): Likewise.
  949. 2021-02-25 Nick Clifton <nickc@redhat.com>
  950. * dwarf.c (get_type_abbrev_from_form): Accept but ignore sup
  951. forms.
  952. (read_and_display_attr_value): Handle sup forms.
  953. (display_debug_sup): New function. Displays the contents of a
  954. .debug_sup section.
  955. (load_debug_sup_file): New function. Loads the contents of a file
  956. referenced by a .debug_sup section.
  957. (check_for_and_load_links): Call load_debug_sup_file.
  958. (debug_displays): Add entry for .debug_sup.
  959. * dwarf.h (enum dwarf_section_display_enum): Add debug_sup.
  960. * readelf.c (process_section_headers): Add support for debug_sup.
  961. * doc/debug.options.texi: Note that the =links option will display
  962. the contents of .debug_sup sections.
  963. * NEWS: Mention the new support.
  964. 2021-02-25 Alan Modra <amodra@gmail.com>
  965. PR 27456
  966. * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
  967. 2021-02-24 Nick Clifton <nickc@redhat.com>
  968. PR 27285
  969. * od-elf32_avr.c (elf32_avr_get_memory_usage): Check for overflows
  970. when adding together the section sizes.
  971. 2021-02-24 Nick Clifton <nickc@redhat.com>
  972. * objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU
  973. build notes.
  974. * readelf.c (print_gnu_build_attribute_description): Likewise.
  975. 2021-02-24 Alan Modra <amodra@gmail.com>
  976. Siddhesh Poyarekar <siddhesh@gotplt.org>
  977. PR 27456
  978. * bucomm.h (smart_rename): Update prototype.
  979. * rename.c (smart_rename): Add fromfd and preserve_dates params.
  980. Pass fromfd and target_stat to simple_copy. Call set_times
  981. when preserve_dates.
  982. (simple_copy): Accept fromfd rather than from filename. Add
  983. target_stat param. Rewind fromfd rather than opening. Open
  984. "to" file without O_CREAT. Try to preserve S_ISUID and S_ISGID.
  985. * ar.c (write_archive): Rename ofd to tmpfd. Dup tmpfd before
  986. closing output temp file, and pass tmpfd to smart_rename.
  987. * arsup.c (temp_fd): Rename from real_fd.
  988. (ar_save): Dup temp_fd and pass to smart_rename.
  989. * objcopy.c (strip_main, copy_main): Likewise, and pass
  990. preserve_dates.
  991. 2021-02-24 Alan Modra <amodra@gmail.com>
  992. PR 27456
  993. * rename.c: Tidy throughout.
  994. (smart_rename): Always copy. Remove windows specific code.
  995. 2021-02-20 Alan Modra <amodra@gmail.com>
  996. * testsuite/lib/binutils-common.exp: Whitespace fixes throughout.
  997. (run_dump_test): Fail if expecting errors from a file like we do
  998. for error strings, if no error is seen.
  999. 2021-02-19 Alan Modra <amodra@gmail.com>
  1000. * testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too.
  1001. 2021-02-19 Siddhesh Poyarekar <siddhesh@gotplt.org>
  1002. * ar.c (write_archive): Remove TARGET_STAT. Adjust call to
  1003. SMART_RENAME.
  1004. * arsup.c (ar_save): Likewise.
  1005. * objcopy (strip_main): Don't copy TMPFD. Don't set times on
  1006. temporary file and adjust call to SMART_RENAME.
  1007. (copy_main): Likewise.
  1008. * rename.c [!S_ISLNK]: Remove definitions.
  1009. (try_preserve_permissions): Remove function.
  1010. (smart_rename): Remove FD, PRESERVE_DATES arguments. Use
  1011. rename system call only if TO does not exist.
  1012. * bucomm.h (smart_rename): Adjust declaration.
  1013. 2021-02-18 Nick Clifton <nickc@redhat.com>
  1014. * objcopy.c (merge_gnu_build_notes): Handle notes with a start
  1015. address that is higher than the end address.
  1016. 2021-02-17 Alan Modra <amodra@gmail.com>
  1017. * dwarf.c: Include limits.h.
  1018. (CHAR_BIT): Provide backup define.
  1019. (read_leb128): Use CHAR_BIT to size "result" in bits. Correct
  1020. signed overflow checking.
  1021. * testsuite/binutils-all/pr26548.s,
  1022. * testsuite/binutils-all/pr26548.d,
  1023. * testsuite/binutils-all/pr26548e.d: New tests.
  1024. * testsuite/binutils-all/readelf.exp: Run them.
  1025. (readelf_test): Drop unused "xfails" parameter. Update all uses.
  1026. 2021-02-16 Jan Beulich <jbeulich@suse.com>
  1027. * dwarf.c (process_debug_info): Initialize "dwo_id".
  1028. 2021-02-15 Alan Modra <amodra@gmail.com>
  1029. * objdump.c (load_specific_debug_section): Don't call
  1030. bfd_cache_section_contents. Rearrange so that
  1031. bfd_get_full_section_contents is not called on path where
  1032. bfd_simple_get_relocated_section_contents is called.
  1033. Don't set section->user_data.
  1034. (free_debug_section): Always free section->start. Don't twiddle
  1035. section flags.
  1036. * readelf.c (load_specific_debug_section): Don't set user_data.
  1037. * dwarf.h (struct dwarf_section): Remove use_data field.
  1038. * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit.
  1039. 2021-02-15 Alan Modra <amodra@gmail.com>
  1040. * testsuite/binutils-all/compress.exp: Remove nds32 xfails.
  1041. * testsuite/binutils-all/objdump.exp: Likewise.
  1042. 2021-02-14 Alan Modra <amodra@gmail.com>
  1043. * objdump.c (slurp_symtab): Don't add an extra entry for NULL
  1044. to the symbol array.
  1045. (slurp_dynamic_symtab): Likewise.
  1046. (dump_bfd): Formatting. Copy terminating NULL from extra_syms.
  1047. 2021-02-14 Alan Modra <amodra@gmail.com>
  1048. * Makefile.in: Regenerate.
  1049. * doc/Makefile.in: Regenerate.
  1050. 2021-02-13 Mike Frysinger <vapier@gentoo.org>
  1051. * aclocal.m4: Regenerate.
  1052. 2021-02-12 Nick Clifton <nickc@redhat.com>
  1053. * configure.ac (follow-debug-links): Add option to enable or
  1054. disable the following of debug links by default. Set the
  1055. default for the option to be 'follow'.
  1056. * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS.
  1057. (dwarf_select_sections_by_names): Add no-follow-links option.
  1058. (dwarf_select_sections_by_letter): Add 'N' option.
  1059. * objdump.c (usage): Add conditional text describing the
  1060. follow links option.
  1061. (slurp_symtab): Ensure that there is a NULL entry at the end
  1062. of the symbol table.
  1063. (slurp_dynamic_symtab): Likewise.
  1064. (dump_bfd): When extending the symbol table, ensure that there
  1065. is still a NULL entry at the end.
  1066. * readelf.c (usage): Add conditional text describing the
  1067. follow links option.
  1068. * doc/binutils.texi: Update documentation for objcopy and
  1069. readelf.
  1070. * doc/debug.options.texi: Update documentation of the
  1071. follow-links option.
  1072. * config.in: Regenerate.
  1073. * configure: Regenerate.
  1074. * testsuite/binutils-all/compress.exp: Add the -WN option to
  1075. objdump command lines that are not expecting to follow links.
  1076. * testsuite/binutils-all/readelf.exp: Add the
  1077. --debug-dump=no-follow-links option to tests that are not
  1078. expecting to follow debug links.
  1079. * NEWS: Mention the new behaviour.
  1080. 2021-02-12 Alan Modra <amodra@gmail.com>
  1081. * testsuite/binutils-all/objcopy.exp: Report "unsupported" when
  1082. gas or ld fails to build a testcase rather than "unresolved".
  1083. Report "fail" when readelf returns an error status rather than
  1084. "unresolved".
  1085. * testsuite/binutils-all/ar.exp: Likewise.
  1086. * testsuite/binutils-all/compress.exp: Likewise.
  1087. * testsuite/binutils-all/readelf.exp: Likewise.
  1088. 2021-02-12 Alan Modra <amodra@gmail.com>
  1089. * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and
  1090. "c" with "ccc" labels.
  1091. 2021-02-12 Tom de Vries <tdevries@suse.de>
  1092. * dwarf.h (debug_info): Fix typo in comment.
  1093. 2021-02-12 Tom de Vries <tdevries@suse.de>
  1094. * dwarf.c (display_debug_str_offsets): Handle multiple sets of
  1095. entries.
  1096. 2021-02-12 Tom de Vries <tdevries@suse.de>
  1097. * dwarf.c (process_debug_info): Print DWO ID.
  1098. 2021-02-11 Alan Modra <amodra@gmail.com>
  1099. PR 27290
  1100. PR 27293
  1101. PR 27295
  1102. * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting.
  1103. Use bfd_malloc_and_get_section.
  1104. (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity
  1105. check namesz. Return NULL if descsz is too small. Ensure
  1106. string table is terminated.
  1107. (elf32_avr_get_device_info): Formatting. Add note_size param.
  1108. Sanity check note.
  1109. (elf32_avr_dump_mem_usage): Adjust to suit.
  1110. 2021-02-10 Tom de Vries <tdevries@suse.de>
  1111. PR binutils/27391
  1112. * dwarf.c (load_dwo_file): Handle case that name is absolute path.
  1113. 2021-02-10 Tom de Vries <tdevries@suse.de>
  1114. PR binutils/27371
  1115. * dwarf.c (display_debug_ranges): Filter range lists according to
  1116. section.
  1117. 2021-02-09 Tom de Vries <tdevries@suse.de>
  1118. PR binutils/27370
  1119. * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
  1120. 2021-02-09 Tom de Vries <tdevries@suse.de>
  1121. PR binutils/27386
  1122. * dwarf.c (process_debug_info): Handling DW_UT_skeleton and
  1123. DW_UT_split_compile.
  1124. 2021-02-09 Alan Modra <amodra@gmail.com>
  1125. * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove
  1126. symbianelf.
  1127. 2021-02-07 Alan Modra <amodra@gmail.com>
  1128. * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer
  1129. uninitialised on invalid input.
  1130. 2021-02-06 Alan Modra <amodra@gmail.com>
  1131. PR 27349
  1132. * rename.c (smart_rename): Test for existence and type of output
  1133. file with lstat.
  1134. 2021-02-05 Nick Clifton <nickc@redhat.com>
  1135. * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer.
  1136. 2021-02-05 Eli Zaretskii <eliz@gnu.org>
  1137. PR 27252
  1138. * elfedit.c (check_file):
  1139. * bucomm.c (get_file_size): Fix typos in comments.
  1140. 2021-02-05 Alan Modra <amodra@gmail.com>
  1141. PR 27345
  1142. * arsup.c (ar_save): Use stat rather than lstat.
  1143. 2021-02-03 Alan Modra <amodra@gmail.com>
  1144. PR 27270
  1145. PR 27284
  1146. PR 26945
  1147. * ar.c: Don't include libbfd.h.
  1148. (write_archive): Replace xmalloc+strcpy with xstrdup. Use
  1149. bfd_stat rather than fstat on iostream. Move stat and fd tests
  1150. outside of _WIN32 ifdef. Delete skip_stat variable.
  1151. * arsup.c (temp_name, real_ofd): New static variables.
  1152. (ar_open): Use make_tempname and bfd_fdopenw.
  1153. (ar_save): Adjust to suit ar_open changes. Move stat output
  1154. of _WIN32 ifdef.
  1155. * objcopy.c: Don't include libbfd.h.
  1156. (copy_file): Use bfd_stat.
  1157. 2021-02-02 H.J. Lu <hongjiu.lu@intel.com>
  1158. PR binutils/27281
  1159. * readelf.c (process_section_headers): Add 'R' and 'D' to
  1160. "Key to Flags:".
  1161. * testsuite/binutils-all/retain1a.d: Updated.
  1162. 2021-01-30 Nick Clifton <nickc@redhat.com>
  1163. * README-how-to-make-a-release: Small updates after the 2.35.2
  1164. release.
  1165. 2021-01-28 Eli Zaretskii <eliz@gnu.org>
  1166. PR 4356
  1167. * windres.c (quot): Use double quotes to protect strings on
  1168. Windows platforms.
  1169. 2021-01-28 Eli Zaretskii <eliz@gnu.org>
  1170. PR 27252
  1171. * bucomm.c (get_file_size): Add code to handle /dev/null on
  1172. Windows systems.
  1173. * elfedit.c (check_file): Likewise.
  1174. 2021-01-27 Nick Clifton <nickc@redhat.com>
  1175. * objcopy.c (copy_main): Remove conditional control of the calls
  1176. to free, simplifying the code and making it easier to detect
  1177. typos.
  1178. 2021-01-26 Frederic Cambus <fred@statdns.com>
  1179. * objcopy.c (copy_main): Fix a double free happening when both
  1180. --localize-symbols and --globalize-symbols options are invoked
  1181. together.
  1182. 2021-01-24 Nick Clifton <nickc@redhat.com>
  1183. * README-how-to-make-a-release: Minor updates after the 2.36 release.
  1184. 2021-01-16 Alan Modra <amodra@gmail.com>
  1185. * readelf.c (uncompress_section_contents): Tidy inflateEnd result test.
  1186. 2021-01-15 Alan Modra <amodra@gmail.com>
  1187. PR 26539
  1188. * readelf.c (uncompress_section_contents): Always call inflateEnd.
  1189. 2021-01-14 Alexandre Oliva <oliva@gnu.org>
  1190. * MAINTAINERS: Update my email address.
  1191. 2021-01-14 Nick Clifton <nickc@redhat.com>
  1192. * po/sv.po: Updated Swedish translation.
  1193. 2021-01-13 Alan Modra <amodra@gmail.com>
  1194. * Makefile.in: Regenerate.
  1195. * doc/Makefile.in: Regenerate.
  1196. 2021-01-13 Zebediah Figura <z.figura12@gmail.com>
  1197. PR 27037
  1198. * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry
  1199. and before exit.
  1200. (i386_x64_trampoline): Add SEH annotations.
  1201. (struct mac): Add how_seh field.
  1202. (make_delay_head): If how_set field is true add SEh instructions.
  1203. 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
  1204. PR binutils/26792
  1205. * configure.ac: Use GNU_MAKE_JOBSERVER.
  1206. * aclocal.m4: Regenerated.
  1207. * configure: Likewise.
  1208. 2021-01-12 Nick Clifton <nickc@redhat.com>
  1209. * po/fr.po: Updated French translation.
  1210. 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
  1211. PR ld/27173
  1212. * configure: Regenerated.
  1213. 2021-01-11 Nick Clifton <nickc@redhat.com>
  1214. * po/pt.po: Updated Portuguese translation.
  1215. * po/sr.po: Updated Serbian translation.
  1216. * po/uk.po: Updated Ukranian translation.
  1217. 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
  1218. * configure: Regenerated.
  1219. 2021-01-09 Nick Clifton <nickc@redhat.com>
  1220. * configure: Regenerate.
  1221. * po/binutils.pot: Regenerate.
  1222. 2021-01-09 Nick Clifton <nickc@redhat.com>
  1223. * 2.36 release branch crated.
  1224. * README-how-to-make-a-release: Add note about updating Makefiles
  1225. and libtool files.
  1226. * BRANCHES: Add binutils-2.36-branch.
  1227. 2021-01-09 Alan Modra <amodra@gmail.com>
  1228. * configure: Regenerate.
  1229. 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
  1230. * configure: Regenerate.
  1231. 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
  1232. PR 27109
  1233. * objcopy.c (copy_object): Handle section symbols for
  1234. non-relocatable inputs.
  1235. * testsuite/binutils-all/readelf.exp (readelf_test): Check
  1236. is_elf_unused_section_symbols.
  1237. * testsuite/binutils-all/readelf.s-64: Updated.
  1238. * testsuite/binutils-all/readelf.ss: Likewise.
  1239. * testsuite/binutils-all/readelf.ss-64: Likewise.
  1240. * testsuite/binutils-all/readelf.s-64-unused: New file.
  1241. * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
  1242. * testsuite/binutils-all/readelf.ss-unused: Likewise.
  1243. * testsuite/lib/binutils-common.exp
  1244. (is_elf_unused_section_symbols): New proc.
  1245. 2021-01-06 Reuben Thomas <rrt@sc3d.org>
  1246. * binutils/readelf.c: Correct grammar in comment.
  1247. 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
  1248. * coffgrok.c (do_type): Correct spelling of auxiliary in errors.
  1249. * doc/binutils.texi: Correct grammar.
  1250. * readelf.c (process_version_sections): Correct spelling of auxiliary
  1251. in warning.
  1252. * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix.
  1253. 2021-01-01 Alan Modra <amodra@gmail.com>
  1254. Update year range in copyright notice of all files.
  1255. For older changes see ChangeLog-2020
  1256. Copyright (C) 2021-2022 Free Software Foundation, Inc.
  1257. Copying and distribution of this file, with or without modification,
  1258. are permitted in any medium without royalty provided the copyright
  1259. notice and this notice are preserved.
  1260. Local Variables:
  1261. mode: change-log
  1262. left-margin: 8
  1263. fill-column: 74
  1264. version-control: never
  1265. End: