2014-10-17 11:10:18 +00:00
|
|
|
|
2014-10-17 Hans-Peter Nilsson <hp@axis.com>
|
|
|
|
|
|
|
|
|
|
* ld-scripts/sysroot-prefix.exp: Log $ld_sysroot. Handle sysroot
|
|
|
|
|
== "/" as a separate sysroot-configuration with separable
|
|
|
|
|
test-types.
|
|
|
|
|
(sysroot_prefix_tests): Include all existing sysroot tests in
|
|
|
|
|
sysroot == "/" tests except exclude those where a --sysroot option
|
|
|
|
|
is not specified.
|
|
|
|
|
* lib/ld-lib.exp (check_sysroot_available): Rewrite to use
|
|
|
|
|
--print-sysroot instead of relying on error code from using
|
|
|
|
|
--sysroot=... Also, set $ld_sysroot.
|
|
|
|
|
|
2014-10-15 00:54:56 +00:00
|
|
|
|
2014-10-15 Hans-Peter Nilsson <hp@axis.com>
|
|
|
|
|
|
2014-10-15 00:59:41 +00:00
|
|
|
|
* ld-scripts/sysroot-prefix.exp, ld-scripts/sysroot-prefix-x.s,
|
|
|
|
|
ld-scripts/sysroot-prefix-y.s: New files.
|
2014-10-15 00:54:56 +00:00
|
|
|
|
* lib/ld-lib.exp (check_sysroot_available): New proc.
|
|
|
|
|
|
2014-10-04 06:23:58 +00:00
|
|
|
|
2014-10-04 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ld-elf/eh1.s: Don't create FDEs with zero address ranges.
|
|
|
|
|
* ld-elf/eh3.s: Likewise.
|
|
|
|
|
* ld-elf/eh1.d, * ld-elf/eh2.d, * ld-elf/eh3.d: Adjust.
|
|
|
|
|
* ld-mips-elf/eh-frame1-n32.d: Warning match update.
|
|
|
|
|
* ld-mips-elf/eh-frame1-n64.d: Likewise.
|
|
|
|
|
* ld-mips-elf/eh-frame2-n32.d: Likewise.
|
|
|
|
|
* ld-mips-elf/eh-frame2-n64.d: Likewise.
|
|
|
|
|
|
2014-09-22 08:44:27 +00:00
|
|
|
|
2014-09-22 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ld-plugin/lto.exp: Use both --print-file-name and --print-prog-name
|
|
|
|
|
when looking for lto plugin.
|
|
|
|
|
|
2014-09-16 12:08:22 +00:00
|
|
|
|
2014-09-16 Terry Guo <terry.guo@arm.com>
|
|
|
|
|
|
|
|
|
|
* ld-arm/attr-merge-arch-2.d: New test case.
|
|
|
|
|
* ld-arm/attr-merge-arch-2a.s: New test case source file.
|
|
|
|
|
* ld-arm/attr-merge-arch-2b.s: Likewise.
|
|
|
|
|
* ld-arm/arm-elf.exp: Run new test case.
|
|
|
|
|
|
2014-09-10 11:41:28 +00:00
|
|
|
|
2014-09-12 Andrew Bennett <andrew.bennett@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* ld-mips-elf/mips-elf.exp: Add support for mips*-img-elf* target
|
|
|
|
|
triple.
|
|
|
|
|
|
2014-09-10 04:56:25 +00:00
|
|
|
|
2014-09-10 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ld-aarch64/emit-relocs-local-addend.d: Adjust for changed
|
|
|
|
|
section header placement.
|
|
|
|
|
* ld-aarch64/local-addend-r.d: Likewise.
|
|
|
|
|
* ld-mmix/bspec1.d: Likewise.
|
|
|
|
|
* ld-mmix/bspec2.d: Likewise.
|
|
|
|
|
* ld-mmix/local1.d: Likewise.
|
|
|
|
|
* ld-mmix/local3.d: Likewise.
|
|
|
|
|
* ld-mmix/local5.d: Likewise.
|
|
|
|
|
* ld-mmix/local7.d: Likewise.
|
|
|
|
|
* ld-mmix/undef-3.d: Likewise.
|
|
|
|
|
* ld-sh/sh64/crange3-cmpct.rd: Likewise.
|
|
|
|
|
* ld-sh/sh64/crange3-media.rd: Likewise.
|
|
|
|
|
* ld-sh/sh64/crangerel1.rd: Likewise.
|
|
|
|
|
* ld-sh/sh64/crangerel2.rd: Likewise.
|
|
|
|
|
* ld-tic6x/common.d: Likewise.
|
|
|
|
|
* ld-tic6x/shlib-1.rd: Likewise.
|
|
|
|
|
* ld-tic6x/shlib-1b.rd: Likewise.
|
|
|
|
|
* ld-tic6x/shlib-1r.rd: Likewise.
|
|
|
|
|
* ld-tic6x/shlib-1rb.rd: Likewise.
|
|
|
|
|
* ld-tic6x/shlib-app-1.rd: Likewise.
|
|
|
|
|
* ld-tic6x/shlib-app-1b.rd: Likewise.
|
|
|
|
|
* ld-tic6x/shlib-app-1r.rd: Likewise.
|
|
|
|
|
* ld-tic6x/shlib-app-1rb.rd: Likewise.
|
|
|
|
|
* ld-tic6x/shlib-noindex.rd: Likewise.
|
|
|
|
|
* ld-tic6x/static-app-1.rd: Likewise.
|
|
|
|
|
* ld-tic6x/static-app-1b.rd: Likewise.
|
|
|
|
|
* ld-tic6x/static-app-1r.rd: Likewise.
|
|
|
|
|
* ld-tic6x/static-app-1rb.rd: Likewise.
|
|
|
|
|
* ld-x86-64/ilp32-4.d: Likewise.
|
|
|
|
|
* ld-x86-64/split-by-file-nacl.rd: Likewise.
|
|
|
|
|
* ld-x86-64/split-by-file.rd: Likewise.
|
|
|
|
|
|
2014-09-02 07:25:23 +00:00
|
|
|
|
2014-09-06 Matthew Fortune <matthew.fortune@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* ld-mips-elf/abiflags-strip1-ph.d: Ignore big/little endian
|
|
|
|
|
differences. Ignore program headers other than PT_MIPS_ABIFLAGS.
|
|
|
|
|
Do not force -32, -EB and ld emulation but instead rely on the
|
|
|
|
|
test driver to build for some form of O32.
|
|
|
|
|
* ld-mips-elf/abiflags-strip2-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/abiflags-strip3-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/abiflags-strip4-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/abiflags-strip5-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/abiflags-strip6-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/abiflags-strip7-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/abiflags-strip8-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/abiflags-strip9-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-0-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-05.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-06.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-07.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-1-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-10.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-15.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-16.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-17.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-2-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-25.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-26.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-27.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-3-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-35.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-36.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-37.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-4-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-45.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-46.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-47.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-5-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-50.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-51.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-52.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-53.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-54.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-55.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-56.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-57.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-58.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-6-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-60.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-61.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-62.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-63.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-64.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-65.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-66.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-67.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-68.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-7-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-70.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-71.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-72.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-73.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-74.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-75.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-76.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-77.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-78.d: Likewise.
|
|
|
|
|
* ld-mips-elf/mips-elf.exp: Update default abi_asflags(o32) to explicitly
|
|
|
|
|
pass -32 for the 'no abi' configurations. Modify the way attr-gnu* tests
|
|
|
|
|
are run to use O32 flags appropriate for the current target.
|
|
|
|
|
|
2014-08-29 00:57:44 +00:00
|
|
|
|
2014-08-29 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* lib/ld-lib.exp (ld_simple_link_defsyms): Provide both __main
|
|
|
|
|
and ___main for windows targets.
|
|
|
|
|
|
2014-08-27 14:59:48 +00:00
|
|
|
|
2014-08-27 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/17306
|
|
|
|
|
* ld-i386/i386.exp (i386tests): Add tests for PR ld/17306.
|
|
|
|
|
* ld-x86-64/x86-64.exp (x86_64tests): Likewise.
|
|
|
|
|
|
|
|
|
|
* ld-i386/pr17306a.s: New file.
|
|
|
|
|
* ld-i386/pr17306b.s: Likewise.
|
|
|
|
|
* ld-x86-64/pr17306a.s: Likewise.
|
|
|
|
|
* ld-x86-64/pr17306b.s: Likewise.
|
|
|
|
|
|
2014-08-27 14:39:48 +00:00
|
|
|
|
2014-08-27 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/17313
|
|
|
|
|
* ld-i386/i386.exp (i386tests): Add tests for PR ld/17313.
|
|
|
|
|
* ld-x86-64/x86-64.exp (x86_64tests): Likewise.
|
|
|
|
|
|
2014-08-26 14:48:47 +00:00
|
|
|
|
2014-08-26 Jiong Wang <jiong.wang@arm.com>
|
|
|
|
|
|
|
|
|
|
* ld-aarch64/copy-relocs-so.s: New test file.
|
|
|
|
|
* ld-aarch64/copy-relocs-exe.s: Likewise.
|
|
|
|
|
* ld-aarch64/copy-relocs.d: New expectation file.
|
|
|
|
|
* ld-aarch64/emit-relocs-264-bad.d: New test file.
|
|
|
|
|
* ld-aarch64/emit-relocs-266-bad.d: Likewise.
|
|
|
|
|
* ld-aarch64/emit-relocs-268-bad.d: Likewise.
|
|
|
|
|
* ld-aarch64/emit-relocs-269-bad.d: Likewise.
|
|
|
|
|
* ld-aarch64/aarch64-elf.exp: Run new added test.
|
|
|
|
|
|
2014-08-26 14:06:49 +00:00
|
|
|
|
2014-08-26 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ld-aarch64/eh-frame-foo.s: Use 8-byte offset for X30.
|
|
|
|
|
* ld-aarch64/eh-frame-bar.s: Likewise.
|
|
|
|
|
* ld-aarch64/eh-frame.d: Updated to match current readelf output.
|
|
|
|
|
* ld-elf/eh5.d: Allow any register names.
|
|
|
|
|
|
2014-08-22 15:52:20 +00:00
|
|
|
|
2014-08-22 Maciej W. Rozycki <macro@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* ld-powerpc/apuinfo-vle.rd: New test.
|
|
|
|
|
* ld-powerpc/apuinfo-vle.s: New test source.
|
|
|
|
|
* ld-powerpc/apuinfo.rd: Adjust according to GAS PPC_APUINFO_VLE
|
|
|
|
|
handling change.
|
|
|
|
|
* ld-powerpc/powerpc.exp: Run the new test.
|
|
|
|
|
|
2014-08-21 10:00:35 +00:00
|
|
|
|
2014-08-21 Tony Wang <tony.wang@arm.com>
|
|
|
|
|
|
|
|
|
|
* ld-arm/jump-reloc-veneers-cond.s: New test.
|
|
|
|
|
* ld-arm/farcall-cond-thumb-arm.s: Ditto.
|
|
|
|
|
* ld-arm/jump-reloc-veneers-cond-short.d: Expected output
|
|
|
|
|
for target without a veneer generation.
|
|
|
|
|
* ld-arm/jump-reloc-veneers-cond-long.d: Expected output
|
|
|
|
|
for target with a veneer generation.
|
|
|
|
|
* ld-arm/farcall-cond-thumb-arm.d: Expected output for
|
|
|
|
|
inter working veneer generation.
|
|
|
|
|
* ld-arm/arm-elf.exp: Add tests for conditional branch veneer.
|
|
|
|
|
|
2014-08-20 17:12:57 +00:00
|
|
|
|
2014-08-20 Roland McGrath <mcgrathr@google.com>
|
|
|
|
|
|
|
|
|
|
PR ld/17277
|
|
|
|
|
* ld-arm/pcrel-shared.s: New file.
|
|
|
|
|
* ld-arm/pcrel-shared.rd: New file.
|
|
|
|
|
* ld-arm/arm-elf.exp (armelftests_common): Add it.
|
|
|
|
|
|
2014-08-18 09:08:24 +00:00
|
|
|
|
2014-08-18 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ld-plugin/lto.exp: Use gcc -print-file-name to find lto plugin.
|
|
|
|
|
|
2014-08-18 05:13:03 +00:00
|
|
|
|
2014-08-18 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ld-plugin/needed3.c: New file.
|
|
|
|
|
* ld-elf/shared.exp: Add needed3 test.
|
|
|
|
|
|
2014-08-12 10:57:19 +00:00
|
|
|
|
2014-08-12 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* lib/ld-lib.exp (check_plugin_api_available): Match "-plugin PLUGIN".
|
|
|
|
|
|
2014-08-07 00:23:46 +00:00
|
|
|
|
2014-08-07 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/16746
|
|
|
|
|
* ld-plugin/lto.exp: Add 4 tests for PR ld/16746.
|
|
|
|
|
* ld-plugin/pr16746a.c: New file.
|
|
|
|
|
* ld-plugin/pr16746b.c: Likewise.
|
|
|
|
|
* ld-plugin/pr16746c.c: Likewise.
|
|
|
|
|
* ld-plugin/pr16746d.c: Likewise.
|
|
|
|
|
|
2014-08-06 03:56:18 +00:00
|
|
|
|
2014-08-06 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* lib/ld-lib.exp (check_lto_fat_available): New.
|
|
|
|
|
(check_lto_available): Remove -ffat-lto-objects test.
|
|
|
|
|
* ld-plugin/lto.exp: Use [list ] rather than { } to set up list
|
|
|
|
|
variables, allowing substition of vars. Set lto_fat and plug_opt
|
|
|
|
|
and add to various tests.
|
|
|
|
|
|
2014-08-01 10:17:47 +00:00
|
|
|
|
2014-08-01 Takashi Yoshii <yoshii.takashi@renesas.com>
|
|
|
|
|
|
|
|
|
|
PR 10373
|
|
|
|
|
* ld-sh/sh1.s: Add jmp relaxing test.
|
|
|
|
|
* ld-sh/sh.exp: Likewise.
|
|
|
|
|
|
2014-08-01 10:13:39 +00:00
|
|
|
|
2014-08-01 Takashi Yoshii <yoshii.takashi@renesas.com>
|
|
|
|
|
|
|
|
|
|
PR 10378
|
|
|
|
|
* ld-sh/adjsw8.s: New.
|
|
|
|
|
* ld-sh/sh.exp: Add switch8 adjustment test.
|
|
|
|
|
|
[MIPS] Implement O32 FPXX, FP64 and FP64A ABI extensions
Specification:
https://dmz-portal.mips.com/wiki/MIPS_O32_ABI_-_FR0_and_FR1_Interlinking
include/
* elf/mips.h (PT_MIPS_ABIFLAGS, SHT_MIPS_ABIFLAGS): Define.
(Val_GNU_MIPS_ABI_FP_OLD_64): Rename from Val_GNU_MIPS_ABI_FP_64.
(Val_GNU_MIPS_ABI_FP_64): Redefine.
(Val_GNU_MIPS_ABI_FP_XX): Define.
(Elf_External_ABIFlags_v0, Elf_Internal_ABIFlags_v0): New structures.
(AFL_REG_NONE, AFL_REG_32, AFL_REG_64, AFL_REG_128): Define.
(AFL_ASE_DSP, AFL_ASE_DSPR2, AFL_ASE_EVA, AFL_ASE_MCU): Likewise.
(AFL_ASE_MDMX, AFL_ASE_MIPS3D, AFL_ASE_MT, AFL_ASE_SMARTMIPS): Likewise.
(AFL_ASE_VIRT, AFL_ASE_MSA, AFL_ASE_MIPS16): Likewise.
(AFL_ASE_MICROMIPS, AFL_ASE_XPA): Likewise.
(AFL_EXT_XLR, AFL_EXT_OCTEON2, AFL_EXT_OCTEONP): Likewise.
(AFL_EXT_LOONGSON_3A, AFL_EXT_OCTEON, AFL_EXT_5900): Likewise.
(AFL_EXT_4650, AFL_EXT_4010, AFL_EXT_4100, AFL_EXT_3900): Likewise.
(AFL_EXT_10000, AFL_EXT_SB1, AFL_EXT_4111, AFL_EXT_4120): Likewise.
(AFL_EXT_5400, AFL_EXT_5500, AFL_EXT_LOONGSON_2E): Likewise.
(AFL_EXT_LOONGSON_2F): Likewise.
(bfd_mips_elf_swap_abiflags_v0_in): Prototype.
(bfd_mips_elf_swap_abiflags_v0_out): Likewise.
(bfd_mips_isa_ext): Likewise.
bfd/
* elfxx-mips.c (ABI_O32_P, MIPS_ELF_ABIFLAGS_SECTION_NAME_P): New macro.
(mips_elf_obj_tdata): Add abiflags and abiflags_valid fields.
(bfd_mips_elf_swap_abiflags_v0_in): New function.
(bfd_mips_elf_swap_abiflags_v0_out): Likewise.
(_bfd_mips_elf_section_from_shdr): Handle SHT_MIPS_ABIFLAGS.
(_bfd_mips_elf_fake_sections): Likewise.
(_bfd_mips_elf_always_size_sections): Handle .MIPS.abiflags.
(_bfd_mips_elf_additional_program_headers): Account for new
PT_MIPS_ABIFLAGS program header.
(_bfd_mips_elf_modify_segment_map): Create PT_MIPS_ABIFLAGS segment and
associate with .MIPS.abiflags.
(_bfd_mips_elf_gc_mark_extra_sections): New function.
(bfd_mips_isa_ext, update_mips_abiflags_isa): New static function.
(infer_mips_abiflags): Likewise.
(_bfd_mips_elf_final_link): Handle .MIPS.abiflags.
(mips_32bit_flags_p): Moved higher.
(mips_elf_merge_obj_attributes, _bfd_mips_fp_abi_string): Error
checking for FP ABIs.
(_bfd_mips_elf_merge_private_bfd_data): Restructure and add abiflags
checks. Check EF_MIPS_FP64 flag consistency.
(print_mips_ases, print_mips_isa_ext): New static function.
(print_mips_fp_abi_value, get_mips_reg_size): Likewise.
(_bfd_mips_elf_print_private_bfd_data): Display abiflags data.
(_bfd_mips_post_process_headers): Set EI_ABIVERSION = 3 for
Val_GNU_MIPS_ABI_FP_64 or Val_GNU_MIPS_ABI_FP_64A.
* elfxx-mips.h (_bfd_mips_elf_gc_mark_extra_sections): New prototype.
* elf32-mips.c (elf_backend_gc_mark_extra_sections): Implement.
* elfn32-mips.c (elf_backend_gc_mark_extra_sections): Implement.
* elf64-mips.c (elf_backend_gc_mark_extra_sections): Implement.
binutils/
* readelf.c (get_mips_segment_type): Display name for PT_MIPS_ABIFLAGS.
(get_mips_section_type_name): Display name for SHT_MIPS_ABIFLAGS.
(display_mips_gnu_attribute): Abstracted fp abi printing to...
(print_mips_fp_abi_value): New static function. Handle new FP ABIs.
(print_mips_ases, print_mips_isa_ext): New static functions.
(get_mips_reg_size): Likewise.
(process_mips_specific): Display abiflags data.
elfcpp/
* elfcpp.h (PT_MIPS_ABIFLAGS): New program header type.
gas/
* config/tc-mips.c (mips_flags_frag): New static global.
(struct mips_set_options): Add oddspreg field.
(file_mips_opts, mips_opts): Initialize oddspreg.
(ISA_HAS_ODD_SINGLE_FPR): Add CPU argument and update for R5900 and
Loongson-3a.
(enum options, md_longopts, md_parse_option): Add -mfpxx, -modd-spreg
and -mno-odd-spreg options.
(md_begin): Create .MIPS.abiflags section.
(fpabi_incompatible_with, fpabi_requires): New static function.
(check_fpabi): Likewise.
(mips_check_options): Handle fp=xx and oddspreg restrictions.
(file_mips_check_options): Set oddspreg by default for fp=xx.
(mips_oddfpreg_ok): Re-write function.
(check_regno): Check odd numbered registers regardless of FPR size.
For fp != 32 use as_bad instead of as_warn.
(match_float_constant): Rewrite check regarding FP register width. Add
support for generating constants when MXHC1 is present. Handle fp=xx
to comply with the ABI.
(macro): Update M_LI_DD similarly to match_float_constant. Generate
MTHC1 when available. Check that correct code can be generated for
fp=xx and fp=64 ABIs.
(parse_code_option, s_mipsset): Add fp=xx, oddspreg and nooddspreg
options.
(mips_convert_ase_flags): New static function.
(mips_elf_final_processing): Use fpabi == Val_GNU_MIPS_ABI_FP_OLD_64
to determine when to add the EF_MIPS_FP64 flag. Populate the
.MIPS.abiflags section.
(md_mips_end): Update .gnu_attribute based on command line and .module
as applicable. Use check_fpabi to ensure .gnu.attribute and command
line/.module options are consistent.
* doc/as.texinfo: Add missing -mgp64/-mfp64 options and document new
-mfpxx, -modd-spreg and -mno-odd-spreg options.
* doc/c-mips.texi: Document -mfpxx, -modd-spreg, -mno-odd-spreg,
gnu_attribute values and FP ABIs.
ld/
* emulparams/elf32bmip.sh: Add .MIPS.abiflags.
* emulparams/elf32bmipn32-defs.sh: Likewise.
* emulparams/elf64bmip-defs.sh: Likewise.
opcodes/
* micromips-opc.c (COD, LCD) New macros.
(cfc1, ctc1): Remove FP_S attribute.
(dmfc1, mfc1, mfhc1): Add LCD attribute.
(dmtc1, mtc1, mthc1): Add COD attribute.
* mips-opc.c (cfc1, cftc1, ctc, cttc1): Remove FP_S attribute.
binutils/testsuite/
* binutils-all/readelf.s: Account for .MIPS.abiflags and
.gnu.attributes.
* binutils-all/readelf.ss-tmips: Likewise.
* binutils-all/strip-3.d: Likewise.
gas/testsuite/
* gas/mips/attr-gnu-4-0.d: New.
* gas/mips/attr-gnu-4-0.s: Likewise.
* gas/mips/attr-gnu-4-1-mfp32.l: Likewise.
* gas/mips/attr-gnu-4-1-mfp32.s: Likewise.
* gas/mips/attr-gnu-4-1-mfp64.l: Likewise.
* gas/mips/attr-gnu-4-1-mfp64.s: Likewise.
* gas/mips/attr-gnu-4-1-mfpxx.s: Likewise.
* gas/mips/attr-gnu-4-1-msingle-float.l: Likewise.
* gas/mips/attr-gnu-4-1-msingle-float.s: Likewise.
* gas/mips/attr-gnu-4-1-msoft-float.l: Likewise.
* gas/mips/attr-gnu-4-1-msoft-float.s: Likewise.
* gas/mips/attr-gnu-4-1.d: Likewise.
* gas/mips/attr-gnu-4-1.s: Likewise.
* gas/mips/attr-gnu-4-2-mdouble-float.l: Likewise.
* gas/mips/attr-gnu-4-2-mdouble-float.s: Likewise.
* gas/mips/attr-gnu-4-2-msoft-float.l: Likewise.
* gas/mips/attr-gnu-4-2-msoft-float.s: Likewise.
* gas/mips/attr-gnu-4-2.d: Likewise.
* gas/mips/attr-gnu-4-2.s: Likewise.
* gas/mips/attr-gnu-4-3-mhard-float.l: Likewise.
* gas/mips/attr-gnu-4-3-mhard-float.s: Likewise.
* gas/mips/attr-gnu-4-3.d: Likewise.
* gas/mips/attr-gnu-4-3.s: Likewise.
* gas/mips/attr-gnu-4-4.l: Likewise.
* gas/mips/attr-gnu-4-4.s: Likewise.
* gas/mips/attr-gnu-4-5-64.l: Likewise.
* gas/mips/attr-gnu-4-5-64.s: Likewise.
* gas/mips/attr-gnu-4-5.d: Likewise.
* gas/mips/attr-gnu-4-5.l: Likewise.
* gas/mips/attr-gnu-4-5.s: Likewise.
* gas/mips/attr-gnu-4-6-64.l: Likewise.
* gas/mips/attr-gnu-4-6-64.s: Likewise.
* gas/mips/attr-gnu-4-6.d: Likewise.
* gas/mips/attr-gnu-4-6.l: Likewise.
* gas/mips/attr-gnu-4-6.s: Likewise.
* gas/mips/attr-gnu-4-6-msingle-float.l: Likewise.
* gas/mips/attr-gnu-4-6-msingle-float.s: Likewise.
* gas/mips/attr-gnu-4-6-msoft-float.l: Likewise.
* gas/mips/attr-gnu-4-6-msoft-float.s: Likewise.
* gas/mips/attr-gnu-4-6-noodd.l: Likewise.
* gas/mips/attr-gnu-4-6-noodd.s: Likewise.
* gas/mips/attr-gnu-4-7-64.l: Likewise.
* gas/mips/attr-gnu-4-7-64.s: Likewise.
* gas/mips/attr-gnu-4-7-msingle-float.l: Likewise.
* gas/mips/attr-gnu-4-7-msingle-float.s: Likewise.
* gas/mips/attr-gnu-4-7-msoft-float.l: Likewise.
* gas/mips/attr-gnu-4-7-msoft-float.s: Likewise.
* gas/mips/attr-gnu-4-7-odd.l: Likewise.
* gas/mips/attr-gnu-4-7-odd.s: Likewise.
* gas/mips/attr-gnu-4-7.d: Likewise.
* gas/mips/attr-gnu-4-7.l: Likewise.
* gas/mips/attr-gnu-4-7.s: Likewise.
* gas/mips/attr-none-double.d: Likewise.
* gas/mips/attr-none-o32-fp64.d: Likewise.
* gas/mips/attr-none-o32-fp64-nooddspreg.d
* gas/mips/attr-none-o32-fpxx.d: Likewise.
* gas/mips/attr-none-single-float.d: Likewise.
* gas/mips/attr-none-soft-float.d: Likewise.
* gas/mips/elf_arch_mips32r3.d: Likewise.
* gas/mips/elf_arch_mips32r5.d: Likewise.
* gas/mips/elf_arch_mips64r3.d: Likewise.
* gas/mips/elf_arch_mips64r5.d: Likewise.
* gas/mips/li-d.d: Likewise.
* gas/mips/li-d.s: Likewise.
* gas/mips/module-check-warn.l: Likewise.
* gas/mips/module-check-warn.s: Likewise.
* gas/mips/module-check.d: Likewise.
* gas/mips/module-check.s: Likewise.
* gas/mips/module-mfp32.d: Likewise.
* gas/mips/module-mfp32.s: Likewise.
* gas/mips/module-mfp64.d: Likewise.
* gas/mips/module-mfp64.s: Likewise.
* gas/mips/module-mfp64-noodd.d: Likewise.
* gas/mips/module-mfp64-noodd.s: Likewise.
* gas/mips/module-mfpxx.d: Likewise.
* gas/mips/module-mfpxx.s: Likewise.
* gas/mips/module-msingle-float.d: Likewise.
* gas/mips/module-msingle-float.s: Likewise.
* gas/mips/module-msoft-float.d: Likewise.
* gas/mips/module-msoft-float.s: Likewise.
* gas/mips/module-set-mfpxx.d: Likewise.
* gas/mips/module-set-mfpxx.s: Likewise.
* gas/mips/fpxx-oddfpreg.d: Likewise.
* gas/mips/fpxx-oddfpreg.l: Likewise.
* gas/mips/fpxx-oddfpreg.s: Likewise.
* gas/mips/no-odd-spreg.d: Likewise.
* gas/mips/odd-spreg.d: Likewise.
* gas/elf/section2.e-mips: Adjust expected output.
* gas/mips/attr-gnu-abi-fp-1.d: Likewise.
* gas/mips/attr-gnu-abi-msa-1.d: Likewise.
* gas/mips/call-nonpic-1.d: Likewise.
* gas/mips/elf_arch_mips1.d: Likewise.
* gas/mips/elf_arch_mips2.d: Likewise.
* gas/mips/elf_arch_mips3.d: Likewise.
* gas/mips/elf_arch_mips32.d: Likewise.
* gas/mips/elf_arch_mips32r2.d: Likewise.
* gas/mips/elf_arch_mips4.d: Likewise.
* gas/mips/elf_arch_mips5.d: Likewise.
* gas/mips/elf_arch_mips64.d: Likewise.
* gas/mips/elf_arch_mips64r2.d: Likewise.
* gas/mips/elf_ase_micromips-2.d: Likewise.
* gas/mips/elf_ase_micromips.d: Likewise.
* gas/mips/elf_ase_mips16-2.d: Likewise.
* gas/mips/elf_ase_mips16.d: Likewise.
* gas/mips/module-defer-warn1.d: Likewise.
* gas/mips/module-override.d: Likewise.
* gas/mips/n32-consec.d: Likewise.
* gas/mips/nan-2008-1.d: Likewise.
* gas/mips/nan-2008-2.d: Likewise.
* gas/mips/nan-2008-3.d: Likewise.
* gas/mips/nan-2008-4.d: Likewise.
* gas/mips/nan-legacy-1.d: Likewise.
* gas/mips/nan-legacy-2.d: Likewise.
* gas/mips/nan-legacy-3.d: Likewise.
* gas/mips/nan-legacy-4.d: Likewise.
* gas/mips/nan-legacy-5.d: Likewise.
* gas/mips/tmips16-e.d: Likewise.
* gas/mips/tmips16-f.d: Likewise.
* gas/mips/tmipsel16-e.d: Likewise.
* gas/mips/tmipsel16-f.d: Likewise.
* gas/testsuite/gas/mips/mips.exp: Add new tests.
ld/testsuite/
* ld-mips-elf/abiflags-strip1-ph.d: New.
* ld-mips-elf/abiflags-strip2-ph.d: Likewise.
* ld-mips-elf/abiflags-strip3-ph.d: Likewise.
* ld-mips-elf/abiflags-strip4-ph.d: Likewise.
* ld-mips-elf/abiflags-strip5-ph.d: Likewise.
* ld-mips-elf/abiflags-strip6-ph.d: Likewise.
* ld-mips-elf/abiflags-strip7-ph.d: Likewise.
* ld-mips-elf/abiflags-strip8-ph.d: Likewise.
* ld-mips-elf/abiflags-strip9-ph.d: Likewise.
* ld-mips-elf/attr-gnu-4-0-n32-ph.d: Likewise.
* ld-mips-elf/attr-gnu-4-0-n64-ph.d: Likewise.
* ld-mips-elf/attr-gnu-4-0-ph.d: Likewise.
* ld-mips-elf/attr-gnu-4-06.d: Likewise.
* ld-mips-elf/attr-gnu-4-07.d: Likewise.
* ld-mips-elf/attr-gnu-4-08.d: Likewise.
* ld-mips-elf/attr-gnu-4-1-n32-ph.d: Likewise.
* ld-mips-elf/attr-gnu-4-1-n64-ph.d: Likewise.
* ld-mips-elf/attr-gnu-4-1-ph.d: Likewise.
* ld-mips-elf/attr-gnu-4-16.d: Likewise.
* ld-mips-elf/attr-gnu-4-17.d: Likewise.
* ld-mips-elf/attr-gnu-4-18.d: Likewise.
* ld-mips-elf/attr-gnu-4-2-n32-ph.d: Likewise.
* ld-mips-elf/attr-gnu-4-2-n64-ph.d: Likewise.
* ld-mips-elf/attr-gnu-4-2-ph.d: Likewise.
* ld-mips-elf/attr-gnu-4-26.d: Likewise.
* ld-mips-elf/attr-gnu-4-27.d: Likewise.
* ld-mips-elf/attr-gnu-4-28.d: Likewise.
* ld-mips-elf/attr-gnu-4-3-n32-ph.d: Likewise.
* ld-mips-elf/attr-gnu-4-3-n64-ph.d: Likewise.
* ld-mips-elf/attr-gnu-4-3-ph.d: Likewise.
* ld-mips-elf/attr-gnu-4-36.d: Likewise.
* ld-mips-elf/attr-gnu-4-37.d: Likewise.
* ld-mips-elf/attr-gnu-4-38.d: Likewise.
* ld-mips-elf/attr-gnu-4-4-ph.d: Likewise.
* ld-mips-elf/attr-gnu-4-46.d: Likewise.
* ld-mips-elf/attr-gnu-4-47.d: Likewise.
* ld-mips-elf/attr-gnu-4-48.d: Likewise.
* ld-mips-elf/attr-gnu-4-5-ph.d: Likewise.
* ld-mips-elf/attr-gnu-4-50.d: Likewise.
* ld-mips-elf/attr-gnu-4-52.d: Likewise.
* ld-mips-elf/attr-gnu-4-53.d: Likewise.
* ld-mips-elf/attr-gnu-4-54.d: Likewise.
* ld-mips-elf/attr-gnu-4-55.d: Likewise.
* ld-mips-elf/attr-gnu-4-56.d: Likewise.
* ld-mips-elf/attr-gnu-4-57.d: Likewise.
* ld-mips-elf/attr-gnu-4-58.d: Likewise.
* ld-mips-elf/attr-gnu-4-6-ph.d: Likewise.
* ld-mips-elf/attr-gnu-4-6.s: Likewise.
* ld-mips-elf/attr-gnu-4-60.d: Likewise.
* ld-mips-elf/attr-gnu-4-61.d: Likewise.
* ld-mips-elf/attr-gnu-4-62.d: Likewise.
* ld-mips-elf/attr-gnu-4-63.d: Likewise.
* ld-mips-elf/attr-gnu-4-64.d: Likewise.
* ld-mips-elf/attr-gnu-4-65.d: Likewise.
* ld-mips-elf/attr-gnu-4-66.d: Likewise.
* ld-mips-elf/attr-gnu-4-67.d: Likewise.
* ld-mips-elf/attr-gnu-4-68.d: Likewise.
* ld-mips-elf/attr-gnu-4-7-ph.d: Likewise.
* ld-mips-elf/attr-gnu-4-7.s: Likewise.
* ld-mips-elf/attr-gnu-4-70.d: Likewise.
* ld-mips-elf/attr-gnu-4-71.d: Likewise.
* ld-mips-elf/attr-gnu-4-72.d: Likewise.
* ld-mips-elf/attr-gnu-4-73.d: Likewise.
* ld-mips-elf/attr-gnu-4-74.d: Likewise.
* ld-mips-elf/attr-gnu-4-75.d: Likewise.
* ld-mips-elf/attr-gnu-4-76.d: Likewise.
* ld-mips-elf/attr-gnu-4-77.d: Likewise.
* ld-mips-elf/attr-gnu-4-78.d: Likewise.
* ld-mips-elf/attr-gnu-4-8.s: Likewise.
* ld-mips-elf/attr-gnu-4-81.d: Likewise.
* ld-mips-elf/empty.s: Likewise.
* ld-mips-elf/attr-gnu-4-00.d: Adjust expected output.
* ld-mips-elf/attr-gnu-4-01.d: Likewise.
* ld-mips-elf/attr-gnu-4-02.d: Likewise.
* ld-mips-elf/attr-gnu-4-03.d: Likewise.
* ld-mips-elf/attr-gnu-4-04.d: Likewise.
* ld-mips-elf/attr-gnu-4-05.d: Likewise.
* ld-mips-elf/attr-gnu-4-10.d: Likewise.
* ld-mips-elf/attr-gnu-4-11.d: Likewise.
* ld-mips-elf/attr-gnu-4-14.d: Likewise.
* ld-mips-elf/attr-gnu-4-15.d: Likewise.
* ld-mips-elf/attr-gnu-4-2.s: Likewise.
* ld-mips-elf/attr-gnu-4-20.d: Likewise.
* ld-mips-elf/attr-gnu-4-22.d: Likewise.
* ld-mips-elf/attr-gnu-4-24.d: Likewise.
* ld-mips-elf/attr-gnu-4-25.d: Likewise.
* ld-mips-elf/attr-gnu-4-3.s: Likewise.
* ld-mips-elf/attr-gnu-4-30.d: Likewise.
* ld-mips-elf/attr-gnu-4-33.d: Likewise.
* ld-mips-elf/attr-gnu-4-34.d: Likewise.
* ld-mips-elf/attr-gnu-4-35.d: Likewise.
* ld-mips-elf/attr-gnu-4-40.d: Likewise.
* ld-mips-elf/attr-gnu-4-41.d: Likewise.
* ld-mips-elf/attr-gnu-4-42.d: Likewise.
* ld-mips-elf/attr-gnu-4-43.d: Likewise.
* ld-mips-elf/attr-gnu-4-44.d: Likewise.
* ld-mips-elf/attr-gnu-4-45.d: Likewise.
* ld-mips-elf/attr-gnu-4-5.s: Likewise.
* ld-mips-elf/attr-gnu-4-51.d: Likewise.
* ld-mips-elf/attr-gnu-8-00.d: Likewise.
* ld-mips-elf/attr-gnu-8-01.d: Likewise.
* ld-mips-elf/attr-gnu-8-02.d: Likewise.
* ld-mips-elf/attr-gnu-8-10.d: Likewise.
* ld-mips-elf/attr-gnu-8-11.d: Likewise.
* ld-mips-elf/attr-gnu-8-20.d: Likewise.
* ld-mips-elf/attr-gnu-8-22.d: Likewise.
* ld-mips-elf/jalx-2.dd: Likewise.
* ld-mips-elf/mips16-pic-1.gd: Likewise.
* ld-mips-elf/mips16-pic-2.gd: Likewise.
* ld-mips-elf/mips16-pic-3.gd: Likewise.
* ld-mips-elf/mips16-pic-4a.gd: Likewise.
* ld-mips-elf/multi-got-no-shared.d: Likewise.
* ld-mips-elf/nan-2008.d: Likewise.
* ld-mips-elf/nan-legacy.d: Rework test.
* ld-mips-elf/pic-and-nonpic-3a.gd: Likewise.
* ld-mips-elf/pic-and-nonpic-3b.gd: Likewise.
* ld-mips-elf/pic-and-nonpic-5b.gd: Likewise.
* ld-mips-elf/pic-and-nonpic-6.ld: Likewise.
* ld-mips-elf/rel32-n32.d: Likewise.
* ld-mips-elf/rel32-o32.d: Likewise.
* ld-mips-elf/rel64.d: Likewise.
* ld-mips-elf/tls-multi-got-1.r: Likewise.
* ld-elf/group.ld: Discard .MIPS.abiflags and .gnu.attributes.
* ld-elf/orphan-region.ld: Likewise.
* ld-elf/orphan.ld: Likewise.
* ld-mips-elf/compressed-plt-1.ld: Likewise.
* ld-mips-elf/dyn-sec64.ld: Likewise.
* ld-mips-elf/got-dump-1.ld: Likewise.
* ld-mips-elf/got-dump-2.ld: Likewise.
* ld-mips-elf/got-page-1.ld: Likewise.
* ld-mips-elf/mips-dyn.ld: Likewise.
* ld-mips-elf/mips-lib.ld: Likewise.
* ld-mips-elf/pic-and-nonpic-3a.ld: Likewise.
* ld-mips-elf/pic-and-nonpic-3b.ld: Likewise.
* ld-mips-elf/pic-and-nonpic-4b.ld: Likewise.
* ld-mips-elf/pic-and-nonpic-5b.ld: Likewise.
* ld-mips-elf/region1.t: Likewise.
* ld-mips-elf/stub-dynsym-1.ld: Likewise.
* ld-mips-elf/tls-hidden3.ld: Likewise.
* ld-mips-elf/vxworks1.ld: Likewise.
* ld-scripts/overlay-size.t: Likewise.
* ld-mips-elf/elf-rel-got-n32-embed.d: Remove .MIPS.abiflags from
objects.
* ld-mips-elf/elf-rel-got-n32.d: Likewise.
* ld-mips-elf/elf-rel-got-n64-embed.d: Likewise.
* ld-mips-elf/elf-rel-got-n64-linux.d: Likewise.
* ld-mips-elf/elf-rel-got-n64.d: Likewise.
* ld-mips-elf/elf-rel-xgot-n32.d: Likewise.
* ld-mips-elf/elf-rel-xgot-n32-embed.d: Likewise.
* ld-mips-elf/elf-rel-xgot-n64.d: Likewise.
* ld-mips-elf/elf-rel-xgot-n64-linux.d: Likewise.
* ld-mips-elf/elf-rel-xgot-n64-embed.d: Likewise.
* ld-mips-elf/mips-elf.exp: Add new tests.
2014-07-29 10:27:59 +00:00
|
|
|
|
2014-07-29 Matthew Fortune <matthew.fortune@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* ld-mips-elf/abiflags-strip1-ph.d: New.
|
|
|
|
|
* ld-mips-elf/abiflags-strip2-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/abiflags-strip3-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/abiflags-strip4-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/abiflags-strip5-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/abiflags-strip6-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/abiflags-strip7-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/abiflags-strip8-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/abiflags-strip9-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-0-n32-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-0-n64-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-0-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-06.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-07.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-08.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-1-n32-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-1-n64-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-1-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-16.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-17.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-18.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-2-n32-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-2-n64-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-2-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-26.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-27.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-28.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-3-n32-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-3-n64-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-3-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-36.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-37.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-38.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-4-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-46.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-47.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-48.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-5-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-50.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-52.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-53.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-54.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-55.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-56.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-57.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-58.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-6-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-6.s: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-60.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-61.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-62.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-63.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-64.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-65.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-66.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-67.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-68.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-7-ph.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-7.s: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-70.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-71.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-72.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-73.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-74.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-75.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-76.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-77.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-78.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-8.s: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-81.d: Likewise.
|
|
|
|
|
* ld-mips-elf/empty.s: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-00.d: Adjust expected output.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-01.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-02.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-03.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-04.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-05.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-10.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-11.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-14.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-15.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-2.s: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-20.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-22.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-24.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-25.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-3.s: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-30.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-33.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-34.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-35.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-40.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-41.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-42.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-43.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-44.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-45.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-5.s: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-4-51.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-8-00.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-8-01.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-8-02.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-8-10.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-8-11.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-8-20.d: Likewise.
|
|
|
|
|
* ld-mips-elf/attr-gnu-8-22.d: Likewise.
|
|
|
|
|
* ld-mips-elf/jalx-2.dd: Likewise.
|
|
|
|
|
* ld-mips-elf/mips16-pic-1.gd: Likewise.
|
|
|
|
|
* ld-mips-elf/mips16-pic-2.gd: Likewise.
|
|
|
|
|
* ld-mips-elf/mips16-pic-3.gd: Likewise.
|
|
|
|
|
* ld-mips-elf/mips16-pic-4a.gd: Likewise.
|
|
|
|
|
* ld-mips-elf/multi-got-no-shared.d: Likewise.
|
|
|
|
|
* ld-mips-elf/nan-2008.d: Likewise.
|
|
|
|
|
* ld-mips-elf/nan-legacy.d: Rework test.
|
|
|
|
|
* ld-mips-elf/pic-and-nonpic-3a.gd: Likewise.
|
|
|
|
|
* ld-mips-elf/pic-and-nonpic-3b.gd: Likewise.
|
|
|
|
|
* ld-mips-elf/pic-and-nonpic-5b.gd: Likewise.
|
|
|
|
|
* ld-mips-elf/pic-and-nonpic-6.ld: Likewise.
|
|
|
|
|
* ld-mips-elf/rel32-n32.d: Likewise.
|
|
|
|
|
* ld-mips-elf/rel32-o32.d: Likewise.
|
|
|
|
|
* ld-mips-elf/rel64.d: Likewise.
|
|
|
|
|
* ld-mips-elf/tls-multi-got-1.r: Likewise.
|
|
|
|
|
* ld-elf/group.ld: Discard .MIPS.abiflags and .gnu.attributes.
|
|
|
|
|
* ld-elf/orphan-region.ld: Likewise.
|
|
|
|
|
* ld-elf/orphan.ld: Likewise.
|
|
|
|
|
* ld-mips-elf/compressed-plt-1.ld: Likewise.
|
|
|
|
|
* ld-mips-elf/dyn-sec64.ld: Likewise.
|
|
|
|
|
* ld-mips-elf/got-dump-1.ld: Likewise.
|
|
|
|
|
* ld-mips-elf/got-dump-2.ld: Likewise.
|
|
|
|
|
* ld-mips-elf/got-page-1.ld: Likewise.
|
|
|
|
|
* ld-mips-elf/mips-dyn.ld: Likewise.
|
|
|
|
|
* ld-mips-elf/mips-lib.ld: Likewise.
|
|
|
|
|
* ld-mips-elf/pic-and-nonpic-3a.ld: Likewise.
|
|
|
|
|
* ld-mips-elf/pic-and-nonpic-3b.ld: Likewise.
|
|
|
|
|
* ld-mips-elf/pic-and-nonpic-4b.ld: Likewise.
|
|
|
|
|
* ld-mips-elf/pic-and-nonpic-5b.ld: Likewise.
|
|
|
|
|
* ld-mips-elf/region1.t: Likewise.
|
|
|
|
|
* ld-mips-elf/stub-dynsym-1.ld: Likewise.
|
|
|
|
|
* ld-mips-elf/tls-hidden3.ld: Likewise.
|
|
|
|
|
* ld-mips-elf/vxworks1.ld: Likewise.
|
|
|
|
|
* ld-scripts/overlay-size.t: Likewise.
|
|
|
|
|
* ld-mips-elf/elf-rel-got-n32-embed.d: Remove .MIPS.abiflags from
|
|
|
|
|
objects.
|
|
|
|
|
* ld-mips-elf/elf-rel-got-n32.d: Likewise.
|
|
|
|
|
* ld-mips-elf/elf-rel-got-n64-embed.d: Likewise.
|
|
|
|
|
* ld-mips-elf/elf-rel-got-n64-linux.d: Likewise.
|
|
|
|
|
* ld-mips-elf/elf-rel-got-n64.d: Likewise.
|
|
|
|
|
* ld-mips-elf/elf-rel-xgot-n32.d: Likewise.
|
|
|
|
|
* ld-mips-elf/elf-rel-xgot-n32-embed.d: Likewise.
|
|
|
|
|
* ld-mips-elf/elf-rel-xgot-n64.d: Likewise.
|
|
|
|
|
* ld-mips-elf/elf-rel-xgot-n64-linux.d: Likewise.
|
|
|
|
|
* ld-mips-elf/elf-rel-xgot-n64-embed.d: Likewise.
|
|
|
|
|
* ld-mips-elf/mips-elf.exp: Add new tests.
|
|
|
|
|
|
2014-07-16 15:16:24 +00:00
|
|
|
|
2014-07-16 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR binutils/17154
|
|
|
|
|
* ld-ifunc/pr17154-i386.d: New file.
|
|
|
|
|
* ld-ifunc/pr17154-x86-64.d: Likewise.
|
|
|
|
|
* ld-ifunc/pr17154-x86.s: Likewise.
|
|
|
|
|
* ld-x86-64/bnd-ifunc-2.d: Likewise.
|
|
|
|
|
* ld-x86-64/bnd-ifunc-2.s: Likewise.
|
|
|
|
|
* ld-x86-64/mpx.exp: Run bnd-ifunc-2.
|
|
|
|
|
* ld-x86-64/tlsdesc-nacl.pd: Updated.
|
|
|
|
|
* ld-x86-64/tlsdesc.pd: Likewise.
|
|
|
|
|
|
2014-07-15 20:09:55 +00:00
|
|
|
|
2014-07-15 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/17057
|
|
|
|
|
* ld-i386/i386.exp: Run pr17057.
|
|
|
|
|
* ld-i386/pr17057.d: New file.
|
|
|
|
|
* ld-i386/pr17057.s: Likewise.
|
|
|
|
|
|
2014-07-15 09:08:55 +00:00
|
|
|
|
2014-07-15 Jiong Wang <jiong.wang@arm.com>
|
|
|
|
|
|
|
|
|
|
* ld-aarch64/emit-relocs-local-addend.d: Use target linker script.
|
|
|
|
|
|
2014-07-07 16:30:58 +00:00
|
|
|
|
2014-07-10 Will Newton <will.newton@linaro.org>
|
|
|
|
|
|
2014-07-07 16:33:34 +00:00
|
|
|
|
* ld-arm/arm-elf.exp (armelftests_nonacl): Move Cortex-A8 fix
|
|
|
|
|
tests, IFUNC tests and other EABI requiring tests to...
|
|
|
|
|
(armeabitests_nonacl): ...here.
|
|
|
|
|
* ld-arm/arm-app-abs32.d: Loosen regex for architecture type
|
|
|
|
|
to allow test to pass on configurations without an attributes
|
|
|
|
|
section.
|
|
|
|
|
* ld-arm/arm-app.d: Likewise.
|
|
|
|
|
* ld-arm/arm-lib-plt32.d: Likewise.
|
|
|
|
|
* ld-arm/arm-lib.d: Likewise.
|
|
|
|
|
* ld-arm/arm-static-app.d: Likewise.
|
|
|
|
|
* ld-arm/armthumb-lib.d: Likewise.
|
|
|
|
|
* ld-arm/cortex-a8-far.d: Likewise.
|
|
|
|
|
* ld-arm/farcall-mixed-app.d: Likewise.
|
|
|
|
|
* ld-arm/farcall-mixed-lib-v4t.d: Likewise.
|
|
|
|
|
* ld-arm/farcall-mixed-lib.d: Likewise.
|
|
|
|
|
* ld-arm/mixed-app-v5.d: Likewise.
|
|
|
|
|
* ld-arm/mixed-app.d: Likewise.
|
|
|
|
|
* ld-arm/mixed-lib.d: Likewise.
|
|
|
|
|
* ld-arm/tls-app.d: Likewise.
|
|
|
|
|
* ld-arm/tls-descrelax-be32.d: Likewise.
|
|
|
|
|
* ld-arm/tls-descrelax.d: Likewise.
|
|
|
|
|
* ld-arm/tls-descseq.d: Likewise.
|
|
|
|
|
* ld-arm/tls-gdesc-got.d: Likewise.
|
|
|
|
|
* ld-arm/tls-gdesc.d: Likewise.
|
|
|
|
|
* ld-arm/tls-gdierelax.d: Likewise.
|
|
|
|
|
* ld-arm/tls-gdierelax2.d: Likewise.
|
|
|
|
|
* ld-arm/tls-gdlerelax.d: Likewise.
|
|
|
|
|
* ld-arm/tls-lib-loc.d: Likewise.
|
|
|
|
|
* ld-arm/tls-lib.d: Likewise.
|
|
|
|
|
* ld-arm/tls-thumb1.d: Likewise.
|
|
|
|
|
|
2014-07-07 16:30:58 +00:00
|
|
|
|
* ld-elfvers/vers.exp: Set pic to yes for ARM targets.
|
|
|
|
|
|
2014-06-26 14:23:31 +00:00
|
|
|
|
2014-07-08 Will Newton <will.newton@linaro.org>
|
|
|
|
|
|
|
|
|
|
* ld-arm/arm-lib.ld: Increase MAXPAGESIZE value to
|
|
|
|
|
match bfd.
|
|
|
|
|
* ld-arm/cortex-a8-fix-bl-rel-plt.d: Update offsets to
|
|
|
|
|
take into account increased segment alignment.
|
|
|
|
|
* ld-arm/ifunc-gdesc.r: Likewise.
|
|
|
|
|
* ld-arm/tls-lib.d: Likewise.
|
|
|
|
|
|
2014-07-08 08:29:06 +00:00
|
|
|
|
2014-07-08 Jiong Wang <jiong.wang@arm.com>
|
|
|
|
|
|
|
|
|
|
* ld-aarch64/emit-relocs-local-addend-bar.s: New source file.
|
|
|
|
|
* ld-aarch64/emit-relocs-local-addend-foo.s: Likewise.
|
|
|
|
|
* ld-aarch64/emit-relocs-local-addend.d: New testcase.
|
|
|
|
|
* ld-aarch64/local-addend-r.d: Likewise.
|
|
|
|
|
|
2014-07-08 05:54:06 +00:00
|
|
|
|
2014-07-08 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ld-powerpc/defsym.s, * ld-powerpc/defsym.d: New test.
|
|
|
|
|
* ld-powerpc/powerpc.exp: Run it.
|
|
|
|
|
|
2014-07-05 02:35:01 +00:00
|
|
|
|
2014-07-08 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 17112
|
|
|
|
|
* ld-plugin/lto.exp: When building liblti-11.a, pass
|
|
|
|
|
--plugin path_to_gcc/liblto_plugin.so to ar.
|
|
|
|
|
|
2014-07-07 14:12:45 +00:00
|
|
|
|
2014-07-07 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* lib/ld-lib.exp (check_lto_shared_available): Reinstate compiler
|
|
|
|
|
check here too.
|
|
|
|
|
|
2014-07-07 13:41:10 +00:00
|
|
|
|
2014-07-07 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* lib/ld-lib.exp (check_lto_available): Check that a compiler is
|
|
|
|
|
available before testing for LTO support.
|
|
|
|
|
|
2014-07-07 04:07:16 +00:00
|
|
|
|
2014-07-07 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* config/default.exp: Don't make tmpdir/gas. Put as symlink into
|
|
|
|
|
tmpdir/ld.
|
|
|
|
|
(gcc_gas_flag, gcc_ld_flag): Delete.
|
|
|
|
|
(gcc_B_opt, ld_L_opt): New globals.
|
|
|
|
|
ld-elf/shared.exp: Remove all refs to gcc_gas_flag and gcc_ld_flag.
|
|
|
|
|
ld-plugin/lto.exp: Likewise.
|
|
|
|
|
lib/ld-lib.exp (run_host_cmd): Add gcc_B_opt and ld_L_opt here.
|
|
|
|
|
(ld_simple_link): Remove -B handling now that this is done in
|
|
|
|
|
run_host_cmd. Simplify.
|
|
|
|
|
(default_ld_compile): Simplify.
|
|
|
|
|
(check_lto_available): Use run_host_cmd_yesno.
|
|
|
|
|
(check_lto_shared_available): Likewise.
|
|
|
|
|
|
2014-07-05 02:29:53 +00:00
|
|
|
|
2014-07-05 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* lib/ld-lib.exp (run_ld_link_tests): Stop after assembling objects
|
|
|
|
|
if binfile is empty.
|
|
|
|
|
(run_ld_link_exec_tests, run_cc_link_tests): Likewise. Tidy
|
|
|
|
|
status checks.
|
|
|
|
|
* ld-plugin/lto.exp: Don't use libdummy.a trick to compile objects.
|
|
|
|
|
Instead use an empty output file.
|
|
|
|
|
|
2014-07-03 07:02:45 +00:00
|
|
|
|
2014-07-03 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ld-elf/pr17068.s: New.
|
|
|
|
|
* ld-elf/pr17068a.s: New.
|
|
|
|
|
* ld-elf/pr17068b.s: New.
|
|
|
|
|
* ld-elf/pr17068c.s: New.
|
|
|
|
|
* ld-elf/pr17068d.s: New.
|
|
|
|
|
* ld-elf/pr17068e.s: New.
|
|
|
|
|
* ld-elf/pr17068ez.s: New.
|
|
|
|
|
* ld-elf/elf.exp: Run new test.
|
|
|
|
|
|
2014-07-02 05:37:18 +00:00
|
|
|
|
2014-07-02 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ld-powerpc/ambiguousv1.d: Match symbol table too.
|
|
|
|
|
* ld-powerpc/ambiguousv2.d: Likewise.
|
|
|
|
|
* ld-powerpc/ambiguousv1b.d: New.
|
|
|
|
|
* ld-powerpc/ambiguousv2b.d: New.
|
|
|
|
|
* ld-powerpc/powerpc.exp: Run new tests.
|
|
|
|
|
|
2014-06-25 14:57:45 +00:00
|
|
|
|
2014-06-25 Kyle McMartin <kyle@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ld-arm/tls-gdierelax2.d: Fix expected offsets.
|
|
|
|
|
|
2014-06-16 14:49:07 +00:00
|
|
|
|
2014-06-16 Will Newton <will.newton@linaro.org>
|
|
|
|
|
|
|
|
|
|
* ld-arm/arm-elf.exp: Add ifunc-gdesc test.
|
|
|
|
|
* ld-arm/ifunc-gdesc.r: New file.
|
|
|
|
|
* ld-arm/ifunc-gdesc.s: Likewise.
|
|
|
|
|
* ld-arm/ifunc-gdesc.ver: Likewise.
|
|
|
|
|
|
2014-06-09 14:04:01 +00:00
|
|
|
|
2014-06-09 Ryan Mansfield <rmansfield@qnx.com>
|
|
|
|
|
|
2014-10-04 06:23:58 +00:00
|
|
|
|
* config/default.exp (GASP): Remove.
|
2014-06-09 14:04:01 +00:00
|
|
|
|
|
Support fusion for ELFv2 stubs
Power8 fuses addis,addi and addis,ld sequences when the target of the
addis is the same as the addi/ld. Thus
addis r12,r2,xxx@ha
addi r12,r12,xxx@l / ld r12,xxx@l(r12)
is faster than
addis r11,r2,xxx@ha
addi r12,r11,xxx@l / ld r12,xxx@l(r11)
So use the form that allows fusion in plt call and branch stubs.
bfd/
* elf64-ppc.c (ADDIS_R12_R2): Define.
(build_plt_stub): Support fusion on ELFv2 stub.
(ppc_build_one_stub): Likewise for plt branch stubs.
gold/
* powerpc.cc (addis_12_2): Define.
(Stub_table::do_write): Support fusion on ELFv2 stubs.
ld/testsuite/
* ld-powerpc/elfv2exe.d: Update for changed plt call stubs.
gdb/
* ppc64-tdep.c (ppc64_standard_linkage8): New.
(ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
2014-06-03 01:25:29 +00:00
|
|
|
|
2014-06-03 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ld-powerpc/elfv2exe.d: Update for changed plt call stubs.
|
|
|
|
|
|
2014-05-27 11:37:50 +00:00
|
|
|
|
2014-05-28 Matthew Fortune <matthew.fortune@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* lib/ld-lib.exp: Add objcopy_objects command to run_dump_test.
|
|
|
|
|
This allows each input object to be optionally run through
|
|
|
|
|
objcopy before linking.
|
|
|
|
|
|
2014-05-16 14:22:58 +00:00
|
|
|
|
2014-05-20 Will Newton <will.newton@linaro.org>
|
|
|
|
|
|
|
|
|
|
* ld-shared/shared.exp: Mark non-PIC shared object tests
|
|
|
|
|
as xfail on aarch64.
|
|
|
|
|
|
2014-05-19 06:49:55 +00:00
|
|
|
|
2014-05-19 Andreas Tobler <andreast@fgznet.ch>
|
|
|
|
|
|
|
|
|
|
* ld-elf/shared.exp: Introduce the extralibs variable to control
|
|
|
|
|
the libraries to be linked. Don't link -ldl on *-*-freebsd*.
|
|
|
|
|
|
|
|
|
|
* ld-bootstrap/bootstrap.exp: Do not add -ldl to the extralibs on
|
|
|
|
|
*-*-freebsd*.
|
|
|
|
|
|
2014-05-10 00:50:01 +00:00
|
|
|
|
2014-05-10 Hans-Peter Nilsson <hp@bitrange.com>
|
|
|
|
|
|
|
|
|
|
* ld-mmix/wrap1.d, ld-mmix/wrap1a.s, ld-mmix/wrap1b.s,
|
|
|
|
|
ld-mmix/wrap1c.s, ld-mmix/wrap2.d, ld-mmix/wrap3.d,
|
|
|
|
|
ld-mmix/wrap3a.s, ld-mmix/wrap3b.s, ld-mmix/wrap4.d: New
|
|
|
|
|
tests.
|
|
|
|
|
|
2014-05-09 17:58:00 +00:00
|
|
|
|
2014-05-09 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* ld-x86-64/tlsbin.dd: Replace data32 with data16.
|
|
|
|
|
* ld-x86-64/tlsdesc-nacl.pd: Likewise.
|
|
|
|
|
* ld-x86-64/tlsgdesc.dd: Likewise.
|
|
|
|
|
* ld-x86-64/tlsld1.dd: Likewise.
|
|
|
|
|
* ld-x86-64/tlsld3.dd: Likewise.
|
|
|
|
|
* ld-x86-64/tlspic.dd: Likewise.
|
|
|
|
|
|
2013-05-06 17:43:21 +00:00
|
|
|
|
2014-05-02 Max Filippov <jcmvbkbc@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ld-xtensa/diff_overflow.exp, * ld-xtensa/diff_overflow1.s,
|
|
|
|
|
* ld-xtensa/diff_overflow2.s: Add test for DIFF* relocation
|
|
|
|
|
signedness and overflow checking.
|
|
|
|
|
|
2014-05-01 22:31:58 +00:00
|
|
|
|
2014-05-01 Hans-Peter Nilsson <hp@bitrange.com>
|
|
|
|
|
|
|
|
|
|
* ld-mmix/sec-11.d, ld-mmix/sec-11.ld, ld-mmix/sec-10.s,
|
|
|
|
|
ld-mmix/sec-10.d, ld-mmix/b-offlocmis.s, ld-mmix/sec-12.d: New
|
|
|
|
|
tests.
|
|
|
|
|
* ld-mmix/b-offloc.s: Correct address in comment.
|
|
|
|
|
|
2014-04-04 14:08:50 +00:00
|
|
|
|
2014-04-23 Will Newton <will.newton@linaro.org>
|
|
|
|
|
|
|
|
|
|
* ld-arm/arm-no-rel-plt.ld: Remove OUTPUT_FORMAT and
|
|
|
|
|
SEARCH_DIR commands.
|
|
|
|
|
* ld-arm/arm-rel32.d: Update regexps to allow test to
|
|
|
|
|
pass on armeb-linux-eabi configuration.
|
|
|
|
|
* ld-arm/data-only-map.d: Likewise.
|
|
|
|
|
* ld-arm/fix-arm1176-off.d: Likewise.
|
|
|
|
|
* ld-arm/fix-arm1176-on.d: Likewise.
|
|
|
|
|
* ld-arm/ifunc-1.gd: Likewise.
|
|
|
|
|
* ld-arm/ifunc-10.gd: Likewise.
|
|
|
|
|
* ld-arm/ifunc-11.gd: Likewise.
|
|
|
|
|
* ld-arm/ifunc-12.gd: Likewise.
|
|
|
|
|
* ld-arm/ifunc-13.gd: Likewise.
|
|
|
|
|
* ld-arm/ifunc-14.gd: Likewise.
|
|
|
|
|
* ld-arm/ifunc-15.gd: Likewise.
|
|
|
|
|
* ld-arm/ifunc-16.gd: Likewise.
|
|
|
|
|
* ld-arm/ifunc-17.gd: Likewise.
|
|
|
|
|
* ld-arm/ifunc-2.gd: Likewise.
|
|
|
|
|
* ld-arm/ifunc-3.gd: Likewise.
|
|
|
|
|
* ld-arm/ifunc-4.gd: Likewise.
|
|
|
|
|
* ld-arm/ifunc-5.gd: Likewise.
|
|
|
|
|
* ld-arm/ifunc-6.gd: Likewise.
|
|
|
|
|
* ld-arm/ifunc-7.gd: Likewise.
|
|
|
|
|
* ld-arm/ifunc-8.gd: Likewise.
|
|
|
|
|
* ld-arm/ifunc-9.gd: Likewise.
|
|
|
|
|
* ld-arm/jump-reloc-veneers-long.d: Likewise.
|
|
|
|
|
* ld-arm/reloc-boundaries.d: Likewise.
|
|
|
|
|
|
2014-04-22 17:22:39 +00:00
|
|
|
|
2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/16846
|
|
|
|
|
* ld-plugin/lto.exp (lto_link_tests): Add tests for PR ld/16846.
|
|
|
|
|
* ld-plugin/pr16846a.c: New file.
|
|
|
|
|
* ld-plugin/pr16846b.c: Likewise.
|
|
|
|
|
* ld-plugin/pr16846c.c: Likewise.
|
|
|
|
|
|
2014-04-22 14:57:47 +00:00
|
|
|
|
2014-04-22 Christian Svensson <blue@cmd.nu>
|
|
|
|
|
|
|
|
|
|
* ld-discard/extern.d: Remove openrisc and or32 support. Add
|
|
|
|
|
support for or1k.
|
|
|
|
|
* ld-discard/start.d: Likewise.
|
|
|
|
|
* ld-discard/static.d: Likewise.
|
|
|
|
|
* ld-elf/group1.d: Likewise.
|
|
|
|
|
* ld-elf/group3b.d: Likewise.
|
|
|
|
|
* ld-elf/group8a.d: Likewise.
|
|
|
|
|
* ld-elf/group8b.d: Likewise.
|
|
|
|
|
* ld-elf/group9a.d: Likewise.
|
|
|
|
|
* ld-elf/group9b.d: Likewise.
|
|
|
|
|
* ld-elf/linkonce2.d: Likewise.
|
|
|
|
|
* ld-elf/merge.d: Likewise.
|
|
|
|
|
* ld-elf/merge2.d: Likewise.
|
|
|
|
|
* ld-elf/orphan-region.d: Likewise.
|
|
|
|
|
* ld-elf/orphan.d: Likewise.
|
|
|
|
|
* ld-elf/orphan3.d: Likewise.
|
|
|
|
|
* ld-elf/pr12851.d: Likewise.
|
|
|
|
|
* ld-elf/pr12975.d: Likewise.
|
|
|
|
|
* ld-elf/pr13177.d: Likewise.
|
|
|
|
|
* ld-elf/pr13195.d: Likewise.
|
|
|
|
|
* ld-elf/pr349.d: Likewise.
|
|
|
|
|
* ld-elf/sec64k.exp: Likewise.
|
|
|
|
|
* ld-elf/warn1.d: Likewise.
|
|
|
|
|
* ld-elf/warn2.d: Likewise.
|
|
|
|
|
* ld-elf/warn3.d: Likewise.
|
|
|
|
|
* ld-scripts/weak.exp: Likewise.
|
|
|
|
|
* lib/ld-lib.exp: Likewise.
|
|
|
|
|
|
2014-04-17 13:13:44 +00:00
|
|
|
|
2014-04-17 Kwok Cheung Yeung <kcy@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* ld-mips-elf/elf-rel-xgot-n32.d: Update for new GOT layout.
|
|
|
|
|
* ld-mips-elf/elf-rel-xgot-n32-embed.d: Likewise.
|
|
|
|
|
* ld-mips-elf/elf-rel-xgot-n64.d: Likewise.
|
|
|
|
|
* ld-mips-elf/elf-rel-xgot-n64-embed.d: Likewise.
|
|
|
|
|
* ld-mips-elf/elf-rel-xgot-n64-linux.d: Likewise.
|
|
|
|
|
|
2014-04-15 16:46:07 +00:00
|
|
|
|
2014-04-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
|
|
|
|
|
|
|
|
|
|
* ld-aarch64/tls-relax-gdesc-ie.s (var): Adjust test case
|
|
|
|
|
to include all 5 bits of LDR destination register.
|
|
|
|
|
|
2014-04-10 15:50:33 +00:00
|
|
|
|
2014-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
|
|
|
|
|
|
|
|
|
|
* ld-avr/norelax_diff.d: New testcase.
|
|
|
|
|
* ld-avr/relax_diff.d: Likewise.
|
|
|
|
|
* ld-avr/relax.s: Likewise.
|
|
|
|
|
|
2014-04-05 20:03:44 +00:00
|
|
|
|
2014-04-05 Andreas Schwab <schwab@linux-m68k.org>
|
|
|
|
|
|
|
|
|
|
* ld-plugin/lto.exp: Make "-Wp," prefix optional when filtering
|
|
|
|
|
out _FORTIFY_SOURCE.
|
|
|
|
|
("Build libdummy.a 9", "PR ld/12696"): Mark as c++.
|
|
|
|
|
|
2014-04-04 01:15:03 +00:00
|
|
|
|
2014-04-04 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ld-scripts/fill.d, * ld-scripts/fill.t, * ld-scripts/fill_0.s,
|
|
|
|
|
* ld-scripts/fill_1.s, * ld-scripts/fill_2.s: New test.
|
|
|
|
|
* ld-scripts/data.exp: Run it.
|
|
|
|
|
|
2014-03-31 11:58:48 +00:00
|
|
|
|
2014-03-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
|
|
|
|
|
|
|
|
|
|
* ld-aarch64/eh-frame.d: Adjust FDE pc address.
|
|
|
|
|
|
2014-03-26 19:18:59 +00:00
|
|
|
|
2014-03-27 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/16756
|
|
|
|
|
* ld-plugin/lto.exp: Expect filename and line number for PR
|
|
|
|
|
ld/12760 test.
|
|
|
|
|
|
2014-03-27 13:54:03 +00:00
|
|
|
|
2014-03-27 Yury Gribov <y.gribov@samsung.com>
|
2014-03-26 19:18:59 +00:00
|
|
|
|
Pavel Fedin <p.fedin@samsung.com>
|
2014-03-27 13:54:03 +00:00
|
|
|
|
|
2014-03-26 19:18:59 +00:00
|
|
|
|
* ld-arm/arm-app-abs32.d: Update expected disassembly, taking into
|
2014-03-27 13:54:03 +00:00
|
|
|
|
account the pretty printing of PLT entries.
|
2014-03-26 19:18:59 +00:00
|
|
|
|
* ld-arm/arm-app.d: Likewise.
|
|
|
|
|
* ld-arm/arm-lib-plt32.d: Likewise.
|
|
|
|
|
* ld-arm/arm-lib.d: Likewise.
|
|
|
|
|
* ld-arm/armthumb-lib.d: Likewise.
|
|
|
|
|
* ld-arm/cortex-a8-fix-b-plt.d: Likewise.
|
|
|
|
|
* ld-arm/cortex-a8-fix-bcc-plt.d: Likewise.
|
|
|
|
|
* ld-arm/cortex-a8-fix-bl-plt.d: Likewise.
|
|
|
|
|
* ld-arm/cortex-a8-fix-bl-rel-plt.d: Likewise.
|
|
|
|
|
* ld-arm/cortex-a8-fix-blx-plt.d: Likewise.
|
|
|
|
|
* ld-arm/farcall-mixed-app-v5.d: Likewise.
|
|
|
|
|
* ld-arm/farcall-mixed-app.d: Likewise.
|
|
|
|
|
* ld-arm/farcall-mixed-lib-v4t.d: Likewise.
|
|
|
|
|
* ld-arm/farcall-mixed-lib.d: Likewise.
|
|
|
|
|
* ld-arm/ifunc-10.dd: Likewise.
|
|
|
|
|
* ld-arm/ifunc-14.dd: Likewise.
|
|
|
|
|
* ld-arm/ifunc-15.dd: Likewise.
|
|
|
|
|
* ld-arm/ifunc-3.dd: Likewise.
|
|
|
|
|
* ld-arm/ifunc-4.dd: Likewise.
|
|
|
|
|
* ld-arm/ifunc-7.dd: Likewise.
|
|
|
|
|
* ld-arm/ifunc-8.dd: Likewise.
|
|
|
|
|
* ld-arm/ifunc-9.dd: Likewise.
|
|
|
|
|
* ld-arm/long-plt-format.d: Likewise.
|
|
|
|
|
* ld-arm/mixed-app-v5.d: Likewise.
|
|
|
|
|
* ld-arm/mixed-app.d: Likewise.
|
|
|
|
|
* ld-arm/mixed-lib.d: Likewise.
|
|
|
|
|
* ld-arm/thumb2-bl-undefweak.d: Likewise.
|
|
|
|
|
* ld-arm/thumb2-bl-undefweak1.d: Likewise.
|
2014-03-27 13:54:03 +00:00
|
|
|
|
|
Referencing a function's address on PowerPC64 ELFv2
ELFv2 needs to create plt entries in a non-PIC executable for an
address reference to a function defined in a shared object. It's
possible that an object file has no features that distinguish it as
ELFv1 or ELFv2, eg. an object only containing data. Such files need
to be handled like those that are known to be ELFv2.
However, this unnecessarily creates plt entries for the analogous
ELFv1 case, so arrange to set output abi version earlier, and use the
output abi version to further distinguish ambiguous input files.
bfd/
* elf64-ppc.c (ppc64_elf_check_relocs): Account for possibly
needed plt entries when taking the address of functions for
abiversion == 0 (ie. unknown) as well as abiversion == 2.
Move opd setup and abiversion checks to..
(ppc64_elf_before_check_relocs): ..here. Renamed from
ppc64_elf_process_dot_syms. Set output abiversion from input and
input abiversion from output, if either is not set.
(ppc64_elf_merge_private_bfd_data): Don't merge flags here.
(elf_backend_check_directives): Update.
ld/testsuite/
* ld-powerpc/startv1.s, * ld-powerpc/startv2.s, * ld-powerpc/funref.s,
* ld-powerpc/funv1.s, * ld-powerpc/funv2.s,
* ld-powerpc/ambiguousv1.d, * ld-powerpc/ambiguousv2.d: New test files.
* ld-powerpc/powerpc.exp: Run new tests.
2014-03-25 04:42:48 +00:00
|
|
|
|
2014-03-26 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ld-powerpc/startv1.s, * ld-powerpc/startv2.s, * ld-powerpc/funref.s,
|
|
|
|
|
* ld-powerpc/funv1.s, * ld-powerpc/funv2.s,
|
|
|
|
|
* ld-powerpc/ambiguousv1.d, * ld-powerpc/ambiguousv2.d: New test files.
|
|
|
|
|
* ld-powerpc/powerpc.exp: Run new tests.
|
|
|
|
|
|
2014-03-14 11:45:32 +00:00
|
|
|
|
2014-03-25 Will Newton <will.newton@linaro.org>
|
|
|
|
|
|
|
|
|
|
* ld-aarch64/aarch64-elf.exp: Add relasz dump test.
|
|
|
|
|
* ld-aarch64/relasz.d: New file.
|
|
|
|
|
* ld-aarch64/relasz.s: Likewise.
|
|
|
|
|
|
gas/
* config/tc-mips.h (DIFF_EXPR_OK, CFI_DIFF_EXPR_OK): Define.
* config/tc-mips.c (md_pcrel_from): Remove error message.
(md_apply_fix): Convert PC-relative BFD_RELOC_32s to
BFD_RELOC_32_PCREL. Report a specific error message for unhandled
PC-relative expressions. Handle BFD_RELOC_8.
gas/testsuite/
* gas/all/gas.exp: Remove XFAIL of forward.d for MIPS.
* gas/mips/pcrel-1.s, gas/mips/pcrel-1.d, gas/mips/pcrel-2.s,
gas/mips/pcrel-2.d, gas/mips/pcrel-3.s, gas/mips/pcrel-3.l,
gas/mips/pcrel-4.s, gas/mips/pcrel-4-32.d, gas/mips/pcrel-4-n32.d,
gas/mips/pcrel-4-64.d: New tests.
* gas/mips/mips.exp: Run them.
* gas/mips/lui-2.l: Tweak error message for line 7.
ld/testsuite/
* ld-elf/merge.d: Remove MIPS XFAIL.
2014-03-20 21:18:43 +00:00
|
|
|
|
2014-03-20 Richard Sandiford <rdsandiford@googlemail.com>
|
|
|
|
|
|
|
|
|
|
* ld-elf/merge.d: Remove MIPS XFAIL.
|
|
|
|
|
|
2014-01-10 14:38:58 +00:00
|
|
|
|
2014-03-20 Will Newton <will.newton@linaro.org>
|
|
|
|
|
|
|
|
|
|
* ld-arm/ifunc-14.rd: Update symbol values.
|
|
|
|
|
|
2014-03-19 12:21:39 +00:00
|
|
|
|
2014-03-19 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* config/default.exp (ASFLAGS): For the RX target add:
|
|
|
|
|
-muse-conventional-section-names.
|
|
|
|
|
|
2014-03-14 13:40:14 +00:00
|
|
|
|
2014-03-15 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ld-powerpc/vle-reloc-3.d: Remove addresses.
|
|
|
|
|
|
2014-03-14 04:31:53 +00:00
|
|
|
|
2014-03-14 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ld-powerpc/vle.ld: Place .PPC.EMB.sdata0 within 32k of 0.
|
|
|
|
|
* ld-powerpc/vle-reloc-3.d: Update.
|
|
|
|
|
|
2014-03-06 17:46:15 +00:00
|
|
|
|
2014-03-06 Roland McGrath <mcgrathr@google.com>
|
|
|
|
|
|
|
|
|
|
* ld-arm/gc-hidden-1.d: Remove target, add not-target to match
|
|
|
|
|
other ELF-only tests in this directory. Loosen regexps so they
|
|
|
|
|
don't care what the exact addresses are.
|
|
|
|
|
|
2014-03-06 17:44:25 +00:00
|
|
|
|
2014-03-06 Roland McGrath <mcgrathr@google.com>
|
|
|
|
|
|
|
|
|
|
* ld-arm/arm-elf.exp (armelftests_common): Move long-plt case ...
|
|
|
|
|
(armelftests_nonacl): ... here.
|
|
|
|
|
|
2014-03-05 11:46:15 +00:00
|
|
|
|
2014-03-05 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
Update copyright years.
|
|
|
|
|
|
2014-03-05 09:27:39 +00:00
|
|
|
|
2014-03-05 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ld-powerpc/elfv2-2a.s, ld-powerpc/elfv2-2b.s: New files.
|
|
|
|
|
* ld-powerpc/elfv2-2exe.d, ld-powerpc/elfv2-2so.d: New files.
|
|
|
|
|
* ld-powerpc/powerpc.exp: Run new test.
|
|
|
|
|
|
2014-03-01 11:25:26 +00:00
|
|
|
|
2014-03-03 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ld-scripts/phdrs2.exp: Correct copyright punctuation.
|
|
|
|
|
* ld-v850/v850.exp: Correct copyright typo.
|
|
|
|
|
|
2014-03-01 11:19:53 +00:00
|
|
|
|
2014-03-01 Yuri Gribov <y.gribov@samsung.com>
|
|
|
|
|
|
|
|
|
|
* ld-arm/long-plt-format.d, ld-arm/arm-elf.exp: Adjust for arm-eabi.
|
|
|
|
|
|
2014-02-27 14:35:37 +00:00
|
|
|
|
2014-02-27 Yuri Gribov <y.gribov@samsung.com>
|
|
|
|
|
|
|
|
|
|
* ld-arm/long-plt-format.s: New test case.
|
|
|
|
|
* ld-arm/long-plt-format.d: Expected disassembly.
|
|
|
|
|
* ld-arm/arm-elf.exp: Run the new test.
|
|
|
|
|
|
2014-02-27 14:09:29 +00:00
|
|
|
|
2014-02-27 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ld-pe/longsecn-1.d: Allow for extra sections.
|
|
|
|
|
* ld-pe/longsecn-2.d: Likewise.
|
|
|
|
|
* ld-pe/longsecn.d: Likewise.
|
|
|
|
|
* ld-pe/secrel.d: Likewise.
|
|
|
|
|
|
2014-02-20 23:48:01 +00:00
|
|
|
|
2014-02-21 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ld-bootstrap/bootstrap.exp: Add ppc476 workaround test.
|
|
|
|
|
* ld-bootstrap/ppc476.t: New file.
|
|
|
|
|
|
Create the second PLT for BND relocations
Intel MPX introduces 4 bound registers, which will be used for parameter
passing in x86-64. Bound registers are cleared by branch instructions.
Branch instructions with BND prefix will keep bound register contents.
This leads to 2 requirements to 64-bit MPX run-time:
1. Dynamic linker (ld.so) should save and restore bound registers during
symbol lookup.
2. Change the current 16-byte PLT0:
ff 35 08 00 00 00 pushq GOT+8(%rip)
ff 25 00 10 00 jmpq *GOT+16(%rip)
0f 1f 40 00 nopl 0x0(%rax)
and 16-byte PLT1:
ff 25 00 00 00 00 jmpq *name@GOTPCREL(%rip)
68 00 00 00 00 pushq $index
e9 00 00 00 00 jmpq PLT0
which clear bound registers, to preserve bound registers.
We use 2 new relocations:
to mark branch instructions with BND prefix.
When linker sees any R_X86_64_PC32_BND or R_X86_64_PLT32_BND relocations,
it switches to a different PLT0:
ff 35 08 00 00 00 pushq GOT+8(%rip)
f2 ff 25 00 10 00 bnd jmpq *GOT+16(%rip)
0f 1f 00 nopl (%rax)
to preserve bound registers for symbol lookup and it also creates an
external PLT section, .pl.bnd. Linker will create a BND PLT1 entry
in .plt:
68 00 00 00 00 pushq $index
f2 e9 00 00 00 00 bnd jmpq PLT0
0f 1f 44 00 00 nopl 0(%rax,%rax,1)
and a 8-byte BND PLT entry in .plt.bnd:
f2 ff 25 00 00 00 00 bnd jmpq *name@GOTPCREL(%rip)
90 nop
Otherwise, linker will create a legacy PLT1 entry in .plt:
68 00 00 00 00 pushq $index
e9 00 00 00 00 jmpq PLT0
66 0f 1f 44 00 00 nopw 0(%rax,%rax,1)
and a 8-byte legacy PLT in .plt.bnd:
ff 25 00 00 00 00 jmpq *name@GOTPCREL(%rip)
66 90 xchg %ax,%ax
The initial value of the GOT entry for "name" will be set to the the
"pushq" instruction in the corresponding entry in .plt. Linker will
resolve reference of symbol "name" to the entry in the second PLT,
.plt.bnd.
Prelink stores the offset of pushq of PLT1 (plt_base + 0x10) in GOT[1]
and GOT[1] is stored in GOT[3]. We can undo prelink in GOT by computing
the corresponding the pushq offset with
GOT[1] + (GOT offset - &GOT[3]) * 2
Since for each entry in .plt except for PLT0 we create a 8-byte entry in
.plt.bnd, there is extra 8-byte per PLT symbol.
We also investigated the 16-byte entry for .plt.bnd. We compared the
8-byte entry vs the the 16-byte entry for .plt.bnd on Sandy Bridge.
There are no performance differences in SPEC CPU 2000/2006 as well as
micro benchmarks.
Pros:
No change to undo prelink in dynamic linker.
Only 8-byte memory overhead for each PLT symbol.
Cons:
Extra .plt.bnd section is needed.
Extra 8 byte for legacy branches to PLT.
GDB is unware of the new layout of .plt and .plt.bnd.
bfd/
* elf64-x86-64.c (elf_x86_64_bnd_plt0_entry): New.
(elf_x86_64_legacy_plt_entry): Likewise.
(elf_x86_64_bnd_plt_entry): Likewise.
(elf_x86_64_legacy_plt2_entry): Likewise.
(elf_x86_64_bnd_plt2_entry): Likewise.
(elf_x86_64_bnd_arch_bed): Likewise.
(elf_x86_64_link_hash_entry): Add has_bnd_reloc and plt_bnd.
(elf_x86_64_link_hash_table): Add plt_bnd.
(elf_x86_64_link_hash_newfunc): Initialize has_bnd_reloc and
plt_bnd.
(elf_x86_64_copy_indirect_symbol): Also copy has_bnd_reloc.
(elf_x86_64_check_relocs): Create the second PLT for Intel MPX
in 64-bit mode.
(elf_x86_64_allocate_dynrelocs): Handle the second PLT for IFUNC
symbols. Resolve call to the second PLT if it is created.
(elf_x86_64_size_dynamic_sections): Keep the second PLT section.
(elf_x86_64_relocate_section): Resolve PLT references to the
second PLT if it is created.
(elf_x86_64_finish_dynamic_symbol): Use BND PLT0 and fill the
second PLT entry for BND relocation.
(elf_x86_64_finish_dynamic_sections): Use MPX backend data if
the second PLT is created.
(elf_x86_64_get_synthetic_symtab): New.
(bfd_elf64_get_synthetic_symtab): Likewise. Undefine for NaCl.
ld/
* emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): New.
ld/testsuite/
* ld-x86-64/mpx.exp: Run bnd-ifunc-1 and bnd-plt-1.
* ld-x86-64/bnd-ifunc-1.d: New file.
* ld-x86-64/bnd-ifunc-1.s: Likewise.
* ld-x86-64/bnd-plt-1.d: Likewise.
2013-11-20 17:01:04 +00:00
|
|
|
|
2014-02-19 Igor Zamyatin <igor.zamyatin@intel.com>
|
|
|
|
|
H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* ld-x86-64/mpx.exp: Run bnd-ifunc-1 and bnd-plt-1.
|
|
|
|
|
* ld-x86-64/bnd-ifunc-1.d: New file.
|
|
|
|
|
* ld-x86-64/bnd-ifunc-1.s: Likewise.
|
|
|
|
|
* ld-x86-64/bnd-plt-1.d: Likewise.
|
|
|
|
|
|
2014-02-19 00:23:48 +00:00
|
|
|
|
2014-02-18 Jack Carter <jack.carter@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* ld-mips-elf/pic-and-nonpic-3a.sd: Check DYNAMIC segment flags.
|
|
|
|
|
|
2014-02-16 08:01:29 +00:00
|
|
|
|
2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* ld-elfweak/elfweak.exp (setup_xfail_gnu_hurd): Remove function
|
|
|
|
|
and all usage of it.
|
|
|
|
|
|
2014-02-06 17:44:25 +00:00
|
|
|
|
2014-02-10 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR gold/16530
|
|
|
|
|
* ld-elf/dynamic-1.c: New file.
|
|
|
|
|
* ld-elf/dynamic-1.rd: Likewise.
|
|
|
|
|
* ld-elf/dynamic-1.syms: Likewise.
|
|
|
|
|
|
|
|
|
|
* ld-elf/shared.exp (build_tests): Add dynamic-1.
|
|
|
|
|
|
2014-02-02 14:39:39 +00:00
|
|
|
|
2014-02-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
|
|
|
|
|
|
|
|
|
* ld-scripts/rgn-at9.d: New file.
|
|
|
|
|
* ld-scripts/rgn-at9.t: Likewise.
|
|
|
|
|
* ld-scripts/rgn-at10.d: Likewise.
|
|
|
|
|
* ld-scripts/rgn-at10.s: Likewise.
|
|
|
|
|
* ld-scripts/rgn-at10.t: Likewise.
|
|
|
|
|
* ld-scripts/rgn-at11.d: Likewise.
|
|
|
|
|
* ld-scripts/rgn-at11.t: Likewise.
|
|
|
|
|
|
Nios II CALL26 linker relaxation
2014-01-30 Sandra Loosemore <sandra@codesourcery.com>
bfd/
* bfd-in2.h: Update from reloc.c.
* elf32-nios2.c: Include elf32-nios2.h.
(elf_nios2_howto_table_rel): Add entry for R_NIOS2_CALL26_NOAT.
(nios2_reloc_map): Likewise.
(enum elf32_nios2_stub_type): Declare.
(struct elf32_nios2_stub_hash_entry): Declare.
(nios2_stub_hash_entry, nios2_stub_hash_lookup): New macros.
(struct elf32_nios2_link_hash_entry): Add hsh_cache field.
(struct elf32_nios2_link_hash_table): Add new fields bstab,
stub_bfd, add_stub_section, layout_sections_again, stub_group,
bfd_count, top_index, input_list, all_local_syms.
(nios2_call26_stub_entry): New.
(nios2_elf32_install_imm16): Move up in file.
(nios2_elf32_install_data): Move up in file.
(hiadj): Move up in file.
(stub_hash_newfunc): New.
(link_hash_newfunc): Initialize hsh_cache field.
(STUB_SUFFIX): New.
(nios2_stub_name): New.
(nios2_get_stub_entry): New.
(nios2_add_stub): New.
(nios2_elf32_setup_section_lists): New.
(nios2_elf32_next_input_section): New.
(CALL26_SEGMENT): New.
(MAX_STUB_SECTION_SIZE): New.
(group_sections): New.
(nios2_type_of_stub): New.
(nios2_build_one_stub): New.
(nios2_size_one_stub): New.
(get_local_syms): New.
(nios2_elf32_size_stubs): New.
(nios2_elf32_build_stubs): New.
(nios2_elf32_do_call26_relocate): Correct CALL26 overflow test.
(nios2_elf32_relocate_section): Handle R_NIOS2_CALL26_NOAT. Add
trampolines for R_NIOS2_CALL26 stubs.
(nios2_elf32_check_relocs): Handle R_NIOS2_CALL26_NOAT.
(nios2_elf32_gc_sweep_hook): Likewise.
(nios2_elf32_link_hash_table_create): Initialize the stub hash table.
(nios2_elf32_link_hash_table_free): New.
(bfd_elf32_bfd_link_hash_table_free): Define.
* elf32-nios2.h: New file.
* libbfd.h: Update from reloc.c.
* reloc.c (BFD_RELOC_NIOS2_CALL26_NOAT): New.
gas/
* config/tc-nios2.c (md_apply_fix): Handle BFD_RELOC_NIOS2_CALL26_NOAT.
(nios2_assemble_args_m): Likewise.
(md_assemble): Likewise.
gas/testsuite/
* gas/nios2/call26_noat.d: New.
* gas/nios2/call26_noat.s: New.
* gas/nios2/call_noat.d: New.
* gas/nios2/call_noat.s: New.
include/elf/
* nios2.h (elf_nios2_reloc_type): Add R_NIOS2_CALL26_NOAT.
ld/
* Makefile.am (enios2elf.c, enios2linux.c): Update dependencies.
* Makefile.in: Regenerated.
* emulparams/nios2elf.sh (EXTRA_EM_FILE): Set.
* emulparams/nios2linux.sh (EXTRA_EM_FILE): Set.
* emultempl/nios2elf.em: New file.
* gen-doc.texi (NIOSII): Set.
* ld.texinfo (NIOSII): Set.
ld/testsuite/
* ld-nios2/relax_call26.s: New.
* ld-nios2/relax_call26_boundary.ld: New.
* ld-nios2/relax_call26_boundary.s: New.
* ld-nios2/relax_call26_boundary_c8.d: New.
* ld-nios2/relax_call26_boundary_cc.d: New.
* ld-nios2/relax_call26_boundary_d0.d: New.
* ld-nios2/relax_call26_boundary_d4.d: New.
* ld-nios2/relax_call26_boundary_d8.d: New.
* ld-nios2/relax_call26_boundary_dc.d: New.
* ld-nios2/relax_call26_boundary_f0.d: New.
* ld-nios2/relax_call26_boundary_f4.d: New.
* ld-nios2/relax_call26_boundary_f8.d: New.
* ld-nios2/relax_call26_boundary_fc.d: New.
* ld-nios2/relax_call26_cache.d: New.
* ld-nios2/relax_call26_cache.ld: New.
* ld-nios2/relax_call26_cache.s: New.
* ld-nios2/relax_call26_multi.d: New.
* ld-nios2/relax_call26_multi.ld: New.
* ld-nios2/relax_call26_norelax.d: New.
* ld-nios2/relax_call26_shared.d: New.
* ld-nios2/relax_call26_shared.ld: New.
2014-01-31 01:47:07 +00:00
|
|
|
|
2014-01-30 Sandra Loosemore <sandra@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* ld-nios2/relax_call26.s: New.
|
|
|
|
|
* ld-nios2/relax_call26_boundary.ld: New.
|
|
|
|
|
* ld-nios2/relax_call26_boundary.s: New.
|
|
|
|
|
* ld-nios2/relax_call26_boundary_c8.d: New.
|
|
|
|
|
* ld-nios2/relax_call26_boundary_cc.d: New.
|
|
|
|
|
* ld-nios2/relax_call26_boundary_d0.d: New.
|
|
|
|
|
* ld-nios2/relax_call26_boundary_d4.d: New.
|
|
|
|
|
* ld-nios2/relax_call26_boundary_d8.d: New.
|
|
|
|
|
* ld-nios2/relax_call26_boundary_dc.d: New.
|
|
|
|
|
* ld-nios2/relax_call26_boundary_f0.d: New.
|
|
|
|
|
* ld-nios2/relax_call26_boundary_f4.d: New.
|
|
|
|
|
* ld-nios2/relax_call26_boundary_f8.d: New.
|
|
|
|
|
* ld-nios2/relax_call26_boundary_fc.d: New.
|
|
|
|
|
* ld-nios2/relax_call26_cache.d: New.
|
|
|
|
|
* ld-nios2/relax_call26_cache.ld: New.
|
|
|
|
|
* ld-nios2/relax_call26_cache.s: New.
|
|
|
|
|
* ld-nios2/relax_call26_multi.d: New.
|
|
|
|
|
* ld-nios2/relax_call26_multi.ld: New.
|
|
|
|
|
* ld-nios2/relax_call26_norelax.d: New.
|
|
|
|
|
* ld-nios2/relax_call26_shared.d: New.
|
|
|
|
|
* ld-nios2/relax_call26_shared.ld: New.
|
|
|
|
|
|
2014-01-29 22:30:41 +00:00
|
|
|
|
2014-01-29 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* ld-elf/rdynamic-1.c: New file.
|
|
|
|
|
* ld-elf/rdynamic-1.rd: Likewise.
|
|
|
|
|
|
|
|
|
|
* ld-elf/shared.exp (build_tests): Add rdynamic-1.
|
|
|
|
|
|
2014-01-28 11:56:13 +00:00
|
|
|
|
2014-01-28 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR binutils/16317
|
|
|
|
|
* ld-tic6x/shlib-1.rd: Expect I attribute with RELA sections.
|
|
|
|
|
* ld-tic6x/shlib-1b.rd: Likewise.
|
|
|
|
|
* ld-tic6x/shlib-1r.rd: Likewise.
|
|
|
|
|
* ld-tic6x/shlib-1rb.rd: Likewise.
|
|
|
|
|
* ld-tic6x/shlib-app-1rd: Likewise.
|
|
|
|
|
* ld-tic6x/shlib-app-1b.rd: Likewise.
|
|
|
|
|
* ld-tic6x/shlib-app-1r.rd: Likewise.
|
|
|
|
|
* ld-tic6x/shlib-app-1rb.rd: Likewise.
|
|
|
|
|
* ld-tic6x/shlib-noindex.rd: Likewise.
|
|
|
|
|
* ld-tic6x/static-app-1.rd: Likewise.
|
|
|
|
|
* ld-tic6x/static-app-1b.rd: Likewise.
|
|
|
|
|
* ld-tic6x/static-app-1r.rd: Likewise.
|
|
|
|
|
* ld-tic6x/static-app-1rb.rd: Likewise.
|
|
|
|
|
PR binutils/16318
|
|
|
|
|
* ld-tic6x/tic6x.exp: Expect C6000 osabi value in relocatable
|
|
|
|
|
objects.
|
|
|
|
|
|
2014-01-24 18:01:56 +00:00
|
|
|
|
2014-01-24 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* ld-elf/pr16498a.s: Replace .align with .p2align.
|
|
|
|
|
|
2014-01-24 17:03:21 +00:00
|
|
|
|
2014-01-24 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/16498
|
|
|
|
|
* ld-elf/pr16498b.d: New file.
|
|
|
|
|
* ld-elf/pr16498b.t: Likewise.
|
|
|
|
|
|
2014-01-22 19:24:12 +00:00
|
|
|
|
2014-01-24 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/16498
|
|
|
|
|
* ld-elf/pr16498a.d: New file.
|
|
|
|
|
* ld-elf/pr16498a.s: Likewise.
|
|
|
|
|
* ld-elf/pr16498a.t: Likewise.
|
|
|
|
|
|
2014-01-22 02:21:19 +00:00
|
|
|
|
2014-01-22 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ld-scripts/pr14962-2.d: Correct target triple.
|
|
|
|
|
|
2014-01-22 01:13:03 +00:00
|
|
|
|
2014-01-22 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ld-shared/elf-offset.ld: Align end of .bss with canonical form
|
|
|
|
|
of ALIGN that allows an empty .bss to be removed.
|
|
|
|
|
* ld-arm/arm-dyn.ld: Likewise.
|
|
|
|
|
* ld-arm/arm-lib.ld: Likewise.
|
|
|
|
|
* ld-elfvsb/elf-offset.ld: Likewise.
|
|
|
|
|
* ld-mips-elf/mips-dyn.ld: Likewise.
|
|
|
|
|
* ld-mips-elf/mips-lib.ld: Likewise.
|
|
|
|
|
* ld-arm/arm-no-rel-plt.ld: Remove duplicate ALIGN.
|
|
|
|
|
* ld-powerpc/vle-multiseg-1.ld: Remove ALIGN at start of section.
|
|
|
|
|
ALIGN address of section instead.
|
|
|
|
|
* ld-powerpc/vle-multiseg-2.ld: Likewise.
|
|
|
|
|
* ld-powerpc/vle-multiseg-3.ld: Likewise.
|
|
|
|
|
* ld-powerpc/vle-multiseg-4.ld: Likewise.
|
|
|
|
|
* ld-powerpc/vle-multiseg-6.ld: Likewise.
|
|
|
|
|
* ld-scripts/empty-aligned.d: Check section headers not program
|
|
|
|
|
headers. Remove xfail and notarget.
|
|
|
|
|
* ld-scripts/empty-aligned.t: Use canonical ALIGN for end of .text2.
|
|
|
|
|
|
2014-01-21 23:42:43 +00:00
|
|
|
|
2014-01-21 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/16467
|
|
|
|
|
* ld-ifunc/dummy.c: New file.
|
|
|
|
|
* ld-ifunc/pr16467.out: Likewise.
|
|
|
|
|
* ld-ifunc/pr16467a.c: Likewise.
|
|
|
|
|
* ld-ifunc/pr16467a.map: Likewise.
|
|
|
|
|
* ld-ifunc/pr16467b.c: Likewise.
|
|
|
|
|
* ld-ifunc/pr16467b.map: Likewise.
|
|
|
|
|
* ld-ifunc/pr16467c.c: Likewise.
|
|
|
|
|
|
|
|
|
|
* ld-ifunc/ifunc.exp (run_cc_link_tests): New.
|
|
|
|
|
(run_ld_link_exec_tests): Run pr16467.
|
|
|
|
|
|
2014-01-21 13:33:48 +00:00
|
|
|
|
2014-01-21 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/2404
|
|
|
|
|
* ld-elf/shared.exp: Add a PIE test for PR ld/2404.
|
|
|
|
|
|
2014-01-20 12:50:47 +00:00
|
|
|
|
2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/2404
|
|
|
|
|
* ld-elf/pr2404.out: New file.
|
|
|
|
|
* ld-elf/pr2404a.c: Likewise.
|
|
|
|
|
* ld-elf/pr2404b.c: Likewise.
|
|
|
|
|
|
|
|
|
|
* ld-elf/shared.exp (build_tests): Build libpr2404a.so and
|
|
|
|
|
libpr2404b.a.
|
|
|
|
|
(run_tests): Run pr2404.
|
|
|
|
|
|
2014-01-20 10:58:42 +00:00
|
|
|
|
2014-01-20 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ld-scripts/pr14962-2.d,
|
|
|
|
|
* ld-scripts/pr14962-2.t: New test.
|
|
|
|
|
* ld-scripts/expr.exp: Run it.
|
|
|
|
|
|
2014-01-15 11:20:55 +00:00
|
|
|
|
2014-01-15 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ld-elf/ehdr_start-shared.d: New.
|
|
|
|
|
* ld-elf/ehdr_start-userdef.d: xfail frv.
|
|
|
|
|
* ld-elf/ehdr_start-weak.d: Likewise.
|
|
|
|
|
* ld-elf/ehdr_start.d: Likewise.
|
|
|
|
|
|
2014-01-14 13:09:22 +00:00
|
|
|
|
2014-01-14 Vidya Praveen <vidyapraveen@arm.com>
|
|
|
|
|
|
|
|
|
|
* lib/ld-lib.exp (default_ld_link): Remove support for ldflags.
|
|
|
|
|
(default_ld_simple_link): Likewise.
|
|
|
|
|
|
2014-01-10 10:41:46 +00:00
|
|
|
|
2014-01-10 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ld-x86-64/pr14207.d: Adjust.
|
|
|
|
|
|
2014-01-09 18:18:19 +00:00
|
|
|
|
2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* ld-elf/binutils.exp (binutils_test): Check if GNU_RELRO segment
|
|
|
|
|
is generated.
|
|
|
|
|
|
2014-01-09 17:01:53 +00:00
|
|
|
|
2014-01-09 Vidya Praveen <vidyapraveen@arm.com>
|
|
|
|
|
|
|
|
|
|
* lib/ld-lib.exp (check_lto_shared_available): New check.
|
|
|
|
|
* ld-plugin/lto.exp: Use check_lto_shared_available.
|
|
|
|
|
|
2013-12-12 18:35:47 +00:00
|
|
|
|
2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/14207
|
|
|
|
|
PR ld/16322
|
|
|
|
|
PR binutils/16323
|
|
|
|
|
* ld-elf/pr16322.d: New file.
|
|
|
|
|
* ld-elf/pr16322.s: Likewise.
|
|
|
|
|
|
|
|
|
|
* ld-x86-64/pr14207.d: Expect PT_GNU_RELRO segment.
|
|
|
|
|
|
2014-01-08 13:32:12 +00:00
|
|
|
|
For older changes see ChangeLog-2013
|
2004-01-02 11:16:21 +00:00
|
|
|
|
|
2014-01-08 13:32:12 +00:00
|
|
|
|
Copyright (C) 2014 Free Software Foundation, Inc.
|
2012-12-10 12:48:03 +00:00
|
|
|
|
|
|
|
|
|
Copying and distribution of this file, with or without modification,
|
|
|
|
|
are permitted in any medium without royalty provided the copyright
|
|
|
|
|
notice and this notice are preserved.
|
|
|
|
|
|
2004-01-02 11:16:21 +00:00
|
|
|
|
Local Variables:
|
|
|
|
|
mode: change-log
|
|
|
|
|
left-margin: 8
|
|
|
|
|
fill-column: 74
|
|
|
|
|
version-control: never
|
|
|
|
|
End:
|