x86-64: Move PIC check for PC-relative relocations back
[deliverable/binutils-gdb.git] / ld / ChangeLog
index a93d367a544e088ed52a53f89ebde4bce6932169..4837aac2203eef35b3e3d961cd2bf362933a3e2c 100644 (file)
@@ -1,3 +1,251 @@
+2019-08-16  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/24905
+       * testsuite/ld-x86-64/pr24905-x32.d: New file.
+       * testsuite/ld-x86-64/pr24905.d: Likewise.
+       * testsuite/ld-x86-64/pr24905.s: Likewise.
+       * testsuite/ld-x86-64/pr24905.t: Likewise.
+       * testsuite/ld-x86-64/x86-64.exp: Run pr24905 and pr24905-x32.
+
+2019-08-16  Christophe Lyon  <christophe.lyon@linaro.org>
+
+       * emulparams/armelf.sh (OTHER_SECTIONS): Add support for noinit
+       section.
+
+2019-08-16  Alan Modra  <amodra@gmail.com>
+
+       * emultempl/ppc32elf.em (ppc_before_allocation): Force running
+       prelim_size_sections before deciding whether branch trampolines
+       might be needed.
+
+2019-08-15  Jim Wilson  <jimw@sifive.com>
+
+       * testsuite/ld-riscv-elf/c-lui-2.d: New.
+       * testsuite/ld-riscv-elf/c-lui-2.ld: New.
+       * testsuite/ld-riscv-elf/c-lui-2.s: New.
+       * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run the c-lui-2 test.
+
+2019-08-10  Alan Modra  <amodra@gmail.com>
+
+       * ldlang.h (enum statement_enum): Sort.
+       (union lang_statement_union): Sort.
+
+2019-08-10  Alan Modra  <amodra@gmail.com>
+
+       * ldlang.h (lang_common_statement_type): Delete.
+       (lang_object_symbols_statement_type): Delete.
+       (union lang_statement_union): Remove common_statement and
+       object_symbols_statement.
+
+2019-08-10  Alan Modra  <amodra@gmail.com>
+
+       * ldexp.c (exp_intop, exp_bigintop, exp_relop, exp_binop, exp_trinop),
+       (exp_unop, exp_nameop, exp_assop, exp_assert): Remove casts of
+       stat_alloc return value.
+       * ldlang.c (new_statement, new_afile, sort_def_symbol),
+       (lang_memory_region_lookup, lang_memory_region_alias),
+       (ldlang_add_undef, ldlang_add_require_defined, insert_pad),
+       (lang_add_gc_name, lang_new_phdr): Likewise.
+       * lexsup.c (set_segment_start): Likewise.
+
+2019-08-10  Alan Modra  <amodra@gmail.com>
+
+       * ldlang.h (lang_input_statement_type): Make next
+       and next_real_file a lang_input_statement_type pointer.
+       (lang_statement_append): Delete prototype.
+       (LANG_FOR_EACH_INPUT_STATEMENT): Update for lang_input_statement_type
+       change.
+       * ldmain.c (add_archive_element): Likewise.
+       * ldlang.c: Likewise throughout.
+       (lang_statement_append): Make static.  Make element and field
+       void pointers.  Remove casts in calls.
+       (lang_check): Use a lang_input_statement_type pointer for "file".
+       (find_rescan_insertion): Similarly for "iter" and return value.
+       (lang_process): Similarly for "insert", "iter" and "temp".
+       * emultempl/spuelf.em (embedded_spu_file): Likewise.
+       * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Expand
+       lang_statment_append call.
+
+2019-08-09  Mihailo Stojanovic  <mihailo.stojanovic@rt-rk.com>
+
+       * emulparams/elf32bmip.sh: Add .MIPS.xhash section.
+       * emulparams/elf32bmipn32-defs.sh: Add .MIPS.xhash section.
+       * emulparams/elf64bmip-defs.sh: Add .MIPS.xhash section.
+       * emultempl/mipself.em: Remove mips_after_parse function.
+       * testsuite/ld-elf/hash.d: Update comment.
+       * testsuite/ld-mips-elf/hash1.d: New test.
+       * testsuite/ld-mips-elf/hash1.s: Ditto.
+       * testsuite/ld-mips-elf/hash1a.d: Remove.
+       * testsuite/ld-mips-elf/hash1b.d: Ditto.
+       * testsuite/ld-mips-elf/hash1c.d: Ditto
+       * testsuite/ld-mips-elf/hash2.d: New test.
+       * testsuite/ld-mips-elf/mips-elf.exp: New tests.
+       * testsuite/ld-mips-elf/start.s: New test.
+
+2019-08-08  Nick Clifton  <nickc@redhat.com>
+
+       PR 24887
+       * testsuite/ld-aarch64/bti-plt-2.d: Adjust for new output format
+       from readelf.
+       * testsuite/ld-aarch64/bti-plt-4.d: Likewise.
+       * testsuite/ld-aarch64/bti-plt-6.d: Likewise.
+       * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
+       * testsuite/ld-aarch64/bti-warn.d: Likewise.
+       * testsuite/ld-aarch64/property-bti-pac1.d: Likewise.
+       * testsuite/ld-aarch64/property-bti-pac2.d: Likewise.
+       * testsuite/ld-aarch64/property-bti-pac3.d: Likewise.
+       * testsuite/ld-elf/x86-feature-1a.rd: Likewise.
+       * testsuite/ld-elf/x86-feature-1b.rd: Likewise.
+       * testsuite/ld-elf/x86-feature-1c.rd: Likewise.
+       * testsuite/ld-elf/x86-feature-1d.rd: Likewise.
+       * testsuite/ld-elf/x86-feature-1e.rd: Likewise.
+       * testsuite/ld-i386/ibt-plt-2d.d: Likewise.
+       * testsuite/ld-i386/ibt-plt-3d.d: Likewise.
+       * testsuite/ld-i386/pr23372a.d: Likewise.
+       * testsuite/ld-i386/pr23372c.d: Likewise.
+       * testsuite/ld-i386/pr23486a.d: Likewise.
+       * testsuite/ld-i386/pr23486b.d: Likewise.
+       * testsuite/ld-i386/pr23486c.d: Likewise.
+       * testsuite/ld-i386/pr23486d.d: Likewise.
+       * testsuite/ld-i386/pr24322a.d: Likewise.
+       * testsuite/ld-i386/pr24322b.d: Likewise.
+       * testsuite/ld-i386/property-x86-3.d: Likewise.
+       * testsuite/ld-i386/property-x86-4a.d: Likewise.
+       * testsuite/ld-i386/property-x86-5.d: Likewise.
+       * testsuite/ld-i386/property-x86-cet1.d: Likewise.
+       * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
+       * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
+       * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
+       * testsuite/ld-i386/property-x86-ibt1a.d: Likewise.
+       * testsuite/ld-i386/property-x86-ibt1b.d: Likewise.
+       * testsuite/ld-i386/property-x86-ibt2.d: Likewise.
+       * testsuite/ld-i386/property-x86-ibt3a.d: Likewise.
+       * testsuite/ld-i386/property-x86-ibt3b.d: Likewise.
+       * testsuite/ld-i386/property-x86-ibt4.d: Likewise.
+       * testsuite/ld-i386/property-x86-ibt5.d: Likewise.
+       * testsuite/ld-i386/property-x86-shstk1a.d: Likewise.
+       * testsuite/ld-i386/property-x86-shstk1b.d: Likewise.
+       * testsuite/ld-i386/property-x86-shstk2.d: Likewise.
+       * testsuite/ld-i386/property-x86-shstk3a.d: Likewise.
+       * testsuite/ld-i386/property-x86-shstk3b.d: Likewise.
+       * testsuite/ld-i386/property-x86-shstk4.d: Likewise.
+       * testsuite/ld-i386/property-x86-shstk5.d: Likewise.
+       * testsuite/ld-x86-64/ibt-plt-2d-x32.d: Likewise.
+       * testsuite/ld-x86-64/ibt-plt-2d.d: Likewise.
+       * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise.
+       * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise.
+       * testsuite/ld-x86-64/pr23372a-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr23372a.d: Likewise.
+       * testsuite/ld-x86-64/pr23372c-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr23372c.d: Likewise.
+       * testsuite/ld-x86-64/pr23486a-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr23486a.d: Likewise.
+       * testsuite/ld-x86-64/pr23486b-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr23486b.d: Likewise.
+       * testsuite/ld-x86-64/pr23486c-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr23486c.d: Likewise.
+       * testsuite/ld-x86-64/pr23486d-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr23486d.d: Likewise.
+       * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr24322a.d: Likewise.
+       * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr24322b.d: Likewise.
+       * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr24458a.d: Likewise.
+       * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr24458b.d: Likewise.
+       * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr24458c.d: Likewise.
+       * testsuite/ld-x86-64/property-1.r: Likewise.
+       * testsuite/ld-x86-64/property-1a.r: Likewise.
+       * testsuite/ld-x86-64/property-2.r: Likewise.
+       * testsuite/ld-x86-64/property-2a.r: Likewise.
+       * testsuite/ld-x86-64/property-3.r: Likewise.
+       * testsuite/ld-x86-64/property-3a.r: Likewise.
+       * testsuite/ld-x86-64/property-4.r: Likewise.
+       * testsuite/ld-x86-64/property-4a.r: Likewise.
+       * testsuite/ld-x86-64/property-5.r: Likewise.
+       * testsuite/ld-x86-64/property-5a.r: Likewise.
+       * testsuite/ld-x86-64/property-6.r: Likewise.
+       * testsuite/ld-x86-64/property-7.r: Likewise.
+       * testsuite/ld-x86-64/property-7a.r: Likewise.
+       * testsuite/ld-x86-64/property-x86-3-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-3.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-5-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-5.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt1a-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt1a.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt1b-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt1b.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt2-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt2.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt4-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt4.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt5-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt5.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk1a-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk1a.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk1b-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk1b.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk2-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk2.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk4-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk4.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk5-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk5.d: Likewise.
+
+2019-08-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
+
+       * scripttempl/elf64bpf.sc: Adapted from elf.sc.
+       * emulparams/elf64bpf.sh (SCRIPT_NAME): Use elf64bpf.
+       (EMBEDDED): Define.
+       * testsuite/ld-bpf/call-1.d: Do not expect a warning regarding an
+       undefined entry symbol.
+       * testsuite/ld-bpf/jump-1.d: Likewise.
+       * testsuite/ld-undefined/undefined.exp: Do not pass '-e entry' to
+       ld in BPF targets, and do not expect line number information.
+       * testsuite/ld-srec/srec.exp (run_srec_test): xfail s-record tests
+       in BPF targets.
+
+2019-08-06  Alan Modra  <amodra@gmail.com>
+
+       PR 24873
+       * ldlang.c (find_replacements_insert_point): Return "before" flag.
+       (find_next_input_statement): New function.
+       (lang_process): When placing recompiled LTO objects before a
+       claimed archive, place them immediately before in the statement
+       list.
+
+2019-08-06  Alan Modra  <amodra@gmail.com>
+
+       PR 24873
+       * ldlang.c (plugin_undefs): New static var.
+       (open_input_bfds <lang_group_statement_enum>): Loop on
+       plugin_undefs and hitting plugin_insert point.
+       (lang_process <lto_plugin_active>): Set plugin_undefs.
+
+2019-08-02  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-powerpc/tlsie.s: Correct medium model ELF sequence.
+
 2019-08-01  Alan Modra  <amodra@gmail.com>
 
        PR 24806
This page took 0.030674 seconds and 4 git commands to generate.