2016-10-05 09:47:02 +02:00
|
|
|
|
2016-10-06 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* lexsup.c: Spell fall through comments consistently and add
|
|
|
|
|
missing fall through comments.
|
|
|
|
|
|
2016-10-05 08:22:24 +02:00
|
|
|
|
2016-10-06 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* plugin.c (asymbol_from_plugin_symbol): Avoid compiler warning
|
|
|
|
|
by adding return.
|
|
|
|
|
|
2016-10-04 02:13:50 +02:00
|
|
|
|
2016-10-04 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo (Expression Section): Update result of arithmetic
|
|
|
|
|
expressions.
|
|
|
|
|
* ldexp.c (arith_result_section): New function.
|
|
|
|
|
(fold_binary): Use it.
|
|
|
|
|
|
Fold arithmetic integer expressions
Commit b751e639 regressed arm linux kernel builds, that have an
ASSERT (((__hyp_idmap_text_end - (__hyp_idmap_text_start
& ~ (((0x1 << 0xc) - 0x1))))
<= (0x1 << 0xc)), HYP init code too big or misaligned)
Due to some insanity in ld expression evaluation, the integer values
0x1 and 0xc above are treated as absolute addresses (ie. they have an
associated section, *ABS*, see exp_fold_tree_1 case etree_value) while
the expression (0x1 << 0xc) has a plain number result. The left hand
side of the inequality happens to evaluate to a "negative" .text
section relative value. Comparing a section relative value against an
absolute value works since the section relative value is first
converted to absolute. Comparing a section relative value against a
number just compares the offsets, which fails since the "negative"
offset is really a very large positive number.
This patch works around the problem by folding integer expressions, so
the assert again becomes
ASSERT (((__hyp_idmap_text_end - (__hyp_idmap_text_start
& 0xfffffffffffff000))
<= 0x1000), HYP init code too big or misaligned)
* ldexp.c (exp_value_fold): New function.
(exp_unop, exp_binop, exp_trinop): Use it.
2016-10-04 02:11:26 +02:00
|
|
|
|
2016-10-04 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ldexp.c (exp_value_fold): New function.
|
|
|
|
|
(exp_unop, exp_binop, exp_trinop): Use it.
|
|
|
|
|
|
2016-09-30 10:22:48 +02:00
|
|
|
|
2016-09-30 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* scripttempl/v850.sc: Don't reference __ctbp, __ep, __gp when
|
|
|
|
|
not relocating.
|
|
|
|
|
* scripttempl/v850_rh850.sc: Likewise.
|
|
|
|
|
|
2016-09-30 08:39:42 +02:00
|
|
|
|
2016-09-30 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20528
|
|
|
|
|
* testsuite/ld-elf/pr20528a.d: xfail generic elf targets. Allow
|
|
|
|
|
multiple .text sections for hppa-linux.
|
|
|
|
|
* testsuite/ld-elf/pr20528b.d: Likewise.
|
|
|
|
|
|
2016-09-30 04:03:13 +02:00
|
|
|
|
2016-09-30 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ldmain.c (default_bfd_error_handler): New function pointer.
|
|
|
|
|
(ld_bfd_error_handler): New function.
|
|
|
|
|
(main): Arrange to call it on bfd errors/warnings.
|
|
|
|
|
(ld_bfd_assert_handler): Enable tail call.
|
|
|
|
|
|
2016-09-30 03:33:52 +02:00
|
|
|
|
2016-09-30 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (ignore_bfd_errors): Update params.
|
|
|
|
|
|
2016-09-29 21:58:29 +02:00
|
|
|
|
2016-09-29 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20528
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
|
|
|
|
|
merge 2 sections with different SHF_EXCLUDE.
|
|
|
|
|
* testsuite/ld-elf/pr20528a.d: New file.
|
|
|
|
|
* testsuite/ld-elf/pr20528a.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr20528b.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr20528b.s: Likewise.
|
|
|
|
|
|
2016-09-28 01:37:52 +02:00
|
|
|
|
2016-09-28 Christophe Lyon <christophe.lyon@linaro.org>
|
|
|
|
|
|
|
|
|
|
PR ld/20608
|
|
|
|
|
* testsuite/ld-arm/arm-elf.exp: Handle new testcase.
|
|
|
|
|
* testsuite/ld-arm/farcall-mixed-app2.d: New file.
|
|
|
|
|
* testsuite/ld-arm/farcall-mixed-app2.r: Likewise.
|
|
|
|
|
* testsuite/ld-arm/farcall-mixed-app2.s: Likewise.
|
|
|
|
|
* testsuite/ld-arm/farcall-mixed-app2.sym: Likewise.
|
|
|
|
|
|
2016-09-26 17:36:08 +02:00
|
|
|
|
2016-09-26 Vlad Zakharov <vzakhar@synopsys.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* configure: Likewise.
|
|
|
|
|
|
2016-09-26 10:34:57 +02:00
|
|
|
|
2016-09-26 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-powerpc/attr-gnu-4-4.s: Delete.
|
|
|
|
|
* testsuite/ld-powerpc/attr-gnu-4-14.d: Delete.
|
|
|
|
|
* testsuite/ld-powerpc/attr-gnu-4-24.d: Delete.
|
|
|
|
|
* testsuite/ld-powerpc/attr-gnu-4-34.d: Delete.
|
|
|
|
|
* testsuite/ld-powerpc/attr-gnu-4-41.d: Delete.
|
|
|
|
|
* testsuite/ld-powerpc/attr-gnu-4-32.d: Adjust expected warning.
|
|
|
|
|
* testsuite/ld-powerpc/attr-gnu-8-23.d: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/attr-gnu-4-01.d: Adjust expected output.
|
|
|
|
|
* testsuite/ld-powerpc/attr-gnu-4-02.d: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/attr-gnu-4-03.d: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/attr-gnu-4-10.d: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/attr-gnu-4-11.d: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/attr-gnu-4-20.d: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/attr-gnu-4-22.d: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/attr-gnu-4-33.d: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/attr-gnu-8-11.d: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/powerpc.exp: Don't run deleted tests.
|
|
|
|
|
|
2016-09-23 17:32:04 +02:00
|
|
|
|
2016-09-23 Akihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>
|
|
|
|
|
|
|
|
|
|
PR ld/20595
|
|
|
|
|
* testsuite/ld-arm/unwind-4.d: Add -q option to linker command
|
|
|
|
|
line and -r option to objdump command line. Match emitted relocs
|
|
|
|
|
to make sure that superflous relocs are not generated.
|
|
|
|
|
|
2016-09-23 11:26:05 +02:00
|
|
|
|
2016-09-23 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/elf64_s390.sh: Change TEXT_START_ADDR to 256MB.
|
|
|
|
|
* testsuite/ld-s390/tlsbin_64.dd: Adjust testcase accordingly.
|
|
|
|
|
* testsuite/ld-s390/tlsbin_64.rd: Likewise.
|
|
|
|
|
|
2016-09-22 15:29:49 +02:00
|
|
|
|
2016-09-22 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/elf32.em (_try_needed): In verbose mode, report failed
|
|
|
|
|
attempts to find a needed library.
|
|
|
|
|
|
2016-09-21 18:11:52 +02:00
|
|
|
|
2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-28.d: Expect spaces after ","
|
|
|
|
|
in addresses.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-301-be.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-301.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-302-be.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-302.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-310-be.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-310.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-313.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-515-be.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-515.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-516-be.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-516.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-531.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-532.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-533.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-534.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-535.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-536.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-537.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-538.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/erratum835769.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/erratum843419.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/farcall-b-plt.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/farcall-bl-plt.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/gc-plt-relocs.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/ifunc-21.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/ifunc-7c.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/tls-desc-ie.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/tls-large-desc-be.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/tls-large-desc.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/tls-large-ie-be.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/tls-large-ie.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/tls-relax-all.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/tls-relax-gd-ie.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/tls-relax-gdesc-ie-2.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/tls-relax-gdesc-ie.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/tls-relax-large-desc-ie-be.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/tls-relax-large-desc-ie.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/tls-tiny-desc.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/tls-tiny-gd.d: Likewise.
|
|
|
|
|
|
[AArch64] Add SVE condition codes
SVE defines new names for existing NZCV conditions, to reflect the
result of instructions like PTEST. This patch adds support for these
names.
The patch also adds comments to the disassembly output to show the
alternative names of a condition code. For example:
cinv x0, x1, cc
becomes:
cinv x0, x1, cc // cc = lo, ul, last
and:
b.cc f0 <...>
becomes:
b.cc f0 <...> // b.lo, b.ul, b.last
Doing this for the SVE names follows the practice recommended by the
SVE specification and is definitely useful when reading SVE code.
If the feeling is that it's too distracting elsewhere, we could add
an option to turn it off.
include/
* opcode/aarch64.h (aarch64_cond): Bump array size to 4.
opcodes/
* aarch64-dis.c (remove_dot_suffix): New function, split out from...
(print_mnemonic_name): ...here.
(print_comment): New function.
(print_aarch64_insn): Call it.
* aarch64-opc.c (aarch64_conds): Add SVE names.
(aarch64_print_operand): Print alternative condition names in
a comment.
gas/
* config/tc-aarch64.c (opcode_lookup): Search for the end of
a condition name, rather than assuming that it will have exactly
2 characters.
(parse_operands): Likewise.
* testsuite/gas/aarch64/alias.d: Add new condition-code comments
to the expected output.
* testsuite/gas/aarch64/beq_1.d: Likewise.
* testsuite/gas/aarch64/float-fp16.d: Likewise.
* testsuite/gas/aarch64/int-insns.d: Likewise.
* testsuite/gas/aarch64/no-aliases.d: Likewise.
* testsuite/gas/aarch64/programmer-friendly.d: Likewise.
* testsuite/gas/aarch64/reloc-insn.d: Likewise.
* testsuite/gas/aarch64/b_c_1.d, testsuite/gas/aarch64/b_c_1.s:
New test.
ld/
* testsuite/ld-aarch64/emit-relocs-280.d: Match branch comments.
* testsuite/ld-aarch64/weak-undefined.d: Likewise.
2016-09-21 18:09:59 +02:00
|
|
|
|
2016-09-21 Richard Sandiford <richard.sandiford@arm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-280.d: Match branch comments.
|
|
|
|
|
* testsuite/ld-aarch64/weak-undefined.d: Likewise.
|
|
|
|
|
|
2016-09-20 11:49:39 +02:00
|
|
|
|
2016-09-20 Andrew Burgess <andrew.burgess@embecosm.com>
|
|
|
|
|
|
2016-09-20 16:33:50 +02:00
|
|
|
|
* ld.texinfo (Input Section Basics): Expand the description of
|
2016-09-20 11:49:39 +02:00
|
|
|
|
EXCLUDE_FILE.
|
|
|
|
|
|
2016-09-14 17:02:17 +02:00
|
|
|
|
2016-09-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-arm/cmse-veneers.s: Add a test for ARMv8-M Security
|
|
|
|
|
Extensions entry functions in absolute section.
|
|
|
|
|
* testsuite/ld-arm/cmse-veneers.rd: Adapt expected output accordingly.
|
|
|
|
|
|
2016-09-07 09:47:34 +02:00
|
|
|
|
2016-09-14 Claudiu Zissulescu <claziss@synopsys.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-arc/tls-dtpoff.dd: New file.
|
|
|
|
|
* testsuite/ld-arc/tls-dtpoff.rd: Likewise.
|
|
|
|
|
* testsuite/ld-arc/tls-dtpoff.s: Likewise.
|
|
|
|
|
* testsuite/ld-arc/tls-relocs.ld: Likewise.
|
|
|
|
|
* testsuite/ld-arc/arc.exp: Add new tdpoff test.
|
|
|
|
|
|
2016-09-14 11:42:10 +02:00
|
|
|
|
2016-09-14 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20537
|
|
|
|
|
* emultempl/elf32.em: More OPTION_xxx values into an enum. Add
|
|
|
|
|
OPTION_NO_EH_FRAME_HDR.
|
|
|
|
|
(_add_options): Add support for --no-eh-frame-hdr.
|
|
|
|
|
* ld.texinfo: Document new option.
|
|
|
|
|
* lexsup.c (elf_shlib_list_options): List new option.
|
|
|
|
|
* NEWS: Mention the new option.
|
|
|
|
|
|
2016-09-06 22:34:30 +02:00
|
|
|
|
2016-09-06 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20550
|
|
|
|
|
* testsuite/ld-x86-64/pr20550a.s: New file.
|
|
|
|
|
* testsuite/ld-x86-64/pr20550b.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp (x86_64tests): Add tests for
|
|
|
|
|
PR ld/20550.
|
|
|
|
|
|
2016-09-06 18:35:35 +02:00
|
|
|
|
2016-09-06 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (CFLAGS_FOR_TARGET): Define as a copy of CFLAGS but
|
|
|
|
|
without any sanitization options.
|
|
|
|
|
(CXXFLAGS_FOR_TARGET): Define as a copy of CXXFLAGS but without
|
|
|
|
|
any sanitization options.
|
|
|
|
|
(check-DEJAGNU): Pass CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET
|
|
|
|
|
as CFLAGS and CXXFLAGS respectively.
|
|
|
|
|
|
Fix PR ld/20545 - relaxation bugs in avr backend
Prior to the patch, addends for relocs were being adjusted even if
they went beyond an alignment boundary. This is wrong - to
preserve alignment constraints, the relaxation logic adds as many padding
bytes at the alignment boundary as was deleted, so addends beyond the
boundary should not be adjusted. avr-prop-7.s reproduces this
scenario.
Also, prior to this patch, the relaxation logic assumed that the addr
parameter pointed to the middle of the instruction to be deleted, and
that addr - count would therefore be the shrinked instruction's
address. This is true when actually shrinking instructions.
The alignment constraints handling logic also invokes the same logic
though, with addr as the starting offset of padding bytes and
with count as the number of bytes to be deleted. Calculating the
shrinked insn's address as addr - count is obviously wrong in this
case - that offset would point to count bytes before the last
non-padded byte. avr-prop-8.s reproduces this scenario.
To fix scenario 1, the patch adds an additional check to ensure reloc addends
aren't adjusted if they cross a shrink boundary. The shrink boundary
is either the section size or an alignment boundary. Addends pointing
at an alignment boundary don't need to be adjusted, as padding would
occur and keep the boundary the same. Addends pointing at section size
need to be adjusted though, as no padding occurs and the section size
itself would get decremented. The patch records whether padding
occured (did_pad) and uses that to detect and handle this condition.
To fix scenario 2, the patch adds an additional parameter
(delete_shrinks_insn) to elf32_avr_relax_delete_bytes to distinguish
instruction bytes deletion from padding bytes deletion. It then uses that to
correctly set shrinked_insn_address.
bfd/ChangeLog:
2016-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
PR ld/20545
* elf32-avr.c (elf32_avr_relax_delete_bytes): Add parameter
delete_shrinks_insn. Modify computation of shrinked_insn_address.
Compute shrink_boundary and adjust addend only if
addend_within_shrink_boundary.
(elf32_avr_relax_section): Modify calls to
elf32_avr_relax_delete_bytes to pass extra parameter.
ld/ChangeLog:
2016-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
PR ld/20545
* testsuite/ld-avr/avr-prop-7.d: New test.
* testsuite/ld-avr/avr-prop-7.s: New test.
* testsuite/ld-avr/avr-prop-8.d: New test.
* testsuite/ld-avr/avr-prop-8.s: New test.
2016-09-06 08:58:37 +02:00
|
|
|
|
2016-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20545
|
|
|
|
|
* testsuite/ld-avr/avr-prop-7.d: New test.
|
|
|
|
|
* testsuite/ld-avr/avr-prop-7.s: New test.
|
|
|
|
|
* testsuite/ld-avr/avr-prop-8.d: New test.
|
|
|
|
|
* testsuite/ld-avr/avr-prop-8.s: New test.
|
|
|
|
|
|
2016-09-02 16:58:24 +02:00
|
|
|
|
2016-09-02 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/pr20513c.d: Limit to *-*-linux* and *-*-gnu*
|
|
|
|
|
targets.
|
|
|
|
|
* testsuite/ld-elf/pr20513d.d: Likewise.
|
|
|
|
|
|
2016-09-01 21:01:00 +02:00
|
|
|
|
2016-09-01 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20513
|
|
|
|
|
* testsuite/ld-elf/pr20513a.d: New file.
|
|
|
|
|
* testsuite/ld-elf/pr20513a.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr20513b.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr20513b.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr20513c.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr20513d.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr20513e.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr20513f.d: Likewise.
|
|
|
|
|
|
2016-08-26 14:31:15 +02:00
|
|
|
|
2016-08-31 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 20513
|
|
|
|
|
* ldlang.c (section_already_linked): Deal with SHF_EXCLUDE sections.
|
|
|
|
|
|
2016-08-31 06:32:36 +02:00
|
|
|
|
2016-08-31 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-powerpc/vle-multiseg-1.d: Adjust to suit segment change.
|
|
|
|
|
* testsuite/ld-powerpc/vle-multiseg-2.d: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/vle-multiseg-3.d: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/vle-multiseg-6.d: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/vle-reloc-2.d: Likewise.
|
|
|
|
|
|
2016-08-29 10:38:40 +02:00
|
|
|
|
2016-08-30 Cupertino Miranda <cmiranda@synopsys.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-arc/tls_gs-01.d: Set to XFAIL on arc*-*-elf*.
|
|
|
|
|
* testsuite/ld-arc/tls_ie-01.d: Likewise.
|
|
|
|
|
|
2016-08-29 18:09:14 +02:00
|
|
|
|
2016-08-29 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Run PR ld/19784 tests only
|
|
|
|
|
if ifunc attribute works.
|
|
|
|
|
|
2016-08-29 17:12:59 +02:00
|
|
|
|
2016-08-29 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/14961
|
|
|
|
|
PR ld/20515
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Run pr20515.
|
|
|
|
|
* testsuite/ld-i386/pr20515.d: New file.
|
|
|
|
|
* testsuite/ld-i386/pr20515.s: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-14a.s: Use R_386_PLT32 to call IFUNC
|
|
|
|
|
function.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-14c.s: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-2-i386.s: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-2-local-i386.s: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc.exp: Move PR ld/19784 tests to ...
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Here.
|
|
|
|
|
* testsuite/ld-ifunc/pr19784a.c: Moved to ...
|
|
|
|
|
* testsuite/ld-x86-64/pr19784a.c: Here.
|
|
|
|
|
* testsuite/ld-ifunc/pr19784b.c: Moved to ...
|
|
|
|
|
* testsuite/ld-x86-64/pr19784b.c: Here.
|
|
|
|
|
* testsuite/ld-ifunc/pr19784c.c: Moved to ...
|
|
|
|
|
* testsuite/ld-x86-64/pr19784c.c: Here.
|
|
|
|
|
|
Reduce parameter list in bfd_elf32_arm_target_relocs
2016-08-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
bfd/
* bfd-in.h (struct elf32_arm_params): Define.
(bfd_elf32_arm_set_target_relocs): Rename into ...
(bfd_elf32_arm_set_target_params): This. Use a struct
elf32_arm_params to pass all parameters but the bfd and bfd_link_info.
* bfd-in2.h: Regenerate.
* elf32-arm.c (bfd_elf32_arm_set_target_relocs): Rename into ...
(bfd_elf32_arm_set_target_params): This. Pass all values via a struct
elf32_arm_params rather than as individual parameters.
ld/
* emultempl/armelf.em (params): New static variable.
(thumb_entry_symbol, byteswap_code, target1_is_rel, target2_type,
fix_v4bx, use_blx, vfp11_denorm_fix, stm32l4xx_fix, fix_cortex_a8,
no_enum_size_warning, no_wchar_size_warning, pic_veneer,
merge_exidx_entries, fix_arm1176, cmse_implib): move as part of the
above new structure.
(arm_elf_before_allocation): Access static variable from the params
structure.
(gld${EMULATION_NAME}_finish): Likewise.
(arm_elf_create_output_section_statements): Likewise and pass the
address of that structure to bfd_elf32_arm_set_target_relocs instead
of the static variables.
(PARSE_AND_LIST_ARGS_CASES): Access static variable from the params
structure.
2016-08-26 15:00:39 +02:00
|
|
|
|
2016-08-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/armelf.em (params): New static variable.
|
|
|
|
|
(thumb_entry_symbol, byteswap_code, target1_is_rel, target2_type,
|
|
|
|
|
fix_v4bx, use_blx, vfp11_denorm_fix, stm32l4xx_fix, fix_cortex_a8,
|
|
|
|
|
no_enum_size_warning, no_wchar_size_warning, pic_veneer,
|
|
|
|
|
merge_exidx_entries, fix_arm1176, cmse_implib): move as part of the
|
|
|
|
|
above new structure.
|
|
|
|
|
(arm_elf_before_allocation): Access static variable from the params
|
|
|
|
|
structure.
|
|
|
|
|
(gld${EMULATION_NAME}_finish): Likewise.
|
|
|
|
|
(arm_elf_create_output_section_statements): Likewise and pass the
|
|
|
|
|
address of that structure to bfd_elf32_arm_set_target_relocs instead
|
|
|
|
|
of the static variables.
|
|
|
|
|
(PARSE_AND_LIST_ARGS_CASES): Access static variable from the params
|
|
|
|
|
structure.
|
|
|
|
|
|
2016-07-21 15:32:35 +02:00
|
|
|
|
2016-08-26 Cupertino Miranda <cmiranda@synopsys.com>
|
|
|
|
|
|
|
|
|
|
* ld/testsuite/ld-arc/tls_gd-01.s: Added a testcase for this patch.
|
|
|
|
|
* ld/testsuite/ld-arc/tls_gd-01.d: Likewise.
|
|
|
|
|
|
2016-07-12 16:31:40 +02:00
|
|
|
|
2016-08-26 Cupertino Miranda <cmiranda@synopsys.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-arc/tls_ie-01.s: Added to verify associated fix.
|
|
|
|
|
* testsuite/ld-arc/tls_ie-01.d: Likewise
|
|
|
|
|
|
2016-08-26 11:59:26 +02:00
|
|
|
|
2016-08-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/armelf.em (in_implib_filename): Declare and initialize new
|
|
|
|
|
variable.
|
|
|
|
|
(arm_elf_create_output_section_statements): Open import input library
|
|
|
|
|
file for writing and pass resulting in_implib_bfd to
|
|
|
|
|
bfd_elf32_arm_set_target_relocs.
|
|
|
|
|
(PARSE_AND_LIST_PROLOGUE): Define OPTION_IN_IMPLIB option.
|
|
|
|
|
(PARSE_AND_LIST_LONGOPTS): Define --in-implib option.
|
|
|
|
|
(PARSE_AND_LIST_OPTIONS): Add help message for --in-implib option.
|
|
|
|
|
(PARSE_AND_LIST_ARGS_CASES): Handle new OPTION_IN_IMPLIB case.
|
|
|
|
|
* ld.texinfo (--cmse-implib): Update to mention --in-implib.
|
|
|
|
|
(--in-implib): Document new option.
|
|
|
|
|
* NEWS: Likewise.
|
|
|
|
|
* testsuite/ld-arm/arm-elf.exp
|
|
|
|
|
(Secure gateway import library generation): add --defsym VER=1 to gas
|
|
|
|
|
CLI.
|
|
|
|
|
(Secure gateway import library generation: errors): Likewise.
|
|
|
|
|
(Input secure gateway import library): New test.
|
|
|
|
|
(Input secure gateway import library: no output import library):
|
|
|
|
|
Likewise.
|
|
|
|
|
(Input secure gateway import library: not an SG input import library):
|
|
|
|
|
Likewise.
|
|
|
|
|
(Input secure gateway import library: earlier stub section base):
|
|
|
|
|
Likewise.
|
|
|
|
|
(Input secure gateway import library: later stub section base):
|
|
|
|
|
Likewise.
|
|
|
|
|
(Input secure gateway import library: veneer comeback): Likewise.
|
|
|
|
|
(Input secure gateway import library: entry function change):
|
|
|
|
|
Likewise.
|
|
|
|
|
* testsuite/ld-arm/cmse-implib.s: Add input import library testing.
|
|
|
|
|
* testsuite/ld-arm/cmse-implib.rd: Update accordingly.
|
|
|
|
|
* testsuite/ld-arm/cmse-new-implib.out: New file.
|
|
|
|
|
* testsuite/ld-arm/cmse-new-implib.rd: Likewise.
|
|
|
|
|
* testsuite/ld-arm/cmse-new-implib-no-output.out: Likewise.
|
|
|
|
|
* testsuite/ld-arm/cmse-new-implib-not-sg-in-implib.out: Likewise.
|
|
|
|
|
* testsuite/ld-arm/cmse-new-earlier-later-implib.out: Likewise.
|
|
|
|
|
* testsuite/ld-arm/cmse-new-comeback-implib.rd: Likewise.
|
|
|
|
|
* testsuite/ld-arm/cmse-new-wrong-implib.out: Likewise.
|
|
|
|
|
|
2016-08-25 08:41:40 +02:00
|
|
|
|
2016-08-25 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* configure.tgt (powerpc*-*-linux* et al): Rewrite, adding LE
|
|
|
|
|
support for BE. First output all target endian configury
|
|
|
|
|
values, then opposite endian. Handle more tooldirs. Fix
|
|
|
|
|
bogus matches with strings in MANUF-OS part of target triple.
|
|
|
|
|
|
2016-08-23 04:52:25 +02:00
|
|
|
|
2016-08-23 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/lib/ld-lib.exp (run_cc_link_tests): Don't fail tests
|
|
|
|
|
twice.
|
|
|
|
|
|
2016-08-19 10:16:30 +02:00
|
|
|
|
2016-08-19 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
2016-08-19 10:27:52 +02:00
|
|
|
|
* emultempl/aarch64elf.em (before_parse): Initialise the relro
|
|
|
|
|
field in the link_info structure.
|
|
|
|
|
* emultempl/armelf.em (before_parse): Likewise.
|
|
|
|
|
* emultempl/linux.em (before_parse): Likewise.
|
|
|
|
|
* emultempl/scoreelf.em (before_parse): Likewise.
|
|
|
|
|
|
2016-08-19 10:16:30 +02:00
|
|
|
|
* testsuite/ld-alpha/tlsbin.rd: Adjust expected ordering of sections.
|
|
|
|
|
* testsuite/ld-alpha/tlsbinr.rd: Likewise.
|
|
|
|
|
* testsuite/ld-alpha/tlspic.rd: Likewise.
|
|
|
|
|
* testsuite/ld-cris/libdso-2.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/nogot1.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr12718.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr12921.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsbin-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsbin.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsbin2-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsbin2.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsbindesc-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsbindesc.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsdesc-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsdesc.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsgdesc-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsgdesc.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsnopic-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsnopic.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlspic-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlspic.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlspic2-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlspic2.rd: Likewise.
|
|
|
|
|
* testsuite/ld-ia64/tlsbin.rd: Likewise.
|
|
|
|
|
* testsuite/ld-ia64/tlspic.rd: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/attr-gnu-4-10.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/attr-gnu-4-50.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/attr-gnu-4-60.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/attr-gnu-4-70.d: Likewise.
|
|
|
|
|
* testsuite/ld-mmix/bspec1.d: Likewise.
|
|
|
|
|
* testsuite/ld-mmix/bspec2.d: Likewise.
|
|
|
|
|
* testsuite/ld-mmix/local1.d: Likewise.
|
|
|
|
|
* testsuite/ld-mmix/local3.d: Likewise.
|
|
|
|
|
* testsuite/ld-mmix/local5.d: Likewise.
|
|
|
|
|
* testsuite/ld-mmix/local7.d: Likewise.
|
|
|
|
|
* testsuite/ld-mmix/undef-3.d: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/tlsexe.r: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/tlsexe32.r: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/tlsexetoc.r: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/tlsso.r: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/tlsso32.r: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/tlstocso.r: Likewise.
|
|
|
|
|
* testsuite/ld-s390/tlsbin.rd: Likewise.
|
|
|
|
|
* testsuite/ld-s390/tlsbin_64.rd: Likewise.
|
|
|
|
|
* testsuite/ld-s390/tlspic.rd: Likewise.
|
|
|
|
|
* testsuite/ld-s390/tlspic_64.rd: Likewise.
|
|
|
|
|
* testsuite/ld-sh/sh64/crange1.rd: Likewise.
|
|
|
|
|
* testsuite/ld-sh/sh64/crange2.rd: Likewise.
|
|
|
|
|
* testsuite/ld-sh/sh64/crange3-cmpct.rd: Likewise.
|
|
|
|
|
* testsuite/ld-sh/sh64/crange3-media.rd: Likewise.
|
|
|
|
|
* testsuite/ld-sh/sh64/crange3.rd: Likewise.
|
|
|
|
|
* testsuite/ld-sh/sh64/crangerel1.rd: Likewise.
|
|
|
|
|
* testsuite/ld-sh/sh64/crangerel2.rd: Likewise.
|
|
|
|
|
* testsuite/ld-sh/tlsbin-2.d: Likewise.
|
|
|
|
|
* testsuite/ld-sh/tlspic-2.d: Likewise.
|
|
|
|
|
* testsuite/ld-sparc/gotop32.rd: Likewise.
|
|
|
|
|
* testsuite/ld-sparc/gotop64.rd: Likewise.
|
|
|
|
|
* testsuite/ld-sparc/tlssunbin32.rd: Likewise.
|
|
|
|
|
* testsuite/ld-sparc/tlssunbin64.rd: Likewise.
|
|
|
|
|
* testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
|
|
|
|
|
* testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
|
|
|
|
|
* testsuite/ld-sparc/tlssunpic32.rd: Likewise.
|
|
|
|
|
* testsuite/ld-sparc/tlssunpic64.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/common.d: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/shlib-1.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/shlib-1b.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/shlib-1r.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/static-app-1.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/static-app-1b.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/static-app-1r.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/ilp32-4-nacl.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/ilp32-4.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/nogot1.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr12718.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr12921.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/split-by-file-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/split-by-file.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsbin-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsbin.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsbin2-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsbin2.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsbindesc-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsdesc-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsdesc.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsgdesc-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlspic-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlspic.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlspic2-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlspic2.rd: Likewise.
|
|
|
|
|
* testsuite/ld-xtensa/tlsbin.rd: Likewise.
|
|
|
|
|
* testsuite/ld-xtensa/tlspic.rd: Likewise.
|
|
|
|
|
|
2016-08-18 12:54:47 +02:00
|
|
|
|
2016-08-18 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-undefined/weak-undef.exp: Use unsupported not
|
|
|
|
|
unresolved.
|
|
|
|
|
|
2016-08-12 16:33:43 +02:00
|
|
|
|
2016-08-12 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-tic6x/shlib-1.rd: Correct expected .dynsym sh_info.
|
|
|
|
|
* testsuite/ld-tic6x/shlib-1b.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/shlib-1r.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/static-app-1.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/static-app-1b.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/static-app-1r.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
|
|
|
|
|
|
2016-08-12 06:37:40 +02:00
|
|
|
|
2016-08-12 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-undefined/weak-fundef.s: New.
|
|
|
|
|
* testsuite/ld-undefined/weak-undef.t: Don't specify filename.
|
|
|
|
|
* testsuite/ld-undefined/weak-undef.exp: Run new tests. Rearrange
|
|
|
|
|
much of old code. Use is_elf_format to select targets.
|
|
|
|
|
|
2016-08-11 16:12:05 +02:00
|
|
|
|
2016-08-11 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20436
|
|
|
|
|
* testsuite/lib/ld-lib.exp (at_least_gcc_version): Don't ignore
|
|
|
|
|
remote_exec status.
|
|
|
|
|
(check_gcc_plugin_enabled): Likewise. Revert previous patch.
|
|
|
|
|
|
2016-08-11 11:22:41 +02:00
|
|
|
|
2016-08-11 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20436
|
|
|
|
|
* testsuite/lib/ld-lib.exp (check_gcc_plugin_enabled): When not
|
|
|
|
|
testing remotely, check to see if target compiler is installed
|
|
|
|
|
before trying to run it.
|
|
|
|
|
|
2016-08-11 01:52:06 +02:00
|
|
|
|
2016-08-10 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
PR ld/15428
|
|
|
|
|
* testsuite/ld-mips-elf/mips-elf.exp: Un-KFAIL `__ehdr_start'
|
|
|
|
|
test 2.
|
|
|
|
|
|
2016-08-10 23:10:30 +02:00
|
|
|
|
2016-08-10 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/pic-and-nonpic-1-micromips-rel.dd: New
|
|
|
|
|
test.
|
|
|
|
|
* testsuite/ld-mips-elf/pic-and-nonpic-1-micromips-rel.nd: New
|
|
|
|
|
test.
|
|
|
|
|
* testsuite/ld-mips-elf/pic-and-nonpic-1-micromips.dd: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/pic-and-nonpic-1-micromips.nd: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/pic-and-nonpic-1a-micromips.s: New test
|
|
|
|
|
source.
|
|
|
|
|
* testsuite/ld-mips-elf/pic-and-nonpic-1b-micromips.s: New test
|
|
|
|
|
source.
|
|
|
|
|
* testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
|
|
|
|
|
|
2016-08-10 01:41:12 +02:00
|
|
|
|
2016-08-09 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20436
|
|
|
|
|
* testsuite/lib/ld-lib.exp (check_gcc_plugin_enabled): New
|
|
|
|
|
proc.
|
|
|
|
|
(check_lto_available): Return 0 if check_gcc_plugin_enabled
|
|
|
|
|
returns 0.
|
|
|
|
|
(check_lto_fat_available): Likewise.
|
|
|
|
|
(check_lto_shared_available): Likewise.
|
|
|
|
|
|
2016-08-09 21:09:17 +02:00
|
|
|
|
2016-08-09 Roland McGrath <roland@hack.frob.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/armelf.sh (GENERATE_PIE_SCRIPT): Set to yes.
|
|
|
|
|
|
2016-08-04 16:54:57 +02:00
|
|
|
|
2016-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/armelf.em (cmse_implib): Declare and define this new
|
|
|
|
|
static variable.
|
|
|
|
|
(arm_elf_create_output_section_statements): Add new cmse_implib
|
|
|
|
|
parameter.
|
|
|
|
|
(OPTION_CMSE_IMPLIB): Define macro.
|
|
|
|
|
(PARSE_AND_LIST_LONGOPTS): Add entry for new --cmse-implib switch.
|
|
|
|
|
(PARSE_AND_LIST_OPTIONS): Likewise.
|
|
|
|
|
(PARSE_AND_LIST_ARGS_CASES): Handle OPTION_CMSE_IMPLIB case.
|
|
|
|
|
* ld.texinfo (--cmse-implib): Document new option.
|
|
|
|
|
* testsuite/ld-arm/arm-elf.exp
|
|
|
|
|
(Secure gateway import library generation): New test.
|
|
|
|
|
(Secure gateway import library generation: errors): Likewise.
|
|
|
|
|
* testsuite/ld-arm/cmse-implib.s: New file.
|
|
|
|
|
* testsuite/ld-arm/cmse-implib-errors.out: Likewise.
|
|
|
|
|
* testsuite/ld-arm/cmse-implib.rd: Likewise.
|
|
|
|
|
|
2016-08-04 16:36:52 +02:00
|
|
|
|
2016-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo (Placement of SG veneers): New concept entry.
|
|
|
|
|
* testsuite/ld-arm/arm-elf.exp
|
|
|
|
|
(Secure gateway veneers: no .gnu.sgstubs section): New test.
|
|
|
|
|
(Secure gateway veneers: wrong entry functions): Likewise.
|
|
|
|
|
(Secure gateway veneers (ARMv8-M Baseline)): Likewise.
|
|
|
|
|
(Secure gateway veneers (ARMv8-M Mainline)): Likewise.
|
|
|
|
|
* testsuite/ld-arm/cmse-veneers.s: New file.
|
|
|
|
|
* testsuite/ld-arm/cmse-veneers.d: Likewise.
|
|
|
|
|
* testsuite/ld-arm/cmse-veneers.rd: Likewise.
|
|
|
|
|
* testsuite/ld-arm/cmse-veneers.sd: Likewise.
|
|
|
|
|
* testsuite/ld-arm/cmse-veneers-no-gnu_sgstubs.out: Likewise.
|
|
|
|
|
* testsuite/ld-arm/cmse-veneers-wrong-entryfct.out: Likewise.
|
|
|
|
|
|
2016-08-02 12:56:55 +02:00
|
|
|
|
2016-08-02 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR ld/17739
|
|
|
|
|
* emulparams/shelf.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): Define with
|
|
|
|
|
valye 'yes'.
|
|
|
|
|
* emulparams/shelf32.sh: Likewise.
|
|
|
|
|
* emulparams/shelf32.sh: Likewise.
|
|
|
|
|
* emulparams/shelf_nto.sh: Likewise.
|
|
|
|
|
* emulparams/shelf_nto.sh: Likewise.
|
|
|
|
|
* emulparams/shelf_vxworks.sh: Likewise.
|
|
|
|
|
* emulparams/shelf_vxworks.sh: Likewise.
|
|
|
|
|
* emulparams/shlelf32_linux.sh: Likewise.
|
|
|
|
|
* emulparams/shlelf32_linux.sh: Likewise.
|
|
|
|
|
* emulparams/shlelf_linux.sh: Likewise.
|
|
|
|
|
* emulparams/shlelf_linux.sh: Likewise.
|
|
|
|
|
* emulparams/shlelf_nto.sh: Likewise.
|
|
|
|
|
* emulparams/shlelf_nto.sh: Likewise.
|
|
|
|
|
|
MIPS/GAS: Implement microMIPS branch/jump compaction
Convert microMIPS branches and jumps whose delay slot would be filled by
a generated NOP instruction to the corresponding compact form where one
exists, in a manner similar to MIPS16 JR->JRC and JALR->JALRC swap.
Do so even where the transformation switches from a 16-bit to a 32-bit
branch encoding for no benefit in code size reduction, as this is still
advantageous. This is because a branch/NOP pair takes 2 pipeline slots
or a 2-cycle completion latency except in superscalar implementations.
Whereas a compact branch may or may not stall on its target fetch, so it
will at most have a 2-cycle completion latency and may have only 1 even
in scalar implementations, and in superscalar implementations it is
expected to have no worse latency as a branch/NOP pair has. Also it
won't stall and therefore take the extra latency cycle in the not-taken
case.
Technically this is the same as MIPS16 compaction: for the qualifying
instruction encodings the APPEND_ADD_COMPACT machine code generation
method is selected where APPEND_ADD_WITH_NOP otherwise would and tells
the code generator in `append_insn' to convert the regular form of an
instruction to its corresponding compact form. For this the opcode is
tweaked as necessary and the microMIPS opcode table is scanned for the
matching updated instruction. A non-$0 `rt' operand to BEQ and BNE
instructions is moved to the `rs' operand field of BEQZC and BNEZC
encodings as required.
Unlike with MIPS16 compaction however we need to handle out-of-distance
branch relaxation as well. We do this by deferring the generation of
any delay-slot NOP required to relaxation made in `md_convert_frag', by
converting the APPEND_ADD_WITH_NOP machine code generation to APPEND_ADD
where a relaxed instruction is recorded. Relaxation then, depending on
actual code produced, chooses between either using a compact branch or
jump encoding and emitting the NOP outstanding if no compact encoding is
possible.
For code simplicity's sake the relaxation pass is retained even if the
principle of preferring a compact encoding to a 16-bit branch/NOP pair
means, in the absence of out-of-range branch relaxation, that a single
compact branch machine code instruction will eventually be produced from
a given assembly source instruction.
gas/
* config/tc-mips.c (RELAX_MICROMIPS_ENCODE): Add `nods' flag.
(RELAX_MICROMIPS_RELAX32, RELAX_MICROMIPS_TOOFAR16)
(RELAX_MICROMIPS_MARK_TOOFAR16, RELAX_MICROMIPS_CLEAR_TOOFAR16)
(RELAX_MICROMIPS_TOOFAR32, RELAX_MICROMIPS_MARK_TOOFAR32)
(RELAX_MICROMIPS_CLEAR_TOOFAR32): Shift bits.
(get_append_method): Also return APPEND_ADD_COMPACT for
microMIPS instructions.
(find_altered_mips16_opcode): Exclude macros from matching.
Factor code out...
(find_altered_opcode): ... to this new function.
(find_altered_micromips_opcode): New function.
(frag_branch_delay_slot_size): Likewise.
(append_insn): Handle microMIPS branch/jump compaction.
(macro_start): Likewise.
(relaxed_micromips_32bit_branch_length): Likewise.
(md_convert_frag): Likewise.
* testsuite/gas/mips/micromips.s: Add conditional explicit NOPs
for delay slot filling.
* testsuite/gas/mips/micromips-b16.s: Add explicit NOPs for
delay slot filling.
* testsuite/gas/mips/micromips-size-1.s: Likewise.
* testsuite/gas/mips/micromips.l: Adjust line numbers.
* testsuite/gas/mips/micromips-warn.l: Likewise.
* testsuite/gas/mips/micromips-size-1.l: Likewise.
* testsuite/gas/mips/micromips.d: Adjust padding.
* testsuite/gas/mips/micromips-trap.d: Likewise.
* testsuite/gas/mips/micromips-insn32.d: Likewise.
* testsuite/gas/mips/micromips-noinsn32.d: Likewise.
* testsuite/gas/mips/micromips@beq.d: Update patterns for
branch/jump compaction.
* testsuite/gas/mips/micromips@bge.d: Likewise.
* testsuite/gas/mips/micromips@bgeu.d: Likewise.
* testsuite/gas/mips/micromips@blt.d: Likewise.
* testsuite/gas/mips/micromips@bltu.d: Likewise.
* testsuite/gas/mips/micromips@branch-misc-4.d: Likewise.
* testsuite/gas/mips/micromips@branch-misc-4-64.d: Likewise.
* testsuite/gas/mips/micromips@branch-misc-5.d: Likewise.
* testsuite/gas/mips/micromips@branch-misc-5pic.d: Likewise.
* testsuite/gas/mips/micromips@branch-misc-5-64.d: Likewise.
* testsuite/gas/mips/micromips@branch-misc-5pic-64.d: Likewise.
* testsuite/gas/mips/micromips@jal-svr4pic-local.d: Likewise.
* testsuite/gas/mips/micromips@jal-svr4pic-local-n32.d:
Likewise.
* testsuite/gas/mips/micromips@jal-svr4pic-local-n64.d:
Likewise.
* testsuite/gas/mips/micromips@loc-swap.d: Likewise.
* testsuite/gas/mips/micromips@loc-swap-dis.d: Likewise.
* testsuite/gas/mips/micromips@relax.d: Likewise.
* testsuite/gas/mips/micromips@relax-at.d: Likewise.
* testsuite/gas/mips/micromips@relax-swap3.d: Likewise.
* testsuite/gas/mips/branch-extern-2.d: Likewise.
* testsuite/gas/mips/branch-extern-4.d: Likewise.
* testsuite/gas/mips/branch-section-2.d: Likewise.
* testsuite/gas/mips/branch-section-4.d: Likewise.
* testsuite/gas/mips/branch-weak-2.d: Likewise.
* testsuite/gas/mips/branch-weak-5.d: Likewise.
* testsuite/gas/mips/micromips-branch-absolute.d: Likewise.
* testsuite/gas/mips/micromips-branch-absolute-n32.d: Likewise.
* testsuite/gas/mips/micromips-branch-absolute-n64.d: Likewise.
* testsuite/gas/mips/micromips-branch-absolute-addend.d:
Likewise.
* testsuite/gas/mips/micromips-branch-absolute-addend-n32.d:
Likewise.
* testsuite/gas/mips/micromips-branch-absolute-addend-n64.d:
Likewise.
* testsuite/gas/mips/micromips-compact.d: New test.
* testsuite/gas/mips/mips.exp: Run the new test.
ld/
* testsuite/ld-mips-elf/micromips-branch-absolute.d: Update
patterns for branch compaction.
* testsuite/ld-mips-elf/micromips-branch-absolute-addend.d:
Likewise.
opcodes/
* micromips-opc.c (micromips_opcodes): Reorder "bc" next to "b",
"beqzc" next to "beq", "bnezc" next to "bne" and "jrc" next to
"j".
2016-07-27 18:27:55 +02:00
|
|
|
|
2016-07-27 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/micromips-branch-absolute.d: Update
|
|
|
|
|
patterns for branch compaction.
|
|
|
|
|
* testsuite/ld-mips-elf/micromips-branch-absolute-addend.d:
|
|
|
|
|
Likewise.
|
|
|
|
|
|
2016-07-27 13:01:09 +02:00
|
|
|
|
2016-07-27 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-gc/personality.d: Use "target cfi" to restrict the
|
|
|
|
|
test to targets which support cfi.
|
|
|
|
|
|
2016-07-27 11:31:34 +02:00
|
|
|
|
2016-07-27 Igor Kudrin <ikudrin@accesssoftek.com>
|
|
|
|
|
|
|
|
|
|
* ldbuildid.c (generate_build_id): Warning fix.
|
|
|
|
|
|
2016-07-26 18:45:00 +02:00
|
|
|
|
2016-07-26 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/compressed-plt-1.s: Add branch support.
|
|
|
|
|
* testsuite/ld-mips-elf/compressed-plt-1a.s: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/compressed-plt-1b.s: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/compressed-plt-1-o32-branch.od: New
|
|
|
|
|
test.
|
|
|
|
|
* testsuite/ld-mips-elf/compressed-plt-1-o32-branch.rd: New
|
|
|
|
|
test.
|
|
|
|
|
* testsuite/ld-mips-elf/compressed-plt-1-o32-mips16-bronly.od:
|
|
|
|
|
New test.
|
|
|
|
|
* testsuite/ld-mips-elf/compressed-plt-1-o32-mips16-bronly.rd:
|
|
|
|
|
New test.
|
|
|
|
|
* testsuite/ld-mips-elf/compressed-plt-1-o32-mips16-branch.od:
|
|
|
|
|
New test.
|
|
|
|
|
* testsuite/ld-mips-elf/compressed-plt-1-o32-mips16-branch.rd:
|
|
|
|
|
New test.
|
|
|
|
|
* testsuite/ld-mips-elf/compressed-plt-1-o32-umips-bronly.od:
|
|
|
|
|
New test.
|
|
|
|
|
* testsuite/ld-mips-elf/compressed-plt-1-o32-umips-bronly.rd:
|
|
|
|
|
New test.
|
|
|
|
|
* testsuite/ld-mips-elf/compressed-plt-1-o32-umips-branch.od:
|
|
|
|
|
New test.
|
|
|
|
|
* testsuite/ld-mips-elf/compressed-plt-1-o32-umips-branch.rd:
|
|
|
|
|
New test.
|
|
|
|
|
* testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
|
|
|
|
|
|
2016-07-26 18:01:06 +02:00
|
|
|
|
2016-07-26 Igor Kudrin <ikudrin@accesssoftek.com>
|
|
|
|
|
|
|
|
|
|
* ldbuildid.c: Changes for MinGW32:
|
|
|
|
|
Include windows.h and rpcdce.h.
|
|
|
|
|
(validate_build_id_style): Allow "uuid" style.
|
|
|
|
|
(generate_build_id): Fill in id_bits using UuidCreate().
|
|
|
|
|
|
2016-07-25 07:49:20 +02:00
|
|
|
|
2016-07-25 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/sec64k.exp: Run test for arc, msp430, or1k
|
|
|
|
|
and m32r. Correct comment. Relax ld -r match to account for
|
|
|
|
|
msp increased number of default sections.
|
|
|
|
|
|
2016-07-22 16:10:31 +02:00
|
|
|
|
2016-07-22 Cupertino Miranda <cmiranda@synopsys.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-arc/got-01.d: New file.
|
|
|
|
|
* testsuite/ld-arc/got-01.s: New file.
|
|
|
|
|
|
2016-07-22 00:22:13 +02:00
|
|
|
|
2016-07-21 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* configure: Regenerated.
|
|
|
|
|
|
2016-07-21 02:06:37 +02:00
|
|
|
|
2016-07-21 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Replace
|
|
|
|
|
"targets_to_xfail" parameter with "args".
|
|
|
|
|
* testsuite/ld-elf/compress.exp: Remove empty list of xfails on
|
|
|
|
|
all calls to run_ld_link_exec_tests.
|
|
|
|
|
* testsuite/ld-elf/dwarf.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elf/indirect.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elf/wrap.exp: Likewise.
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt.exp: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tls.exp: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc.exp: Likewise.
|
|
|
|
|
* testsuite/ld-pie/pie.exp: Likewise.
|
|
|
|
|
* testsuite/ld-plugin/lto.exp: Likewise.
|
|
|
|
|
* testsuite/ld-size/size.exp: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/mpx.exp: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt.exp: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tls.exp: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elf/elf.exp: Likewise. Reorder args when providing
|
|
|
|
|
xfails and simplify lists.
|
|
|
|
|
* testsuite/ld-elf/shared.exp: Likewise.
|
|
|
|
|
|
2016-07-20 07:36:49 +02:00
|
|
|
|
2016-07-21 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/lib/ld-lib.exp (run_ld_link_tests): Add optional
|
|
|
|
|
parameter to pass list of xfails.
|
|
|
|
|
* testsuite/ld-elf/elf.exp: Add xfails for implib tests. Tidy
|
|
|
|
|
implib test formatting. Don't set .data start address.
|
|
|
|
|
* testsuite/ld-elf/implib.s: Remove first .bss directive and
|
|
|
|
|
replace second one with equivalent .section directive.
|
|
|
|
|
* testsuite/ld-elf/empty-implib.out: Add expected final error.
|
|
|
|
|
* testsuite/ld-elf/implib.rd: Update.
|
|
|
|
|
|
2016-07-20 02:14:46 +02:00
|
|
|
|
2016-07-20 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ldexp.c (exp_unop, exp_binop, exp_trinop, exp_nameop): Don't
|
|
|
|
|
fold expression.
|
|
|
|
|
* testsuite/ld-elf/maxpage3b.d: Expect correct maxpagesize.
|
|
|
|
|
|
2016-07-19 19:19:06 +02:00
|
|
|
|
2016-07-19 Roland McGrath <roland@hack.frob.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/aarch64elf.sh (GENERATE_PIE_SCRIPT): Set to yes.
|
|
|
|
|
* emulparams/aarch64elf32.sh: Likewise.
|
|
|
|
|
|
2016-07-19 17:19:19 +02:00
|
|
|
|
2016-07-19 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-branch-2.d: Update error
|
|
|
|
|
messages expected.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-branch-r6-1.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-branch-mips16.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-branch-micromips.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/bal-jalx-addend.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/bal-jalx-local.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/bal-jalx-pic.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/bal-jalx-addend-n32.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/bal-jalx-local-n32.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/bal-jalx-pic-n32.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/bal-jalx-addend-n64.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/bal-jalx-local-n64.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/bal-jalx-pic-n64.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-2.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-3.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-addend-2.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-addend-3.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-2.s: New test source.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-3.s: New test source.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-addend-2.s: New test
|
|
|
|
|
source.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-addend-3.s: New test
|
|
|
|
|
source.
|
|
|
|
|
* testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
|
|
|
|
|
|
MIPS: Verify the ISA mode and alignment of branch and jump targets
Verify that the ISA mode of branch targets is the same as the referring
relocation, so that an attempt to produce a branch between instructions
encoded in different ISA modes each causes an error rather than silently
producing non-functional code. Make sure that no symbol or addend bits
are silently truncated: terminate with an error if the relocation value
calculated cannot be encoded in the relocatable field of a branch; for
REL targets also applying to any intermediate addend.
Also make jump target's alignment verification consistent with that for
branches.
This change will require an update to some obscure handcoded assembly
sources which make branches to labels placed at data objects, however
for microMIPS code only. These labels will have to be updated with the
`.insn' directive for containing code to assemble and link successfully.
Such code is broken as any such labels have always been required by the
microMIPS architecture specification[1][2] to be annotated this way for
correct interpretation, and with our old code missing `.insn' directives
caused labels to present different semantics depending on whether they
were referred with branch (ISA bit ignored) or other relocations (ISA
bit respected).
Enforcing these checks however will ensure errors in building software,
like mixed regular MIPS and microMIPS code links with branches between,
will be diagnosed at the build time rather than causing odd run-time
errors such as intermittent crashes. It will also let cross-mode BAL
instructions be converted to JALX instructions, with a separate change.
References:
[1] "MIPS Architecture for Programmers, Volume II-B: The microMIPS32
Instruction Set", MIPS Technologies, Inc., Document Number: MD00582,
Revision 5.04, January 15, 2014, Section 7.1 "Assembly-Level
Compatibility", p. 533
[2] "MIPS Architecture for Programmers, Volume II-B: The microMIPS64
Instruction Set", MIPS Technologies, Inc., Document Number: MD00594,
Revision 5.04, January 15, 2014, Section 8.1 "Assembly-Level
Compatibility", p. 623
bfd/
* elfxx-mips.c (b_reloc_p): Add R_MICROMIPS_PC16_S1,
R_MICROMIPS_PC10_S1 and R_MICROMIPS_PC7_S1.
(branch_reloc_p): New function.
(mips_elf_calculate_relocation): Handle ISA mode determination
for relocations against section symbols, against absolute
symbols and absolute relocations. Also set `*cross_mode_jump_p'
for branches.
<R_MIPS16_26, R_MIPS_26, R_MICROMIPS_26_S1>: Suppress alignment
checks for weak undefined symbols. Also check target alignment
within the same ISA mode.
<R_MIPS_PC16, R_MIPS_GNU_REL16_S2>: Handle cross-mode branches
in the alignment check.
<R_MICROMIPS_PC7_S1>: Add an alignment check.
<R_MICROMIPS_PC10_S1>: Likewise.
<R_MICROMIPS_PC16_S1>: Likewise.
(mips_elf_perform_relocation): Report a failure for unsupported
same-mode JALX instructions and cross-mode branches.
(_bfd_mips_elf_relocate_section) <bfd_reloc_outofrange>: Add
error messages for jumps to misaligned addresses.
gas/
* config/tc-mips.c (mips_force_relocation): Also retain branch
relocations against MIPS16 and microMIPS symbols.
(fix_bad_cross_mode_jump_p): New function.
(fix_bad_same_mode_jalx_p): Likewise.
(fix_bad_misaligned_jump_p): Likewise.
(fix_bad_cross_mode_branch_p): Likewise.
(fix_bad_misaligned_branch_p): Likewise.
(fix_validate_branch): Likewise.
(md_apply_fix) <BFD_RELOC_MIPS_JMP, BFD_RELOC_MIPS16_JMP>
<BFD_RELOC_MICROMIPS_JMP>: Separate from BFD_RELOC_MIPS_SHIFT5,
etc. Verify the ISA mode and alignment of the jump target.
<BFD_RELOC_MIPS_21_PCREL_S2>: Replace the inline alignment check
with a call to `fix_validate_branch'.
<BFD_RELOC_MIPS_26_PCREL_S2>: Likewise.
<BFD_RELOC_16_PCREL_S2>: Likewise.
<BFD_RELOC_MICROMIPS_7_PCREL_S1, BFD_RELOC_MICROMIPS_10_PCREL_S1>
<BFD_RELOC_MICROMIPS_16_PCREL_S1>: Retain the original addend.
Verify the ISA mode and alignment of the branch target.
(md_convert_frag): Verify the ISA mode and alignment of resolved
MIPS16 branch targets.
* testsuite/gas/mips/branch-misc-1.s: Annotate non-instruction
branch targets with `.insn'.
* testsuite/gas/mips/branch-misc-5.s: Likewise.
* testsuite/gas/mips/micromips@branch-misc-5-64.d: Update
accordingly.
* testsuite/gas/mips/micromips@branch-misc-5pic-64.d: Likewise.
* testsuite/gas/mips/micromips-branch-relax.s: Annotate
non-instruction branch target with `.insn'.
* testsuite/gas/mips/micromips.s: Replace microMIPS JALX targets
with external symbols.
* testsuite/gas/mips/micromips-insn32.d: Update accordingly.
* testsuite/gas/mips/micromips-noinsn32.d: Likewise.
* testsuite/gas/mips/micromips-trap.d: Likewise.
* testsuite/gas/mips/micromips.d: Likewise.
* testsuite/gas/mips/mips16.s: Annotate non-instruction branch
targets with `.insn'.
* testsuite/gas/mips/mips16.d: Update accordingly.
* testsuite/gas/mips/mips16-64.d: Likewise.
* testsuite/gas/mips/mips16-dwarf2.s: Annotate non-instruction
branch target with `.insn'.
* testsuite/gas/mips/relax-swap3.s: Likewise.
* testsuite/gas/mips/branch-local-2.l: New list test.
* testsuite/gas/mips/branch-local-3.l: New list test.
* testsuite/gas/mips/branch-local-n32-2.l: New list test.
* testsuite/gas/mips/branch-local-n32-3.l: New list test.
* testsuite/gas/mips/branch-local-n64-2.l: New list test.
* testsuite/gas/mips/branch-local-n64-3.l: New list test.
* testsuite/gas/mips/unaligned-jump-1.l: New list test.
* testsuite/gas/mips/unaligned-jump-2.l: New list test.
* testsuite/gas/mips/unaligned-jump-3.d: New test.
* testsuite/gas/mips/unaligned-jump-mips16-1.l: New list test.
* testsuite/gas/mips/unaligned-jump-mips16-2.l: New list test.
* testsuite/gas/mips/unaligned-jump-mips16-3.d: New test.
* testsuite/gas/mips/unaligned-jump-micromips-1.l: New list
test.
* testsuite/gas/mips/unaligned-jump-micromips-2.l: New list
test.
* testsuite/gas/mips/unaligned-jump-micromips-3.d: New test.
* testsuite/gas/mips/unaligned-branch-1.l: New list test.
* testsuite/gas/mips/unaligned-branch-2.l: New list test.
* testsuite/gas/mips/unaligned-branch-3.d: New test.
* testsuite/gas/mips/unaligned-branch-r6-1.l: New list test.
* testsuite/gas/mips/unaligned-branch-r6-2.l: New list test.
* testsuite/gas/mips/unaligned-branch-r6-3.l: New list test.
* testsuite/gas/mips/unaligned-branch-r6-4.l: New list test.
* testsuite/gas/mips/unaligned-branch-r6-5.d: New test.
* testsuite/gas/mips/unaligned-branch-r6-6.d: New test.
* testsuite/gas/mips/unaligned-branch-mips16-1.l: New list test.
* testsuite/gas/mips/unaligned-branch-mips16-2.l: New list test.
* testsuite/gas/mips/unaligned-branch-mips16-3.d: New test.
* testsuite/gas/mips/unaligned-branch-micromips-1.l: New list
test.
* testsuite/gas/mips/unaligned-branch-micromips-2.l: New list
test.
* testsuite/gas/mips/unaligned-branch-micromips-3.d: New test.
* testsuite/gas/mips/branch-local-2.s: New test source.
* testsuite/gas/mips/branch-local-3.s: New test source.
* testsuite/gas/mips/branch-local-n32-2.s: New test source.
* testsuite/gas/mips/branch-local-n32-3.s: New test source.
* testsuite/gas/mips/branch-local-n64-2.s: New test source.
* testsuite/gas/mips/branch-local-n64-3.s: New test source.
* testsuite/gas/mips/unaligned-jump-1.s: New test source.
* testsuite/gas/mips/unaligned-jump-2.s: New test source.
* testsuite/gas/mips/unaligned-jump-mips16-1.s: New test source.
* testsuite/gas/mips/unaligned-jump-mips16-2.s: New test source.
* testsuite/gas/mips/unaligned-jump-micromips-1.s: New test
source.
* testsuite/gas/mips/unaligned-jump-micromips-2.s: New test
source.
* testsuite/gas/mips/unaligned-branch-1.s: New test source.
* testsuite/gas/mips/unaligned-branch-2.s: New test source.
* testsuite/gas/mips/unaligned-branch-r6-1.s: New test source.
* testsuite/gas/mips/unaligned-branch-r6-2.s: New test source.
* testsuite/gas/mips/unaligned-branch-r6-3.s: New test source.
* testsuite/gas/mips/unaligned-branch-r6-4.s: New test source.
* testsuite/gas/mips/unaligned-branch-mips16-1.s: New test
source.
* testsuite/gas/mips/unaligned-branch-mips16-2.s: New test
source.
* testsuite/gas/mips/unaligned-branch-micromips-1.s: New test
source.
* testsuite/gas/mips/unaligned-branch-micromips-2.s: New test
source.
* testsuite/gas/mips/mips.exp: Run the new tests.
ld/
* testsuite/ld-mips-elf/unaligned-jalx-1.d: Update error message
expected.
* testsuite/ld-mips-elf/unaligned-jalx-addend-1.d: Likewise.
* testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d:
Likewise.
* testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d:
Likewise.
* testsuite/ld-mips-elf/unaligned-jalx-mips16-1.d: Likewise.
* testsuite/ld-mips-elf/unaligned-jalx-micromips-1.d: Likewise.
* testsuite/ld-mips-elf/undefweak-overflow.s: Add jumps,
microMIPS BAL and MIPS16 instructions.
* testsuite/ld-mips-elf/undefweak-overflow.d: Update
accordingly.
* testsuite/ld-mips-elf/unaligned-branch-2.d: New test.
* testsuite/ld-mips-elf/unaligned-branch-r6-1.d: New test.
* testsuite/ld-mips-elf/unaligned-branch-r6-2.d: New test.
* testsuite/ld-mips-elf/unaligned-branch-mips16.d: New test.
* testsuite/ld-mips-elf/unaligned-branch-micromips.d: New test.
* testsuite/ld-mips-elf/unaligned-jump-mips16.d: New test.
* testsuite/ld-mips-elf/unaligned-jump-micromips.d: New test.
* testsuite/ld-mips-elf/unaligned-jump.d: New test.
* testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
2016-07-19 14:59:28 +02:00
|
|
|
|
2016-07-19 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-1.d: Update error message
|
|
|
|
|
expected.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-addend-1.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d:
|
|
|
|
|
Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d:
|
|
|
|
|
Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-mips16-1.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-micromips-1.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/undefweak-overflow.s: Add jumps,
|
|
|
|
|
microMIPS BAL and MIPS16 instructions.
|
|
|
|
|
* testsuite/ld-mips-elf/undefweak-overflow.d: Update
|
|
|
|
|
accordingly.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-branch-2.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-branch-r6-1.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-branch-r6-2.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-branch-mips16.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-branch-micromips.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jump-mips16.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jump-micromips.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jump.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
|
|
|
|
|
|
ld: Restore file offset after a plugin fails to claim a file
When using the plugin interface to claim an input file the claim method
from (possible) many plugins can be called on an input file. If these
claim methods read content from the input file then the file offset
stored in the underlying file descriptor will change.
As we share a file descriptor between the plugin interface (created with
dup in ld/plugin.c:plugin_object_p) and the input bfd object, then any
changes to the file offset in the file descriptor will effect the bfd
object. Also, as the changes to the file offset did not originate from
calls through the bfd interface, but instead came from the plugin
directly, then the bfd will not be aware that the file offset has
changed. This is a problem as the bfd library caches the file offset.
If the plugin decides not to claim an input file then, currently, we
leave the bfd in a state where the actual file offset is out of sync
with the cached file offset.
This problem came to light after a recent commit
7d0b9ebc1e0079271a7c7737b53bc026525eab64 (Don't include libbfd.h outside
of bfd, part 6) however, I don't believe that commit actual introduces
the bug, it just exposed the existing issue.
This commit solves the problem by backing up and restoring the file
offset for the file descriptor of the input file. The restore is only
done if the plugin does not claim the input file, as it is in this case
that the bfd library might be used again to try and identify the
unclaimed file.
ld/ChangeLog:
* plugin.c (plugin_call_claim_file): Restore the file offset after
an unsuccessful attempt to claim a file.
* testplug.c (bytes_to_read_before_claim): New global.
(record_read_length): New function, sets new global
bytes_to_read_before_claim.
(parse_option): Handle 'read:<NUMBER>' option.
(onclaim_file): Read file content before checking for claim.
* testsuite/ld-plugin/plugin-30.d: New file.
* testsuite/ld-plugin/plugin.exp: Add new test.
2016-07-18 22:00:00 +02:00
|
|
|
|
2016-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
|
|
|
|
|
|
|
|
|
|
* plugin.c (plugin_call_claim_file): Restore the file offset after
|
|
|
|
|
an unsuccessful attempt to claim a file.
|
|
|
|
|
* testplug.c (bytes_to_read_before_claim): New global.
|
|
|
|
|
(record_read_length): New function, sets new global
|
|
|
|
|
bytes_to_read_before_claim.
|
|
|
|
|
(parse_option): Handle 'read:<NUMBER>' option.
|
|
|
|
|
(onclaim_file): Read file content before checking for claim.
|
|
|
|
|
* testsuite/ld-plugin/plugin-30.d: New file.
|
|
|
|
|
* testsuite/ld-plugin/plugin.exp: Add new test.
|
|
|
|
|
|
2016-07-16 06:02:16 +02:00
|
|
|
|
2016-07-16 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* plugin.c: Don't include libbfd.h. Include plugin-api.h
|
|
|
|
|
before bfd/plugin.h.
|
|
|
|
|
(plugin_object_p): Use bfd_plugin_open_input.
|
|
|
|
|
|
2016-07-16 05:59:35 +02:00
|
|
|
|
2016-07-16 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (open_output): Replace bfd_search_for_target with
|
|
|
|
|
bfd_iterate_over_targets. Localize vars.
|
|
|
|
|
|
2016-07-16 05:55:11 +02:00
|
|
|
|
2016-07-16 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c: Don't include libbfd.h.
|
|
|
|
|
* emultempl/nds32elf.em: Likewise.
|
|
|
|
|
* emultempl/ppc64elf.em: Likewise.
|
|
|
|
|
* emultempl/ppc32elf.em: Likewise.
|
|
|
|
|
(pagesize): Delete.
|
|
|
|
|
(params): Update init.
|
|
|
|
|
(ppc_after_open_output): Use params.pagesize. Don't call bfd_log2.
|
|
|
|
|
(PARSE_AND_LIST_ARGS_CASES): Use params.pagesize.
|
|
|
|
|
* emultempl/sh64elf.em: Don't include libbfd.h.
|
|
|
|
|
(after_allocation): Use ASSERT, not BFD_ASSERT.
|
|
|
|
|
* emultempl/xtensaelf.em: Don't include libbfd.h.
|
|
|
|
|
(replace_insn_sec_with_prop_sec): Use xmalloc, not bfd_malloc.
|
|
|
|
|
* Makefile.am: Update dependencies.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2016-07-15 18:49:08 +02:00
|
|
|
|
2016-07-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
|
|
|
|
|
Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Open import
|
|
|
|
|
library file for writing and initialize implib_bfd field of link_info
|
|
|
|
|
structure.
|
|
|
|
|
* emultempl/pe.em (pe_implib_filename): Remove variable declaration.
|
|
|
|
|
(OPTION_IMPLIB_FILENAME): Remove macro definition.
|
|
|
|
|
(gld${EMULATION_NAME}_add_options): Remove --out-implib option.
|
|
|
|
|
(gld_${EMULATION_NAME}_list_options): Likewise.
|
|
|
|
|
(gld${EMULATION_NAME}_handle_option): Likewise.
|
|
|
|
|
(gld_${EMULATION_NAME}_finish): Use command_line.out_implib_filename
|
|
|
|
|
instead of pe_implib_filename.
|
|
|
|
|
* emultempl/pep.em (pep_implib_filename): Remove variable declaration.
|
|
|
|
|
(OPTION_IMPLIB_FILENAME): Remove enumerator.
|
|
|
|
|
(gld${EMULATION_NAME}_add_options): Remove --out-implib option.
|
|
|
|
|
(gld_${EMULATION_NAME}_list_options): Likewise.
|
|
|
|
|
(gld${EMULATION_NAME}_handle_option): Likewise.
|
|
|
|
|
(gld_${EMULATION_NAME}_finish): Use command_line.out_implib_filename
|
|
|
|
|
instead of pep_implib_filename.
|
|
|
|
|
* ld.h (args_type): Declare new out_implib_filename field.
|
|
|
|
|
* ld.texinfo (--out-implib): Move documentation to arch-independent
|
|
|
|
|
part and rephrase to apply to ELF targets.
|
|
|
|
|
* ldexp.c (exp_fold_tree_1): Set ldscript_def field to 1 for symbols
|
|
|
|
|
defined in linker scripts.
|
|
|
|
|
* ldlex.h (enum option_values): Declare new OPTION_OUT_IMPLIB
|
|
|
|
|
enumerator.
|
|
|
|
|
* lexsup.c (ld_options): Add entry for new --out-implib switch.
|
|
|
|
|
(parse_args): Handle OPTION_OUT_IMPLIB case.
|
|
|
|
|
* testsuite/ld-elf/elf.exp (Generate empty import library): New test.
|
|
|
|
|
(Generate import library): Likewise.
|
|
|
|
|
* testsuite/ld-elf/implib.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/implib.rd: New file.
|
|
|
|
|
* testsuite/ld-elf/empty-implib.out: Likewise
|
|
|
|
|
|
2016-07-15 13:00:03 +02:00
|
|
|
|
2016-07-15 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-arc/arc.exp: Always run the sda-relocs test in
|
|
|
|
|
little endian mode.
|
|
|
|
|
|
MIPS/GAS: Don't convert PC-relative REL relocs against absolute symbols
Don't convert PC-relative REL relocations against absolute symbols to
section-relative references and retain the original symbol reference
instead. Offsets into the absolute section may overflow the limited
range of their in-place addend field, causing an assembly error, e.g.:
$ cat test.s
.text
.globl foo
.ent foo
foo:
b bar
.end foo
.set bar, 0x12345678
$ as -EB -32 -o test.o test.s
test.s: Assembler messages:
test.s:3: Error: relocation overflow
$
With the original reference retained the source can now be assembled and
linked successfully:
$ as -EB -32 -o test.o test.s
$ objdump -dr test.o
test.o: file format elf32-tradbigmips
Disassembly of section .text:
00000000 <foo>:
0: 1000ffff b 0 <foo>
0: R_MIPS_PC16 bar
4: 00000000 nop
...
$ ld -melf32btsmip -Ttext 0x12340000 -e foo -o test test.o
$ objdump -dr test
test: file format elf32-tradbigmips
Disassembly of section .text:
12340000 <foo>:
12340000: 1000159d b 12345678 <bar>
12340004: 00000000 nop
...
$
For simplicity always retain the original symbol reference, even if it
would indeed fit.
Making TC_FORCE_RELOCATION_ABS separate from TC_FORCE_RELOCATION causes
R_MICROMIPS_PC7_S1, R_MICROMIPS_PC10_S1 and R_MICROMIPS_PC16_S1 branch
relocations against absolute symbols to be converted on RELA targets to
section-relative references. This is an intended effect of this change.
Absolute symbols carry no ISA annotation in their `st_other' field and
their value is not going to change with linker relaxation, so it is safe
to discard the original reference and keep the calculated final symbol
value only in the relocation's addend.
Similarly R6 R_MIPS_PCHI16 and R_MIPS_PCLO16 relocations referring
absolute symbols can be safely converted even on REL targets, as there
the in-place addend of these relocations covers the entire 32-bit
address space so it can hold the calculated final symbol value, and
likewise the value referred won't be affected by any linker relaxation.
Add a set of suitable test cases and enable REL linker tests which now
work and were previously used as dump patterns for RELA tests only.
gas/
* config/tc-mips.h (TC_FORCE_RELOCATION_ABS): New macro.
(mips_force_relocation_abs): New prototype.
* config/tc-mips.c (mips_force_relocation_abs): New function.
* testsuite/gas/mips/branch-absolute.d: Adjust dump patterns.
* testsuite/gas/mips/mips16-branch-absolute.d: Likewise.
* testsuite/gas/mips/micromips-branch-absolute-n32.d: Likewise.
* testsuite/gas/mips/micromips-branch-absolute-n64.d: Likewise.
* testsuite/gas/mips/micromips-branch-absolute-addend-n32.d:
Likewise.
* testsuite/gas/mips/micromips-branch-absolute-addend-n64.d:
Likewise.
* testsuite/gas/mips/branch-absolute-addend.d: New test.
* testsuite/gas/mips/mips16-branch-absolute-addend.d: New test.
* testsuite/gas/mips/micromips-branch-absolute-addend.d: New
test.
* testsuite/gas/mips/mips.exp: Run the new tests.
ld/
* testsuite/ld-mips-elf/mips-elf.exp: Run
`branch-absolute-addend', `mips16-branch-absolute',
`mips16-branch-absolute-addend' and
`micromips-branch-absolute-addend'.
2016-07-12 02:31:29 +02:00
|
|
|
|
2016-07-14 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/mips-elf.exp: Run
|
|
|
|
|
`branch-absolute-addend', `mips16-branch-absolute',
|
|
|
|
|
`mips16-branch-absolute-addend' and
|
|
|
|
|
`micromips-branch-absolute-addend'.
|
|
|
|
|
|
MIPS/GAS: Keep the ISA bit in the addend of branch relocations
Correct a problem with the ISA bit being stripped from the addend of
compressed branch relocations, affecting RELA targets. It has been
there since microMIPS support has been added, with:
commit df58fc944dbc6d5efd8d3826241b64b6af22f447
Author: Richard Sandiford <rdsandiford@googlemail.com>
Date: Sun Jul 24 14:20:15 2011 +0000
<https://sourceware.org/ml/binutils/2011-07/msg00198.html>, ("MIPS:
microMIPS ASE support") and R_MICROMIPS_PC7_S1, R_MICROMIPS_PC10_S1 and
R_MICROMIPS_PC16_S1 relocations originally affected, and the
R_MIPS16_PC16_S1 relocation recently added with commit c9775dde3277
("MIPS16: Add R_MIPS16_PC16_S1 branch relocation support") actually
triggering a linker error, due to its heightened processing strictness
level:
$ cat test.s
.text
.set mips16
foo:
b bar
.set bar, 0x1235
.align 4, 0
$ as -EB -n32 -o test.o test.s
$ objdump -dr test.o
test.o: file format elf32-ntradbigmips
Disassembly of section .text:
00000000 <foo>:
0: f000 1000 b 4 <foo+0x4>
0: R_MIPS16_PC16_S1 *ABS*+0x1230
...
$ ld -melf32btsmipn32 -Ttext 0 -e 0 -o test test.o
test.o: In function `foo':
(.text+0x0): Branch to a non-instruction-aligned address
$
This is because the ISA bit of the branch target does not match the ISA
bit of the referring branch, hardwired to 1 of course.
Retain the ISA bit then, so that the linker knows this is really MIPS16
code referred:
$ objdump -dr fixed.o
fixed.o: file format elf32-ntradbigmips
Disassembly of section .text:
00000000 <foo>:
0: f000 1000 b 4 <foo+0x4>
0: R_MIPS16_PC16_S1 *ABS*+0x1231
...
$ ld -melf32btsmipn32 -Ttext 0 -e 0 -o fixed fixed.o
$
Add a set of MIPS16 tests to cover the relevant cases, excluding linker
tests though which would overflow the in-place addend on REL targets and
use them as dump patterns for RELA targets only.
gas/
* config/tc-mips.c (md_apply_fix) <BFD_RELOC_MIPS16_16_PCREL_S1>
<BFD_RELOC_MICROMIPS_7_PCREL_S1, BFD_RELOC_MICROMIPS_10_PCREL_S1>
<BFD_RELOC_MICROMIPS_16_PCREL_S1>: Keep the ISA bit in the
addend calculated.
* testsuite/gas/mips/mips16-branch-absolute.s: Set the ISA bit
in `bar', export `foo'.
* testsuite/gas/mips/mips16-branch-absolute.d: Adjust
accordingly.
* testsuite/gas/mips/mips16-branch-absolute-n32.d: Likewise.
* testsuite/gas/mips/mips16-branch-absolute-n64.d: Likewise.
* testsuite/gas/mips/mips16-branch-absolute-addend-n32.d:
Likewise.
* testsuite/gas/mips/mips16-branch-absolute-addend-n64.d:
Likewise.
ld/
* testsuite/ld-mips-elf/mips16-branch-absolute.d: New test.
* testsuite/ld-mips-elf/mips16-branch-absolute-n32.d: New test.
* testsuite/ld-mips-elf/mips16-branch-absolute-n64.d: New test.
* testsuite/ld-mips-elf/mips16-branch-absolute-addend.d: New
test.
* testsuite/ld-mips-elf/mips16-branch-absolute-addend-n32.d: New
test.
* testsuite/ld-mips-elf/mips16-branch-absolute-addend-n64.d: New
test.
* testsuite/ld-mips-elf/mips-elf.exp: Run the new tests, except
from `mips16-branch-absolute' and
`mips16-branch-absolute-addend', referred indirectly only.
2016-07-12 02:30:48 +02:00
|
|
|
|
2016-07-14 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/mips16-branch-absolute.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/mips16-branch-absolute-n32.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/mips16-branch-absolute-n64.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/mips16-branch-absolute-addend.d: New
|
|
|
|
|
test.
|
|
|
|
|
* testsuite/ld-mips-elf/mips16-branch-absolute-addend-n32.d: New
|
|
|
|
|
test.
|
|
|
|
|
* testsuite/ld-mips-elf/mips16-branch-absolute-addend-n64.d: New
|
|
|
|
|
test.
|
|
|
|
|
* testsuite/ld-mips-elf/mips-elf.exp: Run the new tests, except
|
|
|
|
|
from `mips16-branch-absolute' and
|
|
|
|
|
`mips16-branch-absolute-addend', referred indirectly only.
|
|
|
|
|
|
BFD: Let targets handle relocations against absolute symbols
Fix a generic BFD issue with relocations against absolute symbols, which
are installed without using any individual relocation handler provided
by the backend. This causes any absolute section's addend to be lost on
REL targets such as o32 MIPS, and also relocation-specific calculation
adjustments are not made.
As an example assembling this program:
$ cat test.s
.text
foo:
b bar
b baz
.set bar, 0x1234
$ as -EB -32 -o test-o32.o test.s
$ as -EB -n32 -o test-n32.o test.s
produces this binary code:
$ objdump -dr test-o32.o test-n32.o
test-o32.o: file format elf32-tradbigmips
Disassembly of section .text:
00000000 <foo>:
0: 10000000 b 4 <foo+0x4>
0: R_MIPS_PC16 *ABS*
4: 00000000 nop
8: 1000ffff b 8 <foo+0x8>
8: R_MIPS_PC16 baz
c: 00000000 nop
test-n32.o: file format elf32-ntradbigmips
Disassembly of section .text:
00000000 <foo>:
0: 10000000 b 4 <foo+0x4>
0: R_MIPS_PC16 *ABS*+0x1230
4: 00000000 nop
8: 10000000 b c <foo+0xc>
8: R_MIPS_PC16 baz-0x4
c: 00000000 nop
$
where it is clearly visible in `test-o32.o', which uses REL relocations,
that the absolute section's addend equivalent to the value of `bar' -- a
reference to which cannot be fully resolved at the assembly time,
because the reference is PC-relative -- has been lost, as has been the
relocation-specific adjustment of -4, required to take into account the
PC+4-relative calculation made by hardware with branches and seen in the
external symbol reference to `baz' as the `ffff' addend encoded in the
instruction word. In `test-n32.o', which uses RELA relocations, the
absolute section's addend has been correctly retained.
Give precedence then in `bfd_perform_relocation' and
`bfd_install_relocation' to any individual relocation handler the
backend selected may have provided, while still resorting to the generic
calculation otherwise. This retains the semantics which we've had since
forever or before the beginning of our repository history, and is at the
very least compatible with `bfd_elf_generic_reloc' being used as the
handler.
Retain the `bfd_is_und_section' check unchanged at the beginning of
`bfd_perform_relocation' since this does not affect the semantics of the
function. The check returns the same `bfd_reloc_undefined' code the
check for a null `howto' does, so swapping the two does not matter.
Also the check is is mutually exclusive with the `bfd_is_abs_section'
check, since a section cannot be absolute and undefined both at once, so
swapping the two does not matter either.
With this change applied the program quoted above now has the in-place
addend correctly calculated and installed in the field being relocated:
$ objdump -dr fixed-o32.o
fixed-o32.o: file format elf32-tradbigmips
Disassembly of section .text:
00000000 <foo>:
0: 1000048c b 1234 <bar>
0: R_MIPS_PC16 *ABS*
4: 00000000 nop
8: 1000ffff b 8 <foo+0x8>
8: R_MIPS_PC16 baz
c: 00000000 nop
$
Add a set of MIPS tests to cover the relevant cases, including absolute
symbols with addends, and verifying that PC-relative relocations against
symbols concerned resolve to the same value in the final link regardless
of whether the REL or the RELA relocation form is used. Exclude linker
tests though which would overflow the in-place addend on REL targets and
use them as dump patterns for RELA targets only.
bfd/
* reloc.c (bfd_perform_relocation): Try the `howto' handler
first with relocations against absolute symbols.
(bfd_install_relocation): Likewise.
gas/
* testsuite/gas/mips/mips16-branch-absolute.d: Update patterns.
* testsuite/gas/mips/branch-absolute.d: New test.
* testsuite/gas/mips/branch-absolute-n32.d: New test.
* testsuite/gas/mips/branch-absolute-n64.d: New test.
* testsuite/gas/mips/branch-absolute-addend-n32.d: New test.
* testsuite/gas/mips/branch-absolute-addend-n64.d: New test.
* testsuite/gas/mips/mips16-branch-absolute-n32.d: New test.
* testsuite/gas/mips/mips16-branch-absolute-n64.d: New test.
* testsuite/gas/mips/mips16-branch-absolute-addend-n32.d: New
test.
* testsuite/gas/mips/mips16-branch-absolute-addend-n64.d: New
test.
* testsuite/gas/mips/micromips-branch-absolute.d: New test.
* testsuite/gas/mips/micromips-branch-absolute-n32.d: New test.
* testsuite/gas/mips/micromips-branch-absolute-n64.d: New test.
* testsuite/gas/mips/micromips-branch-absolute-addend-n32.d: New
test.
* testsuite/gas/mips/micromips-branch-absolute-addend-n64.d: New
test.
* testsuite/gas/mips/branch-absolute.s: New test source.
* testsuite/gas/mips/branch-absolute-addend.s: New test source.
* testsuite/gas/mips/mips16-branch-absolute-addend.s: New test
source.
* testsuite/gas/mips/micromips-branch-absolute.s: New test
source.
* testsuite/gas/mips/micromips-branch-absolute-addend.s: New
test source.
* testsuite/gas/mips/mips.exp: Run the new tests.
ld/
* testsuite/ld-mips-elf/branch-absolute.d: New test.
* testsuite/ld-mips-elf/branch-absolute-n32.d: New test.
* testsuite/ld-mips-elf/branch-absolute-n64.d: New test.
* testsuite/ld-mips-elf/branch-absolute-addend.d: New test.
* testsuite/ld-mips-elf/branch-absolute-addend-n32.d: New test.
* testsuite/ld-mips-elf/branch-absolute-addend-n64.d: New test.
* testsuite/ld-mips-elf/micromips-branch-absolute.d: New test.
* testsuite/ld-mips-elf/micromips-branch-absolute-n32.d: New
test.
* testsuite/ld-mips-elf/micromips-branch-absolute-n64.d: New
test.
* testsuite/ld-mips-elf/micromips-branch-absolute-addend.d: New
test.
* testsuite/ld-mips-elf/micromips-branch-absolute-addend-n32.d:
New test.
* testsuite/ld-mips-elf/micromips-branch-absolute-addend-n64.d:
New test.
* testsuite/ld-mips-elf/mips-elf.exp: Run the new tests, except
from `branch-absolute-addend' and
`micromips-branch-absolute-addend', referred indirectly only.
2016-07-12 02:30:01 +02:00
|
|
|
|
2016-07-14 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/branch-absolute.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/branch-absolute-n32.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/branch-absolute-n64.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/branch-absolute-addend.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/branch-absolute-addend-n32.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/branch-absolute-addend-n64.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/micromips-branch-absolute.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/micromips-branch-absolute-n32.d: New
|
|
|
|
|
test.
|
|
|
|
|
* testsuite/ld-mips-elf/micromips-branch-absolute-n64.d: New
|
|
|
|
|
test.
|
|
|
|
|
* testsuite/ld-mips-elf/micromips-branch-absolute-addend.d: New
|
|
|
|
|
test.
|
|
|
|
|
* testsuite/ld-mips-elf/micromips-branch-absolute-addend-n32.d:
|
|
|
|
|
New test.
|
|
|
|
|
* testsuite/ld-mips-elf/micromips-branch-absolute-addend-n64.d:
|
|
|
|
|
New test.
|
|
|
|
|
* testsuite/ld-mips-elf/mips-elf.exp: Run the new tests, except
|
|
|
|
|
from `branch-absolute-addend' and
|
|
|
|
|
`micromips-branch-absolute-addend', referred indirectly only.
|
|
|
|
|
|
2016-07-08 11:55:49 +02:00
|
|
|
|
2016-07-14 Claudiu Zissulescu <claziss@synopsys.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/arcelf.sh (SDATA_START_SYMBOLS): Add offset.
|
|
|
|
|
* testsuite/ld-arc/sda-relocs.dd: New file.
|
|
|
|
|
* testsuite/ld-arc/sda-relocs.ld: Likewise.
|
|
|
|
|
* testsuite/ld-arc/sda-relocs.rd: Likewise.
|
|
|
|
|
* testsuite/ld-arc/sda-relocs.s: Likewise.
|
|
|
|
|
* testsuite/ld-arc/arc.exp: Add SDA tests.
|
|
|
|
|
|
2016-07-11 15:41:23 +02:00
|
|
|
|
2016-07-11 Claudiu Zissulescu <claziss@synopsys.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-arc/nps-1b.err: Update test to handle more
|
|
|
|
|
verbosity.
|
|
|
|
|
|
2016-07-09 06:55:31 +02:00
|
|
|
|
2016-07-09 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-powerpc/elfv2exe.d: Update.
|
|
|
|
|
|
2016-07-07 03:55:25 +02:00
|
|
|
|
2016-07-06 James Bowman <james.bowman@ftdichip.com>
|
|
|
|
|
|
|
|
|
|
* scripttempl/ft32.sc (__PMSIZE): Correct __PMSIZE_.
|
|
|
|
|
(DATA): add ALIGN.
|
|
|
|
|
(BSS): add ALIGN
|
|
|
|
|
|
2016-07-05 16:35:52 +02:00
|
|
|
|
2016-07-05 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-plugin/lto.exp: Add -flto to PR ld/20321 test.
|
|
|
|
|
|
2016-07-05 12:39:06 +02:00
|
|
|
|
2016-07-05 Andre Vieria <andre.simoesdiasvieira@arm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-arm/farcall-thumb2-purecode.d: New test result.
|
|
|
|
|
* testsuite/ld-arm/farcall-thumb2-purecode.s: New test.
|
|
|
|
|
* testsuite/ld-arm/arm-elf.exp: Run it.
|
|
|
|
|
|
2016-07-05 12:28:46 +02:00
|
|
|
|
2016-07-05 Andre Vieria <andre.simoesdiasvieira@arm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-arm/arm_noread.ld: Renamed to ...
|
|
|
|
|
testsuite/ld-arm/arm_purecode.ld: ... this, and replaced
|
|
|
|
|
all noread's by purecode.
|
|
|
|
|
|
2016-07-05 11:36:08 +02:00
|
|
|
|
2016-07-05 Jan Beulich <jbeulich@suse.com>
|
|
|
|
|
|
|
|
|
|
* ldexp.c (exp_fold_tree_1): Set linker_def field based on
|
|
|
|
|
assignment line number.
|
|
|
|
|
* ldlex.l (lineno): Drop initializer.
|
|
|
|
|
(<<EOF>>): Set lineno to zero after reaching top of stack.
|
|
|
|
|
|
2016-07-04 17:55:04 +02:00
|
|
|
|
2016-07-04 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20321
|
|
|
|
|
* plugin.c (plugin_opt_plugin): Warn and return if plugin has
|
|
|
|
|
been loaded already.
|
|
|
|
|
* testsuite/ld-plugin/lto.exp: Run PR ld/20321 test.
|
|
|
|
|
* testsuite/ld-plugin/pr20321.c: New file.
|
|
|
|
|
|
2016-07-04 16:44:10 +02:00
|
|
|
|
2016-07-04 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* scripttempl/ft32.sc (__PMSIZE_): If not defined, set to 256K.
|
|
|
|
|
(__RAMSIZE): If not defined, set to 64K.
|
|
|
|
|
(MEMORY): Set the flash region size to __PMSIZE and the ram region
|
|
|
|
|
size to __RAMSIZE.
|
|
|
|
|
|
2016-07-03 00:14:20 +02:00
|
|
|
|
2016-07-02 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/branch-misc-2.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/mips-elf.exp: Run it.
|
|
|
|
|
|
2016-07-01 17:13:25 +02:00
|
|
|
|
2016-07-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-arm/arm-elf.exp (Thumb-2 BL): Assemble for ARMv7.
|
|
|
|
|
(Thumb-2 BL on ARMv6-M): New testcase.
|
|
|
|
|
* testsuite/ld-arm/thumb2-bl.d: Do not try to match testcase filename.
|
|
|
|
|
* testsuite/ld-arm/thumb2-bl.s: Do not select architecture.
|
|
|
|
|
|
2016-07-01 10:57:46 +02:00
|
|
|
|
2016-07-01 Tristan Gingold <gingold@adacore.com>
|
|
|
|
|
|
|
|
|
|
* NEWS: Add marker for 2.27.
|
|
|
|
|
|
2016-06-28 17:08:04 +02:00
|
|
|
|
2016-06-28 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-gc/gc.exp: Run pr20306 test.
|
|
|
|
|
* ld-gc/pr20306.c: New file.
|
|
|
|
|
* ld-gc/pr20306.d: Likewise.
|
|
|
|
|
|
2016-06-28 16:55:22 +02:00
|
|
|
|
2016-06-28 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/comm-data.exp: Expect comm-data2 test to fail
|
|
|
|
|
for bfin.
|
|
|
|
|
* testsuite/ld-elf/elf.exp: Expect pr14170 and symbolic function
|
|
|
|
|
tests to fail for bfin.
|
|
|
|
|
* testsuite/ld-elf/endsym.d: Expect to fail with cr16, crx, dlx,
|
|
|
|
|
nds32 and visium.
|
|
|
|
|
* testsuite/ld-elf/var1.d: Expect to fail with d30v, dlx, ft32 and
|
|
|
|
|
microblaze.
|
|
|
|
|
* testsuite/ld-pe/pe.exp: Expect foreign symbol test to fail for
|
|
|
|
|
mcore-pe.
|
|
|
|
|
|
|
|
|
|
2016-06-28 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/merge.d: Add m68hc11 to list of targets that
|
|
|
|
|
expect to fail this test.
|
|
|
|
|
* testsuite/ld-scripts/overlay-size.d: Skip the entire test for
|
|
|
|
|
RX.
|
|
|
|
|
* testsuite/ld-scripts/rgn-at10.d: No longer expect this test to
|
|
|
|
|
fail for the RX.
|
|
|
|
|
* testsuite/ld-scripts/rgn-at11.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/rgn-at2.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/rgn-at6.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/rgn-at7.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/rgn-at8.d: Likewise.
|
|
|
|
|
|
2016-06-28 13:00:56 +02:00
|
|
|
|
2016-06-28 James Clarke <jrtc27@jrtc27.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/symbolic-func.r: Allow non-zero offsets from
|
|
|
|
|
.text.
|
|
|
|
|
|
2016-06-28 12:08:58 +02:00
|
|
|
|
2016-06-28 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/attr-gnu-4-10.d: Match any UNIX OS/ABI.
|
|
|
|
|
* testsuite/ld-mips-elf/attr-gnu-4-50.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/attr-gnu-4-60.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/attr-gnu-4-70.d: Likewise.
|
|
|
|
|
|
2016-06-28 11:32:08 +02:00
|
|
|
|
2016-06-28 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20302
|
|
|
|
|
* testsuite/ld-scripts/pr20302.d: Exclude *-*-*aout.
|
|
|
|
|
|
MIPS16: Add R_MIPS16_PC16_S1 branch relocation support
For R_MIPS16_PC16_S1 the calculation is `(sign_extend(A) + S - P) >> 1'
and the usual MIPS16 bit shuffling applies to relocated field handling,
as per the encoding of the branch target in the extended form of the
MIPS16 B, BEQZ, BNEZ, BTEQZ and BTNEZ instructions.
include/
* elf/mips.h (R_MIPS16_PC16_S1): New relocation.
bfd/
* elf32-mips.c (elf_mips16_howto_table_rel): Add
R_MIPS16_PC16_S1.
(mips16_reloc_map): Likewise.
* elf64-mips.c (mips16_elf64_howto_table_rel): Likewise.
(mips16_elf64_howto_table_rela): Likewise.
(mips16_reloc_map): Likewise.
* elfn32-mips.c (elf_mips16_howto_table_rel): Likewise.
(elf_mips16_howto_table_rela): Likewise.
(mips16_reloc_map): Likewise.
* elfxx-mips.c (mips16_branch_reloc_p): New function.
(mips16_reloc_p): Handle R_MIPS16_PC16_S1.
(b_reloc_p): Likewise.
(mips_elf_calculate_relocation): Likewise.
(_bfd_mips_elf_check_relocs): Likewise.
* reloc.c (BFD_RELOC_MIPS16_16_PCREL_S1): New relocation.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
gas/
* config/tc-mips.c (mips16_reloc_p): Handle
BFD_RELOC_MIPS16_16_PCREL_S1.
(b_reloc_p): Likewise.
(limited_pcrel_reloc_p): Likewise.
(md_pcrel_from): Likewise.
(md_apply_fix): Likewise.
(tc_gen_reloc): Likewise.
(md_convert_frag): Likewise.
(mips_fix_adjustable): Update comment.
* testsuite/gas/mips/mips16-branch-reloc-2.d: Remove error
output, add dump patterns.
* testsuite/gas/mips/mips16-branch-reloc-3.d: Remove error
output, add dump patterns.
* testsuite/gas/mips/mips16-branch-addend-2.d: Remove error
output, add dump patterns.
* testsuite/gas/mips/mips16-branch-addend-3.d: Remove error
output, add dump patterns.
* testsuite/gas/mips/mips16-branch-absolute.d: Remove error
output, add dump patterns.
* testsuite/gas/mips/mips16-branch-reloc-2.l: Remove file.
* testsuite/gas/mips/mips16-branch-reloc-3.l: Remove file.
* testsuite/gas/mips/mips16-branch-addend-2.l: Remove file.
* testsuite/gas/mips/mips16-branch-addend-3.l: Remove file.
* testsuite/gas/mips/mips16-branch-absolute.l: Remove file.
* testsuite/gas/mips/mips16-branch-addend-2.s: Add padding.
* testsuite/gas/mips/branch-weak.s: Adjust alignment, avoid
implicit instruction padding, avoid MIPS16 JR->JRC conversion.
* testsuite/gas/mips/branch-weak-6.d: New test.
* testsuite/gas/mips/branch-weak-7.d: New test.
* testsuite/gas/mips/mips.exp: Run the new tests.
ld/
* testsuite/ld-mips-elf/mips16-branch-2.d: New test.
* testsuite/ld-mips-elf/mips16-branch-3.d: New test.
* testsuite/ld-mips-elf/mips16-branch-addend-2.d: New test.
* testsuite/ld-mips-elf/mips16-branch-addend-3.d: New test.
* testsuite/ld-mips-elf/mips16-branch.s: New test source.
* testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
2016-06-28 02:23:36 +02:00
|
|
|
|
2016-06-28 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/mips16-branch-2.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/mips16-branch-3.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/mips16-branch-addend-2.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/mips16-branch-addend-3.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/mips16-branch.s: New test source.
|
|
|
|
|
* testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
|
|
|
|
|
|
2016-06-27 17:35:58 +02:00
|
|
|
|
2016-06-27 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20302
|
|
|
|
|
* lexsup.c (set_segment_start): If resetting the start address of
|
|
|
|
|
a section, remember to generate a new script element as well.
|
|
|
|
|
* testsuite/ld-scripts/pr20302.d: New test.
|
|
|
|
|
* testsuite/ld-scripts/scripts.exp: Run the new test.
|
|
|
|
|
|
2016-06-24 03:50:53 +02:00
|
|
|
|
2016-06-24 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-aarch64/aarch64-elf.exp (aarch64_choose_ilp32_emul):
|
|
|
|
|
Don't error out, always return an emulation.
|
|
|
|
|
|
2016-06-24 14:21:43 +02:00
|
|
|
|
2016-06-24 Dilyan Palauzov <dilyan.palauzov@aegee.org>
|
|
|
|
|
H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* lexsup.c (elf_shlib_list_options): Check DEFAULT_LD_Z_RELRO
|
|
|
|
|
for -z relro help message.
|
|
|
|
|
|
2016-06-23 01:41:34 +02:00
|
|
|
|
2016-06-22 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/undefweak-overflow.d: Use wildcard
|
|
|
|
|
address matching.
|
|
|
|
|
|
2016-06-23 01:29:14 +02:00
|
|
|
|
2016-06-22 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/mips-elf.exp: Uniquely identify
|
|
|
|
|
`undefweak-overflow' tests.
|
|
|
|
|
|
2016-06-22 14:37:24 +02:00
|
|
|
|
2016-06-22 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20283
|
|
|
|
|
* NEWS: Mention --enable-relro.
|
|
|
|
|
* configure.ac: Add --enable-relro.
|
|
|
|
|
(DEFAULT_LD_Z_RELRO): New. Set by --enable-relro.
|
|
|
|
|
* configure.tgt (ac_default_ld_z_relro): Default it to 1 for
|
|
|
|
|
some Linux targets.
|
|
|
|
|
* config.in: Regenerated.
|
|
|
|
|
* configure: Likewise.
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
|
|
|
|
|
link_info.relro to DEFAULT_LD_Z_RELRO.
|
|
|
|
|
* testsuite/config/default.exp (ld_elf_shared_opt): New.
|
|
|
|
|
* testsuite/lib/ld-lib.exp (run_dump_test): Pass
|
|
|
|
|
$ld_elf_shared_opt to ld for ELF targets with shared object
|
|
|
|
|
support.
|
|
|
|
|
(run_ld_link_tests): Likewise.
|
|
|
|
|
|
2016-06-21 15:06:27 +02:00
|
|
|
|
2016-06-21 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/mode-change-error-1a.s: Trigger an error
|
|
|
|
|
twice rather than once.
|
|
|
|
|
* testsuite/ld-mips-elf/mode-change-error-1.d: Adjust
|
|
|
|
|
accordingly. Remove the full stop from the end of the message.
|
|
|
|
|
|
2016-06-21 15:03:08 +02:00
|
|
|
|
2016-06-21 Graham Markall <graham.markall@embecosm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-arc/nps-1a.d: Use -mcpu=arc700 -mnps400.
|
|
|
|
|
* testsuite/ld-arc/nps-1b.d: Likewise.
|
|
|
|
|
|
2016-06-20 14:10:29 +02:00
|
|
|
|
2016-06-20 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20267
|
|
|
|
|
* testsuite/ld-plugin/lto.exp (lto_link_tests): Add test for
|
|
|
|
|
PR ld/20267.
|
|
|
|
|
(lto_run_tests): Likewise.
|
|
|
|
|
* testsuite/ld-plugin/pr20267a.c: New file.
|
|
|
|
|
* testsuite/ld-plugin/pr20267b.c: Likewise.
|
|
|
|
|
|
2016-06-20 02:23:50 +02:00
|
|
|
|
2016-06-20 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20276
|
|
|
|
|
* plugin.c (plugin_notice): Set non_ir_ref on common symbols.
|
|
|
|
|
* testsuite/ld-plugin/lto.exp (lto_link_tests): Add test for
|
|
|
|
|
PR ld/20276.
|
|
|
|
|
(lto_run_tests): Likewise.
|
|
|
|
|
* testsuite/ld-plugin/pass.out: New file.
|
|
|
|
|
* testsuite/ld-plugin/pr20276a.c: Likewise.
|
|
|
|
|
* testsuite/ld-plugin/pr20276b.c: Likewise.
|
|
|
|
|
|
2016-06-18 23:15:31 +02:00
|
|
|
|
2016-06-18 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* plugin.c (plugin_object_p): Replace bfd_plugin_uknown
|
|
|
|
|
with bfd_plugin_unknown.
|
|
|
|
|
|
2016-06-18 18:16:52 +02:00
|
|
|
|
2016-06-18 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20253
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Run PR ld/20253 tests.
|
|
|
|
|
* testsuite/ld-i386/no-plt.exp: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt.exp: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr13302.d: Remove .rel.plt section.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-13-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-13-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-15-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-15-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr13082-5a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr13082-5b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr13082-6a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr13082-6b.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20244-2a.d: Remove .plt section.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-21-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-22-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20244-2b.d: Updated.
|
|
|
|
|
* testsuite/ld-i386/pr20244-2c.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-18a-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-18a-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-18b-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-18b-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20253-1a.c: New file.
|
|
|
|
|
* testsuite/ld-i386/pr20253-1b.S: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20253-1c.S: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20253-1d.S: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20253-2a.c: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20253-2b.S: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20253-2c.S: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20253-2d.S: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20253-3.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20253-3.s: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20253-4.s: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20253-4a.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20253-4b.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20253-4c.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20253-5.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20253-5.s: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-23-x86.s: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-23a-x86.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-23b-x86.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-23c-x86.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-24-x86.s: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-24b-x86.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-24c-x86.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-25-x86.s: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-25b-x86.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-25c-x86.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-1.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-1a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-1b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-1c.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-1d.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-1e.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-1f.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-1g.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-1h.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-1i.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-1j.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-1k.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-1l.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-2a.c: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-2b.S: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-2c.S: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-2d.S: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-3.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-3.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-4.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-4a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-4b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-4c.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-4d.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-4e.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-4f.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-5.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-5a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-5b.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-18a-i386.d: Remove extra IRELATIVE
|
|
|
|
|
relocation.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-18a-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-18b-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-18b-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-18a.s: Fix a typo.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Run pr20253-1 tests.
|
|
|
|
|
|
2016-06-17 19:26:08 +02:00
|
|
|
|
2016-06-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
|
|
|
|
|
Tony Wang <tony.wang@arm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-arm/arm-elf.exp (Thumb-Thumb farcall M profile):
|
|
|
|
|
Assemble for ARMv6-M.
|
|
|
|
|
(Thumb2-Thumb2 farcall M profile): New testcase.
|
|
|
|
|
* testsuite/ld-arm/farcall-thumb2-thumb2-m.d: New file.
|
|
|
|
|
* testsuite/ld-arm/jump-reloc-veneers-cond-long-backward.d: Update to
|
|
|
|
|
reflect the use of Thumb-2 veneers for Thumb-2 capable targets.
|
|
|
|
|
* testsuite/ld-arm/jump-reloc-veneers-cond-long.d: Likewise.
|
|
|
|
|
|
2016-06-16 21:38:34 +02:00
|
|
|
|
2016-06-16 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Run pr19636-2e-nacl.
|
|
|
|
|
* testsuite/ld-i386/pr19636-2e.d: Skip for NaCl targets.
|
|
|
|
|
Remove .rel.plt section.
|
|
|
|
|
* testsuite/ld-i386/pr19636-2e-nacl.d: New file.
|
|
|
|
|
|
2016-06-15 18:44:21 +02:00
|
|
|
|
2016-06-15 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-i386/no-plt-check1a.S (check): Test static
|
|
|
|
|
function pointer.
|
|
|
|
|
* testsuite/ld-i386/no-plt-check1b.S (check): Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-check1.S (check): Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-extern1a.S (func_p): New. Static
|
|
|
|
|
function pointer.
|
|
|
|
|
* testsuite/ld-i386/no-plt-extern1b.S (func_p): Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-extern1.S (func_p): Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1a.dd: Updated.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1b.dd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1c.dd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1d.dd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1e.dd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1f.dd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1g.dd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1h.dd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1i.dd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1j.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1a.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1b.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1c.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1d.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1e.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1f.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1g.dd: Likewise.
|
|
|
|
|
|
2016-06-15 08:55:30 +02:00
|
|
|
|
2016-06-14 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20254
|
|
|
|
|
* testsuite/ld-avr/avr-prop-6.d: New test.
|
|
|
|
|
* testsuite/ld-avr/avr-prop-6.s: New test.
|
|
|
|
|
|
2016-06-14 05:55:21 +02:00
|
|
|
|
2016-06-14 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ldbuildid.c: Formatting.
|
|
|
|
|
* ldcref.c: Formatting.
|
|
|
|
|
* ldctor.c: Formatting.
|
|
|
|
|
* ldemul.c: Formatting.
|
|
|
|
|
* ldexp.c: Formatting.
|
|
|
|
|
* ldfile.c: Formatting.
|
|
|
|
|
* ldlang.c: Formatting.
|
|
|
|
|
* ldmain.c: Formatting.
|
|
|
|
|
* ldwrite.c: Formatting.
|
|
|
|
|
|
2016-06-14 05:54:37 +02:00
|
|
|
|
2016-06-14 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c: Expand uses of bfd_my_archive.
|
|
|
|
|
* ldmain.c: Likewise.
|
|
|
|
|
* ldmisc.c: Likewise.
|
|
|
|
|
* plugin.c: Likewise.
|
|
|
|
|
|
2016-06-14 05:42:00 +02:00
|
|
|
|
2016-06-14 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20241
|
|
|
|
|
* ldmain.c (add_archive_element): Just print file name of file within
|
|
|
|
|
thin archives.
|
|
|
|
|
* ldmisc.c (vfinfo): Likewise.
|
|
|
|
|
* plugin.c (plugin_object_p): Open file within thin archives.
|
|
|
|
|
(plugin_maybe_claim): Expand comment.
|
|
|
|
|
|
2016-06-13 20:06:10 +02:00
|
|
|
|
2016-06-13 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20244
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Run pr20244-2a, pr20244-2b,
|
|
|
|
|
pr20244-2c and pr20244-2d.
|
|
|
|
|
* testsuite/ld-i386/no-plt.exp: Run pr20244-3a and pr20244-3b.
|
|
|
|
|
* testsuite/ld-i386/pr20244-2.s: New file.
|
|
|
|
|
* testsuite/ld-i386/pr20244-2a.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20244-2b.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20244-2c.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20244-2d.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20244-3a.c: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20244-3b.S: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20244-3c.S: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20244-3d.S: Likewise.
|
|
|
|
|
|
2016-06-13 18:27:12 +02:00
|
|
|
|
2016-06-13 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Run ifunc-1a and ifunc-1b.
|
|
|
|
|
* testsuite/ld-i386/ifunc-1a.c: New file.
|
|
|
|
|
* testsuite/ld-i386/ifunc-1b.S: Likewise.
|
|
|
|
|
* testsuite/ld-i386/ifunc-1c.S: Likewise.
|
|
|
|
|
* testsuite/ld-i386/ifunc-1d.S: Likewise.
|
|
|
|
|
|
2016-06-08 10:36:19 +02:00
|
|
|
|
2016-06-13 Cupertino Miranda <cmiranda@synospsy.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-srec/srec.exp: Changed to XFAIL on both little and
|
|
|
|
|
big endian ARC targets.
|
|
|
|
|
|
2016-06-12 16:28:58 +02:00
|
|
|
|
2016-06-12 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-x86-64/libno-plt-1b.dd: Updated for x32.
|
|
|
|
|
* testsuite/ld-x86-64/libno-plt-1b.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1a.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1a.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1b.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1b.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1c.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1c.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1d.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1e.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1e.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1f.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1f.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1g.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1g.rd: Likewise.
|
|
|
|
|
|
2016-06-12 05:44:24 +02:00
|
|
|
|
2016-06-11 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20244
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Run pr20244-1a and pr20244-1b.
|
|
|
|
|
* testsuite/ld-i386/pr20244-1.s: New file.
|
|
|
|
|
* testsuite/ld-i386/pr20244-1a.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20244-1b.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20244-1c.d: Likewise.
|
|
|
|
|
|
2016-06-09 18:17:43 +02:00
|
|
|
|
2016-06-08 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20221
|
|
|
|
|
* testsuite/ld-avr/avr-prop-5.d: New.
|
|
|
|
|
* testsuite/ld-avr/avr-prop-5.s: New.
|
|
|
|
|
|
2016-06-09 18:00:57 +02:00
|
|
|
|
2016-06-09 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
|
2016-06-09 18:17:43 +02:00
|
|
|
|
|
2016-06-09 18:00:57 +02:00
|
|
|
|
* testsuite/ld-avr/lds-mega.d: New test.
|
|
|
|
|
* testsuite/ld-avr/lds-mega.s: New test source.
|
|
|
|
|
* testsuite/ld-avr/lds-tiny.d: New test.
|
|
|
|
|
* testsuite/ld-avr/lds-tiny.s: New test source.
|
|
|
|
|
|
2016-06-10 01:54:58 +02:00
|
|
|
|
2016-06-08 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-i386/libno-plt-1b.dd: New file.
|
|
|
|
|
* testsuite/ld-i386/libno-plt-1b.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1a.dd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1a.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1b.dd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1b.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1c.dd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1c.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1d.dd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1d.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1e.dd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1e.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1f.dd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1f.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1g.dd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1g.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1h.dd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1h.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1i.dd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1i.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1j.dd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-1j.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-check1a.S: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-check1b.S: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-extern1a.S: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-extern1b.S: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-func1.c: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt-main1.c: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt.exp: Likewise.
|
|
|
|
|
|
2016-06-08 21:27:32 +02:00
|
|
|
|
2016-06-08 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-x86-64/tls.exp (run_cc_link_tests): Update test
|
|
|
|
|
name.
|
|
|
|
|
|
Support i386 TLS code sequences without PLT
We can generate i386 TLS code sequences for general and local dynamic
models without PLT, which uses indirect call via GOT:
call *___tls_get_addr@GOT(%reg)
where EBX register isn't required as GOT base, instead of direct call:
call ___tls_get_addr[@PLT]
which requires EBX register as GOT base.
Since direct call is 4-byte long and indirect call, is 5-byte long, the
extra one byte must be handled properly.
For general dynamic model, 7-byte lea instruction before call instruction
is replaced by 6-byte one to make room for indirect call. For local
dynamic model, we simply use 5-byte indirect call.
TLS linker optimization is updated to recognize new instruction patterns.
For local dynamic model to local exec model transition, we generate
a 6-byte lea instruction as nop, instead of a 1-byte nop plus a 4-byte
lea instruction. Since linker may convert
call ___tls_get_addr[@PLT]
to
addr32 call ____tls_get_addr
when producing static executable, both patterns are recognized.
bfd/
* elf64-i386.c (elf_i386_link_hash_entry): Add tls_get_addr.
(elf_i386_link_hash_newfunc): Initialize tls_get_addr to 2.
(elf_i386_check_tls_transition): Check indirect call and direct
call with the addr32 prefix for general and local dynamic models.
Set the tls_get_addr feild.
(elf_i386_convert_load_reloc): Always use addr32 prefix for
indirect ___tls_get_addr call via GOT.
(elf_i386_relocate_section): Handle GD->LE, GD->IE and LD->LE
transitions with indirect call and direct call with the addr32
prefix.
ld/
* testsuite/ld-i386/i386.exp: Run libtlspic2.so, tlsbin2,
tlsgd3, tlsld2, tlsgd4, tlspie3a, tlspie3b and tlspie3c.
* testsuite/ld-i386/pass.out: New file.
* testsuite/ld-i386/tls-def1.c: Likewise.
* testsuite/ld-i386/tls-gd1.S: Likewise.
* testsuite/ld-i386/tls-ld1.S: Likewise.
* testsuite/ld-i386/tls-main1.c: Likewise.
* testsuite/ld-i386/tls.exp: Likewise.
* testsuite/ld-i386/tlsbin2-nacl.rd: Likewise.
* testsuite/ld-i386/tlsbin2.dd: Likewise.
* testsuite/ld-i386/tlsbin2.rd: Likewise.
* testsuite/ld-i386/tlsbin2.sd: Likewise.
* testsuite/ld-i386/tlsbin2.td: Likewise.
* testsuite/ld-i386/tlsbinpic2.s: Likewise.
* testsuite/ld-i386/tlsgd3.dd: Likewise.
* testsuite/ld-i386/tlsgd3.s: Likewise.
* testsuite/ld-i386/tlsgd4.d: Likewise.
* testsuite/ld-i386/tlsgd4.s: Likewise.
* testsuite/ld-i386/tlsld2.s: Likewise.
* testsuite/ld-i386/tlspic2-nacl.rd: Likewise.
* testsuite/ld-i386/tlspic2.dd: Likewise.
* testsuite/ld-i386/tlspic2.rd: Likewise.
* testsuite/ld-i386/tlspic2.sd: Likewise.
* testsuite/ld-i386/tlspic2.td: Likewise.
* testsuite/ld-i386/tlspic3.s: Likewise.
* testsuite/ld-i386/tlspie3.s: Likewise.
* testsuite/ld-i386/tlspie3a.d: Likewise.
* testsuite/ld-i386/tlspie3b.d: Likewise.
* testsuite/ld-i386/tlspie3c.d: Likewise.
2016-06-08 20:59:47 +02:00
|
|
|
|
2016-06-08 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Run libtlspic2.so, tlsbin2,
|
|
|
|
|
tlsgd3, tlsld2, tlsgd4, tlspie3a, tlspie3b and tlspie3c.
|
|
|
|
|
* testsuite/ld-i386/pass.out: New file.
|
|
|
|
|
* testsuite/ld-i386/tls-def1.c: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tls-gd1.S: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tls-ld1.S: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tls-main1.c: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tls.exp: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsbin2-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsbin2.dd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsbin2.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsbin2.sd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsbin2.td: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsbinpic2.s: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsgd3.dd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsgd3.s: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsgd4.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsgd4.s: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsld2.s: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlspic2-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlspic2.dd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlspic2.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlspic2.sd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlspic2.td: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlspic3.s: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlspie3.s: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlspie3a.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlspie3b.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlspie3c.d: Likewise.
|
|
|
|
|
|
2016-06-08 19:10:56 +02:00
|
|
|
|
2016-06-08 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1a.rd: Support any relocation order.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1b.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1c.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1d.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1e.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1f.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1g.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt.exp: Fix a typo.
|
|
|
|
|
|
2016-06-08 16:47:07 +02:00
|
|
|
|
2016-06-08 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-x86-64/libno-plt-1b.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/libno-plt-1b.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1a.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1a.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1b.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1b.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1c.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1c.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1d.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1d.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1e.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1e.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1f.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1f.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1g.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-1g.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-check1.S: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt.exp: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-extern1.S: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-func1.c: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt-main1.c: Likewise.
|
|
|
|
|
|
2016-05-27 18:53:01 +02:00
|
|
|
|
2016-06-07 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/init-fini-arrays.d: Remove `ft32-*-*' xfail.
|
|
|
|
|
|
2016-06-07 16:45:15 +02:00
|
|
|
|
2016-06-07 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-s390/pltoffset-1.dd: New test.
|
|
|
|
|
* testsuite/ld-s390/pltoffset-1.ld: New test.
|
|
|
|
|
* testsuite/ld-s390/pltoffset-1.s: New test.
|
|
|
|
|
* testsuite/ld-s390/s390.exp: Run new test.
|
|
|
|
|
|
PowerPC VLE
VLE is an encoding, not a particular processor architecture, so it
isn't really proper to select insns based on PPC_OPCODE_VLE. For
example
{"evaddw", VX (4, 512), VX_MASK, PPCSPE|PPCVLE, PPCNONE, {RS, RA, RB}},
{"vaddubs", VX (4, 512), VX_MASK, PPCVEC|PPCVLE, PPCNONE, {VD, VA, VB}},
shows two insns that have the same encoding, both available with VLE.
Enabling both with VLE means we can't disassemble the second variant
even if -Maltivec is given rather than -Mspe. Also, we don't check
user assembly against the processor type as well as we could.
Another problem is that when using the VLE encoding, insns from the
main ppc opcode table are not available, except those using opcode 4
and 31. Correcting this revealed two errors in the ld testsuite,
use of "nop" and "rfmci" when -mvle.
This patch fixes those problems in the opcode table, and removes
PPCNONE. I find a plain 0 distracts less from other values.
In addition, I've implemented code to recognize some machine values
from the apuinfo note present in ppc32 objects. It's not a complete
disambiguation since we're lacking info to detect newer chips, but
what we have should help with disassembly.
include/
* elf/ppc.h (APUINFO_SECTION_NAME, APUINFO_LABEL, PPC_APUINFO_ISEL,
PPC_APUINFO_PMR, PPC_APUINFO_RFMCI, PPC_APUINFO_CACHELCK,
PPC_APUINFO_SPE, PPC_APUINFO_EFS, PPC_APUINFO_BRLOCK,
PPC_APUINFO_VLE: Define.
opcodes/
* ppc-dis.c (ppc_opts): Delete extraneous parentheses. Default
cpu for "vle" to e500.
* ppc-opc.c (ALLOW8_SPRG): Remove PPC_OPCODE_VLE.
(NO371, PPCSPE, PPCISEL, PPCEFS, MULHW, DCBT_EO): Likewise.
(PPCNONE): Delete, substitute throughout.
(powerpc_opcodes): Remove PPCVLE from "flags". Add to "deprecated"
except for major opcode 4 and 31.
(vle_opcodes <se_rfmci>): Add PPCRFMCI to flags.
bfd/
* cpu-powerpc.c (powerpc_compatible): Allow bfd_mach_ppc_vle entry
to match other 32-bit archs.
* elf32-ppc.c (_bfd_elf_ppc_set_arch): New function.
(ppc_elf_object_p): Call it.
(ppc_elf_special_sections): Use APUINFO_SECTION_NAME. Fix
overlong line.
(APUINFO_SECTION_NAME, APUINFO_LABEL): Don't define here.
* elf64-ppc.c (ppc64_elf_object_p): Call _bfd_elf_ppc_set_arch.
* bfd-in.h (_bfd_elf_ppc_at_tls_transform,
_bfd_elf_ppc_at_tprel_transform): Move to..
* elf-bfd.h: ..here.
(_bfd_elf_ppc_set_arch): Declare.
* bfd-in2.h: Regenerate.
gas/
* config/tc-ppc.c (PPC_APUINFO_ISEL, PPC_APUINFO_PMR,
PPC_APUINFO_RFMCI, PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE,
PPC_APUINFO_EFS, PPC_APUINFO_BRLOCK, PPC_APUINFO_VLE): Don't define.
(ppc_setup_opcodes): Check vle disables powerpc_opcodes overridden
by vle_opcodes, and that vle flag doesn't enable opcodes. Don't
add vle_opcodes twice.
(ppc_cleanup): Use APUINFO_SECTION_NAME and APUINFO_LABEL.
ld/
* testsuite/ld-powerpc/apuinfo1.s: Delete nop.
* testsuite/ld-powerpc/apuinfo-vle2.s: New.
* testsuite/ld-powerpc/powerpc.exp: Use apuinfo-vle2.s.
2016-06-07 14:34:38 +02:00
|
|
|
|
2016-06-07 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-powerpc/apuinfo1.s: Delete nop.
|
|
|
|
|
* testsuite/ld-powerpc/apuinfo-vle2.s: New.
|
|
|
|
|
* testsuite/ld-powerpc/powerpc.exp: Use apuinfo-vle2.s.
|
|
|
|
|
|
Support x86-64 TLS code sequences without PLT
We can generate x86-64 TLS code sequences for general and local dynamic
models without PLT, which uses indirect call via GOT:
call *__tls_get_addr@GOTPCREL(%rip)
instead of direct call:
call __tls_get_addr[@PLT]
Since direct call is 4-byte long and indirect call, is 5-byte long, the
extra one byte must be handled properly.
For general dynamic model, one 0x66 prefix before call instruction is
removed to make room for indirect call. For local dynamic model, we
simply use 5-byte indirect call.
TLS linker optimization is updated to recognize new instruction patterns.
For local dynamic model to local exec model transition, we generate
4 0x66 prefixes, instead of 3, before mov instruction in 64-bit and
generate a 5-byte nop, instead of 4-byte, before mov instruction in
32-bit. Since linker may convert
call *__tls_get_addr@GOTPCREL(%rip)
to
addr32 call __tls_get_addr
when producing static executable, both patterns are recognized.
bfd/
* elf64-x86-64.c (elf_x86_64_link_hash_entry): Add tls_get_addr.
(elf_x86_64_link_hash_newfunc): Initialize tls_get_addr to 2.
(elf_x86_64_check_tls_transition): Check indirect call and
direct call with the addr32 prefix for general and local dynamic
models. Set the tls_get_addr feild.
(elf_x86_64_convert_load_reloc): Always use addr32 prefix for
indirect __tls_get_addr call via GOT.
(elf_x86_64_relocate_section): Handle GD->LE, GD->IE and LD->LE
transitions with indirect call and direct call with the addr32
prefix.
ld/
* testsuite/ld-x86-64/pass.out: New file.
* testsuite/ld-x86-64/tls-def1.c: Likewise.
* testsuite/ld-x86-64/tls-gd1.S: Likewise.
* testsuite/ld-x86-64/tls-ld1.S: Likewise.
* testsuite/ld-x86-64/tls-main1.c: Likewise.
* testsuite/ld-x86-64/tls.exp: Likewise.
* testsuite/ld-x86-64/tlsbin2-nacl.rd: Likewise.
* testsuite/ld-x86-64/tlsbin2.dd: Likewise.
* testsuite/ld-x86-64/tlsbin2.rd: Likewise.
* testsuite/ld-x86-64/tlsbin2.sd: Likewise.
* testsuite/ld-x86-64/tlsbin2.td: Likewise.
* testsuite/ld-x86-64/tlsbinpic2.s: Likewise.
* testsuite/ld-x86-64/tlsgd10.dd: Likewise.
* testsuite/ld-x86-64/tlsgd10.s: Likewise.
* testsuite/ld-x86-64/tlsgd11.dd: Likewise.
* testsuite/ld-x86-64/tlsgd11.s: Likewise.
* testsuite/ld-x86-64/tlsgd12.d: Likewise.
* testsuite/ld-x86-64/tlsgd12.s: Likewise.
* testsuite/ld-x86-64/tlsgd13.d: Likewise.
* testsuite/ld-x86-64/tlsgd13.s: Likewise.
* testsuite/ld-x86-64/tlsgd14.dd: Likewise.
* testsuite/ld-x86-64/tlsgd14.s: Likewise.
* testsuite/ld-x86-64/tlsgd5c.s: Likewise.
* testsuite/ld-x86-64/tlsgd6c.s: Likewise.
* testsuite/ld-x86-64/tlsgd9.dd: Likewise.
* testsuite/ld-x86-64/tlsgd9.s: Likewise.
* testsuite/ld-x86-64/tlsld4.dd: Likewise.
* testsuite/ld-x86-64/tlsld4.s: Likewise.
* testsuite/ld-x86-64/tlsld5.dd: Likewise.
* testsuite/ld-x86-64/tlsld5.s: Likewise.
* testsuite/ld-x86-64/tlsld6.dd: Likewise.
* testsuite/ld-x86-64/tlsld6.s: Likewise.
* testsuite/ld-x86-64/tlspic2-nacl.rd: Likewise.
* testsuite/ld-x86-64/tlspic2.dd: Likewise.
* testsuite/ld-x86-64/tlspic2.rd: Likewise.
* testsuite/ld-x86-64/tlspic2.sd: Likewise.
* testsuite/ld-x86-64/tlspic2.td: Likewise.
* testsuite/ld-x86-64/tlspic3.s: Likewise.
* testsuite/ld-x86-64/tlspie2.s: Likewise.
* testsuite/ld-x86-64/tlspie2a.d: Likewise.
* testsuite/ld-x86-64/tlspie2b.d: Likewise.
* testsuite/ld-x86-64/tlspie2c.d: Likewise.
* testsuite/ld-x86-64/tlsgd5.dd: Updated.
* testsuite/ld-x86-64/tlsgd6.dd: Likewise.
* testsuite/ld-x86-64/x86-64.exp: Run libtlspic2.so, tlsbin2,
tlsgd5b, tlsgd6b, tlsld4, tlsld5, tlsld6, tlsgd9, tlsgd10,
tlsgd11, tlsgd14, tlsgd12, tlsgd13, tlspie2a, tlspie2b and
tlspie2c.
2016-06-06 20:06:55 +02:00
|
|
|
|
2016-06-06 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-x86-64/pass.out: New file.
|
|
|
|
|
* testsuite/ld-x86-64/tls-def1.c: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tls-gd1.S: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tls-ld1.S: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tls-main1.c: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tls.exp: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsbin2-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsbin2.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsbin2.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsbin2.sd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsbin2.td: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsbinpic2.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsgd10.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsgd10.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsgd11.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsgd11.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsgd12.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsgd12.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsgd13.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsgd13.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsgd14.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsgd14.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsgd5c.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsgd6c.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsgd9.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsgd9.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsld4.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsld4.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsld5.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsld5.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsld6.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsld6.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlspic2-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlspic2.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlspic2.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlspic2.sd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlspic2.td: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlspic3.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlspie2.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlspie2a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlspie2b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlspie2c.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsgd5.dd: Updated.
|
|
|
|
|
* testsuite/ld-x86-64/tlsgd6.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Run libtlspic2.so, tlsbin2,
|
|
|
|
|
tlsgd5b, tlsgd6b, tlsld4, tlsld5, tlsld6, tlsgd9, tlsgd10,
|
|
|
|
|
tlsgd11, tlsgd14, tlsgd12, tlsgd13, tlspie2a, tlspie2b and
|
|
|
|
|
tlspie2c.
|
|
|
|
|
|
2016-06-04 22:15:52 +02:00
|
|
|
|
2016-06-04 Christian Groessler <chris@groessler.org>
|
|
|
|
|
|
2016-06-06 09:47:25 +02:00
|
|
|
|
* testsuite/ld-z8k/0filler.s: New file.
|
|
|
|
|
* testsuite/ld-z8k/branch-target.s: New file.
|
|
|
|
|
* testsuite/ld-z8k/branch-target2.s: New file.
|
|
|
|
|
* testsuite/ld-z8k/calr-back-8001.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/calr-back-8002.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/calr-back-fail-8001.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/calr-back-fail-8002.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/calr-forw-8001.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/calr-forw-8002.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/calr-forw-fail-8001.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/calr-forw-fail-8002.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/calr-opcode.s: New file.
|
|
|
|
|
* testsuite/ld-z8k/dbjnz-forw-8001.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/dbjnz-forw-8002.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/dbjnz-forw-fail-8001.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/dbjnz-forw-fail-8002.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/dbjnz-opcode.s: New file.
|
|
|
|
|
* testsuite/ld-z8k/djnz-back-8001.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/djnz-back-8002.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/djnz-back-fail-8001.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/djnz-back-fail-8002.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/djnz-forw-8001.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/djnz-forw-8002.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/djnz-forw-fail-8001.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/djnz-forw-fail-8002.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/djnz-opcode.s: New file.
|
|
|
|
|
* testsuite/ld-z8k/filler.s: New file.
|
|
|
|
|
* testsuite/ld-z8k/jr-back-8001.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/jr-back-8002.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/jr-back-fail-8001.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/jr-back-fail-8002.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/jr-forw-8001.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/jr-forw-8002.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/jr-forw-fail-8001.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/jr-forw-fail-8002.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/jr-opcode.s: New file.
|
|
|
|
|
* testsuite/ld-z8k/ldr-back-8001.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/ldr-back-8002.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/ldr-back-fail-8001.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/ldr-back-fail-8002.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/ldr-forw-8001.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/ldr-forw-8002.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/ldr-forw-fail-8001.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/ldr-forw-fail-8002.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/ldr-opcode.s: New file.
|
|
|
|
|
* testsuite/ld-z8k/ldrb-forw-8001.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/ldrb-forw-8002.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/ldrb-forw-fail-8001.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/ldrb-forw-fail-8002.d: New file.
|
|
|
|
|
* testsuite/ld-z8k/ldrb-opcode.s: New file.
|
|
|
|
|
* testsuite/ld-z8k/ldrb-opcode2.s: New file.
|
|
|
|
|
* testsuite/ld-z8k/other-file.s: New file.
|
|
|
|
|
* testsuite/ld-z8k/reloc.dd: New file.
|
|
|
|
|
* testsuite/ld-z8k/reloc.ld: New file.
|
|
|
|
|
* testsuite/ld-z8k/relocseg.dd: New file.
|
|
|
|
|
* testsuite/ld-z8k/relocseg.ld: New file.
|
|
|
|
|
* testsuite/ld-z8k/relocseg1.dd: New file.
|
|
|
|
|
* testsuite/ld-z8k/this-file.s: New file.
|
|
|
|
|
* testsuite/ld-z8k/z8k.exp: New file.
|
2016-06-04 22:15:52 +02:00
|
|
|
|
|
2016-06-03 13:10:11 +02:00
|
|
|
|
2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Assemble gotpc1.o and pr19319b.o
|
|
|
|
|
with -mrelax-relocations=yes.
|
|
|
|
|
* testsuite/ld-i386/lea1a.d (as): Add -mrelax-relocations=yes.
|
|
|
|
|
* testsuite/ld-i386/lea1b.d (as): Likewise.
|
|
|
|
|
* testsuite/ld-i386/lea1d.d (as): Likewise.
|
|
|
|
|
* testsuite/ld-i386/lea1e.d (as): Likewise.
|
|
|
|
|
* testsuite/ld-i386/lea1f.d (as): Likewise.
|
|
|
|
|
* testsuite/ld-i386/load7.d (as): Likewise.
|
|
|
|
|
* testsuite/ld-i386/mov1b.d (as): Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19175.d (as): Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-13-i386.d (as): Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-21-i386.d (as): Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-22-i386.d (as): Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Assemble gotpcrel1a.o,
|
|
|
|
|
gotpcrel1b.o and gotpcrel1c.o with -mrelax-relocations=yes.
|
|
|
|
|
|
2016-06-02 16:03:47 +02:00
|
|
|
|
2016-06-02 Vineet Gupta <Vineet.Gupta1@synopsys.com>
|
|
|
|
|
|
|
|
|
|
* configure.tgt: Replace -uclibc with *.
|
|
|
|
|
|
2016-05-28 11:57:58 +02:00
|
|
|
|
2016-05-28 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-branch.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-branch.s: New test source.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-text.s: New test source.
|
|
|
|
|
* testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
|
|
|
|
|
|
2016-05-28 11:28:05 +02:00
|
|
|
|
2016-05-28 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-syms.s: Rename to...
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-data.s: ... this.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-ldpc-0.d: Adjust accordingly.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-ldpc-1.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-lwpc-0.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-lwpc-1.d: Likewise.
|
|
|
|
|
|
MIPS/BFD: Enable local R_MIPS_26 overflow detection
The original MIPS SVR4 psABI defines the calculation for the R_MIPS_26
relocation in a complex way, as follows[1]:
Name Value Field Symbol Calculation
R_MIPS_26 4 T-targ26 local (((A << 2) | \
(P & 0xf0000000)) + S) >> 2
4 T-targ26 external (sign-extend(A << 2) + S) >> 2
This is further clarified, by correcting typos (already applied in the
excerpt above) in the 64-bit psABI extension[2]. A note is included in
both documents to specify that for the purpose of relocation processing
a local symbol is one with binding STB_LOCAL and type STT_SECTION, and
otherwise, a symbol is external.
We have both calculations implemented for the R_MIPS_26 relocation, and
by extension also for the R_MIPS16_26 and R_MICROMIPS_26_S1 relocations,
from now on collectively called jump relocations. However our code uses
a different condition to tell local and external symbols apart, that is
it only checks for the STB_LOCAL binding and ignores the symbol type,
however for REL relocations only. The external calculation is used for
all RELA jump relocations.
In reality the difference matters for jump relocations referring local
MIPS16 and, as from recent commit 44d3da233815 ("MIPS/GAS: Treat local
jump relocs the same no matter if REL or RELA"), also local microMIPS
symbols. Such relocations are not converted to refer to corresponding
section symbols instead and retain the original local symbol reference.
It can be inferred from the relocation calculation definitions that the
addend is effectively unsigned for the local case and explicitly signed
for the external case. With the REL relocation format it makes sense
given the limited range provided for by the field being relocated: the
use of an unsigned addend expands the range by one bit for the local
case, because a negative offset from a section symbol makes no sense,
and any usable negative offset from the original local symbol will have
worked out positive if converted to a section-relative reference. In
the external case a signed addend gives more flexibility as offsets both
negative and positive can be used with a symbol. Any such offsets will
typically have a small value.
The inclusion of the (P & 0xf0000000) component, ORed in the calculation
in the local case, seems questionable as bits 31:28 are not included in
the relocatable field and are masked out as the relocation is applied.
Their value is therefore irrelevant for output processing, the relocated
field ends up the same regardless of their value. They could be used
for overflow detection, however this is precluded by adding them to bits
31:28 of the symbol referred, as the sum will not correspond to the
value calculated by the processor at run time whenever bits 31:28 of the
symbol referred are not all zeros, even though it is valid as long they
are the same as bits 31:28 of P.
We deal with this problem by ignoring any overflow resulting from the
local calculation. This however makes us miss genuine overflow cases,
where 31:28 of the symbol referred are different from bits 31:28 of P,
and non-functional code is produced.
Given the situation, for the purpose of overflow detection we can change
our code to follow the original psABI and only treat the in-place addend
as unsigned in the section symbol case, permitting jumps to offsets
128MiB and above into section. Sections so large may be uncommon, but
still a reasonable use case. On the other hand such large offsets from
regular local symbols are not expected and it makes sense to support
(possibly small) negative offsets instead, also in consistency with what
we do for global symbols.
Drop the (P & 0xf0000000) component then, treat the addend as signed
with local non-section symbols and also detect an overflow in the result
of such calculation with local symbols. NB it does not affect the value
computed for the relocatable field, it only affects overflow detection.
References:
[1] "SYSTEM V APPLICATION BINARY INTERFACE, MIPS RISC Processor
Supplement, 3rd Edition", Figure 4-11: "Relocation Types", p. 4-19
<http://www.linux-mips.org/pub/linux/mips/doc/ABI/mipsabi.pdf>
[2] "64-bit ELF Object File Specification, Draft Version 2.5", Table 32
"Relocation Types", p. 45
<http://techpubs.sgi.com/library/manuals/4000/007-4658-001/pdf/007-4658-001.pdf>
bfd/
* elfxx-mips.c (mips_elf_calculate_relocation): <R_MIPS16_26>
<R_MIPS_26, R_MICROMIPS_26_S1>: Drop the region bits of the
reloc location from calculation, treat the addend as signed with
local non-section symbols and enable overflow detection.
ld/
* testsuite/ld-mips-elf/jal-global-overflow-0.d: New test.
* testsuite/ld-mips-elf/jal-global-overflow-1.d: New test.
* testsuite/ld-mips-elf/jal-local-overflow-0.d: New test.
* testsuite/ld-mips-elf/jal-local-overflow-1.d: New test.
* testsuite/ld-mips-elf/jal-global-overflow.s: New test source.
* testsuite/ld-mips-elf/jal-local-overflow.s: New test source.
* testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
2016-05-28 11:30:22 +02:00
|
|
|
|
2016-05-28 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/jal-global-overflow-0.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/jal-global-overflow-1.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/jal-local-overflow-0.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/jal-local-overflow-1.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/jal-global-overflow.s: New test source.
|
|
|
|
|
* testsuite/ld-mips-elf/jal-local-overflow.s: New test source.
|
|
|
|
|
* testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
|
|
|
|
|
|
Return void from linker callbacks
The ldmain.c implementation of these linker callback functions always
return true, so any code handling a false return is dead. What's
more, some of the bfd backends abort if ever a false return is seen,
and there seems to be some confusion in gdb's compile-object-load.c.
The return value was never meant to be "oh yes, a multiple_definition
error occurred", but rather "out of memory or other catastrophic
failure".
This patch removes the status return on the callbacks that always
return true. I kept the return status for "notice" because that one
does happen to need to return "out of memory".
include/
* bfdlink.h (struct bfd_link_callbacks): Update comments.
Return void from multiple_definition, multiple_common,
add_to_set, constructor, warning, undefined_symbol,
reloc_overflow, reloc_dangerous and unattached_reloc.
bfd/
* aoutx.h: Adjust linker callback calls throughout file,
removing dead code.
* bout.c: Likewise.
* coff-alpha.c: Likewise.
* coff-arm.c: Likewise.
* coff-h8300.c: Likewise.
* coff-h8500.c: Likewise.
* coff-i960.c: Likewise.
* coff-mcore.c: Likewise.
* coff-mips.c: Likewise.
* coff-ppc.c: Likewise.
* coff-rs6000.c: Likewise.
* coff-sh.c: Likewise.
* coff-tic80.c: Likewise.
* coff-w65.c: Likewise.
* coff-z80.c: Likewise.
* coff-z8k.c: Likewise.
* coff64-rs6000.c: Likewise.
* cofflink.c: Likewise.
* ecoff.c: Likewise.
* elf-bfd.h: Likewise.
* elf-m10200.c: Likewise.
* elf-m10300.c: Likewise.
* elf32-arc.c: Likewise.
* elf32-arm.c: Likewise.
* elf32-avr.c: Likewise.
* elf32-bfin.c: Likewise.
* elf32-cr16.c: Likewise.
* elf32-cr16c.c: Likewise.
* elf32-cris.c: Likewise.
* elf32-crx.c: Likewise.
* elf32-d10v.c: Likewise.
* elf32-epiphany.c: Likewise.
* elf32-fr30.c: Likewise.
* elf32-frv.c: Likewise.
* elf32-ft32.c: Likewise.
* elf32-h8300.c: Likewise.
* elf32-hppa.c: Likewise.
* elf32-i370.c: Likewise.
* elf32-i386.c: Likewise.
* elf32-i860.c: Likewise.
* elf32-ip2k.c: Likewise.
* elf32-iq2000.c: Likewise.
* elf32-lm32.c: Likewise.
* elf32-m32c.c: Likewise.
* elf32-m32r.c: Likewise.
* elf32-m68hc1x.c: Likewise.
* elf32-m68k.c: Likewise.
* elf32-mep.c: Likewise.
* elf32-metag.c: Likewise.
* elf32-microblaze.c: Likewise.
* elf32-moxie.c: Likewise.
* elf32-msp430.c: Likewise.
* elf32-mt.c: Likewise.
* elf32-nds32.c: Likewise.
* elf32-nios2.c: Likewise.
* elf32-or1k.c: Likewise.
* elf32-ppc.c: Likewise.
* elf32-s390.c: Likewise.
* elf32-score.c: Likewise.
* elf32-score7.c: Likewise.
* elf32-sh.c: Likewise.
* elf32-sh64.c: Likewise.
* elf32-spu.c: Likewise.
* elf32-tic6x.c: Likewise.
* elf32-tilepro.c: Likewise.
* elf32-v850.c: Likewise.
* elf32-vax.c: Likewise.
* elf32-visium.c: Likewise.
* elf32-xstormy16.c: Likewise.
* elf32-xtensa.c: Likewise.
* elf64-alpha.c: Likewise.
* elf64-hppa.c: Likewise.
* elf64-ia64-vms.c: Likewise.
* elf64-mmix.c: Likewise.
* elf64-ppc.c: Likewise.
* elf64-s390.c: Likewise.
* elf64-sh64.c: Likewise.
* elf64-x86-64.c: Likewise.
* elflink.c: Likewise.
* elfnn-aarch64.c: Likewise.
* elfnn-ia64.c: Likewise.
* elfxx-mips.c: Likewise.
* elfxx-sparc.c: Likewise.
* elfxx-tilegx.c: Likewise.
* linker.c: Likewise.
* pdp11.c: Likewise.
* pe-mips.c: Likewise.
* reloc.c: Likewise.
* reloc16.c: Likewise.
* simple.c: Likewise.
* vms-alpha.c: Likewise.
* xcofflink.c: Likewise.
* elf32-rl78.c (get_symbol_value, get_romstart, get_ramstart): Delete
status param. Adjust calls to these and linker callbacks throughout.
* elf32-rx.c: (get_symbol_value, get_gp, get_romstart,
get_ramstart): Delete status param. Adjust calls to these and
linker callbacks throughout.
ld/
* ldmain.c (multiple_definition, multiple_common, add_to_set,
constructor_callback, warning_callback, undefined_symbol,
reloc_overflow, reloc_dangerous, unattached_reloc): Return void.
* emultempl/elf32.em: Adjust callback calls.
gdb/
* compile/compile-object-load.c (link_callbacks_multiple_definition,
link_callbacks_warning, link_callbacks_undefined_symbol,
link_callbacks_undefined_symbol, link_callbacks_reloc_overflow,
link_callbacks_reloc_dangerous,
link_callbacks_unattached_reloc): Return void.
2016-05-27 09:50:55 +02:00
|
|
|
|
2016-05-28 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ldmain.c (multiple_definition, multiple_common, add_to_set,
|
|
|
|
|
constructor_callback, warning_callback, undefined_symbol,
|
|
|
|
|
reloc_overflow, reloc_dangerous, unattached_reloc): Return void.
|
|
|
|
|
* emultempl/elf32.em: Adjust callback calls.
|
|
|
|
|
|
2016-05-27 21:43:05 +02:00
|
|
|
|
2016-05-27 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-addend-0.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-addend-1.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-0.d: New
|
|
|
|
|
test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d: New
|
|
|
|
|
test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-0.d: New
|
|
|
|
|
test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d: New
|
|
|
|
|
test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-addend-0.s: New test
|
|
|
|
|
source.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-addend-1.s: New test
|
|
|
|
|
source.
|
|
|
|
|
* testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
|
|
|
|
|
|
2016-05-27 21:41:40 +02:00
|
|
|
|
2016-05-27 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/reloc-local-overflow.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/reloc-local-overflow.s: Source for the
|
|
|
|
|
new test.
|
|
|
|
|
* testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
|
|
|
|
|
|
2016-05-26 13:24:45 +02:00
|
|
|
|
2016-05-26 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-0.d: Fold
|
|
|
|
|
`unaligned-jalx-2' here.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-mips16-0.d: Fold
|
|
|
|
|
`unaligned-jalx-mips16-2' here.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-micromips-0.d: Fold
|
|
|
|
|
`unaligned-jalx-micromips-2' here.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-0.s: Update accordingly.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-1.d: Update error
|
|
|
|
|
message.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-mips16-1.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-micromips-1.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-2.d: Remove test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-mips16-2.d: Remove test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-micromips-2.d: Remove
|
|
|
|
|
test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-2.s: Remove test source.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-lwpc-0.d: Fold
|
|
|
|
|
`unaligned-lwpc-3' here.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-lwpc-0.s: Update accordingly.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-lwpc-1.d: Fold
|
|
|
|
|
`unaligned-lwpc-2' here.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-lwpc-1.s: Update accordingly.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-lwpc-2.d: Remove test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-lwpc-2.s: Remove test source.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-lwpc-3.d: Remove test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-lwpc-3.s: Remove test source.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-ldpc-0.d: Fold
|
|
|
|
|
`unaligned-ldpc-4' here.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-ldpc-0.s: Update accordingly.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-ldpc-1.d: Update error
|
|
|
|
|
message. Fold `unaligned-ldpc-2' and `unaligned-ldpc-3' here.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-ldpc-1.s: Update accordingly.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-ldpc-2.d: Remove test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-ldpc-2.s: Remove test source.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-ldpc-3.d: Remove test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-ldpc-3.s: Remove test source.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-ldpc-4.d: Remove test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-ldpc-4.s: Remove test source.
|
|
|
|
|
* testsuite/ld-mips-elf/mips-elf.exp: Delete removed tests.
|
|
|
|
|
|
2016-05-26 12:43:38 +02:00
|
|
|
|
2016-05-26 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR target/20134
|
|
|
|
|
* scripttempl/elf32msp430.sc (.bss): Provide __bssstart and
|
|
|
|
|
__bsssize.
|
|
|
|
|
* scripttempl/elf32msp430_3.sc (.bss): Likewise.
|
|
|
|
|
|
2016-05-25 21:59:37 +02:00
|
|
|
|
2016-05-25 Maciej W. Rozycki <macro@imgtec.com>
|
2016-05-26 12:43:38 +02:00
|
|
|
|
|
2016-05-25 21:59:37 +02:00
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-0.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-1.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-2.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-mips16-0.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-mips16-1.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-mips16-2.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-micromips-0.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-micromips-1.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-micromips-2.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-lwpc-0.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-lwpc-1.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-lwpc-2.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-lwpc-3.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-ldpc-0.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-ldpc-1.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-ldpc-2.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-ldpc-3.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-ldpc-4.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-0.s: New test source.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-1.s: New test source.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jalx-2.s: New test source.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-insn.s: New test source.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-lwpc-0.s: New test source.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-lwpc-1.s: New test source.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-lwpc-2.s: New test source.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-lwpc-3.s: New test source.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-ldpc-0.s: New test source.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-ldpc-1.s: New test source.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-ldpc-2.s: New test source.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-ldpc-3.s: New test source.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-ldpc-4.s: New test source.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-syms.s: New test source.
|
|
|
|
|
* testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
|
|
|
|
|
|
2016-05-25 17:40:52 +02:00
|
|
|
|
2016-05-25 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20103
|
|
|
|
|
* ldmain.c (add_archive_element): Don't claim new IR symbols
|
|
|
|
|
after all IR symbols have been claimed.
|
|
|
|
|
* plugin.c (plugin_call_claim_file): Remove no_more_claiming
|
|
|
|
|
check.
|
|
|
|
|
* testsuite/ld-plugin/lto.exp (pr20103): New proc.
|
|
|
|
|
Run PR ld/20103 tests.
|
|
|
|
|
* testsuite/ld-plugin/pr20103a.c: New file.
|
|
|
|
|
* testsuite/ld-plugin/pr20103b.c: Likewise.
|
|
|
|
|
* testsuite/ld-plugin/pr20103c.c: Likewise.
|
|
|
|
|
|
2016-05-24 14:54:31 +02:00
|
|
|
|
2016-05-24 Maciej W. Rozycki <macro@imgtec.com>
|
2016-07-19 19:19:06 +02:00
|
|
|
|
|
2016-05-24 14:54:31 +02:00
|
|
|
|
* testsuite/ld-mips-elf/jalx-local.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/jalx-local-n32.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/jalx-local-n64.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
|
|
|
|
|
|
2016-05-23 14:53:07 +02:00
|
|
|
|
2016-05-23 Kuba Sejdak <jakub.sejdak@phoesys.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am: Add earmelf_phoenix.c.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* configure.tgt: Add entry for arm-phoenix.
|
|
|
|
|
* emulparams/armelf_phoenix.sh: New file.
|
|
|
|
|
|
2016-05-23 10:38:32 +02:00
|
|
|
|
2016-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/armelf.em (arm_elf_before_allocation): Call
|
|
|
|
|
bfd_elf32_arm_keep_private_stub_output_sections before generic
|
|
|
|
|
before_allocation function.
|
|
|
|
|
|
2016-05-20 14:32:19 +02:00
|
|
|
|
2016-05-20 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/jalx-addend.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/jalx-addend-n32.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/jalx-addend-n64.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
|
|
|
|
|
|
2016-05-19 21:56:55 +02:00
|
|
|
|
2016-05-19 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20117
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Run pr20117.
|
|
|
|
|
* testsuite/ld-i386/pr19609-1i.d: Updated.
|
|
|
|
|
* testsuite/ld-i386/pr20117.d: New file.
|
|
|
|
|
* testsuite/ld-i386/pr20117.s: Likewise.
|
|
|
|
|
|
2016-05-19 14:51:53 +02:00
|
|
|
|
2016-05-19 Cupertino Miranda <cmiranda@synopsys.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/compressed1d.d: Removed from notarget.
|
|
|
|
|
* testsuite/ld-elf/group8a.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/group8b.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/group9a.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/group9b.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr12851.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr12975.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr13177.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr13195.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr17615.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/eh-frame-hdr.d: Removed from xfail.
|
|
|
|
|
* testsuite/ld-elf/group3b.d: Likewise.
|
|
|
|
|
* testsuite/ld-srec/srec.exp: Likewise.
|
|
|
|
|
* testsuite/lib/ld-lib.exp (check_gc_sections_available): Mark ARC
|
|
|
|
|
as supporting gc.
|
|
|
|
|
(check_shared_lib_support): Mark ARC as supporting.
|
|
|
|
|
|
2016-05-19 14:44:01 +02:00
|
|
|
|
2016-05-19 Cupertino Miranda <cmiranda@synopsys.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/arcelf.sh: Changed.
|
|
|
|
|
* emulparams/arclinux.sh: Likewise.
|
|
|
|
|
* scripttempl/arclinux.sc: Moved to a more standard implementation
|
|
|
|
|
similar to elf.sc.
|
|
|
|
|
|
2016-05-19 12:19:04 +02:00
|
|
|
|
2016-05-19 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/lib/ld-lib.exp (check_shared_lib_support): Reorder
|
|
|
|
|
`ft32-*-*' behind `frv-*-*'.
|
|
|
|
|
|
2016-05-18 05:19:02 +02:00
|
|
|
|
2016-05-19 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* configure.tgt: Remove `am34-*-linux*' support.
|
|
|
|
|
|
2016-05-18 16:40:13 +02:00
|
|
|
|
2016-05-19 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-scripts/crossref.exp: Remove -mcall-aixdesc hack.
|
|
|
|
|
* testsuite/ld-scripts/cross2.t: Tweak .opd and .toc placement.
|
|
|
|
|
* testsuite/ld-scripts/cross3.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/cross4.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/cross5.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/cross6.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/cross7.t: Likewise.
|
|
|
|
|
|
2016-05-18 16:39:03 +02:00
|
|
|
|
2016-05-19 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/shared.exp (mix_pic_and_non_pic): Pass in
|
|
|
|
|
exe name rather than constructing testname. Fix typo in
|
|
|
|
|
sub-test name. Log copying. Use -rpath rather than -R.
|
|
|
|
|
|
2016-05-18 11:11:47 +02:00
|
|
|
|
2016-05-18 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* scripttempl/ft32.sc: Use fixed constants for memory region
|
|
|
|
|
lengths. Include DWARF debug sections.
|
|
|
|
|
(.data .bss): Do not assign locations during relocatable links.
|
|
|
|
|
* testsuite/ld-elf/compressed1d.d: Skip for FT32.
|
|
|
|
|
* testsuite/ld-elf/sec-to-seg.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elf/sec64k.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elf/init-fini-array.d: XFail for FT32.
|
|
|
|
|
* testsuite/ld-elf/merge.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/orphan-region.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/orphan.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/orphan3.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr349.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/warn2.d: Likewise.
|
|
|
|
|
* testsuite/lib/ld-lib.exp (check_shared_lib_support): Note
|
|
|
|
|
that the FT32 does not support shared libraries.
|
|
|
|
|
|
2016-05-17 18:55:05 +02:00
|
|
|
|
2016-05-17 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/lib/ld-lib.exp (at_least_gcc_version): Check
|
|
|
|
|
global CC.
|
|
|
|
|
|
2016-05-17 18:53:44 +02:00
|
|
|
|
2016-05-17 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
|
2016-05-17 14:14:26 +02:00
|
|
|
|
|
|
|
|
|
* scripttempl/avr.sc (text): Place .progmem.data from avr-libc
|
|
|
|
|
above .progmem*.
|
|
|
|
|
* scripttempl/avrtiny.sc (text): Likewise.
|
|
|
|
|
|
2016-05-16 09:51:26 +02:00
|
|
|
|
2016-05-17 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-unique/unique.exp: Use `is_elf_format' and
|
|
|
|
|
`supports_gnu_unique' to qualify testing.
|
|
|
|
|
|
2016-05-15 07:49:54 +02:00
|
|
|
|
2016-05-16 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/flags1.d: Update the xfail list.
|
|
|
|
|
|
2016-05-15 07:39:14 +02:00
|
|
|
|
2016-05-15 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/flags1.d: Update for `*-*-nacl*' xfail
|
|
|
|
|
removal.
|
|
|
|
|
|
2016-05-14 14:51:28 +02:00
|
|
|
|
2016-05-14 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20097
|
|
|
|
|
* testplug2.c (onall_symbols_read): Remove redundant sizeof
|
|
|
|
|
on EXPECTED_VIEW_LENGTH.
|
|
|
|
|
* testplug4.c (onall_symbols_read): Likewise.
|
|
|
|
|
|
2016-05-13 19:59:32 +02:00
|
|
|
|
2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20093
|
|
|
|
|
* testsuite/ld-x86-64/pr20093-1.d: New file.
|
|
|
|
|
* testsuite/ld-x86-64/pr20093-1.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20093-2.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20093-2.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Run pr20093-1 and pr20093-2.
|
|
|
|
|
|
2016-05-13 04:18:56 +02:00
|
|
|
|
2016-05-13 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-arm/arm-elf.exp: Adjust for arm-no-rel-plt now passing.
|
|
|
|
|
Use different output file name for static app without .rel.plt.
|
|
|
|
|
* testsuite/ld-arm/arm-no-rel-plt.ld: Align .rel.dyn and .rela.dyn.
|
|
|
|
|
* testsuite/ld-arm/arm-no-rel-plt.out: Delete.
|
|
|
|
|
* testsuite/ld-arm/arm-no-rel-plt.r: New.
|
|
|
|
|
* testsuite/ld-arm/arm-static-app.d: Don't check file name.
|
|
|
|
|
* testsuite/ld-arm/arm-static-app.r: Likewise.
|
|
|
|
|
|
2016-05-13 01:50:34 +02:00
|
|
|
|
2016-05-12 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20070
|
|
|
|
|
* Makefile.am (noinst_LTLIBRARIES): Add libldtestplug4.la.
|
|
|
|
|
(libldtestplug4_la_SOURCES): New.
|
|
|
|
|
(libldtestplug4_la_CFLAGS): Likewise.
|
|
|
|
|
(libldtestplug4_la_LDFLAGS): Likewise.
|
|
|
|
|
* Makefile.in: Regenerated.
|
|
|
|
|
* plugin.c (get_symbols): Return resolution based on IR symbol
|
|
|
|
|
kinds for symbols defined/referenced only within IR.
|
|
|
|
|
* testplug4.c: New file.
|
|
|
|
|
* ld/testsuite/ld-plugin/pr20070.d: Likewise.
|
|
|
|
|
* ld/testsuite/ld-plugin/pr20070a.c: Likewise.
|
|
|
|
|
* ld/testsuite/ld-plugin/pr20070b.c: Likewise.
|
|
|
|
|
* testsuite/ld-plugin/plugin.exp (plugin4_name): New.
|
|
|
|
|
(plugin4_path): Likewise.
|
|
|
|
|
Add a test for ld/20070.
|
|
|
|
|
|
2016-05-11 15:21:14 +02:00
|
|
|
|
2016-05-11 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/hppaelf.em (hppaelf_create_output_section_statements):
|
|
|
|
|
Call elf32_hppa_init_stub_bfd.
|
|
|
|
|
|
2016-05-11 14:24:05 +02:00
|
|
|
|
2016-05-11 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 20060
|
|
|
|
|
* testsuite/ld-powerpc/powerpc.exp: Run new tests.
|
|
|
|
|
* testsuite/ld-powerpc/tlsdll.s: New.
|
|
|
|
|
* testsuite/ld-powerpc/tlsdll.ver: New.
|
|
|
|
|
* testsuite/ld-powerpc/tlsdll_32.s: New.
|
|
|
|
|
* testsuite/ld-powerpc/tlsopt5.d: New.
|
|
|
|
|
* testsuite/ld-powerpc/tlsopt5.s: New.
|
|
|
|
|
* testsuite/ld-powerpc/tlsopt5_32.d: New.
|
|
|
|
|
* testsuite/ld-powerpc/tlsopt5_32.s: New.
|
|
|
|
|
|
2016-05-10 17:14:23 +02:00
|
|
|
|
2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/armelf.em (gld${EMULATION_NAME}_finish): Use
|
|
|
|
|
ARM_GET_SYM_BRANCH_TYPE to get branch type of a symbol.
|
|
|
|
|
|
2016-05-10 16:45:01 +02:00
|
|
|
|
2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/armelf.em (elf32_arm_add_stub_section): Add output_section
|
|
|
|
|
parameter and rename input_section parameter to after_input_section.
|
|
|
|
|
Append input stub section to the output section if after_input_section
|
|
|
|
|
is NULL.
|
|
|
|
|
|
2016-05-10 16:15:15 +02:00
|
|
|
|
2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-arm/arm-elf.exp (EABI attribute merging 10 (DSP)): New
|
|
|
|
|
test.
|
|
|
|
|
* testsuite/ld-arm/attr-merge-10b-dsp.s: New file.
|
|
|
|
|
* testsuite/ld-arm/attr-merge-10-dsp.attr: Likewise.
|
|
|
|
|
|
2016-05-10 09:33:08 +02:00
|
|
|
|
2016-05-10 Christophe Lyon <christophe.lyon@linaro.org>
|
|
|
|
|
|
|
|
|
|
* ld/testsuite/ld-elf/flags1.d (xfail): Remove *-*-nacl*".
|
|
|
|
|
|
2016-05-09 15:10:37 +02:00
|
|
|
|
2016-05-09 Christophe Monat <christophe.monat@st.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20030
|
|
|
|
|
* testsuite/ld-arm/arm-elf.exp: Run new stm32l4xx-fix-vldm-dp
|
|
|
|
|
tests. Fix misnamed stm32l4xx-fix-all.
|
|
|
|
|
* testsuite/ld-arm/stm32l4xx-fix-vldm-dp.s: New tests for multiple
|
|
|
|
|
loads with DP registers.
|
|
|
|
|
* testsuite/ld-arm/stm32l4xx-fix-vldm-dp.d: New reference file.
|
|
|
|
|
* testsuite/ld-arm/stm32l4xx-fix-vldm.s: Add missing comment.
|
|
|
|
|
* testsuite/ld-arm/stm32l4xx-fix-all.s: Add tests for multiple
|
|
|
|
|
loads with DP registers.
|
|
|
|
|
* testsuite/ld-arm/stm32l4xx-fix-all.d: Update reference.
|
|
|
|
|
|
2016-05-09 13:04:16 +02:00
|
|
|
|
2016-05-09 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/flags1.d (readelf): Dump section header instead
|
|
|
|
|
program headers.
|
|
|
|
|
(xfail): Remove avr-*-*.
|
|
|
|
|
Update regex to check the section flags.
|
|
|
|
|
* testsuite/ld-elf/merge.d (xfail): Remove avr-*-*.
|
|
|
|
|
|
2016-05-09 09:40:03 +02:00
|
|
|
|
2016-05-09 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (ealphavms.c, eelf64_ia64_vms): Correct .em deps.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2016-05-09 09:37:33 +02:00
|
|
|
|
2016-05-09 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-scripts/pr14962-2.t: Match .text, not *.text.
|
|
|
|
|
* testsuite/ld-scripts/rgn-at5.t: Similarly, .sec not *.sec.
|
|
|
|
|
* testsuite/ld-scripts/section-match-1.t: Likewise.
|
|
|
|
|
|
2016-05-06 18:46:34 +02:00
|
|
|
|
2016-05-06 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/17550
|
|
|
|
|
* testsuite/ld-elf/pr17550-1.s: New file.
|
|
|
|
|
* testsuite/ld-elf/pr17550-2.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr17550-3.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr17550-4.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr17550a.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr17550b.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr17550c.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr17550d.d: Likewise.
|
|
|
|
|
|
2016-05-06 17:24:01 +02:00
|
|
|
|
2016-05-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
|
|
|
|
|
|
|
|
|
|
* ld/testsuite/ld-srec/srec.exp: Mark test as XFAIL for AVR.
|
|
|
|
|
|
2016-05-06 14:28:18 +02:00
|
|
|
|
2016-05-06 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Run load7.
|
|
|
|
|
* testsuite/ld-i386/load7.d: New file.
|
|
|
|
|
* testsuite/ld-i386/load7.map: Likewise.
|
|
|
|
|
* testsuite/ld-i386/load7.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/load2.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/load2.map: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/load2.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Run load2.
|
|
|
|
|
|
2016-05-05 17:43:58 +02:00
|
|
|
|
2016-05-05 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/elf_iamcu.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): New.
|
|
|
|
|
* emulparams/elf_k1om.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
|
|
|
|
|
Likewise.
|
|
|
|
|
* emulparams/elf_l1om.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
|
|
|
|
|
Likewise.
|
|
|
|
|
|
2016-05-01 23:19:03 +02:00
|
|
|
|
2016-05-05 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-x86-64/pr18591.d: Pass --no-relax to ld.
|
|
|
|
|
|
2016-05-05 04:41:34 +02:00
|
|
|
|
2016-05-04 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (init_os): Pass %E to einfo when bfd_section == NULL.
|
|
|
|
|
|
2016-05-04 02:46:10 +02:00
|
|
|
|
2016-05-04 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-unique/unique.d: New test.
|
|
|
|
|
* testsuite/ld-unique/unique.exp: Run the new test. Adjust
|
|
|
|
|
messages for compiled tests.
|
|
|
|
|
|
2016-05-04 14:03:52 +02:00
|
|
|
|
2016-05-04 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/pr18735.d: Allow other symbols.
|
|
|
|
|
* testsuite/ld-elf/sec64k.exp: Skip 64ksec for avr.
|
|
|
|
|
* testsuite/ld-gc/pr14265.d: Allow other symbols.
|
|
|
|
|
* testsuite/ld-plugin/plugin.exp: Add PR ld/17973 to
|
|
|
|
|
plugin_tests only if check_shared_lib_support is true.
|
|
|
|
|
* testsuite/ld-selective/selective.exp: Add --section-start
|
|
|
|
|
flag for avr.
|
|
|
|
|
|
2016-05-04 00:47:55 +02:00
|
|
|
|
2016-05-03 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
PR 10549
|
|
|
|
|
* testsuite/ld-unique/unique.exp: Also run for `mips*-*-*'.
|
|
|
|
|
|
2016-05-03 12:59:37 +02:00
|
|
|
|
2016-05-03 Jiong Wang <jiong.wang@arm.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/aarch64elf.em (--no-apply-dynamic-relocs): New option.
|
|
|
|
|
* NEWS: Mention --no-apply-dynamic-relocs.
|
|
|
|
|
* ld.texinfo (ld and the ARM family): Document
|
|
|
|
|
--no-apply-dynamic-relocs.
|
|
|
|
|
* testsuite/ld-aarch64/rela-abs-relative.s: New test source.
|
|
|
|
|
* testsuite/ld-aarch64/rela-abs-relative.d: New expected result.
|
|
|
|
|
* testsuite/ld-aarch64/rela-abs-relative-be.d: Likewise for big-endian.
|
|
|
|
|
* estsuite/ld-aarch64/rela-abs-relative-opt.d: Likewise, but enable new
|
|
|
|
|
option.
|
|
|
|
|
|
2016-05-03 11:44:35 +02:00
|
|
|
|
2016-05-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elfcomm/elfcomm.exp: Check for shared lib support
|
|
|
|
|
before running STT_COMMON tests.
|
|
|
|
|
|
2016-04-29 15:50:33 +02:00
|
|
|
|
2016-04-29 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* config/default.exp (NOPIE_CFLAGS): Download source only on
|
|
|
|
|
remote host.
|
|
|
|
|
(NOPIE_LDFLAGS): Likewise.
|
|
|
|
|
* testsuite/lib/ld-lib.exp (check_lto_available): Likewise.
|
|
|
|
|
(check_lto_fat_available): Likewise.
|
|
|
|
|
(check_lto_shared_available): Likewise.
|
|
|
|
|
(check_ifunc_available): Likewise.
|
|
|
|
|
(check_ifunc_attribute_available): Likewise.
|
|
|
|
|
|
2016-04-28 00:51:29 +02:00
|
|
|
|
2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/compressed1b.d: Only run for Linux/GNU targets.
|
|
|
|
|
|
2016-04-27 14:25:18 +02:00
|
|
|
|
2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
2016-04-27 18:13:10 +02:00
|
|
|
|
PR ld/20006
|
|
|
|
|
* testsuite/ld-elfvsb/elfvsb.exp (COMPRESS_LDFLAG): New.
|
|
|
|
|
(visibility_run): Pass COMPRESS_LDFLAG to visibility_test on
|
|
|
|
|
ELF targets.
|
|
|
|
|
|
|
|
|
|
2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/compressed1b.d: Pass
|
|
|
|
|
--compress-debug-sections=none to ld.
|
|
|
|
|
* testsuite/ld-elf/compressed1c.d: Likewise.
|
2016-04-27 14:25:18 +02:00
|
|
|
|
|
2016-04-27 09:21:15 +02:00
|
|
|
|
2016-04-27 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR target/19985
|
|
|
|
|
* configure.tgt: Don't use var+=.
|
|
|
|
|
|
2016-04-25 18:25:27 +02:00
|
|
|
|
2016-04-25 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR target/19985
|
|
|
|
|
* configure.tgt: Include big endian PPC64 emulations with little
|
|
|
|
|
endian PPC64 targets.
|
|
|
|
|
|
2016-04-25 14:14:10 +02:00
|
|
|
|
2016-04-25 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
|
|
|
|
|
|
|
|
|
|
* scripttempl/avrtiny.sc (.text): Do not set LMA to zero.
|
|
|
|
|
|
2016-08-05 22:15:16 +02:00
|
|
|
|
2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/lib/ld-lib.exp (check_lto_available): Return 1 on
|
|
|
|
|
Linux with GCC 4.9 or newer.
|
|
|
|
|
(check_lto_fat_available): Likewise.
|
|
|
|
|
(check_lto_shared_available): Likewise.
|
|
|
|
|
|
2016-04-21 16:43:00 +02:00
|
|
|
|
2016-04-21 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_check_relocs): Use bfd_link_check_relocs in
|
|
|
|
|
prefernce to _bfd_elf_link_check_relocs. Drop test for ELF
|
|
|
|
|
targets. Do not stop the checks when problems are encountered.
|
|
|
|
|
|
2016-04-21 03:35:41 +02:00
|
|
|
|
2016-04-21 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-scripts/cross3.t: Add commonly used data
|
|
|
|
|
and text section names to output section statements.
|
|
|
|
|
* testsuite/ld-scripts/cross4.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/cross5.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/cross6.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/cross7.t: Likewise.
|
|
|
|
|
|
2016-04-21 02:06:58 +02:00
|
|
|
|
2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_check_relocs): New function.
|
|
|
|
|
(lang_process): Call lang_check_relocs after lang_gc_sections.
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Don't
|
|
|
|
|
call _bfd_elf_link_check_relocs here.
|
|
|
|
|
|
2016-04-20 20:15:05 +02:00
|
|
|
|
2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19972
|
|
|
|
|
* testsuite/ld-elf/eh6.d: Pass -rW to readelf and check for
|
|
|
|
|
R_386_NONE or R_X86_64_NONE.
|
|
|
|
|
|
2016-04-20 20:13:38 +02:00
|
|
|
|
2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-x86-64/pic1.d: New file.
|
|
|
|
|
* testsuite/ld-x86-64/pic1.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Run pic1.
|
|
|
|
|
|
2016-04-20 20:12:06 +02:00
|
|
|
|
2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-x86-64/pie2.d: New file.
|
|
|
|
|
* testsuite/ld-x86-64/pie2.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Run pie2.
|
|
|
|
|
|
2016-04-20 20:10:21 +02:00
|
|
|
|
2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19969
|
|
|
|
|
* testsuite/ld-x86-64/pr19969.d: New file.
|
|
|
|
|
* testsuite/ld-x86-64/pr19969a.S: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19969b.S: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Run pr19969 tests.
|
|
|
|
|
|
2016-04-20 14:26:37 +02:00
|
|
|
|
2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/elf32_x86_64.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
|
|
|
|
|
New.
|
|
|
|
|
* emulparams/elf_i386.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
|
|
|
|
|
Likewise.
|
|
|
|
|
* emulparams/elf_i386_be.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
|
|
|
|
|
Likewise.
|
|
|
|
|
* emulparams/elf_i386_chaos.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
|
|
|
|
|
Likewise.
|
|
|
|
|
* emulparams/elf_i386_ldso.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
|
|
|
|
|
Likewise.
|
|
|
|
|
* emulparams/elf_i386_vxworks.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
|
|
|
|
|
Likewise.
|
|
|
|
|
* emulparams/elf_x86_64.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
|
|
|
|
|
Likewise.
|
|
|
|
|
* emulparams/i386nto.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
|
|
|
|
|
Likewise.
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_before_parse):
|
|
|
|
|
Set check_relocs_after_open_input to TRUE if
|
|
|
|
|
CHECK_RELOCS_AFTER_OPEN_INPUT is yes.
|
|
|
|
|
(gld${EMULATION_NAME}_after_open): Call
|
|
|
|
|
_bfd_elf_link_check_relocs on all inputs if
|
|
|
|
|
check_relocs_after_open_input is TRUE.
|
|
|
|
|
|
2016-04-20 13:27:47 +02:00
|
|
|
|
2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/eh6.s: Replace .long with .dc.a on
|
|
|
|
|
my_personality_v0.
|
|
|
|
|
|
2016-04-14 00:30:46 +02:00
|
|
|
|
2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
|
|
|
|
|
|
|
|
|
|
* emultempl/scoreelf.em: Likewise.
|
|
|
|
|
|
2016-04-20 05:11:55 +02:00
|
|
|
|
2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19719
|
|
|
|
|
* testsuite/ld-x86-64/pr19719.d: New file.
|
|
|
|
|
* testsuite/ld-x86-64/pr19719.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Run pr19719.
|
|
|
|
|
|
2016-04-14 12:49:53 +02:00
|
|
|
|
2016-04-18 Matthew Fortune <matthew.fortune@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo: Document NOCROSSREFS_TO script command.
|
|
|
|
|
* ldlang.h (struct lang_nocrossrefs): Add onlyfirst field.
|
|
|
|
|
(lang_add_nocrossref_to): New prototype.
|
|
|
|
|
* ldcref.c (check_local_sym_xref): Use onlyfirst to only look for
|
|
|
|
|
symbols defined in the first section.
|
|
|
|
|
(check_nocrossref): Likewise.
|
|
|
|
|
* ldgram.y (NOCROSSREFS_TO): New script command.
|
|
|
|
|
* ldlang.c (lang_add_nocrossref): Set onlyfirst to FALSE.
|
|
|
|
|
(lang_add_nocrossref_to): New function.
|
|
|
|
|
* ldlex.l (NOCROSSREFS_TO): New token.
|
|
|
|
|
* NEWS: Mention NOCROSSREFS_TO.
|
|
|
|
|
* testsuite/ld-scripts/cross4.t: New file.
|
|
|
|
|
* testsuite/ld-scripts/cross5.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/cross6.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/cross7.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/crossref.exp: Run 4 new NOCROSSREFS_TO
|
|
|
|
|
tests.
|
|
|
|
|
|
2016-04-16 01:20:02 +02:00
|
|
|
|
2016-04-15 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.in: Regenerated with automake 1.11.6.
|
|
|
|
|
* aclocal.m4: Likewise.
|
|
|
|
|
|
arc/nps400 : New cmem instructions and associated relocation
Add support for arc/nps400 cmem instructions, these load and store
instructions are hard-wired to access "0x57f00000 + 16-bit-offset".
Supporting this relocation required some additions to the arc relocation
handling in the bfd library, as well as the standard changes required to
add a new relocation type.
There's a test of the new instructions in the assembler, and a test of
the relocation in the linker.
bfd/ChangeLog:
* reloc.c: Add BFD_RELOC_ARC_NPS_CMEM16 entry.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
* elf32-arc.c: Add 'opcode/arc.h' include.
(struct arc_relocation_data): Add symbol_name.
(arc_special_overflow_checks): New function.
(arc_do_relocation): Use arc_special_overflow_checks, reindent as
required, add an extra comment.
(elf_arc_relocate_section): Setup symbol_name in reloc_data.
gas/ChangeLog:
* testsuite/gas/arc/nps400-3.d: New file.
* testsuite/gas/arc/nps400-3.s: New file.
include/ChangeLog:
* elf/arc-reloc.def: Add ARC_NPS_CMEM16 reloc.
* opcode/arc.h (NPS_CMEM_HIGH_VALUE): Define.
ld/ChangeLog:
* testsuite/ld-arc/arc.exp: New file.
* testsuite/ld-arc/nps-1.s: New file.
* testsuite/ld-arc/nps-1a.d: New file.
* testsuite/ld-arc/nps-1b.d: New file.
* testsuite/ld-arc/nps-1b.err: New file.
opcodes/ChangeLog:
* arc-nps400-tbl.h: Add xldb, xldw, xld, xstb, xstw, and xst
instructions.
* arc-opc.c (insert_nps_cmem_uimm16): New function.
(extract_nps_cmem_uimm16): New function.
(arc_operands): Add NPS_XLDST_UIMM16 operand.
2016-03-30 01:02:19 +02:00
|
|
|
|
2016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-arc/arc.exp: New file.
|
|
|
|
|
* testsuite/ld-arc/nps-1.s: New file.
|
|
|
|
|
* testsuite/ld-arc/nps-1a.d: New file.
|
|
|
|
|
* testsuite/ld-arc/nps-1b.d: New file.
|
|
|
|
|
* testsuite/ld-arc/nps-1b.err: New file.
|
|
|
|
|
|
2016-04-14 11:38:05 +02:00
|
|
|
|
2016-04-14 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR 19457
|
|
|
|
|
* testsuite/ld-scripts/script.exp (extract_symbol_test): Add
|
|
|
|
|
exceptions for Mingw and Cygwin.
|
|
|
|
|
|
2016-04-12 12:04:19 +02:00
|
|
|
|
2016-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/lib/ld-lib.exp (run_dump_test): Initialise
|
|
|
|
|
check_ld(terminal).
|
|
|
|
|
|
2016-04-13 14:41:36 +02:00
|
|
|
|
2016-04-13 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19774
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Link tmpdir/pr17689b.o before
|
|
|
|
|
tmpdir/pr17689.so, fix gotpcrel1 test and add more --as-needed
|
|
|
|
|
tests.
|
|
|
|
|
|
2016-04-12 04:41:37 +02:00
|
|
|
|
2016-04-11 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19939
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Run PR ld/19939 tests.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19939.s: New file.
|
|
|
|
|
* testsuite/ld-i386/pr19939a.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19939b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19939.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19939a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19939b.d: Likewise.
|
|
|
|
|
|
2016-04-09 03:24:00 +02:00
|
|
|
|
2016-04-09 Oleg Endo <olegendo@gcc.gnu.org>
|
|
|
|
|
|
|
|
|
|
* emulparams/shelf.sh: Set stack area to 0x3FFFFF00.
|
|
|
|
|
|
2016-04-08 10:22:03 +02:00
|
|
|
|
2016-04-08 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 18452
|
|
|
|
|
* ldlang.c (maybe_overlays): Delete.
|
|
|
|
|
(lang_size_sections_1): Remove code setting maybe_overlays.
|
|
|
|
|
(lang_check_section_addresses): Instead detect overlays by
|
|
|
|
|
exact match of section VMAs here. Fix memory leak.
|
|
|
|
|
|
2016-04-07 14:57:47 +02:00
|
|
|
|
2016-04-08 Dan Gisselquist <dgisselq@ieee.org>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (print_output_section_statement): Show minfo size
|
|
|
|
|
in target machine address units.
|
|
|
|
|
(print_reloc_statement): Likewise.
|
|
|
|
|
(print_padding_statement): Likewise.
|
|
|
|
|
(print_data_statement): Likewise. Ensure minimum print_dot
|
|
|
|
|
increment of one address unit.
|
|
|
|
|
|
2016-04-07 17:17:08 +02:00
|
|
|
|
2016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/arc-endianness.sh: Make little endian default choice.
|
|
|
|
|
|
2016-04-07 13:09:20 +02:00
|
|
|
|
2016-04-07 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* scripttempl/elf32msp430.sc (.MSP430.attributes): Fix typo in
|
|
|
|
|
section name.
|
|
|
|
|
* scripttempl/elf32msp430_3.sc (.MSP430.attributes): Likewise.
|
|
|
|
|
|
2016-03-29 16:57:40 +02:00
|
|
|
|
2016-04-05 Andrew Burgess <andrew.burgess@embecosm.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/arc-endianness.sh: New file.
|
|
|
|
|
* emulparams/arcebelf.sh: Deleted.
|
|
|
|
|
* emulparams/arcebelf_prof.sh: Deleted.
|
|
|
|
|
* emulparams/arceblinux.sh: Deleted.
|
|
|
|
|
* emulparams/arceblinux_prof.sh: Deleted.
|
|
|
|
|
* emulparams/arcelf.sh: Include arc-endinness.sh.
|
|
|
|
|
* emulparams/arcelf_prof.sh: Include arc-endinness.sh.
|
|
|
|
|
* emulparams/arclinux.sh: Include arc-endinness.sh.
|
|
|
|
|
* emulparams/arclinux_prof.sh: Include arc-endinness.sh.
|
|
|
|
|
* emulparams/arcv2elf.sh: Include arc-endinness.sh.
|
|
|
|
|
* emulparams/arcv2elfx.sh: Include arc-endinness.sh.
|
|
|
|
|
* testsuite/ld-elf/compressed1d.d: Update pattern for big and
|
|
|
|
|
little endian arc targets.
|
|
|
|
|
* testsuite/ld-elf/eh-frame-hdr.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/group1.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/group3b.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/group8a.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/group8b.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/group9a.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/group9b.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/linkonce2.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr12851.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr12975.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr13177.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr13195.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr17615.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr19162.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/sec64k.exp: Likewise.
|
|
|
|
|
* testsuite/lib/ld-lib.exp: Likewise.
|
|
|
|
|
|
ELF/LD: Avoid producing hidden and internal dynamic symbols
Always turn hidden and internal symbols which have a dynamic index into
local ones. This is required by the the ELF gABI[1]:
"A hidden symbol contained in a relocatable object must be either
removed or converted to STB_LOCAL binding by the link-editor when the
relocatable object is included in an executable file or shared object."
"An internal symbol contained in a relocatable object must be either
removed or converted to STB_LOCAL binding by the link-editor when the
relocatable object is included in an executable file or shared object."
The ELF linker usually respects this requirement, however in the case
where a dynamic symbol has been preallocated due to a reference of the
default export class aka visibility from the object being linked, and
then merged with a hidden or internal symbol definition from within the
same object, then the original export class is carried over to the
output dynamic symbol table, because while merging the generic ELF
linker only converts affected dynamic symbols to local when they are
defined or referenced by the object being linked and a dynamic object
involved in the link both at a time.
The dynamic symbol produced confuses then the dynamic loader at the run
time -- the hidden or internal export class is ignored and the symbol
follows preemption rules as with the default export class.
In the MIPS target it happens when `mips_elf_record_global_got_symbol'
creates a dynamic symbol when a call relocation is encountered.
Additionally if the undefined symbol referred by such a relocation does
specify the intended export class, then a local dynamic symbol is
created instead, which is harmless and allowed, but useless. Normally
no local dynamic symbols are created, except for a single dummy one at
the beginning.
Correct the problem by removing the extra check for a dynamic symbol
being defined or referenced by the object being linked and a dynamic
object involved in the link both at a time. The test cases included
cover the internal and hidden symbol cases, as well as a protected
symbol for a reference, the handling of which is unchanged by this fix.
Both cases described above are covered, that is where an internal or
hidden dynamic symbol is produced and where a local one is.
NB this change affects CRIS results where some symbols in the static
table produced in a final link are now converted from STV_HIDDEN to
STB_LOCAL. This happens whenever the `elf_backend_hide_symbol' handler
is called, so the affected symbols must have been chosen for entering
into the dynamic symbol table, except in these test cases no such symbol
table is produced. In fully linked binaries the static symbol table is
only used for debugging though, so such a change is fine.
References:
[1] "System V Application Binary Interface - DRAFT - 24 April 2001",
The Santa Cruz Operation, Inc., "Symbol Table",
<http://www.sco.com/developers/gabi/2001-04-24/ch4.symtab.html>
bfd/
PR ld/19908
* elflink.c (elf_link_add_object_symbols): Always turn hidden
and internal symbols which have a dynamic index into local
ones.
ld/
PR ld/19908
* testsuite/ld-cris/tls-e-20.d: Adjust for hidden symbol
handling fix.
* testsuite/ld-cris/tls-e-20a.d: Likewise.
* testsuite/ld-cris/tls-e-21.d: Likewise.
* testsuite/ld-cris/tls-e-23.d: Likewise.
* testsuite/ld-cris/tls-e-80.d: Likewise.
* testsuite/ld-cris/tls-gd-3h.d: Likewise.
* testsuite/ld-cris/tls-leie-19.d: Likewise.
* testsuite/ld-mips-elf/export-class-ref-lib.sd: New test.
* testsuite/ld-mips-elf/export-hidden-ref.sd: New test.
* testsuite/ld-mips-elf/export-internal-ref.sd: New test.
* testsuite/ld-mips-elf/export-protected-ref.sd: New test.
* testsuite/ld-mips-elf/export-class-ref-f0.s: New test source.
* testsuite/ld-mips-elf/export-class-ref-f1.s: New test source.
* testsuite/ld-mips-elf/export-class-ref-f2.s: New test source.
* testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
2016-04-05 16:10:05 +02:00
|
|
|
|
2016-04-05 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19908
|
|
|
|
|
* testsuite/ld-cris/tls-e-20.d: Adjust for hidden symbol
|
|
|
|
|
handling fix.
|
|
|
|
|
* testsuite/ld-cris/tls-e-20a.d: Likewise.
|
|
|
|
|
* testsuite/ld-cris/tls-e-21.d: Likewise.
|
|
|
|
|
* testsuite/ld-cris/tls-e-23.d: Likewise.
|
|
|
|
|
* testsuite/ld-cris/tls-e-80.d: Likewise.
|
|
|
|
|
* testsuite/ld-cris/tls-gd-3h.d: Likewise.
|
|
|
|
|
* testsuite/ld-cris/tls-leie-19.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/export-class-ref-lib.sd: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/export-hidden-ref.sd: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/export-internal-ref.sd: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/export-protected-ref.sd: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/export-class-ref-f0.s: New test source.
|
|
|
|
|
* testsuite/ld-mips-elf/export-class-ref-f1.s: New test source.
|
|
|
|
|
* testsuite/ld-mips-elf/export-class-ref-f2.s: New test source.
|
|
|
|
|
* testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
|
|
|
|
|
|
2016-04-05 13:46:44 +02:00
|
|
|
|
2016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-discard/extern.d: Removed xfail for ARC.
|
|
|
|
|
* testsuite/ld-discard/start.d: Likewise.
|
|
|
|
|
* testsuite/ld-discard/static.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/group1.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/group3b.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/orphan-region.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/orphan.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/orphan3.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr349.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/warn1.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/warn2.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/warn3.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/crossref.exp: Add __SDATA_BEGIN__ symbol
|
|
|
|
|
through linker flags.
|
|
|
|
|
* testsuite/ld-srec/srec.exp: Set as xfail.
|
|
|
|
|
|
2016-04-05 05:50:19 +02:00
|
|
|
|
2016-04-04 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19827
|
|
|
|
|
* testsuite/ld-i386/pr19827-nacl.rd: New file.
|
|
|
|
|
* testsuite/ld-x86-64/pr19827-nacl.rd: Likewise.
|
|
|
|
|
|
2016-04-04 14:44:57 +02:00
|
|
|
|
2016-04-04 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR 19803
|
|
|
|
|
* emultempl/pe.em (change_undef): New function. Encapsulates
|
|
|
|
|
duplicated code in pe_fixup_stdcalls and adds the newly defined
|
|
|
|
|
sym to the gc root list.
|
|
|
|
|
(pe_fixup_stdcall): Use the new function.
|
|
|
|
|
* pe-dll.c (process_def_file_and_drectve); Add alias of exported
|
|
|
|
|
symbol to gc root list.
|
|
|
|
|
|
2016-03-31 06:32:14 +02:00
|
|
|
|
2016-03-31 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (TO_ADDR, TO_SIZE, opb_shift): Move earlier in file.
|
|
|
|
|
(lang_insert_orphan): Use TO_ADDR in __stop sym calculation.
|
|
|
|
|
(print_input_section): Don't use TO_ADDR when printing section
|
|
|
|
|
size.
|
|
|
|
|
(lang_size_sections_1): Use TO_ADDR in overlay lma calculation.
|
|
|
|
|
(lang_size_sections): Use TO_ADDR in relro end calculation.
|
|
|
|
|
|
2016-03-30 15:34:34 +02:00
|
|
|
|
2016-03-30 Andrew Burgess <andrew.burgess@embecosm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/lib/ld-lib.exp (run_dump_test): Fix check of return
|
|
|
|
|
value from regexp_diff.
|
|
|
|
|
* testsuite/ld-elf/orphan-5.l: Fix expected output.
|
|
|
|
|
* testsuite/ld-elf/orphan-6.l: Likewise.
|
|
|
|
|
|
2016-03-30 09:05:14 +02:00
|
|
|
|
2016-03-30 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 18452
|
|
|
|
|
* ldlang.c (maybe_overlays): New static var.
|
|
|
|
|
(lang_size_sections_1): Set it here.
|
|
|
|
|
(struct check_sec): New.
|
|
|
|
|
(sort_sections_by_lma): Adjust for array of structs.
|
|
|
|
|
(sort_sections_by_vma): New function.
|
|
|
|
|
(lang_check_section_addresses): Check both LMA and VMA for overlap.
|
|
|
|
|
* testsuite/ld-scripts/rgn-over7.d: Adjust.
|
|
|
|
|
|
2016-03-30 09:10:37 +02:00
|
|
|
|
2016-03-30 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_size_sections_1): Correct code detecting a
|
|
|
|
|
backward non-overlapping move.
|
|
|
|
|
|
2016-03-30 09:09:36 +02:00
|
|
|
|
2016-03-30 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (IS_TBSS): New macro, extracted from..
|
|
|
|
|
(IGNORE_SECTION): ..here.
|
|
|
|
|
(lang_size_sections_1): Use IS_TBSS and IGNORE_SECTION.
|
|
|
|
|
(lang_size_sections, lang_do_assignments_1): Use IS_TBSS.
|
|
|
|
|
|
2016-03-22 13:25:08 +01:00
|
|
|
|
2016-03-22 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19803
|
|
|
|
|
* ldlang.c (lang_add_gc_name): New function. Adds the provided
|
|
|
|
|
symbol name to the list of gc symbols.
|
|
|
|
|
(lang_process): Call lang_add_gc_name with entry_symbol_default if
|
|
|
|
|
entry_symbol.name is NULL. Use lang_add_gc_name to add the init
|
|
|
|
|
and fini function names.
|
|
|
|
|
* pe-dll.c (process_def_file_and_drectve): Add exported names to
|
|
|
|
|
the gc symbol list.
|
|
|
|
|
* testsuite/ld-pe/pr19803.s: Do not export _testval symbol.
|
|
|
|
|
* testsuite/ld-pe/pr19803.d: Tweak expected output.
|
|
|
|
|
|
2016-03-22 10:41:16 +01:00
|
|
|
|
2016-03-22 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
|
2016-03-21 17:31:46 +01:00
|
|
|
|
2016-03-21 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/msp430.em: Replace use of alloca with call to xmalloc.
|
|
|
|
|
* plugin.c: Likewise.
|
|
|
|
|
* pe-dll.c: Likewise.
|
|
|
|
|
|
2016-03-18 12:45:43 +01:00
|
|
|
|
2016-03-18 Awson <kyrab@mail.ru>
|
|
|
|
|
|
|
|
|
|
PR 19531
|
|
|
|
|
* scripttempl/pe.sc (.rdata_runtime_pseudo_reloc): Always KEEP
|
|
|
|
|
this section.
|
|
|
|
|
* scripttempl/pep.sc (.rdata_runtime_pseudo_reloc): Likewise.
|
|
|
|
|
|
2016-03-18 10:51:47 +01:00
|
|
|
|
2016-03-18 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
|
|
|
|
|
|
|
|
|
|
* ld-avr/gc-section-debugline.d: Relax regex check for CU.
|
|
|
|
|
|
2016-03-15 19:46:51 +01:00
|
|
|
|
2016-03-15 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19827
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Run PR ld/19827 tests.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19827.rd: New file.
|
|
|
|
|
* testsuite/ld-i386/pr19827a.S: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19827b.S: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19827.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19827a.S: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19827b.S: Likewise.
|
|
|
|
|
|
2016-03-15 19:07:06 +01:00
|
|
|
|
2016-03-15 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19807
|
|
|
|
|
* Makefile.am (ELF_X86_DEPS): Add
|
|
|
|
|
$(srcdir)/emulparams/reloc_overflow.sh.
|
|
|
|
|
* Makefile.in: Regenerated.
|
|
|
|
|
* NEWS: Mention -z noreloc-overflow.
|
|
|
|
|
* ld.texinfo: Document -z noreloc-overflow.
|
|
|
|
|
* emulparams/elf32_x86_64.sh: Source
|
|
|
|
|
${srcdir}/emulparams/reloc_overflow.sh.
|
|
|
|
|
* emulparams/elf_x86_64.sh: Likewise.
|
|
|
|
|
* emulparams/reloc_overflow.sh: New file.
|
|
|
|
|
* testsuite/ld-x86-64/pr19807-1.s: New file.
|
|
|
|
|
* testsuite/ld-x86-64/pr19807-1a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19807-1b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19807-2.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19807-2a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19807-2b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19807-2c.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19807-2d.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19807-2e.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Run PR ld/19807 tests.
|
|
|
|
|
|
2016-03-13 16:57:10 +01:00
|
|
|
|
2016-03-13 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19539
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Run pr19539.
|
|
|
|
|
* testsuite/ld-i386/pr19539.d: New file.
|
|
|
|
|
* testsuite/ld-i386/pr19539.s: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19539.t: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19539.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19539.t: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19539a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19539b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Run pr19539a and pr19539b.
|
|
|
|
|
|
2016-03-10 17:05:29 +01:00
|
|
|
|
2016-03-10 Mickael Guene <mickael.guene@st.com>
|
|
|
|
|
|
|
|
|
|
PR gas/19744
|
|
|
|
|
* testsuite/ld-arm/arm-elf.exp: New tests.
|
|
|
|
|
* testsuite/ld-arm/thumb1-adds-armv7-m.s: New.
|
|
|
|
|
* testsuite/ld-arm/thumb1-movs-armv7-m.s: New.
|
|
|
|
|
|
2016-03-10 11:37:19 +01:00
|
|
|
|
2016-03-10 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* scripttempl/elf32msp430.sc (.rodata): Remove spurious LONG(0).
|
|
|
|
|
|
Fix v850 bfd arch info printable names
Currently, it's not possible to manually set some of the v850 archs in
gdb:
(gdb) set architecture v850<TAB>
v850 (using old gcc ABI)
v850-rh850
v850e
v850e (using old gcc ABI)
v850e1
[...]
(gdb) set architecture v850 (using old gcc ABI)
Ambiguous item "v850 (using old gcc ABI)".
The problem is that "set architecture" is a GDB "enum command", and
GDB only considers an enum value to be the string up until the first
space. So writing "v850 (using old gcc ABI)" is the same as writing
"v850", and then that's not an unambiguous arch printable name prefix.
v850 is actually the only arch that has spaces in its printable name.
One can conveniently see that with e.g.:
(gdb) set max-completions unlimited
(gdb) complete set architecture
...
Rather than hack GDB into accepting this somehow, make v850 arch
printable names more like the printable names of the other archs, and
put the abi variant in the "machine" part, after a ':'.
We now get:
(gdb) set architecture v850<TAB>
v850:old-gcc-abi
v850:rh850
v850e
v850e1
v850e1:old-gcc-abi
v850e2
v850e2:old-gcc-abi
[...]
And now "set architecture v850:old-gcc-abi" works as expected.
I ran the binutils/gas/ld testsuites, and found no regressions. I
don't have a cross compiler handy, but I ran the gdb tests anyway,
which covers at least some snoke testing.
I think that the OUTPUT_ARCH in ld/scripttempl/v850.sc may have got
broken with the previous 2012 change, since I hacked v850_rh850.sc to
output "v850" and ld failed to grok it. I think it only works if the
old GCC ABI is the configured v850 default ABI. That's now fixed by
changing to use explicit v850:old-gcc-abi.
Also, this actually "fixes" an existing GDB test, which isn't likewise
expecting spaces in arch names, when GDB is configured for
--target=v850:
(gdb) FAIL: gdb.xml/tdesc-arch.exp: read valid architectures
bfd/ChangeLog:
2016-03-09 Pedro Alves <palves@redhat.com>
* cpu-v850.c (N): Append ":old-gcc-abi" instead of " (using old
gcc ABI)" to printable name.
* cpu-v850_rh850.c (bfd_v850_rh850_arch): Use "v850:rh850" instead
of "v850-rh850" as printable name.
ld/ChangeLog:
2016-03-09 Pedro Alves <palves@redhat.com>
* scripttempl/v850.sc: Use "v850:old-gcc-abi" as OUTPUT_ARCH.
* scripttempl/v850_rh850.sc: Use "v850:rh850" as OUTPUT_ARCH.
2016-03-09 16:43:13 +01:00
|
|
|
|
2016-03-09 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* scripttempl/v850.sc: Use "v850:old-gcc-abi" as OUTPUT_ARCH.
|
|
|
|
|
* scripttempl/v850_rh850.sc: Use "v850:rh850" as OUTPUT_ARCH.
|
|
|
|
|
|
2016-03-09 05:41:41 +01:00
|
|
|
|
2016-03-08 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19789
|
|
|
|
|
* testsuite/ld-elf/pr19789.d: New file.
|
|
|
|
|
* testsuite/ld-elf/pr19789.s: Likewise.
|
|
|
|
|
|
2016-03-08 18:42:01 +01:00
|
|
|
|
2016-03-08 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19784
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Remove pr19636-2e-nacl test.
|
|
|
|
|
* testsuite/ld-i386/pr19636-2e-nacl.d: Moved to ...
|
|
|
|
|
* testsuite/ld-i386/pr19636-2e.d: Here. Remove notarget.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc.exp: Run PR ld/19784 tests.
|
|
|
|
|
* testsuite/ld-ifunc/pass.out: New file.
|
|
|
|
|
* testsuite/ld-ifunc/pr19784a.c: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/pr19784b.c: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/pr19784c.c: Likewise.
|
|
|
|
|
|
2016-03-08 17:43:12 +01:00
|
|
|
|
2016-03-08 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19774
|
|
|
|
|
* testsuite/ld-ifunc/ifunc.exp: Link tmpdir/pr18808a.o before
|
|
|
|
|
tmpdir/libpr18808.so. Link tmpdir/pr18841a.o before
|
|
|
|
|
tmpdir/libpr18841b.so and tmpdir/libpr18841c.so. Test
|
|
|
|
|
--as-needed for pr18841c.
|
|
|
|
|
|
2016-03-07 18:03:24 +01:00
|
|
|
|
2016-03-07 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19774
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Link tmpdir/pr18900.o before
|
|
|
|
|
tmpdir/pr18900.so and test --as-needed. Link tmpdir/gotpc1.o
|
|
|
|
|
before tmpdir/got1d.so and test --as-needed.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Link tmpdir/pr18900.o before
|
|
|
|
|
tmpdir/pr18900.so and test --as-needed.
|
|
|
|
|
|
2016-03-07 16:40:50 +01:00
|
|
|
|
2016-03-07 Jiong Wang <jiong.wang@arm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-aarch64/implicit_got_section_1.s: New test source file.
|
|
|
|
|
* testsuite/ld-aarch64/implicit_got_section_1.d: New test expected
|
|
|
|
|
result.
|
|
|
|
|
* testsuite/ld-aarch64/aarch64-elf.exp: Run new test.
|
|
|
|
|
|
2016-03-06 17:26:49 +01:00
|
|
|
|
2016-03-06 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Link tmpdir/copyreloc-main.o
|
|
|
|
|
before tmpdir/copyreloc-lib.so and test --as-needed.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Likewise.
|
|
|
|
|
|
2016-03-04 15:37:34 +01:00
|
|
|
|
2016-03-04 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19579
|
|
|
|
|
* testsuite/ld-elf/pr19579a.c: New file.
|
|
|
|
|
* testsuite/ld-elf/pr19579b.c: Likewise.
|
|
|
|
|
* testsuite/ld-elf/shared.exp: Run PR ld/19579 test.
|
|
|
|
|
|
2016-03-03 04:07:01 +01:00
|
|
|
|
2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/pr19162.d: Skip hppa-*-*.
|
|
|
|
|
|
2016-03-02 20:35:03 +01:00
|
|
|
|
2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/shared.exp (mix_pic_and_non_pic): Add xfails.
|
|
|
|
|
Xfail mix_pic_and_non_pic on "arm*-*-*" "aarch64*-*-*".
|
|
|
|
|
|
2016-03-02 14:05:42 +01:00
|
|
|
|
2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19739
|
|
|
|
|
* emultempl/mmo.em (mmo_place_orphan): Don't merge flags of other
|
|
|
|
|
input sections for relocatable link.
|
|
|
|
|
* emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
|
|
|
|
|
* emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
|
|
|
|
|
|
|
|
|
|
2016-03-01 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19739
|
2016-03-04 15:48:01 +01:00
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
|
2016-03-02 14:05:42 +01:00
|
|
|
|
merge flags of other input sections for relocatable link.
|
|
|
|
|
|
2016-03-01 21:39:49 +01:00
|
|
|
|
2016-03-01 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-plugin/lto.exp: Update PR ld/12365 test for GCC 6.
|
|
|
|
|
|
2016-03-01 17:10:55 +01:00
|
|
|
|
2016-03-01 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/pr19162.d: Skip arc target.
|
|
|
|
|
|
2016-02-29 19:37:59 +01:00
|
|
|
|
2016-02-29 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19162
|
|
|
|
|
* testsuite/ld-elf/pr19162.d: New file.
|
|
|
|
|
* testsuite/ld-elf/pr19162a.s: Likwise.
|
|
|
|
|
* testsuite/ld-elf/pr19162b.s: Likwise.
|
|
|
|
|
|
2016-02-29 16:51:11 +01:00
|
|
|
|
2016-02-29 Cupertino Miranda <cmiranda@synopsys.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/merge.d: Removed xfail for ARC.
|
|
|
|
|
* testsuite/ld-elf/merge2.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/merge3.d: Likewise.
|
|
|
|
|
|
2016-02-29 16:07:48 +01:00
|
|
|
|
2016-02-29 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
|
|
|
|
|
|
|
|
|
|
* scripttempl/arclinux.sc: Force .tdata and .tbss to always be
|
|
|
|
|
generated.
|
|
|
|
|
|
2016-02-26 18:52:34 +01:00
|
|
|
|
2016-02-26 Renlin Li <renlin.li@arm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-aarch64/aarch64-elf.exp: Run new testcases.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-270.d: Update to use new boundary.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-271.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-272.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-270-overflow.d: New.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-270-overflow.s: New.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-271-overflow.d: New.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-271-overflow.s: New.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-272-overflow.d: New.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-272-overflow.s: New.
|
|
|
|
|
|
2016-02-26 18:38:08 +01:00
|
|
|
|
2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19609
|
|
|
|
|
* testsuite/ld-i386/got1.dd: Updated.
|
|
|
|
|
* testsuite/ld-i386/lea1c.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/load1-nacl.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/load1.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/load4b.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/load5b.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/mov1b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/mov1b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/mov1d.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-21-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-22-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/gotpcrel1.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/lea1a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/lea1b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/lea1c.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/lea1d.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/lea1e.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/lea1f.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/mov1b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/mov1d.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr13082-3b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr13082-4b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/lea1.s: Add tests for 32-bit registers.
|
|
|
|
|
* testsuite/ld-i386/pr19609-1.s: New file.
|
|
|
|
|
* testsuite/ld-i386/pr19609-1a.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19609-1b.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19609-1c.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19609-1d.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19609-1e.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19609-1f.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19609-1g.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19609-1h.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19609-1i.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19609-2.s: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19609-2a.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19609-2b.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19609-2c.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/undefweak.s: Likewise.
|
|
|
|
|
* testsuite/ld-i386/undefweaka.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/undefweakb.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr13082-3c.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr13082-3d.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-1.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-1a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-1b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-1c.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-1d.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-1e.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-1f.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-1g.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-1h.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-1i.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-1j.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-1k.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-1l.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-1m.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-2.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-2a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-2b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-2c.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-2d.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-3.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-3a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-3b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-4.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-4a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-4b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-4c.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-4d.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-4e.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-5.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-5a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-5b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-5c.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-5d.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-5e.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-6.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-6a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-6b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-6c.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-6d.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-7.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-7a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-7b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-7c.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-7d.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Run undefweak tests and tests for
|
|
|
|
|
PR ld/19609.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Run pr13082-3c, pr13082-3d
|
|
|
|
|
and tests for PR ld/19609.
|
|
|
|
|
|
2016-02-26 15:44:03 +01:00
|
|
|
|
2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19645
|
|
|
|
|
* NEWS: Mention -z common/-z nocommon for ELF targets.
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
|
|
|
|
|
-z common and -z nocommon.
|
|
|
|
|
* ld.texinfo: Document -z common/-z nocommon.
|
|
|
|
|
* lexsup.c (elf_shlib_list_options): Add -z common/-z nocommon.
|
|
|
|
|
* testsuite/ld-elf/tls_common.exp: Test --elf-stt-common=no and
|
|
|
|
|
--elf-stt-common=yes with assembler.
|
|
|
|
|
* testsuite/ld-elfcomm/common-1.s: New file.
|
|
|
|
|
* testsuite/ld-elfcomm/common-1a.d: Likewise.
|
|
|
|
|
* testsuite/ld-elfcomm/common-1b.d: Likewise.
|
|
|
|
|
* testsuite/ld-elfcomm/common-1c.d: Likewise.
|
|
|
|
|
* testsuite/ld-elfcomm/common-1d.d: Likewise.
|
|
|
|
|
* testsuite/ld-elfcomm/common-1e.d: Likewise.
|
|
|
|
|
* testsuite/ld-elfcomm/common-1f.d: Likewise.
|
|
|
|
|
* testsuite/ld-elfcomm/common-2.s: Likewise.
|
|
|
|
|
* testsuite/ld-elfcomm/common-2a.d: Likewise.
|
|
|
|
|
* testsuite/ld-elfcomm/common-2b.d: Likewise.
|
|
|
|
|
* testsuite/ld-elfcomm/common-2c.d: Likewise.
|
|
|
|
|
* testsuite/ld-elfcomm/common-2d.d: Likewise.
|
|
|
|
|
* testsuite/ld-elfcomm/common-2e.d: Likewise.
|
|
|
|
|
* testsuite/ld-elfcomm/common-2f.d: Likewise.
|
|
|
|
|
* testsuite/ld-elfcomm/common-3a.rd: Likewise.
|
|
|
|
|
* testsuite/ld-elfcomm/common-3b.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19645.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19645.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/largecomm-1.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/largecomm-1a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/largecomm-1b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/largecomm-1c.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/largecomm-1d.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/largecomm-1e.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/largecomm-1f.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19645.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19645.s: Likewise.
|
|
|
|
|
* testsuite/ld-elfcomm/elfcomm.exp: Test --elf-stt-common=yes
|
|
|
|
|
with assembler.
|
|
|
|
|
(assembler_generates_commons): Removed.
|
|
|
|
|
Run -z common/-z nocommon tests. Run *.d tests.
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Run pr19645.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/dwarfreloc.exp: Test --elf-stt-common with
|
|
|
|
|
assembler. Test STT_COMMON with readelf.
|
|
|
|
|
|
2016-02-26 13:16:15 +01:00
|
|
|
|
2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19636
|
|
|
|
|
PR ld/19704
|
|
|
|
|
PR ld/19719
|
|
|
|
|
* Makefile.am (ELF_X86_DEPS): Add dynamic_undefined_weak.sh.
|
|
|
|
|
* Makefile.in: Regenerated.
|
|
|
|
|
* NEWS: Mention -z nodynamic-undefined-weak.
|
|
|
|
|
* ld.texinfo: Document -z nodynamic-undefined-weak.
|
|
|
|
|
* ldmain.c (main): Initialize dynamic_undefined_weak to -1.
|
|
|
|
|
* emulparams/dynamic_undefined_weak.sh: New file.
|
|
|
|
|
* emulparams/elf32_x86_64.sh: Source dynamic_undefined_weak.sh.
|
|
|
|
|
* emulparams/elf_i386.sh: Likewise.
|
|
|
|
|
* emulparams/elf_i386_be.sh: Likewise.
|
|
|
|
|
* emulparams/elf_i386_chaos.sh: Likewise.
|
|
|
|
|
* emulparams/elf_i386_ldso.sh: Likewise.
|
|
|
|
|
* emulparams/elf_i386_vxworks.sh: Likewise.
|
|
|
|
|
* emulparams/elf_iamcu.sh: Likewise.
|
|
|
|
|
* emulparams/elf_k1om.sh: Likewise.
|
|
|
|
|
* emulparams/elf_l1om.sh: Likewise.
|
|
|
|
|
* emulparams/elf_x86_64.sh: Likewise.
|
|
|
|
|
* emulparams/extern_protected_data.sh (PARSE_AND_LIST_OPTIONS):
|
|
|
|
|
Append.
|
|
|
|
|
(PARSE_AND_LIST_ARGS_CASE_Z): Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr19719a.c: New file.
|
|
|
|
|
* testsuite/ld-elf/pr19719b.c: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr19719c.c: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr19719d.c: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-1.s: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-1a.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-1b.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-1c.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-1d-nacl.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-1d.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-1e.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-1f.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-1g.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-1h.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-1i.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-2.s: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-2a.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-2b.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-2c-nacl.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-2c.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-2d-nacl.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-2d.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-2e-nacl.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-2e.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-3.s: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-3a.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-3b.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-3c.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-3d.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-3e.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-3f.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-3g.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-4.s: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-4a.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-4b.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-4c.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-4d.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19704.out: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19704a.c: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19704b.c: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-1.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-1a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-1b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-1c.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-1d.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-1e.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-1f.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-1g.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-2.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-2a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-2b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-2c.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-2d-nacl.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-2d.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-2e.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-2f.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-2g.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-2h.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-2i.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-3.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-3a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-3b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-3c.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-3d.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19704.out: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19704a.c: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19704b.c: Likewise.
|
|
|
|
|
* testsuite/ld-elf/shared.exp (mix_pic_and_non_pic): New.
|
|
|
|
|
Run mix_pic_and_non_pic.
|
|
|
|
|
* testsuite/ld-i386/i386.exp (undefined_weak): New.
|
|
|
|
|
Run undefined_weak and PR ld/19636 tests.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr13082-3b.d: Updated.
|
|
|
|
|
* testsuite/ld-x86-64/pr13082-4b.d: Likewise.
|
|
|
|
|
|
2016-02-25 11:33:29 +01:00
|
|
|
|
2016-02-25 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ld.h (struct ld_config_type): Remove specified_data_size field.
|
|
|
|
|
|
2016-02-25 00:13:35 +01:00
|
|
|
|
2016-02-24 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19698
|
|
|
|
|
* testsuite/ld-elf/pr19698.d: New file.
|
|
|
|
|
* testsuite/ld-elf/pr19698.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr19698.t: Likewise.
|
|
|
|
|
|
2016-02-23 17:24:18 +01:00
|
|
|
|
2016-02-23 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (ELF_X86_DEPS): New.
|
|
|
|
|
(eelf_i386.c): Replace $(ELF_DEPS) with $(ELF_X86_DEPS).
|
|
|
|
|
(eelf_i386_chaos.c): Likewise.
|
|
|
|
|
(eelf_i386_fbsd.c): Likewise.
|
|
|
|
|
(eelf_i386_ldso.c): Likewise.
|
|
|
|
|
(eelf_i386_nacl.c): Likewise.
|
|
|
|
|
(eelf_i386_sol2.c): Likewise.
|
|
|
|
|
(eelf_iamcu.c): Likewise.
|
|
|
|
|
(eelf32_x86_64.c): Likewise.
|
|
|
|
|
(eelf32_x86_64_nacl.c): Likewise.
|
|
|
|
|
(eelf_l1om.c): Likewise.
|
|
|
|
|
(eelf_l1om_fbsd.c): Likewise.
|
|
|
|
|
(eelf_k1om.c): Likewise.
|
|
|
|
|
(eelf_k1om_fbsd.c): Likewise.
|
|
|
|
|
(eelf_x86_64.c): Likewise.
|
|
|
|
|
(eelf_x86_64_cloudabi.c): Likewise.
|
|
|
|
|
(eelf_x86_64_fbsd.c): Likewise.
|
|
|
|
|
(eelf_x86_64_sol2.c): Likewise.
|
|
|
|
|
* Makefile.in: Regenerated.
|
|
|
|
|
|
2016-02-23 14:18:43 +01:00
|
|
|
|
2016-02-23 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-frv/fdpic-pie-6.d: Updated.
|
|
|
|
|
* testsuite/ld-mips-elf/pie-n32.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/pie-n64.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/pie-o32.d: Likewise.
|
|
|
|
|
|
2016-02-20 23:43:52 +01:00
|
|
|
|
2016-02-20 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/pr19539.d: Skip cris*-*-* targets.
|
|
|
|
|
|
2016-02-18 16:48:57 +01:00
|
|
|
|
2016-02-18 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/pr19617a.d: Enable only for *-*-linux*,
|
|
|
|
|
*-*-gnu* and *-*-solaris*.
|
|
|
|
|
* testsuite/ld-elf/pr19617b.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr19617c.d: Likewise.
|
|
|
|
|
|
2016-02-18 12:13:19 +01:00
|
|
|
|
2016-02-18 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19617
|
|
|
|
|
* testsuite/ld-elf/pr19617.s: New file.
|
|
|
|
|
* testsuite/ld-elf/pr19617a.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr19617b.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr19617c.d: Likewise.
|
|
|
|
|
|
2016-02-18 11:10:36 +01:00
|
|
|
|
2016-02-18 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (CXX_FOR_TARGET): Check for the presence of an
|
|
|
|
|
in-tree xg++ executable after checking for the presence of an
|
|
|
|
|
in-tree g++ executable.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2016-02-17 22:05:06 +01:00
|
|
|
|
2016-02-17 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-1-local-x86.d: Updated.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
|
|
|
|
|
|
2016-02-17 20:18:53 +01:00
|
|
|
|
2016-02-17 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-1-local-x86.d: Updated.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-2-local-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-2-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/bnd-ifunc-1.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/ilp32-4-nacl.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/ilp32-4.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/load1c-nacl.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/load1c.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/load1d-nacl.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/load1d.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr14207.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19162.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsdesc-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsdesc.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsgdesc-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlspic-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlspic.rd: Likewise.
|
|
|
|
|
|
2016-02-17 11:20:53 +01:00
|
|
|
|
2016-02-17 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/eh-frame-hdr.d: Skip for ARC ELF targets.
|
|
|
|
|
|
2016-02-15 12:11:46 +01:00
|
|
|
|
2016-02-15 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-i386/pr12718.d: Remove dependency upon the
|
|
|
|
|
description of the flags produced by readelf.
|
|
|
|
|
* testsuite/ld-i386/pr12921.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsbin-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsbin.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsbindesc-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsbindesc.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsdesc-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsdesc.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsgdesc-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsgdesc.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsnopic-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsnopic.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlspic-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlspic.rd: Likewise.
|
|
|
|
|
* testsuite/ld-s390/tlsbin.rd: Likewise.
|
|
|
|
|
* testsuite/ld-s390/tlsbin_64.rd: Likewise.
|
|
|
|
|
* testsuite/ld-s390/tlspic.rd: Likewise.
|
|
|
|
|
* testsuite/ld-s390/tlspic_64.rd: Likewise.
|
|
|
|
|
* testsuite/ld-sh/tlsbin-2.d: Likewise.
|
|
|
|
|
* testsuite/ld-sh/tlspic-2.d: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/common.d: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/shlib-1.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/shlib-1b.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/shlib-1r.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/static-app-1.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/static-app-1b.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/static-app-1r.rd: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/ilp32-4-nacl.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/ilp32-4.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr12718.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr12921.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/split-by-file-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/split-by-file.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsbin-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsbin.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsbindesc-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsdesc-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsdesc.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsgdesc-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlspic-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlspic.rd: Likewise.
|
|
|
|
|
* testsuite/ld-xtensa/tlsbin.rd: Likewise.
|
|
|
|
|
* testsuite/ld-xtensa/tlspic.rd: Likewise.
|
|
|
|
|
|
2016-02-12 00:24:33 +01:00
|
|
|
|
2016-02-11 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19615
|
|
|
|
|
* ld.texinfo: Document -Bsymbolic and -Bsymbolic-functions for
|
|
|
|
|
PIE.
|
|
|
|
|
* lexsup.c (parse_args): Enable -Bsymbolic and
|
|
|
|
|
-Bsymbolic-functions for PIE.
|
2016-02-12 00:37:00 +01:00
|
|
|
|
* testsuite/ld-i386/i386.exp: Run pr19615.
|
2016-02-12 00:24:33 +01:00
|
|
|
|
* testsuite/ld-i386/pr19615.d: New file.
|
|
|
|
|
* testsuite/ld-i386/pr19615.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19615.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19615.s: Likewise.
|
|
|
|
|
|
2016-02-09 10:56:21 +01:00
|
|
|
|
2016-02-09 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-aarch64/reloc-overflow-bad.d: New test.
|
|
|
|
|
* testsuite/ld-aarch64/reloc-overflow-1.s: New source file.
|
|
|
|
|
* testsuite/ld-aarch64/reloc-overflow-2.s: New source file.
|
|
|
|
|
* testsuite/ld-aarch64/aarch64-elf.exp: Run the new test.
|
|
|
|
|
|
2016-02-04 12:57:57 +01:00
|
|
|
|
2016-02-04 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-arm/arm-elf.exp: Remove ARM NOREAD section tests.
|
|
|
|
|
* testsuite/ld-arm/thumb1-input-section-flag-match.d: Delete.
|
|
|
|
|
* testsuite/ld-arm/thumb1-input-section-flag-match.s: Delete.
|
|
|
|
|
* testsuite/ld-arm/thumb1-noread-not-present-mixing-two-section.d: Delete.
|
|
|
|
|
* testsuite/ld-arm/thumb1-noread-not-present-mixing-two-section.s: Delete.
|
|
|
|
|
* testsuite/ld-arm/thumb1-noread-present-one-section.d: Delete.
|
|
|
|
|
* testsuite/ld-arm/thumb1-noread-present-one-section.s: Delete.
|
|
|
|
|
* testsuite/ld-arm/thumb1-noread-present-two-section.d: Delete.
|
|
|
|
|
* testsuite/ld-arm/thumb1-noread-present-two-section.s: Delete.
|
|
|
|
|
|
2016-02-03 17:25:15 +01:00
|
|
|
|
2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR gas/19520
|
|
|
|
|
* testsuite/ld-i386/branch1.d: Pass -mrelax-relocations=yes to as.
|
|
|
|
|
* testsuite/ld-i386/call1.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/call2.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/call3a.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/call3b.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/call3c.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/call3d.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/call3e.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/call3f.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/call3g.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/call3h.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/jmp1.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/jmp2.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/lea1c.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/load1.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/load2.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/load3.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/load4a.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/load5a.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/mov2b.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/mov3.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-5r-local-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/call1a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/call1b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/call1c.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/call1d.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/call1e.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/call1f.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/call1h.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/call1i.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/load1a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/load1b.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/got1a.S: Load GOT into %ecx and use it.
|
|
|
|
|
* testsuite/ld-i386/got1.dd: Updated.
|
|
|
|
|
* testsuite/ld-i386/got1d.S (1): Removed.
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Add -Wa,-mrelax-relocations=yes.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Likewise.
|
|
|
|
|
|
2016-02-02 15:36:52 +01:00
|
|
|
|
2016-02-02 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/18591
|
|
|
|
|
* testsuite/ld-x86-64/pr18591.d: New file.
|
|
|
|
|
* testsuite/ld-x86-64/pr18591.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Run pr18591.
|
|
|
|
|
|
2016-02-02 00:49:52 +01:00
|
|
|
|
2016-02-01 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19553
|
|
|
|
|
* testsuite/ld-elf/indirect.exp: Run tests for PR ld/19553.
|
|
|
|
|
* testsuite/ld-elf/pr19553.map: New file.
|
|
|
|
|
* testsuite/ld-elf/pr19553.map: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr19553a.c: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr19553b.c: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr19553b.out: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr19553c.c: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr19553c.out: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr19553d.c: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr19553d.out: Likewise.
|
|
|
|
|
|
2016-01-30 23:11:03 +01:00
|
|
|
|
2016-01-30 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19539
|
|
|
|
|
* testsuite/ld-elf/pr19539.d: New file.
|
|
|
|
|
* testsuite/ld-elf/pr19539.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr19539.t: Likewise.
|
|
|
|
|
|
2016-01-29 16:47:13 +01:00
|
|
|
|
2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19533
|
|
|
|
|
* configure.ac (compressed_debug_sections): Replace == with =.
|
|
|
|
|
* configure: Regenerated.
|
|
|
|
|
|
2016-01-25 20:33:25 +01:00
|
|
|
|
2016-01-22 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
|
|
|
|
|
|
|
|
|
|
* scripttempl/avr.sc (.noinit): Force .noinit VMA to end of .bss VMA.
|
|
|
|
|
* scripttempl/avrtiny.sc (.noinit): Likewise.
|
|
|
|
|
|
2016-01-21 11:51:25 +01:00
|
|
|
|
2016-01-21 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
2016-01-21 16:20:57 +01:00
|
|
|
|
PR ld/19453
|
|
|
|
|
* testsuite/ld-arm/arm-elf.exp: Skip tests that do not work for
|
|
|
|
|
the arm-netbsdelf target.
|
|
|
|
|
|
2016-01-21 11:51:25 +01:00
|
|
|
|
PR ld/19455
|
|
|
|
|
* testsuite/ld-arm/vxworks1-lib.dd: Update for current
|
|
|
|
|
disassmebler output.
|
|
|
|
|
* testsuite/ld-arm/vxworks1-lib.rd: Likewise.
|
|
|
|
|
* testsuite/ld-arm/vxworks1.dd: Likewise.
|
|
|
|
|
* testsuite/ld-arm/vxworks1.rd: Likewise.
|
|
|
|
|
* testsuite/ld-arm/vxworks1.ld: Set the output format.
|
|
|
|
|
|
2016-01-20 17:57:59 +01:00
|
|
|
|
2016-01-20 Jiong Wang <jiong.wang@arm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-aarch64/farcall-section.d: Delete.
|
|
|
|
|
* testsuite/ld-aarch64/farcall-section.s: Delete.
|
|
|
|
|
* testsuite/ld-aarch64/farcall-b-section.d: New expectation file.
|
|
|
|
|
* testsuite/ld-aarch64/farcall-bl-section.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/farcall-b-section.s: New testcase.
|
|
|
|
|
* testsuite/ld-aarch64/farcall-bl-section.s: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/aarch64-elf.exp: Likewise.
|
|
|
|
|
|
2016-01-20 16:41:06 +01:00
|
|
|
|
2016-01-20 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR 19457
|
|
|
|
|
* testsuite/ld-scripts/script.exp (extract_symbol_test): Stop test
|
|
|
|
|
early for PE based targets.
|
|
|
|
|
* testsuite/ld-scripts/align.t: Use 0x1000 as VMA alignment.
|
|
|
|
|
* testsuite/ld-pe/tlssec32.d: Allow for relocatable output.
|
|
|
|
|
|
2016-01-20 13:53:50 +01:00
|
|
|
|
2016-01-20 Mickael Guene <mickael.guene@st.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-arm/thumb1-noread-not-present-mixing-two-section.s:
|
|
|
|
|
Add 'y' attribute usage.
|
|
|
|
|
* testsuite/ld-arm/thumb1-noread-present-one-section.s: Likewise.
|
|
|
|
|
* testsuite/ld-arm/thumb1-noread-present-two-section.s: Likewise.
|
|
|
|
|
* testsuite/ld-arm/thumb1-input-section-flag-match.s: Likewise.
|
|
|
|
|
|
2016-01-19 10:57:03 +01:00
|
|
|
|
2016-01-19 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/pr18735.d: Allow for extra symbols between
|
|
|
|
|
foo@FOO and bar@@FOO.
|
|
|
|
|
|
2016-01-18 06:36:49 +01:00
|
|
|
|
2016-01-18 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
|
2016-01-18 12:23:44 +01:00
|
|
|
|
2016-01-18 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-plugin/plugin.exp: Skip plugin tests if the linker
|
|
|
|
|
is not configured to support plugins.
|
|
|
|
|
|
2016-01-18 14:00:33 +01:00
|
|
|
|
* testsuite/ld-scripts/rgn-at11.s: New file - based on rgn-at10.s
|
|
|
|
|
but with 16 byte section alignment.
|
|
|
|
|
* testsuite/ld-scripts/rgn-at11.d: Use new source file. Reenable
|
|
|
|
|
test for MIPS targets.
|
|
|
|
|
|
2016-01-17 02:50:55 +01:00
|
|
|
|
2016-01-17 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
|
2016-01-17 02:43:43 +01:00
|
|
|
|
2016-01-17 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/lib/ld-lib.exp (check_shared_lib_support): Exclude xgate.
|
|
|
|
|
* testsuite/ld-elf/endsym.d: xfail m68hc11/12 and xgate.
|
|
|
|
|
* testsuite/ld-elf/pr14156a.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr14926.d: Don't run for m68hc11/12 and xgate.
|
|
|
|
|
* testsuite/ld-elf/sec64k.exp: Likewise.
|
|
|
|
|
|
2016-01-14 11:00:24 +01:00
|
|
|
|
2016-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-arm/arm-elf.exp (Thumb-Thumb farcall v6-M (no profile)):
|
|
|
|
|
Set address of .foo section when linking.
|
|
|
|
|
* testsuite/ld-arm/farcall-thumb-thumb-m-no-profile-b.s: Place myfunc
|
|
|
|
|
in .foo section.
|
|
|
|
|
* testsuite/ld-arm/farcall-thumb-thumb-m-no-profile.d: Adapt expected
|
|
|
|
|
output to the above changes.
|
|
|
|
|
|
2016-01-13 10:26:22 +01:00
|
|
|
|
2016-01-13 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
2016-01-13 11:00:49 +01:00
|
|
|
|
* testsuite/ld-elf/elf.exp (-Bymsolic-functions): Expect to fail
|
|
|
|
|
for MIPS targets.
|
|
|
|
|
|
2016-01-13 10:40:11 +01:00
|
|
|
|
* testsuite/ld-scripts/script.exp (extract_symbol_test): Expect to
|
|
|
|
|
fail for MIPS targets.
|
|
|
|
|
|
2016-01-13 10:26:22 +01:00
|
|
|
|
* testsuite/ld-scripts/rgn-at11.d: Expect this test to fail for
|
|
|
|
|
MIPS targets.
|
|
|
|
|
|
2016-01-12 17:33:20 +01:00
|
|
|
|
2016-01-12 Yury Usishchev <y.usishchev@samsung.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-arm/arm-elf.exp: New test.
|
|
|
|
|
* testsuite/ld-arm/unwind-mix.d: New file.
|
|
|
|
|
* testsuite/ld-arm/unwind-mix1.s: New file.
|
|
|
|
|
* testsuite/ld-arm/unwind-mix2.s: New file.
|
|
|
|
|
|
2016-01-08 10:47:24 +01:00
|
|
|
|
2016-01-08 Jiong Wang <jiong.wang@arm.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19368
|
|
|
|
|
* testsuite/ld-arm/ifunc-3.rd: Update expected result.
|
|
|
|
|
* testsuite/ld-arm/ifunc-4.rd: Likewise.
|
|
|
|
|
* testsuite/ld-arm/ifunc-9.rd: Likewise.
|
|
|
|
|
* testsuite/ld-arm/ifunc-10.rd: Likewise.
|
|
|
|
|
* testsuite/ld-arm/ifunc-12.rd: Likewise.
|
|
|
|
|
* testsuite/ld-arm/ifunc-13.rd: Likewise.
|
|
|
|
|
|
2016-01-05 17:43:58 +01:00
|
|
|
|
2016-01-05 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/msp430elf.sh (RAM_START): Move to 0x500 - above the
|
|
|
|
|
MSP430 hardware multiply address range.
|
|
|
|
|
* scripttempl/elf32msp430.sc (__romdatastart): Define.
|
|
|
|
|
(__romdatacopysize): Define.
|
|
|
|
|
* scripttempl/elf32msp430_3.sc: Likewise.
|
|
|
|
|
|
2016-01-05 00:35:03 +01:00
|
|
|
|
2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/mipself.em (PARSE_AND_LIST_PROLOGUE): Convert
|
|
|
|
|
OPTION_INSN32 and OPTION_NO_INSN32 macros to an enum.
|
|
|
|
|
|
2016-01-05 00:30:00 +01:00
|
|
|
|
2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/attr-gnu-4-14.d: Update the order of
|
|
|
|
|
messages expected according to MIPS BFD private data merge
|
|
|
|
|
changes.
|
|
|
|
|
* testsuite/ld-mips-elf/attr-gnu-4-24.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/attr-gnu-4-34.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/attr-gnu-4-41.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/attr-gnu-4-42.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/attr-gnu-4-43.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/attr-gnu-4-45.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/attr-gnu-4-46.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/attr-gnu-4-47.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/attr-gnu-4-48.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/attr-gnu-4-49.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/attr-gnu-4-54.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/attr-gnu-4-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/attr-gnu-4-74.d: Likewise.
|
|
|
|
|
|
2016-01-01 12:25:12 +01:00
|
|
|
|
2016-01-01 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
Update year range in copyright notice of all files.
|
|
|
|
|
|
2016-01-01 11:44:31 +01:00
|
|
|
|
For older changes see ChangeLog-2015 and testsuite/ChangeLog-2015
|
|
|
|
|
|
|
|
|
|
Copyright (C) 2016 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
Local Variables:
|
|
|
|
|
mode: change-log
|
|
|
|
|
left-margin: 8
|
|
|
|
|
fill-column: 74
|
|
|
|
|
version-control: never
|
|
|
|
|
End:
|