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:
|