[PR ld/25062] arm: sign extend the addend of R_ARM_TLS_GOTDESC
[deliverable/binutils-gdb.git] / ld / ChangeLog
index 3eddd55ddf84a04907955456081475eb6bbd927b..671776bbe665598618b2c20eaf7143430f14ce26 100644 (file)
@@ -1,3 +1,183 @@
+2019-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       PR ld/25062
+       * testsuite/ld-arm/arm-elf.exp: Update.
+       * testsuite/ld-arm/tls-gdesc-neg.d: New test.
+       * testsuite/ld-arm/tls-gdesc-neg.s: New test.
+
+2019-09-23  Nick Alcock  <nick.alcock@oracle.com>
+
+       * configure.ac (TESTCTFLIB): Set to the .so or .a, like TESTBFDLIB.
+       * Makefile.am (TESTCTFLIB): Use it.
+       (LIBCTF): Use the .la file.
+       (check-DEJAGNU): Use it.
+       * Makefile.in: Regenerated.
+       * configure: Likewise.
+
+2019-09-30  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ldlang.h: (struct lang_input_statement_struct): Add the_ctf.
+       (struct elf_sym_strtab): Add forward.
+       (struct elf_strtab_hash): Likewise.
+       (ldlang_ctf_apply_strsym): Declare.
+       (ldlang_write_ctf_late): Likewise.
+       * ldemul.h (ldemul_emit_ctf_early): New.
+       (ldemul_examine_strtab_for_ctf): Likewise.
+       (ld_emulation_xfer_type) <emit_ctf_early>: Likewise.
+       (ld_emulation_xfer_type) <examine_strtab_for_ctf>: Likewise.
+       * ldemul.c (ldemul_emit_ctf_early): New.
+       (ldemul_examine_strtab_for_ctf): Likewise.
+       * ldlang.c: Include ctf-api.h.
+       (CTF_COMPRESSION_THRESHOLD): New.
+       (ctf_output): New. Initialized in...
+       (ldlang_open_ctf): ... this new function.  Open all the CTF
+       sections in the input files: mark them non-loaded and empty
+       so as not to copy their contents to the output, but linker-created
+       so the section gets created in the target.
+       (ldlang_merge_ctf): New, merge types via ctf_link_add_ctf and
+       ctf_link.
+       (ldlang_ctf_apply_strsym): New, an examine_strtab callback: wrap
+       ldemul_examine_strtab_for_ctf.
+       (lang_write_ctf): New, write out the CTF section.
+       (ldlang_write_ctf_late): New, late call via bfd's emit_ctf hook.
+       (lang_process): Call ldlang_open_ctf, ldlang_merge_ctf, and
+       lang_write_ctf.
+       * ldmain.c (link_callbacks): Add ldlang_ctf_apply_strsym,
+       ldlang_write_ctf_late.
+       * emultempl/aix.em: Add ctf-api.h.
+       * emultempl/armcoff.em: Likewise.
+       * emultempl/beos.em: Likewise.
+       * emultempl/elf.em: Likewise.
+       * emultempl/generic.em: Likewise.
+       * emultempl/linux.em: Likewise.
+       * emultempl/msp430.em: Likewise.
+       * emultempl/pe.em: Likewise.
+       * emultempl/pep.em: Likewise.
+       * emultempl/ticoff.em: Likewise.
+       * emultempl/vanilla.em: Likewise.
+       * ldcref.c: Likewise.
+       * ldctor.c: Likewise.
+       * ldelf.c: Likewise.
+       * ldelfgen.c: Likewise.
+       * ldemul.c: Likewise.
+       * ldexp.c: Likewise.
+       * ldfile.c: Likewise.
+       * ldgram.c: Likewise.
+       * ldlex.l: Likewise.
+       * ldmain.c: Likewise.
+       * ldmisc.c: Likewise.
+       * ldver.c: Likewise.
+       * ldwrite.c: Likewise.
+       * lexsup.c: Likewise.
+       * mri.c: Likewise.
+       * pe-dll.c: Likewise.
+       * plugin.c: Likewise.
+
+       * ldelfgen.c (ldelf_emit_ctf_early): New.
+       (ldelf_examine_strtab_for_ctf): tell libctf about the symtab and
+       strtab.
+       (struct ctf_strsym_iter_cb_arg): New, state to do so.
+       (ldelf_ctf_strtab_iter_cb): New: tell libctf about
+       each string in the strtab in turn.
+       (ldelf_ctf_symbols_iter_cb): New, tell libctf
+       about each symbol in the symtab in turn.
+       * ldelfgen.h (struct elf_sym_strtab): Add forward.
+       (struct elf_strtab_hash): Likewise.
+       (struct ctf_file): Likewise.
+       (ldelf_emit_ctf_early): Declare.
+       (ldelf_examine_strtab_for_ctf): Likewise.
+       * emultempl/elf-generic.em (LDEMUL_EMIT_CTF_EARLY): Set it.
+       (LDEMUL_EXAMINE_STRTAB_FOR_CTF): Likewise.
+       * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Add
+       emit_ctf_early and examine_strtab_for_ctf, NULL by default.
+       * emultempl/armcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
+       * emultempl/beos.em (ld_${EMULATION_NAME}_emulation): Likewise.
+       * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Likewise.
+       * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Likewise.
+       * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Likewise.
+       * emultempl/msp430.em (ld_${EMULATION_NAME}_emulation): Likewise.
+       * emultempl/pe.em (ld_${EMULATION_NAME}_emulation): Likewise.
+       * emultempl/pep.em (ld_${EMULATION_NAME}_emulation): Likewise.
+       * emultempl/ticoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
+       * emultempl/vanilla.em (ld_vanilla_emulation): Likewise.
+
+       * Makefile.am: Pull in libctf (and zlib, a transitive requirement
+       for compressed CTF section emission).  Pass it on to DejaGNU.
+       * configure.ac: Add AM_ZLIB.
+       * aclocal.m4: Added zlib.m4.
+       * Makefile.in: Regenerated.
+       * testsuite/ld-bootstrap/bootstrap.exp: Use it when relinking ld.
+
+2019-10-02  Alan Modra  <amodra@gmail.com>
+
+       * ld.texi (-Bsymbolic, -Bsymbolic-functions): Don't mention PIEs.
+       * ld.h (symbolic_enum, dynamic_list_enum),
+       (args_type <symbolic, dynamic_list>): Move to..
+       * lexsup.c (parse_args): ..here, using auto vars opt_symbolic
+       and opt_dynamic_list rather than command_line fields.  Only
+       act on -Bsymbolic and -Bsymbolic-functions for shared library
+       output.  Free dynamic_list.
+
+2019-09-26  Alan Modra  <amodra@gmail.com>
+
+       PR 24262
+       * ld.texi (-plugin): Revert 2019-03-15 change.
+
+2019-09-25  Alan Modra  <amodra@gmail.com>
+
+       * ld.texi (SORT_BY_ALIGNMENT): Reword slightly.
+       (SORT_BY_INIT_PRIORITY): Elucidate.
+       * ldlang.c: Include limits.h.
+       (get_init_priority): Comment.  Change param to a section,
+       return an int.  Sanity check priority digits.  Support sorting
+       more sections with trailing digits.  Return -1 on error.
+       (compare_section): Adjust.
+
+2019-09-25  Nick Clifton  <nickc@redhat.com>
+
+       * emultempl/avrelf.em (_before_allocation): Silence build warning
+       using clang.
+
+2019-09-23  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-plugin/pr24406-1.c (main): Correct buffer size
+       to read.
+
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * deffilep.y: Include bfdlink.h.
+       * ldelf.c: Likewise.
+       * ldelfgen.c: Likewise.
+       * ldver.c: Likewise.
+       * mri.c: Likewise.
+       * emultempl/irix.em: Don't include ld.h, ldmain.h, libiberty.h.
+       Comment.
+
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * emultempl/m68kelf.em: Include elf32-m68k.h.
+
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * emultempl/bfin.em: Include elf32-bfin.h.
+
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * emultempl/cr16elf.em: Include elf32-cr16.h.
+
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * emultempl/aix.em: Include xcofflink.h.
+
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * emultempl/armelf.em: Include elf32-arm.h.
+       * emultempl/pe.em: Move func defines later and include coff-arm.h.
+
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * emultempl/aarch64elf.em: Include elfxx-aarch64.h.
+
 2019-09-23  Alan Modra  <amodra@gmail.com>
 
        * emultempl/ia64elf.em: Include elfxx-ia64.h.
This page took 0.0454 seconds and 4 git commands to generate.