ChangeLog-2018 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785
  1. 2018-12-18 Alan Modra <amodra@gmail.com>
  2. * testsuite/Makefile.am (keep_text_section_prefix_nm.stdout):
  3. Pass --synthetic to nm.
  4. * testsuite/Makefile.in: Regenerate.
  5. 2018-12-08 Alan Modra <amodra@gmail.com>
  6. PR 21128
  7. * testsuite/icf_safe_so_test.sh (check_fold): Rewrite to check
  8. multiple symbols at once.
  9. (arch_specific_safe_fold): Likewise, and call with the four foo*
  10. symbols expected to fold.
  11. 2018-12-06 H.J. Lu <hongjiu.lu@intel.com>
  12. * archive.cc (Archive::get_elf_object_for_member): Also print
  13. archive member and non-ELF/non-IR info on error.
  14. 2018-12-05 Alan Modra <amodra@gmail.com>
  15. * symtab.h (Symbol::Symbol): Avoid -Wclass-memaccess warning.
  16. 2018-12-03 Alexey Neyman <stilor@att.net>
  17. PR gold/23594
  18. * configure.ac: Add checks for link, mkdtemp.
  19. * configure: Regenerate.
  20. * config.in: Regenerate.
  21. * plugin.cc (Plugin_recorder::init): Fall back to mktemp
  22. if mkdtemp is not available.
  23. (link_or_copy_file): Fall back to copy if link() is not available.
  24. 2018-12-02 H.J. Lu <hongjiu.lu@intel.com>
  25. PR binutils/23919
  26. * merge.cc (Output_merge_string<Char_type>::do_add_input_section):
  27. Get addralign from decompressed_section_contents.
  28. * object.cc (build_compressed_section_map): Set info.addralign.
  29. (Object::decompressed_section_contents): Add a palign
  30. argument and store p->second.addralign in *palign if it isn't
  31. NULL.
  32. * object.h (Compressed_section_info): Add addralign.
  33. (section_is_compressed): Add a palign argument, default it
  34. to NULL, store p->second.addralign in *palign if it isn't NULL.
  35. (Object::decompressed_section_contents): Likewise.
  36. * output.cc (Output_section::add_input_section): Get addralign
  37. from section_is_compressed.
  38. 2018-11-26 Alan Modra <amodra@gmail.com>
  39. * testsuite/Makefile.am (justsyms_lib): Link with -z norelro.
  40. * testsuite/Makefile.in: Regenerate.
  41. * testsuite/justsyms_exec.c (main): Do check exported_func
  42. on PowerPC64 ELFv2.
  43. 2018-11-26 Alan Modra <amodra@gmail.com>
  44. * testsuite/ver_test_14.sh: Accept objdump -T display of st_other
  45. bits on powerpc64le.
  46. 2018-11-08 Alan Modra <amodra@gmail.com>
  47. * Makefile.am (gcctestdir1/ld): Use $@ and absolute paths.
  48. (gcctestdir1/collect-ld): New.
  49. (ld1_DEPENDENCIES): Add gcctestdir1/collect-ld.
  50. (ld1_LDFLAGS): Remove -Bgcctestdir1/.
  51. (editcc1, ld1_LINK): Define.
  52. (gcctestdir2/ld, gcctestdir2/collect-ld, ld2_DEPENDENCIES),
  53. (ld2_LDFLAGS, editcc2, ld2_LINK),
  54. (ld1_r_DEPENDENCIES, ld1_r_LDFLAGS, ld1_r_LINK),
  55. (gcctestdir2-r/ld, gcctestdir2-r/collect-ld, ld2_r_DEPENDENCIES),
  56. (ld2_r_LDFLAGS, editcc2r, ld2_r_LINK),
  57. (gcctestdir3/ld, gcctestdir3/collect-ld, ld3_DEPENDENCIES),
  58. (ld3_LDFLAGS, editcc3, ld3_LINK),
  59. (gcctestdir4/ld, gcctestdir4/collect-ld, ld4_DEPENDENCIES),
  60. (ld4_LDFLAGS, editcc4, ld4_LINK): Similarly.
  61. * Makefile.in: Regenerate.
  62. * testsuite/Makefile.am (editcc): Define sed command to put
  63. our -B option first. Remove other occurrences of -Bgcctestdir/
  64. throughout file.
  65. (editcc1): Define for -D_FORTIFY_SOURCE stripping.
  66. (editcc2): Define for -static-libgcc/libstdc++ stripping.
  67. (LINK1, CXXLINK1): Don't use CCLD or CXXLD.
  68. (CCLD, CXXLD, COMPILE, LINK, CXXCOMPILE, CXXLINK, CXXLINK_S): Define
  69. using editcc macros.
  70. (gcctestdir/collect-ld): New rule, add as a dependency of..
  71. (gcctestdir/ld): ..this. Use $@ and abs_top_buildir.
  72. (gcctestdir/as): Use $@.
  73. * testsuite/Makefile.in: Regenerate.
  74. * testsuite/incremental_test.sh (actual): Match collect-ld too.
  75. 2018-11-02 Alan Modra <amodra@gmail.com>
  76. * Makefile.am (MOSTLYCLEANFILES): Define.
  77. * Makefile.in: Regnerate.
  78. * testsuite/Makefile.am (MOSTLYCLEANFILES): Add ver_test_14 and
  79. gnu_property_test.
  80. * testsuite/Makefile.in: Regnerate.
  81. 2018-10-16 Cherry Zhang <cherryyz@google.com>
  82. PR 23769
  83. * gold.cc (queue_middle_tasks): Correct split-stack error message.
  84. 2018-08-29 Chenghua Xu <paul.hua.gm@gmail.com>
  85. * mips.cc (Mips_mach, add_machine_extensions, elf_mips_mach):
  86. Rename loongson3a to gs464.
  87. (mips_isa_ext_mach, mips_isa_ext): Delete loongson3a.
  88. (infer_abiflags): Use ases instead of isa_ext for infer ABI
  89. flags.
  90. (elf_mips_mach_name): Rename loongson3a to gs464.
  91. 2018-07-10 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
  92. * object.cc (Sized_relobj_file::map_to_kept_section): Initialize
  93. kept_file.
  94. 2018-08-07 Cary Coutant <ccoutant@gmail.com>
  95. PR ld/23486
  96. * x86_64.cc (Target_x86_64::Target_x86_64): Initialize
  97. object_isa_1_used_.
  98. (Target_x86_64::object_isa_1_used_): New data member.
  99. (Target_x86_64::record_gnu_property): Save ISA_1_USED bits for object.
  100. (Target_x86_64::merge_gnu_properties): Merge ISA_1_USED bits.
  101. 2018-08-06 Cary Coutant <ccoutant@gmail.com>
  102. PR gold/23455
  103. * options.h (General_options): Add --warn-drop-version option.
  104. * symtab.cc (Symbol_table::set_dynsym_indexes): Check it.
  105. 2018-08-06 Cary Coutant <ccoutant@gmail.com>
  106. * target.h (Sized_target::record_gnu_property): Change first two
  107. parameters to unsigned int.
  108. * x86_64.cc (Target_x86_64::record_gnu_property): Likewise.
  109. 2018-07-30 Nick Clifton <nickc@redhat.com>
  110. * layout.cc (section_name_mapping): Add an entry for
  111. .gnu.build.attributes.
  112. 2018-07-18 Nick Clifton <nickc@redhat.com>
  113. * po/fr.po: Updated French translation.
  114. 2018-07-14 Cary Coutant <ccoutant@gmail.com>
  115. PR gold/23397
  116. * object.cc (Sized_relobj_file::do_layout): Mark section as deferred.
  117. * testsuite/Makefile.am (plugin_test_1): Add --emit-relocs option to
  118. existing test case.
  119. * testsuite/Makefile.in: Regenerate.
  120. 2018-07-14 Cary Coutant <ccoutant@gmail.com>
  121. PR gold/23409
  122. * symtab.cc (Symbol_table::define_special_symbol): Add check for
  123. version name on existing symbol.
  124. * testsuite/Makefile.am (ver_test_pr23409): New test case.
  125. * testsuite/Makefile.in: Regenerate.
  126. * testsuite/ver_test_pr23409.sh: New test script.
  127. * testsuite/ver_test_pr23409_1.script: New version script.
  128. * testsuite/ver_test_pr23409_2.script: New version script.
  129. 2018-07-11 Franz Sirl <franz.sirl-kernel@lauterbach.com>
  130. * main.cc (main): Print m.arena as long long.
  131. 2018-07-09 Cary Coutant <ccoutant@gmail.com>
  132. * incremental.cc (Sized_incremental_binary::setup_readers): Use
  133. emplace_back for C++ 11 or later.
  134. 2018-07-06 Alan Modra <amodra@gmail.com>
  135. * powerpc.cc: Include attributes.h.
  136. (Powerpc_relobj::attributes_section_data_): New variable, with
  137. accessor and associated constructor and destructor support.
  138. (Powerpc_dynobj::attributes_section_data_): Likewise.
  139. (Powerpc_relobj::do_read_symbols): Stash SHT_GNU_ATTRIBUTES section
  140. contents in attributes_section_data_.
  141. (Powerpc_dynobj::do_read_symbols): Likewise.
  142. (Target_powerpc): Add attributes_section_data_, last_fp_, last_ld_,
  143. last_vec_, and last_struct_ vars.
  144. (Target_powerpc::merge_object_attributes): New function.
  145. (Target_powerpc::do_finalize_sections): Iterate over input objects
  146. merging attributes. Create output attributes section.
  147. 2018-06-26 Nick Clifton <nickc@redhat.com>
  148. * po/uk.po: Updated Ukranian translation.
  149. 2018-06-24 Nick Clifton <nickc@redhat.com>
  150. * po/gold.pot: Regenerate.
  151. 2018-06-24 Nick Clifton <nickc@redhat.com>
  152. 2.31 branch created.
  153. 2018-06-23 Cary Coutant <ccoutant@gmail.com>
  154. * version.cc (version_string): Bump to 1.16.
  155. * NEWS: Add new features in 1.16.
  156. 2018-06-23 Cary Coutant <ccoutant@gmail.com>
  157. PR gold/22914
  158. * x86_64.cc (Target_x86_64::record_gnu_property): Initialize val.
  159. 2018-06-23 Cary Coutant <ccoutant@gmail.com>
  160. PR gold/22915
  161. * x86_64.cc (Output_data_plt_x86_64_ibt): New class.
  162. (Target_x86_64::do_make_data_plt): (All instantiations) Check for
  163. IBT feature bit and create IBT PLTs.
  164. 2018-06-22 Cary Coutant <ccoutant@gmail.com>
  165. PR gold/22914
  166. * layout.cc (read_sized_value): Fix spelling of section name.
  167. (Layout::layout_gnu_property): Call Sized_target::record_gnu_property
  168. for target-specific properties;
  169. don't store them with target-independent properties yet.
  170. (Layout::merge_gnu_properties): New method.
  171. (Layout::add_gnu_property): New method.
  172. (Layout::create_gnu_properties_note): Call target to finalize
  173. target-specific properties. Fix spelling of output section name.
  174. * layout.h (Layout::merge_gnu_properties): New method.
  175. (Layout::add_gnu_property): New method.
  176. * object.cc (Sized_relobj_file::do_layout): Call
  177. Layout::merge_gnu_properties.
  178. * target.h (Target::merge_gnu_property): Remove.
  179. (Target::finalize_gnu_properties): New method.
  180. (Target::do_merge_gnu_property): Move to Sized_target and rename.
  181. (Target::do_finalize_gnu_properties): New virtual method.
  182. (Sized_target::record_gnu_property): Moved and renamed from
  183. Target::do_merge_gnu_property.
  184. (Sized_target::merge_gnu_properties): New virtual method.
  185. * x86_64.cc (Target_x86_64::isa_1_used_, isa_1_needed_)
  186. (feature_1_, object_feature_1_, seen_first_object_): New data members.
  187. (Target_x86_64::do_merge_gnu_property): Rename to ...
  188. (Target_x86_64::record_gnu_property): ... this. Save target-specific
  189. properties in Target class object.
  190. (Target_x86_64::merge_gnu_properties): New method.
  191. (add_property): New static inline function.
  192. (Target_x86_64::do_finalize_gnu_properties): New method.
  193. * testsuite/Makefile.am (gnu_property_test): Remove C source file;
  194. link directly without compiler driver.
  195. * testsuite/Makefile.in: Regenerate.
  196. * testsuite/gnu_property_a.S: Add _start.
  197. 2018-06-22 Cary Coutant <ccoutant@gmail.com>
  198. * incremental.cc (Sized_incremental_binary::setup_readers): Use
  199. emplace_back for GCC 5 and later.
  200. * incremental.h (Incremental_binary::Input_reader): Provide copy
  201. constructor.
  202. (Sized_incremental_binary::Sized_input_reader): Likewise.
  203. 2018-06-22 Cary Coutant <ccoutant@gmail.com>
  204. PR gold/22914
  205. * layout.cc (Layout::Layout): Initialize gnu_properties_.
  206. (read_sized_value, write_sized_value): New functions.
  207. (Layout::layout_gnu_property): New method.
  208. (Layout::create_notes): Call create_gnu_properties_note.
  209. (Layout::create_gnu_properties_note): New method.
  210. * layout.h (Layout::layout_gnu_property): New method.
  211. (Layout::create_gnu_properties_note): New method.
  212. (Layout::Gnu_property, Layout::Gnu_properties): New types.
  213. (Layout::gnu_properties_): New data member.
  214. * object.cc (Sized_relobj_file::layout_gnu_property_section): New
  215. method.
  216. (Sized_relobj_file::do_layout): Handle .note.gnu.property sections.
  217. * object.h (Sized_relobj_file::layout_gnu_property_section): New
  218. method.
  219. * target.h (Target::merge_gnu_property): New method.
  220. (Target::do_merge_gnu_property): New virtual method.
  221. * x86_64.cc (Target_x86_64::do_merge_gnu_property): New method.
  222. * testsuite/Makefile.am (gnu_property_test): New test case.
  223. * testsuite/Makefile.in: Regenerate.
  224. * testsuite/gnu_property_a.S: New source file.
  225. * testsuite/gnu_property_b.S: New source file.
  226. * testsuite/gnu_property_c.S: New source file.
  227. * testsuite/gnu_property_main.c: New source file.
  228. * testsuite/gnu_property_test.sh: New test script.
  229. 2018-06-21 Cary Coutant <ccoutant@gmail.com>
  230. * resolve.cc (Symbol_table::resolve): Rename tobinding to
  231. orig_tobinding. Call set_is_needed() for objects that resolve
  232. non-weak references.
  233. (Symbol_table::should_override): Allow a dynamic definition to
  234. override an earlier one in a not-needed library.
  235. * symtab.cc (Symbol_table::set_dynsym_indexes): Remove separate
  236. processing for as-needed symbols. Add warning when discarding
  237. version informatin.
  238. * testsuite/Makefile.am (weak_as_needed): New test case.
  239. * testsuite/Makefile.in: Regenerate.
  240. * testsuite/weak_as_needed.sh: New test script.
  241. * testsuite/weak_as_needed_a.c: New source file.
  242. * testsuite/weak_as_needed_b.c: New source file.
  243. * testsuite/weak_as_needed_b.script: New version script.
  244. * testsuite/weak_as_needed_c.c: New source file.
  245. * testsuite/weak_as_needed_c.script: New version script.
  246. 2018-06-20 Cary Coutant <ccoutant@gmail.com>
  247. PR gold/23268
  248. * dynobj.cc (Versions::Versions): Change init for needs_base_version_.
  249. (Versions::record_version): Add verdefs for both shared objects and
  250. executables.
  251. (Versions::add_def): Likewise for base version.
  252. (Versions::add_need): Don't add base version for executables.
  253. (Versions::version_index): Look up version for both shared objects and
  254. executables.
  255. * testsuite/Makefile.am (ver_test_14): New test case.
  256. * testsuite/Makefile.in: Regenerate.
  257. * testsuite/ver_test_14.script: New version script.
  258. * testsuite/ver_test_14.sh: New test script.
  259. 2018-06-19 Joshua Watt <jpewhacker@gmail.com>
  260. Cary Coutant <ccoutant@gmail.com>
  261. * configure.ac: Replace manual thread configuration with AX_PTHREAD.
  262. Add --enable-threads=auto.
  263. * Makefile.am (THREADFLAGS, THREADLIBS): New defines.
  264. (AM_CFLAGS, AM_CXXFLAGS): Add $(THREADFLAGS).
  265. (THREADSLIB): Remove; change all references to THREADLIBS.
  266. * Makefile.in: Regenerate.
  267. * aclocal.m4: Regenerate.
  268. * config.in: Regenerate.
  269. * configure: Regenerate.
  270. * testsuite/Makefile.am (THREADSLIB): Replace with...
  271. (THREADFLAGS, THREADLIBS): ... these.
  272. (LDADD): Remove; add as individual defines for...
  273. (object_unittest, binary_unittest, leb128_unittest)
  274. (overflow_unittest): ... these tests.
  275. (tls_test, tls_pic_test, tls_pie_test, tls_pie_pic_test)
  276. (tls_shared_test, tls_shared_ie_test, tls_shared_gd_to_ie_test)
  277. (tls_shared_gnu2_gd_to_ie_test, tls_shared_gnu2_test_LDFLAGS)
  278. (tls_shared_nonpic_test_LDFLAGS): Add $(THREADFLAGS) and ($THREADLIBS).
  279. * testsuite/Makefile.in: Regenerate.
  280. 2018-06-19 Cary Coutant <ccoutant@gmail.com>
  281. * testsuite/Makefile.am (MOSTLYCLEANFILES): Add *.stderr.
  282. * testsuite/Makefile.in: Regenerate.
  283. 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
  284. * configure.ac: Remove AC_PREREQ, add missing quoting and usage
  285. of AC_LANG_SOURCE.
  286. * Makefile.in: Re-generate.
  287. * aclocal.m4: Re-generate.
  288. * configure: Re-generate.
  289. * testsuite/Makefile.in: Re-generate.
  290. 2018-05-10 Stephen Crane <sjc@immunant.com>
  291. * aarch64.cc (Target_aarch64::do_finalize_sections): Use size of
  292. .got section for the _GLOBAL_OFFSET_TABLE_ symbol computation.
  293. 2018-04-24 Cary Coutant <ccoutant@gmail.com>
  294. PR gold/20642
  295. PR gold/22820
  296. * gc.h (gc_process_relocs): Flag STT_SECTION symbols in symvec.
  297. * icf.cc (get_section_contents): For merge sections, ignore the
  298. addend for relocations against non-section symbols.
  299. 2018-04-24 Cary Coutant <ccoutant@gmail.com>
  300. PR gold/16504
  301. * dynobj.cc (Versions::symbol_section_contents): Don't set
  302. VERSYM_HIDDEN flag for undefined symbols.
  303. * symtab.cc (Symbol_table::add_from_object): Don't override default
  304. version definition with a different default version.
  305. * symtab.h (Symbol::from_dyn): New method.
  306. * testsuite/plugin_test.c (struct sym_info): Add ver field.
  307. (claim_file_hook): Pass symbol version to plugin API.
  308. (parse_readelf_line): Parse symbol version.
  309. * testsuite/Makefile.am (ver_test_pr16504): New test case.
  310. * testsuite/Makefile.in: Regenerate.
  311. * testsuite/ver_test_pr16504.sh: New test script.
  312. * testsuite/ver_test_pr16504_a.c: New source file.
  313. * testsuite/ver_test_pr16504_a.script: New version script.
  314. * testsuite/ver_test_pr16504_b.c: New source file.
  315. * testsuite/ver_test_pr16504_b.script: New version script.
  316. 2018-04-19 Cary Coutant <ccoutant@gmail.com>
  317. PR gold/23046
  318. * gc.h (gc_process_relocs): Pass target to
  319. scan.local_reloc_may_be_function_pointer.
  320. 2018-04-18 Nick Clifton <nickc@redhat.com>
  321. * po/es.po: Updated Spanish translation.
  322. 2018-04-14 Cary Coutant <ccoutant@gmail.com>
  323. PR gold/23046
  324. * gc.h (gc_process_relocs): Pass target to
  325. scan.global_reloc_may_be_function_pointer.
  326. 2018-04-09 Alan Modra <amodra@gmail.com>
  327. * configure: Regenerate.
  328. 2018-04-09 Alan Modra <amodra@gmail.com>
  329. * powerpc.cc (Target_powerpc::Track_tls::maybe_skip_tls_get_addr_call):
  330. Handle inline plt sequence relocs.
  331. (Stub_table::Plt_stub_key::Plt_stub_key): Likewise.
  332. (Target_powerpc::Scan::reloc_needs_plt_for_ifunc): Likewise.
  333. (Target_powerpc::Relocate::relocate): Likewise.
  334. 2018-04-09 Alan Modra <amodra@gmail.com>
  335. * powerpc.cc (Target_powerpc::lplt_): New variable.
  336. (Target_powerpc::lplt_section): Associated accessor.
  337. (Target_powerpc::plt_off): Handle local non-ifunc symbols.
  338. (Target_powerpc::make_lplt_section): New function.
  339. (Target_powerpc::make_local_plt_entry): New function.
  340. (Powerpc_relobj::do_relocate_sections): Write out lplt.
  341. (Output_data_plt_powerpc::first_plt_entry_offset): Zero for lplt.
  342. (Output_data_plt_powerpc::add_local_entry): New function.
  343. (Output_data_plt_powerpc::do_write): Ignore lplt.
  344. (Target_powerpc::make_iplt_section): Make lplt first.
  345. (Target_powerpc::make_brlt_section): Make .branch_lt relro.
  346. (Target_powerpc::Scan::local): Handle PLT16 relocs.
  347. 2018-04-09 Alan Modra <amodra@gmail.com>
  348. * powerpc.cc (Target_powerpc::plt_off): New functions.
  349. (is_plt16_reloc): New function.
  350. (Stub_table::plt_off): Use Target_powerpc::plt_off.
  351. (Stub_table::plt_call_size): Use plt_off.
  352. (Stub_table::do_write): Likewise.
  353. (Target_powerpc::Scan::get_reference_flags): Return RELATIVE_REF
  354. for PLT16 relocations.
  355. (Target_powerpc::Scan::reloc_needs_plt_for_ifunc): Return true
  356. for PLT16 relocations.
  357. (Target_powerpc::Scan::global): Make a PLT entry for PLT16 relocations.
  358. (Target_powerpc::Relocate::relocate): Support PLT16 relocations.
  359. (Powerpc_scan_relocatable_reloc::global_strategy): Return RELOC_SPECIAL
  360. for ppc32 plt16 relocs.
  361. 2018-04-06 Cary Coutant <ccoutant@gmail.com>
  362. * object.cc (Sized_relobj_file::include_section_group): Store
  363. reference to Kept_section info for discarded comdat sections
  364. regardless of size. Move size checking to map_to_kept_section.
  365. (Sized_relobj_file::include_linkonce_section): Likewise.
  366. (Sized_relobj_file::map_to_kept_section): Add section name parameter.
  367. Insert size checking logic from above functions.
  368. (Sized_relobj_file::find_kept_section_object): New method.
  369. (Sized_relobj_file::get_symbol_name): New method.
  370. * object.h (Sized_relobj_file::map_to_kept_section): Add section_name
  371. parameter. Adjust all callers.
  372. (Sized_relobj_file::find_kept_section_object): New method.
  373. (Sized_relobj_file::get_symbol_name): New method.
  374. (Sized_relobj_file::Kept_comdat_section): Replace object and shndx
  375. fields with sh_size, kept_section, symndx, and is_comdat fields.
  376. (Sized_relobj_file::set_kept_comdat_section): Replace kept_object
  377. and kept_shndx parameters with is_comdat, symndx, sh_size, and
  378. kept_section.
  379. (Sized_relobj_file::get_kept_comdat_section): Likewise.
  380. * target-reloc.h (enum Comdat_behavior): Change CB_WARNING to CB_ERROR.
  381. Adjust all references.
  382. (issue_undefined_symbol_error): New function template.
  383. (relocate_section): Pass section name to map_to_kept_section.
  384. Move discarded section code to new function above.
  385. * aarch64.cc (Target_aarch64::scan_reloc_section_for_stubs): Move
  386. declaration for gsym out one level. Call issue_discarded_error.
  387. * arm.cc (Target_arm::scan_reloc_section_for_stubs): Likewise.
  388. * powerpc.cc (Relocate_comdat_behavior): Change CB_WARNING to CB_ERROR.
  389. 2018-04-05 Cary Coutant <ccoutant@gmail.com>
  390. * target-reloc.h (relocate_section): Add local symbol index or global
  391. symbol name to warning about relocation that refers to discarded
  392. section.
  393. 2018-04-05 James Cowgill <james.cowgill@mips.com>
  394. Revert previous patch and apply revised patch.
  395. PR gold/22770
  396. * mips.cc (Mips_got_info::record_got_page_entry): Don't insert
  397. Got_page_entry for object's GOT.
  398. (Mips_got_info::add_got_page_entries): Add all pages from from's GOT.
  399. Rename to add_got_page_count.
  400. (Got_page_entry): Remove num_pages.
  401. 2018-04-05 James Cowgill <james.cowgill@mips.com>
  402. PR gold/22770
  403. * mips.cc (Mips_got_info::record_got_page_entry): Fetch existing
  404. page entries for the object's GOT.
  405. 2018-04-05 Alan Modra <amodra@gmail.com>
  406. * powerpc.cc (Target_powerpc::make_brlt_section): Make .branch_lt relro.
  407. 2018-04-04 Nick Clifton <nickc@redhat.com>
  408. * po/es.po: Updated Spanish translation.
  409. 2018-04-02 Cary Coutant <ccoutant@gmail.com>
  410. PR gold/23016
  411. * incremental.cc (can_incremental_update): Check for unwind section
  412. type.
  413. * layout.h (Layout::layout): Add sh_type parameter.
  414. * layout.cc (Layout::layout): Likewise.
  415. (Layout::layout_reloc): Create new output reloc section if data
  416. section does not already have one.
  417. (Layout::layout_eh_frame): Check for unwind section type.
  418. (Layout::make_eh_frame_section): Use unwind section type for .eh_frame
  419. and .eh_frame_hdr.
  420. * object.h (Sized_relobj_file::Shdr_write): New typedef.
  421. (Sized_relobj_file::layout_section): Add sh_type parameter.
  422. (Sized_relobj_file::Deferred_layout::Deferred_layout): Add sh_type
  423. parameter.
  424. * object.cc (Sized_relobj_file::check_eh_frame_flags): Check for
  425. unwind section type.
  426. (Sized_relobj_file::layout_section): Add sh_type parameter; pass it
  427. to Layout::layout.
  428. (Sized_relobj_file::do_layout): Make local copy of sh_type.
  429. Force .eh_frame sections to unwind section type.
  430. Pass sh_type to layout_section.
  431. (Sized_relobj_file<size, big_endian>::do_layout_deferred_sections):
  432. Pass sh_type to layout_section.
  433. * output.cc (Output_section::Output_section): Initialize reloc_section_.
  434. * output.h (Output_section::reloc_section): New method.
  435. (Output_section::set_reloc_section): New method.
  436. (Output_section::reloc_section_): New data member.
  437. * target.h (Target::unwind_section_type): New method.
  438. (Target::Target_info::unwind_section_type): New data member.
  439. * aarch64.cc (aarch64_info): Add unwind_section_type.
  440. * arm.cc (arm_info, arm_nacl_info): Likewise.
  441. * i386.cc (i386_info, i386_nacl_info, iamcu_info): Likewise.
  442. * mips.cc (mips_info, mips_nacl_info): Likewise.
  443. * powerpc.cc (powerpc_info): Likewise.
  444. * s390.cc (s390_info): Likewise.
  445. * sparc.cc (sparc_info): Likewise.
  446. * tilegx.cc (tilegx_info): Likewise.
  447. * x86_64.cc (x86_64_info, x86_64_nacl_info): Likewise.
  448. * testsuite/Makefile.am (pr23016_1, pr23016_2): New test cases.
  449. * testsuite/Makefile.in: Regenerate.
  450. * testsuite/testfile.cc: Add unwind_section_type.
  451. * testsuite/pr23016_1.sh: New test script.
  452. * testsuite/pr23016_1a.s: New source file.
  453. * testsuite/pr23016_1b.s: New source file.
  454. * testsuite/pr23016_2.sh: New test script.
  455. * testsuite/pr23016_2a.s: New source file.
  456. * testsuite/pr23016_2b.s: New source file.
  457. 2018-03-28 Cary Coutant <ccoutant@gmail.com>
  458. PR gold/21423
  459. PR gold/22500
  460. * configure.ac: Call AC_USE_SYSTEM_EXTENSIONS.
  461. Replace check for --enable-plugins with AC_PLUGINS.
  462. * options.cc (parse_plugin, parse_plugin_opt): Remove #ifdef.
  463. (General_options::finalize): Check if plugins enabled.
  464. * options.h (--plugin, --plugin-opt): Define even if plugins not
  465. enabled.
  466. * Makefile.in: Regenerate.
  467. * aclocal.m4: Regenerate.
  468. * configure: Regenerate.
  469. * testsuite/Makefile.in: Regenerate.
  470. 2018-03-28 Cary Coutant <ccoutant@gmail.com>
  471. PR gold/22969
  472. * aarch64-reloc.def: Add TLSLE_LDST* relocations.
  473. * aarch64.cc (Target_aarch64::optimize_tls_reloc): Likewise.
  474. (Target_aarch64::Scan::local): Likewise.
  475. (Target_aarch64::Scan::global): Likewise.
  476. (Target_aarch64::Relocate::relocate): Likewise.
  477. (Target_aarch64::Relocate::relocate_tls): Likewise.
  478. 2018-03-27 Roland McGrath <mcgrathr@google.com>
  479. * testsuite/split_x86_64.sh: Fix bad regexp.
  480. 2018-03-26 Cary Coutant <ccoutant@gmail.com>
  481. PR gold/22868
  482. * plugin.cc (Sized_pluginobj::do_add_symbols): Use a real section
  483. index instead of SHN_ABS for defined symbols.
  484. * testsuite/Makefile.am (plugin_pr22868): New test case.
  485. * testsuite/Makefile.in: Regenerate
  486. * testsuite/plugin_pr22868.sh: New test script.
  487. * testsuite/plugin_pr22868_a.c: New source file.
  488. * testsuite/plugin_pr22868_b.c: New source file.
  489. 2018-03-23 Cary Coutant <ccoutant@gmail.com>
  490. * plugin.cc (link_or_copy_file): Remove newlines from warning messages.
  491. Add pedantic check for return value from ::write.
  492. 2018-03-23 Cary Coutant <ccoutant@gmail.com>
  493. * debug.h (DEBUG_PLUGIN): New constant.
  494. (DEBUG_ALL): Add DEBUG_PLUGIN.
  495. (debug_string_to_enum): Likewise.
  496. * plugin.cc (make_sized_plugin_object): Add filename parameter.
  497. (Plugin_recorder): New class.
  498. (Plugin_manager::~Plugin_manager): Delete recorder_.
  499. (Plugin_manager::load_plugins): Create and initialize recorder_.
  500. (Plugin_manager::claim_file): Record claimed and unclaimed files.
  501. (Plugin_manager::make_plugin_object): Use object name as name for
  502. plugin object, if available.
  503. (Plugin_manager::add_input_file): Record replacement files.
  504. (Sized_pluginobj::do_add_symbols): Record plugin symbols.
  505. (Plugin_finish::run): Call Plugin_recorder::finish().
  506. (make_sized_plugin_object): Add filename parameter and pass to
  507. Sized_pluginobj constructor.
  508. * plugin.h (Plugin::filename): New method.
  509. (Plugin::recorder): New method.
  510. (Plugin::recorder_): New data member.
  511. 2018-03-07 Sriraman Tallam <tmsriram@google.com>
  512. * layout.cc (Layout::default_section_order): Check for text section
  513. prefixes.
  514. (Layout::text_section_name_mapping): New static member.
  515. (Layout::text_section_name_mapping_count): New static member.
  516. (Layout::match_section_name): New static function.
  517. (Layout::output_section_name): Check for text section prefixes.
  518. * layout.h (Output_section_order::ORDER_TEXT_HOT): New enum value.
  519. (Output_section_order::ORDER_TEXT_STARTUP): New enum value.
  520. (Output_section_order::ORDER_TEXT_EXIT): New enum value.
  521. (Output_section_order::ORDER_TEXT_UNLIKELY): New enum value.
  522. (Layout::text_section_name_mapping): New static member.
  523. (Layout::text_section_name_mapping_count): New static member.
  524. (Layout::match_section_name): New static function.
  525. * options.h (keep_text_section_prefix): New -z option.
  526. * testsuite/Makefile.am (keep_text_section_prefix): New test.
  527. * testsuite/Makefile.in: Regenerate.
  528. * testsuite/keep_text_section_prefix.cc: New test source.
  529. * testsuite/keep_text_section_prefix.sh: New test script.
  530. 2018-02-22 Sriraman Tallam <tmsriram@google.com>
  531. * plugin.cc (get_wrap_symbols): New plugin interface.
  532. (load): Add get_wrap_symbols to transfer vector.
  533. * plugin-api.h (ld_plugin_get_wrap_symbols): New plugin interface.
  534. * testsuite/plugin_test.c (onload): Call and check get_wrap_symbols
  535. interface.
  536. * testsuite/plugin_test_wrap_symbols.sh: New test script.
  537. * testsuite/plugin_test_wrap_symbols_1.cc: New file.
  538. * testsuite/plugin_test_wrap_symbols_2.cc: New file.
  539. * testsuite/Makefile.am (plugin_test_wrap_symbols): New test.
  540. * testsuite/Makefile.in: Regenerate.
  541. 2018-02-07 Sriraman Tallam <tmsriram@google.com>
  542. * expression.cc (Symbol_expression::set_expr_sym_in_real_elf):
  543. New method.
  544. (Unary_expression::set_expr_sym_in_real_elf): New method.
  545. (Binary_expression::set_expr_sym_in_real_elf): New method.
  546. (Trinary_expression::set_expr_sym_in_real_elf): New method.
  547. * plugin.cc (get_symbol_resolution_info): Fix symbol resolution if
  548. defined or used in defsyms.
  549. * plugin.h (Plugin_manager::is_defsym_def): New method.
  550. (Plugin_manager::Plugin_manager): Initialize defsym_defines_set_.
  551. (Plugin_manager::defsym_defines_set_): New member.
  552. (Plugin_manager::Defsym_defines_set): New typedef.
  553. * script.cc (Script_options::set_defsym_uses_in_real_elf): New method.
  554. (Script_options::find_defsym_defs): New method.
  555. * script.h (Expression::set_expr_sym_in_real_elf): New method.
  556. (Symbol_assignment::is_defsym): New method.
  557. (Symbol_assignment::value): New method.
  558. (Script_options::find_defsym_defs): New method.
  559. (Script_options::set_defsym_uses_in_real_elf): New method.
  560. * testsuite/Makefile.am (plugin_test_defsym): New test.
  561. * testsuite/Makefile.in: Regenerate.
  562. * testsuite/plugin_test.c: Check for new symbol resolution.
  563. * testsuite/plugin_test_defsym.sh: New script.
  564. * testsuite/plugin_test_defsym.c: New test source.
  565. 2018-02-07 Alan Modra <amodra@gmail.com>
  566. Revert 2018-01-17 Alan Modra <amodra@gmail.com>
  567. * options.h: Remove --speculate-indirect-jumps support.
  568. * powerpc.cc: Likewise.
  569. 2018-02-02 Cary Coutant <ccoutant@gmail.com>
  570. * PR gold/22776
  571. * dwarf_reader.cc (Sized_dwarf_line_info::read_header_prolog): Add
  572. support for DWARF-4 line number tables.
  573. * dwarf_reader.h (Sized_dwarf_line_info::max_ops_per_insn): New field.
  574. 2018-01-18 Alan Modra <amodra@gmail.com>
  575. * powerpc.cc (param_plt_align): New function supplying default
  576. --plt-align values. Use it..
  577. (Stub_table::plt_call_align): ..here, and..
  578. (Output_data_glink::global_entry_align): ..here.
  579. (Stub_table::stub_align): Correct 32-bit minimum alignment.
  580. 2018-01-17 Alan Modra <amodra@gmail.com>
  581. * options.h (speculate_indirect_jumps): New option.
  582. * powerpc.cc (beqctrm, beqctrlm, crseteq): New insn constants.
  583. (output_bctr): New function.
  584. (Stub_table::plt_call_size): Add space for speculation barrier.
  585. (Stub_table::branch_stub_size): Likewise.
  586. (Output_data_glink::pltresolve_size): Likewise.
  587. (Stub_table::do_write): Output speculation barriers.
  588. 2018-01-17 Alan Modra <amodra@gmail.com>
  589. * options.h (plt_align): Support for PowerPC32 too.
  590. * powerpc.cc (Stub_table::stub_align): Heed --plt-align for 32-bit.
  591. (Stub_table::plt_call_size, branch_stub_size): Tidy.
  592. (Stub_table::plt_call_align): Implement using stub_align.
  593. (Output_data_glink::global_entry_align): New function.
  594. (Output_data_glink::global_entry_off): New function.
  595. (Output_data_glink::global_entry_address): Use global_entry_off.
  596. (Output_data_glink::pltresolve_size): New function, replacing
  597. pltresolve_size_ constant. Update all uses.
  598. (Output_data_glink::add_global_entry): Align offset.
  599. (Output_data_glink::set_final_data_size): Use global_entry_align.
  600. (Stub_table::do_write): Don't pad __glink_PLTrelsolve with nops.
  601. Tidy stub output. Use global_entry_off.
  602. 2018-01-15 Cary Coutant <ccoutant@gmail.com>
  603. PR gold/22694
  604. * options.h (-fuse-ld): Add correct helparg.
  605. 2018-01-15 Nick Clifton <nickc@redhat.com>
  606. * po/uk.po: Updated Ukranian translation.
  607. 2018-01-13 Nick Clifton <nickc@redhat.com>
  608. * po/gold.pot: Regenerated.
  609. 2018-01-13 Nick Clifton <nickc@redhat.com>
  610. 2.30 branch created.
  611. 2018-01-12 Cary Coutant <ccoutant@gmail.com>
  612. * NEWS: Add new features in 1.15.
  613. * version.cc (version_string): Bump to 1.15.
  614. 2018-01-12 Sterling Augustine <saugustine@google.com>
  615. * cref.cc (Cref_inputs::Cref_table_compare::operator): Add
  616. conditionals and calls to is_forwarder.
  617. 2018-01-03 Alan Modra <amodra@gmail.com>
  618. Update year range in copyright notice of all files.
  619. For older changes see ChangeLog-2017
  620. Copyright (C) 2018 Free Software Foundation, Inc.
  621. Copying and distribution of this file, with or without modification,
  622. are permitted in any medium without royalty provided the copyright
  623. notice and this notice are preserved.
  624. Local Variables:
  625. mode: change-log
  626. left-margin: 8
  627. fill-column: 74
  628. version-control: never
  629. End: