PR22471, undefined reference to linker-defined symbols
[deliverable/binutils-gdb.git] / ld / ChangeLog
index 59aff56f6bc9a29b0305216efd6d6625425dba52..2b204543a6abf99d33bf3b60c952cbf31dbcd52b 100644 (file)
@@ -1,3 +1,174 @@
+2017-11-28  Alan Modra  <amodra@gmail.com>
+
+       PR 22471
+       * ldexp.c (struct definedness_hash_entry): Delete "by_script".  Make
+       "iteration" an 8-bit field, and update mask in all uses.
+       (definedness_newfunc): Don't init "by_script".
+       (update_definedness): Test ldscript_def rather than by_script.
+       (is_sym_value): Likewise.
+       (fold_name <DEFINED>): Return a result for first phase.  Test
+       ldscript_def.
+       (fold_name <NAME>): Return a result for first phase.
+       * ldlang.c (open_input_bfds): Process all assignments, not just
+       defsym.
+       (lang_process): Increment lang_statement_iteration before
+       open_input_bfds.
+       * testsuite/ld-mips-elf/tlsdyn-o32-1.d: Adjust for larger .dynsym.
+       * testsuite/ld-mips-elf/tlsdyn-o32-1.got: Likewise.
+       * testsuite/ld-mips-elf/tlsdyn-o32-2.d: Likewise.
+       * testsuite/ld-mips-elf/tlsdyn-o32-2.got: Likewise.
+       * testsuite/ld-mips-elf/tlsdyn-o32-3.d: Likewise.
+       * testsuite/ld-mips-elf/tlsdyn-o32-3.got: Likewise.
+
+2017-11-28  Alan Modra  <amodra@gmail.com>
+
+       * ldexp.h (struct ldexp_control): Add "assign_src".
+       * ldexp.c (fold_trinary): Save and restore assign_src around
+       condition evaluation.
+       (fold_name <NAME>): Set expld.assign_src.
+       (try_copy_symbol_type): Delete.
+       (exp_fold_tree_1): Set symbol type using expld.assign_src.
+
+2017-11-28  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/22502
+       * testsuite/ld-plugin/lto.exp: Run PR ld/22502 test.
+       * testsuite/ld-plugin/pr22502a.c: New file.
+       * testsuite/ld-plugin/pr22502b.c: Likewise.
+
+2017-11-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-elf/pr21562c.t: Also provide ___start_scnfoo and
+       ___stop_scnfoo.
+       * testsuite/ld-elf/pr21562d.t: Likewise.
+
+2017-11-23  Martin Storsjo  <martin@martin.st>
+
+       * pe-dll.c (autofilter_liblist): Add libmsvcrt, libmsvcrt-os and
+       libucrtbase.
+
+2017-11-23  Jan Beulich  <jbeulich@suse.com>
+
+       PR gas/22441
+       * testsuite/ld-x86-64/apic.{s,d}: New.
+       * testsuite/ld-x86-64/x86-64.exp: Run new test.
+
+2017-11-21  Nick Clifton  <nickc@redhat.com>
+
+       PR 22419
+       * emultempl/v850elf.em (v850_create_output_section_statements):
+       New function.  Generate an error if attempting to convert the
+       format of the output file.
+       * testsuite/ld-unique/pr21529.d: Skip for the V850.
+       * testsuite/ld-elf/pr21884.d: Skip for the V850.
+
+2017-11-21  Claudiu Zissulescu <claziss@synopsys.com>
+
+       * testsuite/ld-arc/jli-simple.d: Update test.
+
+2017-11-20  Nick Clifton  <nickc@redhat.com>
+
+       PR 22450
+       * testsuite/ld-elf/elf.exp: Add --defsym ALIGN=2|3 to assembler
+       command line depending upon the size of the target address space.
+       * testsuite/ld-elf/pr22450.s: New test file.
+       * testsuite/ld-elf/pr22450.d: New test driver.
+       * testsuite/config/default.exp: Add note that LD_CLASS refers to
+       the size of the host linker not the size of the target linker.
+
+2017-11-15  Nick Clifton  <nickc@redhat.com>
+
+       PR 15152
+       * testsuite/ld-avr/gc-section-debugline.d: Update expected
+       output.
+
+2017-11-15  Alan Modra  <amodra@gmail.com>
+
+       * ldmisc.c (vfinfo): Support up to 9 positional args.
+
+2017-11-14  Jim Wilson  <jimw@sifive.com>
+
+       * testsuite/ld-elf/compress1-alt.s: New.
+       * testsuite/ld-elf/compressed1d-alt.d: New.
+       * testsuite/ld-elf/compressed1d.d: Add riscv*-*-* to notarget list.
+
+2017-11-14  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-elf/note-3.t: Don't discard .got.
+
+2017-11-14  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-ifunc/ifunc.exp: Ensure non-PIC tests are really
+       not PIE by default gcc options.
+
+2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * emultempl/ppc32elf.em (ppc_before_allocation): Replace
+       exp_dataseg_none with exp_seg_none.
+       * emultempl/ppc64elf.em (prelim_size_sections): Likewise.
+       * emultempl/spuelf.em (spu_before_allocation): Likewise.
+
+2017-11-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * ldlang.c (lang_size_sections_1): Extract GNU_RELRO region check
+       into ...
+       (ldlang_check_relro_region): New function.
+       (lang_find_relro_sections_1): Add an argument for pointer to
+       seg_align_type and replace expld.dataseg with the pointer.
+       (lang_find_relro_sections): Pass address of expld.dataseg to
+       lang_find_relro_sections_1.
+
+2017-11-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * ldlang.c (lang_size_segment): New function.
+       (lang_size_relro_segment_1): Likewise.
+       (lang_size_relro_segment): Likewise.
+       (lang_size_sections): Rewrite to call lang_size_relro_segment.
+
+2017-11-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * ldexp.c (fold_unary): Extract the DATA_SEGMENT_END case to ...
+       (fold_segment_end): New function.
+       (fold_binary): Extract the DATA_SEGMENT_ALIGN case to ...
+       (fold_segment_align): New function.
+       (fold_binary): Extract the DATA_SEGMENT_RELRO_END case to ...
+       (fold_segment_relro_end): New function.
+
+2017-11-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * ldexp.h (phase_enum): Rename exp_dataseg_none,
+       exp_dataseg_align_seen, exp_dataseg_relro_seen,
+       exp_dataseg_end_seen, exp_dataseg_relro_adjust,
+       exp_dataseg_adjust and exp_dataseg_done to exp_seg_none,
+       exp_seg_align_seen, exp_seg_relro_seen, exp_seg_end_seen,
+       exp_seg_relro_adjust, exp_seg_adjust and exp_seg_done.
+       (relro_enum): Rename exp_dataseg_relro_none,
+       exp_dataseg_relro_start and exp_dataseg_relro_end to
+       exp_seg_relro_none, exp_seg_relro_start and exp_seg_relro_end.
+       (seg_align_type): New struct type.
+       (ldexp_control): Use seg_align_type.
+       * ldexp.c (fold_unary): Updated.
+       (fold_binary): Likewise.
+       * ldlang.c (strip_excluded_output_sections): Likewise.
+       (lang_size_sections_1): Likewise.
+       (lang_size_sections): Likewise.
+
+2017-11-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/22423
+       * testsuite/ld-alpha/tlsbin.rd: Replace "R E " with "R +" for
+       PT_PHDR segment.
+       * testsuite/ld-alpha/tlsbinr.rd: Likewise.
+       * testsuite/ld-ia64/tlsbin.rd: Likewise.
+       * testsuite/ld-powerpc/tlsexe.r: Likewise.
+       * testsuite/ld-powerpc/tlsexe32.r: Likewise.
+       * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
+       * testsuite/ld-s390/tlsbin.rd: Likewise.
+       * testsuite/ld-s390/tlsbin_64.rd: Likewise.
+       * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
+       * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
+       * testsuite/ld-elf/pr22423.d: New test.
+
 2017-11-12  H.J. Lu  <hongjiu.lu@intel.com>
 
        * emulparams/elf32_x86_64.sh (TINY_READONLY_SECTION): Renamed
This page took 0.027182 seconds and 4 git commands to generate.