ChangeLog 82 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316
  1. 2022-04-08 Nick Clifton <nickc@redhat.com>
  2. PR 29038
  3. * coffgen.c (coff_find_nearest_line_with_names): Fix typo
  4. retrieving saved bias.
  5. 2022-04-07 Mark Harmstone <mark@harmstone.com>
  6. * coff-i386.c (in_reloc_p): Add R_SECTION.
  7. (howto_table): Add R_SECTION.
  8. (coff_pe_i386_relocation_section): Add support for R_SECTION.
  9. (coff_i386_reloc_type_lookup): Add support for
  10. BFD_RELOC_16_SECCIDX.
  11. * coff-x86_64.c (in_reloc_p): Add R_SECTION.
  12. (howto_table): Add R_SECTION.
  13. (coff_pe_amd64_relocation_section): Add support for R_SECTION.
  14. (coff_amd64_reloc_type_lookup): Add support for
  15. BFD_RELOC_16_SECCIDX.
  16. * reloc.c: Add BFD_RELOC_16_SECIDX.
  17. * bfd-in2.h: Regenerate.
  18. * libbfd.h: Regenerate.
  19. 2022-04-01 John Baldwin <jhb@FreeBSD.org>
  20. * elf-bfd.h (elfcore_write_x86_segbases): New.
  21. * elf.c (elfcore_grok_freebsd_note): Add pseudosections for
  22. NT_FREEBSD_X86_SEGBASES register notes.
  23. (elfcore_write_x86_segbases): New.
  24. (elfcore_write_register_note): Write NT_FREEBSD_X86_SEGBASES
  25. register notes.
  26. 2022-04-01 John Baldwin <jhb@FreeBSD.org>
  27. * elf.c (elfcore_grok_freebsd_note): Remove checks for namesz.
  28. 2022-03-22 Steiner H Gunderson <steinar+sourceware@gunderson.no>
  29. * dwarf2.c (_bfd_dwarf2_find_nearest_line): if a function name is
  30. found, but no line number info, then return a result of 2.
  31. 2022-03-21 Steiner H Gunderson <steinar+sourceware@gunderson.no>
  32. PR 28978
  33. * dwarf2.c (scan_unit_for_symbols): When performing second pass,
  34. check to see if the function or variable being processed is the
  35. same as the previous one.
  36. 2022-03-18 Viorel Preoteasa <viorel.preoteasa@gmail.com>
  37. PR 28924
  38. * elf32-arm.c (THM_MAX_FWD_BRANCH_OFFSET): Fix definition.
  39. (THM2_MAX_FWD_BRANCH_OFFSET): Likewise.
  40. 2022-03-16 Simon Marchi <simon.marchi@efficios.com>
  41. * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES):
  42. Add cpu-amdgcn.c.
  43. (BFD64_BACKENDS): Add elf64-amdgcn.lo.
  44. (BFD64_BACKENDS_CFILES): Add elf64-amdgcn.c.
  45. * Makefile.in: Re-generate.
  46. * cpu-amdgcn.c: New.
  47. * elf64-amdgcn.c: New.
  48. * archures.c (bfd_architecture): Add bfd_arch_amdgcn and related
  49. mach defines.
  50. (bfd_amdgcn_arch): New.
  51. (bfd_archures_list): Add bfd_amdgcn_arch.
  52. * bfd-in2.h: Re-generate.
  53. * config.bfd: Handle amdgcn* target.
  54. * configure.ac: Handle amdgcn_elf64_le_vec.
  55. * configure: Re-generate.
  56. * elf-bfd.h (elf_target_id): Add AMDGCN_ELF_DATA.
  57. * targets.c (amdgcn_elf64_le_vec): New.
  58. (_bfd_target_vector): Add amdgcn_elf64_le_vec.
  59. 2022-03-01 Torbjörn Svensson <torbjorn.svensson@st.com>
  60. Fred Eisele <fredrick.eisele@gmail.com>
  61. PR 25713
  62. * bfdio.c (_bfd_real_fopen): Fix typo.
  63. 2022-03-01 Nick Clifton <nickc@redhat.com>
  64. PR 28848
  65. * elf32-arm.c (elf32_arm_merge_eabi_attributes): If the first
  66. input bfd has a Tag_ABI_HardFP_use set to 3 but does not also have
  67. TAG_FP_arch set then reset the TAG_ABI_HardFP_use.
  68. 2022-02-28 Torbjörn Svensson <torbjorn.svensson@st.com>
  69. Fred Eisele <fredrick.eisele@gmail.com>
  70. PR 25713
  71. * bfdio.c (_bfd_real_fopen): Fix handling of paths longer than 260
  72. characters on Windows hosts.
  73. 2022-02-28 Nick Clifton <nickc@redhat.com>
  74. PR 28886
  75. * config.bfd: Update error message for obsolete configurations.
  76. 2022-02-17 Nick Clifton <nickc@redhat.com>
  77. * po/sr.po: Updated Serbian translation.
  78. 2022-02-16 Fangrui Song <maskray@google.com>
  79. Nick Clifton <nickc@redhat.com>
  80. PR ld/28841
  81. * bfd-in2.h (struct bfd_section): Add type.
  82. (discarded_section): Add field.
  83. * elf.c (elf_fake_sections): Handle bfd_section::type.
  84. * section.c (BFD_FAKE_SECTION): Add field.
  85. * mri.c (mri_draw_tree): Update function call.
  86. 2022-02-11 Michael Forney <mforney@mforney.org>
  87. * bfd.c (bfd_set_gp_value): Remove return with expression
  88. in void function.
  89. 2022-02-09 Nick Clifton <nickc@redhat.com>
  90. * config.bfd: Move pending obsolesence targets into the definitely
  91. obsolete list.
  92. 2022-02-02 Nick Clifton <nickc@redhat.com>
  93. PR 28834
  94. * dwarf2.c (read_section): Change the heuristic that checks for
  95. overlarge dwarf debug info sections.
  96. 2022-02-02 Stafford Horne <shorne@gmail.com>
  97. PR 28735
  98. * elf32-or1k.c (or1k_elf_got16_no_overflow_howto): Define.
  99. (or1k_elf_relocate_section): Use new howto instead of trying to
  100. mask out relocation bits.
  101. 2022-01-24 Roland McGrath <mcgrathr@google.com>
  102. * doc/local.mk (%D%/bfdver.texi): Add mkdir command.
  103. 2022-01-24 Nick Clifton <nickc@redhat.com>
  104. * po/fr.po: Updated French translation.
  105. * po/ro.po: Updated Romanian translation.
  106. * po/uk.po: Updated Ukranian translation.
  107. 2022-01-22 Nick Clifton <nickc@redhat.com>
  108. * version.m4: Change to 2.38.50.
  109. * configure: Regenerate.
  110. * po/bfd.pot: Regenerate.
  111. 2022-01-22 Nick Clifton <nickc@redhat.com>
  112. * 2.38 release branch created.
  113. 2022-01-17 Nick Clifton <nickc@redhat.com>
  114. * Makefile.in: Regenerate.
  115. * configure: Regenerate.
  116. * doc/Makefile.in: Regenerate.
  117. * po/bfd.pot: Regenerate.
  118. 2021-12-15 Nikita Popov <npv1310@gmail.com>
  119. PR 28687
  120. * dwarf1.c (parse_die): Fix undefined behaviour in range tests.
  121. 2021-11-17 Nick Clifton <nickc@redhat.com>
  122. PR 28452
  123. * elf.c (assign_file_positions_for_non_load_sections): Replace
  124. assertion with a warning message.
  125. 2021-10-19 Nick Clifton <nickc@redhat.com>
  126. * linker.c (_bfd_generic_link_add_one_symbol): Test for a NULL
  127. name before checking to see if the symbol is __gnu_lto_slim.
  128. * archive.c (_bfd_compute_and_write_armap): Likewise.
  129. 2021-09-27 Nick Alcock <nick.alcock@oracle.com>
  130. * configure: Regenerate.
  131. 2021-09-15 Andrew Burgess <andrew.burgess@embecosm.com>
  132. * archures.c (bfd_arch_list): Use 'char *' instead of 'char **'
  133. when calculating space for a string list.
  134. 2021-09-014 Cupertino Miranda <cmiranda@synopsys.com>
  135. Claudiu Zissulescu <claziss@synopsys.com>
  136. * arc-got.h (arc_static_sym_data): New structure.
  137. (get_static_sym_data): New function.
  138. (relocate_fix_got_relocs_for_got_info): Move the computation fo
  139. symbol value and section to above introduced function, and use
  140. this new function.
  141. 2021-09-07 Luis Machado <luis.machado@linaro.org>
  142. Revert: [AArch64] MTE corefile support
  143. 2021-05-21 Luis Machado <luis.machado@linaro.org>
  144. * elf.c (elfcore_make_memtag_note_section): New function.
  145. (elfcore_grok_note): Handle NT_MEMTAG note types.
  146. 2021-09-07 Nick Clifton <nickc@redhat.com>
  147. PR 28305
  148. * elf32-xtensa.c (elf_xtensa_do_reloc): Add check for put of range
  149. reloc.
  150. PR 28303
  151. * elfxx-riscv.c (riscv_elf_add_sub_reloc): Add check for out of
  152. range relocs.
  153. 2021-08-10 Nick Clifton <nickc@redhat.com>
  154. * po/sr.po: Updated Serbian translation.
  155. 2021-07-18 Nick Clifton <nickc@redhat.com>
  156. * config.bfd: Move pending obsoletion targets to obsolete list.
  157. 2021-07-16 Giulio Benetti <giulio.benetti@benettiengineering.com>
  158. * elf32-or1k.c (or1k_elf_relocate_section): Use a separate entry
  159. in switch case R_OR1K_INSN_REL_26 where we need to check for
  160. !SYMBOL_CALLS_LOCAL() instead of !SYMBOL_REFERENCES_LOCAL().
  161. 2021-07-14 Clément Chigot <clement.chigot@atos.net>
  162. * libxcoff.h (struct xcoff_dwsect_name): Add DWARF name.
  163. * coff-rs6000.c (xcoff_dwsect_names): Update.
  164. * coffcode.h (sec_to_styp_flags): Likewise.
  165. (coff_new_section_hook): Likewise.
  166. 2021-07-10 Alan Modra <amodra@gmail.com>
  167. * dwarf2.c (read_address): Remove accidental commit.
  168. (read_ranges): Compare offset rather than pointers.
  169. 2021-07-08 Nick Clifton <nickc@redhat.com>
  170. * po/pt.po: Updated Portuguese translation.
  171. 2021-07-07 Nick Clifton <nickc@redhat.com>
  172. * elfcode.h (elf_swap_symbol_out): Revert accidental change that
  173. removed an abort if the shndx pointer is NULL.
  174. 2021-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  175. * sysdep.h [!ENABLE_NLS]: Prevent inclusion of <libintl.h> on
  176. Solaris.
  177. 2021-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  178. * configure.ac: Check for strnlen declaration.
  179. * configure, config.in: Regenerate.
  180. 2021-07-07 Nick Clifton <nickc@redhat.com>
  181. PR 28051
  182. * coff-rs6000.c (xcoff_reloc_type_tls): Reformat error messages in
  183. order to fix problems when translating.
  184. * cofflink.c (_bfd_coff_write_global_sym): Likewise.
  185. * elfnn-aarch64.c (_bfd_aarch64_erratum_843419_branch_to_stub):
  186. Likewise.
  187. * po/bfd.pot: Regenerate.
  188. 2021-07-06 Michael Matz <matz@suse.de>
  189. PR ld/28021
  190. * elfnn-riscv.c (riscv_relax_delete_bytes): Check for any
  191. versioning.
  192. 2021-07-06 Alan Modra <amodra@gmail.com>
  193. PR 28055
  194. * elf64-bpf.c (bpf_elf_generic_reloc): Add missing ATTRIBUTE_UNUSED.
  195. 2021-07-05 Alan Modra <amodra@gmail.com>
  196. PR 28055
  197. * elf64-bpf.c (bpf_elf_generic_reloc): Use correct bfd for bfd_put
  198. and bfd_put_32 calls. Correct section limit checks.
  199. 2021-07-03 Nick Clifton <nickc@redhat.com>
  200. * version.m4: Update version number.
  201. * configure: Regenerate.
  202. * po/opcodes.pot: Regenerate.
  203. 2021-07-03 Nick Clifton <nickc@redhat.com>
  204. * 2.37 release branch created.
  205. 2021-07-02 Nick Clifton <nickc@redhat.com>
  206. PR 28046
  207. * dwarf2.c (read_ranges): Check that range_ptr does not exceed
  208. range_end.
  209. 2021-06-30 YunQiang Su <yunqiang.su@cipunited.com>
  210. PR mips/28009
  211. * bfd/elfxx-mips.c (_bfd_mips_elf_section_from_shdr,
  212. _bfd_mips_elf_fake_sections): Mark LTO debug info as
  213. SHT_MIPS_DWARF.
  214. 2021-06-29 Nick Clifton <nickc@redhat.com>
  215. * config.bfd (obsolete configurations): Add netbsdpe.
  216. 2021-06-22 Nelson Chu <nelson.chu@sifive.com>
  217. * elfnn-riscv.c (riscv_pcrel_hi_reloc): Added field to store
  218. the original relocation type, in case the type is converted to
  219. R_RISCV_HI20.
  220. (riscv_pcrel_lo_reloc): Removed unused name field.
  221. (riscv_pcrel_relocs): Added comments.
  222. (riscv_zero_pcrel_hi_reloc): Removed unused input_bfd.
  223. (riscv_record_pcrel_hi_reloc): Updated.
  224. (riscv_record_pcrel_lo_reloc): Likewise.
  225. (riscv_resolve_pcrel_lo_relocs): Likewise. Check the original
  226. type of auipc, to make sure the %pcrel_lo without any addends.
  227. Otherwise, report dangerous relocation error.
  228. (riscv_elf_relocate_section): Updated above functions are changed.
  229. For R_RISCV_GOT_HI20, report dangerous relocation error when addend
  230. isn't zero.
  231. 2021-06-19 H.J. Lu <hongjiu.lu@intel.com>
  232. PR ld/27998
  233. * elfxx-x86.c (elf_x86_allocate_dynrelocs): Count PLT for GOTOFF
  234. relocation against IFUNC symbols.
  235. (_bfd_x86_elf_adjust_dynamic_symbol): Likewise.
  236. 2021-06-19 H.J. Lu <hongjiu.lu@intel.com>
  237. * elflink.c (bfd_elf_final_link): Correct DT_TEXTREL warning in
  238. PDE.
  239. 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
  240. * elf-properties.c (_bfd_elf_parse_gnu_properties): Handle
  241. GNU_PROPERTY_UINT32_AND_LO, GNU_PROPERTY_UINT32_AND_HI,
  242. GNU_PROPERTY_UINT32_OR_LO and GNU_PROPERTY_UINT32_OR_HI.
  243. (elf_merge_gnu_properties): Likewise.
  244. 2021-06-11 Alan Modra <amodra@gmail.com>
  245. PR 27952
  246. * elf-bfd.h (struct elf_obj_tdata): Add is_pie.
  247. * elflink.c (elf_link_add_object_symbols): Set is_pie.
  248. 2021-06-09 Nick Clifton <nickc@redhat.com>
  249. PR 27666
  250. * config.bfd: Do not add the sparc_elf32_vec or sparc_elf64_vec
  251. vectors to Sparc Solaris2 targets.
  252. 2021-06-08 Michael Matz <matz@suse.de>
  253. * elf.c (bfd_section_from_shdr): Set has_secondary_relocs flag.
  254. (_bfd_elf_slurp_secondary_reloc_section): Use it for early-out.
  255. 2021-06-07 Jan Beulich <jbeulich@suse.com>
  256. * dwarf2.c (read_ranges, read_rnglists): Add u suffix to constant.
  257. 2021-06-02 Alan Modra <amodra@gmail.com>
  258. * elf-attrs.c (_bfd_elf_parse_attributes): Break out of loop if
  259. subsection length is too small to cover tag and length field.
  260. 2021-05-31 Nelson Chu <nelson.chu@sifive.com>
  261. Lifang Xia <lifang_xia@c-sky.com>
  262. PR 27566
  263. * elfnn-riscv.c (struct riscv_elf_link_hash_table): New integer pointer
  264. to monitor the data segment phase.
  265. (bfd_elfNN_riscv_set_data_segment_info): New function called by
  266. after_allocation, to set the data_segment_phase from expld.dataseg.
  267. (_bfd_riscv_relax_section): Don't relax when data_segment_phase is
  268. exp_seg_relro_adjust (0x4).
  269. * elfxx-riscv.h (bfd_elf32_riscv_set_data_segment_info): New extern.
  270. (bfd_elf64_riscv_set_data_segment_info): Likewise
  271. 2021-05-28 H.J. Lu <hongjiu.lu@intel.com>
  272. PR ld/27905
  273. * elf32-i386.c: Don't include "libiberty.h".
  274. (elf_howto_table): Revert commits a7664973b24 and 50c95a739c9.
  275. (elf_i386_rtype_to_howto): Revert commit 50c95a739c9.
  276. (elf_i386_info_to_howto_rel): Likewise.
  277. (elf_i386_tls_transition): Likewise.
  278. (elf_i386_relocate_section): Likewise.
  279. * elf64-x86-64.c (x86_64_elf_howto_table): Revert commits
  280. a7664973b24 and 50c95a739c9.
  281. (elf_x86_64_rtype_to_howto): Revert commit 50c95a739c9.
  282. * elfxx-x86.c (_bfd_x86_elf_parse_gnu_properties): Likewise.
  283. * elfxx-x86.h (elf_x86_obj_tdata): Likewise.
  284. (elf_x86_has_code16): Likewise.
  285. 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
  286. PR ld/27905
  287. * elf32-i386.c: Include "libiberty.h".
  288. (elf_howto_table): Add 16-bit R_386_PC16 entry.
  289. (elf_i386_rtype_to_howto): Add a BFD argument. Use 16-bit
  290. R_386_PC16 if input has 16-bit mode instructions.
  291. (elf_i386_info_to_howto_rel): Update elf_i386_rtype_to_howto
  292. call.
  293. (elf_i386_tls_transition): Likewise.
  294. (elf_i386_relocate_section): Likewise.
  295. * elf64-x86-64.c (x86_64_elf_howto_table): Add 16-bit
  296. R_X86_64_PC16 entry.
  297. (elf_x86_64_rtype_to_howto): Use 16-bit R_X86_64_PC16 if input
  298. has 16-bit mode instructions.
  299. * elfxx-x86.c (_bfd_x86_elf_parse_gnu_properties): Set
  300. elf_x86_has_code16 if relocatable input is marked with
  301. GNU_PROPERTY_X86_FEATURE_2_CODE16.
  302. * elfxx-x86.h (elf_x86_obj_tdata): Add has_code16.
  303. (elf_x86_has_code16): New.
  304. 2021-05-26 Nelson Chu <nelson.chu@sifive.com>
  305. * elfxx-riscv.h (check_unknown_prefixed_ext): New bool.
  306. * elfxx-riscv.c (riscv_parse_prefixed_ext): Do not check the
  307. prefixed extension name if check_unknown_prefixed_ext is false.
  308. * elfnn-riscv.c (riscv_merge_arch_attr_info): Set
  309. check_unknown_prefixed_ext to false for linker.
  310. 2021-05-25 Nick Clifton <nickc@redhat.com>
  311. * elf32-arn.c (struct elf_arm_obj_tdata): Add num_entries field.
  312. (elf32_arm_num_entries): New macro.
  313. (elf32_arm_allocate_local_sym_info): Initialise the new field.
  314. Allocate arrays individually so that buffer overruns can be
  315. detected by memory checkers.
  316. (elf32_arm_create_local_iplt): Check num_entries.
  317. (elf32_arm_get_plt_info): Likewise.
  318. (elf32_arm_final_link_relocate): Likewise.
  319. (elf32_arm_check_relocs): Likewise.
  320. (elf32_arm_size_dynamic_sections): Likewise.
  321. (elf32_arm_output_arch_local_syms): Likewise.
  322. 2021-05-25 Nick Clifton <nickc@redhat.com>
  323. * elf32-arm.c: Fix formatting.
  324. 2021-05-25 Alan Modra <amodra@gmail.com>
  325. * elf-attrs.c (elf_attr_strdup): New function.
  326. (_bfd_elf_attr_strdup): Use it here.
  327. (elf_add_obj_attr_string): New function, extracted from..
  328. (bfd_elf_add_obj_attr_string): ..here.
  329. (elf_add_obj_attr_int_string): New function, extracted from..
  330. (bfd_elf_add_obj_attr_int_string): ..here.
  331. (_bfd_elf_parse_attributes): Don't allocate an extra byte for a
  332. string terminator. Instead ensure parsing doesn't go past
  333. end of sub-section. Use size_t variables for lengths.
  334. 2021-05-22 Alan Modra <amodra@gmail.com>
  335. * libbfd.c (_bfd_safe_read_leb128): Remove length_return parameter.
  336. Replace data pointer with pointer to pointer. Increment pointer
  337. over bytes read.
  338. * libbfd-in.h (_bfd_safe_read_leb128): Update prototype.
  339. * elf-attrs.c (_bfd_elf_parse_attributes): Adjust to suit. Be
  340. careful not to increment data pointer past end. Remove now
  341. redundant pr17512 check.
  342. * wasm-module.c (READ_LEB128): Adjust to suit changes to
  343. _bfd_safe_read_leb128.
  344. * dwarf2.c (read_n_bytes): New inline function, old one renamed to..
  345. (read_blk): ..this. Allocate and return block. Increment bfd_byte**
  346. arg.
  347. (read_3_bytes): New function.
  348. (read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes),
  349. (read_8_bytes, read_string, read_indirect_string),
  350. (read_indirect_line_string, read_alt_indirect_string): Take a
  351. byte_byte** arg which is incremented over bytes read. Remove any
  352. bytes_read return. Rewrite limit checks to compare lengths
  353. rather than pointers.
  354. (read_abbrevs, read_attribute_value, read_formatted_entries),
  355. (decode_line_info, find_abstract_instance, read_ranges),
  356. (read_rnglists, scan_unit_for_symbols, parse_comp_unit),
  357. (stash_comp_unit): Adjust to suit. Rewrite limit checks to
  358. compare lengths rather than pointers.
  359. * libbfd.h: Regenerate.
  360. 2021-05-21 Luis Machado <luis.machado@linaro.org>
  361. * elf.c (elfcore_make_memtag_note_section): New function.
  362. (elfcore_grok_note): Handle NT_MEMTAG note types.
  363. 2021-05-20 Andrew Burgess <andrew.burgess@embecosm.com>
  364. * section.c (bfd_get_section_by_name): Return NULL if name is
  365. NULL.
  366. (bfd_get_section_by_name_if): Likewise.
  367. * dwarf2.c (read_section): Remove unneeded NULL check.
  368. (find_debug_info): Likewise.
  369. 2021-05-19 Nick Clifton <nickc@redhat.com>
  370. * plugin.c (bfd_plugin_open_input): Inform the user if the limit
  371. on the number of open files is reached. If possible, try to
  372. increase this limit before failing.
  373. 2021-05-14 Nelson Chu <nelson.chu@sifive.com>
  374. * elfnn-riscv.c (riscv_resolve_pcrel_lo_relocs): Check the values
  375. of %pcrel_hi, before and after adding the addend. Make sure the
  376. value won't be changed, otherwise, report dangerous error.
  377. 2021-05-13 Nelson Chu <nelson.chu@sifive.com>
  378. * elfxx-riscv.c (check_implicit_always): The check_func, always add
  379. the implicit subset without checking.
  380. (check_implicit_for_i): The check_func for i, only add zicsr and
  381. zifencei when the version of i less than 2.1.
  382. (struct riscv_implicit_subset): Record the subsets and their
  383. corresponding implicit subsets.
  384. (riscv_implicit_subsets): Table records all implicit informations.
  385. (riscv_parse_add_implicit_subsets): Updated and add implicit subsets
  386. according to riscv_implicit_subsets. Remove the redundant codes.
  387. 2021-05-13 Alan Modra <amodra@gmail.com>
  388. PR 27858
  389. * elf32-sh.c (sh_elf_info_to_howto): Correct check for last valid
  390. reloc howto.
  391. 2021-05-12 Luis Machado <luis.machado@linaro.org>
  392. * elf-bfd.h (elfcore_write_aarch_mte): New prototype.
  393. * elf.c (elfcore_grok_aarch_mte, elfcore_write_aarch_mte): New
  394. functions.
  395. (elfcore_grok_note): Handle notes of type NT_ARM_TAGGED_ADDR_CTRL.
  396. (elfcore_write_register_note): Handle MTE notes.
  397. 2021-05-11 Alan Modra <amodra@gmail.com>
  398. PR 27844
  399. * pdp11.c (aout_get_external_symbols): Clear first four bytes of
  400. strings array, not just the first byte.
  401. * aoutx.h (aout_get_external_symbols): Likewise.
  402. 2021-05-10 H.J. Lu <hongjiu.lu@intel.com>
  403. PR binutils/27839
  404. * simple.c (bfd_simple_get_relocated_section_contents): Remove
  405. strayed fprintf.
  406. 2021-05-10 Nick Clifton <nickc@redhat.com>
  407. PR 27839
  408. * simple.c (simple_dummy_add_to_set): New function.
  409. (simple_dummy_constructor): New function.
  410. (simple_dummy_multiple_common): New function.
  411. (bfd_simple_get_relocated_section_contents): Zero out the
  412. callbacks structure, and then set the add_to_set, constructor and
  413. multiple_common fields.
  414. 2021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
  415. * elf32-pru.c (elf_backend_can_gc_sections): Define as 1.
  416. 2021-05-08 Mike Frysinger <vapier@gentoo.org>
  417. * doc/Makefile.am (html-local, bfd/index.html): New targets.
  418. * doc/Makefile.in: Regenerate.
  419. 2021-05-08 Mike Frysinger <vapier@gentoo.org>
  420. * doc/Makefile.am (AM_MAKEINFOFLAGS): Define.
  421. * doc/Makefile.in: Regenerate.
  422. 2021-05-07 Clément Chigot <clement.chigot@atos.net>
  423. * coff-rs6000.c (xcoff_dwsect_names): Add new DWARF
  424. sections.
  425. * coffgen.c (coff_pointerize_aux): Handle C_DWARF.
  426. (coff_print_symbol): Likewise.
  427. * libxcoff.h (XCOFF_DWSECT_NBR_NAMES): Update.
  428. 2021-05-07 Jan Beulich <jbeulich@suse.com>
  429. * elf64-x86-64.c (x86_64_elf_howto_table): Set src_mask fields
  430. to zero.
  431. 2021-05-07 Alan Modra <amodra@gmail.com>
  432. * bfd-in2.h: Regenerate.
  433. * libbfd.h: Regenerate.
  434. 2021-05-06 Stafford Horne <shorne@gmail.com>
  435. PR 27746
  436. * elf32-or1k.c (PLT_ENTRY_SIZE_LARGE, PLT_MAX_INSN_COUNT,
  437. OR1K_ADD, OR1K_ORI): New macros to help with plt creation.
  438. (elf_or1k_link_hash_table): New field plt_count.
  439. (elf_or1k_link_hash_entry): New field plt_index.
  440. (elf_or1k_plt_entry_size): New function.
  441. (or1k_write_plt_entry): Update to support variable size PLTs.
  442. (or1k_elf_finish_dynamic_sections): Use new or1k_write_plt_entry
  443. API.
  444. (or1k_elf_finish_dynamic_symbol): Update to write large PLTs
  445. when needed.
  446. (allocate_dynrelocs): Use elf_or1k_plt_entry_size to account for
  447. PLT size.
  448. 2021-05-06 Stafford Horne <shorne@gmail.com>
  449. PR 21464
  450. * elf32-or1k.c (or1k_elf_relocate_section): Relax R_OR1K_GOT16
  451. overflow check if we have R_OR1K_GOT_AHI16 followed by
  452. R_OR1K_GOT16.
  453. 2021-05-06 Stafford Horne <shorne@gmail.com>
  454. PR 21464
  455. * bfd-in2.h: Add BFD_RELOC_OR1K_GOT_AHI16 relocation.
  456. * elf32-or1k.c (or1k_elf_howto_table, or1k_reloc_map): Likewise.
  457. (or1k_final_link_relocate, or1k_elf_relocate_section,
  458. or1k_elf_check_relocs): Likewise.
  459. * libbfd.h (bfd_reloc_code_real_names): Likewise.
  460. * reloc.c: Likewise.
  461. 2021-05-06 Stafford Horne <shorne@gmail.com>
  462. PR 27624
  463. * elf32-or1k.c (or1k_elf_adjust_dynamic_symbol): Change
  464. condition used to cleanup plt entries to cleanup forced local
  465. entries.
  466. 2021-05-05 H.J. Lu <hongjiu.lu@intel.com>
  467. PR ld/27825
  468. * elflink.c (elf_link_output_symstrtab): Always append ".COUNT"
  469. to local symbols.
  470. 2021-05-05 Alan Modra <amodra@gmail.com>
  471. * vms-lib.c (vms_traverse_index): Account for vms_kbn size when
  472. sanity checking keylen.
  473. 2021-05-04 Nick Clifton <nickc@redhat.com>
  474. * libbfd.c (bfd_malloc): Provide some documenation. Treat a size
  475. of 0 as 1.
  476. (bfd_realloc): Likewise.
  477. (bfd_zmalloc): Likewise.
  478. (bfd_realloc_or_free): Provide some documentation. Treat a size
  479. of 0 as a request to free.
  480. * libbfd-in.h (bfd_realloc): Remove prototype.
  481. (bfd_realloc_or_free): Remove prototype.
  482. (bfd_zmalloc): Remove prototype.
  483. * libbfd.h: Regenerate.
  484. 2021-05-03 Jan Beulich <jbeulich@suse.com>
  485. * elf32-i386.c (elf_howto_table): Switch all 32-bit relocs to
  486. complain_overflow_dont.
  487. * elf64-x86-64.c (x86_64_elf_howto_table): Switch all 64-bit
  488. relocs to complain_overflow_dont.
  489. 2021-05-03 Alan Modra <amodra@gmail.com>
  490. * elf32-ppc.c (allocate_dynrelocs): Keep dyn_relocs for undefweak
  491. symbols when -z dynamic-undefined-weak or when there are no
  492. dynamic relocs in read-only sections and -z nodynamic-undefined-weak
  493. is not given.
  494. * elf64-ppc.c (allocate_dynrelocs): Likewise.
  495. 2021-05-03 Alan Modra <amodra@gmail.com>
  496. * elf32-ppc.c (allocate_dynrelocs): Call ensure_undef_dynamic for
  497. weak undefined symols that only appear on PLT relocs.
  498. * elf64-ppc.c (allocate_dynrelocs): Likewise.
  499. 2021-05-03 Alan Modra <amodra@gmail.com>
  500. PR 27755
  501. * elf32-ppc.c (ppc_elf_inline_plt): Do increment rel in loop.
  502. 2021-05-03 Alan Modra <amodra@gmail.com>
  503. * elf32-csky.c (is_mapping_symbol_name): New function.
  504. (csky_elf_is_target_special_symbol): Likewise.
  505. (csky_elf_maybe_function_sym): Likewise.
  506. (bfd_elf32_bfd_is_target_special_symbol): Define.
  507. (elf_backend_maybe_function_sym): Define.
  508. 2021-04-30 Nick Clifton <nickc@redhat.com>
  509. PR 27801
  510. * mach-o.c (bfd_mach_o_core_fetch_environment): Use bfd_get_32 to
  511. read 32-bit value.
  512. 2021-04-30 Nick Clifton <nickc@redhat.com>
  513. PR 27799
  514. * elf32-xtensa.c (elf_xtensa_grok_prstatus): Check for core notes
  515. that are too small.
  516. 2021-04-30 Nick Clifton <nickc@redhat.com>
  517. PR 27797
  518. * libbfd.c (bfd_realloc_or_free): Do not free a pointer than has
  519. been realloc'ed to size 0.
  520. 2021-04-30 Nick Clifton <nickc@redhat.com>
  521. PR 27795
  522. * coff-rs6000.c (_bfd_xcoff_read_ar_hdr): Check for invalid name
  523. lengths.
  524. 2021-04-29 Nick Clifton <nickc@redhat.com>
  525. PR 27793
  526. * som.c (som_slurp_symbol_table): Assign symbols without any scope
  527. to the undefined section.
  528. (som_decode_symclass): Check for a missing symbol section.
  529. * syms.c (bfd_decode_symclass): Likewise.
  530. 2021-04-29 Nick Clifton <nickc@redhat.com>
  531. PR 27792
  532. * som.c (som_slurp_string_table): Place a terminating NUL byte at
  533. the end of the table.
  534. (som_slurp_symbol_table): Check for an over-large offset into the
  535. string string table.
  536. 2021-04-28 Nick Clifton <nickc@redhat.com>
  537. * elf.c (_bfd_elf_maybe_function_sym): Do not accept annobin
  538. symbols as potential function symbols.
  539. * elfnn-aarch64.c (elfNN_aarch64_maybe_function_sym): Likewise.
  540. * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise.
  541. * elf32-arm.c (elf32_arm_maybe_function_sym): Likewise.
  542. 2021-04-26 Mike Frysinger <vapier@gentoo.org>
  543. * elf-bfd.h: Include stdlib.h.
  544. 2021-04-26 Jan Beulich <jbeulich@suse.com>
  545. * elf32-i386.c (elf_howto_table): Switch R_386_PC16 to
  546. complain_overflow_signed.
  547. * elf64-x86-64.c (x86_64_elf_howto_table): Switch R_X86_64_PC16
  548. to complain_overflow_signed.
  549. 2021-04-23 Eric Botcazou <ebotcazou@adacore.com>
  550. * elf.c (special_sections_p): Add .persistent.bss.
  551. 2021-04-23 Jan Beulich <jbeulich@suse.com>
  552. * elf32-i386.c (elf_howto_table): R_386_TLS_DESC_CALL has zero
  553. size field.
  554. * elf64-x86-64.c (x86_64_elf_howto_table): R_X86_64_TLSDESC_CALL
  555. has zero size field.
  556. 2021-04-22 Clément Chigot <clement.chigot@atos.net>
  557. * hash.c (struct bfd_strtab_hash): Remove xcoff field.
  558. Add length_field_size field.
  559. (_bfd_stringtab_init): Change prototype.
  560. Adapt to new length_field_size.
  561. (_bfd_xcoff_stringtab_init): Likewise.
  562. (_bfd_stringtab_add): Likewise.
  563. (_bfd_stringtab_emit): Likewise.
  564. * libbfd-in.h (_bfd_xcoff_stringtab_init):
  565. Change prototype.
  566. * libbfd.h: Regenerate.
  567. * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create):
  568. Call _bfd_xcoff_stringtab_init with isxcoff64 value.
  569. 2021-04-22 Clément Chigot <clement.chigot@atos.net>
  570. * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Add errors for
  571. unsupported storage class or auxialiry entries.
  572. Improve and adapt to new aux structures.
  573. Add C_DWARF support.
  574. (_bfd_xcoff_swap_aux_out): Likewise.
  575. * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Likewise.
  576. (_bfd_xcoff64_swap_aux_out): Likewise.
  577. 2021-04-21 Eli Zaretskii <eliz@gnu.org>
  578. PR 27760
  579. * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Add display
  580. of IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP,
  581. IMAGE_FILE_NET_RUN_FROM_SWAP and IMAGE_FILE_UP_SYSTEM_ONLY flags.
  582. Decode the contents of the DllCharacteristics field.
  583. 2021-04-21 Nick Clifton <nickc@redhat.com>
  584. PR 27759
  585. * srec.c (srec_read_section): Replace assertions with error
  586. returns.
  587. 2021-04-20 Clément Chigot <clement.chigot@atos.net>
  588. PR binutils/21700
  589. * reloc.c (BFD_RELOC_PPC_NEG): New relocation.
  590. * bfd-in2.h: Regenerate.
  591. * libbfd.h: Regenerate.
  592. * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Add
  593. BFD_RELOC_PPC_NEG handler.
  594. (xcoff_reloc_type_neg): Correctly substract addend.
  595. * coff64-rs6000.c (xcoff64_howto_table): Add R_NEG_32
  596. howto.
  597. (xcoff64_rtype2howto): Add handler for R_NEG_32.
  598. (xcoff64_reloc_type_lookup): Add BFD_RELOC_PPC_NEG handler.
  599. * xcofflink.c (xcoff_need_ldrel_p): Check output section
  600. for R_POS-like relocations. New argument added.
  601. (xcoff_mark): Adapt to new xcoff_need_ldrel_p argument.
  602. (xcoff_link_input_bfd): Likewise.
  603. 2021-04-16 Alan Modra <amodra@gmail.com>
  604. PR 27567
  605. * coffcode.h (styp_to_sec_flags): Use an unsigned long styp_flags.
  606. (coff_write_object_contents): Pass bfd to COFF_ENCODE_ALIGNMENT,
  607. ignore alignment checks when return is false. Formatting.
  608. 2021-04-15 Nelson Chu <nelson.chu@sifive.com>
  609. PR27584
  610. * elfnn-riscv.c (riscv_elf_is_target_special_symbol): Added to
  611. omit local and empty symbols since they usually generated to
  612. mark the auipc instructions.
  613. 2021-04-15 Lifang Xia<lifang_xia@c-sky.com>
  614. * elf32-csky.c (csky_elf_howto_table)
  615. <R_CKCORE_PCREL_IMM16BY2>: Set special_function to
  616. bfd_elf_generic_reloc.
  617. <R_CKCORE_PCREL_IMM16BY4>: Likewise.
  618. <R_CKCORE_PCREL_IMM10BY4>: Likewise.
  619. <R_CKCORE_PCREL_IMM18BY2>: Likewise.
  620. <R_CKCORE_PCREL_FLRW_IMM8BY4>: Likewise.
  621. 2021-04-14 H.J. Lu <hongjiu.lu@intel.com>
  622. PR binutils/27708
  623. * elf.c (assign_file_positions_for_non_load_sections): Set
  624. p_memsz to p_filesz for the loadable PT_NOTE segment.
  625. 2021-04-14 Frederic Cambus <fred@statdns.com>
  626. * elf.c (elfcore_grok_netbsd_note): Remove unneeded #ifdef
  627. checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
  628. 2021-04-14 Alan Modra <amodra@gmail.com>
  629. PR 27631
  630. * elf32-metag.c (elf_metag_relocate_section): Don't use &hh->elf
  631. when hh might be NULL, test for NULL first.
  632. 2021-04-14 Alan Modra <amodra@gmail.com>
  633. PR 27630
  634. * elf32-arm.c (elf32_arm_size_stubs): Don't use &hash->root when
  635. hash might be NULL, cast instead.
  636. 2021-04-13 Clément Chigot <clement.chigot@atos.net>
  637. * xcofflink.c (xcoff_link_check_ar_symbols): Update esym earlier.
  638. 2021-04-13 Nelson Chu <nelson.chu@sifive.com>
  639. * elfnn-riscv.c (riscv_version_mismatch): Do not report the warning
  640. when the version of input or output is RISCV_UNKNOWN_VERSION, since
  641. the extension is added implicitly.
  642. * elfxx-riscv.c: Updated the obsolete comments.
  643. (RISCV_UNKNOWN_VERSION): Moved to elfxx-riscv.h.
  644. * elfxx-riscv.h (RISCV_UNKNOWN_VERSION): Added.
  645. 2021-04-12 Alan Modra <amodra@gmail.com>
  646. * elf-bfd.h (ENABLE_CHECKING): Define.
  647. (elf_link_hash_lookup): Abort if wrong type of hash table.
  648. * configure.ac (--enable-checking): Add support.
  649. * config.in: Regenerate.
  650. * configure: Regenerate.
  651. 2021-04-12 Alan Modra <amodra@gmail.com>
  652. * elf-bfd.h (is_elf_hash_table): Convert macro to inline function.
  653. (elf_link_hash_lookup, elf_link_hash_traverse): Likewise.
  654. (elf_hash_table, elf_hash_table_id): Likewise.
  655. * elf32-arm.c (elf32_arm_setup_section_lists): Delete redundant
  656. is_elf_hash_table check.
  657. * elf32-csky.c (elf32_csky_setup_section_lists): Likewise.
  658. * elf32-hppa.c (clobber_millicode_symbols): Correct param types.
  659. * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
  660. * elfnn-ia64.c (elfNN_ia64_global_dyn_info_free: Likewise.
  661. (elfNN_ia64_global_dyn_sym_thunk: Likewise.
  662. * elf64-ia64-vms.c (elf64_ia64_global_dyn_info_free): Likewise.
  663. (elf64_ia64_global_dyn_sym_thunk): Likewise.
  664. (elf64_vms_link_add_object_symbols): Pass base type of hash table
  665. to is_elf_hash_table.
  666. * elflink.c (_bfd_elf_dynamic_symbol_p): Likewise.
  667. (_bfd_elf_symbol_refs_local_p, _bfd_elf_add_dynamic_entry): Likewise.
  668. (_bfd_elf_strip_zero_sized_dynamic_sections): Likewise.
  669. (_bfd_elf_link_check_relocs, elf_link_add_object_symbols): Likewise.
  670. (bfd_elf_final_link): Likewise.
  671. * elfnn-aarch64.c (elfNN_aarch64_setup_section_lists): Likewise.
  672. * elf64-ppc.c (ppc64_elf_set_toc): Likewise. Use bfd_link_hash_lookup.
  673. 2021-04-12 Alan Modra <amodra@gmail.com>
  674. * elf-bfd.h (struct elf_backend_data): Return bfd_link_hash_entry*
  675. from elf_backend_archive_symbol_lookup.
  676. (_bfd_elf_archive_symbol_lookup): Return bfd_link_hash_entry*.
  677. * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Likewise. Check
  678. we have a ppc_hash_table before accessing ppc_link_hash_entry
  679. fields.
  680. * elflink.c (_bfd_elf_archive_symbol_lookup): Return
  681. bfd_link_hash_entry*.
  682. (elf_link_add_archive_symbols): Adjust to suit.
  683. 2021-04-12 Nelson Chu <nelson.chu@sifive.com>
  684. * elfxx-riscv.c (riscv_parse_std_ext): Fixed the wrong versions of
  685. i-ext when expanding g-ext.
  686. 2021-04-12 Nelson Chu <nelson.chu@sifive.com>
  687. * elfxx-riscv.c (riscv_ext_dont_care_version): Removed.
  688. (riscv_parse_add_subset): Always add the implicit extensions, even if
  689. their versions are RISCV_UNKNOWN_VERSION.
  690. (riscv_parse_std_ext): Delay to add i-ext as the implicit extension
  691. in the riscv_parse_add_implicit_subsets. Besides, add g-ext as the
  692. implicit extension after it has been expanded.
  693. (riscv_parse_add_implicit_subsets): Updated.
  694. 2021-04-12 Nelson Chu <nelson.chu@sifive.com>
  695. * elfxx-riscv.c (riscv_std_z_ext_strtab): Moved forward.
  696. (riscv_std_s_ext_strtab): Likewise.
  697. (riscv_std_h_ext_strtab): Likewise.
  698. (riscv_std_zxm_ext_strtab): Added for the zxm prefix.
  699. (enum riscv_prefix_ext_class): Moved forward and renamed from
  700. riscv_isa_ext_class. Reorder them according to the parsing order,
  701. since the enum values are used to check the orders in the
  702. riscv_compare_subsets.
  703. (struct riscv_parse_prefix_config): Moved forward and renamed from
  704. riscv_parse_config_t. Also removed the ext_valid_p field, the
  705. related functions are replaced by riscv_valid_prefixed_ext.
  706. (parse_config): Moved forward and updated. The more letters of the
  707. prefix string, the more forward it must be defined. Otherwise, we
  708. will get the wrong mapping when using strncmp in riscv_get_prefix_class.
  709. (riscv_get_prefix_class): Moved forward. Support to parse the
  710. multi-letter prefix, like zxm.
  711. (riscv_known_prefixed_ext): New function, check if the prefixed
  712. extension is supported according to the right riscv_std_*_ext_strtab.
  713. (riscv_valid_prefixed_ext): New function, used to replace the
  714. riscv_ext_*_valid_p functions.
  715. (riscv_init_ext_order): Do not set the values for prefix keywords
  716. since they may have multiple letters for now.
  717. (riscv_compare_subsets): Set the order values of prefix keywords
  718. to negative numbers according to the riscv_prefix_ext_class.
  719. (riscv_parse_std_ext): Call riscv_get_prefix_class to see if we
  720. have parsed the prefixed extensions.
  721. (riscv_parse_prefixed_ext): Updated and removed the parameter config.
  722. Report error when the prefix is unknown.
  723. (riscv_parse_subset): Do not parse the prefixed extensions according
  724. to the orders in the parse_config. Remove the confused message and
  725. let riscv_parse_prefixed_ext to report the details.
  726. * elfxx-riscv.h (enum riscv_isa_ext_class): Moved to elfxx-riscv.c.
  727. (riscv_get_prefix_class): Removed to static.
  728. 2021-04-08 Mike Frysinger <vapier@gentoo.org>
  729. * configure.ac (ACX_BUGURL): Use https://.
  730. * configure.com (COPY_TEXT): Likewise.
  731. * configure: Regenerate.
  732. 2021-04-05 Alan Modra <amodra@gmail.com>
  733. * configure.ac: Don't check for long long or long double type.
  734. Don't check for alloca.h, limits.h, stddef.h, stdlib.h, string.h,
  735. strings.h, time.h, wchar.h, wctype.h or sys/time.h. Don't check
  736. for strtoull, free, malloc, realloc, getenv, strstr, snprintf,
  737. vsnprintf, strlen or setitimer. Sort AC_CHECK_DECLS.
  738. (AC_ISC_POSIX): Don't invoke.
  739. (AC_HEADER_TIME, AC_HEADER_DIRENT, ACX_HEADER_STRING): Likewise.
  740. * sysdep.h: Remove many HAVE_*_H checks and fallback declarations.
  741. Do test HAVE_SYS_TYPES_H. Don't include sys/time.h. Reorder
  742. header order as per automake AC_INCLUDES_DEFAULT.
  743. * bfd-in.h: Include inttypes.h unconditionally.
  744. * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Assume long long and
  745. long double are available.
  746. (bfd_scan_vma): Assume long long and strtoull are available.
  747. * elflink.c: Include limits.h unconditionally.
  748. * elfnn-riscv.c: Likewise.
  749. * wasm-module.c: Likewise.
  750. * hpux-core.c: Include dirent.h unconditionally.
  751. * trad-core.c: Likewise.
  752. * hosts/x86-64linux.h: Include stdlib.h unconditionally.
  753. * peXXigen.c: Remove HAVE_WCHAR_H and HAVE_WCTYPE_H checks.
  754. * elf32-m68hc1x.c: Don't include alloca-conf.h.
  755. * elf64-hppa.c: Likewise.
  756. * som.c: Likewise.
  757. * wasm-module.c: Likewise.
  758. * xsym.c: Likewise.
  759. * bfd-in2.h: Regenerate.
  760. * config.in: Regenerate.
  761. * configure: Regenerate.
  762. 2021-04-01 Tamar Christina <tamar.christina@arm.com>
  763. PR ld/26659
  764. * cofflink.c (_bfd_coff_generic_relocate_section): Ignore overflow.
  765. 2021-04-01 Martin Liska <mliska@suse.cz>
  766. * ecoff.c (strneq): Remove strneq and use startswith.
  767. (_bfd_ecoff_slurp_armap): Likewise.
  768. 2021-04-01 Martin Liska <mliska@suse.cz>
  769. * elf-bfd.h (bfd_section_is_ctf): Use startswith function.
  770. * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
  771. (elf_get_reloc_section): Likewise.
  772. * elf32-arc.c (elf_arc_size_dynamic_sections): Likewise.
  773. * elf32-m32r.c (m32r_elf_section_flags): Likewise.
  774. * elf32-microblaze.c (microblaze_elf_size_dynamic_sections): Likewise.
  775. * elf32-nds32.c (nds32_elf_size_dynamic_sections): Likewise.
  776. (nds32_elf_relocate_section): Likewise.
  777. (nds32_elf_action_discarded): Likewise.
  778. (nds32_elf_check_relocs): Likewise.
  779. (nds32_elf_section_flags): Likewise.
  780. * elf32-or1k.c (or1k_elf_check_relocs): Likewise.
  781. * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
  782. * elf32-rx.c (rx_table_find): Likewise.
  783. (rx_table_map): Likewise.
  784. * elf32-spu.c (spu_elf_backend_symbol_processing): Likewise.
  785. (spu_elf_find_overlays): Likewise.
  786. (needs_ovl_stub): Likewise.
  787. (allocate_spuear_stubs): Likewise.
  788. (build_spuear_stubs): Likewise.
  789. (mark_overlay_section): Likewise.
  790. (spu_elf_auto_overlay): Likewise.
  791. (spu_elf_output_symbol_hook): Likewise.
  792. * elf32-tilepro.c (tilepro_elf_size_dynamic_sections): Likewise.
  793. * elf32-xtensa.c (xtensa_property_section_name): Likewise.
  794. * elf64-ppc.c (ppc64_elf_section_flags): Likewise.
  795. (ppc64_elf_relocate_section): Likewise.
  796. * elflink.c (resolve_section): Likewise.
  797. (UNARY_OP): Likewise.
  798. (BINARY_OP_HEAD): Likewise.
  799. (elf_link_input_bfd): Likewise.
  800. * elfnn-riscv.c (riscv_elf_size_dynamic_sections): Likewise.
  801. * elfxx-riscv.c (riscv_parse_subset): Likewise.
  802. * elfxx-tilegx.c (tilegx_elf_size_dynamic_sections): Likewise.
  803. * opncls.c (get_build_id): Likewise.
  804. 2021-03-31 Alan Modra <amodra@gmail.com>
  805. PR 27671
  806. * bfd-in.h: Don't poison FALSE or TRUE.
  807. * bfd-in2.h: Regenerate.
  808. 2021-03-31 Alan Modra <amodra@gmail.com>
  809. * sysdep.h: POISON_BFD_BOOLEAN: Define.
  810. * aix5ppc-core.c, * aout-cris.c, * aout-ns32k.c, * aout-target.h,
  811. * aoutx.h, * arc-got.h, * archive.c, * archive64.c, * archures.c,
  812. * bfd-in.h, * bfd.c, * bfdwin.c, * binary.c, * cache.c,
  813. * coff-alpha.c, * coff-arm.c, * coff-arm.h, * coff-bfd.c,
  814. * coff-bfd.h, * coff-go32.c, * coff-i386.c, * coff-ia64.c,
  815. * coff-mcore.c, * coff-mips.c, * coff-rs6000.c, * coff-sh.c,
  816. * coff-stgo32.c, * coff-tic30.c, * coff-tic4x.c, * coff-tic54x.c,
  817. * coff-x86_64.c, * coff-z80.c, * coff-z8k.c, * coff64-rs6000.c,
  818. * coffcode.h, * coffgen.c, * cofflink.c, * compress.c,
  819. * corefile.c, * cpu-aarch64.c, * cpu-aarch64.h, * cpu-alpha.c,
  820. * cpu-arc.c, * cpu-arm.c, * cpu-arm.h, * cpu-avr.c, * cpu-bfin.c,
  821. * cpu-bpf.c, * cpu-cr16.c, * cpu-cris.c, * cpu-crx.c,
  822. * cpu-csky.c, * cpu-d10v.c, * cpu-d30v.c, * cpu-dlx.c,
  823. * cpu-epiphany.c, * cpu-fr30.c, * cpu-frv.c, * cpu-ft32.c,
  824. * cpu-h8300.c, * cpu-hppa.c, * cpu-i386.c, * cpu-ia64.c,
  825. * cpu-iamcu.c, * cpu-ip2k.c, * cpu-iq2000.c, * cpu-k1om.c,
  826. * cpu-l1om.c, * cpu-lm32.c, * cpu-m10200.c, * cpu-m10300.c,
  827. * cpu-m32c.c, * cpu-m32r.c, * cpu-m68hc11.c, * cpu-m68hc12.c,
  828. * cpu-m68k.c, * cpu-m9s12x.c, * cpu-m9s12xg.c, * cpu-mcore.c,
  829. * cpu-mep.c, * cpu-metag.c, * cpu-microblaze.c, * cpu-mips.c,
  830. * cpu-mmix.c, * cpu-moxie.c, * cpu-msp430.c, * cpu-mt.c,
  831. * cpu-nds32.c, * cpu-nfp.c, * cpu-nios2.c, * cpu-ns32k.c,
  832. * cpu-or1k.c, * cpu-pdp11.c, * cpu-pj.c, * cpu-powerpc.c,
  833. * cpu-pru.c, * cpu-riscv.c, * cpu-rl78.c, * cpu-rs6000.c,
  834. * cpu-rx.c, * cpu-s12z.c, * cpu-s390.c, * cpu-score.c,
  835. * cpu-sh.c, * cpu-sparc.c, * cpu-spu.c, * cpu-tic30.c,
  836. * cpu-tic4x.c, * cpu-tic54x.c, * cpu-tic6x.c, * cpu-tilegx.c,
  837. * cpu-tilepro.c, * cpu-v850.c, * cpu-v850_rh850.c, * cpu-vax.c,
  838. * cpu-visium.c, * cpu-wasm32.c, * cpu-xc16x.c, * cpu-xgate.c,
  839. * cpu-xstormy16.c, * cpu-xtensa.c, * cpu-z80.c, * cpu-z8k.c,
  840. * dwarf1.c, * dwarf2.c, * ecoff-bfd.h, * ecoff.c, * ecofflink.c,
  841. * elf-attrs.c, * elf-bfd.h, * elf-eh-frame.c, * elf-hppa.h,
  842. * elf-ifunc.c, * elf-m10200.c, * elf-m10300.c, * elf-nacl.c,
  843. * elf-nacl.h, * elf-properties.c, * elf-s390-common.c,
  844. * elf-s390.h, * elf-strtab.c, * elf-vxworks.c, * elf-vxworks.h,
  845. * elf.c, * elf32-am33lin.c, * elf32-arc.c, * elf32-arm.c,
  846. * elf32-arm.h, * elf32-avr.c, * elf32-avr.h, * elf32-bfin.c,
  847. * elf32-bfin.h, * elf32-cr16.c, * elf32-cr16.h, * elf32-cris.c,
  848. * elf32-crx.c, * elf32-csky.c, * elf32-csky.h, * elf32-d10v.c,
  849. * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c,
  850. * elf32-fr30.c, * elf32-frv.c, * elf32-ft32.c, * elf32-gen.c,
  851. * elf32-h8300.c, * elf32-hppa.c, * elf32-hppa.h, * elf32-i386.c,
  852. * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c, * elf32-m32c.c,
  853. * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c,
  854. * elf32-m68hc1x.c, * elf32-m68hc1x.h, * elf32-m68k.c,
  855. * elf32-m68k.h, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c,
  856. * elf32-metag.h, * elf32-microblaze.c, * elf32-mips.c,
  857. * elf32-moxie.c, * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c,
  858. * elf32-nios2.c, * elf32-nios2.h, * elf32-or1k.c, * elf32-pj.c,
  859. * elf32-ppc.c, * elf32-ppc.h, * elf32-pru.c, * elf32-rl78.c,
  860. * elf32-rx.c, * elf32-s12z.c, * elf32-s390.c, * elf32-score.c,
  861. * elf32-score.h, * elf32-score7.c, * elf32-sh-relocs.h,
  862. * elf32-sh.c, * elf32-sparc.c, * elf32-spu.c, * elf32-spu.h,
  863. * elf32-tic6x.c, * elf32-tic6x.h, * elf32-tilegx.c,
  864. * elf32-tilepro.c, * elf32-v850.c, * elf32-v850.h,
  865. * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c,
  866. * elf32-xc16x.c, * elf32-xgate.c, * elf32-xstormy16.c,
  867. * elf32-xtensa.c, * elf32-z80.c, * elf64-alpha.c, * elf64-bpf.c,
  868. * elf64-gen.c, * elf64-hppa.c, * elf64-ia64-vms.c,
  869. * elf64-mips.c, * elf64-mmix.c, * elf64-nfp.c, * elf64-ppc.c,
  870. * elf64-ppc.h, * elf64-s390.c, * elf64-sparc.c,
  871. * elf64-tilegx.c, * elf64-x86-64.c, * elfcode.h,
  872. * elfcore.h, * elflink.c, * elfn32-mips.c, * elfnn-aarch64.c,
  873. * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-aarch64.c,
  874. * elfxx-aarch64.h, * elfxx-ia64.c, * elfxx-ia64.h,
  875. * elfxx-mips.c, * elfxx-mips.h, * elfxx-riscv.c, * elfxx-riscv.h,
  876. * elfxx-sparc.c, * elfxx-sparc.h, * elfxx-target.h,
  877. * elfxx-tilegx.c, * elfxx-tilegx.h, * elfxx-x86.c, * elfxx-x86.h,
  878. * format.c, * genlink.h, * hash.c, * i386aout.c, * i386lynx.c,
  879. * i386msdos.c, * ihex.c, * libaout.h, * libbfd-in.h,
  880. * libbfd.c, * libcoff-in.h, * libecoff.h, * libpei.h,
  881. * libxcoff.h, * linker.c, * mach-o-aarch64.c, * mach-o-arm.c,
  882. * mach-o-i386.c, * mach-o-x86-64.c, * mach-o.c, * mach-o.h,
  883. * merge.c, * mmo.c, * netbsd.h, * opncls.c, * pc532-mach.c,
  884. * pdp11.c, * pe-arm.c, * pe-i386.c, * pe-mcore.c, * pe-sh.c,
  885. * pe-x86_64.c, * peXXigen.c, * pef.c, * pei-arm.c, * pei-i386.c,
  886. * pei-ia64.c, * pei-mcore.c, * pei-sh.c, * pei-x86_64.c,
  887. * peicode.h, * plugin.c, * plugin.h, * ppcboot.c, * reloc.c,
  888. * reloc16.c, * rs6000-core.c, * section.c, * simple.c, * som.c,
  889. * som.h, * srec.c, * stabs.c, * syms.c, * targets.c, * tekhex.c,
  890. * verilog.c, * vms-alpha.c, * vms-lib.c, * vms-misc.c, * vms.h,
  891. * wasm-module.c, * xcofflink.c, * xcofflink.h, * xsym.c,
  892. * xsym.h: Replace bfd_boolean with bool, FALSE with false, and
  893. TRUE with true throughout.
  894. * bfd-in2.h: Regenerate.
  895. * libbfd.h: Regenerate.
  896. * libcoff.h: Regenerate.
  897. 2021-03-31 Alan Modra <amodra@gmail.com>
  898. * bfd-in.h: Include stdbool.h.
  899. (bfd_boolean): Define as bool
  900. * bfd-in2.h: Regenerate.
  901. 2021-03-31 Alan Modra <amodra@gmail.com>
  902. * .gitignore: Delete bfd_stdint.h entry.
  903. * Makefile.am (bfdinclude_HEADERS): Delete bfd_stdint.h.
  904. (BUILD_HFILES, LOCAL_H_DEPS): Likewise.
  905. * bfd-in.h: Include stdint.h in place of bfd_stdint.h.
  906. * configure.ac: Don't invoke GCC_HEADER_STDINT.
  907. * configure.com: Don't create bfd_stdint.h.
  908. * Makefile.in: Regenerate.
  909. * aclocal.m4: Regenerate.
  910. * bfd-in2.h: Regenerate.
  911. * config.in: Regenerate.
  912. * configure: Regenerate.
  913. * doc/Makefile.in: Regenerate.
  914. * po/BLD-POTFILES.in: Regenerate.
  915. 2021-03-31 Alan Modra <amodra@gmail.com>
  916. * bfd-in.h: Include string.h.
  917. (LITMEMCPY, LITSTRCPY): Delete.
  918. * bfd-in2.h: Regenerate.
  919. 2021-03-30 Alan Modra <amodra@gmail.com>
  920. * elflink.c (elf_link_add_object_symbols): Don't set h->indx
  921. unless is_elf_hash_table.
  922. 2021-03-29 Alan Modra <amodra@gmail.com>
  923. * aoutx.h (aout_link_write_symbols): Don't cast boolean expression
  924. to bfd_boolean.
  925. * elf32-or1k.c (or1k_set_got_and_rela_sizes): Dont compare booleans
  926. against FALSE.
  927. * elf32-arc.c (name_for_global_symbol): Don't compare boolean to TRUE.
  928. (is_reloc_PC_relative): Don't use "boolean_condition ? TRUE : FALSE".
  929. (is_reloc_SDA_relative, is_reloc_for_GOT): Likewise.
  930. (is_reloc_for_PLT, is_reloc_for_TLS): Likewise.
  931. * elf32-arm.c (stm32l4xx_need_create_replacing_stub): Likewise.
  932. * elf32-nds32.c (insert_nds32_elf_blank): Likewise.
  933. * elf32-rx.c (rx_set_section_contents): Likewise.
  934. * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Likewise.
  935. * elfxx-mips.c (_bfd_mips_elf_ignore_undef_symbol): Likewise.
  936. * mach-o.c (bfd_mach_o_read_command): Likewise.
  937. * targets.c (bfd_get_target_info): Likewise.
  938. 2021-03-29 Alan Modra <amodra@gmail.com>
  939. * coff-z80.c (z80_is_local_label_name): Return bfd_boolean.
  940. * elf32-z80.c (z80_is_local_label_name): Likewise.
  941. * elf32-spu.c (spu_elf_modify_headers): Likewise.
  942. * elf32-nds32.h (struct elf_nds32_link_hash_table <hyper_relax>):
  943. Change type to int.
  944. * vms-lib.c (_bfd_vms_lib_write_archive_contents): Correct test
  945. for error return from vms_write_data_block.
  946. 2021-03-29 Alan Modra <amodra@gmail.com>
  947. * elf32-i386.c (elf_i386_finish_local_dynamic_symbol): Return int.
  948. * elf64-ia64-vms.c (elf64_ia64_local_dyn_info_free): Likewise.
  949. (elf64_ia64_local_dyn_sym_thunk): Likewise.
  950. * elf64-x86-64.c (elf_x86_64_finish_local_dynamic_symbol): Likewise.
  951. * elfnn-aarch64.c (elfNN_aarch64_allocate_local_ifunc_dynrelocs),
  952. (elfNN_aarch64_finish_local_dynamic_symbol): Likewise.
  953. * elfnn-ia64.c (elfNN_ia64_local_dyn_info_free): Likewise.
  954. (elfNN_ia64_local_dyn_sym_thunk): Likewise.
  955. * elfnn-riscv.c (allocate_local_ifunc_dynrelocs): Likewise.
  956. (riscv_pcrel_reloc_eq): Likewise.
  957. (riscv_elf_finish_local_dynamic_symbol): Likewise.
  958. * elfxx-sparc.c (allocate_local_dynrelocs): Likewise.
  959. (finish_local_dynamic_symbol): Likewise.
  960. * elfxx-x86.c (elf_x86_allocate_local_dynreloc): Likewise.
  961. * elfxx-mips.c (mips_elf_resolve_got_page_ref): Likewise.
  962. (mips_elf_count_got_symbols): Change return type to bfd_boolean.
  963. 2021-03-29 Alan Modra <amodra@gmail.com>
  964. * elflink.c (elf_link_output_symstrtab): Make flinfo parameter
  965. a void pointer.
  966. (bfd_elf_final_link): Delete out_sym_func typedef and don't cast
  967. elf_link_output_symstrtab when calling output_arch_syms and
  968. output_arch_local_syms.
  969. * elf-bfd.h (struct elf_backend_data <elf_backend_output_arch_syms,
  970. elf_backend_output_arch_local_syms>): Change return type of func
  971. arg to match elf_link_output_symstrtab.
  972. * elf-vxworks.h (elf_vxworks_link_output_symbol_hook): Correct
  973. return type.
  974. * elf32-nds32.c (nds32_elf_output_symbol_hook): Correct return type.
  975. (nds32_elf_output_arch_syms): Correct func return type.
  976. 2021-03-29 Alan Modra <amodra@gmail.com>
  977. * elf-m10200.c (mn10200_elf_relocate_section): Return int.
  978. * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
  979. * elf32-arc.c (elf_arc_relocate_section): Likewise.
  980. * elf32-arm.c (elf32_arm_relocate_section): Likewise.
  981. * elf32-avr.c (elf32_avr_relocate_section): Likewise.
  982. * elf32-bfin.c (bfin_relocate_section): Likewise.
  983. (bfinfdpic_relocate_section): Likewise.
  984. * elf32-cr16.c (elf32_cr16_relocate_section): Likewise.
  985. * elf32-cris.c (cris_elf_relocate_section): Likewise.
  986. * elf32-crx.c (elf32_crx_relocate_section): Likewise.
  987. * elf32-csky.c (csky_elf_relocate_section): Likewise.
  988. * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
  989. * elf32-epiphany.c (epiphany_elf_relocate_section): Likewise.
  990. * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
  991. * elf32-frv.c (elf32_frv_relocate_section): Likewise.
  992. * elf32-ft32.c (ft32_elf_relocate_section): Likewise.
  993. * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
  994. * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
  995. * elf32-i386.c (elf_i386_relocate_section): Likewise.
  996. * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
  997. * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
  998. * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
  999. * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
  1000. * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
  1001. * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
  1002. * elf32-m68hc1x.h (elf32_m68hc11_relocate_section): Likewise.
  1003. * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
  1004. * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
  1005. * elf32-mep.c (mep_elf_relocate_section): Likewise.
  1006. * elf32-metag.c (elf_metag_relocate_section): Likewise.
  1007. * elf32-microblaze.c (microblaze_elf_relocate_section): Likewise.
  1008. * elf32-moxie.c (moxie_elf_relocate_section): Likewise.
  1009. * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
  1010. * elf32-mt.c (mt_elf_relocate_section): Likewise.
  1011. * elf32-nds32.c (nds32_elf_relocate_section): Likewise.
  1012. * elf32-nios2.c (nios2_elf32_relocate_section): Likewise.
  1013. * elf32-or1k.c (or1k_elf_relocate_section): Likewise.
  1014. * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
  1015. * elf32-pru.c (pru_elf32_relocate_section): Likewise.
  1016. * elf32-rl78.c (rl78_elf_relocate_section): Likewise.
  1017. * elf32-rx.c (rx_elf_relocate_section): Likewise.
  1018. * elf32-s390.c (elf_s390_relocate_section): Likewise.
  1019. * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
  1020. (_bfd_score_elf_relocate_section): Likewise.
  1021. * elf32-score.h (s7_bfd_score_elf_relocate_section): Likewise.
  1022. * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
  1023. * elf32-sh.c (sh_elf_relocate_section): Likewise.
  1024. * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
  1025. * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise.
  1026. * elf32-v850.c (v850_elf_relocate_section): Likewise.
  1027. * elf32-vax.c (elf_vax_relocate_section): Likewise.
  1028. * elf32-visium.c (visium_elf_relocate_section): Likewise.
  1029. * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
  1030. * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
  1031. * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
  1032. * elf32-z80.c (z80_elf_relocate_section): Likewise.
  1033. * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
  1034. (elf64_alpha_relocate_section): Likewise.
  1035. * elf64-bpf.c (bpf_elf_relocate_section): Likewise.
  1036. * elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
  1037. * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise.
  1038. * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
  1039. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
  1040. * elf64-s390.c (elf_s390_relocate_section): Likewise.
  1041. * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
  1042. * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Likewise.
  1043. * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
  1044. * elfnn-riscv.c (riscv_elf_relocate_section): Likewise.
  1045. * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
  1046. * elfxx-mips.h (_bfd_mips_elf_relocate_section): Likewise.
  1047. * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
  1048. * elfxx-sparc.h (_bfd_sparc_elf_relocate_section): Likewise.
  1049. * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise.
  1050. * elfxx-tilegx.h (tilegx_elf_relocate_section): Likewise.
  1051. 2021-03-26 Keith Seitz <keiths@redhat.com>
  1052. * elfcore.h (_bfd_elf_core_find_build_id): Seek file
  1053. offset of program headers after calling elf_read_notes.
  1054. 2021-03-23 Jan Beulich <jbeulich@suse.com>
  1055. * dwarf2.c (read_indexed_string): Rename index to idx.
  1056. 2021-03-22 Martin Liska <mliska@suse.cz>
  1057. * bfd-in.h (startswith): Add startswith function.
  1058. (CONST_STRNEQ): Remove.
  1059. * bfd-in2.h (startswith): Regenerate with make headers.
  1060. * archive.c (bfd_slurp_armap): Replace usage of CONST_STRNEQ with startswith.
  1061. (_bfd_slurp_extended_name_table): Likewise.
  1062. * archive64.c (_bfd_archive_64_bit_slurp_armap): Likewise.
  1063. * bfd.c (bfd_get_sign_extend_vma): Likewise.
  1064. (bfd_convert_section_size): Likewise.
  1065. (bfd_convert_section_contents): Likewise.
  1066. * coff-stgo32.c (go32exe_create_stub): Likewise.
  1067. (go32exe_check_format): Likewise.
  1068. * coffcode.h (styp_to_sec_flags): Likewise.
  1069. (GNU_DEBUGALTLINK): Likewise.
  1070. * coffgen.c (_bfd_coff_section_already_linked): Likewise.
  1071. (coff_gc_sweep): Likewise.
  1072. (bfd_coff_gc_sections): Likewise.
  1073. * cofflink.c (coff_link_add_symbols): Likewise.
  1074. (process_embedded_commands): Likewise.
  1075. * compress.c (bfd_is_section_compressed_with_header): Likewise.
  1076. (bfd_init_section_decompress_status): Likewise.
  1077. * dwarf2.c (find_debug_info): Likewise.
  1078. (place_sections): Likewise.
  1079. * ecoff.c (_bfd_ecoff_slurp_armap): Likewise.
  1080. * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Likewise.
  1081. * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
  1082. (assign_section_numbers): Likewise.
  1083. (elfcore_grok_win32pstatus): Likewise.
  1084. * elf32-arm.c (cmse_scan): Likewise.
  1085. (elf32_arm_gc_mark_extra_sections): Likewise.
  1086. (elf32_arm_size_dynamic_sections): Likewise.
  1087. (is_arm_elf_unwind_section_name): Likewise.
  1088. * elf32-bfin.c (bfin_size_dynamic_sections): Likewise.
  1089. * elf32-cr16.c (_bfd_cr16_elf_size_dynamic_sections): Likewise.
  1090. * elf32-cris.c (elf_cris_size_dynamic_sections): Likewise.
  1091. * elf32-csky.c (csky_elf_size_dynamic_sections): Likewise.
  1092. * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
  1093. * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
  1094. * elf32-lm32.c (lm32_elf_size_dynamic_sections): Likewise.
  1095. * elf32-m32r.c (m32r_elf_size_dynamic_sections): Likewise.
  1096. * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
  1097. * elf32-metag.c (elf_metag_size_dynamic_sections): Likewise.
  1098. * elf32-msp430.c (msp430_elf_relax_delete_bytes): Likewise.
  1099. * elf32-nios2.c (nios2_elf32_size_dynamic_sections): Likewise.
  1100. * elf32-or1k.c (or1k_elf_size_dynamic_sections): Likewise.
  1101. * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
  1102. * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
  1103. * elf32-score.c (s3_bfd_score_elf_size_dynamic_sections): Likewise.
  1104. * elf32-score7.c (s7_bfd_score_elf_size_dynamic_sections): Likewise.
  1105. * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
  1106. * elf32-tic6x.c (is_tic6x_elf_unwind_section_name): Likewise.
  1107. (elf32_tic6x_size_dynamic_sections): Likewise.
  1108. * elf32-vax.c (elf_vax_size_dynamic_sections): Likewise.
  1109. * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Likewise.
  1110. (xtensa_is_insntable_section): Likewise.
  1111. (xtensa_is_littable_section): Likewise.
  1112. (xtensa_is_proptable_section): Likewise.
  1113. (xtensa_property_section_name): Likewise.
  1114. (xtensa_callback_required_dependence): Likewise.
  1115. * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
  1116. * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
  1117. * elf64-ia64-vms.c (is_unwind_section_name): Likewise.
  1118. (get_reloc_section): Likewise.
  1119. (elf64_ia64_size_dynamic_sections): Likewise.
  1120. (elf64_ia64_object_p): Likewise.
  1121. * elf64-mmix.c (mmix_elf_add_symbol_hook): Likewise.
  1122. * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Likewise.
  1123. * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
  1124. * elflink.c (elf_link_add_object_symbols): Likewise.
  1125. (_bfd_elf_gc_mark_extra_sections): Likewise.
  1126. (bfd_elf_parse_eh_frame_entries): Likewise.
  1127. (_bfd_elf_section_already_linked): Likewise.
  1128. * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Likewise.
  1129. * elfnn-ia64.c (is_unwind_section_name): Likewise.
  1130. (elfNN_ia64_size_dynamic_sections): Likewise.
  1131. (elfNN_ia64_object_p): Likewise.
  1132. * elfxx-mips.c (FN_STUB_P): Likewise.
  1133. (CALL_STUB_P): Likewise.
  1134. (CALL_FP_STUB_P): Likewise.
  1135. (_bfd_mips_elf_section_from_shdr): Likewise.
  1136. (_bfd_mips_elf_fake_sections): Likewise.
  1137. (_bfd_mips_elf_size_dynamic_sections): Likewise.
  1138. (_bfd_mips_final_write_processing): Likewise.
  1139. (_bfd_mips_elf_final_link): Likewise.
  1140. * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Likewise.
  1141. * elfxx-x86.c (elf_i386_is_reloc_section): Likewise.
  1142. (elf_x86_64_is_reloc_section): Likewise.
  1143. * hpux-core.c (thread_section_p): Likewise.
  1144. * libcoff.h (bfd_pei_p): Likewise.
  1145. * linker.c (REAL): Likewise.
  1146. (unwrap_hash_lookup): Likewise.
  1147. (_bfd_generic_link_add_one_symbol): Likewise.
  1148. * mmo.c (mmo_internal_write_section): Likewise.
  1149. * osf-core.c (osf_core_core_file_p): Likewise.
  1150. * pef.c (bfd_pef_print_symbol): Likewise.
  1151. * pei-x86_64.c (pex64_print_all_pdata_sections): Likewise.
  1152. * som.c (som_slurp_symbol_table): Likewise.
  1153. (som_slurp_armap): Likewise.
  1154. * wasm-module.c (wasm_compute_custom_section_file_position): Likewise.
  1155. 2021-03-22 Jan Beulich <jbeulich@suse.com>
  1156. * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Add missing
  1157. language translation wrapping to _bfd_error_handler()
  1158. invocations.
  1159. 2021-03-21 Alan Modra <amodra@gmail.com>
  1160. * bfd-in.h (startswith): New inline.
  1161. (CONST_STRNEQ): Use startswith.
  1162. * bfd-in2.h: Regenerate.
  1163. 2021-03-20 Alan Modra <amodra@gmail.com>
  1164. PR 27590
  1165. * elf.c (_bfd_elf_make_section_from_shdr): Remove SHF_EXCLUDE
  1166. test for .gnu.debuglto*.
  1167. 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
  1168. PR ld/27590
  1169. * elf.c (_bfd_elf_make_section_from_shdr): Treat
  1170. .gnu.debuglto_.debug_ section as debugging section unless it is
  1171. marked with SHF_EXCLUDE.
  1172. * elflink.c (elf_create_symbuf): Revert commit 994b2513281.
  1173. (bfd_elf_match_symbols_in_sections): Ignore section symbols when
  1174. matching non-debugging sections or linkonce section with comdat
  1175. section.
  1176. 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
  1177. PR ld/27587
  1178. * dwarf2.c (read_attribute_value): Check version >= 3 for
  1179. DW_FORM_ref_addr.
  1180. 2021-03-16 Nick Clifton <nickc@redhat.com>
  1181. * peXXigen.c (_bfd_XXi_swap_aux_out): Avoid potential buffer
  1182. overrun by using sizeof of the destination x_fname field as the
  1183. limit for a memcpy.
  1184. 2021-03-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
  1185. * elfxx-riscv.c (riscv_std_z_ext_strtab): Add zba, zbb and zbc.
  1186. 2021-03-12 Clément Chigot <clement.chigot@atos.net>
  1187. * reloc.c (BFD_RELOC_PPC_TLS_LE, BFD_RELOC_PPC_TLS_IE,
  1188. BFD_RELOC_PPC_TLS_M, BFD_RELOC_PPC_TLS_ML, BFD_RELOC_PPC64_TLS_GD,
  1189. BFD_RELOC_PPC64_TLS_LD, BFD_RELOC_PPC64_TLS_LE,
  1190. BFD_RELOC_PPC64_TLS_IE, BFD_RELOC_PPC64_TLS_M,
  1191. BFD_RELOC_PPC64_TLS_ML): New relocations.
  1192. * bfd-in2.h: Regenerate.
  1193. * libbfd.h: Regenerate.
  1194. * coff-rs6000.c (xcoff_calculate_relocation): Call
  1195. xcoff_reloc_type_tls for TLS relocations.
  1196. (xcoff_howto_table): Implement TLS relocations.
  1197. (_bfd_xcoff_reloc_type_lookup): Add cases TLS relocations.
  1198. (xcoff_reloc_type_tls): New function.
  1199. * coff64-rs6000.c (xcoff_calculate_relocation): Likewise.
  1200. (xcoff_howto_table): Likewise.
  1201. (_bfd_xcoff_reloc_type_lookup): Likewise.
  1202. * coffcode.h (sec_to_styp_flags): Handle TLS sections.
  1203. (styp_to_sec_flags): Likewise.
  1204. (coff_compute_section_file_positions): Avoid file offset
  1205. optimisation for .data when the previous section is .tdata.
  1206. (coff_write_object_contents): Handle TLS sections.
  1207. * coffswap.h (coff_swap_aouthdr_out): Add support for
  1208. new fields in aouthdr.
  1209. * libxcoff.h (xcoff_reloc_type_tls): Add prototype.
  1210. * xcofflink.c (xcoff_link_add_symbols): Handle XMC_UL.
  1211. (xcoff_need_ldrel_p): Add cases for TLS relocations.
  1212. (xcoff_create_ldrel): Add l_symndx for TLS sections.
  1213. 2021-03-12 Clément Chigot <clement.chigot@atos.net>
  1214. * reloc.c (BFD_RELOC_PPC_TOC16_HI, BFD_RELOC_PPC_TOC16_LO):
  1215. New relocations.
  1216. * bfd-in2.h: Regenerate.
  1217. * libbfd.h: Regenerate.
  1218. * coff-rs6000.c (xcoff_calculate_relocation): Call
  1219. xcoff_reloc_type_toc for R_TOCU and R_TOCL.
  1220. (xcoff_howto_table): Remove src_mask for TOC relocations.
  1221. Add R_TOCU and R_TOCL howtos.
  1222. (_bfd_xcoff_reloc_type_lookup): Add cases for
  1223. BFD_RELOC_PPC_TOC16_HI and BFD_RELOC_PPC_TOC16_LO.
  1224. (xcoff_reloc_type_toc): Compute the whole offset.
  1225. Implement R_TOCU and R_TOCL.
  1226. * coff64-rs6000.c (xcoff64_calculate_relocation):
  1227. Likewise.
  1228. (xcoff64_howto_table): Likewise.
  1229. (xcoff64_reloc_type_lookup): Likewise.
  1230. 2021-03-12 Clément Chigot <clement.chigot@atos.net>
  1231. * coff-rs6000.c (xcoff_calculate_relocation): Correct and
  1232. add new relocations.
  1233. (xcoff_howto_table): Likewise.
  1234. (xcoff_rtype2howto): Increase r_type maximum value.
  1235. (xcoff_ppc_relocate_section): Reuse predefined HOWTOs instead
  1236. of create a new one from scratch. Enable only some relocations
  1237. to have a changing r_size.
  1238. * coff64-rs6000.c (xcoff64_calculate_relocation): Likewise.
  1239. (xcoff64_howto_table): Likewise.
  1240. (xcoff64_rtype2howto): Likewise.
  1241. (xcoff64_ppc_relocate_section): Likewise.
  1242. * libxcoff.h (XCOFF_MAX_CALCULATE_RELOCATION): Fix value.
  1243. 2021-03-12 Clément Chigot <clement.chigot@atos.net>
  1244. * coff64-rs6000.c (xcoff64_ppc_relocate_section): Move.
  1245. 2021-03-12 Clément Chigot <clement.chigot@atos.net>
  1246. * coff64-rs6000.c (xcoff64_write_object_contents): Remove.
  1247. * coffcode.h (coff_write_object_contents): Add bfd_mach_ppc_620
  1248. support for o_cputype field. Avoid creating an empty a.out header
  1249. for XCOFF64.
  1250. 2021-03-12 Clément Chigot <clement.chigot@atos.net>
  1251. * coff64-rs6000.c (xcoff64_create_csect_from_smclas): Add
  1252. missing smclass.
  1253. 2021-03-11 Nelson Chu <nelson.chu@sifive.com>
  1254. * elfnn-riscv.c (riscv_elf_link_hash_table): New boolean
  1255. restart_relax, used to check if we need to run the whole
  1256. relaxations from relax pass 0 to 2 again.
  1257. (riscv_elf_link_hash_table_create): Init restart_relax to FALSE.
  1258. (_bfd_riscv_relax_align): Remove obsolete sec_flg0 set.
  1259. (_bfd_riscv_relax_delete): Set again to TRUE if we do delete the code.
  1260. (bfd_elfNN_riscv_restart_relax_sections): New function. Called by
  1261. after_allocation to check if we need to run the whole relaxations again.
  1262. (_bfd_riscv_relax_section): We will only enter into the relax pass 3
  1263. when the restart_relax is FALSE; At last set restart_relax to TRUE if
  1264. again is TRUE, too.
  1265. * elfxx-riscv.h (bfd_elf32_riscv_restart_relax_sections): Declaration.
  1266. (bfd_elf64_riscv_restart_relax_sections): Likewise.
  1267. 2021-03-10 Jan Beulich <jbeulich@suse.com>
  1268. * cofflink.c (_bfd_coff_write_global_sym): Range-check symbol
  1269. offset.
  1270. 2021-03-10 Alan Modra <amodra@gmail.com>
  1271. Jan Beulich <jbeulich@suse.com>
  1272. * elf.c (bfd_elf_generic_reloc): Make references between debug
  1273. sections use section relative values.
  1274. 2021-03-09 Jan Beulich <jbeulich@suse.com>
  1275. * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Diagnose out of range RVA.
  1276. 2021-03-05 H.J. Lu <hongjiu.lu@intel.com>
  1277. PR ld/27425
  1278. PR ld/27432
  1279. * bfd.c (_bfd_get_link_info): New function.
  1280. * elf-bfd.h (output_elf_obj_tdata): Add link_info.
  1281. (elf_link_info): New.
  1282. * libbfd-in.h (_bfd_get_link_info): New prototype.
  1283. * coff-x86_64.c (coff_amd64_reloc): Also subtract __ImageBase for
  1284. R_AMD64_IMAGEBASE when generating x86-64 ELF executable.
  1285. * pe-x86_64.c: Include "coff/internal.h" and "libcoff.h".
  1286. (pex64_link_add_symbols): New function.
  1287. (coff_bfd_link_add_symbols): New macro.
  1288. * libbfd.h: Regenerated.
  1289. 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
  1290. Andrew Burgess <andrew.burgess@embecosm.com>
  1291. * elf-bfd.h (elfcore_write_riscv_csr): Declare.
  1292. * elf.c (elfcore_grok_riscv_csr): New function.
  1293. (elfcore_grok_note): Handle NT_RISCV_CSR.
  1294. (elfcore_write_riscv_csr): New function.
  1295. (elfcore_write_register_note): Handle '.reg-riscv-csr'.
  1296. 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
  1297. Andrew Burgess <andrew.burgess@embecosm.com>
  1298. * elfnn-riscv.c (PRPSINFO_PR_FNAME_LENGTH): Define.
  1299. (PRPSINFO_PR_PSARGS_LENGTH): Define.
  1300. (riscv_write_core_note): New function.
  1301. (riscv_elf_grok_psinfo): Make use of two new length defines.
  1302. (elf_backend_write_core_note): Define.
  1303. 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
  1304. Andrew Burgess <andrew.burgess@embecosm.com>
  1305. * elf-bfd.h (elfcore_write_gdb_tdesc): Declare new function.
  1306. * elf.c (elfcore_grok_gdb_tdesc): New function.
  1307. (elfcore_grok_note): Handle NT_GDB_TDESC.
  1308. (elfcore_write_gdb_tdesc): New function.
  1309. (elfcore_write_register_note): Handle NT_GDB_TDESC.
  1310. 2021-03-05 Nick Clifton <nickc@redhat.com>
  1311. PR 27521
  1312. * dwarf2.c (is_str_attr): Add DW_FORM_strx* forms.
  1313. (read_indexed_string): Placeholder function.
  1314. (read_attribute_value): Handle DW_FORM_strx* and DW_FORM_addrx*
  1315. forms.
  1316. 2021-03-05 Alan Modra <amodra@gmail.com>
  1317. * reloc.c (bfd_perform_relocation): Revert 2021-01-12 and
  1318. 2020-09-16 changes.
  1319. * coff-x86_64.c (coff_amd64_reloc): Do more or less the same
  1320. adjustments here instead. Separate pc-relative adjustments
  1321. from symbol related adjustments. Tidy comments and formatting.
  1322. 2021-03-04 Jan Beulich <jbeulich@suse.com>
  1323. * coffcode.h (sec_to_styp_flags): Don't set IMAGE_SCN_LNK_* in
  1324. final PE images.
  1325. 2021-03-04 Alan Modra <amodra@gmail.com>
  1326. * rs6000-core.c (rs6000coff_core_p): Correct prototype.
  1327. 2021-03-03 Alan Modra <amodra@gmail.com>
  1328. PR 27500
  1329. * elflink.c (_bfd_elf_gc_mark_rsec): Do special start/stop
  1330. processing not when start/stop symbol section is unmarked but
  1331. on first time a start/stop symbol is processed.
  1332. 2021-03-03 Alan Modra <amodra@gmail.com>
  1333. * reloc.c: Include x86_64.h rather than internal.h.
  1334. 2021-03-02 Nick Clifton <nickc@redhat.com>
  1335. PR 27484
  1336. * dwarf2.c (scan_unit_for_symbols): Scan twice, once to accumulate
  1337. function and variable tags and a second time to resolve their
  1338. attributes.
  1339. 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
  1340. * elf-strtab.c (_bfd_elf_strtab_str): Skip strings with zero refcount.
  1341. 2021-03-02 Alan Modra <amodra@gmail.com>
  1342. PR 27451
  1343. * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore synthesized
  1344. linker defined start/stop symbols when start_stop_gc.
  1345. 2021-03-02 Alan Modra <amodra@gmail.com>
  1346. * elf64-ppc.c (ppc64_elf_relocate_section): Don't optimise got
  1347. indirect to pc-relative or toc-relative for undefined symbols.
  1348. 2021-03-01 Alan Modra <amodra@gmail.com>
  1349. Fangrui Song <maskray@google.com>
  1350. * elflink.c (_bfd_elf_gc_mark_rsec): Ignore synthesized linker
  1351. defined start/stop symbols when start_stop_gc.
  1352. (bfd_elf_gc_mark_dynamic_ref_symbol): Likewise.
  1353. (bfd_elf_define_start_stop): Don't modify ldscript_def syms.
  1354. * linker.c (bfd_generic_define_start_stop): Likewise.
  1355. 2021-02-25 Alan Modra <amodra@gmail.com>
  1356. PR 27441
  1357. * elf-bfd.h (struct elf_link_hash_entry): Add ref_ir_nonweak.
  1358. * elflink.c (elf_link_add_object_symbols): Set ref_ir_nonweak and
  1359. use when deciding an as-needed library should be loaded instead
  1360. of using the binding of the library definition.
  1361. 2021-02-24 Alan Modra <amodra@gmail.com>
  1362. PR 27459
  1363. * coff-stgo32.c (go32exe_check_format): Sanity check size of
  1364. header to avoid a buffer overflow.
  1365. 2021-02-22 Alan Modra <amodra@gmail.com>
  1366. * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Remove BFD_RELOC_16.
  1367. * coff64-rs6000.c (xcoff64_reloc_type_lookup): Likewise.
  1368. 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
  1369. PR 27158
  1370. * elfnn-riscv.c (perform_relocation): Updated encoding macros.
  1371. (_bfd_riscv_relax_call): Likewise.
  1372. (_bfd_riscv_relax_lui): Likewise.
  1373. * elfxx-riscv.c (howto_table): Likewise.
  1374. 2021-02-18 Nelson Chu <nelson.chu@sifive.com>
  1375. * Makefile.am: Added cpu-riscv.h.
  1376. * Makefile.in: Regenerated.
  1377. * po/SRC-POTFILES.in: Regenerated.
  1378. * cpu-riscv.h: Added to support spec versions controlling.
  1379. Also added extern arrays and functions for cpu-riscv.c.
  1380. (enum riscv_spec_class): Define all spec classes here uniformly.
  1381. (struct riscv_spec): Added for all specs.
  1382. (RISCV_GET_SPEC_CLASS): Added to reduce repeated code.
  1383. (RISCV_GET_SPEC_NAME): Likewise.
  1384. (RISCV_GET_ISA_SPEC_CLASS): Added to get ISA spec class.
  1385. (RISCV_GET_PRIV_SPEC_CLASS): Added to get privileged spec class.
  1386. (RISCV_GET_PRIV_SPEC_NAME): Added to get privileged spec name.
  1387. * cpu-riscv.c (struct priv_spec_t): Replaced with struct riscv_spec.
  1388. (riscv_get_priv_spec_class): Replaced with RISCV_GET_PRIV_SPEC_CLASS.
  1389. (riscv_get_priv_spec_name): Replaced with RISCV_GET_PRIV_SPEC_NAME.
  1390. (riscv_priv_specs): Moved below.
  1391. (riscv_get_priv_spec_class_from_numbers): Likewise, updated.
  1392. (riscv_isa_specs): Moved from include/opcode/riscv.h.
  1393. * elfnn-riscv.c: Included cpu-riscv.h.
  1394. (riscv_merge_attributes): Initialize in_priv_spec and out_priv_spec.
  1395. * elfxx-riscv.c: Included cpu-riscv.h and opcode/riscv.h.
  1396. (RISCV_UNKNOWN_VERSION): Moved from include/opcode/riscv.h.
  1397. * elfxx-riscv.h: Removed extern functions to cpu-riscv.h.
  1398. 2021-02-17 Alan Modra <amodra@gmail.com>
  1399. * wasm-module.c: Guard include of limits.h.
  1400. (CHAR_BIT): Provide backup define.
  1401. (wasm_read_leb128): Use CHAR_BIT to size "result" in bits.
  1402. Correct signed overflow checking.
  1403. 2021-02-17 Nelson Chu <nelson.chu@sifive.com>
  1404. PR 27200
  1405. * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Delay
  1406. copying the elf flags from input BFD to output BFD, until we have
  1407. checked if the input BFD has no code section or not. Also fix the
  1408. problem that we only check the first section rather than the entire
  1409. sections for input BFD.
  1410. 2021-02-16 Alan Modra <amodra@gmail.com>
  1411. * libbfd.c (_bfd_read_unsigned_leb128): Avoid excessive shift.
  1412. (_bfd_safe_read_leb128, _bfd_read_signed_leb128): Likewise.
  1413. 2021-02-15 Jan Beulich <jbeulich@suse.com>
  1414. * doc/Makefile.am: Replace "cp -p" by "$(LN_S)".
  1415. * doc/Makefile.in: Re-generate.
  1416. 2021-02-15 Alan Modra <amodra@gmail.com>
  1417. * elf32-nds32.c (nds32_get_section_contents): Replace
  1418. bfd_malloc_and_get_section with bfd_get_full_section_contents.
  1419. (nds32_elf_relax_delete_blanks): Init contents.
  1420. (nds32_elf_relax_section, nds32_relax_fp_as_gp): Likewise.
  1421. 2021-02-15 Alan Modra <amodra@gmail.com>
  1422. * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
  1423. bfd_get_full_section_contents.
  1424. 2021-02-14 Alan Modra <amodra@gmail.com>
  1425. * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Apply
  1426. all fixes to bfd_generic_get_relocated_section_contents since this
  1427. function was split out.
  1428. 2021-02-11 Alan Modra <amodra@gmail.com>
  1429. * config.bfd: Remove ia64 from obsolete list.
  1430. 2021-02-11 Alan Modra <amodra@gmail.com>
  1431. PR ld/22269
  1432. * elfnn-ia64.c: Revert 2017-10-14 git commit db41f6eb5234.
  1433. 2021-02-11 Alan Modra <amodra@gmail.com>
  1434. PR 27294
  1435. * elf32-avr.c (avr_elf32_load_records_from_section): Use
  1436. bfd_malloc_and_get_section. Use bfd_byte* vars and remove then
  1437. unnecessary casts.
  1438. 2021-02-11 Alan Modra <amodra@gmail.com>
  1439. PR 27291
  1440. * section.c (bfd_get_section_contents): Avoid possible overflow
  1441. when range checking offset and count.
  1442. (bfd_set_section_contents): Likewise.
  1443. 2021-02-03 Nick Alcock <nick.alcock@oracle.com>
  1444. * configure.ac (SHARED_LIBADD): Remove explicit -lintl population in
  1445. favour of LIBINTL.
  1446. * configure: Regenerated.
  1447. 2021-02-09 Alan Modra <amodra@gmail.com>
  1448. * config.bfd (arm*-*-symbianelf*): Move from obsolete to removed.
  1449. * configure.ac: Delete symbian entries.
  1450. * elf-bfd.h (enum elf_target_os): Delete is_symbian.
  1451. * elf32-arm.c: Remove symbian support. Formatting.
  1452. * targets.c: Delete symbian entries.
  1453. * configure: Regenerate.
  1454. 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
  1455. PR ld/19609
  1456. * elf64-x86-64.c (elf_x86_64_relocate_section): Provide more
  1457. info when failed to convert GOTPCREL relocation.
  1458. 2021-02-04 Nelson Chu <nelson.chu@sifive.com>
  1459. * elfxx-riscv.c (riscv_parse_prefixed_ext): Removed zb*.
  1460. 2021-02-04 Alan Modra <amodra@gmail.com>
  1461. PR 27311
  1462. * elflink.c (elf_link_add_object_symbols): Don't pull in as-needed
  1463. libraries for IR references on pass over libraries after LTO
  1464. recompilation.
  1465. 2021-02-03 Alan Modra <amodra@gmail.com>
  1466. PR 27311
  1467. * elflink.c (_bfd_elf_add_default_symbol): Revert last two changes.
  1468. (elf_link_add_object_symbols): Here too. Don't pull in as-needed
  1469. libraries when H is an indirect symbol after calling
  1470. _bfd_elf_add_default_symbol.
  1471. 2021-02-03 Alan Modra <amodra@gmail.com>
  1472. PR 27311
  1473. * elflink.c (_bfd_elf_add_default_symbol): Clear override when
  1474. undecorated symbol will have a different version.
  1475. 2021-02-02 Alan Modra <amodra@gmail.com>
  1476. PR 27311
  1477. * elflink.c (_bfd_elf_add_default_symbol): Add override parameter.
  1478. Use when handling default versioned symbol. Rename existing
  1479. override variable to nondef_override and use for non-default
  1480. versioned symbol.
  1481. (elf_link_add_object_symbols): Adjust call to suit. Don't
  1482. pull in as-needed libraries when override is set.
  1483. 2021-02-01 Emery Hemingway <ehmry@posteo.net>
  1484. * config.bfd: Add *-*-genode* as a target for AArch64 and x86.
  1485. 2021-02-01 Egor Vishnyakov <lenvampir@yandex.ru>
  1486. PR 27254
  1487. * elf32-rl78.c (rl78_elf_relocate_section): Fix calculation of
  1488. offset for the R_RL78_RH_SADDR relocation.
  1489. 2021-01-29 Alan Modra <amodra@gmail.com>
  1490. PR 27271
  1491. * elflink.c (bfd_elf_link_record_dynamic_symbol): Don't segfault
  1492. on symbols defined in absolute or other special sections.
  1493. 2021-01-28 Alan Modra <amodra@gmail.com>
  1494. PR 27259
  1495. * elflink.c (_bfd_elf_gc_mark_extra_sections): Use linker_mark to
  1496. prevent endless looping of linked-to sections.
  1497. 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
  1498. * bfd-elf.h (elfcore_write_file_note): New function.
  1499. * elf.c (elfcore_write_file_note): New function.
  1500. 2021-01-26 Alan Modra <amodra@gmail.com>
  1501. * elf32-ft32.c (ft32_reloc_type_lookup): Don't miss ft32_reloc_map[0].
  1502. 2021-01-24 H.J. Lu <hongjiu.lu@intel.com>
  1503. PR binutils/27231
  1504. * dwarf2.c (read_rnglists): Ignore empty range when parsing line
  1505. number tables.
  1506. 2021-01-23 H.J. Lu <hongjiu.lu@intel.com>
  1507. PR binutils/27231
  1508. * dwarf2.c (read_rnglists): Advance rngs_ptr after
  1509. _bfd_safe_read_leb128 when parsing DW_RLE_offset_pair.
  1510. 2021-01-20 Alan Modra <amodra@gmail.com>
  1511. * elf32-ppc.c: Delete outdated comment.
  1512. (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
  1513. * elf64-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
  1514. 2021-01-20 Alan Modra <amodra@gmail.com>
  1515. * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't assume
  1516. section symbols are present.
  1517. 2021-01-19 Alan Modra <amodra@gmail.com>
  1518. * elf64-ppc.c (elf_hash_entry): New inline function. Use
  1519. throughout to replace casts.
  1520. (branch_reloc_hash_match): Remove const from params.
  1521. (use_local_plt): New function.
  1522. (allocate_dynrelocs, ppc_build_one_stub, ppc_size_one_stub),
  1523. (build_global_entry_stubs_and_plt, ppc64_elf_relocate_section):
  1524. Use use_local_plt.
  1525. * elf32-ppc.c (use_local_plt): New function.
  1526. (allocate_dynrelocs, ppc_elf_relocate_section),
  1527. (write_global_sym_plt): Use use_local_plt.
  1528. 2021-01-17 H.J. Lu <hongjiu.lu@intel.com>
  1529. PR ld/27193
  1530. * elflink.c (elf_create_symbuf): Also ignore section symbols.
  1531. 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
  1532. PR ld/23169
  1533. * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): Don't
  1534. check pointer_equality_needed.
  1535. 2021-01-15 H.J. Lu <hongjiu.lu@intel.com>
  1536. * elf-linker-x86.h (elf_linker_x86_params): Add
  1537. report_relative_reloc.
  1538. * elf32-i386.c (elf_i386_relocate_section): Call
  1539. _bfd_x86_elf_link_report_relative_reloc to report relative
  1540. relocations for -z report-relative-reloc.
  1541. (elf_i386_finish_dynamic_symbol): Likewse.
  1542. * elf64-x86-64.c (elf_x86_64_relocate_section): Likewse.
  1543. (elf_x86_64_finish_dynamic_symbol): Likewse.
  1544. * elfxx-x86.c (_bfd_x86_elf_link_report_relative_reloc): New
  1545. function.
  1546. * elfxx-x86.h (_bfd_x86_elf_link_report_relative_reloc): New
  1547. prototype.
  1548. 2021-01-16 Alan Modra <amodra@gmail.com>
  1549. * compress.c (decompress_contents): Tidy inflateEnd result test.
  1550. 2021-01-16 Alan Modra <amodra@gmail.com>
  1551. PR 26002
  1552. * elflink.c (elf_link_output_extsym): Use version 1 in
  1553. .gnu.version for undefined unversioned symbols.
  1554. 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
  1555. * elfnn-riscv.c (riscv_relax_delete_bytes): Fixed the indent that
  1556. caused the by previous commit accidentally.
  1557. 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
  1558. * elfnn-riscv.c: Indent, labels and GNU coding standards tidy,
  1559. also aligned the code.
  1560. 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
  1561. * elfnn-riscv.c (riscv_merge_attributes): Fix typos of messages.
  1562. 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
  1563. * elfnn-riscv.c: Comments tidy and improvement.
  1564. * elfxx-riscv.c: Likewise.
  1565. * elfxx-riscv.h: Likewise.
  1566. 2021-01-14 H.J. Lu <hongjiu.lu@intel.com>
  1567. PR ld/26688
  1568. * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC
  1569. section for R_BFIN_FUNCDESC.
  1570. 2021-01-14 Nick Clifton <nickc@redhat.com>
  1571. * elf.c (elfcore_grok_win32pstatus): Check for a note type of 0.
  1572. 2021-01-13 Alan Modra <amodra@gmail.com>
  1573. * Makefile.in: Regenerate.
  1574. * doc/Makefile.in: Regenerate.
  1575. 2021-01-13 Alan Modra <amodra@gmail.com>
  1576. PR 27160
  1577. * section.c (struct bfd_section): Remove pattern field.
  1578. (BFD_FAKE_SECTION): Adjust to suit.
  1579. * bfd-in2.h: Regenerate.
  1580. * elflink.c (compare_link_order, elf_fixup_link_order): Delete.
  1581. (bfd_elf_final_link): Don't call elf_fixup_link_order.
  1582. 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
  1583. PR binutils/26792
  1584. * configure.ac: Use GNU_MAKE_JOBSERVER.
  1585. * aclocal.m4: Regenerated.
  1586. * configure: Likewise.
  1587. 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
  1588. PR ld/27171
  1589. * reloc.c (bfd_perform_relocation): Adjust R_AMD64_DIR64 and
  1590. R_AMD64_DIR32 relocations for PE/x86-64 inputs.
  1591. 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
  1592. PR ld/27173
  1593. * configure: Regenerated.
  1594. 2021-01-11 Nick Clifton <nickc@redhat.com>
  1595. * po/fr.po: Updated French translation.
  1596. * po/pt.po: Updated Portuguese translation.
  1597. * po/sr.po: Updated Serbian translation.
  1598. * po/uk.po: Updated Ukranian translation.
  1599. 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
  1600. * configure: Regenerated.
  1601. 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
  1602. PR ld/27166
  1603. * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Handle
  1604. -z lam-u48 and -z lam-u57.
  1605. 2021-01-09 Nick Clifton <nickc@redhat.com>
  1606. * version.m4: Change to 2.36.50.
  1607. * configure: Regenerate.
  1608. * po/bfd.pot: Regenerate.
  1609. 2021-01-09 Nick Clifton <nickc@redhat.com>
  1610. * 2.36 release branch crated.
  1611. 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
  1612. * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Also set
  1613. LAM_U57 when setting LAM_U48.
  1614. 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
  1615. PR ld/26256
  1616. PR ld/27160
  1617. * elflink.c (elf_fixup_link_order): Verify that fixing up
  1618. SHF_LINK_ORDER doesn't increase the output section size.
  1619. 2021-01-09 Alan Modra <amodra@gmail.com>
  1620. * configure: Regenerate.
  1621. 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
  1622. * configure: Regenerate.
  1623. 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
  1624. PR 27109
  1625. * aix386-core.c (core_aix386_vec): Initialize
  1626. keep_unused_section_symbol to TARGET_KEEP_UNUSED_SECTION_SYMBOLS.
  1627. * aout-target.h (MY (vec)): Likewise.
  1628. * binary.c (binary_vec): Likewise.
  1629. * cisco-core.c (core_cisco_be_vec): Likewise.
  1630. (core_cisco_le_vec): Likewise.
  1631. * coff-alpha.c (alpha_ecoff_le_vec): Likewise.
  1632. * coff-i386.c (TARGET_SYM): Likewise.
  1633. (TARGET_SYM_BIG): Likewise.
  1634. * coff-ia64.c (TARGET_SYM): Likewise.
  1635. * coff-mips.c (mips_ecoff_le_vec): Likewise.
  1636. (mips_ecoff_be_vec): Likewise.
  1637. (mips_ecoff_bele_vec): Likewise.
  1638. * coff-rs6000.c (rs6000_xcoff_vec): Likewise.
  1639. (powerpc_xcoff_vec): Likewise.
  1640. * coff-sh.c (sh_coff_small_vec): Likewise.
  1641. (sh_coff_small_le_vec): Likewise.
  1642. * coff-tic30.c (tic30_coff_vec): Likewise.
  1643. * coff-tic54x.c (tic54x_coff0_vec): Likewise.
  1644. (tic54x_coff0_beh_vec): Likewise.
  1645. (tic54x_coff1_vec): Likewise.
  1646. (tic54x_coff1_beh_vec): Likewise.
  1647. (tic54x_coff2_vec): Likewise.
  1648. (tic54x_coff2_beh_vec): Likewise.
  1649. * coff-x86_64.c (TARGET_SYM): Likewise.
  1650. (TARGET_SYM_BIG): Likewise.
  1651. * coff64-rs6000.c (rs6000_xcoff64_vec): Likewise.
  1652. (rs6000_xcoff64_aix_vec): Likewise.
  1653. * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): Likewise.
  1654. (CREATE_BIGHDR_COFF_TARGET_VEC): Likewise.
  1655. (CREATE_LITTLE_COFF_TARGET_VEC): Likewise.
  1656. * elfxx-target.h (TARGET_BIG_SYM): Likewise.
  1657. (TARGET_LITTLE_SYM): Likewise.
  1658. * hppabsd-core.c (core_hppabsd_vec): Likewise.
  1659. * hpux-core.c (core_hpux_vec): Likewise.
  1660. * i386msdos.c (i386_msdos_vec): Likewise.
  1661. * ihex.c (ihex_vec): Likewise.
  1662. * irix-core.c (core_irix_vec): Likewise.
  1663. * mach-o-target.c (TARGET_NAME): Likewise.
  1664. * mmo.c (mmix_mmo_vec): Likewise.
  1665. * netbsd-core.c (core_netbsd_vec): Likewise.
  1666. * osf-core.c (core_osf_vec): Likewise.
  1667. * pdp11.c (MY (vec)): Likewise.
  1668. * pef.c (pef_vec): Likewise.
  1669. (pef_xlib_vec): Likewise.
  1670. * plugin.c (plugin_vec): Likewise.
  1671. * ppcboot.c (powerpc_boot_vec): Likewise.
  1672. * ptrace-core.c (core_ptrace_vec): Likewise.
  1673. * sco5-core.c (core_sco5_vec): Likewise.
  1674. * som.c (hppa_som_vec): Likewise.
  1675. * srec.c (srec_vec): Likewise.
  1676. (symbolsrec_vec): Likewise.
  1677. * tekhex.c (tekhex_vec): Likewise.
  1678. * trad-core.c (core_trad_vec): Likewise.
  1679. * verilog.c (verilog_vec): Likewise.
  1680. * vms-alpha.c (alpha_vms_vec): Likewise.
  1681. * vms-lib.c (alpha_vms_lib_txt_vec): Likewise.
  1682. * wasm-module.c (wasm_vec): Likewise.
  1683. * xsym.c (sym_vec): Likewise.
  1684. * elf.c (ignore_section_sym): Return TRUE if BSF_SECTION_SYM_USED
  1685. isn't set.
  1686. (elf_map_symbols): Don't include ignored section symbols.
  1687. * elfcode.h (elf_slurp_symbol_table): Also set
  1688. BSF_SECTION_SYM_USED on STT_SECTION symbols.
  1689. * elflink.c (bfd_elf_final_link): Generated section symbols only
  1690. when emitting relocations or reqired.
  1691. * elfxx-x86.h (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
  1692. * syms.c (BSF_SECTION_SYM_USED): New.
  1693. * targets.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
  1694. (bfd_target): Add keep_unused_section_symbols.
  1695. (bfd_keep_unused_section_symbols): New.
  1696. * bfd-in2.h: Regenerated.
  1697. 2021-01-07 Nick Clifton <nickc@redhat.com>
  1698. PR 25713
  1699. * bfdio.c (_bfd_real_fopen): For Win32 convert relative paths to
  1700. absolute paths and check to see if they are longer than MAX_PATH.
  1701. 2021-01-07 Philipp Tomsich <prt@gnu.org>
  1702. * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zihintpause.
  1703. 2021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
  1704. Jim Wilson <jimw@sifive.com>
  1705. Andrew Waterman <andrew@sifive.com>
  1706. Maxim Blinov <maxim.blinov@embecosm.com>
  1707. Kito Cheng <kito.cheng@sifive.com>
  1708. Nelson Chu <nelson.chu@sifive.com>
  1709. * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zba, zbb and zbc.
  1710. 2021-01-06 H.J. Lu <hongjiu.lu@intel.com>
  1711. * elf32-bfin.c (bfin_check_relocs): Check bfd_link_hash_indirect.
  1712. (bfinfdpic_check_relocs): Likewise.
  1713. 2021-01-06 Alan Modra <amodra@gmail.com>
  1714. * elf32-score.c (s3_bfd_score_info_to_howto): Report an error
  1715. on unknown r_type.
  1716. * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
  1717. 2021-01-06 Alan Modra <amodra@gmail.com>
  1718. * config.bfd (sparc-*-solaris2*): Add sparc_elf32_vec.
  1719. (sparc64-*-solaris2*): Add sparc_elf64_vec and
  1720. sparc_elf32_vec.
  1721. 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
  1722. * config.bfd: Added targets riscv64be*-*-*, riscv32be*-*-* and
  1723. riscvbe*-*-*. Also added riscv_elf[32|64]_be_vec.
  1724. * configure.ac: Handle riscv_elf[32|64]_be_vec.
  1725. * configure: Regenerate.
  1726. * elfnn-riscv.c: Include <limits.h> and define CHAR_BIT for
  1727. riscv_is_insn_reloc.
  1728. (riscv_get_insn): RISC-V instructions are always little endian, but
  1729. bfd_get may be used for big-endian, so add new riscv_get_insn to handle
  1730. the insturctions.
  1731. (riscv_put_insn): Likewsie.
  1732. (riscv_is_insn_reloc): Check if we are relocaing an instruction.
  1733. (perform_relocation): Call riscv_is_insn_reloc to decide if we should
  1734. use riscv_[get|put]_insn or bfd_[get|put].
  1735. (riscv_zero_pcrel_hi_reloc): Use riscv_[get|put]_insn, bfd_[get|put]l32
  1736. or bfd_[get|put]l16 for code.
  1737. (riscv_elf_relocate_section): Likewise.
  1738. (riscv_elf_finish_dynamic_symbol): Likewise.
  1739. (riscv_elf_finish_dynamic_sections): Likewise.
  1740. (_bfd_riscv_relax_call): Likewise.
  1741. (_bfd_riscv_relax_lui): Likewise.
  1742. (_bfd_riscv_relax_align): Likewise.
  1743. (_bfd_riscv_relax_pc): Likewise.
  1744. (riscv_elf_object_p): Handled for big endian.
  1745. (TARGET_BIG_SYM, TARGET_BIG_NAME): Defined.
  1746. * targets.c: Add riscv_elf[32|64]_be_vec.
  1747. (_bfd_target_vector): Likewise.
  1748. 2021-01-05 Alan Modra <amodra@gmail.com>
  1749. * elflink.c (bfd_elf_link_record_dynamic_symbol): Handle no_export
  1750. for relocatable executable.
  1751. 2021-01-05 Alan Modra <amodra@gmail.com>
  1752. * vms-alpha.c (_bfd_vms_slurp_egsd): Read flags after size check.
  1753. 2021-01-05 Nelson Chu <nelson.chu@sifive.com>
  1754. * elfnn-riscv.c (allocate_dynrelocs): When we are generating pde,
  1755. make sure gp symbol is output as a dynamic symbol.
  1756. 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
  1757. PR ld/26256
  1758. * elflink.c (compare_link_order): Place unordered sections before
  1759. ordered sections.
  1760. (elf_fixup_link_order): Add a link info argument. Allow mixed
  1761. ordered and unordered input sections for non-relocatable link.
  1762. Sort the consecutive bfd_indirect_link_order sections with the
  1763. same pattern. Change the offsets of the bfd_indirect_link_order
  1764. sections only.
  1765. (bfd_elf_final_link): Pass info to elf_fixup_link_order.
  1766. * section.c (bfd_section): Add pattern.
  1767. (BFD_FAKE_SECTION): Initialize pattern to NULL.
  1768. * bfd-in2.h: Regenerated.
  1769. 2021-01-04 Alexander Fedotov <alfedotov@gmail.com>
  1770. * elf32-arm.c (elf32_arm_print_private_bfd_data): Prefix hex value
  1771. of private flags with 0x.
  1772. * elfnn-aarch64.c (elfNN_aarch64_print_private_bfd_data): Likewise.
  1773. 2021-01-04 Alan Modra <amodra@gmail.com>
  1774. PR 26822
  1775. * elflink.c (elf_link_input_bfd): Use the file base name in
  1776. linker generated STT_FILE symbols.
  1777. 2021-01-04 Nelson Chu <nelson.chu@sifive.com>
  1778. * elfxx-riscv.c (riscv_compare_subsets): Removed static.
  1779. * elfxx-riscv.h: Add declaration.
  1780. * elfnn-riscv.c (riscv_merge_multi_letter_ext): Use
  1781. riscv_compare_subsets to check the orders.
  1782. (riscv_skip_prefix): Removed.
  1783. (riscv_prefix_cmp): Removed.
  1784. 2021-01-04 Alan Modra <amodra@gmail.com>
  1785. PR 26741
  1786. * elfxx-riscv.c (riscv_parse_prefixed_ext): Free subset after
  1787. calculating subset version length.
  1788. 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
  1789. * xcofflink.c: Correct spelling in comments.
  1790. 2021-01-01 Alan Modra <amodra@gmail.com>
  1791. Update year range in copyright notice of all files.
  1792. For older changes see ChangeLog-2020
  1793. Copyright (C) 2021-2022 Free Software Foundation, Inc.
  1794. Copying and distribution of this file, with or without modification,
  1795. are permitted in any medium without royalty provided the copyright
  1796. notice and this notice are preserved.
  1797. Local Variables:
  1798. mode: change-log
  1799. left-margin: 8
  1800. fill-column: 74
  1801. version-control: never
  1802. End: