x86: Properly handle __ehdr_start
[deliverable/binutils-gdb.git] / ld / ChangeLog
index e6d0f41c0f94f3becac9095005d668e113bbd659..7c178680d3b30252439725da178b63f794ae3db2 100644 (file)
@@ -1,3 +1,254 @@
+2017-09-09  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/22115
+       * ld-i386/i386.exp: Run PR ld/22115 tests,
+       * ld/testsuite/ld-x86-64/x86-64.exp: Likewise.
+       * testsuite/ld-i386/pr22115-1.s: New file.
+       * testsuite/ld-i386/pr22115-1a.d: Likewise.
+       * testsuite/ld-i386/pr22115-1b.d: Likewise.
+       * testsuite/ld-i386/pr22115-1c.d: Likewise.
+       * testsuite/ld-i386/pr22115-1d.d: Likewise.
+       * testsuite/ld-x86-64/pr22115-1.s: Likewise.
+       * testsuite/ld-x86-64/pr22115-1a-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr22115-1a.d: Likewise.
+       * testsuite/ld-x86-64/pr22115-1b-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr22115-1b.d: Likewise.
+       * testsuite/ld-x86-64/pr22115-1c-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr22115-1c.d: Likewise.
+       * testsuite/ld-x86-64/pr22115-1d-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr22115-1d.d: Likewise.
+
+2017-09-06  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-x86-64/pr19609-2a.d: Updated.
+       * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
+       * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
+       * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
+
+2017-09-05  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-x86-64/pr19609-5d.d: Updated.
+       * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
+       * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
+
+2017-09-05  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-x86-64/pr19609-4e.d: Updated.
+       * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
+
+2017-09-03  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/22071
+       * testsuite/ld-x86-64/pr22071.d: New file.
+       * testsuite/ld-x86-64/pr22071.s: Likewise.
+       * testsuite/ld-x86-64/x86-64.exp: Run pr22071.
+
+2017-09-02  Alan Modra  <amodra@gmail.com>
+
+       * ldlang.h (lang_input_statement_type): Expand comments.
+       (LANG_FOR_EACH_INPUT_STATEMENT): Rewrite without casts.
+       * ldlang.c (lang_for_each_input_file): Likewise.
+       (load_symbols): Set usrdata for archives.
+       (find_rescan_insertion): New function.
+       (lang_process): Trim off and reinsert entries added to file chain
+       when rescanning archives for LTO.
+       * ldmain.c (add_archive_element): Set my_archive input_statement
+       next pointer to last element added.
+
+2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/22064
+       * testsuite/ld-x86-64/pr22064a.S: New file.
+       * testsuite/ld-x86-64/pr22064b.c: Likewise.
+       * testsuite/ld-x86-64/x86-64.exp: Run PR ld/22064 test.
+
+2017-09-02  Alan Modra  <amodra@gmail.com>
+
+       * emultempl/msp430.em (eval_upper_either_sections): Make base_sec_name
+       a const char*.
+       (eval_lower_either_sections): Likewise.
+       (msp430_elf_after_allocation): Likewise, and don't needlessly concat
+       and free.  Warning fix.
+
+2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/22061
+       * testsuite/ld-i386/ibt-plt-1.d: Updated.
+       * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
+       * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
+       * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
+       * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
+       * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
+       * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
+       * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
+       * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
+       * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
+       * testsuite/ld-i386/ibt-plt-2b.d: Pass --hash-style=sysv to ld
+       and dump unwind information.
+       * testsuite/ld-i386/ibt-plt-2d.d: Likewise.
+       * testsuite/ld-i386/ibt-plt-3b.d: Likewise.
+       * testsuite/ld-i386/ibt-plt-3d.d: Likewise.
+       * testsuite/ld-x86-64/ibt-plt-2b-x32.d: Likewise.
+       * testsuite/ld-x86-64/ibt-plt-2b.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-3b-x32.d: Likewise.
+       * testsuite/ld-x86-64/ibt-plt-3b.d: Likewise.
+       * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise.
+       * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise.
+
+2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/22048
+       * testsuite/ld-x86-64/pr22048.d: New file.
+       * testsuite/ld-x86-64/pr22048a.s: Likewise.
+       * testsuite/ld-x86-64/pr22048b.s: Likewise.
+       * testsuite/ld-x86-64/x86-64.exp: Run pr22048.
+
+2017-08-31  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-elf/eh3.d: Update.
+       * testsuite/ld-elf/eh4.d: Update.
+
+2017-08-30  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * testsuite/ld-elf/orphan-11.ld: Also discard `.MIPS.options'
+       sections.
+
+2017-08-30  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * testsuite/ld-mips-elf/bal-jalx-addend-micromips.d: New test.
+       * testsuite/ld-mips-elf/bal-jalx-addend-micromips-n32.d: New
+       test.
+       * testsuite/ld-mips-elf/bal-jalx-addend-micromips-n64.d: New
+       test.
+       * testsuite/ld-mips-elf/bal-jalx-local-micromips.d: New test.
+       * testsuite/ld-mips-elf/bal-jalx-local-micromips-n32.d: New
+       test.
+       * testsuite/ld-mips-elf/bal-jalx-local-micromips-n64.d: New
+       test.
+       * testsuite/ld-mips-elf/bal-jalx-pic-micromips.d: New test.
+       * testsuite/ld-mips-elf/bal-jalx-pic-micromips-n32.d: New test.
+       * testsuite/ld-mips-elf/bal-jalx-pic-micromips-n64.d: New test.
+       * testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips.d: New
+       test.
+       * testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips-n32.d: New
+       test.
+       * testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips-n64.d: New
+       test.
+       * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
+
+2017-08-30  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-powerpc/tls.s: Add calls with tls markers.
+       * testsuite/ld-powerpc/tls32.s: Likewise.
+       * testsuite/ld-powerpc/powerpc.exp: Run tls marker tests.
+       * testsuite/ld-powerpc/tls.d: Adjust for TPREL16_HA/LO optimization.
+       * testsuite/ld-powerpc/tlsexe.d: Likewise.
+       * testsuite/ld-powerpc/tlsexetoc.d: Likewise.
+       * testsuite/ld-powerpc/tlsld.d: Likewise.
+       * testsuite/ld-powerpc/tlsmark.d: Likewise.
+       * testsuite/ld-powerpc/tlsopt4.d: Likewise.
+       * testsuite/ld-powerpc/tlstoc.d: Likewise.
+
+2017-08-30  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-powerpc/tls.d: Update.
+       * testsuite/ld-powerpc/tlsexe.d: Update.
+       * testsuite/ld-powerpc/tlsexetoc.d: Update.
+       * testsuite/ld-powerpc/tlsld.d: Update.
+       * testsuite/ld-powerpc/tlsmark.d: Update.
+       * testsuite/ld-powerpc/tlsopt4.d: Update.
+       * testsuite/ld-powerpc/tlstoc.d: Update.
+
+2017-08-30  Hans-Peter Nilsson  <hp@axis.com>
+
+       * testsuite/ld-cris/dso-pltdis1.d: Run ld with --hash-style=sysv.
+       * testsuite/ld-cris/dso-pltdis2.d,
+       testsuite/ld-cris/dso12-pltdis.d, testsuite/ld-cris/expdyn1.d,
+       testsuite/ld-cris/expdyn5.d, testsuite/ld-cris/expdyn6.d,
+       testsuite/ld-cris/expdyn7.d, testsuite/ld-cris/gotplt1.d,
+       testsuite/ld-cris/gotplt2.d, testsuite/ld-cris/gotplt3.d,
+       testsuite/ld-cris/hiddef1.d, testsuite/ld-cris/libdso-11.d,
+       testsuite/ld-cris/libdso-12.d, testsuite/ld-cris/libdso-12b.d,
+       testsuite/ld-cris/libdso-12c.d, testsuite/ld-cris/libdso-13.d,
+       testsuite/ld-cris/libdso-13b.d, testsuite/ld-cris/libdso-14.d,
+       testsuite/ld-cris/libdso-15.d, testsuite/ld-cris/libdso-15b.d,
+       testsuite/ld-cris/libdso-1b.d, testsuite/ld-cris/libdso-1c.d,
+       testsuite/ld-cris/libdso-1d.d, testsuite/ld-cris/libdso-4.d,
+       testsuite/ld-cris/pr16044.d, testsuite/ld-cris/pv32-1.d,
+       testsuite/ld-cris/tls-dso-dtpoffd2.d,
+       testsuite/ld-cris/tls-dso-dtpoffd4.d,
+       testsuite/ld-cris/tls-dso-tpoffgotcomm1.d,
+       testsuite/ld-cris/tls-dso-x1x2-1.d, testsuite/ld-cris/tls-gc-71.d,
+       testsuite/ld-cris/tls-ie-78.d, testsuite/ld-cris/tls-js1.d,
+       testsuite/ld-cris/tls-ldgdex-14.d,
+       testsuite/ld-cris/tls-ldgdex-15.d,
+       testsuite/ld-cris/tls-legdx-16.d,
+       testsuite/ld-cris/tls-legdx-17.d,
+       testsuite/ld-cris/tls-local-63.d,
+       testsuite/ld-cris/tls-local-64.d, testsuite/ld-cris/tls-ok-30.d,
+       testsuite/ld-cris/tls-ok-32.d, testsuite/ld-cris/tls-ok-34.d,
+       testsuite/ld-cris/tls-und-38.d, testsuite/ld-cris/tls-und-42.d,
+       testsuite/ld-cris/tls-und-46.d, testsuite/ld-cris/tls-und-50.d,
+       testsuite/ld-cris/weakref2.d, testsuite/ld-cris/weakref3.d,
+       testsuite/ld-cris/weakref4.d: Likewise.
+
+2017-08-29  Jozef Lawrynowicz  <jozef.l@somniumtech.com>
+
+       * emultempl/msp430.em (change_output_section): New function.
+       (move_prefixed_section): New function.
+       (add_region_prefix): New function.
+       (msp430_elf_after_open): New function.
+       (gld${EMULATION_NAME}_add_options): Implement.
+       (gld${EMULATION_NAME}_list_options): Implement.
+       (gld${EMULATION_NAME}_handle_option): Implement.
+       * ld.texinfo: Document new options.
+       * testsuite/ld-msp430-elf/main-bss-lower.d: New.
+       * testsuite/ld-msp430-elf/main-bss-upper.d: New.
+       * testsuite/ld-msp430-elf/main-const-lower.d: New.
+       * testsuite/ld-msp430-elf/main-const-upper.d: New.
+       * testsuite/ld-msp430-elf/main-text-lower.d: New.
+       * testsuite/ld-msp430-elf/main-text-upper.d: New.
+       * testsuite/ld-msp430-elf/main-var-lower.d: New.
+       * testsuite/ld-msp430-elf/main-var-upper.d: New.
+       * testsuite/ld-msp430-elf/main-with-data-bss-unique-sec.s: New.
+       * testsuite/ld-msp430-elf/main-with-data-bss.s: New.
+       * testsuite/ld-msp430-elf/main-with-text-rodata-unique-sec.s: New.
+       * testsuite/ld-msp430-elf/main-with-text-rodata.s: New.
+       * testsuite/ld-msp430-elf/msp430-elf.exp: New.
+       * testsuite/ld-msp430-elf/msp430-no-lower.ld: New.
+       * testsuite/ld-msp430-elf/msp430.ld: New.
+       * emultempl/msp430.em (data_statement_size): New.
+       (eval_upper_either_sections): New.
+       (eval_lower_either_sections): New.
+       (intermediate_relax_sections): New.
+       (msp430_elf_after_allocation): New.
+       * emultempl/msp430.em (gld${EMULATION_NAME}_place_orphan): Always
+       place sections in the lower region.
+
+2017-08-26  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/21997
+       * testsuite/ld-i386/i386.exp: Run PR ld/21997 tests.
+       * testsuite/ld-x86-64/x86-64.exp: Likewise.
+       * testsuite/ld-i386/pr21997-1a.S: New file.
+       * testsuite/ld-i386/pr21997-1b.c: Likewise.
+       * testsuite/ld-i386/pr21997-1c.S: Likewise.
+       * testsuite/ld-x86-64/pr21997-1a.S: Likewise.
+       * testsuite/ld-x86-64/pr21997-1a.err: Likewise.
+       * testsuite/ld-x86-64/pr21997-1b.c: Likewise.
+       * testsuite/ld-x86-64/pr21997-1b.err: Likewise.
+       * testsuite/ld-x86-64/pr21997-1c.c: Likewise.
+
+2017-08-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-elf/pr21903c.d: Remove '\' before --.
+       * testsuite/ld-elf/pr21903d.d: Likewise.
+       * testsuite/ld-elf/pr21903e.d: Likewise.
+       * testsuite/lib/ld-lib.exp (run_dump_test): Add "--" after
+       regexp.
+
 2017-08-24  H.J. Lu  <hongjiu.lu@intel.com>
 
        * testsuite/ld-i386/i386.exp (undefined_weak): Replace regexp
This page took 0.024548 seconds and 4 git commands to generate.