Check 64-bit relocation addend overflow for x32
[platform/upstream/binutils.git] / ld / testsuite / ChangeLog
index a80a5d0..34e8d62 100644 (file)
@@ -1,3 +1,396 @@
+2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * ld-x86-64/ilp32-11.d: New file.
+       * ld-x86-64/ilp32-11.s: Likewise.
+
+       * ld-x86-64/x86-64.exp: Run ilp32-11.
+
+2012-05-05  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/14052
+       * ld-elf/pr14052.d: New file.
+       * ld-elf/pr14052.t: Likewise.
+
+2012-05-05  Alan Modra  <amodra@gmail.com>
+
+       PR ld/14052
+       PR ld/13621
+       * ld-elf/warn2.d: Revert 2012-02-13 change.
+       * ld-elf/zerosize1.d, ld-elf/zerosize1.s: Delete.
+
+2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * ld-elf/eh1.d: Skip x86_64-*-linux-gnux32.
+       * ld-elf/eh2.d: Likewise.
+       * ld-elf/eh3.d: Likewise.
+       * ld-elf/eh4.d: Likewise.
+
+       * ld-elfvsb/elfvsb.exp: Xfail x86_64-*-linux-gnux32.
+       * ld-shared/shared.exp: Likewise.
+
+       * ld-ifunc/ifunc-3a-x86.d: Support x86_64-*-linux-gnux32.
+
+2012-04-24  Roland McGrath  <mcgrathr@google.com>
+
+       * ld-x86-64/plt-nacl.pd: Fix expected nop padding.
+       * ld-x86-64/tlsdesc-nacl.pd: Likewise.
+
+2012-04-24  Hans-Peter Nilsson  <hp@axis.com>
+
+       PR ld/13990
+       * ld-arm/arm-elf.exp: Run gc-hidden-1.
+       * ld-arm/gc-hidden-1.d: New test-file.
+       * ld-arm/gcdfn.s, ld-arm/hideall.ld, ld-arm/hidfn.s,
+       ld-arm/main.s: New files.
+
+2012-04-23  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * ld-pie/pie.exp: Remove extra braces.
+
+2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/13947
+       * ld-x86-64/x86-64.exp: Run pr13947.
+       * ld-x86-64/pr13947.d: New file.
+       * ld-x86-64/pr13947.s: Likewise.
+
+2012-04-13  Roland McGrath  <mcgrathr@google.com>
+
+       * ld-arm/arm-elf.exp (armelftests_common): Move cases using
+       mixed-lib.so to ...
+       (armelftests_nonacl): ... here.
+
+2012-04-12  Roland McGrath  <mcgrathr@google.com>
+
+       * ld-arm/arm-elf.exp (armelftests): Split out into ...
+       (armelftests_common, armelftests_nonacl): ... these two.
+       (armeabitests): Split out into ...
+       (armeabitests_common, armeabitests_nonacl): ... these two.
+       Omit _nonacl sets for arm*-*-nacl* targets.
+
+       * ld-arm/farcall-mix.d: Don't match exact addresses, only symbolic ones.
+       * ld-arm/farcall-mix2.d: Likewise.
+       * ld-arm/farcall-group.d: Likewise.
+
+       * ld-arm/tls-gdesc-got.d: Match variant file formats too.
+       Accept some variation in exact addresses.
+
+       * ld-arm/thumb2-b-interwork.d: Match variant file formats too.
+       Fix regexps not to care about exact addresses where not relevant.
+
+       * ld-arm/thumb2-bl-undefweak.d: Match any hex strings, not any
+       strings of particular exact lengths.
+       * ld-arm/thumb2-bl-undefweak1.d: Likewise.
+
+       * ld-arm/arm-app.r: Match variant file formats too.
+       * ld-arm/arm-app-abs32.r: Likewise.
+       * ld-arm/arm-lib.d: Likewise.
+       * ld-arm/arm-lib.r: Likewise.
+       * ld-arm/arm-static-app.r: Likewise.
+       * ld-arm/armv4-bx.d: Likewise.
+       * ld-arm/data-only-map.d: Likewise.
+       * ld-arm/group-relocs.d: Likewise.
+       * ld-arm/jump19.d: Likewise.
+       * ld-arm/reloc-boundaries.d: Likewise.
+       * ld-arm/thumb1-bl.d: Likewise.
+       * ld-arm/thumb2-bl.d: Likewise.
+       * ld-arm/tls-app.d: Likewise.
+       * ld-arm/tls-app.r: Likewise.
+       * ld-arm/tls-gdierelax.d: Likewise.
+       * ld-arm/tls-gdierelax2.d: Likewise.
+       * ld-arm/tls-gdlerelax.d: Likewise.
+       * ld-arm/tls-lib.d: Likewise.
+       * ld-arm/tls-lib.r: Likewise.
+       * ld-arm/tls-mixed.r: Likewise.
+       * ld-arm/vfp11-fix-none.d: Likewise.
+       * ld-arm/vfp11-fix-scalar.d: Likewise.
+       * ld-arm/vfp11-fix-vector.d: Likewise.
+       * ld-arm/arm-static-app.d: Likewise.
+       Fix regexps not to care about exact number of leading spaces.
+       * ld-arm/arm-app-abs32.d: Likewise.
+       * ld-arm/fix-arm1176-off.d: Likewise.
+       * ld-arm/fix-arm1176-on.d: Likewise.
+
+       * ld-arm/arm-elf.exp: Treat nacl targets like eabi targets.
+
+2012-04-09  Roland McGrath  <mcgrathr@google.com>
+
+       * ld-elf/eh1.d: Add explicit --64 to as options, and explicit
+       -melf_x86_64 and -Ttext to ld options, so we don't assume every
+       x86_64-*-* target uses --64 (vs --x32) by default or has the
+       same address space layout.
+       * ld-elf/eh2.d: Likewise.
+       * ld-elf/eh3.d: Likewise.
+       * ld-elf/eh4.d: Likewise.
+       * ld-elf/elf.exp: For target *-*-nacl*, use options_regsub(ld) to
+       map -melf_x86_64 to -melf_x86_64_nacl.
+
+2012-04-07  David S. Miller  <davem@davemloft.net>
+
+       * ld-sparc/tlssunbin32.rd: Fix regexp.
+       * ld-sparc/tlssunbin64.rd: Likewise.
+
+2012-04-03  Roland McGrath  <mcgrathr@google.com>
+
+       * ld-x86-64/ilp32-4-nacl.d: New file.
+       * ld-x86-64/x86-64.exp: Run it.
+
+       * ld-discard/discard.exp: Accept nacl targets too.
+       * ld-elf/binutils.exp: Likewise.
+       * ld-elf/comm-data.exp: Likewise.
+       * ld-elf/elf.exp: Likewise.
+       * ld-elf/tls_common.exp: Likewise.
+       * ld-elfvers/vers.exp: Likewise.
+       * ld-elfvsb/elfvsb.exp: Likewise.
+       * ld-elfweak/elfweak.exp: Likewise.
+       * ld-gc/gc.exp: Likewise.
+       * ld-ifunc/binutils.exp: Likewise.
+       * ld-ifunc/ifunc.exp: Likewise.
+       * ld-linkonce/linkonce.exp:Likewise.
+       * ld-pie/pie.exp: Likewise.
+       * ld-shared/shared.exp: Likewise.
+       * ld-undefined/weak-undef.exp: Likewise.
+       * ld-unique/unique.exp: Likewise.
+       * ld-x86-64/dwarfreloc.exp: Likewise.
+       * ld-x86-64/line.exp: Likewise.
+
+       * lib/ld-lib.exp (slurp_options): Support global array
+       options_regsub to apply substitutions to the contents
+       of options lines read from the file.
+       * ld-i386/emit-relocs.d: Renamed to ...
+       * ld-i386/emit-relocs.rd: ... this.
+       * ld-i386/i386.exp: Accept nacl targets too.
+       For them, use options_regsub to replace elf_i386 with
+       elf_i386_nacl in run_dump_test cases; apply the same
+       substitution in $i386tests; replace foo.rd expectations
+       files with foo-nacl.rd in $i386tests.
+       (i386tests): Change emit-relocs.d to emit-relocs.rd here.
+       * ld-i386/emit-relocs-nacl.rd: New file.
+       * ld-i386/plt-nacl.pd: New file.
+       * ld-i386/plt-pic-nacl.pd: New file.
+       * ld-i386/tlsbin-nacl.rd: New file.
+       * ld-i386/tlsbindesc-nacl.rd: New file.
+       * ld-i386/tlsdesc-nacl.rd: New file.
+       * ld-i386/tlsgdesc-nacl.rd: New file.
+       * ld-i386/tlsnopic-nacl.rd: New file.
+       * ld-i386/tlspic-nacl.rd: New file.
+       * ld-x86-64/x86-64.exp: Accept nacl targets too.
+       For them, use options_regsub to replace elf_x86_64 with
+       elf_x86_64_nacl in run_dump_test cases; apply the same
+       substitution in $x86_64tests; replace foo.rd expectations
+       files with foo-nacl.rd in $x86_64tests.
+       Add explicit -melf_x86_64 to ld options in tests that need it,
+       in case the default emulation is x32 (as it is for x86_64-nacl).
+       * ld/testsuite/ld-x86-64/plt-nacl.pd: New file.
+       * ld/testsuite/ld-x86-64/split-by-file-nacl.rd: New file.
+       * ld/testsuite/ld-x86-64/tlsbin-nacl.rd: New file.
+       * ld/testsuite/ld-x86-64/tlsbindesc-nacl.rd: New file.
+       * ld/testsuite/ld-x86-64/tlsdesc-nacl.pd: New file.
+       * ld/testsuite/ld-x86-64/tlsdesc-nacl.rd: New file.
+       * ld/testsuite/ld-x86-64/tlsgdesc-nacl.rd: New file.
+       * ld/testsuite/ld-x86-64/tlspic-nacl.rd: New file.
+
+       * ld-i386/hidden2.d: Loosen regexps to match any file format variant,
+       and not to depend on exact addresses, displacements, etc. where
+       they are irrelevant.
+       * ld-i386/pcrel16.d: Likewise.
+       * ld-i386/pcrel16abs.d: Likewise.
+       * ld-i386/pr12718.d: Likewise.
+       * ld-i386/pr12921.d: Likewise.
+       * ld-i386/reloc.d: Likewise.
+       * ld-i386/tlsbin.dd: Likewise.
+       * ld-i386/tlsbin.sd: Likewise.
+       * ld-i386/tlsbin.td: Likewise.
+       * ld-i386/tlsbindesc.dd: Likewise.
+       * ld-i386/tlsbindesc.sd: Likewise.
+       * ld-i386/tlsbindesc.td: Likewise.
+       * ld-i386/tlsdesc.dd: Likewise.
+       * ld-i386/tlsdesc.sd: Likewise.
+       * ld-i386/tlsdesc.td: Likewise.
+       * ld-i386/tlsg.sd: Likewise.
+       * ld-i386/tlsgdesc.dd: Likewise.
+       * ld-i386/tlsindntpoff.dd: Likewise.
+       * ld-i386/tlsnopic.dd: Likewise.
+       * ld-i386/tlsnopic.sd: Likewise.
+       * ld-i386/tlspic.dd: Likewise.
+       * ld-i386/tlspic.sd: Likewise.
+       * ld-i386/tlspic.td: Likewise.
+       * ld-i386/tlspie2.d: Likewise.
+       * ld-x86-64/hidden2.d: Likewise.
+       * ld-x86-64/pcrel16.d: Likewise.
+       * ld-x86-64/pr12718.d: Likewise.
+       * ld-x86-64/pr12921.d: Likewise.
+       * ld-x86-64/protected3.d: Likewise.
+       * ld-x86-64/tlsbin.dd: Likewise.
+       * ld-x86-64/tlsbin.sd: Likewise.
+       * ld-x86-64/tlsbin.td: Likewise.
+       * ld-x86-64/tlsbindesc.dd: Likewise.
+       * ld-x86-64/tlsbindesc.sd: Likewise.
+       * ld-x86-64/tlsbindesc.td: Likewise.
+       * ld-x86-64/tlsdesc.dd: Likewise.
+       * ld-x86-64/tlsdesc.sd: Likewise.
+       * ld-x86-64/tlsdesc.td: Likewise.
+       * ld-x86-64/tlsg.sd: Likewise.
+       * ld-x86-64/tlsgd5.dd: Likewise.
+       * ld-x86-64/tlsgd6.dd: Likewise.
+       * ld-x86-64/tlsgdesc.dd: Likewise.
+       * ld-x86-64/tlspic.dd: Likewise.
+       * ld-x86-64/tlspic.sd: Likewise.
+       * ld-x86-64/tlspic.td: Likewise.
+
+       * ld-x86-64/ilp32-8.d: Match any file format variant.
+       Use a -Ttext and adjust expected results, to handle variant layouts.
+       * ld-x86-64/ilp32-9.d: Likewise.
+
+       * ld-i386/alloc.t: Remove superfluous OUTPUT_FORMAT statement.
+       * ld-i386/pr12627.t: Likewise.
+
+       * ld-x86-64/abs-l1om.d: Add target: constraint.
+       * ld-x86-64/protected2-l1om.d: Likewise.
+       * ld-x86-64/protected3-l1om.d: Likewise.
+       * ld-x86-64/ilp32-4.d: Likewise.
+
+       * ld-x86-64/plt.s: New file.
+       * ld-x86-64/pltlib.s: New file.
+       * ld-x86-64/plt.pd: New file.
+       * ld-x86-64/x86-64.exp (x86_64tests): Add them.
+
+       * ld-i386/plt.s: New file.
+       * ld-i386/pltlib.s: New file.
+       * ld-i386/plt.pd: New file.
+       * ld-i386/plt-pic.s: New file.
+       * ld-i386/plt-pic.pd: New file.
+       * ld-i386/i386.exp (i386tests): Add them.
+
+2012-03-25  Alan Modra  <amodra@gmail.com>
+
+       * ld-powerpc/vxworks-relax.rd: Remove check on reloc section
+       file offset and reloc symbol indices.
+
+2012-03-21  Hans-Peter Nilsson  <hp@axis.com>
+
+       PR ld/13813
+       * ld-mips-elf/comm-data.exp (mips_comm_data_test): For N32 and N64
+       tests, also specify assembler option -march=mips3.
+
+2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/13880
+       * ld-i386/i386.exp: Run protected4 and protected5.
+       * ld-x86-64/x86-64.exp: Likewise.
+
+       * ld-i386/protected4.d: New.
+       * ld-i386/protected4.s: Likewise.
+       * ld-i386/protected5.d: Likewise.
+       * ld-i386/protected5.s: Likewise.
+       * ld-x86-64/protected4.d: Likewise.
+       * ld-x86-64/protected4.s: Likewise.
+       * ld-x86-64/protected5.d: Likewise.
+       * ld-x86-64/protected5.s: Likewise.
+
+2012-03-19  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * ld-m68k/m68k.exp ("TLS indirect symbol use"): Pass
+       --copy-dt-needed-entries.
+
+2012-03-16  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
+
+       * ld-arm/arm-elf.exp: Add new testcases.
+       * ld-arm/attr-merge-2.attr: Update ouput.
+       * ld-arm/attr-merge-2a.s: Remove Tag_DIV_use test.
+       * ld-arm/attr-merge-2b.s: Likewise.
+       * ld-arm/attr-merge-3.attr: Updated expected output.
+       * ld-arm/attr-merge-4.attr: Likewise.
+       * ld-arm/attr-merge-5.attr: Likewise.
+       * ld-arm/attr-merge-6.attr: Likewise.
+       * ld-arm/attr-merge-7.attr: Likewise.
+       * ld-arm/attr-merge-arch-1.attr: Likewise.
+       * ld-arm/attr-merge-arch-2.attr: Likewise.
+       * ld-arm/attr-merge-unknown-2.d: Likewise.
+       * ld-arm/attr-merge-unknown-2r.d: Likewise.
+       * ld-arm/attr-merge-unknown-3.d: Likewise.
+       * ld-arm/attr-merge-vfp-1.d: Likewise.
+       * ld-arm/attr-merge-vfp-1r.d: Likewise.
+       * ld-arm/attr-merge-vfp-2.d: Likewise.
+       * ld-arm/attr-merge-vfp-2r.d: Likewise.
+       * ld-arm/attr-merge-vfp-3.d: Likewise.
+       * ld-arm/attr-merge-vfp-3r.d: Likewise.
+       * ld-arm/attr-merge-vfp-4.d: Likewise.
+       * ld-arm/attr-merge-vfp-4r.d: Likewise.
+       * ld-arm/attr-merge-vfp-5.d: Likewise.
+       * ld-arm/attr-merge-vfp-5r.d: Likewise.
+       * ld-arm/attr-merge-vfp-6.d: Likewise.
+       * ld-arm/attr-merge-vfp-6r.d: Likewise.
+       * ld-arm/attr-merge-wchar-00-nowarn.d: Likewise.
+       * ld-arm/attr-merge-wchar-00.d: Likewise.
+       * ld-arm/attr-merge-wchar-02-nowarn.d: Likewise.
+       * ld-arm/attr-merge-wchar-02.d: Likewise.
+       * ld-arm/attr-merge-wchar-04-nowarn.d: Likewise.
+       * ld-arm/attr-merge-wchar-04.d: Likewise.
+       * ld-arm/attr-merge-wchar-20-nowarn.d: Likewise.
+       * ld-arm/attr-merge-wchar-20.d: Likewise.
+       * ld-arm/attr-merge-wchar-22-nowarn.d: Likewise.
+       * ld-arm/attr-merge-wchar-22.d: Likewise.
+       * ld-arm/attr-merge-wchar-24-nowarn.d: Likewise.
+       * ld-arm/attr-merge-wchar-40-nowarn.d: Likewise.
+       * ld-arm/attr-merge-wchar-40.d: Likewise.
+       * ld-arm/attr-merge-wchar-42-nowarn.d: Likewise.
+       * ld-arm/attr-merge-wchar-44-nowarn.d: Likewise.
+       * ld-arm/attr-merge-wchar-44.d: Likewise.
+       * ld-arm/attr-merge.attr: Likewise.
+       * ld-arm/attr-merge-div-0.s: New testcase.
+       * ld-arm/attr-merge-div-00.d: Likewise.
+       * ld-arm/attr-merge-div-01-m3.d: Likewise.
+       * ld-arm/attr-merge-div-01.d: Likewise.
+       * ld-arm/attr-merge-div-02.d: Likewise.
+       * ld-arm/attr-merge-div-1.s: Likewise.
+       * ld-arm/attr-merge-div-10-m3.d: Likewise.
+       * ld-arm/attr-merge-div-10.d: Likewise.
+       * ld-arm/attr-merge-div-11.d: Likewise.
+       * ld-arm/attr-merge-div-12.d: Likewise.
+       * ld-arm/attr-merge-div-120.d: Likewise.
+       * ld-arm/attr-merge-div-2.s: Likewise.
+       * ld-arm/attr-merge-div-20.d: Likewise.
+       * ld-arm/attr-merge-div-21.d: Likewise.
+       * ld-arm/attr-merge-div-22.d: Likewise.
+
+2012-03-16  Alan Modra  <amodra@gmail.com>
+
+       * ld-gc/pr13683.d: Accept powerpc64 function descriptor syms.
+
+2012-03-15  Alan Modra  <amodra@gmail.com>
+
+       * config/default.exp: Update copyright date.
+       * ld-elf/shared.exp: Pass --no-as-needed to various tests linking
+       shared libs.
+       * ld-elfvers/vers.exp: Likewise.
+
+2012-03-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/13839
+       * ld-elf/pr13839.d: New.
+       * ld-elf/pr13839.s: Likewise.
+       * ld-elf/pr13839.t: Likewise.
+
+2012-03-09  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/13817
+       * ld-i386/pr13302.d: Updated.
+       * ld-x86-64/pr13082-5b.d: Likewise.
+       * ld-x86-64/pr13082-6a.d: Likewise.
+       * ld-x86-64/pr13082-6b.d: Likewise.
+
+2012-03-06  Alan Modra  <amodra@gmail.com>
+
+       PR ld/13683
+       * ld-gc/pr13683.d: Allow non-zero top address digit.
+
+2012-03-05  Hans-Peter Nilsson  <hp@axis.com>
+
+       PR ld/13803
+       * ld-arm/fix-arm1176-off.d, ld-arm/fix-arm1176-on.d: Regexpify
+       address of func_to_branch_to.
+
 2012-03-01  Hans-Peter Nilsson  <hp@axis.com>
 
        PR ld/13789