2017-04-18 17:56:57 +02:00
|
|
|
|
2017-04-19 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo (dynamic-undefined-weak): Document.
|
|
|
|
|
(nodynamic-undefined-weak): Document that this option now can
|
|
|
|
|
be used with shared libs.
|
|
|
|
|
* emulparams/dynamic_undefined_weak.sh: Support -z
|
|
|
|
|
dynamic-undefined-weak.
|
|
|
|
|
* emulparams/elf32ppccommon.sh: Include dynamic_undefined_weak.sh.
|
|
|
|
|
* testsuite/ld-undefined/weak-undef.exp (undef_weak_so),
|
|
|
|
|
(undef_weak_exe): New. Use them. Add -z dynamic-undefined-weak
|
|
|
|
|
and -z nodynamic-undefined-weak tests.
|
|
|
|
|
* Makefile.am: Update powerpc dependencies.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2017-04-17 16:47:17 +02:00
|
|
|
|
2017-04-17 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/21389
|
|
|
|
|
* testsuite/ld-elf/pr21389.map: New file.
|
|
|
|
|
* testsuite/ld-elf/pr21389.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr21389a.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr21389b.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr21389c.d: Likewise.
|
|
|
|
|
|
2017-04-17 11:03:52 +02:00
|
|
|
|
2017-04-17 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/indirect5a.c,
|
|
|
|
|
* testsuite/ld-elf/indirect5b.c,
|
|
|
|
|
* testsuite/ld-elf/indirect5.map,
|
|
|
|
|
* testsuite/ld-elf/indirect5.out: New test.
|
|
|
|
|
* testsuite/ld-elf/indirect6a.c: Likewise.
|
|
|
|
|
* testsuite/ld-elf/indirect.exp (check_dynamic_syms): New proc.
|
|
|
|
|
Run new tests and check dynsyms.
|
|
|
|
|
|
2017-04-11 12:07:51 +02:00
|
|
|
|
2017-04-11 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 21274
|
|
|
|
|
PR 18466
|
|
|
|
|
* emultempl/pe.em (pe_find_data_imports): Don't use fixed size
|
|
|
|
|
symbol buffer. Instead, xmalloc max size needed with space for
|
|
|
|
|
prefix. Wrap overlong lines. Formatting. Pass symbol buffer
|
|
|
|
|
copy of name to pe_walk_relocs_of_symbol.
|
|
|
|
|
(make_inport_fixup): Add "name" param, pass to pe_create_import_fixup.
|
|
|
|
|
* emultempl/pe.em (pep_find_data_imports): As for pe_find_data_imports.
|
|
|
|
|
(make_import_fixup): Add "name" param, pass to pep_create_import_fixup.
|
|
|
|
|
Use bfd_get_signed_* and remove unnecessary casts. Formatting.
|
|
|
|
|
* pe-dll.c (pe_walk_relocs_of_symbol): Add "name" param. Pass to
|
|
|
|
|
callback.
|
|
|
|
|
(make_import_fixup_mark): Add "name" param. Make use of prefix
|
|
|
|
|
space rather than xmalloc here.
|
|
|
|
|
(pe_create_import_fixup): Likewise.
|
|
|
|
|
* pe-dll.h (pe_walk_relocs_of_symbol): Update prototype.
|
|
|
|
|
(pe_create_import_fixup): Likewise.
|
|
|
|
|
* pep-dll.h (pep_walk_relocs_of_symbol): Likewise.
|
|
|
|
|
(pep_create_import_fixup): Likewise.
|
|
|
|
|
|
2017-04-10 16:56:55 +02:00
|
|
|
|
2017-04-10 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo (--strip-discarded): Document.
|
|
|
|
|
(--embedded-relocs): Document.
|
|
|
|
|
(--spare-dynamic-tags): Document.
|
|
|
|
|
(--task-link): Document.
|
|
|
|
|
|
2017-04-10 07:41:35 +02:00
|
|
|
|
2017-04-10 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 21287
|
|
|
|
|
* testsuite/ld-elf/init-fini-arrays.d: Match INIT_ARRAY and FINI_ARRAY.
|
|
|
|
|
* testsuite/ld-elf/init-fini-arrays.s: Use %init_array and %fini_array
|
|
|
|
|
section types.
|
|
|
|
|
* testsuite/lib/ld-lib.exp (default_ld_compile): Trim assembler
|
|
|
|
|
warnings about "ignoring incorrect section type".
|
|
|
|
|
(run_ld_link_exec_tests, run_cc_link_tests): Delete old comment.
|
|
|
|
|
|
2017-04-10 07:40:58 +02:00
|
|
|
|
2017-04-10 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elfvsb/elfvsb.exp (visibility_run): Delete
|
|
|
|
|
sh1p.o, sh2p.o, sh1np.o and sh2np.o before compiling. Use
|
|
|
|
|
remote_file host exists rather than file exists.
|
|
|
|
|
|
2017-04-07 17:53:43 +02:00
|
|
|
|
2017-04-07 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/21090
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp (undefined_weak): Use
|
|
|
|
|
NOPIE_CFLAGS and NOPIE_LDFLAGS to disable PIE for the non-pie
|
|
|
|
|
version of the test.
|
|
|
|
|
|
2017-04-07 16:40:14 +02:00
|
|
|
|
2017-04-07 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/19579
|
|
|
|
|
PR ld/21306
|
|
|
|
|
* testsuite/ld-elf/pr19579a.c (main): Updated.
|
|
|
|
|
|
2017-04-07 12:48:08 +02:00
|
|
|
|
2017-04-07 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR 21090
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp (undefined_weak): Explicitly
|
|
|
|
|
disable PIE for the non-pie version of the test.
|
|
|
|
|
|
2017-04-07 10:31:43 +02:00
|
|
|
|
2017-04-07 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/mbind2a.s: Don't use @, the ARM comment char.
|
|
|
|
|
|
2017-03-31 15:25:18 +02:00
|
|
|
|
2017-04-07 gingold <gingold@gingold-Precision-7510>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-pe/pe.exp: New test.
|
|
|
|
|
* testsuite/ld-pe/weakdef-1.s: New test source.
|
|
|
|
|
* testsuite/ld-pe/weakdef-1.d: New test.
|
|
|
|
|
|
2017-04-06 16:48:33 +02:00
|
|
|
|
2017-04-07 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/mbind1a.d: Remove matches for PT_LOAD segments.
|
|
|
|
|
* testsuite/ld-elf/mbind1b.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/mbind1c.d: Likewise.
|
|
|
|
|
|
2017-04-05 23:12:16 +02:00
|
|
|
|
2017-04-05 Hans-Peter Nilsson <hp@axis.com>
|
|
|
|
|
|
|
|
|
|
PR ld/21233
|
|
|
|
|
* testsuite/ld-elf/shared.exp: Change xfails to kfails and fix
|
|
|
|
|
indentation issue introduced with last commit.
|
|
|
|
|
|
2017-04-05 03:00:40 +02:00
|
|
|
|
2017-04-05 Hans-Peter Nilsson <hp@axis.com>
|
|
|
|
|
|
|
|
|
|
PR ld/21233
|
|
|
|
|
* testsuite/ld-elf/shared.exp: Xfail all PR21233 tests but the
|
|
|
|
|
first test for cris*-*-*.
|
|
|
|
|
|
PR ld/21233: Avoid sweeping forced-undefined symbols in section GC
Complement commit 902e9fc76a0e ("PR ld/20828: Move symbol version
processing ahead of GC symbol sweep"), commit b531344c34b0 ("PR
ld/20828: Reorder the symbol sweep stage of section GC") and commit
81ff47b3a546 ("PR ld/20828: Fix linker script symbols wrongly forced
local with section GC"), and prevent symbols forcibly entered in the
output file with the use of the `--undefined=' or `--require-defined='
linker command line options or the EXTERN linker script command from
being swept in section garbage collection and consequently recorded in
the dynamic symbol table as local entries. This happens in certain
circumstances, where a symbol reference also exists in one of the static
input files, however only in a section which is garbage-collected and
does not make it to the output file, and the symbol is defined in a
dynamic object present in the link.
For example with the `i386-linux' target and the `pr21233.s' and
`pr21233-l.s' sources, and the `pr21233.ld' linker script included with
this change we get:
$ as -o pr21233-l.o pr21233-l.s
$ ld -shared -T pr21233.ld -o libpr21233.so pr21233-l.o
$ as -o pr21233.o pr21233.s
$ ld --gc-sections -e foo --require-defined=bar -T pr21233.ld -o pr21233 pr21233.o libpr21233.so
$ readelf --dyn-syms pr21233
Symbol table '.dynsym' contains 2 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 00000000 0 NOTYPE LOCAL DEFAULT UND
1: 00000000 0 OBJECT LOCAL DEFAULT UND bar
$
which makes the run-time `bar' dependency of the `pr21233' executable
different from its corresponding link-time dependency, i.e. the presence
of `libpr21233.so' and its `bar' symbol is required at the link time,
however at the run time a copy of `libpr21233.so' without `bar' will do.
Similarly with `--undefined=' and EXTERN which do not actually require
the reference to the symbol requested to be satisfied with a definition
at the link time, however once the definition has been pulled at the
link time, so it should at the dynamic load time.
Additionally with the `mips-linux' target we get:
$ ld --gc-sections -e foo --require-defined=bar -T pr21233.ld -o pr21233 pr21233.o libpr21233.so
ld: BFD (GNU Binutils) 2.28.51.20170324 assertion fail .../bfd/elfxx-mips.c:3861
$
as the target is not prepared to handle such a local dynamic symbol.
With this change in effect we get:
$ readelf --dyn-syms pr21233
Symbol table '.dynsym' contains 2 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 00000000 0 NOTYPE LOCAL DEFAULT UND
1: 00000000 0 OBJECT GLOBAL DEFAULT UND bar
$
instead, for both targets.
ld/
PR ld/21233
* ldlang.c (insert_undefined): Set `mark' for ELF symbols.
* testsuite/ld-elf/pr21233.sd: New test.
* testsuite/ld-elf/pr21233-l.sd: New test.
* testsuite/ld-elf/pr21233.ld: New test linker script.
* testsuite/ld-elf/pr21233-e.ld: New test linker script.
* testsuite/ld-elf/pr21233.s: New test source.
* testsuite/ld-elf/pr21233-l.s: New test source.
* testsuite/ld-elf/shared.exp: Run the new tests.
2017-03-27 13:39:07 +02:00
|
|
|
|
2017-04-04 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
PR ld/21233
|
|
|
|
|
* ldlang.c (insert_undefined): Set `mark' for ELF symbols.
|
|
|
|
|
* testsuite/ld-elf/pr21233.sd: New test.
|
|
|
|
|
* testsuite/ld-elf/pr21233-l.sd: New test.
|
|
|
|
|
* testsuite/ld-elf/pr21233.ld: New test linker script.
|
|
|
|
|
* testsuite/ld-elf/pr21233-e.ld: New test linker script.
|
|
|
|
|
* testsuite/ld-elf/pr21233.s: New test source.
|
|
|
|
|
* testsuite/ld-elf/pr21233-l.s: New test source.
|
|
|
|
|
* testsuite/ld-elf/shared.exp: Run the new tests.
|
|
|
|
|
|
Support ELF SHF_GNU_MBIND and PT_GNU_MBIND_XXX
Mark an ALLOC section, which should be placed in special memory area,
with SHF_GNU_MBIND. Its sh_info field indicates the special memory
type. GNU_MBIND section names start with ".mbind" so that they are
placed as orphan sections by linker. All input GNU_MBIND sections
with the same sh_type, sh_flags and sh_info are placed in one output
GNU_MBIND section. In executable and shared object, create a
GNU_MBIND segment for each GNU_MBIND section and its segment type is
PT_GNU_MBIND_LO plus the sh_info value. Each GNU_MBIND segment is
aligned at page boundary.
The assembler syntax:
.section .mbind.foo,"adx",%progbits
^ 0: Special memory type.
|
'd' for SHF_GNU_MBIND.
.section .mbind.foo,"adx",%progbits,0x1
^ 1: Special memory type.
|
'd' for SHF_GNU_MBIND.
.section .mbind.bar,"adG",%progbits,.foo_group,comdat,0x2
^ 2: Special memory type.
|
'd' for SHF_GNU_MBIND.
bfd/
* elf.c (get_program_header_size): Add a GNU_MBIND segment for
each GNU_MBIND section and align GNU_MBIND section to page size.
(_bfd_elf_map_sections_to_segments): Create a GNU_MBIND
segment for each GNU_MBIND section.
(_bfd_elf_init_private_section_data): Copy sh_info from input
for GNU_MBIND section.
binutils/
* NEWS: Mention support for ELF SHF_GNU_MBIND and
PT_GNU_MBIND_XXX.
* readelf.c (get_segment_type): Handle PT_GNU_MBIND_XXX.
(get_elf_section_flags): Handle SHF_GNU_MBIND.
(process_section_headers): Likewise.
* testsuite/binutils-all/mbind1.s: New file.
* testsuite/binutils-all/objcopy.exp: Run readelf test on
mbind1.s.
gas/
* NEWS: Mention support for ELF SHF_GNU_MBIND.
* config/obj-elf.c (section_match): New.
(get_section): Match both sh_info and group name.
(obj_elf_change_section): Add argument for sh_info. Pass both
sh_info and group name to get_section. Issue an error for
SHF_GNU_MBIND section without SHF_ALLOC. Set sh_info.
(obj_elf_parse_section_letters): Set SHF_GNU_MBIND for 'd'.
(obj_elf_section): Support SHF_GNU_MBIND section info.
* config/obj-elf.h (obj_elf_change_section): Add argument for
sh_info.
* config/tc-arm.c (start_unwind_section): Pass 0 as sh_info to
obj_elf_change_section.
* config/tc-ia64.c (obj_elf_vms_common): Likewise.
* config/tc-microblaze.c (microblaze_s_data): Likewise.
(microblaze_s_sdata): Likewise.
(microblaze_s_rdata): Likewise.
(microblaze_s_bss): Likewise.
* config/tc-mips.c (s_change_section): Likewise.
* config/tc-msp430.c (msp430_profiler): Likewise.
* config/tc-rx.c (parse_rx_section): Likewise.
* config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
* doc/as.texinfo: Document 'd' for SHF_GNU_MBIND.
* testsuite/gas/elf/elf.exp: Run section12a, section12b and
section13.
* testsuite/gas/elf/section10.d: Updated.
* testsuite/gas/elf/section10.s: Likewise.
* testsuite/gas/elf/section12.s: New file.
* testsuite/gas/elf/section12a.d: Likewise.
* testsuite/gas/elf/section12b.d: Likewise.
* testsuite/gas/elf/section13.l: Likewise.
* testsuite/gas/elf/section13.d: Likewise.
* testsuite/gas/elf/section13.s: Likewise.
include/
* elf/common.h (PT_GNU_MBIND_NUM): New.
(PT_GNU_MBIND_LO): Likewise.
(PT_GNU_MBIND_HI): Likewise.
(SHF_GNU_MBIND): Likewise.
ld/
* NEWS: Mention support for ELF SHF_GNU_MBIND and
PT_GNU_MBIND_XXX.
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
input GNU_MBIND sections with the same type, attributes and
sh_info field into a single output GNU_MBIND section.
* testsuite/ld-elf/elf.exp: Run mbind2a and mbind2b.
* testsuite/ld-elf/mbind1.s: New file.
* testsuite/ld-elf/mbind1a.d: Likewise.
* testsuite/ld-elf/mbind1b.d: Likewise.
* testsuite/ld-elf/mbind1c.d: Likewise.
* testsuite/ld-elf/mbind2a.s: Likewise.
* testsuite/ld-elf/mbind2b.c: Likewise.
2017-04-04 18:05:48 +02:00
|
|
|
|
2017-04-04 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* NEWS: Mention support for ELF SHF_GNU_MBIND and
|
|
|
|
|
PT_GNU_MBIND_XXX.
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
|
|
|
|
|
input GNU_MBIND sections with the same type, attributes and
|
|
|
|
|
sh_info field into a single output GNU_MBIND section.
|
|
|
|
|
* testsuite/ld-elf/elf.exp: Run mbind2a and mbind2b.
|
|
|
|
|
* testsuite/ld-elf/mbind1.s: New file.
|
|
|
|
|
* testsuite/ld-elf/mbind1a.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/mbind1b.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/mbind1c.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/mbind2a.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/mbind2b.c: Likewise.
|
|
|
|
|
|
2017-04-03 17:03:14 +02:00
|
|
|
|
2017-04-03 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
2017-04-03 17:25:36 +02:00
|
|
|
|
* NEWS: Mention support for ELF GNU program properties.
|
2017-04-03 17:03:14 +02:00
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Call
|
|
|
|
|
ELF setup_gnu_properties.
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Run property tests for Linux/i386.
|
|
|
|
|
* testsuite/ld-i386/pass.c: New file.
|
|
|
|
|
* testsuite/ld-i386/property-1.r: Likewise.
|
|
|
|
|
* testsuite/ld-i386/property-2.r: Likewise.
|
|
|
|
|
* testsuite/ld-i386/property-3.r: Likewise.
|
|
|
|
|
* testsuite/ld-i386/property-4.r: Likewise.
|
|
|
|
|
* testsuite/ld-i386/property-5.r: Likewise.
|
|
|
|
|
* testsuite/ld-i386/property-6.r: Likewise.
|
|
|
|
|
* testsuite/ld-i386/property-6a.c: Likewise.
|
|
|
|
|
* testsuite/ld-i386/property-6b.c: Likewise.
|
|
|
|
|
* testsuite/ld-i386/property-6c.S: Likewise.
|
|
|
|
|
* testsuite/ld-i386/property-7.r: Likewise.
|
|
|
|
|
* testsuite/ld-i386/property-no-copy.S: Likewise.
|
|
|
|
|
* testsuite/ld-i386/property-stack.S: Likewise.
|
|
|
|
|
* testsuite/ld-i386/property-unsorted-1.S: Likewise.
|
|
|
|
|
* testsuite/ld-i386/property-unsorted-2.S: Likewise.
|
|
|
|
|
* testsuite/ld-i386/property-x86-1.S: Likewise.
|
|
|
|
|
* testsuite/ld-i386/property-x86-2.S: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pass.c: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/property-1.r: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/property-2.r: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/property-3.r: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/property-4.r: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/property-5.r: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/property-6.r: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/property-6a.c: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/property-6b.c: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/property-6c.S: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/property-7.r: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/property-no-copy.S: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/property-stack.S: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/property-unsorted-1.S: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/property-unsorted-2.S: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/property-x86-1.S: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/property-x86-2.S: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Run property tests for
|
|
|
|
|
Linux/x86-64.
|
|
|
|
|
|
2017-03-28 23:43:09 +02:00
|
|
|
|
2017-03-28 Hans-Peter Nilsson <hp@axis.com>
|
|
|
|
|
|
|
|
|
|
PR ld/16044
|
|
|
|
|
* testsuite/ld-cris/pr16044.d, testsuite/ld-cris/dso-1c.s,
|
|
|
|
|
testsuite/ld-cris/dso-2b.s, testsuite/ld-cris/dso-4.s: New test.
|
|
|
|
|
|
2017-03-21 21:25:09 +01:00
|
|
|
|
2017-03-21 Sandra Loosemore <sandra@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/lib/ld-lib.exp (check_shared_lib_support): Return
|
|
|
|
|
false for nios2-*-elf.
|
|
|
|
|
|
2017-03-17 11:12:05 +01:00
|
|
|
|
2017-03-21 gingold <gingold@gingold-Precision-7510>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_check_section_addresses): Check only for
|
|
|
|
|
allocated sections.
|
|
|
|
|
|
2017-03-14 12:31:34 +01:00
|
|
|
|
2017-03-17 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/sec64k.exp: Don't run on h8300 and ip2k.
|
|
|
|
|
|
2017-03-14 14:54:37 +01:00
|
|
|
|
2017-03-15 Tristan Gingold <gingold@adacore.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-checks/checks.exp (overflow_check): Disable for
|
|
|
|
|
non-elf targets.
|
|
|
|
|
|
2017-03-14 17:09:54 +01:00
|
|
|
|
2017-03-14 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_check_section_addresses): Use addr_mask to
|
|
|
|
|
check VMA and LMA.
|
|
|
|
|
|
2017-03-13 10:58:04 +01:00
|
|
|
|
2017-03-13 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR binutils/21202
|
|
|
|
|
* testsuite/ld-aarch64/ifunc-5r-local.d: Update regexp.
|
|
|
|
|
|
2017-03-10 15:16:19 +01:00
|
|
|
|
2017-03-13 Tristan Gingold <gingold@adacore.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_check_section_addresses): Check for address space
|
|
|
|
|
overflow.
|
|
|
|
|
* testsuite/ld-checks/checks.exp (overflow_check): New procedure
|
|
|
|
|
* testsuite/ld-checks/over.s: New test source.
|
|
|
|
|
* testsuite/ld-checks/over.d: New test.
|
|
|
|
|
* testsuite/ld-checks/over2.s: New test source.
|
|
|
|
|
* testsuite/ld-checks/over2.d: New test.
|
|
|
|
|
|
2017-03-13 04:49:46 +01:00
|
|
|
|
2017-03-13 Alexey Neyman <stilor@att.net>
|
|
|
|
|
|
|
|
|
|
* emulparams/elf32ppccommon.sh (LIBPATH_SUFFIX): Set from target
|
|
|
|
|
cpu, not host.
|
|
|
|
|
|
2017-03-11 14:07:02 +01:00
|
|
|
|
2017-03-11 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Add
|
|
|
|
|
sysroot for -rpath search.
|
|
|
|
|
|
2017-03-11 13:27:29 +01:00
|
|
|
|
2017-03-11 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Rewrite.
|
|
|
|
|
Only prefix absolute paths with sysroot. Handle DOS paths.
|
|
|
|
|
(gld${EMULATION_NAME}_check_ld_elf_hints): Constify variable.
|
|
|
|
|
(gld${EMULATION_NAME}_check_ld_so_conf): Likewise.
|
|
|
|
|
(gld${EMULATION_NAME}_after_open): Short-circuit NULL path
|
|
|
|
|
searches. Rename variable. Simplify get_runpath search.
|
|
|
|
|
|
2017-03-11 01:34:02 +01:00
|
|
|
|
2017-03-11 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/shared.exp: Use -Wl,-export-dynamic rather
|
|
|
|
|
than -rdynamic.
|
|
|
|
|
|
2017-03-11 01:21:56 +01:00
|
|
|
|
2017-03-11 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo (Orphan Sections): Mention that not all targets
|
|
|
|
|
handle orphans well.
|
|
|
|
|
* testsuite/ld-elf/orphan-9.d: Don't run for i860 and i960.
|
|
|
|
|
* testsuite/ld-elf/orphan-10.d: Likewise.
|
|
|
|
|
|
ld: Track changes to default region LMA even for empty sections
Given a linker script fragment like this:
SECTIONS {
. = 0x1000;
.text : AT(0x100) { *(.text) }
.data : AT(0x200) { *(.data) }
.rodata : AT(0x300) { *(.rodata) }
}
and an input file containing sections, '.text', '.data.1', and
'.rodata', then we'd expect the linker to place '.text' and '.rodata' in
the obvious way, and the '.data.1' orphan section would be located after
the '.data' section (assuming similar section properties).
Further, I believe that the expectation would be that the LMA for the
orphan '.data.1' section would start from 0x200 (as there is no '.data'
content).
However, right now, the LMA for '.data.1' would be 0x101, following on
from the '.text' section, this is because the change in LMA for the
'.data' section is not noticed by the linker, if there's no content in
the '.data' section.
What can be even more confusing to a user (though the cause is obvious
once you understand what's going on) is that adding some content to
'.data' will cause the orphan '.data.1' to switch to an LMA based off of
0x200.
This commit changes the behaviour so that an empty section that is in
the default lma region, and sets its lma, will adjust the lma of the
default region, this change will then be reflected in following sections
within the default lma memory region.
There's a new test to cover this issue that passes on a range of
targets, however, some targets generate additional sections, or have
stricter memory region size requirements that make it harder to come
up with a generic pass pattern, that still tests the required
features. For now I've set the test to ignore these targets.
ld/ChangeLog:
* ldlang.c (lang_size_sections_1): Shortcut loop only after
tracking changes to the default regions LMA.
* testsuite/ld-elf/orphan-9.ld: Extend header comment.
* testsuite/ld-elf/orphan-10.d: New file.
* testsuite/ld-elf/orphan-10.s: New file.
* NEWS: Mention change in behaviour.
2017-01-17 20:13:29 +01:00
|
|
|
|
2017-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_size_sections_1): Shortcut loop only after
|
|
|
|
|
tracking changes to the default regions LMA.
|
|
|
|
|
* testsuite/ld-elf/orphan-9.ld: Extend header comment.
|
|
|
|
|
* testsuite/ld-elf/orphan-10.d: New file.
|
|
|
|
|
* testsuite/ld-elf/orphan-10.s: New file.
|
|
|
|
|
* NEWS: Mention change in behaviour.
|
|
|
|
|
|
ld: better handling of lma region for orphan sections
When picking an lma_region for an orphan section we currently create a
new lang_output_section_statement_type and then populate this with the
orphan section.
The problem is that the lang_output_section_statement_type has a prev
pointer that links back to the previous output section. For non-orphan
output sections, that are created in linker script order, the prev
pointer will point to the output section that appears previous in linker
script order, as you'd probably expect.
The problem is that orphan sections are placed after processing the
linker script, and so, in the case of an output section created for an
orphan input section, the prev pointer actually points to the last
output section created.
This causes some unexpected behaviour when the orphan section is not
placed after the last non-orphan section that was created.
For example, consider this linker script:
MEMORY {
TEXT : ORIGIN = 0x200, LENGTH = 0x10
RODATA : ORIGIN = 0x400, LENGTH = 0x10
}
SECTIONS {
.text : {*(.text) } AT>TEXT
.data : AT(0x300) { *(.data) }
.rodata : { *(.rodata) } AT>RODATA
}
If we are processing an orphan section '.data.1' and decide to place
this after '.data', then the output section created will have a prev
pointer that references the '.rodata' output section. The result of
this is that '.data.1' will actually be assigned to the RODATA lma
region, which is probably not the expected behaviour.
The reason why '.data.1' is placed into the lma region of the '.rodata'
section is that lma region propagation is done at the time we create the
output section, based on the previous output section pointer, which is
really just a last-output-section-created pointer at that point in time,
though the prev point is fixed up later to reflect the true order of the
output sections.
The solution I propose in this commit is to move the propagation of lma
regions into a separate pass of the linker, rather than performing this
as part of the enter/exit of output sections during linker script
parsing.
During this later phase we have all of the output sections to hand, and
the prev/next points have been fixed up by this point to reflect the
actual placement ordering.
There's a new test to cover this issue that passes on a range of
targets, however, some targets generate additional sections, or have
stricter memory region size requirements that make it harder to come
up with a generic pass pattern, that still tests the required
features. For now I've set the test to ignore these targets.
ld/ChangeLog:
* ldlang.c (lang_leave_output_section_statement): Move lma_region
logic to...
(lang_propagate_lma_regions): ...this new function.
(lang_process): Call new function.
* testsuite/ld-elf/orphan-9.d: New file.
* testsuite/ld-elf/orphan-9.ld: New file.
* testsuite/ld-elf/orphan-9.s: New file.
* NEWS: Mention change in behaviour.
2017-01-17 20:12:54 +01:00
|
|
|
|
2017-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_leave_output_section_statement): Move lma_region
|
|
|
|
|
logic to...
|
|
|
|
|
(lang_propagate_lma_regions): ...this new function.
|
|
|
|
|
(lang_process): Call new function.
|
|
|
|
|
* testsuite/ld-elf/orphan-9.d: New file.
|
|
|
|
|
* testsuite/ld-elf/orphan-9.ld: New file.
|
|
|
|
|
* testsuite/ld-elf/orphan-9.s: New file.
|
|
|
|
|
* NEWS: Mention change in behaviour.
|
|
|
|
|
|
2017-03-07 02:50:00 +01:00
|
|
|
|
2017-03-07 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (open_input_bfds): Check that lang_assignment_statement
|
|
|
|
|
is not an assert before referencing defsym.
|
|
|
|
|
|
2017-03-05 05:19:54 +01:00
|
|
|
|
2017-03-05 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/eh3.d: Adjust for eh_frame alignment change.
|
|
|
|
|
* testsuite/ld-elf/eh6.d: Likewise.
|
|
|
|
|
* testsuite/ld-alpha/tlsbin.dd: Likewise.
|
|
|
|
|
* testsuite/ld-alpha/tlsbin.td: Likewise.
|
|
|
|
|
* testsuite/ld-alpha/tlsbinr.dd: Likewise.
|
|
|
|
|
* testsuite/ld-alpha/tlspic.dd: Likewise.
|
|
|
|
|
* testsuite/ld-alpha/tlspic.rd: Likewise.
|
|
|
|
|
* testsuite/ld-alpha/tlspic.sd: Likewise.
|
|
|
|
|
* testsuite/ld-alpha/tlspic.td: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/eh-frame1-n64.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/eh-frame2-n64.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/eh-frame3.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20830a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr21038a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr21038b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr21038c.d: Likewise.
|
|
|
|
|
|
2017-03-03 12:35:03 +01:00
|
|
|
|
2017-03-03 Max Bolingbroke <batterseapower@hotmail.com>
|
|
|
|
|
|
|
|
|
|
PR 12969
|
|
|
|
|
* pe-dll.c (generate_edata): Fail if the input file(s) require too
|
|
|
|
|
many ordinals.
|
|
|
|
|
|
2017-03-02 00:53:42 +01:00
|
|
|
|
2017-03-02 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/shared.exp: Pass -ansi when compiling new.cc
|
|
|
|
|
and dl3.cc.
|
|
|
|
|
|
2017-02-28 01:08:51 +01:00
|
|
|
|
2017-02-28 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/merge.d: xfail for nios.
|
|
|
|
|
|
2017-02-27 23:02:36 +01:00
|
|
|
|
2017-02-28 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-powerpc/addpcis.d: Define ext1 and ext2 at
|
|
|
|
|
limits of addpcis range.
|
|
|
|
|
|
2017-02-28 01:14:08 +01:00
|
|
|
|
2017-02-28 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/jalr4.dd: Adjust for `jalr $0, $25'
|
|
|
|
|
instructions.
|
|
|
|
|
* testsuite/ld-mips-elf/jalr4-r6.dd: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
|
|
|
|
|
|
2017-02-27 18:05:53 +01:00
|
|
|
|
2017-02-27 Georg-Johann Lay <gjl@gcc.gnu.org>
|
|
|
|
|
|
|
|
|
|
PR target/20849
|
|
|
|
|
* scripttempl/avrtiny.sc (__RODATA_PM_OFFSET__): New define.
|
|
|
|
|
(.rodata): New section.
|
|
|
|
|
(.data): Remove .rodata*.
|
|
|
|
|
|
2017-02-24 14:32:27 +01:00
|
|
|
|
2017-02-25 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/elf.exp: Xfail pr20995 tests on hppa64-hpux.
|
|
|
|
|
Set up HPUX defsym. Run pr14170 tests and build symbol3 objects,
|
|
|
|
|
defining HPUX where necessary. Define HPUX for implib tests.
|
|
|
|
|
* testsuite/ld-elf/comm-data4.d: Run for hpux.
|
|
|
|
|
* testsuite/ld-elf/endsym.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/linkoncerdiff.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/comm-data4.s: Add alternate .comm when HPUX.
|
|
|
|
|
* testsuite/ld-elf/comm-data5.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/endsym.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr14170c.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/symbol3.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/implib.s: Likewise. Don't start directives
|
|
|
|
|
in first column.
|
|
|
|
|
* testsuite/ld-elf/linkoncerdiff2.s: Don't use numeric labels.
|
|
|
|
|
* testsuite/ld-elf/warn3.d: Run for hpux.
|
|
|
|
|
* testsuite/ld-scripts/rgn-at10.d: Xfail for hpux.
|
|
|
|
|
* testsuite/ld-scripts/rgn-at11.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/size-2.d: Remove xfail for hpux.
|
|
|
|
|
|
2017-02-23 19:16:11 +01:00
|
|
|
|
2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
2017-03-24 13:25:49 +01:00
|
|
|
|
* testsuite/ld-elf/ver_def.vd: New test.
|
|
|
|
|
* testsuite/ld-elf/ver_def-tic6x.vd: New test.
|
2017-02-23 19:16:11 +01:00
|
|
|
|
* testsuite/ld-elf/ver_def.ld: New test linker script.
|
|
|
|
|
* testsuite/ld-elf/ver_def.ver: New test version script.
|
|
|
|
|
* testsuite/ld-elf/ver_def.s: New test source.
|
|
|
|
|
* testsuite/ld-elf/readelf.exp: New test script.
|
|
|
|
|
|
2017-02-23 23:27:50 +01:00
|
|
|
|
2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/relax-jalr-n32.d: Remove `--relax'
|
|
|
|
|
option.
|
|
|
|
|
* testsuite/ld-mips-elf/relax-jalr-n32-shared.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/relax-jalr-n64.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/relax-jalr-n64-shared.d: Likewise.
|
|
|
|
|
|
2017-02-23 20:26:53 +01:00
|
|
|
|
2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/jalr4.dd: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
|
|
|
|
|
|
2017-02-23 02:50:42 +01:00
|
|
|
|
2017-02-23 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 20744
|
|
|
|
|
* testsuite/ld-powerpc/vle-reloc-2.s: Use r6 for last insn of
|
|
|
|
|
each group.
|
|
|
|
|
* testsuite/ld-powerpc/vle-reloc-2.d: Update for above change
|
|
|
|
|
and sdarel reloc fix.
|
|
|
|
|
|
2017-02-21 02:46:42 +01:00
|
|
|
|
2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20828
|
|
|
|
|
* testsuite/ld-elf/pr20828-d.sd: New test.
|
|
|
|
|
* testsuite/ld-elf/pr20828-e.sd: New test.
|
|
|
|
|
* testsuite/ld-elf/pr20828-v.od: New test.
|
|
|
|
|
* testsuite/ld-elf/pr20828-v.ver: New test version script.
|
|
|
|
|
* testsuite/ld-elf/pr20828-v.ld: New test linker script.
|
|
|
|
|
* testsuite/ld-elf/pr20828.ld: Add `.gnu.version' and
|
|
|
|
|
`.gnu.version_d'.
|
|
|
|
|
* testsuite/ld-elf/shared.exp: Run the new tests.
|
|
|
|
|
|
2017-02-21 12:00:21 +01:00
|
|
|
|
2017-02-21 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-ifunc/pr18808b.c (bar): Fix compile time warning
|
|
|
|
|
about non-void function returning without a result.
|
|
|
|
|
|
2017-02-20 03:54:28 +01:00
|
|
|
|
2017-02-17 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 15041
|
|
|
|
|
* scripttempl/pe.sc: Don't combine sections for ld -r.
|
|
|
|
|
* scripttempl/pep.sc: Likewise.
|
|
|
|
|
|
2017-02-20 03:55:13 +01:00
|
|
|
|
2017-02-17 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
2017-02-20 11:58:59 +01:00
|
|
|
|
PR 21099
|
2017-02-20 03:55:13 +01:00
|
|
|
|
* emulparams/elf32m32c.sh: Define STACK_ADDR and STACK_SENTINEL
|
|
|
|
|
rather than using OTHER_SECTIONS.
|
|
|
|
|
* emulparams/elf32mt.sh: Likewise.
|
|
|
|
|
* emulparams/elf32rx.sh: Likewise.
|
|
|
|
|
* emulparams/elf32rl78.sh: Likewise. Use OTHER_SYMBOLS to
|
|
|
|
|
define __rl78_abs__.
|
|
|
|
|
* emulparams/shelf.sh: Define STACK_ADDR and STACK_SENTINEL
|
|
|
|
|
rather than using OTHER_SECTIONS.
|
|
|
|
|
* emulparams/shelf32.sh: Likewise. Use OTHER_SECTIONS for .cranges.
|
|
|
|
|
* emulparams/shelf64.sh: Unset OTHER_SECTIONS.
|
|
|
|
|
* emulparams/shelf_nbsd.sh: Unset STACK_ADDR not OTHER_SECTIONS.
|
|
|
|
|
* emulparams/shelf_uclinux.sh: Likewise.
|
|
|
|
|
* emulparams/shlsymbian.sh: Unset STACK_ADDR. Use OTHER_SYMBOLS
|
|
|
|
|
to define _stack, not OTHER_SECTIONS.
|
|
|
|
|
* scripttempl/elf.sc: Move STACK, TINY_DATA_SECTION, and
|
|
|
|
|
TINY_BSS_SECTION before debug sections. Add STACK_SENTINEL.
|
|
|
|
|
* scripttempl/arclinux.sc: Likewise.
|
|
|
|
|
* scripttempl/elf64hppa.sc: Likewise.
|
|
|
|
|
* scripttempl/elfxtensa.sc: Likewise.
|
|
|
|
|
* scripttempl/nds32elf.sc: Likewise.
|
|
|
|
|
* scripttempl/armbpabi.sc: Move STACK before debug sections.
|
|
|
|
|
* scripttempl/elf_chaos.sc: Likewise.
|
|
|
|
|
* scripttempl/elfarc.sc: Delete STACK.
|
|
|
|
|
* scripttempl/epiphany_4x4.sc: Delete STACK. Move TINY_DATA_SECTION,
|
|
|
|
|
TINY_BSS_SECTION, and .stack before debug sections.
|
|
|
|
|
|
2017-02-17 17:31:09 +01:00
|
|
|
|
2017-02-17 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20825
|
|
|
|
|
* ld.texinfo (Options): Add missing @item entry for --pop-state.
|
|
|
|
|
|
2017-02-17 08:28:17 +01:00
|
|
|
|
2017-02-17 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/dwarf2.err: Accept other errors between the
|
|
|
|
|
multiple definition errors.
|
|
|
|
|
|
2017-02-17 07:54:02 +01:00
|
|
|
|
2017-02-17 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/dwarf2.err: Add missing newline at end.
|
|
|
|
|
* testsuite/ld-elf/dwarf3.err: Likewise. Allow match without filename.
|
|
|
|
|
|
2016-12-19 16:27:59 +01:00
|
|
|
|
2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/shared.exp: Update expected results.
|
|
|
|
|
* testsuite/ld-elf/dwarf2.err: Likewise
|
|
|
|
|
|
bfd/dwarf: Improve use of previously loaded dwarf information
When parsing DWARF data in order to report file/line type error messages
we perform section placement to make section addresses unique within
relocatable object files.
Currently, if we reuse previously loaded (and cached) dwarf data then we
neglect to perform section placement, the result is that the section
addresses will not be unique, and we might, incorrectly associate an
address with the wrong debug information, and so report an incorrect
file and line number.
Further we neglect to check that that bfd for which we are looking up
debug information is actually the bfd for which the previous debug
information was loaded, it is possible that we will reuse previously
loaded debug information for a different bfd.
And finally, due to following of gnu_debuglink links in one bfd to
another, the process of checking that the cached debug information is
valid requires us to track the original bfd in the cached debug
information. The original debug information here is either the bfd that
we're interested in, not the bfd we finally load the debug information
from.
bfd/ChangeLog:
* dwarf2.c (struct dwarf2_debug): Add orig_bfd member.
(_bfd_dwarf2_slurp_debug_info): If stashed debug information does
not match current bfd, then reload debug information. Record bfd
we're loading debug info for in the stash. If we have debug
informatin in the cache then perform section placement before
returning.
ld/ChangeLog:
* testsuite/ld-elf/dwarf.exp (build_tests): Add new tests.
* testsuite/ld-elf/dwarf2.err: New file.
* testsuite/ld-elf/dwarf2a.c: New file.
* testsuite/ld-elf/dwarf2b.c: New file.
* testsuite/ld-elf/dwarf3.c: New file.
* testsuite/ld-elf/dwarf3.err: New file.
2016-12-15 16:22:49 +01:00
|
|
|
|
2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/dwarf.exp (build_tests): Add new tests.
|
|
|
|
|
* testsuite/ld-elf/dwarf2.err: New file.
|
|
|
|
|
* testsuite/ld-elf/dwarf2a.c: New file.
|
|
|
|
|
* testsuite/ld-elf/dwarf2b.c: New file.
|
|
|
|
|
* testsuite/ld-elf/dwarf3.c: New file.
|
|
|
|
|
* testsuite/ld-elf/dwarf3.err: New file.
|
|
|
|
|
|
ld: Add additional checking for warnings/errors in testsuite
This commit adds new actions to the run_cc_link_tests mechanism in the
linker testsuite.
Previously this procedure could take a parameter containing a regular
expression that would be matched against warnings from the linker.
After this commit the warnings parameter is removed, instead, the
actions list can contain the actions 'warning', 'error',
'warning_output', or 'error_output'. The action names are chosen to
match the actions already present in the run_dump_test procedure.
These new actions allow for the current warning checking, but also allow
for checking of errors using a regular expression. More interestingly,
the *_output actions allow for the warning/error patterns to be placed
in a separate file.
The small number of tests that make use of the warning parameter have
been updated to the new mechanism. Later commits will make use of the
new features added in this commit.
ld/ChangeLog:
* testsuite/lib/ld-lib.exp (run_cc_link_tests): Add warning,
error, warning_output, and error_output actions. Remove separate
warnings parameter.
* testsuite/ld-elf/shared.exp (build_tests): Updated to use
'warning' action.
* testsuite/ld-plugin/lto.exp (lto_link_tests): Likewise.
2017-02-07 23:31:46 +01:00
|
|
|
|
2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/lib/ld-lib.exp (run_cc_link_tests): Add warning,
|
|
|
|
|
error, warning_output, and error_output actions. Remove separate
|
|
|
|
|
warnings parameter.
|
|
|
|
|
* testsuite/ld-elf/shared.exp (build_tests): Updated to use
|
|
|
|
|
'warning' action.
|
|
|
|
|
* testsuite/ld-plugin/lto.exp (lto_link_tests): Likewise.
|
|
|
|
|
|
2017-02-16 12:49:10 +01:00
|
|
|
|
2017-02-16 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/check-ptr-eq.c (check_ptr_eq): Change params
|
|
|
|
|
from void pointers to function pointers.
|
|
|
|
|
* testsuite/ld-elf/pr18718.c: Update to suit.
|
|
|
|
|
* testsuite/ld-elf/pr18720a.c: Update to suit.
|
|
|
|
|
|
2017-02-14 01:15:51 +01:00
|
|
|
|
2017-02-16 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 21000
|
|
|
|
|
* testsuite/ld-elf/loadaddr1.d: Adjust for hppa file offsets.
|
|
|
|
|
* testsuite/ld-elf/loadaddr2.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/loadaddr3a.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/rgn-at5.d: Likewise.
|
|
|
|
|
|
2017-02-16 05:43:56 +01:00
|
|
|
|
2017-02-16 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-powerpc/vxworks1-lib.s: Correct addi to addic.
|
|
|
|
|
* testsuite/ld-powerpc/vxworks1-lib.dd: Adjust to suit.
|
|
|
|
|
|
2017-02-15 20:39:30 +01:00
|
|
|
|
2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/21168
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Run pr21168.
|
|
|
|
|
* testsuite/ld-i386/pr21168a.c: New file.
|
|
|
|
|
* testsuite/ld-i386/pr21168b.S: Likewise.
|
|
|
|
|
|
2017-02-15 19:55:51 +01:00
|
|
|
|
2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20244
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Run pr20244-4a, pr20244-4b and
|
|
|
|
|
pr20244-4c.
|
|
|
|
|
* testsuite/ld-i386/pr20244-4.s: New file.
|
|
|
|
|
* testsuite/ld-i386/pr20244-4a.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20244-4b.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20244-4c.d: Likewise.
|
|
|
|
|
|
2017-02-07 03:08:23 +01:00
|
|
|
|
2017-02-15 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* ldmisc.c (vfinfo): Don't print the function name again either
|
|
|
|
|
if no source file name has been found both now and previously.
|
|
|
|
|
* testsuite/ld-cris/tls-err-20x.d: Adjust accordingly.
|
|
|
|
|
* testsuite/ld-mips-elf/mode-change-error-1.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-branch.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-branch-mips16.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-branch-micromips.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-branch-r6-1.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-branch-2.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-branch-r6-2.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-branch-ignore-mips16.d:
|
|
|
|
|
Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-branch-ignore-micromips.d:
|
|
|
|
|
Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1.d:
|
|
|
|
|
Likewise.
|
|
|
|
|
* 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-addend-3.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jump.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jump-mips16.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-jump-micromips.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-lwpc-1.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-ldpc-1.d: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/tocopt.out: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/tocopt7.out: Likewise.
|
|
|
|
|
|
2017-02-07 03:06:20 +01:00
|
|
|
|
2017-02-15 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* ldmisc.c (vfinfo) <'H'>: Remove static NULL initializers.
|
|
|
|
|
|
2017-02-15 10:13:56 +01:00
|
|
|
|
2017-02-15 Igor Kudrin <ikudrin@accesssoftek.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-scripts/sysroot-prefix.exp
|
|
|
|
|
(get_base_dir_for_scripts): New function.
|
|
|
|
|
(run_sysroot_prefix_test): Use get_base_dir_for_scripts.
|
|
|
|
|
|
2017-02-08 20:26:07 +01:00
|
|
|
|
2017-02-13 Palmer Dabbelt <palmer@dabbelt.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/elf32lriscv-defs.sh (SDATA_START_SYMBOLS): Change
|
|
|
|
|
_gp to __global_pointer$
|
|
|
|
|
|
2017-01-26 11:33:23 +01:00
|
|
|
|
2017-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
|
|
|
|
|
|
|
|
|
|
* configure.tgt (arc*-*-linux*): Change the default linker
|
|
|
|
|
emulation based on --with-cpu selection.
|
|
|
|
|
* NEWS: Mention new configuration option.
|
|
|
|
|
|
2017-02-02 18:15:26 +01:00
|
|
|
|
2017-02-06 Jiong Wang <jiong.wang@arm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/compress.exp: Don't print to stdout for all
|
|
|
|
|
"readelf -w".
|
|
|
|
|
|
2017-02-02 21:44:41 +01:00
|
|
|
|
2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-cris/tls-err-20x.d: Fix a typo, s/n/\n/.
|
|
|
|
|
|
2017-02-02 20:09:57 +01:00
|
|
|
|
2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* ld/testsuite/lib/ld-lib.exp (run_dump_test): Fix a typo,
|
|
|
|
|
s/regexp/regex/.
|
|
|
|
|
|
2017-02-01 17:44:40 +01:00
|
|
|
|
2017-02-02 Jiong Wang <jiong.wang@arm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/lib/ld-lib.exp (check_libdl_available): New function.
|
|
|
|
|
* testsuite/ld-elf/shared.exp (run_tests): Split tests which require
|
|
|
|
|
dlopen support into "dlopen_run_tests". These tests include dl1*main
|
|
|
|
|
and dl6*main.
|
|
|
|
|
(dlopen_run_tests): New and only run it when check_libdl_available
|
|
|
|
|
returns true. XFAIL on *-*-netbsdelf*.
|
|
|
|
|
|
2017-02-01 23:09:33 +01:00
|
|
|
|
2017-02-01 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/vxworks-forced-local-1.d: Correct the
|
|
|
|
|
presentation of relocation addends.
|
|
|
|
|
* testsuite/ld-mips-elf/vxworks1-lib.rd: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/vxworks1.dd: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/vxworks1.rd: Likewise.
|
|
|
|
|
|
2017-02-01 23:08:02 +01:00
|
|
|
|
2017-02-01 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/tls-multi-got-1-1.s: Place `tlsvar_ld'
|
|
|
|
|
in `.tdata' section.
|
|
|
|
|
* testsuite/ld-mips-elf/tls-multi-got-1.got: Adjust accordingly.
|
|
|
|
|
* testsuite/ld-mips-elf/tls-multi-got-1.r: Likewise.
|
|
|
|
|
|
2017-01-31 13:20:48 +01:00
|
|
|
|
2017-02-01 Jiong Wang <jiong.wang@arm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-unique/unique.exp (Could not link a dynamic executable):
|
|
|
|
|
Append $board_cflags to link commands.
|
|
|
|
|
|
2017-02-01 07:08:39 +01:00
|
|
|
|
2017-02-01 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-scripts/print-memory-usage-1.l: Relax
|
|
|
|
|
check for digit in second decimal place.
|
|
|
|
|
|
2017-01-31 18:59:44 +01:00
|
|
|
|
2017-02-01 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20828
|
|
|
|
|
* testsuite/ld-elf/shared.exp: Correct PR ld/20828 test
|
|
|
|
|
indentation.
|
|
|
|
|
|
2017-01-31 13:07:04 +01:00
|
|
|
|
2017-01-31 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ldmain.c (add_archive_element): Eliminate string buffer.
|
|
|
|
|
* ldlang.c (lang_print_asneeded): Likewise.
|
|
|
|
|
|
2017-01-30 18:11:22 +01:00
|
|
|
|
2017-01-30 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/mipself.em (ignore_branch_isa): New variable.
|
|
|
|
|
(mips_create_output_section_statements): Rename
|
|
|
|
|
`_bfd_mips_elf_insn32' called to `_bfd_mips_elf_linker_flags',
|
|
|
|
|
add `ignore_branch_isa' argument.
|
|
|
|
|
(PARSE_AND_LIST_PROLOGUE): Add OPTION_IGNORE_BRANCH_ISA and
|
|
|
|
|
OPTION_NO_IGNORE_BRANCH_ISA enum values.
|
|
|
|
|
(PARSE_AND_LIST_LONGOPTS): Add "ignore-branch-isa" and
|
|
|
|
|
"no-ignore-branch-isa" options.
|
|
|
|
|
(PARSE_AND_LIST_OPTIONS): Add `--ignore-branch-isa' and
|
|
|
|
|
`--no-ignore-branch-isa'.
|
|
|
|
|
(PARSE_AND_LIST_ARGS_CASES): Handle OPTION_IGNORE_BRANCH_ISA and
|
|
|
|
|
OPTION_NO_IGNORE_BRANCH_ISA.
|
|
|
|
|
|
|
|
|
|
* ld.texinfo (Options specific to MIPS targets): Add
|
|
|
|
|
`--ignore-branch-isa' and `--no-ignore-branch-isa' options.
|
|
|
|
|
(ld and the MIPS family): Likewise.
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/bal-jalx-pic-ignore.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/bal-jalx-pic-ignore-n32.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/bal-jalx-pic-ignore-n64.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1: New test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-branch-ignore-mips16: New
|
|
|
|
|
test.
|
|
|
|
|
* testsuite/ld-mips-elf/unaligned-branch-ignore-micromips: New
|
|
|
|
|
test.
|
|
|
|
|
* testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
|
|
|
|
|
|
2017-01-29 13:53:58 +01:00
|
|
|
|
2017-01-29 Hans-Peter Nilsson <hp@axis.com>
|
|
|
|
|
|
2017-01-29 14:13:38 +01:00
|
|
|
|
PR binutils/19935
|
2017-01-29 13:53:58 +01:00
|
|
|
|
Fix long-standing buglet and fallout from now-default initfini-array.
|
|
|
|
|
* emulparams/criself.sh (USER_LABEL_PREFIX): Define.
|
2017-01-29 16:15:16 +01:00
|
|
|
|
(OTHER_END_SYMBOLS, ENTRY): Delete now-redundant defines.
|
2017-01-29 13:53:58 +01:00
|
|
|
|
|
2017-01-28 00:06:28 +01:00
|
|
|
|
2017-01-27 Jiong Wang <jiong.wang@arm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/elf.exp ("pr20995-2", "Build pr20995-2.so"): XFAIL on
|
|
|
|
|
arm*-*-eabi*.
|
|
|
|
|
|
2017-01-27 14:20:24 +01:00
|
|
|
|
2017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
|
|
|
|
|
Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR 20343
|
|
|
|
|
* ld.texinfo (Options): Extend documentation of the --plugin
|
|
|
|
|
option. Include a description of where the plugins should be
|
|
|
|
|
located.
|
|
|
|
|
|
2017-01-27 12:27:50 +01:00
|
|
|
|
2017-01-27 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* po/sr.po: New Serbian translation.
|
|
|
|
|
* configure.ac (ALL_LINGUAS): Add sr.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
|
2017-01-25 08:25:57 +01:00
|
|
|
|
2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
|
|
|
|
|
|
|
|
|
* configure.tgt (arm-*-rtems*): Move to (arm*-*-eabi*).
|
|
|
|
|
(bfin-*-rtems*): Move to (bfin*-*-elf*).
|
|
|
|
|
(i[3-7]86-*-rtems*): Move to (i[3-7]86*-*-elf*).
|
|
|
|
|
(m68*-*-rtems*): Move to (m68*-*-elf*).
|
|
|
|
|
(mips*-*-rtems*): Move to (mips*-*-elf*).
|
|
|
|
|
(or1k*-*-rtems*): Move to (or1k*-*-elf*).
|
|
|
|
|
(powerpc*-*-rtems*): Move to (powerpc*-*-elf*).
|
|
|
|
|
(sparc*-*-rtems*): Move to (sparc*-*-elf*).
|
|
|
|
|
(sparc64*-*-rtems*): Move to (sparc64*-*-elf*).
|
|
|
|
|
|
2017-01-25 08:22:27 +01:00
|
|
|
|
2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
|
|
|
|
|
|
|
|
|
* configure.tgt (h8300-*-rtemscoff*): Remove.
|
|
|
|
|
(i960-*-rtems*): Likewise.
|
|
|
|
|
(m68*-*-rtemscoff*): Likewise.
|
|
|
|
|
(sh-*-rtemscoff*): Likewise.
|
|
|
|
|
|
2017-01-23 12:37:19 +01:00
|
|
|
|
2017-01-24 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/solaris2.em (elf_solaris2_before_allocation): Do not
|
|
|
|
|
add implicit version nodes if an anonymous version tag is being
|
|
|
|
|
used.
|
|
|
|
|
|
2017-01-24 10:33:00 +01:00
|
|
|
|
2017-01-24 Jiong Wang <jiong.wang@arm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Move "Compile 7",
|
|
|
|
|
"Compile 8a", "Compile 8b"...
|
|
|
|
|
(lto_compile_elf_tests): ...to here. Always run these tests.
|
|
|
|
|
(lto_run_elf_tests): Move "LTO 7"...
|
|
|
|
|
(lto_run_elf_shared_tests): ...to here. Restrict these tests on
|
|
|
|
|
environment where share library is supported.
|
|
|
|
|
|
2017-01-23 23:13:01 +01:00
|
|
|
|
2017-01-24 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-powerpc/tlsexe.r: Update for fewer dynamic relocs
|
|
|
|
|
and symbols.
|
|
|
|
|
* testsuite/ld-powerpc/tlsexe.d: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/tlsexe.g: Likewise.
|
|
|
|
|
|
2017-01-23 18:07:13 +01:00
|
|
|
|
2017-01-23 Yury Norov <ynorov@caviumnetworks.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-aarch64/aarch64-elf.exp: Run new tests.
|
|
|
|
|
* testsuite/ld-aarch64/tls-desc-ie-ilp32.d: New test.
|
|
|
|
|
* testsuite/ld-aarch64/tls-relax-all-ilp32.d: New test.
|
|
|
|
|
* testsuite/ld-aarch64/tls-relax-gd-le-ilp32.d: New test.
|
|
|
|
|
* testsuite/ld-aarch64/tls-relax-gdesc-le-2-ilp32.d: New test.
|
|
|
|
|
* testsuite/ld-aarch64/tls-relax-gdesc-le-ilp32.d: New test.
|
|
|
|
|
* testsuite/ld-aarch64/tls-relax-ie-le-2-ilp32.d: New test.
|
|
|
|
|
* testsuite/ld-aarch64/tls-relax-ie-le-3-ilp32.d: New test.
|
|
|
|
|
* testsuite/ld-aarch64/tls-relax-ie-le-ilp32.d: New test.
|
|
|
|
|
* testsuite/ld-aarch64/tls-tiny-desc-ie-ilp32.d: New test.
|
|
|
|
|
* testsuite/ld-aarch64/tls-tiny-desc-le-ilp32.d: New test.
|
|
|
|
|
* testsuite/ld-aarch64/tls-tiny-gd-ie-ilp32.d: New test.
|
|
|
|
|
* testsuite/ld-aarch64/tls-tiny-gd-le-ilp32.d: New test.
|
|
|
|
|
|
2017-01-23 14:32:12 +01:00
|
|
|
|
2017-01-23 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* po/ga.po: Updated Irish translation.
|
|
|
|
|
|
2017-01-23 12:21:19 +01:00
|
|
|
|
2017-01-23 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20828
|
|
|
|
|
* testsuite/ld-elf/pr20828.ld: Add `.plt'.
|
|
|
|
|
|
2017-01-23 12:19:46 +01:00
|
|
|
|
2017-01-23 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20828
|
|
|
|
|
* testsuite/ld-elf/pr20828.ld: Rename `_fdata' and `_edata' to
|
|
|
|
|
`fdata' and `edata' respectively.
|
|
|
|
|
* testsuite/ld-elf/pr20828.ver: Adjust accordingly.
|
|
|
|
|
* testsuite/ld-elf/pr20828-a.sd: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr20828-b.sd: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr20828-c.sd: Likewise.
|
|
|
|
|
|
2017-01-23 12:18:33 +01:00
|
|
|
|
2017-01-23 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20828
|
|
|
|
|
* testsuite/ld-elf/pr20828-1.sd: Remove test.
|
|
|
|
|
* testsuite/ld-elf/pr20828-a.sd: New test.
|
|
|
|
|
* testsuite/ld-elf/pr20828-2a.sd: Rename test to...
|
|
|
|
|
* testsuite/ld-elf/pr20828-b.sd: ... this.
|
|
|
|
|
* testsuite/ld-elf/pr20828-2b.sd: Rename test to...
|
|
|
|
|
* testsuite/ld-elf/pr20828-c.sd: ... this.
|
|
|
|
|
* testsuite/ld-elf/shared.exp: Adjust accordingly.
|
|
|
|
|
|
2017-01-23 10:59:10 +01:00
|
|
|
|
2017-01-23 Jiong Wang <jiong.wang@arm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Append
|
|
|
|
|
board_cflags as gcc is used as linker driver.
|
|
|
|
|
* testsuite/ld-unique/unique.exp: Likewise
|
|
|
|
|
|
2017-01-20 14:30:32 +01:00
|
|
|
|
2017-01-20 Jiong Wang <jiong.wang@arm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-aarch64/aarch64-elf.exp (aarch64elflinktests): New tests.
|
|
|
|
|
* testsuite/ld-aarch64/func-in-so.s: New test source file.
|
|
|
|
|
* testsuite/ld-aarch64/func-sym-hash-opt.s: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/func-sym-hash-opt.d: New expected test result.
|
|
|
|
|
|
2016-12-28 14:22:44 +01:00
|
|
|
|
2017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/eh-frame-hdr.d: Update expected results.
|
|
|
|
|
|
2017-01-18 19:07:58 +01:00
|
|
|
|
2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20995
|
|
|
|
|
* testsuite/ld-elf/elf.exp: Set GAS flags correctly for the
|
|
|
|
|
`mips*-*-*' target and `pr20995' and `pr20995-2' tests.
|
|
|
|
|
|
PR ld/20828: Fix linker script symbols wrongly forced local with section GC
Fix a generic ELF linker regression introduced with a chain of changes
made to unused input section garbage collection:
- commit 1a766c6843ce ("Also hide symbols without PLT nor GOT
references."),
<https://sourceware.org/ml/binutils/2011-09/msg00076.html>,
- commit 1d5316ab67e1 ("PR ld/13177: garbage collector retains zombie
references to external libraries"),
<https://sourceware.org/ml/binutils/2011-10/msg00161.html>,
- commit 6673f753c019 ("Fix PR 12772, garbage collection of dynamic
syms"), <https://sourceware.org/ml/binutils/2011-12/msg00077.html>,
causing the garbage collection of unused symbols present in a DSO
involved in a link to make identically named symbols ordinarily defined
(i.e. not hidden or PROVIDEd) by a linker script local, even though the
latter symbols are supposed to be global as if no DSO defined them as
well.
This is because linker script assignments are processed very late as
`lang_process' proceeds, down in the call to `ldemul_before_allocation',
which is made after the call to `lang_gc_sections' to do input section
garbage collecting. Consequently if unused, then any such DSO-defined
symbol has already been garbage-collected and internally marked local.
It would ordinarily be removed from dynamic symbol table output, however
a linker script assignment correctly replaces its original definition
with the new one and enters it into the dynamic symbol table produced as
it is supposed to be exported. The original local marking is however
retained making the symbol local in the dynamic symbol table and
therefore not available externally. This also causes a sorting problem
with the MIPS target, which does not expect non-section local dynamic
symbols to be output and produces an invalid binary.
Fix the problem then, by removing the `forced_local' marking for the
offending case and add suitable test cases. First to verify that unused
symbols ordinarily defined with linker script assignments remain
exported in the context of input section garbage collection whether or
not a DSO defining identically named symbols is present in the link.
Second that a linker version script still correctly retains or removes
such symbols as requested.
bfd/
PR ld/20828
* elflink.c (bfd_elf_record_link_assignment): Clear any
`forced_local' marking for DSO symbols that are not being
provided.
ld/
PR ld/20828
* testsuite/ld-elf/pr20828-1.sd: New test.
* testsuite/ld-elf/pr20828-2a.sd: New test.
* testsuite/ld-elf/pr20828-2b.sd: New test.
* testsuite/ld-elf/pr20828.ld: New test linker script.
* testsuite/ld-elf/pr20828.ver: New test version script.
* testsuite/ld-elf/pr20828.s: New test source.
* testsuite/ld-elf/shared.exp: Run the new test.
2017-01-16 23:10:57 +01:00
|
|
|
|
2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20828
|
|
|
|
|
* testsuite/ld-elf/pr20828-1.sd: New test.
|
|
|
|
|
* testsuite/ld-elf/pr20828-2a.sd: New test.
|
|
|
|
|
* testsuite/ld-elf/pr20828-2b.sd: New test.
|
|
|
|
|
* testsuite/ld-elf/pr20828.ld: New test linker script.
|
|
|
|
|
* testsuite/ld-elf/pr20828.ver: New test version script.
|
|
|
|
|
* testsuite/ld-elf/pr20828.s: New test source.
|
|
|
|
|
* testsuite/ld-elf/shared.exp: Run the new test.
|
|
|
|
|
|
PR gas/20649: MIPS: Fix GOT16/LO16 reloc pairing with comdat sections
Correct a regression from commit 8614eeee67f9 ("Traditional MIPS
patches"), <https://sourceware.org/ml/binutils/2000-07/msg00018.html>,
which caused symbols in linkonce or what is these days known as comdat
sections to be treated as external for the purpose of PIC relocation
generation even if their binding remains STB_LOCAL. This in turn
disabled GOT16/LO16 relocation pairing with references to such symbols,
as no complementing LO16 relocation is expected for external GOT16
references in the o32 ABI, which ultimately leads to link errors, e.g.:
ld: comdat-reloc.o: Can't find matching LO16 reloc against `foo' for R_MIPS_GOT16 at 0x24 in section `.text.bar[bar]'
as with the LD test case included with this change.
Revert the special case for symbols in comdat sections then, making code
actually match `adjust_reloc_syms' as indicated in its explanatory
comment, and adjust calling code accordingly. Also bring back the
corresponding description of what now is `s_is_linkonce', lost with
commit 5f0fe04bc550 ("Improved MIPS16/MIPS32 code intermixing for
gas."), <https://www.sourceware.org/ml/binutils/2006-07/msg00039.html>.
gas/
PR gas/20649
* config/tc-mips.c (pic_need_relax): Don't check for linkonce
symbols, remove the `segtype' parameter.
(mips_frob_file, md_estimate_size_before_relax): Adjust
accordingly.
(s_is_linkonce): Add an explanatory comment.
* testsuite/gas/mips/comdat-reloc.d: New test.
* testsuite/gas/mips/comdat-reloc.s: New test source.
* testsuite/gas/mips/mips.exp: Run the new test.
ld/
PR gas/20649
* testsuite/ld-mips-elf/mips-elf.exp: Add PIC comdat GOT16/LO16
relocation pairing link test.
2017-01-18 19:18:21 +01:00
|
|
|
|
2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
|
|
|
|
|
|
|
|
|
|
PR gas/20649
|
|
|
|
|
* testsuite/ld-mips-elf/mips-elf.exp: Add PIC comdat GOT16/LO16
|
|
|
|
|
relocation pairing link test.
|
|
|
|
|
|
2017-01-18 13:23:19 +01:00
|
|
|
|
2017-01-17 Dimitar Dimitrov <dimitar@dinux.eu>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-unique/unique.exp: Filter shared lib cases in
|
|
|
|
|
uniqeue.exp, as not all targets have such support.
|
|
|
|
|
|
2017-01-16 11:59:23 +01:00
|
|
|
|
2017-01-16 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* po/sv.po: Updated Swedish translation.
|
|
|
|
|
|
2017-01-12 19:30:56 +01:00
|
|
|
|
2017-01-12 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/21038
|
|
|
|
|
* testsuite/ld-x86-64/pr21038b.d: Updated.
|
|
|
|
|
* testsuite/ld-x86-64/pr21038c.d: New file.
|
|
|
|
|
* testsuite/ld-x86-64/pr21038c.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Run pr21038c.
|
|
|
|
|
|
2017-01-11 18:16:44 +01:00
|
|
|
|
2017-01-11 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/21038
|
|
|
|
|
* testsuite/ld-x86-64/pr21038a.d: New file.
|
|
|
|
|
* testsuite/ld-x86-64/pr21038a.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr21038b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr21038b.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Run pr21038a and pr21038b.
|
|
|
|
|
|
2017-01-11 16:05:53 +01:00
|
|
|
|
2017-01-11 Jeremy Soller <jackpot51@gmail.com>
|
|
|
|
|
|
|
|
|
|
* configure.tgt: Add entries for x86-redox and x86_64-redox.
|
|
|
|
|
|
2017-01-10 23:18:11 +01:00
|
|
|
|
2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-x86-64/pr20830b.d: Updated.
|
|
|
|
|
|
2017-01-10 22:57:39 +01:00
|
|
|
|
2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/elf32_x86_64.sh (TINY_READONLY_SECTION): New.
|
|
|
|
|
* testsuite/ld-x86-64/pr20830.d: Renamed to ...
|
|
|
|
|
* testsuite/ld-x86-64/pr20830a.d: This. Updated.
|
|
|
|
|
* testsuite/ld-x86-64/pr20830b.d: New file.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Rename pr20830 to pr20830a.
|
|
|
|
|
Run pr20830b.
|
|
|
|
|
|
2017-01-10 22:31:59 +01:00
|
|
|
|
2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20830
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Run pr20830.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20830.d: New file.
|
|
|
|
|
* testsuite/ld-i386/pr20830.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20830.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20830.s: Likewise.
|
|
|
|
|
|
2017-01-10 19:54:39 +01:00
|
|
|
|
2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Pass -Wl,-R,tmpdir and
|
|
|
|
|
-Wl,--as-needed to $CC.
|
|
|
|
|
* testsuite/ld-i386/tls.exp: Likewise.
|
|
|
|
|
|
2017-01-10 12:28:36 +01:00
|
|
|
|
2017-01-10 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* po/sv.po: Updated Swedish translation.
|
|
|
|
|
|
2016-12-08 17:58:23 +01:00
|
|
|
|
2016-12-09 Graham Markall <graham.markall@embecosm.com>
|
|
|
|
|
Andrew Burgess <andrew.burgess@embecosm.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am: Add earclinux_nps.c target and add to
|
|
|
|
|
ALL_EMULATION_SOURCES.
|
|
|
|
|
* Makefile.in: Likewise, regenerated.
|
|
|
|
|
* configure.tgt: Add arclinux_nps as an extra emulation for
|
|
|
|
|
arc*-*-elf* and arc*-*-linux*.
|
|
|
|
|
* emulparams/arc-nps.sh: New file.
|
|
|
|
|
* emulparams/arclinux_nps.sh: New file.
|
|
|
|
|
* testsuite/ld-arc/arclinux-nps.d,
|
|
|
|
|
* testsuite/ld-arc/arclinux-nps.s: New test.
|
|
|
|
|
|
2017-01-04 17:05:22 +01:00
|
|
|
|
2017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
|
|
|
|
|
|
|
|
|
|
PR 20958
|
|
|
|
|
* ldlex.l (option): Add noyywrap
|
|
|
|
|
(yywrap): Delete.
|
|
|
|
|
* ldlex.h (yywrap): Delete prototype.
|
|
|
|
|
|
2017-01-03 23:55:54 +01:00
|
|
|
|
2017-01-04 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/audit.exp: Check for shared lib support.
|
|
|
|
|
* testsuite/ld-elf/compress.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elf/dwarf.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elf/shared.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elf/wrap.exp: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc.exp: Likewise.
|
|
|
|
|
* testsuite/ld-plugin/lto.exp: Check $CXX exists.
|
|
|
|
|
|
2017-01-03 13:30:30 +01:00
|
|
|
|
2017-01-03 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Do not
|
|
|
|
|
allow test to continue after compilation errors.
|
|
|
|
|
(run_cc_link_tests): Likewise.
|
|
|
|
|
|
2017-01-02 17:20:20 +01:00
|
|
|
|
2017-01-03 Dimitar Dimitrov <dimitar@dinux.eu>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (ALL_EMULATION_SOURCES): Add epruelf.c.
|
|
|
|
|
(epruelf.c): Remove unneeded dependencies.
|
|
|
|
|
* Makefile.in: Regenerate
|
|
|
|
|
|
2017-01-03 02:57:19 +01:00
|
|
|
|
2017-01-03 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/shared.exp: Add -rpath-link and -no-as-needed
|
|
|
|
|
to various tests.
|
|
|
|
|
* testsuite/ld-elfweak/elfweak.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elfvers/vers.exp (vers19): Fix -rpath-link option.
|
|
|
|
|
|
2017-01-03 00:08:53 +01:00
|
|
|
|
2017-01-03 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/elf.exp: Check that $CC exists before C tests.
|
|
|
|
|
* testsuite/ld-pie/pie.exp: Likewise.
|
|
|
|
|
* testsuite/ld-plugin/lto.exp: Likewise.
|
|
|
|
|
|
Run more ld tests when not native
Many of the ld tests are not run for cross builds, in some cases
because the test needs to run a newly linked executable, and in others
simply because it was easier to write the test for native only. Even
when a test needs to run, it's good to compile and link to exercise
the linker. So that's what this patch does. I've also rid us of
the old ld_link procedure with all the HOSTING_CRT0 etc. setup. It's
much simpler to just link with $CC.
This does mean that a cross build with cross-compiler installed but
no cross C-library will give lots of failures. If that turns out to
be too annoying, I guess we can write a tcl procedure to detect it and
not run all the extra tests.
* Makefile.am (bootstrap): Delete rule.
(ld-partial, ld1, ld1-full, ld2, ld3): Likewise.
(HOSTING_CRT0, HOSTING_SCRT0): Don't define.
(HOSTING_LIBS, HOSTING_SLIBS, HOSTING_EMU): Likewise.
* configure.ac (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
(HOSTING_LIBS, HOSTING_SLIBS): Likewise.
* configure.host (HOSTING_CRT0, HOSTING_LIBS): Don't define.
* Makefile.in: Regenerate.
* configure: Regenerate.
* testsuite/config/default.exp (get_link_files): Delete.
(HOSTING_CRT0, HOSTING_SCRT0, HOSTING_LIBS, HOSTING_SLIBS): Don't
define.
(ld_simple_link): Delete.
* testsuite/lib/ld-lib.exp (default_ld_link): Delete
(default_ld_simple_link): Rename to default_ld_link.
(ld_simple_link_defsyms): Rename to ld_link_defsyms.
(run_ld_link_tests): Use ld_link, not ld_simple_link.
(run_cc_link_tests): Likewise.
(run_ld_link_exec_tests): Use $CC or $CXX to link, not $ld.
Don't run exe when not native, and return unsupported.
* testsuite/ld-bootstrap/bootstrap.exp: Create gccld1 etc. dirs.
Link ld1 etc. using $CC.
* testsuite/ld-cdtest/cdtest.exp: Link cdtest using $CC.
* testsuite/ld-checks/checks.exp: Use ld_link, not ld_simple_link.
* testsuite/ld-cygwin/exe-export.exp: Likewise.
* testsuite/ld-elf/binutils.exp: Likewise.
* testsuite/ld-elf/eh-group.exp: Likewise.
* testsuite/ld-elf/exclude.exp: Likewise.
* testsuite/ld-elf/frame.exp: Likewise.
* testsuite/ld-elf/sec-to-seg.exp: Likewise.
* testsuite/ld-elf/tls_common.exp: Likewise.
* testsuite/ld-elfcomm/elfcomm.exp: Likewise.
* testsuite/ld-fastcall/fastcall.exp: Likewise.
* testsuite/ld-gc/gc.exp: Likewise.
* testsuite/ld-ifunc/binutils.exp: Likewise.
* testsuite/ld-mep/mep.exp: Likewise.
* testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
* testsuite/ld-mn10300/mn10300.exp: Likewise.
* testsuite/ld-nios2/nios2.exp: Likewise.
* testsuite/ld-pe/pe-compile.exp: Likewise.
* testsuite/ld-pe/pe-run.exp: Likewise.
* testsuite/ld-pe/pe-run2.exp: Likewise.
* testsuite/ld-plugin/plugin.exp: Likewise.
* testsuite/ld-scripts/align.exp: Likewise.
* testsuite/ld-scripts/alignof.exp: Likewise.
* testsuite/ld-scripts/assert.exp: Likewise.
* testsuite/ld-scripts/defined.exp: Likewise.
* testsuite/ld-scripts/extern.exp: Likewise.
* testsuite/ld-scripts/log2.exp: Likewise.
* testsuite/ld-scripts/map-address.exp: Likewise.
* testsuite/ld-scripts/phdrs.exp: Likewise.
* testsuite/ld-scripts/phdrs2.exp: Likewise.
* testsuite/ld-scripts/script.exp: Likewise.
* testsuite/ld-scripts/section-flags.exp: Likewise.
* testsuite/ld-scripts/sizeof.exp: Likewise.
* testsuite/ld-scripts/sysroot-prefix.exp: Likewise.
* testsuite/ld-scripts/weak.exp: Likewise.
* testsuite/ld-selective/selective.exp: Likewise.
* testsuite/ld-sh/sh.exp: Likewise.
* testsuite/ld-sh/sh64/relax.exp: Likewise.
* testsuite/ld-sh/sh64/relfail.exp: Likewise.
* testsuite/ld-srec/srec.exp: Likewise.
* testsuite/ld-tic6x/tic6x.exp: Likewise.
* testsuite/ld-undefined/weak-undef.exp: Likewise.
* testsuite/ld-versados/versados.exp: Likewise.
* testsuite/ld-x86-64/dwarfreloc.exp: Likewise.
* testsuite/ld-xtensa/coalesce.exp: Likewise.
* testsuite/ld-xtensa/diff_overflow.exp: Likewise.
* testsuite/ld-xtensa/lcall.exp: Likewise.
* testsuite/ld-elf/audit.exp: Run non-native too.
* testsuite/ld-elf/compress.exp: Likewise. Replace ld options with
gcc -Wl, options.
* testsuite/ld-elf/dwarf.exp: Run non-native too. Use ld_link,
not ld_simple_link. Add -Wl,--no-as-needed to some tests.
* testsuite/ld-elf/elf.exp: Run non-native too. Formatting.
* testsuite/ld-elf/indirect.exp: Run non-native too. Add
-Wl,--no-as-needed to most tests.
* testsuite/ld-elf/shared.exp: Run non-native too. Use braces
to simplify quoting. Set run_tests using [list] rather than
brace assignment to expand $extralibs. Add -Wl,--no-as-needed
to many test. Prefix ld options with -Wl,.
(mix_pic_and_non_pic): Don't run exe if not native.
* testsuite/ld-elf/wrap.exp: Run non-native too. Add
-Wl,--no-as-needed and prefix ld options with -Wl,.
* testsuite/ld-elfvers/vers.exp: Run non-native too. Use ld_link,
not ld_simple_link.
* testsuite/ld-elfvsb/elfvsb.exp: Likewise.
(visibility_test): Don't run exe if not native.
* testsuite/ld-elfweak/elfweak.exp: Run non-native too. Use ld_link,
not ld_simple_link.
(build_exec): Don't run exe if not native.
* testsuite/ld-ifunc/ifunc.exp: Run non-native too. Use ld_link,
not ld_simple_link. Link using $CC. Add -Wl,--no-as-needed
to some tests and prefix ld options with -Wl,. Expect GNU
for hppa-linux even when no ifuncs. Delete cleanup.
* testsuite/ld-pie/pie.exp: Run non-native too.
* testsuite/ld-plugin/lto.exp: Likewise.
* testsuite/ld-shared/shared.exp: Likewise. Use ld_link,
not ld_simple_link.
(shared_test): Don't run exe if not native.
* testsuite/ld-size/size.exp: Run non-native too. Add
-Wl,--no-as-needed to some tests. Prefix ld options with -Wl,.
* testsuite/ld-unique/unique.exp: Run non-native too. Use ld_link,
not ld_simple_link. Link using $CC. Add -Wl,--no-as-needed
to some tests and prefix ld options with -Wl,. Expect GNU
for hppa-linux even when no unique syms. Delete cleanup.
* testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to some
tests and prefix ld options with -Wl,.
* testsuite/ld-x86-64/x86-64.exp: Use ld_link, not ld_simple_link.
Add -Wl,--no-as-needed to some tests. Prefix ld options with -Wl,.
2017-01-02 13:15:37 +01:00
|
|
|
|
2017-01-02 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (bootstrap): Delete rule.
|
|
|
|
|
(ld-partial, ld1, ld1-full, ld2, ld3): Likewise.
|
|
|
|
|
(HOSTING_CRT0, HOSTING_SCRT0): Don't define.
|
|
|
|
|
(HOSTING_LIBS, HOSTING_SLIBS, HOSTING_EMU): Likewise.
|
|
|
|
|
* configure.ac (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
|
|
|
|
|
(HOSTING_LIBS, HOSTING_SLIBS): Likewise.
|
|
|
|
|
* configure.host (HOSTING_CRT0, HOSTING_LIBS): Don't define.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
* testsuite/config/default.exp (get_link_files): Delete.
|
|
|
|
|
(HOSTING_CRT0, HOSTING_SCRT0, HOSTING_LIBS, HOSTING_SLIBS): Don't
|
|
|
|
|
define.
|
|
|
|
|
(ld_simple_link): Delete.
|
|
|
|
|
* testsuite/lib/ld-lib.exp (default_ld_link): Delete
|
|
|
|
|
(default_ld_simple_link): Rename to default_ld_link.
|
|
|
|
|
(ld_simple_link_defsyms): Rename to ld_link_defsyms.
|
|
|
|
|
(run_ld_link_tests): Use ld_link, not ld_simple_link.
|
|
|
|
|
(run_cc_link_tests): Likewise.
|
|
|
|
|
(run_ld_link_exec_tests): Use $CC or $CXX to link, not $ld.
|
|
|
|
|
Don't run exe when not native, and return unsupported.
|
|
|
|
|
* testsuite/ld-bootstrap/bootstrap.exp: Create gccld1 etc. dirs.
|
|
|
|
|
Link ld1 etc. using $CC.
|
|
|
|
|
* testsuite/ld-cdtest/cdtest.exp: Link cdtest using $CC.
|
|
|
|
|
* testsuite/ld-checks/checks.exp: Use ld_link, not ld_simple_link.
|
|
|
|
|
* testsuite/ld-cygwin/exe-export.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elf/binutils.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elf/eh-group.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elf/exclude.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elf/frame.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elf/sec-to-seg.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elf/tls_common.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elfcomm/elfcomm.exp: Likewise.
|
|
|
|
|
* testsuite/ld-fastcall/fastcall.exp: Likewise.
|
|
|
|
|
* testsuite/ld-gc/gc.exp: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/binutils.exp: Likewise.
|
|
|
|
|
* testsuite/ld-mep/mep.exp: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
|
|
|
|
|
* testsuite/ld-mn10300/mn10300.exp: Likewise.
|
|
|
|
|
* testsuite/ld-nios2/nios2.exp: Likewise.
|
|
|
|
|
* testsuite/ld-pe/pe-compile.exp: Likewise.
|
|
|
|
|
* testsuite/ld-pe/pe-run.exp: Likewise.
|
|
|
|
|
* testsuite/ld-pe/pe-run2.exp: Likewise.
|
|
|
|
|
* testsuite/ld-plugin/plugin.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/align.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/alignof.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/assert.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/defined.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/extern.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/log2.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/map-address.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/phdrs.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/phdrs2.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/script.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/section-flags.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/sizeof.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/sysroot-prefix.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/weak.exp: Likewise.
|
|
|
|
|
* testsuite/ld-selective/selective.exp: Likewise.
|
|
|
|
|
* testsuite/ld-sh/sh.exp: Likewise.
|
|
|
|
|
* testsuite/ld-sh/sh64/relax.exp: Likewise.
|
|
|
|
|
* testsuite/ld-sh/sh64/relfail.exp: Likewise.
|
|
|
|
|
* testsuite/ld-srec/srec.exp: Likewise.
|
|
|
|
|
* testsuite/ld-tic6x/tic6x.exp: Likewise.
|
|
|
|
|
* testsuite/ld-undefined/weak-undef.exp: Likewise.
|
|
|
|
|
* testsuite/ld-versados/versados.exp: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/dwarfreloc.exp: Likewise.
|
|
|
|
|
* testsuite/ld-xtensa/coalesce.exp: Likewise.
|
|
|
|
|
* testsuite/ld-xtensa/diff_overflow.exp: Likewise.
|
|
|
|
|
* testsuite/ld-xtensa/lcall.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elf/audit.exp: Run non-native too.
|
|
|
|
|
* testsuite/ld-elf/compress.exp: Likewise. Replace ld options with
|
|
|
|
|
gcc -Wl, options.
|
|
|
|
|
* testsuite/ld-elf/dwarf.exp: Run non-native too. Use ld_link,
|
|
|
|
|
not ld_simple_link. Add -Wl,--no-as-needed to some tests.
|
|
|
|
|
* testsuite/ld-elf/elf.exp: Run non-native too. Formatting.
|
|
|
|
|
* testsuite/ld-elf/indirect.exp: Run non-native too. Add
|
|
|
|
|
-Wl,--no-as-needed to most tests.
|
|
|
|
|
* testsuite/ld-elf/shared.exp: Run non-native too. Use braces
|
|
|
|
|
to simplify quoting. Set run_tests using [list] rather than
|
|
|
|
|
brace assignment to expand $extralibs. Add -Wl,--no-as-needed
|
|
|
|
|
to many test. Prefix ld options with -Wl,.
|
|
|
|
|
(mix_pic_and_non_pic): Don't run exe if not native.
|
|
|
|
|
* testsuite/ld-elf/wrap.exp: Run non-native too. Add
|
|
|
|
|
-Wl,--no-as-needed and prefix ld options with -Wl,.
|
|
|
|
|
* testsuite/ld-elfvers/vers.exp: Run non-native too. Use ld_link,
|
|
|
|
|
not ld_simple_link.
|
|
|
|
|
* testsuite/ld-elfvsb/elfvsb.exp: Likewise.
|
|
|
|
|
(visibility_test): Don't run exe if not native.
|
|
|
|
|
* testsuite/ld-elfweak/elfweak.exp: Run non-native too. Use ld_link,
|
|
|
|
|
not ld_simple_link.
|
|
|
|
|
(build_exec): Don't run exe if not native.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc.exp: Run non-native too. Use ld_link,
|
|
|
|
|
not ld_simple_link. Link using $CC. Add -Wl,--no-as-needed
|
|
|
|
|
to some tests and prefix ld options with -Wl,. Expect GNU
|
|
|
|
|
for hppa-linux even when no ifuncs. Delete cleanup.
|
|
|
|
|
* testsuite/ld-pie/pie.exp: Run non-native too.
|
|
|
|
|
* testsuite/ld-plugin/lto.exp: Likewise.
|
|
|
|
|
* testsuite/ld-shared/shared.exp: Likewise. Use ld_link,
|
|
|
|
|
not ld_simple_link.
|
|
|
|
|
(shared_test): Don't run exe if not native.
|
|
|
|
|
* testsuite/ld-size/size.exp: Run non-native too. Add
|
|
|
|
|
-Wl,--no-as-needed to some tests. Prefix ld options with -Wl,.
|
|
|
|
|
* testsuite/ld-unique/unique.exp: Run non-native too. Use ld_link,
|
|
|
|
|
not ld_simple_link. Link using $CC. Add -Wl,--no-as-needed
|
|
|
|
|
to some tests and prefix ld options with -Wl,. Expect GNU
|
|
|
|
|
for hppa-linux even when no unique syms. Delete cleanup.
|
|
|
|
|
* testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to some
|
|
|
|
|
tests and prefix ld options with -Wl,.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Use ld_link, not ld_simple_link.
|
|
|
|
|
Add -Wl,--no-as-needed to some tests. Prefix ld options with -Wl,.
|
|
|
|
|
|
2017-01-02 13:13:15 +01:00
|
|
|
|
2017-01-02 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/elf32metag.sh (COMMONPAGESIZE): Define.
|
|
|
|
|
|
2017-01-02 13:03:47 +01:00
|
|
|
|
2017-01-02 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR ld/21000
|
|
|
|
|
* emulparams/hppalinux.sh (DATA_ADDR, SHLIB_DATA_ADDR): Don't define.
|
|
|
|
|
(DATA_SEGMENT_ALIGN, DATA_SEGMENT_END, DATA_SEGMENT_RELRO_END): Define.
|
|
|
|
|
* scripttempl/elf.sc: Don't define the above if DATA_SEGMENT_ALIGN
|
|
|
|
|
is already defined.
|
|
|
|
|
|
2017-01-02 04:36:43 +01:00
|
|
|
|
2017-01-02 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
Update year range in copyright notice of all files.
|
|
|
|
|
|
2017-01-02 04:25:05 +01:00
|
|
|
|
For older changes see ChangeLog-2016
|
2016-01-01 11:44:31 +01:00
|
|
|
|
|
2017-01-02 04:25:05 +01:00
|
|
|
|
Copyright (C) 2017 Free Software Foundation, Inc.
|
2016-01-01 11:44:31 +01:00
|
|
|
|
|
|
|
|
|
Copying and distribution of this file, with or without modification,
|
|
|
|
|
are permitted in any medium without royalty provided the copyright
|
|
|
|
|
notice and this notice are preserved.
|
|
|
|
|
|
|
|
|
|
Local Variables:
|
|
|
|
|
mode: change-log
|
|
|
|
|
left-margin: 8
|
|
|
|
|
fill-column: 74
|
|
|
|
|
version-control: never
|
|
|
|
|
End:
|