ChangeLog-2020 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  1. 2020-12-19 H.J. Lu <hjl.tools@gmail.com>
  2. PR gold/27097
  3. * incremental.cc (Sized_relobj_incr::do_add_symbols): Move sym
  4. declaration just before use.
  5. (Sized_incr_dynobj::do_add_symbols): Likewise.
  6. * plugin.cc (Sized_pluginobj::do_add_symbols): Likewise.
  7. 2020-12-15 Cary Coutant <ccoutant@gmail.com>
  8. * dwp.cc (class Dwo_file): Use new Ehdr::get_ei_osabi and
  9. get_ei_abiversion methods.
  10. * incremental.cc (make_sized_incremental_binary): Likewise.
  11. * object.cc (Sized_relobj_file::Sized_relobj_file): Likewise.
  12. (make_elf_sized_object): Likewise.
  13. * object.h (class Osabi): Make the class untemplated.
  14. 2020-12-15 Vivek Das Mohapatra <vivek@collabora.com>
  15. Implement -z unique / -z nounique options.
  16. * layout.cc (Layout::finish_dynamic_section): Set DF_GNU_1_UNIQUE.
  17. * options.h (class General_options): Handle -z unique, -z nounique.
  18. 2020-12-14 H.J. Lu <hjl.tools@gmail.com>
  19. Cary Coutant <ccoutant@gmail.com>
  20. PR gold/27039
  21. * layout.cc (Layout::layout): Strip SHF_GNU_RETAIN.
  22. * object.cc (Sized_relobj_file::Sized_relobj_file): Initialize osabi_.
  23. (Sized_relobj_file::do_layout): Keep SHF_GNU_RETAIN sections for
  24. GNU/FreBSD ELFOSABIs.
  25. * object.h (Osabi) New class.
  26. (Sized_relobj_file): Add osabi() and osabi_.
  27. * testsuite/Makefile.am (check_SCRIPTS): Add retain.sh.
  28. (check_DATA): Add retain_1.out retain_2.out.
  29. (MOSTLYCLEANFILES): Add retain_1 retain_2.
  30. (retain_1.out): New target.
  31. (retain_1): Likewise.
  32. (retain_1.o): Likewise.
  33. (retain_2.out): Likewise.
  34. (retain_2): Likewise.
  35. (retain_2.o): Likewise.
  36. * testsuite/Makefile.in: Regenerate.
  37. * testsuite/retain.sh: New file.
  38. * testsuite/retain_1.s: Likewise.
  39. * testsuite/retain_2.s: Likewise.
  40. 2020-12-13 Cary Coutant <ccoutant@gmail.com>
  41. PR gold/23539
  42. PR gold/24123
  43. * testsuite/Makefile.am (incremental_copy_test): Re-enable for GCC 9+.
  44. (incremental_comdat_test_1): Likewise.
  45. * testsuite/Makefile.in: Regenerate.
  46. 2020-12-13 Cary Coutant <ccoutant@gmail.com>
  47. PR gold/23539
  48. * object.cc (Sized_relobj_file::layout_gnu_property_section): Ignore
  49. Gnu properties during incremental links.
  50. 2020-12-13 Cary Coutant <ccoutant@gmail.com>
  51. PR gold/24123
  52. * layout.cc (Layout::init_fixed_output_section): Mask out flags that
  53. should be ignored when matching sections.
  54. 2020-12-07 Alan Modra <amodra@gmail.com>
  55. * plugin.cc (Plugin_recorder::init): Replace strncpy with memcpy.
  56. 2020-12-03 Alan Modra <amodra@gmail.com>
  57. * testsuite/Makefile.am (pr26936a.o): Pass -mx86-used-note=yes.
  58. (pr26936b.o, pr26936c.o, pr26936d.o): Likewise.
  59. * testsuite/Makefile.in: Regenerate.
  60. 2020-11-29 H.J. Lu <hongjiu.lu@intel.com>
  61. PR ld/26972
  62. * x86_64.cc (Output_data_plt_x86_64_ibt::tlsdesc_plt_entry): Add
  63. endbr64.
  64. (Output_data_plt_x86_64_ibt::do_fill_tlsdesc_entry): Adjusted.
  65. 2020-11-29 H.J. Lu <hongjiu.lu@intel.com>
  66. PR gold/26939
  67. * x86_64.cc (Target_x86_64<size>::Scan::local): Check
  68. get_r_addend() == -4 for GOTPCRELX conversion.
  69. (Target_x86_64<size>::Scan::global): Likewise.
  70. (Target_x86_64<size>::Relocate::relocate): Likewise.
  71. * testsuite/Makefile.am (check_DATA): Add
  72. x86_64_mov_to_lea15.stdout and x86_64_mov_to_lea16.stdout.
  73. (MOSTLYCLEANFILES): Add x86_64_mov_to_lea15 and
  74. x86_64_mov_to_lea16.
  75. (x86_64_mov_to_lea9.o): New target.
  76. (x86_64_mov_to_lea10.o): Likewise.
  77. (x86_64_mov_to_lea15): Likewise.
  78. (x86_64_mov_to_lea16): Likewise.
  79. (x86_64_mov_to_lea15.stdout): Likewise.
  80. (x86_64_mov_to_lea16.stdout): Likewise.
  81. * testsuite/Makefile.in: Regenerated.
  82. * testsuite/x86_64_mov_to_lea.sh: Updated.
  83. * testsuite/x86_64_mov_to_lea5.s: New file.
  84. 2020-11-29 H.J. Lu <hongjiu.lu@intel.com>
  85. PR gold/26937
  86. * object.cc (Sized_relobj_file::map_to_kept_section): Get the
  87. section index for linkonce section. Also check the single
  88. comdat section.
  89. * testsuite/Makefile.am (check_SCRIPTS): Add pr26936.sh.
  90. (check_DATA): Add pr26936a.stdout and pr26936b.stdout.
  91. (MOSTLYCLEANFILES): Add pr26936a and pr26936b.
  92. (pr26936a.stdout): New target.
  93. (pr26936a): Likewise.
  94. (pr26936b.stdout): Likewise.
  95. (pr26936b): Likewise.
  96. (pr26936a.o): Likewise.
  97. (pr26936b.o): Likewise.
  98. (pr26936c.o): Likewise.
  99. (pr26936d.o): Likewise.
  100. * testsuite/Makefile.in: Regenerated.
  101. * testsuite/pr26936.sh: New file.
  102. * testsuite/pr26936a.s: Likewise.
  103. * testsuite/pr26936b.s: Likewise.
  104. * testsuite/pr26936c.s: Likewise.
  105. * testsuite/pr26936d.s: Likewise.
  106. 2020-11-17 Alan Modra <amodra@gmail.com>
  107. * powerpc.cc (Target_powerpc::no_tprel_opt_): Rename from tprel_opt_.
  108. Init to false.
  109. (Target_powerpc::tprel_opt): Test parameters->options().tls_optimize().
  110. (Target_powerpc::set_tprel_opt): Delete.
  111. (Target_powerpc::set_no_tprel_opt): New function. Update all uses
  112. of set_tprel_opt.
  113. 2020-11-16 Michael Hudson-Doyle <michael.hudson@canonical.com>
  114. PR 26902
  115. * powerpc.cc (Relocate::relocate): Do not include local entry
  116. offset of target function when computing the address of a stub.
  117. 2020-11-08 H.J. Lu <hongjiu.lu@intel.com>
  118. PR gold/26200
  119. * plugin.cc (Plugin_manager::claim_file): Don't share Plugin_list
  120. iterator.
  121. (Plugin_manager::all_symbols_read): Likewise.
  122. (Plugin_manager::cleanup): Likewise.
  123. 2020-11-03 Alan Modra <amodra@gmail.com>
  124. * powerpc.cc (Target_powerpc::tocsave_loc): Return a pointer.
  125. (Target_powerpc::Relocate::relocate): Avoid -Wdangling-gsl error.
  126. 2020-11-03 Nick Gasson <nick.gasson@arm.com>
  127. PR 26827
  128. * fileread.cc (File_read::open): Ensure file_counts_lock is
  129. initialized.
  130. * testsuite/Makefile.am (check_PROGRAMS): Add a test that passes
  131. -Wl,--threads.
  132. * testsuite/Makefile.in: Regenerate.
  133. 2020-10-30 H.J. Lu <hongjiu.lu@intel.com>
  134. * testsuite/gnu_property_test.sh: Updated.
  135. 2020-10-22 H.J. Lu <hongjiu.lu@intel.com>
  136. * Makefile.am (bootstrap-test): Skip for LTO build.
  137. (bootstrap-test-r): Likewise.
  138. 2020-10-13 H.J. Lu <hongjiu.lu@intel.com>
  139. PR gold/23539
  140. * configure.ac: Check for GCC 9 or later and for -fcf-protection.
  141. * configure: Regenerated.
  142. * testsuite/Makefile.am (check_PROGRAMS): Skip incremental_test_2,
  143. incremental_test_3, incremental_test_4, incremental_test_5,
  144. incremental_copy_test, incremental_common_test_1 and
  145. incremental_comdat_test_1 for -fcf-protection. Also Skip
  146. incremental_copy_test and incremental_comdat_test_1 for GCC 9 or
  147. later.
  148. * testsuite/Makefile.in: Regenerated.
  149. 2020-10-13 H.J. Lu <hongjiu.lu@intel.com>
  150. PR gold/23503
  151. * testsuite/Makefile.am (justsyms_lib): Pass
  152. -T $(srcdir)/justsyms_lib.t to gold.
  153. * testsuite/Makefile.in: Regenerated.
  154. * testsuite/justsyms_lib.t: New file.
  155. * testsuite/script_test_10.t: Discard .note.gnu.property section.
  156. 2020-10-13 H.J. Lu <hongjiu.lu@intel.com>
  157. * x86_64.cc (Target_x86_64::Target_x86_64): Initialize
  158. feature_2_used_, feature_2_needed_ and object_feature_2_used_.
  159. (Target_x86_64::feature_2_used_): New data member.
  160. (Target_x86_64::feature_2_needed_): Likewise.
  161. (Target_x86_64::object_isa_1_used_): Likewise.
  162. (Target_x86_64::record_gnu_property): Support
  163. GNU_PROPERTY_X86_COMPAT_ISA_1_USED,
  164. GNU_PROPERTY_X86_COMPAT_ISA_1_NEEDED,
  165. GNU_PROPERTY_X86_COMPAT_2_ISA_1_USED,
  166. GNU_PROPERTY_X86_COMPAT_2_ISA_1_NEEDED,
  167. GNU_PROPERTY_X86_FEATURE_2_USED and
  168. GNU_PROPERTY_X86_FEATURE_2_NEEDED.
  169. (Target_x86_64::merge_gnu_properties): Merge FEATURE_2_USED bits.
  170. Initialize object_feature_2_used_.
  171. (Target_x86_64::do_finalize_gnu_properties): Support
  172. GNU_PROPERTY_X86_FEATURE_2_USED and
  173. GNU_PROPERTY_X86_FEATURE_2_NEEDED.
  174. * testsuite/gnu_property_a.S (GNU_PROPERTY_X86_ISA_1_USED): Set
  175. to 0xc0010002.
  176. (GNU_PROPERTY_X86_ISA_1_NEEDED): Set to 0xc0008002.
  177. * testsuite/gnu_property_b.S (GNU_PROPERTY_X86_ISA_1_USED): Set
  178. to 0xc0010002.
  179. (GNU_PROPERTY_X86_ISA_1_NEEDED): Set to 0xc0008002.
  180. * testsuite/gnu_property_c.S (GNU_PROPERTY_X86_ISA_1_USED): Set
  181. to 0xc0010002.
  182. (GNU_PROPERTY_X86_ISA_1_NEEDED): Set to 0xc0008002.
  183. * testsuite/gnu_property_test.sh: Updated.
  184. 2020-10-13 H.J. Lu <hongjiu.lu@intel.com>
  185. PR gold/22914
  186. PR gold/23535
  187. * layout.cc (Layout::attach_allocated_section_to_segment): Place
  188. a note section in a PT_NOTE segment with the same alignment. Set
  189. the alignment of the PT_NOTE segment from the alignment of the
  190. note section.
  191. (Layout::create_note): Align the NT_GNU_PROPERTY_TYPE_0 note to 8
  192. bytes for 64-bit ELF.
  193. (Layout::segment_precedes): Place segments with larger alignments
  194. first.
  195. * output.cc (Output_segment::Output_segment): Initialize align_.
  196. * output.h (Output_segment): Add align, set_align and align_.
  197. * testsuite/Makefile.am (gnu_property_test.stdout): Pass -lhSWn
  198. to $(TEST_READELF).
  199. (gnu_property_test): Pass --build-id to ld.
  200. * testsuite/Makefile.in: Regenerated.
  201. * testsuite/gnu_property_test.sh (check_alignment): New.
  202. Use check_alignment to check the NT_GNU_PROPERTY_TYPE_0 note
  203. alignment. Verify that there are 2 PT_NOTE segments.
  204. 2020-10-13 H.J. Lu <hongjiu.lu@intel.com>
  205. PR gold/21452
  206. * x86_64.cc (Scan::local_reloc_may_be_function_pointer): Remove
  207. check for shared library.
  208. (Scan::global_reloc_may_be_function_pointer): Remove check for
  209. shared library and symbol visibility.
  210. * testsuite/icf_safe_so_test.cc (bar_static): New function.
  211. (main): Take function address of bar_static and use it.
  212. * testsuite/icf_safe_so_test.sh (arch_specific_safe_fold): Also
  213. check fold on x86-64. Check bar_static isn't folded.
  214. 2020-10-13 H.J. Lu <hongjiu.lu@intel.com>
  215. * icf.cc (Icf::find_identical_sections): Skip zero-sized sections.
  216. 2020-10-09 Alan Modra <amodra@gmail.com>
  217. * powerpc.cc (Powerpc_relobj::do_relocate_sections): Don't do
  218. local entry offset optimisation for lplt_section.
  219. (Target_powerpc::Branch_info::make_stub): Don't add local
  220. entry offset to long branch dest passed to
  221. add_long_branch_entry. Do pass st_other bits.
  222. (Stub_table::Branch_stub_ent): Add "other_" field.
  223. (Stub_table::add_long_branch_entry): Add "other" param, and
  224. save.
  225. (Stub_table::branch_stub_size): Adjust long branch offset.
  226. (Stub_table::do_write): Likewise.
  227. (Target_powerpc::Relocate::relocate): Likewise.
  228. 2020-10-09 Alan Modra <amodra@gmail.com>
  229. * powerpc.cc (is_got_reloc): New function.
  230. (Target_powerpc::Relocate::relocate): Use it here, exclude GOT
  231. relocs when looking for stubs.
  232. 2020-10-08 H.J. Lu <hongjiu.lu@intel.com>
  233. * testsuite/split_i386.sh: Updated for --split-stack-adjust-size
  234. default change.
  235. * testsuite/split_x86_64.sh: Likewise.
  236. 2020-10-08 Alan Modra <amodra@gmail.com>
  237. * options.h (split_stack_adjust_size): Default to 0x100000.
  238. 2020-09-26 Alan Modra <amodra@gmail.com>
  239. * powerpc.cc (Target_powerpc): Rename power10_stubs_ to
  240. power10_relocs_.
  241. (Target_powerpc::set_power10_relocs): New accessor.
  242. (Target_powerpc::set_power10_stubs): Delete.
  243. (Target_powerpc::power10_stubs): Adjust.
  244. (Target_powerpc::has_localentry0): New accessor.
  245. (ld_0_11): New constant.
  246. (glink_eh_frame_fde_64v1, glink_eh_frame_fde_64v2): Adjust.
  247. (glink_eh_frame_fde_64v2_localentry0): New.
  248. (Output_data_glink::pltresolve_size): Update.
  249. (Output_data_glink::add_eh_frame): Use localentry0 version eh_frame.
  250. (Output_data_glink::do_write): Move r2 save to start of ELFv2 stub
  251. and only emit for has_localentry0. Don't use r2 in the stub.
  252. (Target_powerpc::Scan::local, global): Adjust for
  253. set_power10_relocs renaming.
  254. (Target_powerpc::scan_relocs): Warn and reset plt_localentry0_.
  255. 2020-09-24 Alan Modra <amodra@gmail.com>
  256. * powerpc.cc (Target_powerpc::Relocate::relocate): Don't skip
  257. first insn of __tls_get_addr_opt stub.
  258. 2020-08-24 Alan Modra <amodra@gmail.com>
  259. * powerpc.cc (Target_powerpc): Add tprel_opt_ and accessors.
  260. (Target_powerpc::Scan::local): Sanity check tprel high relocs.
  261. (Target_powerpc::Scan::global): Likewise.
  262. (Target_powerpc::Relocate::relocate): Control tprel optimisation
  263. with tprel_opt_ and enable for 32-bit.
  264. 2020-08-12 Nick Clifton <nickc@redhat.com>
  265. * po/sr.po: Updated Serbian translation.
  266. 2020-07-27 Alan Modra <amodra@gmail.com>
  267. * options.h (DEFINE_enum): Add optional_arg__ param, adjust
  268. all uses.
  269. (General_options): Add --power10-stubs and --no-power10-stubs.
  270. * options.cc (General_options::parse_no_power10_stubs): New.
  271. (General_options::finalize): Handle --power10-stubs.
  272. * powerpc.cc (set_power10_stubs): Don't set when --power10-stubs=no.
  273. (power10_stubs_auto): New.
  274. (struct Plt_stub_ent): Add toc_ and tocoff_. Don't use a bitfield
  275. for indx_.
  276. (struct Branch_stub_ent): Add toc_and tocoff_. Use bitfields for
  277. iter_, notoc_ and save_res_.
  278. (add_plt_call_entry): Set toc_. Adjust resizing conditions for
  279. --power10-stubs=auto.
  280. (add_long_branch_entry): Set toc_.
  281. (add_eh_frame, define_stub_syms): No longer use const_iterators
  282. for plt and long branch stub iteration.
  283. (build_tls_opt_head, build_tls_opt_tail): Change parameters and
  284. return value. Move tests for __tls_get_addr to callers.
  285. (plt_call_size): Handle --power10-stubs=auto.
  286. (branch_stub_size): Likewise.
  287. (Stub_table::do_write): Likewise.
  288. (relocate): Likewise.
  289. 2020-07-19 H.J. Lu <hongjiu.lu@intel.com>
  290. * testsuite/bnd_ifunc_1.sh: Updated.
  291. * testsuite/bnd_plt_1.sh: Likewise.
  292. * testsuite/split_x32.sh: Likewise.
  293. * testsuite/split_x86_64.sh: Likewise.
  294. * testsuite/x86_64_indirect_call_to_direct.sh: Likewise.
  295. 2020-07-08 Nick Clifton <nickc@redhat.com>
  296. * testsuite/script_test_7.sh: Adjust expected address of the .bss
  297. section.
  298. * testsuite/script_test_9.sh: Do not expect the .init section to
  299. immediately follow the .text section in the mapping of sections to
  300. segments.
  301. 2020-07-07 Nick Clifton <nickc@redhat.com>
  302. * target-reloc.h: (Default_comdat_behaviour:get): Ignore discarded
  303. relocs that refer to the .gnu.build.attributes section.
  304. 2020-07-06 Nick Clifton <nickc@redhat.com>
  305. * po/fr.po: Updated French translation.
  306. * po/uk.po: Updated Ukranian translation.
  307. 2020-07-04 Nick Clifton <nickc@redhat.com>
  308. Binutils 2.35 branch created.
  309. 2020-07-03 Alan Modra <amodra@gmail.com>
  310. PR 26028
  311. * testsuite/Makefile.am (file_in_many_sections.stdout): Add -W
  312. to readelf options.
  313. * testsuite/Makefile.in: Regenerate.
  314. 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
  315. * configure.ac: Check for bswap_16, bswap_32, and bswap_64 decls.
  316. * configure: Regenerated.
  317. * config.h.in: Likewise.
  318. 2020-06-24 Nick Clifton <nickc@redhat.com>
  319. * target-reloc.h (issue_discarded_error): Initialise the
  320. key_symndx variable.
  321. 2020-06-23 Roland McGrath <mcgrathr@google.com>
  322. PR 22843
  323. * options.h (class General_options): Add --dependency-file option.
  324. * fileread.cc (File_read::files_read): New static variable.
  325. (File_read::open): Add the file to the files_read list.
  326. (File_read::record_file_read): New static member function.
  327. (File_read::write_dependency_file): New static member function.
  328. * fileread.h (class File_read): Declare them.
  329. * layout.cc (Layout::read_layout_from_file): Call record_file_read.
  330. (Close_task_runner::run): Call write_dependency_file if
  331. --dependency-file was passed.
  332. 2020-06-18 Fangrui Song <i@maskray.me>
  333. PR gold/26039
  334. * layout.cc (Layout::finish_dynamic_section): Set DF_1_PIE.
  335. 2020-06-16 Alan Modra <amodra@gmail.com>
  336. * testsuite/discard_locals_test.c: Replace uses of asm with __asm__.
  337. * testsuite/discard_locals_relocatable_test.c: Likewise.
  338. 2020-06-16 Alan Modra <amodra@gmail.com>
  339. * testsuite/Makefile.am (export_dynamic_plugin.o): Use CXXCOMPILE.
  340. (plugin_test_wrap_symbols_1.o): Likewise.
  341. (plugin_test_wrap_symbols_2.o): Likewise.
  342. * testsuite/Makefile.in: Regenerate.
  343. 2020-06-15 Roland McGrath <mcgrathr@google.com>
  344. Implement -z start-stop-visibility=... option.
  345. * options.h (class General_options): Handle -z start-stop-visibility=.
  346. (General_options::start_stop_visibility_enum): New public method.
  347. (General_options::set_start_stop_visibility_enum): New private method.
  348. (General_options::start_stop_visibility_enum_): New private member.
  349. * options.cc (General_options::General_options): Add initializer.
  350. (General_options::finalize): Set this->start_stop_visibility_enum_
  351. from string value.
  352. * layout.cc (Layout::define_section_symbols): Use option setting.
  353. 2020-06-06 Alan Modra <amodra@gmail.com>
  354. * powerpc.cc: Update throughout for reloc renaming.
  355. 2020-05-22 Alan Modra <amodra@gmail.com>
  356. PR 25882
  357. * powerpc.cc (merge_object_attributes): Replace name param with
  358. obj param. Update callers. Don't init FP attributes from shared
  359. libraries, and do not emit an error if they don't match.
  360. 2020-05-15 Nikita Ermakov <coffe92@gmail.com>
  361. * powerpc.cc (do_gc_mark_symbol): Don't segfault on plugin symbols.
  362. 2020-05-14 Nick Clifton <nickc@redhat.com>
  363. * po/sr.po: New Serbian translation.
  364. 2020-05-11 Alan Modra <amodra@gmail.com>
  365. * powerpc.cc: Rename powerxx to power10 throughout.
  366. 2020-05-02 H.J. Lu <hongjiu.lu@intel.com>
  367. PR gold/25904
  368. * testsuite/Makefile.am (COMMON_TEST_C_CFLAGS): New.
  369. (common_test_1.o): New rule.
  370. (common_test_2.o): Likewise.
  371. (common_test_3.o): Likewise.
  372. (plugin_common_test_1.o): Likewise.
  373. (plugin_common_test_2.o): Likewise.
  374. (common_test_1_v1.o): Likewise.
  375. (common_test_1_v2.o): Likewise.
  376. (common_test_2_pic.o): Compile with $(COMMON_TEST_C_CFLAGS).
  377. (common_test_3_pic.o): Likewise.
  378. * testsuite/Makefile.in: Regenerated.
  379. 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
  380. PR gold/25426
  381. * x86_64.cc (Target_x86_64<size>::Relocate::tls_desc_gd_to_ie):
  382. For x32, relax "rex leal foo@tlsdesc(%rip), %reg" to
  383. "rex movl foo@gottpoff(%rip), %eax" and relax ""call *(%eax)"
  384. to "nopl (%rax)".
  385. (Target_x86_64<size>::Relocate::tls_desc_gd_to_le): For x32,
  386. relax "rex leal foo@tlsdesc(%rip), %reg" to
  387. "rex movl foo@tpoff, %eax" and relax "call *foo@tlscall(%eax)"
  388. to "nopl (%rax)".
  389. * testsuite/Makefile.am (tls_test_gnu2.o): Depend on
  390. gcctestdir/as.
  391. (tls_test_file2_gnu2.o): Likewise.
  392. (tls_test_c_gnu2.o): Likewise.
  393. * testsuite/Makefile.in: Regenerated.
  394. 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
  395. PR gold/25473
  396. * x86_64.cc (Target_x86_64<size>::Relocate::tls_desc_gd_to_ie):
  397. Properly check r8 - r15 in "lea foo@TLSDESC(%rip), %reg".
  398. (Target_x86_64<size>::Relocate::tls_desc_gd_to_le): Properly
  399. relax r8 - r15 in "lea foo@TLSDESC(%rip), %reg".
  400. * testsuite/Makefile.am (check_SCRIPTS): Add x86_64_gd_to_le.sh.
  401. (check_DATA): Add x86_64_gd_to_le.stdout.
  402. (MOSTLYCLEANFILES): Add x86_64_gd_to_le.
  403. (x86_64_gd_to_le.o): New target.
  404. (x86_64_gd_to_le): Likewise.
  405. (x86_64_gd_to_le.stdout): Likewise.
  406. * testsuite/Makefile.in: Regenerated.
  407. * testsuite/x86_64_gd_to_le.s: New file.
  408. * testsuite/x86_64_gd_to_le.sh: Likewise.
  409. 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
  410. * testsuite/odr_violation2.cc (Ordering::operator()): Make
  411. expression even more complex.
  412. 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
  413. * testsuite/ver_test_pr16504.sh: Updated.
  414. 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
  415. PR gold/25872
  416. * x86_64.cc (Output_data_plt_x86_64_bnd::do_write): Increment
  417. plt_offset after setting the reserved TLSDESC PLT entry.
  418. (Output_data_plt_x86_64_ibt<size>::do_write): Likewise.
  419. 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
  420. PR gold/25872
  421. * x86_64.cc (Output_data_plt_x86_64_bnd::do_address_for_local):
  422. Handle local IFUNC symbol.
  423. (Output_data_plt_x86_64_ibt::do_address_for_local): Likewise.
  424. 2020-03-19 Fangrui Song <maskray@google.com>
  425. * options.h (General_options): Add --no-rosegment option.
  426. 2020-02-24 Nick Clifton <nickc@redhat.com>
  427. * po/fr.po: Update French translation.
  428. 2020-01-20 Nick Clifton <nickc@redhat.com>
  429. * po/uk.po: Updated Ukranian translation.
  430. 2020-01-18 Nick Clifton <nickc@redhat.com>
  431. * configure: Regenerate.
  432. * po/gold.pot: Regenerate.
  433. 2020-01-18 Nick Clifton <nickc@redhat.com>
  434. Binutils 2.34 branch created.
  435. 2020-01-01 Alan Modra <amodra@gmail.com>
  436. Update year range in copyright notice of all files.
  437. For older changes see ChangeLog-2019
  438. Copyright (C) 2020 Free Software Foundation, Inc.
  439. Copying and distribution of this file, with or without modification,
  440. are permitted in any medium without royalty provided the copyright
  441. notice and this notice are preserved.
  442. Local Variables:
  443. mode: change-log
  444. left-margin: 8
  445. fill-column: 74
  446. version-control: never
  447. End: