2020-07-29 16:00:15 +08:00
|
|
|
|
2020-07-29 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ldelf.c (ldelf_before_place_orphans): Set SEC_EXCLUDE for
|
|
|
|
|
discarded sections.
|
|
|
|
|
|
2020-07-28 10:14:16 +08:00
|
|
|
|
2020-07-28 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_check): Don't complain about relocs or merge
|
|
|
|
|
attributes from --just-symbols input.
|
|
|
|
|
* testsuite/ld-misc/just-symbols.exp: Just dump .data section.
|
|
|
|
|
Don't run test on a number of targets.
|
|
|
|
|
|
2020-07-28 09:13:34 +08:00
|
|
|
|
2020-07-28 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-misc/just-symbols-1.dd: Revert last change.
|
|
|
|
|
|
2020-07-27 17:18:57 +08:00
|
|
|
|
2020-07-27 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-misc/just-symbols.exp: Run for x86_64 PE too.
|
|
|
|
|
Set LDFLAGS for PE and XCOFF.
|
|
|
|
|
* testsuite/ld-misc/just-symbols.ld: Accept XCOFF mapped .data.
|
2020-07-28 09:13:34 +08:00
|
|
|
|
* testsuite/ld-misc/just-symbols-1.dd: Don't check format or
|
|
|
|
|
"Contents of section" lines.
|
2020-07-27 17:18:57 +08:00
|
|
|
|
|
2020-07-27 11:50:10 +08:00
|
|
|
|
2020-07-27 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/lib/ld-lib.exp (check_ctf_available): Check first that
|
|
|
|
|
target compiler is available.
|
|
|
|
|
|
2020-07-24 03:11:29 +08:00
|
|
|
|
2020-07-23 Maciej W. Rozycki <macro@wdc.com>
|
|
|
|
|
|
|
|
|
|
PR ld/26288
|
|
|
|
|
* ldelf.c (ldelf_after_open): Do not reject ET_EXEC input
|
|
|
|
|
supplied with `--just-symbols'.
|
|
|
|
|
* testsuite/ld-misc/just-symbols.exp: New test script.
|
|
|
|
|
* testsuite/ld-misc/just-symbols-1.dd: New test dump.
|
|
|
|
|
* testsuite/ld-misc/just-symbols.ld: New test linker script.
|
|
|
|
|
* testsuite/ld-misc/just-symbols-0.s: New test source.
|
|
|
|
|
* testsuite/ld-misc/just-symbols-1.s: New test source.
|
|
|
|
|
|
2020-07-24 03:11:29 +08:00
|
|
|
|
2020-07-23 Maciej W. Rozycki <macro@wdc.com>
|
|
|
|
|
|
|
|
|
|
PR ld/26288
|
|
|
|
|
|
|
|
|
|
Revert:
|
|
|
|
|
PR 26047
|
|
|
|
|
* ldelf.c (ldelf_after_open): Fail if attempting to link one
|
|
|
|
|
executable into another.
|
|
|
|
|
|
2020-07-15 01:33:11 +08:00
|
|
|
|
2020-07-22 Nick Alcock <nick.alcock@oracle.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-ctf/ctf.exp: Skip on non-ELF for now.
|
|
|
|
|
|
2020-06-12 03:19:07 +08:00
|
|
|
|
2020-07-22 Nick Alcock <nick.alcock@oracle.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (ldlang_open_ctf): Set SEC_EXCLUDE on all but the
|
|
|
|
|
first input .ctf section.
|
|
|
|
|
|
2020-06-11 22:44:48 +08:00
|
|
|
|
2020-07-22 Nick Alcock <nick.alcock@oracle.com>
|
|
|
|
|
|
|
|
|
|
* configure.ac (enable_libctf): Substitute it.
|
|
|
|
|
* Makefile.am (enablings.exp): New.
|
|
|
|
|
(EXTRA_DEJAGNU_SITE_CONFIG): Add it.
|
|
|
|
|
(DISTCLEANFILES): Likewise.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* configure: Likewise.
|
|
|
|
|
* testsuite/lib/ld-lib.exp (compile_one_cc): New.
|
|
|
|
|
(check_ctf_available): Likewise.
|
|
|
|
|
(skip_ctf_tests): Likewise.
|
|
|
|
|
* testsuite/ld-ctf/ctf.exp: Call skip_ctf_tests.
|
|
|
|
|
|
2020-06-06 06:28:22 +08:00
|
|
|
|
2020-07-22 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-ctf/ctf.exp: New file.
|
|
|
|
|
* testsuite/ld-ctf/A-2.c: New file.
|
|
|
|
|
* testsuite/ld-ctf/A.c: New file.
|
|
|
|
|
* testsuite/ld-ctf/B-2.c: New file.
|
|
|
|
|
* testsuite/ld-ctf/B.c: New file.
|
|
|
|
|
* testsuite/ld-ctf/C-2.c: New file.
|
|
|
|
|
* testsuite/ld-ctf/C.c: New file.
|
|
|
|
|
* testsuite/ld-ctf/array-char.c: New file.
|
|
|
|
|
* testsuite/ld-ctf/array-int.c: New file.
|
|
|
|
|
* testsuite/ld-ctf/array.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/child-float.c: New file.
|
|
|
|
|
* testsuite/ld-ctf/child-int.c: New file.
|
|
|
|
|
* testsuite/ld-ctf/conflicting-cycle-1.B-1.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/conflicting-cycle-1.B-2.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/conflicting-cycle-1.parent.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/conflicting-cycle-2.A-1.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/conflicting-cycle-2.A-2.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/conflicting-cycle-2.parent.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/conflicting-cycle-3.C-1.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/conflicting-cycle-3.C-2.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/conflicting-cycle-3.parent.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/conflicting-enums.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/conflicting-typedefs.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/cross-tu-1.c: New file.
|
|
|
|
|
* testsuite/ld-ctf/cross-tu-2.c: New file.
|
|
|
|
|
* testsuite/ld-ctf/cross-tu-conflicting-2.c: New file.
|
|
|
|
|
* testsuite/ld-ctf/cross-tu-cyclic-1.c: New file.
|
|
|
|
|
* testsuite/ld-ctf/cross-tu-cyclic-2.c: New file.
|
|
|
|
|
* testsuite/ld-ctf/cross-tu-cyclic-3.c: New file.
|
|
|
|
|
* testsuite/ld-ctf/cross-tu-cyclic-4.c: New file.
|
|
|
|
|
* testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/cross-tu-into-cycle.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/cross-tu-noncyclic.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/cycle-1.c: New file.
|
|
|
|
|
* testsuite/ld-ctf/cycle-1.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/cycle-2.A.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/cycle-2.B.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/cycle-2.C.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/diag-ctf-version-0.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/diag-ctf-version-0.s: New file.
|
|
|
|
|
* testsuite/ld-ctf/diag-ctf-version-2-unsupported-feature.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/diag-ctf-version-2-unsupported-feature.s: New file.
|
|
|
|
|
* testsuite/ld-ctf/diag-ctf-version-f.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/diag-ctf-version-f.s: New file.
|
|
|
|
|
* testsuite/ld-ctf/diag-cttname-invalid.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/diag-cttname-invalid.s: New file.
|
|
|
|
|
* testsuite/ld-ctf/diag-cttname-null.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/diag-cttname-null.s: New file.
|
|
|
|
|
* testsuite/ld-ctf/diag-cuname.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/diag-cuname.s: New file.
|
|
|
|
|
* testsuite/ld-ctf/diag-decompression-failure.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/diag-decompression-failure.s: New file.
|
|
|
|
|
* testsuite/ld-ctf/diag-parlabel.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/diag-parlabel.s: New file.
|
|
|
|
|
* testsuite/ld-ctf/diag-parname.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/diag-parname.s: New file.
|
|
|
|
|
* testsuite/ld-ctf/diag-unsupported-flag.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/diag-unsupported-flag.s: New file.
|
|
|
|
|
* testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/diag-wrong-magic-number.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/diag-wrong-magic-number.s: New file.
|
|
|
|
|
* testsuite/ld-ctf/enum-2.c: New file.
|
|
|
|
|
* testsuite/ld-ctf/enum.c: New file.
|
|
|
|
|
* testsuite/ld-ctf/function.c: New file.
|
|
|
|
|
* testsuite/ld-ctf/function.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/slice.c: New file.
|
|
|
|
|
* testsuite/ld-ctf/slice.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/super-sub-cycles.c: New file.
|
|
|
|
|
* testsuite/ld-ctf/super-sub-cycles.d: New file.
|
|
|
|
|
* testsuite/ld-ctf/typedef-int.c: New file.
|
|
|
|
|
* testsuite/ld-ctf/typedef-long.c: New file.
|
|
|
|
|
* testsuite/ld-ctf/union-1.c: New file.
|
|
|
|
|
|
ld: new options --ctf-variables and --ctf-share-types
libctf recently changed to make it possible to not emit the CTF
variables section. Make this the default for ld: the variables section
is a simple name -> type mapping, and the names can be quite voluminous.
Nothing in the variables section appears in the symbol table, by
definition, so GDB cannot make use of them: special-purpose projects
that implement their own analogues of symbol table lookup can do so, but
they'll need to tell the linker to emit the variables section after all.
The new --ctf-variables option does this.
The --ctf-share-types option (valid values "share-duplicated" and
"share-unconflicted") allow the caller to specify the CTF link mode.
Most users will want share-duplicated, since it allows for more
convenient debugging: but very large projects composed of many decoupled
components may want to use share-unconflicted mode, which places types
that appear in only one TU into per-TU dicts. (They may also want to
relink the CTF using the ctf_link API and cu-mapping, to make their
"components" larger than a single TU. Right now the linker does not
expose the CU-mapping machinery. Perhaps it should in future to make
this use case easier.)
For now, giving the linker the ability to emit share-duplicated CTF lets
us add testcases for that mode to the testsuite.
ld/
* ldlex.h (option_values) <OPTION_CTF_VARIABLES,
OPTION_NO_CTF_VARIABLES, OPTION_CTF_SHARE_TYPES>: New.
* ld.h (ld_config_type) <ctf_variables, ctf_share_duplicated>:
New fields.
* ldlang.c (lang_merge_ctf): Use them.
* lexsup.c (ld_options): Add ctf-variables, no-ctf-variables,
ctf-share-types.
(parse_args) <OPTION_CTF_VARIABLES, OPTION_NO_CTF_VARIABLES,
OPTION_CTF_SHARE_TYPES>: New cases.
* ld.texi: Document new options.
* NEWS: Likewise.
2020-06-06 06:18:06 +08:00
|
|
|
|
2020-07-22 Nick Alcock <nick.alcock@oracle.com>
|
|
|
|
|
|
|
|
|
|
* ldlex.h (option_values) <OPTION_CTF_VARIABLES,
|
|
|
|
|
OPTION_NO_CTF_VARIABLES, OPTION_CTF_SHARE_TYPES>: New.
|
|
|
|
|
* ld.h (ld_config_type) <ctf_variables, ctf_share_duplicated>:
|
|
|
|
|
New fields.
|
|
|
|
|
* ldlang.c (lang_merge_ctf): Use them.
|
|
|
|
|
* lexsup.c (ld_options): Add ctf-variables, no-ctf-variables,
|
|
|
|
|
ctf-share-types.
|
|
|
|
|
(parse_args) <OPTION_CTF_VARIABLES, OPTION_NO_CTF_VARIABLES,
|
|
|
|
|
OPTION_CTF_SHARE_TYPES>: New cases.
|
|
|
|
|
* ld.texi: Document new options.
|
|
|
|
|
* NEWS: Likewise.
|
|
|
|
|
|
2020-04-15 21:37:34 +08:00
|
|
|
|
2020-07-22 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_merge_ctf): Turn errors into warnings.
|
|
|
|
|
Fix a comment typo.
|
|
|
|
|
(lang_write_ctf): Turn an error into a warning.
|
|
|
|
|
(ldlang_open_ctf): Reformat warnings. Fix printing file names.
|
|
|
|
|
|
libctf, ld, binutils: add textual error/warning reporting for libctf
This commit adds a long-missing piece of infrastructure to libctf: the
ability to report errors and warnings using all the power of printf,
rather than being restricted to one errno value. Internally, libctf
calls ctf_err_warn() to add errors and warnings to a list: a new
iterator ctf_errwarning_next() then consumes this list one by one and
hands it to the caller, which can free it. New errors and warnings are
added until the list is consumed by the caller or the ctf_file_t is
closed, so you can dump them at intervals. The caller can of course
choose to print only those warnings it wants. (I am not sure whether we
want objdump, readelf or ld to print warnings or not: right now I'm
printing them, but maybe we only want to print errors? This entirely
depends on whether warnings are voluminous things describing e.g. the
inability to emit single types because of name clashes or something.
There are no users of this infrastructure yet, so it's hard to say.)
There is no internationalization here yet, but this at least adds a
place where internationalization can be added, to one of
ctf_errwarning_next or ctf_err_warn.
We also provide a new ctf_assert() function which uses this
infrastructure to provide non-fatal assertion failures while emitting an
assert-like string to the caller: to save space and avoid needlessly
duplicating unchanging strings, the assertion test is inlined but the
print-things-out failure case is not. All assertions in libctf will be
converted to use this machinery in future commits and propagate
assertion-failure errors up, so that the linker in particular cannot be
killed by libctf assertion failures when it could perfectly well just
print warnings and drop the CTF section.
include/
* ctf-api.h (ECTF_INTERNAL): Adjust error text.
(ctf_errwarning_next): New.
libctf/
* ctf-impl.h (ctf_assert): New.
(ctf_err_warning_t): Likewise.
(ctf_file_t) <ctf_errs_warnings>: Likewise.
(ctf_err_warn): New prototype.
(ctf_assert_fail_internal): Likewise.
* ctf-inlines.h (ctf_assert_internal): Likewise.
* ctf-open.c (ctf_file_close): Free ctf_errs_warnings.
* ctf-create.c (ctf_serialize): Copy it on serialization.
* ctf-subr.c (ctf_err_warn): New, add an error/warning.
(ctf_errwarning_next): New iterator, free and pass back
errors/warnings in succession.
* libctf.ver (ctf_errwarning_next): Add.
ld/
* ldlang.c (lang_ctf_errs_warnings): New, print CTF errors
and warnings. Assert when libctf asserts.
(lang_merge_ctf): Call it.
(land_write_ctf): Likewise.
binutils/
* objdump.c (ctf_archive_member): Print CTF errors and warnings.
* readelf.c (dump_ctf_archive_member): Likewise.
2020-06-04 22:07:54 +08:00
|
|
|
|
2020-07-22 Nick Alcock <nick.alcock@oracle.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_ctf_errs_warnings): New, print CTF errors
|
|
|
|
|
and warnings. Assert when libctf asserts.
|
|
|
|
|
(lang_merge_ctf): Call it.
|
|
|
|
|
(land_write_ctf): Likewise.
|
|
|
|
|
|
2020-07-22 18:49:07 +08:00
|
|
|
|
2020-07-22 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/26262
|
|
|
|
|
PR ld/26267
|
|
|
|
|
* ldlang.c (lang_process): Set lto_all_symbols_read after all
|
|
|
|
|
LTO IR symbols have been read.
|
|
|
|
|
* plugin.c (plugin_notice): Override the IR definition only if
|
|
|
|
|
all LTO IR symbols have been read or the new definition is
|
|
|
|
|
non-weak and the the IR definition is weak
|
|
|
|
|
* testsuite/ld-plugin/lto.exp: Run PR ld/26262 and ld/26267
|
|
|
|
|
tests.
|
|
|
|
|
* testsuite/ld-plugin/pr26262a.c: New file.
|
|
|
|
|
* testsuite/ld-plugin/pr26262b.c: Likewise.
|
|
|
|
|
* testsuite/ld-plugin/pr26262c.c: Likewise.
|
|
|
|
|
* testsuite/ld-plugin/pr26267.err: Likewise.
|
|
|
|
|
* testsuite/ld-plugin/pr26267a.c: Likewise.
|
|
|
|
|
* testsuite/ld-plugin/pr26267b.c: Likewise.
|
|
|
|
|
* testsuite/ld-plugin/pr26267c.c: Likewise.
|
|
|
|
|
|
2020-07-20 21:57:38 +08:00
|
|
|
|
2020-07-20 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-powerpc/powerpc.exp (ppcelftests): Use section name
|
|
|
|
|
.PPC.EMB.apuinfo instead of section number 2 in apuinfo tests.
|
|
|
|
|
|
2020-07-20 12:02:34 +08:00
|
|
|
|
2020-07-20 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 26265
|
|
|
|
|
* ldlang.c (undef_from_cmdline): Delete.
|
|
|
|
|
(ldlang_add_undef): Mark "cmdline" param unused.
|
|
|
|
|
(lang_end): Traverse gc_sym_list to determine whether a symbol root
|
|
|
|
|
has been specified. Update error message.
|
|
|
|
|
* testsuite/ld-gc/noent.d: Adjust for changed error message.
|
|
|
|
|
|
2020-07-20 19:53:58 +08:00
|
|
|
|
2020-07-20 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR gas/26263
|
|
|
|
|
* testsuite/ld-i386/pr26263.d: Updated.
|
|
|
|
|
* testsuite/ld-x86-64/pr26263.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Run gas/26263 test for all ELF
|
|
|
|
|
targets.
|
|
|
|
|
|
2020-07-19 21:51:19 +08:00
|
|
|
|
2020-07-19 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR gas/26263
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Run PR gas/26263 test.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr26263.d: New file.
|
|
|
|
|
* testsuite/ld-x86-64/pr26263.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr26263.s: Likewise.
|
|
|
|
|
|
2020-07-19 12:08:07 +08:00
|
|
|
|
2020-07-19 Hans-Peter Nilsson <hp@bitrange.com>
|
|
|
|
|
|
|
|
|
|
* scripttempl/elf.sc (ETEXT_LAST_IN_RODATA_SEGMENT): New variable.
|
|
|
|
|
* emulparams/elf64mmix.sh (ETEXT_LAST_IN_RODATA_SEGMENT): Define.
|
|
|
|
|
* testsuite/ld-mmix/sec-1.d: Adjust.
|
|
|
|
|
|
Power10 stub selection
This patch better supports mixing of power10 and non-power10 code,
as might be seen in a cpu-optimized library using ifuncs to select
functions optimized for a given cpu. Using -Wl,--no-power10-stubs
isn't that good in this situation since non-power10 notoc stubs are
slower and larger than the power10 variants, which you'd like to use
on power10 code paths.
With this change, power10 pc-relative code that makes calls marked
@notoc uses power10 stubs if stubs are necessary, and other calls use
non-power10 instructions in stubs. This will mean that if gcc is
generating code for -mcpu=power10 but with pc-rel disabled then you'll
get the older stubs even on power10 (unless you force with
-Wl,--power10-stubs). That shouldn't be too big a problem: stubs that
use r2 are reasonable. It's just the ones that set up addressing
using "mflr 12; bcl 20,31,.+4; mflr 11; mtlr 12" that should be
avoided if possible.
bfd/
* elf64-ppc.c (struct ppc_link_hash_table): Add has_power10_relocs.
(select_alt_stub): New function.
(ppc_get_stub_entry): Use it here.
(ppc64_elf_check_relocs): Set had_power10_relocs rather than
power10_stubs.
(ppc64_elf_size_stubs): Clear power10_stubs here instead. Don't
merge notoc stubs with other varieties when power10_stubs is "auto".
Instead dup the stub hash table entry.
(plt_stub_size, ppc_build_one_stub, ppc_size_one_stub): Adjust
tests of power10_stubs.
ld/
* emultempl/ppc64elf.em (power10-stubs): Accept optional "auto" arg.
* ld.texi (power10-stubs): Update.
* testsuite/ld-powerpc/callstub-1.d: Force --power10-stubs.
* testsuite/ld-powerpc/callstub-2.d: Relax branch offset comparison.
* testsuite/ld-powerpc/callstub-4.d: New test.
* testsuite/ld-powerpc/notoc.d: Force --no-power10-stubs.
* testsuite/ld-powerpc/notoc3.d,
* testsuite/ld-powerpc/notoc3.s,
* testsuite/ld-powerpc/notoc3.wf: New test.
* testsuite/ld-powerpc/powerpc.exp: Run new tests. Pass
--no-power10-stubs for notoc link.
2020-07-17 15:17:28 +08:00
|
|
|
|
2020-07-19 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/ppc64elf.em (power10-stubs): Accept optional "auto" arg.
|
|
|
|
|
* ld.texi (power10-stubs): Update.
|
|
|
|
|
* testsuite/ld-powerpc/callstub-1.d: Force --power10-stubs.
|
|
|
|
|
* testsuite/ld-powerpc/callstub-2.d: Relax branch offset comparison.
|
|
|
|
|
* testsuite/ld-powerpc/callstub-4.d: New test.
|
|
|
|
|
* testsuite/ld-powerpc/notoc.d: Force --no-power10-stubs.
|
|
|
|
|
* testsuite/ld-powerpc/notoc3.d,
|
|
|
|
|
* testsuite/ld-powerpc/notoc3.s,
|
|
|
|
|
* testsuite/ld-powerpc/notoc3.wf: New test.
|
|
|
|
|
* testsuite/ld-powerpc/powerpc.exp: Run new tests. Pass
|
|
|
|
|
--no-power10-stubs for notoc link.
|
|
|
|
|
|
mmix ld: move .init (and _init) first.
This both makes the section layout more similar to that of the general
default for ELF and fixes (makes true) an assumption that code and
rodata is located between _init and __etext, in
libgcc/config/mmix/crti.S. Sadly, that's not actually true for ELF
(generally and for elf64mmix), where exception-tables and .rodata is
after _etext; I'm pondering what to do about that.
The original mmix simulator behavior is that memory magically appears
on access, initialized with 0, which is not preferable when chasing
bugs by throwing code the size of the gcc test-suite to the simulator.
The code in crti.S compatibly enables simulator machinery to identify
undefined memory and instead stopping the simulator with an error
(going to interactive mode for interactive runs). See
http://gcc.gnu.org/legacy-ml/gcc-patches/2012-10/msg01871.html for
more, including the mmix-sim.ch "patch file".
This fixes only one error in the gcc testsuite,
gcc.c-torture/execute/pr20621-1.c with LTO, where for some reason
gcc/lto chooses to move (writable) data that is only used to read 0 to
.rodata. An access (sufficiently far inside a block) in an
unregistered place is flagged as an invalid access.
The bpo-9m test that I had to adjust, actually exposes a wart: mmo
does not have the notion of symbol types (or sections) and the
test-case now has leading zeros at "Main" eventually leading to it
being misdiagnosed as being outside .text and .data, thus here mapped
to BFD as an absolute symbol. The test is not intended to check the
mmo symbol-type machinery, so I'm just tweaking it to be
symbol-type-neutral for "Main".
Since you have to jump through hoops to see the problem, I don't think
this commit is worth putting on the 2.35-branch.
ld:
* scripttempt/mmo.sc: Move .init first in .text output section.
* testsuite/ld-mmix/bpo-9m.d: Adjust accordingly.
2020-07-17 06:55:13 +08:00
|
|
|
|
2020-07-17 Hans-Peter Nilsson <hp@bitrange.com>
|
|
|
|
|
|
|
|
|
|
* scripttempt/mmo.sc: Move .init first in .text output section.
|
|
|
|
|
* testsuite/ld-mmix/bpo-9m.d: Adjust accordingly.
|
|
|
|
|
|
2020-07-15 14:53:55 +08:00
|
|
|
|
2020-07-15 Jan Beulich <jbeulich@suse.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-i386/ibt-plt-1.d, testsuite/ld-i386/ibt-plt-2a.d,
|
|
|
|
|
testsuite/ld-i386/ibt-plt-2c.d, testsuite/ld-i386/ibt-plt-3a.d,
|
|
|
|
|
testsuite/ld-i386/ibt-plt-3c.d, testsuite/ld-i386/plt-pic.pd,
|
|
|
|
|
testsuite/ld-i386/plt-pic2.dd, testsuite/ld-i386/plt.pd,
|
|
|
|
|
testsuite/ld-i386/plt2.dd, testsuite/ld-i386/pr19636-1d.d,
|
|
|
|
|
testsuite/ld-i386/pr19636-1l.d, testsuite/ld-i386/pr19636-2c.d,
|
|
|
|
|
testsuite/ld-i386/pr20830.d, testsuite/ld-i386/vxworks1-lib.dd,
|
|
|
|
|
testsuite/ld-i386/vxworks1.dd,
|
|
|
|
|
testsuite/ld-ifunc/ifunc-2-i386-now.d,
|
|
|
|
|
testsuite/ld-ifunc/ifunc-2-local-i386-now.d,
|
|
|
|
|
testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d,
|
|
|
|
|
testsuite/ld-ifunc/ifunc-2-x86-64-now.d,
|
|
|
|
|
testsuite/ld-ifunc/ifunc-21-x86-64.d,
|
|
|
|
|
testsuite/ld-ifunc/ifunc-22-x86-64.d,
|
|
|
|
|
testsuite/ld-ifunc/pr17154-i386-now.d,
|
|
|
|
|
testsuite/ld-ifunc/pr17154-i386.d,
|
|
|
|
|
testsuite/ld-ifunc/pr17154-x86-64-now.d,
|
|
|
|
|
testsuite/ld-ifunc/pr17154-x86-64.d,
|
|
|
|
|
testsuite/ld-x86-64/align-branch-1.d,
|
|
|
|
|
testsuite/ld-x86-64/bnd-branch-1-now.d,
|
|
|
|
|
testsuite/ld-x86-64/bnd-branch-1.d,
|
|
|
|
|
testsuite/ld-x86-64/bnd-ifunc-1-now.d,
|
|
|
|
|
testsuite/ld-x86-64/bnd-ifunc-1.d,
|
|
|
|
|
testsuite/ld-x86-64/bnd-ifunc-2-now.d,
|
|
|
|
|
testsuite/ld-x86-64/bnd-ifunc-2.d,
|
|
|
|
|
testsuite/ld-x86-64/bnd-plt-1-now.d,
|
|
|
|
|
testsuite/ld-x86-64/bnd-plt-1.d,
|
|
|
|
|
testsuite/ld-x86-64/call1a.d, testsuite/ld-x86-64/call1b.d,
|
|
|
|
|
testsuite/ld-x86-64/call1d.d, testsuite/ld-x86-64/call1e.d,
|
|
|
|
|
testsuite/ld-x86-64/call1f.d, testsuite/ld-x86-64/call1g.d,
|
|
|
|
|
testsuite/ld-x86-64/call1h.d, testsuite/ld-x86-64/call1i.d,
|
|
|
|
|
testsuite/ld-x86-64/gotpcrel1.dd,
|
|
|
|
|
testsuite/ld-x86-64/hidden2.d,
|
|
|
|
|
testsuite/ld-x86-64/ibt-plt-1-x32.d,
|
|
|
|
|
testsuite/ld-x86-64/ibt-plt-1.d,
|
|
|
|
|
testsuite/ld-x86-64/ibt-plt-2a-x32.d,
|
|
|
|
|
testsuite/ld-x86-64/ibt-plt-2a.d,
|
|
|
|
|
testsuite/ld-x86-64/ibt-plt-2c-x32.d,
|
|
|
|
|
testsuite/ld-x86-64/ibt-plt-2c.d,
|
|
|
|
|
testsuite/ld-x86-64/ibt-plt-3a-x32.d,
|
|
|
|
|
testsuite/ld-x86-64/ibt-plt-3a.d,
|
|
|
|
|
testsuite/ld-x86-64/ibt-plt-3c-x32.d,
|
|
|
|
|
testsuite/ld-x86-64/ibt-plt-3c.d,
|
|
|
|
|
testsuite/ld-x86-64/libno-plt-1b.dd,
|
|
|
|
|
testsuite/ld-x86-64/mpx3.dd, testsuite/ld-x86-64/mpx3n.dd,
|
|
|
|
|
testsuite/ld-x86-64/mpx4.dd, testsuite/ld-x86-64/mpx4n.dd,
|
|
|
|
|
testsuite/ld-x86-64/no-plt-1a.dd,
|
|
|
|
|
testsuite/ld-x86-64/no-plt-1b.dd,
|
|
|
|
|
testsuite/ld-x86-64/no-plt-1c.dd,
|
|
|
|
|
testsuite/ld-x86-64/no-plt-1d.dd,
|
|
|
|
|
testsuite/ld-x86-64/no-plt-1e.dd,
|
|
|
|
|
testsuite/ld-x86-64/no-plt-1f.dd,
|
|
|
|
|
testsuite/ld-x86-64/no-plt-1g.dd,
|
|
|
|
|
testsuite/ld-x86-64/plt-main-bnd.dd,
|
|
|
|
|
testsuite/ld-x86-64/plt-main-ibt-x32.dd,
|
|
|
|
|
testsuite/ld-x86-64/plt-main-ibt.dd,
|
|
|
|
|
testsuite/ld-x86-64/plt.pd, testsuite/ld-x86-64/plt2.dd,
|
|
|
|
|
testsuite/ld-x86-64/pr19609-5a.d,
|
|
|
|
|
testsuite/ld-x86-64/pr19609-5b.d,
|
|
|
|
|
testsuite/ld-x86-64/pr19609-5c.d,
|
|
|
|
|
testsuite/ld-x86-64/pr19609-5e.d,
|
|
|
|
|
testsuite/ld-x86-64/pr19609-7b.d,
|
|
|
|
|
testsuite/ld-x86-64/pr19609-7d.d,
|
|
|
|
|
testsuite/ld-x86-64/pr19636-2d.d,
|
|
|
|
|
testsuite/ld-x86-64/pr19636-2l.d,
|
|
|
|
|
testsuite/ld-x86-64/pr20253-1b.d,
|
|
|
|
|
testsuite/ld-x86-64/pr20253-1d.d,
|
|
|
|
|
testsuite/ld-x86-64/pr20253-1f.d,
|
|
|
|
|
testsuite/ld-x86-64/pr20253-1h.d,
|
|
|
|
|
testsuite/ld-x86-64/pr20253-1j.d,
|
|
|
|
|
testsuite/ld-x86-64/pr20253-1l.d,
|
|
|
|
|
testsuite/ld-x86-64/pr20830a-now.d,
|
|
|
|
|
testsuite/ld-x86-64/pr20830a.d,
|
|
|
|
|
testsuite/ld-x86-64/pr20830b-now.d,
|
|
|
|
|
testsuite/ld-x86-64/pr20830b.d,
|
|
|
|
|
testsuite/ld-x86-64/pr21038a-now.d,
|
|
|
|
|
testsuite/ld-x86-64/pr21038a.d,
|
|
|
|
|
testsuite/ld-x86-64/pr21038b-now.d,
|
|
|
|
|
testsuite/ld-x86-64/pr21038b.d,
|
|
|
|
|
testsuite/ld-x86-64/pr21038c-now.d,
|
|
|
|
|
testsuite/ld-x86-64/pr21038c.d,
|
|
|
|
|
testsuite/ld-x86-64/pr23930-x32.d,
|
|
|
|
|
testsuite/ld-x86-64/pr23930.d,
|
|
|
|
|
testsuite/ld-x86-64/pr25416-1a.d,
|
|
|
|
|
testsuite/ld-x86-64/pr25416-2a.d,
|
|
|
|
|
testsuite/ld-x86-64/pr26018.d,
|
|
|
|
|
testsuite/ld-x86-64/protected2-k1om.d,
|
|
|
|
|
testsuite/ld-x86-64/protected2-l1om.d,
|
|
|
|
|
testsuite/ld-x86-64/protected2.d,
|
|
|
|
|
testsuite/ld-x86-64/protected3.d,
|
|
|
|
|
testsuite/ld-x86-64/protected8.d,
|
|
|
|
|
testsuite/ld-x86-64/tlsbin.dd, testsuite/ld-x86-64/tlsbin2.dd,
|
|
|
|
|
testsuite/ld-x86-64/tlsbindesc.dd,
|
|
|
|
|
testsuite/ld-x86-64/tlsdesc.dd,
|
|
|
|
|
testsuite/ld-x86-64/tlsdesc.pd,
|
|
|
|
|
testsuite/ld-x86-64/tlsgd10.dd,
|
|
|
|
|
testsuite/ld-x86-64/tlsgd7.dd, testsuite/ld-x86-64/tlsgd8.dd,
|
|
|
|
|
testsuite/ld-x86-64/tlsgd9.dd,
|
|
|
|
|
testsuite/ld-x86-64/tlsgdesc.dd,
|
|
|
|
|
testsuite/ld-x86-64/tlsld3.dd, testsuite/ld-x86-64/tlsld4.dd,
|
|
|
|
|
testsuite/ld-x86-64/tlspic.dd, testsuite/ld-x86-64/tlspic2.dd,
|
|
|
|
|
testsuite/ld-x86-64/tlspie2b.d, testsuite/ld-x86-64/tlspie2c.d:
|
|
|
|
|
Adjust expectations.
|
|
|
|
|
|
mmix bfd: fix bfd_assert for R_MMIX_PUSHJ_STUBBABLE against undef'd symbol
Spotted when inspecting gcc testsuite logs, but this already is
covered by the ld-mmix testsuite, it's just that the assert is ignored
since the regexp match is for a substring and not anchored.
With the anchors added but not the bugfix, the ld.log shows that the
asserts cause a non-match as intended:
Executing on host: sh -c {./ld-new -LX/src/ld/testsuite/ld-mmix -m elf64mmix -o tmpdir/dump tmpdir/undef-2.o tmpdir/start.o 2>&1} /dev/null dump.tmp (timeout = 300)
./ld-new: BFD (GNU Binutils) 2.34.50.20200629 assertion fail X/src/bfd/elf64-mmix.c:2845
./ld-new: BFD (GNU Binutils) 2.34.50.20200629 assertion fail X/src/bfd/elf64-mmix.c:2845
./ld-new: BFD (GNU Binutils) 2.34.50.20200629 assertion fail X/src/bfd/elf64-mmix.c:2845
./ld-new: tmpdir/undef-2.o:(.text+0x0): undefined reference to `undefd'
failed with: <./ld-new: BFD (GNU Binutils) 2.34.50.20200629 assertion fail X/src/bfd/elf64-mmix.c:2845
./ld-new: BFD (GNU Binutils) 2.34.50.20200629 assertion fail X/src/bfd/elf64-mmix.c:2845
./ld-new: BFD (GNU Binutils) 2.34.50.20200629 assertion fail X/src/bfd/elf64-mmix.c:2845
./ld-new: tmpdir/undef-2.o:(.text+0x0): undefined reference to `undefd'>, expected: <\A[^\n\r]*undefined reference to `undefd'\Z>
FAIL: ld-mmix/undef-2
Gone with the fix of course, leaving just the intended "undefined
reference" like.
I'm not going to add anchors manually for all the "error:" strings in
the test-suite, not even in the mmix parts. Sorry, but I'll just do
it for *these* specific undefined-reference tests.
Just a thought: maybe the run_dump_test "error:" string should
*automatically* get anchor marks prepended and appended for a single
line match as in the patch, "\A[^\n\r]*" prepended and \Z appended
unless either anchor mark or \r or \n is present in the regexp?
Committed.
bfd:
* elf64-mmix.c (mmix_elf_relax_section): Improve accounting for
R_MMIX_PUSHJ_STUBBABLE relocs against undefined symbols.
ld/testsuite:
* testsuite/ld-mmix/undef-1.d, testsuite/ld-mmix/undef-1m.d,
testsuite/ld-mmix/undef-2.d, testsuite/ld-mmix/undef-2m.d: Add
start- and end-anchors to error-string to match just a
single-line error-message.
2020-07-15 12:22:28 +08:00
|
|
|
|
2020-07-15 Hans-Peter Nilsson <hp@bitrange.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mmix/undef-1.d, testsuite/ld-mmix/undef-1m.d,
|
|
|
|
|
testsuite/ld-mmix/undef-2.d, testsuite/ld-mmix/undef-2m.d: Add
|
|
|
|
|
start- and end-anchors to error-string to match just a
|
|
|
|
|
single-line error-message.
|
|
|
|
|
|
2020-07-13 18:27:28 +08:00
|
|
|
|
2020-07-13 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-scripts/default-script1.d: Don't skip, xfail
|
|
|
|
|
using is_pecoff_format.
|
|
|
|
|
* testsuite/ld-scripts/default-script2.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/default-script3.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/default-script4.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/pr20302.d: Remove x86_64-*-cygwin from notarget.
|
|
|
|
|
* testsuite/ld-scripts/provide-6.d: Remove x86_64-*-cygwin from xfail.
|
|
|
|
|
* testsuite/ld-scripts/provide-8.d: Likewise.
|
|
|
|
|
|
2020-07-10 15:28:49 +08:00
|
|
|
|
2020-07-10 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ld.texi (PowerPC64 ELF64): Document --no-inline-optimize,
|
|
|
|
|
--power10-stubs and --no-power10-stubs.
|
|
|
|
|
|
2020-07-10 09:18:45 +08:00
|
|
|
|
2020-07-10 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/ppc64elf.em (params): Init new field.
|
|
|
|
|
(enum ppc64_opt): Add OPTION_POWER10_STUBS and OPTION_NO_POWER10_STUBS.
|
|
|
|
|
(PARSE_AND_LIST_LONGOPTS): Support --power10-stubs and
|
|
|
|
|
--no-power10-stubs.
|
|
|
|
|
(PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/callstub-3.d: New test.
|
|
|
|
|
* testsuite/ld-powerpc/powerpc.exp: Run it.
|
|
|
|
|
|
2020-07-08 19:51:32 +08:00
|
|
|
|
2020-07-09 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/ppcpe.sh: Delete.
|
|
|
|
|
* scripttempl/ppcpe.sc: Delete.
|
|
|
|
|
* emulparams/ppclynx.sh: Delete.
|
|
|
|
|
* Makefile.am (ALL_EMULATION_SOURCES): Remove ppc PE and lynxos.
|
|
|
|
|
* configure.tgt: Likewise.
|
|
|
|
|
* emultempl/beos.em: Remove powerpc PE support.
|
|
|
|
|
* emultempl/pe.em: Likewise.
|
|
|
|
|
* po/BLD-POTFILES.in: Regenerate.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2020-07-09 21:18:10 +08:00
|
|
|
|
2020-07-09 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-gc/gc.exp: Don't set -mminimal-toc for powerpc64,
|
|
|
|
|
and remove powerpc64 xfail. Use -fno-PIE for ppc32.
|
|
|
|
|
|
2020-07-09 15:05:27 +08:00
|
|
|
|
2020-07-09 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 18841
|
|
|
|
|
* testsuite/ld-ifunc/ifunc.exp: Run pr18841 tests non-pie.
|
|
|
|
|
|
powerpc-aix5.2 tests
git commit bbd0c8e20472 broke many of these tests, and there have been
other changes that caused failures too.
* testsuite/lib/ld-lib.exp (ar_simple_create): Pass options before
ar command.
* testsuite/ld-powerpc/aix52.exp: Run for rs6000-aix5.2. Update
match files.
* testsuite/ld-powerpc/aix-abs-branch-1.dd: Update.
* testsuite/ld-powerpc/aix-core-sec-1.hd: Update.
* testsuite/ld-powerpc/aix-gc-1-32.dd: Update.
* testsuite/ld-powerpc/aix-gc-1-64.dd: Update.
* testsuite/ld-powerpc/aix-glink-1-32.dd: Update.
* testsuite/ld-powerpc/aix-glink-1-64.dd: Update.
* testsuite/ld-powerpc/aix-glink-2-32.dd: Update.
* testsuite/ld-powerpc/aix-glink-2-64.dd: Update.
* testsuite/ld-powerpc/aix-no-dup-syms-1-rel.rd: Update.
* testsuite/ld-powerpc/aix-ref-1-32.od: Update.
* testsuite/ld-powerpc/aix-ref-1-64.od: Update.
* testsuite/ld-powerpc/aix-toc-1-32.dd: Update.
* testsuite/ld-powerpc/aix-toc-1-64.dd: Update.
* testsuite/ld-powerpc/aix-weak-3-32.dd: Update.
* testsuite/ld-powerpc/aix-weak-3-64.dd: Update.
* testsuite/ld-powerpc/aix-abs-branch-1.nd: Delete, replace with..
* testsuite/ld-powerpc/aix-abs-branch-1-32.nd,
* testsuite/ld-powerpc/aix-abs-branch-1-64.nd: ..these new files.
* testsuite/ld-powerpc/aix-abs-reloc-1.nd: Delete, replace with..
* testsuite/ld-powerpc/aix-abs-reloc-1-32.nd,
* testsuite/ld-powerpc/aix-abs-reloc-1-64.nd: ..these new files.
* testsuite/ld-powerpc/aix-abs-reloc-1.od: Delete, replace with..
* testsuite/ld-powerpc/aix-abs-reloc-1-32.od,
* testsuite/ld-powerpc/aix-abs-reloc-1-64.od: ..these new files.
* testsuite/ld-powerpc/aix-export-1-all.dd: Delete, replace with..
* testsuite/ld-powerpc/aix-export-1-all-32.dd,
* testsuite/ld-powerpc/aix-export-1-all-64.dd: ..these new files.
* testsuite/ld-powerpc/aix-export-1-full.dd: Delete, replace with..
* testsuite/ld-powerpc/aix-export-1-full-32.dd,
* testsuite/ld-powerpc/aix-export-1-full-64.dd: ..these new files.
* testsuite/ld-powerpc/aix-export-2.nd: Delete, replace with..
* testsuite/ld-powerpc/aix-export-2-32.nd,
* testsuite/ld-powerpc/aix-export-2-64.nd: ..these new files.
* testsuite/ld-powerpc/aix-gc-1.nd: Delete, replace with..
* testsuite/ld-powerpc/aix-gc-1-32.nd,
* testsuite/ld-powerpc/aix-gc-1-64.nd: ..these new files.
* testsuite/ld-powerpc/aix-glink-3.dd: Delete, replace with..
* testsuite/ld-powerpc/aix-glink-3-32.dd,
* testsuite/ld-powerpc/aix-glink-3-64.dd: ..these new files.
* testsuite/ld-powerpc/aix-lineno-1a.dd: Delete, replace with..
* testsuite/ld-powerpc/aix-lineno-1a-32.dd,
* testsuite/ld-powerpc/aix-lineno-1a-64.dd: ..these new files.
* testsuite/ld-powerpc/aix-lineno-1a.nd: Delete, replace with..
* testsuite/ld-powerpc/aix-lineno-1a-32.nd,
* testsuite/ld-powerpc/aix-lineno-1a-64.nd: ..these new files.
* testsuite/ld-powerpc/aix-lineno-1b.dd: Delete, replace with..
* testsuite/ld-powerpc/aix-lineno-1b-32.dd,
* testsuite/ld-powerpc/aix-lineno-1b-64.dd: ..these new files.
* testsuite/ld-powerpc/aix-lineno-1b.nd: Delete, replace with..
* testsuite/ld-powerpc/aix-lineno-1b-32.nd,
* testsuite/ld-powerpc/aix-lineno-1b-64.nd: ..these new files.
* testsuite/ld-powerpc/aix-no-dup-syms-1-dso.dnd: Delete, replace with..
* testsuite/ld-powerpc/aix-no-dup-syms-1-dso-32.dnd,
* testsuite/ld-powerpc/aix-no-dup-syms-1-dso-64.dnd: ..these new files.
* testsuite/ld-powerpc/aix-no-dup-syms-1-dso.drd: Delete, replace with..
* testsuite/ld-powerpc/aix-no-dup-syms-1-dso-32.drd,
* testsuite/ld-powerpc/aix-no-dup-syms-1-dso-64.drd: ..these new files.
* testsuite/ld-powerpc/aix-no-dup-syms-1-dso.nd: Delete, replace with..
* testsuite/ld-powerpc/aix-no-dup-syms-1-dso-32.nd,
* testsuite/ld-powerpc/aix-no-dup-syms-1-dso-64.nd: ..these new files.
* testsuite/ld-powerpc/aix-no-dup-syms-1-dso.rd: Delete, replace with..
* testsuite/ld-powerpc/aix-no-dup-syms-1-dso-32.rd,
* testsuite/ld-powerpc/aix-no-dup-syms-1-dso-64.rd: ..these new files.
* testsuite/ld-powerpc/aix-weak-1-dso.dnd: Delete, replace with..
* testsuite/ld-powerpc/aix-weak-1-dso-32.dnd,
* testsuite/ld-powerpc/aix-weak-1-dso-64.dnd: ..these new files.
* testsuite/ld-powerpc/aix-weak-1-dso.hd: Delete, replace with..
* testsuite/ld-powerpc/aix-weak-1-dso-32.hd,
* testsuite/ld-powerpc/aix-weak-1-dso-64.hd: ..these new files.
* testsuite/ld-powerpc/aix-weak-1-dso.nd: Delete, replace with..
* testsuite/ld-powerpc/aix-weak-1-dso-32.nd,
* testsuite/ld-powerpc/aix-weak-1-dso-64.nd: ..these new files.
* testsuite/ld-powerpc/aix-weak-1-gcdso.dnd: Delete, replace with..
* testsuite/ld-powerpc/aix-weak-1-gcdso-32.dnd,
* testsuite/ld-powerpc/aix-weak-1-gcdso-64.dnd: ..these new files.
* testsuite/ld-powerpc/aix-weak-1-gcdso.hd: Delete, replace with..
* testsuite/ld-powerpc/aix-weak-1-gcdso-32.hd,
* testsuite/ld-powerpc/aix-weak-1-gcdso-64.hd: ..these new files.
* testsuite/ld-powerpc/aix-weak-1-gcdso.nd: Delete, replace with..
* testsuite/ld-powerpc/aix-weak-1-gcdso-32.nd,
* testsuite/ld-powerpc/aix-weak-1-gcdso-64.nd: ..these new files.
* testsuite/ld-powerpc/aix-weak-2a.nd: Delete, replace with..
* testsuite/ld-powerpc/aix-weak-2a-32.nd,
* testsuite/ld-powerpc/aix-weak-2a-64.nd: ..these new files.
* testsuite/ld-powerpc/aix-weak-2b.nd: Delete, replace with..
* testsuite/ld-powerpc/aix-weak-2b-32.nd,
* testsuite/ld-powerpc/aix-weak-2b-64.nd: ..these new files.
* testsuite/ld-powerpc/aix-weak-2c.nd: Delete, replace with..
* testsuite/ld-powerpc/aix-weak-2c-32.nd,
* testsuite/ld-powerpc/aix-weak-2c-64.nd: ..these new files.
* testsuite/ld-powerpc/aix-weak-2c.od: Delete, replace with..
* testsuite/ld-powerpc/aix-weak-2c-32.od,
* testsuite/ld-powerpc/aix-weak-2c-64.od: ..these new files.
2020-07-08 13:41:24 +08:00
|
|
|
|
2020-07-08 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/lib/ld-lib.exp (ar_simple_create): Pass options before
|
|
|
|
|
ar command.
|
|
|
|
|
* testsuite/ld-powerpc/aix52.exp: Run for rs6000-aix5.2. Update
|
|
|
|
|
match files.
|
|
|
|
|
* testsuite/ld-powerpc/aix-abs-branch-1.dd: Update.
|
|
|
|
|
* testsuite/ld-powerpc/aix-core-sec-1.hd: Update.
|
|
|
|
|
* testsuite/ld-powerpc/aix-gc-1-32.dd: Update.
|
|
|
|
|
* testsuite/ld-powerpc/aix-gc-1-64.dd: Update.
|
|
|
|
|
* testsuite/ld-powerpc/aix-glink-1-32.dd: Update.
|
|
|
|
|
* testsuite/ld-powerpc/aix-glink-1-64.dd: Update.
|
|
|
|
|
* testsuite/ld-powerpc/aix-glink-2-32.dd: Update.
|
|
|
|
|
* testsuite/ld-powerpc/aix-glink-2-64.dd: Update.
|
|
|
|
|
* testsuite/ld-powerpc/aix-no-dup-syms-1-rel.rd: Update.
|
|
|
|
|
* testsuite/ld-powerpc/aix-ref-1-32.od: Update.
|
|
|
|
|
* testsuite/ld-powerpc/aix-ref-1-64.od: Update.
|
|
|
|
|
* testsuite/ld-powerpc/aix-toc-1-32.dd: Update.
|
|
|
|
|
* testsuite/ld-powerpc/aix-toc-1-64.dd: Update.
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-3-32.dd: Update.
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-3-64.dd: Update.
|
|
|
|
|
* testsuite/ld-powerpc/aix-abs-branch-1.nd: Delete, replace with..
|
|
|
|
|
* testsuite/ld-powerpc/aix-abs-branch-1-32.nd,
|
|
|
|
|
* testsuite/ld-powerpc/aix-abs-branch-1-64.nd: ..these new files.
|
|
|
|
|
* testsuite/ld-powerpc/aix-abs-reloc-1.nd: Delete, replace with..
|
|
|
|
|
* testsuite/ld-powerpc/aix-abs-reloc-1-32.nd,
|
|
|
|
|
* testsuite/ld-powerpc/aix-abs-reloc-1-64.nd: ..these new files.
|
|
|
|
|
* testsuite/ld-powerpc/aix-abs-reloc-1.od: Delete, replace with..
|
|
|
|
|
* testsuite/ld-powerpc/aix-abs-reloc-1-32.od,
|
|
|
|
|
* testsuite/ld-powerpc/aix-abs-reloc-1-64.od: ..these new files.
|
|
|
|
|
* testsuite/ld-powerpc/aix-export-1-all.dd: Delete, replace with..
|
|
|
|
|
* testsuite/ld-powerpc/aix-export-1-all-32.dd,
|
|
|
|
|
* testsuite/ld-powerpc/aix-export-1-all-64.dd: ..these new files.
|
|
|
|
|
* testsuite/ld-powerpc/aix-export-1-full.dd: Delete, replace with..
|
|
|
|
|
* testsuite/ld-powerpc/aix-export-1-full-32.dd,
|
|
|
|
|
* testsuite/ld-powerpc/aix-export-1-full-64.dd: ..these new files.
|
|
|
|
|
* testsuite/ld-powerpc/aix-export-2.nd: Delete, replace with..
|
|
|
|
|
* testsuite/ld-powerpc/aix-export-2-32.nd,
|
|
|
|
|
* testsuite/ld-powerpc/aix-export-2-64.nd: ..these new files.
|
|
|
|
|
* testsuite/ld-powerpc/aix-gc-1.nd: Delete, replace with..
|
|
|
|
|
* testsuite/ld-powerpc/aix-gc-1-32.nd,
|
|
|
|
|
* testsuite/ld-powerpc/aix-gc-1-64.nd: ..these new files.
|
|
|
|
|
* testsuite/ld-powerpc/aix-glink-3.dd: Delete, replace with..
|
|
|
|
|
* testsuite/ld-powerpc/aix-glink-3-32.dd,
|
|
|
|
|
* testsuite/ld-powerpc/aix-glink-3-64.dd: ..these new files.
|
|
|
|
|
* testsuite/ld-powerpc/aix-lineno-1a.dd: Delete, replace with..
|
|
|
|
|
* testsuite/ld-powerpc/aix-lineno-1a-32.dd,
|
|
|
|
|
* testsuite/ld-powerpc/aix-lineno-1a-64.dd: ..these new files.
|
|
|
|
|
* testsuite/ld-powerpc/aix-lineno-1a.nd: Delete, replace with..
|
|
|
|
|
* testsuite/ld-powerpc/aix-lineno-1a-32.nd,
|
|
|
|
|
* testsuite/ld-powerpc/aix-lineno-1a-64.nd: ..these new files.
|
|
|
|
|
* testsuite/ld-powerpc/aix-lineno-1b.dd: Delete, replace with..
|
|
|
|
|
* testsuite/ld-powerpc/aix-lineno-1b-32.dd,
|
|
|
|
|
* testsuite/ld-powerpc/aix-lineno-1b-64.dd: ..these new files.
|
|
|
|
|
* testsuite/ld-powerpc/aix-lineno-1b.nd: Delete, replace with..
|
|
|
|
|
* testsuite/ld-powerpc/aix-lineno-1b-32.nd,
|
|
|
|
|
* testsuite/ld-powerpc/aix-lineno-1b-64.nd: ..these new files.
|
|
|
|
|
* testsuite/ld-powerpc/aix-no-dup-syms-1-dso.dnd: Delete, replace with..
|
|
|
|
|
* testsuite/ld-powerpc/aix-no-dup-syms-1-dso-32.dnd,
|
|
|
|
|
* testsuite/ld-powerpc/aix-no-dup-syms-1-dso-64.dnd: ..these new files.
|
|
|
|
|
* testsuite/ld-powerpc/aix-no-dup-syms-1-dso.drd: Delete, replace with..
|
|
|
|
|
* testsuite/ld-powerpc/aix-no-dup-syms-1-dso-32.drd,
|
|
|
|
|
* testsuite/ld-powerpc/aix-no-dup-syms-1-dso-64.drd: ..these new files.
|
|
|
|
|
* testsuite/ld-powerpc/aix-no-dup-syms-1-dso.nd: Delete, replace with..
|
|
|
|
|
* testsuite/ld-powerpc/aix-no-dup-syms-1-dso-32.nd,
|
|
|
|
|
* testsuite/ld-powerpc/aix-no-dup-syms-1-dso-64.nd: ..these new files.
|
|
|
|
|
* testsuite/ld-powerpc/aix-no-dup-syms-1-dso.rd: Delete, replace with..
|
|
|
|
|
* testsuite/ld-powerpc/aix-no-dup-syms-1-dso-32.rd,
|
|
|
|
|
* testsuite/ld-powerpc/aix-no-dup-syms-1-dso-64.rd: ..these new files.
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-1-dso.dnd: Delete, replace with..
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-1-dso-32.dnd,
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-1-dso-64.dnd: ..these new files.
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-1-dso.hd: Delete, replace with..
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-1-dso-32.hd,
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-1-dso-64.hd: ..these new files.
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-1-dso.nd: Delete, replace with..
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-1-dso-32.nd,
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-1-dso-64.nd: ..these new files.
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-1-gcdso.dnd: Delete, replace with..
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-1-gcdso-32.dnd,
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-1-gcdso-64.dnd: ..these new files.
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-1-gcdso.hd: Delete, replace with..
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-1-gcdso-32.hd,
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-1-gcdso-64.hd: ..these new files.
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-1-gcdso.nd: Delete, replace with..
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-1-gcdso-32.nd,
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-1-gcdso-64.nd: ..these new files.
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-2a.nd: Delete, replace with..
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-2a-32.nd,
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-2a-64.nd: ..these new files.
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-2b.nd: Delete, replace with..
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-2b-32.nd,
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-2b-64.nd: ..these new files.
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-2c.nd: Delete, replace with..
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-2c-32.nd,
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-2c-64.nd: ..these new files.
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-2c.od: Delete, replace with..
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-2c-32.od,
|
|
|
|
|
* testsuite/ld-powerpc/aix-weak-2c-64.od: ..these new files.
|
|
|
|
|
|
2020-07-07 20:23:03 +08:00
|
|
|
|
2020-07-07 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-scripts/section-match-1.d: xfail h8300.
|
|
|
|
|
|
2020-07-06 14:45:35 +08:00
|
|
|
|
2020-07-07 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-scripts/align.exp: Don't exclude xcoff. Pass
|
|
|
|
|
-bnogc ld option for xcoff.
|
|
|
|
|
* testsuite/ld-scripts/provide.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/data.exp: Pass -bnogc ld option for xcoff.
|
|
|
|
|
* testsuite/ld-scripts/default-script.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/defined.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/empty-address.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/expr.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/include.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/script.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/assign-loc.d: Don't exclude xcoff.
|
|
|
|
|
* testsuite/ld-scripts/defined3.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/defined4.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/pr18963.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/sane1.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/segment-start.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/include-1.d: Likewise, and relax text vma.
|
|
|
|
|
* testsuite/ld-scripts/defined5.d: Update xfail and comment.
|
|
|
|
|
* testsuite/ld-scripts/defined5.s: Tweak "defined" to be at
|
|
|
|
|
non-zero section offset.
|
|
|
|
|
* testsuite/ld-scripts/fill16.d: xfail for xcoff.
|
|
|
|
|
* testsuite/ld-scripts/provide-2.d: Accept more symbols.
|
|
|
|
|
* testsuite/ld-scripts/provide-4.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/provide-5.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/provide-6.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/provide-7.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/align.t: Accept xcoff mapped .text and .data.
|
|
|
|
|
* testsuite/ld-scripts/defined3.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/defined4.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/defined5.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/fill.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/include-subdata.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/provide-1.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/provide-2.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/provide-3.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/provide-4.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/provide-5.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/provide-6.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/provide-7.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/provide-8.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/assign-loc.t: Add required xcoff sections.
|
|
|
|
|
* testsuite/ld-scripts/sizeof.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/align2.t: Likewise, and mapped sections.
|
|
|
|
|
* testsuite/ld-scripts/align5.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/default-script.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/empty-address-1.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/empty-address-2a.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/empty-address-2b.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/empty-address-3a.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/empty-address-3b.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/empty-address-3c.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/include-sections.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/pr14962.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/sane1.t: Likewise.
|
|
|
|
|
|
2020-07-07 11:28:12 +08:00
|
|
|
|
2020-07-07 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-scripts/align.exp: Use is_pecoff_format.
|
|
|
|
|
* testsuite/ld-scripts/defined.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/provide.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/weak.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/empty-address.exp: Likewise. Reset LDFLAGS
|
|
|
|
|
on exit.
|
|
|
|
|
* testsuite/ld-scripts/expr.exp: Set LDFLAGS earlier, and with
|
|
|
|
|
--image-base for PE.
|
|
|
|
|
* testsuite/ld-scripts/include.exp: Set LDFLAGS for PE.
|
|
|
|
|
* testsuite/ld-scripts/script.exp: Use is_pecoff_format, and
|
|
|
|
|
set LDFLAGS as well as flags.
|
|
|
|
|
|
2020-07-07 11:11:55 +08:00
|
|
|
|
2020-07-07 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-checks/checks.exp: Use is_xcoff_format.
|
|
|
|
|
* testsuite/ld-powerpc/powerpc.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/print-memory-usage.exp: Likewise.
|
|
|
|
|
* testsuite/ld-srec/srec.exp: Likewise.
|
|
|
|
|
* testsuite/ld-undefined/require-defined.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/expr2.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/section-match-1.d: Only run for ELF.
|
|
|
|
|
* testsuite/ld-elfvers/vers.exp: Delete dead code.
|
|
|
|
|
* testsuite/ld-elfvsb/elfvsb.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elfweak/elfweak.exp: Likewise.
|
|
|
|
|
|
2020-07-07 08:47:21 +08:00
|
|
|
|
2020-07-07 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/aix.em (gld${EMULATION_NAME}_find_exp_assignment): Handle
|
|
|
|
|
etree_provided.
|
|
|
|
|
|
2020-07-07 07:55:38 +08:00
|
|
|
|
2020-07-07 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-sh/vxworks1-lib.rd: Update expected output.
|
|
|
|
|
* testsuite/ld-sh/vxworks4.d: Likewise.
|
|
|
|
|
|
2020-07-06 17:54:36 +08:00
|
|
|
|
2020-07-06 Yuri Chornoivan <yurchor@ukr.net>
|
|
|
|
|
|
|
|
|
|
PR 26204
|
|
|
|
|
* lexsup.c: Fix spelling mistake.
|
|
|
|
|
* po/ld.pot: Regenerate.
|
|
|
|
|
|
2020-07-06 17:43:35 +08:00
|
|
|
|
2020-07-06 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* po/bg.po: Updated Bulgarian translation.
|
|
|
|
|
* po/fr.po: Updated French translation.
|
|
|
|
|
* po/pt_BR.po: Updated Brazilian Portuguese translation.
|
|
|
|
|
* po/uk.po: Updated Ukranian translation.
|
|
|
|
|
|
2020-07-04 17:34:23 +08:00
|
|
|
|
2020-07-04 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
|
2020-07-04 17:16:22 +08:00
|
|
|
|
2020-07-04 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
Binutils 2.35 branch created.
|
|
|
|
|
|
2020-07-03 13:59:13 +08:00
|
|
|
|
2020-07-03 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 26028
|
|
|
|
|
* testsuite/ld-arm/arm-elf.exp (vxworks1): Pass --wide to readelf
|
|
|
|
|
when dumping relocs.
|
|
|
|
|
* testsuite/ld-i386/i386.exp (vxworks1): Likewise.
|
|
|
|
|
* testsuite/ld-sh/sh-vxworks.exp (vxworks1): Likewise.
|
|
|
|
|
* testsuite/ld-sparc/sparc.exp (vxworks1): Likewise.
|
|
|
|
|
* testsuite/ld-arm/vxworks1.rd: Adjust to suit.
|
|
|
|
|
* testsuite/ld-i386/vxworks1.rd: Adjust.
|
|
|
|
|
* testsuite/ld-sh/vxworks1.rd: Adjust.
|
|
|
|
|
* testsuite/ld-sparc/vxworks1.rd: Adjust.
|
|
|
|
|
|
2020-07-02 18:30:52 +08:00
|
|
|
|
2020-07-02 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR 26028
|
|
|
|
|
* testsuite/ld-powerpc/powerpc.exp: Add -T option to readelf
|
|
|
|
|
command line when running some tests.
|
|
|
|
|
* testsuite/ld-arm/arm-elf.exp: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/mips-elf.exp: 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-powerpc/powerpc.exp: Likewise.
|
|
|
|
|
|
2020-06-30 23:47:02 +08:00
|
|
|
|
2020-06-30 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (ALL_EMULATION_SOURCES): Remove eelf_i386_nacl.c,
|
|
|
|
|
eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c.
|
|
|
|
|
Remove x86 NaCl dep files.
|
|
|
|
|
* NEWS: Mention x86 NaCl target support removal.
|
|
|
|
|
* configure.tgt: Remove x86 NaCl target support.
|
|
|
|
|
* testsuite/ld-elf/binutils.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elf/elf.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elfvers/vers.exp: Likewise.
|
|
|
|
|
* testsuite/ld-i386/align-branch-1.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/export-class.exp: Likewise.
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Likewise.
|
|
|
|
|
* testsuite/ld-i386/load1.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pie1.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr12570a.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr12570b.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-1d.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-1l.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-2c.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-2d.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-2e.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20244-1a.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20244-1b.d: Likewise.
|
|
|
|
|
* 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-4a.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr20244-4b.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr21884.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/binutils.exp: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-10-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-10-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-11-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-11-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-12-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-12-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-13-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-13-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-14a-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-14a-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-14b-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-14b-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-14c-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-14c-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-14d-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-14d-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-14e-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-14e-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-14f-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-14f-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-15-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-15-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-16-i386-now.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-16-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-16-x86-64-now.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-16-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-17a-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-17a-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-17b-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-17b-x86-64.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-ifunc/ifunc-19a-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-19a-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-19b-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-19b-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-2-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-2-local-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-2-local-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-2-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-20-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-20-x86-64.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-ifunc/ifunc-5a-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-5a-local-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-5a-local-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-5a-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-5b-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-5b-local-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-5b-local-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-5b-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-5r-local-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-5r-local-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-6a-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-6a-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-6b-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-6b-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-7a-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-7a-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-7b-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-7b-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-8-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-8-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-9-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-9-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/pr17154-i386.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
|
|
|
|
|
* testsuite/ld-plugin/lto.exp: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/align-branch-1.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/dwarfreloc.exp: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/line.exp: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/load1a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/load1b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/load1c.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/load1d.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pie3.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr18160.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19013-x32.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19013.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-2d.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-2l.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-1b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-1d.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-1f.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-1h.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-1j.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr20253-1l.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr21884.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsgd10.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsgd5.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsgd8.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Likewise.
|
|
|
|
|
* emulparams/elf32_x86_64_nacl.sh: Removed.
|
|
|
|
|
* emulparams/elf_i386_nacl.sh: Likewise.
|
|
|
|
|
* emulparams/elf_x86_64_nacl.sh: Likewise.
|
|
|
|
|
* testsuite/ld-i386/emit-relocs-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/load1-nacl.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pie1-nacl.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/plt-nacl.pd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/plt-pic-nacl.pd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr17709-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-1d-nacl.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-2c-nacl.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-2d-nacl.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-2e-nacl.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19827-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr21884-nacl.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr21884-nacl.t: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsbin-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsbin2-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsbindesc-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsdesc-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsgdesc-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlsnopic-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlspic-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-i386/tlspic2-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/ilp32-4-nacl.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/load1a-nacl.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/load1b-nacl.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/load1c-nacl.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/load1d-nacl.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pie3-nacl.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/plt-nacl.pd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr17709-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19013-nacl.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-2d-nacl.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19827-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr21884-nacl.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr21884-nacl.t: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/split-by-file-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsbin-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsbin2-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsbindesc-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsdesc-nacl.pd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsdesc-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlsgdesc-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlspic-nacl.rd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/tlspic2-nacl.rd: Likewise.
|
|
|
|
|
* Makefile.in: Regenerated.
|
|
|
|
|
* po/BLD-POTFILES.in: Likewise.
|
|
|
|
|
|
2020-06-30 12:42:49 +08:00
|
|
|
|
2020-06-30 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/group1.d: Don't xfail all solaris targets, just
|
|
|
|
|
ix86 and x86_64.
|
|
|
|
|
|
2020-06-30 12:17:32 +08:00
|
|
|
|
2020-06-30 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/reloc-discard.d: Don't xfail nds32.
|
|
|
|
|
|
2020-06-30 11:52:52 +08:00
|
|
|
|
2020-06-30 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* scripttempl/elfmicroblaze.sc (.data): Add .data.* entry.
|
|
|
|
|
* testsuite/ld-elf/var1.d: Don't xfail microblaze.
|
|
|
|
|
|
2020-06-29 20:52:22 +08:00
|
|
|
|
2020-06-29 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-tic6x/shlib-1.rd: Move C6000_DSBT_BASE,
|
|
|
|
|
C6000_DSBT_SIZE and C6000_DSBT_INDEX dynamic tags to the last.
|
|
|
|
|
* 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.
|
|
|
|
|
|
2020-06-29 08:34:11 +08:00
|
|
|
|
2020-06-29 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-x86-64/abs-k1om.d: Run only on x86_64-*-linux*.
|
|
|
|
|
* testsuite/ld-x86-64/protected2-k1om.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/protected3-k1om.d: Likewise.
|
|
|
|
|
|
2019-09-30 22:04:05 +08:00
|
|
|
|
2020-06-26 Nick Alcock <nick.alcock@oracle.com>
|
|
|
|
|
|
|
|
|
|
* configure.ac [--enable-libctf]: New, default yes.
|
|
|
|
|
Set ENABLE_LIBCTF accordingly.
|
|
|
|
|
* Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
* config.in: Regenerate.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* aclocal.m4: Regenerate.
|
|
|
|
|
* ldlang.c (ctf_output): Conditionalize on ENABLE_LIBCTF.
|
|
|
|
|
(ldlang_open_ctf): Likewise.
|
|
|
|
|
(lang_merge_ctf): Likewise.
|
|
|
|
|
(ldlang_ctf_apply_strsym): Likewise.
|
|
|
|
|
(lang_write_ctf): Likewise.
|
|
|
|
|
(ldlang_write_ctf_late): Likewise.
|
|
|
|
|
(ldlang_open_ctf) [!ENABLE_LIBCTF]: Warn about the presence of CTF
|
|
|
|
|
sections.
|
|
|
|
|
(lang_merge_ctf) [!ENABLE_LIBCTF]: New stub.
|
|
|
|
|
(ldlang_ctf_apply_strsym) [!ENABLE_LIBCTF]: Likewise.
|
|
|
|
|
(lang_write_ctf) [!ENABLE_LIBCTF]: Likewise.
|
|
|
|
|
(ldlang_write_ctf_late) [!ENABLE_LIBCTF]: Likewise.
|
|
|
|
|
* ldelfgen.c (ldelf_emit_ctf_early): Conditionalize on
|
|
|
|
|
ENABLE_LIBCTF.
|
|
|
|
|
(struct ctf_strsym_iter_cb_arg): Likewise.
|
|
|
|
|
(ldelf_ctf_strtab_iter_cb): Likewise.
|
|
|
|
|
(ldelf_ctf_symbols_iter_cb): Likewise.
|
|
|
|
|
(ldelf_examine_strtab_for_ctf): Likewise.
|
|
|
|
|
(ldelf_emit_ctf_early) [!ENABLE_LIBCTF]: New stub.
|
|
|
|
|
(ldelf_examine_strtab_for_ctf) [!ENABLE_LIBCTF]: New stub.
|
|
|
|
|
|
2020-06-26 22:43:38 +08:00
|
|
|
|
2020-06-26 Jan Beulich <jbeulich@suse.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Run K1OM tests.
|
|
|
|
|
|
2020-06-26 04:05:38 +08:00
|
|
|
|
2020-06-26 Pat Bernardi <bernardi@adacore.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-m68k/attr-gnu-4-0.s: New file.
|
|
|
|
|
* testsuite/ld-m68k/attr-gnu-4-1.s: Likewise.
|
|
|
|
|
* testsuite/ld-m68k/attr-gnu-4-2.s: Likewise.
|
|
|
|
|
* testsuite/ld-m68k/attr-gnu-4-00.d: Likewise.
|
|
|
|
|
* testsuite/ld-m68k/attr-gnu-4-01.d: Likewise.
|
|
|
|
|
* testsuite/ld-m68k/attr-gnu-4-02.d: Likewise.
|
|
|
|
|
* testsuite/ld-m68k/attr-gnu-4-10.d: Likewise.
|
|
|
|
|
* testsuite/ld-m68k/attr-gnu-4-11.d: Likewise.
|
|
|
|
|
* testsuite/ld-m68k/attr-gnu-4-12.d: Likewise.
|
|
|
|
|
* testsuite/ld-m68k/attr-gnu-4-20.d: Likewise.
|
|
|
|
|
* testsuite/ld-m68k/attr-gnu-4-21.d: Likewise.
|
|
|
|
|
* testsuite/ld-m68k/attr-gnu-4-22.d: Likewise.
|
|
|
|
|
* testsuite/ld-m68k/m68k.exp: Run the new tests.
|
|
|
|
|
|
2020-06-24 21:39:03 +08:00
|
|
|
|
2020-06-24 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/26165
|
|
|
|
|
* lexsup.c (ld_options): Correct --dependency-file order.
|
|
|
|
|
|
2020-06-24 21:14:18 +08:00
|
|
|
|
2020-06-24 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/26083
|
|
|
|
|
* testsuite/ld-csky/tls-ie-v1.d: Updated.
|
|
|
|
|
* testsuite/ld-csky/tls-ie.d: Likewise.
|
|
|
|
|
|
2020-06-24 19:00:19 +08:00
|
|
|
|
2020-06-24 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/26083
|
|
|
|
|
* testsuite/ld-cris/libdso-15b.d: Updated.
|
|
|
|
|
* testsuite/ld-cris/libdso-1c.d: Likewise.
|
|
|
|
|
* testsuite/ld-cris/libdso-1d.d: Likewise.
|
|
|
|
|
* testsuite/ld-cris/libdso-15c.d: New file.
|
|
|
|
|
|
2020-06-24 18:56:05 +08:00
|
|
|
|
2020-06-24 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/26163
|
|
|
|
|
* ldexp.c (exp_fold_tree_1): Set non_ir_ref_regular on the source
|
|
|
|
|
for assignment.
|
|
|
|
|
* testsuite/ld-plugin/lto.exp: Run ld/26163 test.
|
|
|
|
|
* testsuite/ld-plugin/pr26163a.c: New file.
|
|
|
|
|
* testsuite/ld-plugin/pr26163b.c: Likewise.
|
|
|
|
|
|
2020-06-24 12:47:38 +08:00
|
|
|
|
2020-06-24 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* lexsup.c (elf_shlib_list_options): Properly format help message.
|
|
|
|
|
(elf_plt_unwind_list_options): Likewise.
|
|
|
|
|
* emultempl/cskyelf.em (PARSE_AND_LIST_OPTIONS): Likewise.
|
|
|
|
|
|
2020-06-24 03:01:24 +08:00
|
|
|
|
2020-06-23 Roland McGrath <mcgrathr@google.com>
|
|
|
|
|
|
|
|
|
|
PR 22843
|
|
|
|
|
* NEWS: Note --dependency-file.
|
|
|
|
|
* ld.texi (Options): Document --dependency-file.
|
|
|
|
|
* ldlex.h (enum option_values): Add OPTION_DEPENDENCY_FILE.
|
|
|
|
|
* ld.h (ld_config_type): New member dependency_file.
|
|
|
|
|
* lexsup.c (ld_options, parse_args): Parse --dependency-file.
|
|
|
|
|
* ldmain.c (struct dependency_file): New type.
|
|
|
|
|
(dependency_files, dependency_files_tail): New static variables.
|
|
|
|
|
(track_dependency_files): New function.
|
|
|
|
|
(write_dependency_file): New function.
|
|
|
|
|
(main): Call it when --dependency-file was passed.
|
|
|
|
|
* ldfile.c (ldfile_try_open_bfd): Call track_dependency_files.
|
|
|
|
|
(ldfile_open_command_file_1): Likewise.
|
|
|
|
|
* ldelf.c (ldelf_try_needed): Likewise.
|
|
|
|
|
* pe-dll.c (pe_implied_import_dll): Likewise.
|
|
|
|
|
|
2020-06-23 22:20:56 +08:00
|
|
|
|
2020-06-23 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 26150
|
|
|
|
|
* ldlang.c (ldlang_add_file): Assert that we aren't adding the
|
|
|
|
|
current end of link.next list again too.
|
|
|
|
|
* ldmain.c (add_archive_element): Don't load archive elements
|
|
|
|
|
again that have already been loaded.
|
|
|
|
|
|
2020-06-22 10:20:46 +08:00
|
|
|
|
2020-06-23 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/shared.exp (pr14170): Clear xfail for
|
|
|
|
|
bfin-*-linux*.
|
|
|
|
|
(pr17068, symbolic-func.so, pr22374): Likewise.
|
|
|
|
|
|
RISC-V: Report warning when linking the objects with different priv specs.
We do know some conflicts among different privileged specs. For linker,
the safest approach is that don't allow the object linked with others which
may cause conflicts. But this may cause inconvenience since not all objects
with conflicting priv specs are linked will cause problems. But it is hard
to know the detailed conflict cases for linker, so we probably need a option
to tell linker that we do know there are no conflicts, or we are willing to
take risks to link the objects with conflicted priv specs. But the option
is still under discussion.
Therefore, we can report warnings rather than errors when linking the objects
with conflicted priv specs. This not only makes the linker more flexible,
but also warns people that the conflicts may happen. We also need to update
the output priv spec version once the input priv spec is newer.
bfd/
* elfxx-riscv.c (struct priv_spec_t priv_specs[]): Move them from
opcodes/riscv-opc.c to bfd/elfxx-riscv.c, since we need it in linker.
(riscv_get_priv_spec_class): Likewise.
(riscv_get_priv_spec_name): Likewise.
(riscv_get_priv_spec_class_from_numbers): New function, convert
the version numbers into string, then call riscv_get_priv_spec_class
to get the priv spec class.
* elfxx-riscv.h (riscv_get_priv_spec_class): Move forward declaration
from include/opcode/riscv.h to bfd/elfxx-riscv.h.
(riscv_get_priv_spec_name): Likewise.
(riscv_get_priv_spec_class_from_numbers): New forward declaration.
(opcode/riscv.h): Include it in the header rather than elfxx-riscv.c.
* elfnn-riscv.c (riscv_merge_attributes): Get the priv spec classes
of input and output objects form their priv spec attributes by
riscv_get_priv_spec_class_from_numbers. Report warning rather than
errors when linking objects with differnet priv spec versions. We do
know v1.9.1 may have conflicts to other versions, so report the
warning, too. After that, update the output priv spec version to the
newest one so far.
gas/
* config/tc-riscv.c (buf_size, buf): Remove the unused variables.
(riscv_set_default_priv_spec): Get the priv spec version from the
priv spec attributes by riscv_get_priv_spec_class_from_numbers.
include/
* opcode/riscv.h (riscv_get_priv_spec_class): Move the function
forward declarations to bfd/elfxx-riscv.h.
(riscv_get_priv_spec_name): Likewise.
opcodes/
* riscv-opc.c: Move the structures and functions to bfd/elfxx-riscv.c.
* riscv-dis.c: Include elfxx-riscv.h.
ld/
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Updated.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Updated.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Updated.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Updated.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Updated.
2020-06-12 23:06:49 +08:00
|
|
|
|
2020-06-22 Nelson Chu <nelson.chu@sifive.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Updated.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Updated.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Updated.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Updated.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Updated.
|
|
|
|
|
|
2020-06-21 12:53:46 +08:00
|
|
|
|
2020-06-21 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ldfile.c: Replace uses of ENABLE_PLUGINS with BFD_SUPPORTS_PLUGINS.
|
|
|
|
|
* ldlang.c: Likewise.
|
|
|
|
|
* ldlang.h: Likewise.
|
|
|
|
|
* ldlex.h: Likewise.
|
|
|
|
|
* ldmain.c: Likewise.
|
|
|
|
|
* lexsup.c: Likewise.
|
|
|
|
|
* plugin.c: Wrap body of file in #if BFD_SUPPORTS_PLUGINS.
|
|
|
|
|
* testplug.c: Likewise.
|
|
|
|
|
* testplug2.c: Likewise.
|
|
|
|
|
* testplug3.c: Likewise.
|
|
|
|
|
* testplug4.c: Likewise.
|
|
|
|
|
* configure.ac (ENABLE_PLUGINS): Don't define AM_CONTITIONAL.
|
|
|
|
|
* Makefile.am: Remove ENABLE_PLUGINS conditionals.
|
|
|
|
|
(PLUGIN_CFLAGS): Don't define.
|
|
|
|
|
(PLUGIN_C, PLUGIN_H, PLUGIN_OBJECT): Likewise. Substitute all
|
|
|
|
|
uses with plugin file name.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2020-06-20 14:23:37 +08:00
|
|
|
|
2020-06-20 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/lib/ld-lib.exp (default_ld_compile): Don't perror on
|
|
|
|
|
a compiler error.
|
|
|
|
|
(default_ld_assemble): Similarly for an assembler error.
|
|
|
|
|
(default_ld_nm): Similarly for an nm error.
|
|
|
|
|
(run_ld_link_tests): Report ld_assemble errors as a fail.
|
|
|
|
|
(check_as_cfi): Remove now unnecessary perror substitution.
|
|
|
|
|
* testsuite/ld-elf/exclude.exp: Report ld_nm error return as test
|
|
|
|
|
fails rather then unresolved.
|
|
|
|
|
* testsuite/ld-gc/gc.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/alignof.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/defined.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/script.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/sizeof.exp: Likewise.
|
|
|
|
|
* testsuite/ld-selective/selective.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/extern.exp: Likewise. Return on ld_link
|
|
|
|
|
failure.
|
|
|
|
|
* testsuite/ld-elfweak/elfweak.exp: Report compiler errors as
|
|
|
|
|
test unresolved.
|
|
|
|
|
* testsuite/ld-fastcall/fastcall.exp: Report assember errors as
|
|
|
|
|
test fails.
|
|
|
|
|
* testsuite/ld-i386/i386.exp (iamcu_tests): Likewise.
|
|
|
|
|
* testsuite/ld-ia64/line.exp: Likewise.
|
|
|
|
|
* testsuite/ld-mep/mep.exp: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
|
|
|
|
|
* testsuite/ld-nios2/nios2.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/alignof.exp: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/line.exp: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/log2.exp: Formatting.
|
|
|
|
|
* testsuite/ld-tic6x/tic6x.exp: Report ld_link errors as a test fail.
|
|
|
|
|
|
2020-06-20 09:17:32 +08:00
|
|
|
|
2020-06-20 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-alpha/alpha.exp: Exclude *ecoff targets.
|
|
|
|
|
* testsuite/ld-elf/binutils.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elf/tls.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elf/tls_common.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/phdrs2.exp: Likewise.
|
|
|
|
|
|
2020-06-20 09:11:40 +08:00
|
|
|
|
2020-06-20 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-sh/sh.exp: Don't run relax tests for non-ELF.
|
|
|
|
|
Fail when ld_assemble fails. Use elseif to reduce indentation.
|
|
|
|
|
|
2020-06-19 08:30:30 +08:00
|
|
|
|
2020-06-19 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/dynamic-1.rd: Accept st_other notations.
|
|
|
|
|
* testsuite/ld-elf/rdynamic-1.rd: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr9676.rd: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr9679.rd: Likewise.
|
|
|
|
|
* testsuite/ld-elfvers/vers30.dsym: Likewise.
|
|
|
|
|
* testsuite/ld-elfvers/vers31.dsym: Likewise.
|
2020-06-19 11:26:12 +08:00
|
|
|
|
* testsuite/ld-plugin/pr22983.1.d: Likewise.
|
|
|
|
|
* testsuite/ld-plugin/pr22983.2.d: Likewise.
|
2020-06-19 08:30:30 +08:00
|
|
|
|
* testsuite/ld-plugin/pr22983.3.d: Likewise.
|
2020-06-19 11:26:12 +08:00
|
|
|
|
* testsuite/ld-plugin/pr22983.4.d: Likewise.
|
2020-06-19 08:30:30 +08:00
|
|
|
|
* testsuite/ld-ifunc/ifunc.exp: Exclude alpha.
|
|
|
|
|
|
2020-06-19 07:47:20 +08:00
|
|
|
|
2020-06-19 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/elf.em (gld${EMULATION_NAME}_handle_option): Omit
|
|
|
|
|
-z relro and -z norelro when target support for GNU_RELRO is lacking.
|
|
|
|
|
(gld${EMULATION_NAME}_before_parse): Ignore RELRO default too.
|
|
|
|
|
* emultempl/aarch64elf.em (gld${EMULATION_NAME}_before_parse): Ignore
|
|
|
|
|
RELRO default when target support for GNU_RELRO is lacking.
|
|
|
|
|
* emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
|
|
|
|
|
* emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Likewise.
|
|
|
|
|
* emultempl/scoreelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
|
|
|
|
|
* testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
|
|
|
|
|
* testsuite/ld-elf/pr16322.d: xfail when no relro support.
|
|
|
|
|
* testsuite/ld-elf/pr22393-1a.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr22393-1b.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/shared.exp (pr20995-2.so, pr20995-2): Likewise.
|
|
|
|
|
* testsuite/lib/ld-lib.exp (run_ld_link_tests): Use check_relro_support
|
|
|
|
|
to decide whether to pass extra ld option "-z norelro".
|
|
|
|
|
|
2020-06-17 22:53:19 +08:00
|
|
|
|
2020-06-17 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/linux-x86.exp (check_pr25749a): Append "-w"
|
|
|
|
|
to cflags.
|
|
|
|
|
|
2020-06-17 22:39:11 +08:00
|
|
|
|
2020-06-17 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/linux-x86.exp: Require GCC 5 for Build
|
|
|
|
|
pr25749-1b (-pie -fPIE).
|
|
|
|
|
|
2020-06-16 20:16:00 +08:00
|
|
|
|
2020-06-16 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/pr23428.c: Define _DEFAULT_SOURCE.
|
|
|
|
|
* testsuite/ld-elf/indirect1b.c: Replace asm with __asm__.
|
|
|
|
|
* testsuite/ld-elf/indirect2.c: Likewise.
|
|
|
|
|
* testsuite/ld-elf/indirect3b.c: Likewise.
|
|
|
|
|
* testsuite/ld-elf/indirect4b.c: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr14323-2.c: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr18720b.c: Likewise.
|
2020-06-16 21:09:44 +08:00
|
|
|
|
* testsuite/ld-elf/pr19553c.c: Likewise.
|
2020-06-16 20:16:00 +08:00
|
|
|
|
* testsuite/ld-elf/pr23428.c: Likewise.
|
2020-06-16 21:09:44 +08:00
|
|
|
|
* testsuite/ld-elfvers/vers27b.c: Likewise.
|
2020-06-16 20:16:00 +08:00
|
|
|
|
* testsuite/ld-elfvsb/common.c: Likewise.
|
|
|
|
|
* testsuite/ld-elfvsb/main.c: Likewise.
|
|
|
|
|
* testsuite/ld-elfvsb/sh1.c: Likewise.
|
|
|
|
|
* testsuite/ld-elfvsb/test.c: Likewise.
|
|
|
|
|
* testsuite/ld-pe/aligncomm-1.c: Likewise.
|
|
|
|
|
* testsuite/ld-pe/aligncomm-2.c: Likewise.
|
|
|
|
|
* testsuite/ld-pe/aligncomm-3.c: Likewise.
|
|
|
|
|
* testsuite/ld-pe/aligncomm-4.c: Likewise.
|
|
|
|
|
* testsuite/ld-plugin/pr23958.c: Likewise.
|
|
|
|
|
* testsuite/ld-size/size-1b.c: Likewise.
|
|
|
|
|
* testsuite/ld-size/size-2b.c: Likewise.
|
|
|
|
|
* testsuite/ld-size/size-3a.c: Likewise.
|
|
|
|
|
* testsuite/ld-size/size-3b.c: Likewise.
|
|
|
|
|
* testsuite/ld-size/size-3c.c: Likewise.
|
|
|
|
|
* testsuite/ld-size/size-4b.c: Likewise.
|
|
|
|
|
* testsuite/ld-size/size-5b.c: Likewise.
|
|
|
|
|
* testsuite/ld-size/size-6a.c: Likewise.
|
|
|
|
|
* testsuite/ld-size/size-7a.c: Likewise.
|
|
|
|
|
* testsuite/ld-size/size-8a.c: Likewise.
|
|
|
|
|
* testsuite/ld-size/size-9b.c: Likewise.
|
|
|
|
|
* testsuite/ld-size/size-10b.c: Likewise.
|
|
|
|
|
|
2020-06-16 10:43:05 +08:00
|
|
|
|
2020-06-16 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/tic30aout.sh: Delete file.
|
|
|
|
|
* scripttempl/tic30aout.sc: Delete file.
|
|
|
|
|
* Makefile.am: Remove etic30aout.c from ALL_EMULATION_SOURCES and
|
|
|
|
|
delete dependency.
|
|
|
|
|
* configure.tgt: Delete tic30-*-*aout* entry.
|
|
|
|
|
* testsuite/ld-scripts/sane1.d: Delete tic30-*-aout mention.
|
|
|
|
|
* testsuite/ld-scripts/segment-start.d: Likewise.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* po/BLD-POTFILES.in: Regenerate.
|
|
|
|
|
|
2020-05-10 23:03:08 +08:00
|
|
|
|
2020-06-15 Max Filippov <jcmvbkbc@gmail.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/xtensaelf.em (XSHAL_ABI): Remove macro definition.
|
|
|
|
|
(XTHAL_ABI_UNDEFINED, XTHAL_ABI_WINDOWED, XTHAL_ABI_CALL0): New
|
|
|
|
|
macros.
|
|
|
|
|
(elf32xtensa_abi): New declaration.
|
|
|
|
|
(xt_config_info_unpack_and_check): Set elf32xtensa_abi if it is
|
|
|
|
|
undefined. Use xtensa_abi_choice instead of XSHAL_ABI to test
|
|
|
|
|
ABI tag consistency.
|
|
|
|
|
(xtensa_add_config_info): Use xtensa_abi_choice instead of
|
|
|
|
|
XSHAL_ABI to format ABI tag.
|
|
|
|
|
(PARSE_AND_LIST_PROLOGUE): Define OPTION_ABI_WINDOWED,
|
|
|
|
|
OPTION_ABI_CALL0 and declare elf32xtensa_abi.
|
|
|
|
|
(PARSE_AND_LIST_LONGOPTS): Add entries for --abi-windowed and
|
|
|
|
|
--abi-call0.
|
|
|
|
|
(PARSE_AND_LIST_OPTIONS): Add help text for --abi-windowed and
|
|
|
|
|
--abi-call0.
|
|
|
|
|
(PARSE_AND_LIST_ARGS_CASES): Add handlers for --abi-windowed and
|
|
|
|
|
--abi-call0.
|
|
|
|
|
* ld.texi: Add description for options --abi-windowed and
|
|
|
|
|
--abi-call0.
|
|
|
|
|
|
2020-06-16 02:45:02 +08:00
|
|
|
|
2020-06-15 Roland McGrath <mcgrathr@google.com>
|
|
|
|
|
|
|
|
|
|
* NEWS: Mention -z start-stop-visibility=... option for ELF.
|
|
|
|
|
* ld.texi (Options): Document -z start-stop-visibility=... option.
|
|
|
|
|
* ldmain.c (main): Initialize link_info.start_stop_visibility.
|
|
|
|
|
* emultempl/elf.em (gld${EMULATION_NAME}_handle_option):
|
|
|
|
|
Parse -z start-stop-visibility=... option.
|
|
|
|
|
|
2020-06-15 11:28:26 +08:00
|
|
|
|
2020-06-15 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-scripts/include.exp: Don't load ld-lib.exp.
|
|
|
|
|
* testsuite/ld-scripts/phdrs3.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/rgn-at.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/rgn-over.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/sort.exp: Likewise.
|
|
|
|
|
* testsuite/ld-discard/discard.exp: Likewise. Use is_elf_format.
|
|
|
|
|
|
2020-06-15 10:41:27 +08:00
|
|
|
|
2020-06-15 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 26103
|
|
|
|
|
* testsuite/ld-linkonce/ref1.s,
|
|
|
|
|
* testsuite/ld-linkonce/ref2.s,
|
|
|
|
|
* testsuite/ld-linkonce/sym1.s,
|
|
|
|
|
* testsuite/ld-linkonce/sym2.s,
|
|
|
|
|
* testsuite/ld-linkonce/sym3.s: New test files.
|
|
|
|
|
* testsuite/ld-linkonce/linkonce.exp: Run tests for PE too.
|
|
|
|
|
Add pr26103 test. Remove unnecessary load_lib.
|
|
|
|
|
|
2020-06-15 10:38:33 +08:00
|
|
|
|
2020-06-15 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-linkonce/zeroeh_x.s: Rename from x.s.
|
|
|
|
|
* testsuite/ld-linkonce/zeroeh_y.s: Rename from y.s.
|
|
|
|
|
* testsuite/ld-linkonce/zeroehl32.d: Adjust for renaming. Support
|
|
|
|
|
big-endian output. Run for powerpc.
|
|
|
|
|
|
2020-06-11 16:23:30 +08:00
|
|
|
|
2020-06-11 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-plugin/lto.exp (lto_link_tests): Move lto-6,
|
|
|
|
|
pr12760, pr23818 and pr23958 tests to..
|
|
|
|
|
(lto_link_elf_tests): ..here.
|
|
|
|
|
|
2020-06-11 16:27:41 +08:00
|
|
|
|
2020-06-11 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/pr26094-1b.c (main): Change return type to
|
|
|
|
|
int.
|
|
|
|
|
|
2020-06-10 11:38:15 +08:00
|
|
|
|
2020-06-10 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/linux-x86.exp: Build tests when non-native.
|
|
|
|
|
(check_pr25749b): Add optional args. Set expected pass file
|
|
|
|
|
from args. Run -1b and -2a tests with passall.out.
|
|
|
|
|
* testsuite/ld-elf/passall.out: New file.
|
|
|
|
|
* testsuite/ld-elf/pr25749-1.c: Adjust to pass with older glibc.
|
|
|
|
|
* testsuite/ld-elf/pr25749-2.c: Likewise.
|
|
|
|
|
* testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Use
|
|
|
|
|
regexp_diff to compare expected output from running binary.
|
|
|
|
|
|
2020-06-10 20:31:19 +08:00
|
|
|
|
2020-06-10 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/26094
|
|
|
|
|
* testsuite/ld-elf/pr26094-1.ver: New fike.
|
|
|
|
|
* testsuite/ld-elf/pr26094-1a.c: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr26094-1a.rd: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr26094-1b.c: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr26094-1b.rd: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr26094-1c.c: Likewise.
|
|
|
|
|
* testsuite/ld-elf/shared.exp: Run ld/26094 tests.
|
|
|
|
|
|
2020-06-09 21:56:55 +08:00
|
|
|
|
2020-06-09 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/18801
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Run ifunc-textrel-1a,
|
|
|
|
|
ifunc-textrel-1b, ifunc-textrel-2a and ifunc-textrel-2b.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Likewise.
|
|
|
|
|
* testsuite/ld-i386/ifunc-textrel-1a.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/ifunc-textrel-1b.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/ifunc-textrel-2a.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/ifunc-textrel-2b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/ifunc-textrel-1.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/ifunc-textrel-1a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/ifunc-textrel-1b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/ifunc-textrel-2.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/ifunc-textrel-2a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/ifunc-textrel-2b.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr18801a.d: Expect warning for IFUNC
|
|
|
|
|
resolvers.
|
|
|
|
|
* testsuite/ld-i386/pr18801b.d: Likewise.
|
|
|
|
|
* estsuite/ld-x86-64/pr18801a.d: Likewise.
|
|
|
|
|
* estsuite/ld-x86-64/pr18801b.d: Likewise.
|
|
|
|
|
|
2020-06-09 15:32:12 +08:00
|
|
|
|
2020-06-09 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 26065
|
|
|
|
|
* testsuite/ld-elf/shared.exp: Compile dl4main.c -fPIC.
|
|
|
|
|
(dl4e, dl4f): Expect dl4a.out.
|
|
|
|
|
* testsuite/ld-elf/dl4e.out: Delete.
|
|
|
|
|
|
2020-06-08 05:48:13 +08:00
|
|
|
|
2020-06-07 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/shared.exp: Pass $LFLAGS to PR ld/21703
|
|
|
|
|
shared test.
|
|
|
|
|
|
2020-06-08 02:52:01 +08:00
|
|
|
|
2020-06-07 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/shared.exp: Xfail pr20995/pr20995-2 for
|
|
|
|
|
tic6x-*-*.
|
|
|
|
|
|
2020-06-07 23:47:02 +08:00
|
|
|
|
2020-06-07 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/pr11304.d: Skip tic6x-*-elf.
|
|
|
|
|
|
2020-06-06 10:28:09 +08:00
|
|
|
|
2020-06-06 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/comm-data.exp: Don't xfail arm or bfin-linux.
|
|
|
|
|
|
2020-06-06 09:58:08 +08:00
|
|
|
|
2020-06-06 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* lexsup.c (ld_options): Accept -plugin and -plugin-opt when
|
|
|
|
|
!ENABLE_PLUGINS.
|
|
|
|
|
* testsuite/lib/ld-lib.exp (check_plugin_api_available): Adjust.
|
|
|
|
|
|
2020-05-29 16:56:36 +08:00
|
|
|
|
2020-06-05 Nelson Chu <nelson.chu@sifive.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Rename to
|
|
|
|
|
attr-merge-priv-spec-01.d.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-priv-spec-c.s: Set spec to 1.11.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-priv-spec-d.s: Empty priv spec set.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-priv-spec-02.d: New testcase.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-priv-spec-03.d: Likewise.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
|
|
|
|
|
* testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
|
|
|
|
|
|
2020-05-29 15:31:46 +08:00
|
|
|
|
2020-06-05 Nelson Chu <nelson.chu@sifive.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-arch-01.d: The CSR isn't used,
|
|
|
|
|
so ignore the -mpriv-spec setting.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
|
|
|
|
|
* testsuite/ld-riscv-elf/call-relax.d: Add -mno-arch-attr.
|
|
|
|
|
|
2020-06-04 20:58:34 +08:00
|
|
|
|
2020-06-04 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/26080
|
|
|
|
|
* testsuite/ld-elf/comm-data.exp: Remove copy_reloc.
|
|
|
|
|
* testsuite/ld-elf/comm-data2r.rd: Removed.
|
|
|
|
|
* testsuite/ld-elf/comm-data2r.sd: Likewise.
|
|
|
|
|
* testsuite/ld-elf/comm-data2r.xd: Likewise.
|
|
|
|
|
|
2020-06-04 13:27:12 +08:00
|
|
|
|
2020-06-04 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/config/default.exp: Remove global directive outside
|
|
|
|
|
proc body.
|
|
|
|
|
* testsuite/ld-bootstrap/bootstrap.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elf/compress.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elf/elf.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elf/exclude.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elf/frame.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elf/indirect.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elf/linux-x86.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elf/shared.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elf/tls.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elf/tls_common.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elfcomm/elfcomm.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elfweak/elfweak.exp: Likewise.
|
|
|
|
|
* testsuite/ld-frv/fdpic.exp: Likewise.
|
|
|
|
|
* testsuite/ld-frv/tls.exp: Likewise.
|
|
|
|
|
* testsuite/ld-gc/gc.exp: Likewise.
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Likewise.
|
|
|
|
|
* testsuite/ld-i386/no-plt.exp: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc.exp: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
|
|
|
|
|
* testsuite/ld-nios2/nios2.exp: Likewise.
|
|
|
|
|
* testsuite/ld-plugin/lto.exp: Likewise.
|
|
|
|
|
* testsuite/ld-plugin/plugin.exp: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/export-class.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/align.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/crossref.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/defined.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/overlay-size.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/provide.exp: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/weak.exp: Likewise.
|
|
|
|
|
* testsuite/ld-selective/selective.exp: Likewise.
|
|
|
|
|
* testsuite/ld-sh/rd-sh.exp: Likewise.
|
|
|
|
|
* testsuite/ld-size/size.exp: Likewise.
|
|
|
|
|
* testsuite/ld-srec/srec.exp: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/mpx.exp: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/no-plt.exp: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Likewise.
|
|
|
|
|
|
2020-06-04 11:11:46 +08:00
|
|
|
|
2020-06-04 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-dynamic/export-dynamic-symbol-2.d: Match output for
|
|
|
|
|
mips-sgi-irix6.
|
|
|
|
|
* testsuite/ld-dynamic/export-dynamic-symbol-glob.d: Likewise.
|
|
|
|
|
* testsuite/ld-dynamic/export-dynamic-symbol-list-2.d: Likewise.
|
|
|
|
|
* testsuite/ld-dynamic/export-dynamic-symbol-list-glob.d: Likewise.
|
|
|
|
|
* testsuite/ld-dynamic/export-dynamic-symbol.exp: Exclude targets
|
|
|
|
|
with poor PIE support.
|
|
|
|
|
|
2020-06-03 21:39:48 +08:00
|
|
|
|
2020-06-04 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-plugin/lto.exp (pr12758.exe): Add NOPIE_LDFLAGS.
|
|
|
|
|
* testsuite/ld-unique/unique.exp: Add NOPIE_LDFLAGS to unique
|
|
|
|
|
executable and dynamic executable tests.
|
|
|
|
|
|
2020-06-03 21:47:38 +08:00
|
|
|
|
2020-06-03 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/config/default.exp (NOSANTIZE_CFLAGS): New.
|
|
|
|
|
* testsuite/ld-elf/linux-x86.exp: Add $NOSANTIZE_CFLAGS to
|
|
|
|
|
tests with run_ld_link_exec_tests.
|
|
|
|
|
* testsuite/ld-elf/shared.exp: Add $NOSANTIZE_CFLAGS to tests
|
|
|
|
|
with run_ld_link_tests.
|
|
|
|
|
* testsuite/ld-elf/tls.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elfweak/elfweak.exp: Add $NOSANTIZE_CFLAGS to
|
|
|
|
|
tests with ld_link.
|
|
|
|
|
* testsuite/ld-gc/gc.exp: Add $NOSANTIZE_CFLAGS to cflags.
|
|
|
|
|
* testsuite/ld-plugin/lto.exp: Add $NOSANTIZE_CFLAGS to tests
|
|
|
|
|
with run_ld_link_tests.a
|
|
|
|
|
* testsuite/ld-plugin/plugin.exp: Append $NOSANTIZE_CFLAGS to
|
|
|
|
|
CFLAGS.
|
|
|
|
|
* testsuite/ld-selective/selective.exp: Add $NOSANTIZE_CFLAGS
|
|
|
|
|
to cflags and cxxflags.
|
|
|
|
|
* testsuite/ld-srec/srec.exp: Append $NOSANTIZE_CFLAGS to CC
|
|
|
|
|
and CXX.
|
|
|
|
|
* testsuite/ld-x86-64/plt-main-ibt-x32.dd: Updated for
|
|
|
|
|
-fsanitize=undefined.
|
|
|
|
|
* testsuite/ld-x86-64/plt-main-ibt.dd: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Add $NOSANTIZE_CFLAGS to
|
|
|
|
|
tests with run_cc_link_tests and run_ld_link_tests.
|
|
|
|
|
|
2020-06-03 21:37:39 +08:00
|
|
|
|
2020-06-03 Fangrui Song <maskray@google.com>
|
|
|
|
|
H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/25910
|
|
|
|
|
* NEWS: Mention --export-dynamic-symbol[-list].
|
|
|
|
|
* ld.texi: Document --export-dynamic-symbol[-list].
|
|
|
|
|
* ldgram.y: Pass current_dynamic_list_p to
|
|
|
|
|
lang_append_dynamic_list.
|
|
|
|
|
* ldlang.c (current_dynamic_list_p): New.
|
|
|
|
|
(ang_append_dynamic_list): Updated to take a pointer to
|
|
|
|
|
struct bfd_elf_dynamic_list * argument instead of using
|
|
|
|
|
link_info.dynamic_list.
|
|
|
|
|
(lang_append_dynamic_list_cpp_typeinfo): Pass
|
|
|
|
|
&link_info.dynamic_list to ang_append_dynamic_list.
|
|
|
|
|
(lang_append_dynamic_list_cpp_new): Likewise.
|
|
|
|
|
* ldlang.h (current_dynamic_list_p): New.
|
|
|
|
|
(lang_append_dynamic_list): Add a pointer to
|
|
|
|
|
struct bfd_elf_dynamic_list * argument.
|
|
|
|
|
* ldlex.h (option_values): Add OPTION_EXPORT_DYNAMIC_SYMBOL and
|
|
|
|
|
OPTION_EXPORT_DYNAMIC_SYMBOL_LIST.
|
|
|
|
|
* lexsup.c (ld_options): Add entries for
|
|
|
|
|
OPTION_EXPORT_DYNAMIC_SYMBOL and
|
|
|
|
|
OPTION_EXPORT_DYNAMIC_SYMBOL_LIST.
|
|
|
|
|
(parse_args): Handle --export-dynamic-symbol and
|
|
|
|
|
--export-dynamic-symbol-list.
|
|
|
|
|
* testsuite/ld-dynamic/export-dynamic-symbol-1.d: New.
|
|
|
|
|
* testsuite/ld-dynamic/export-dynamic-symbol-2.d: New.
|
|
|
|
|
* testsuite/ld-dynamic/export-dynamic-symbol-glob.d: New.
|
|
|
|
|
* testsuite/ld-dynamic/export-dynamic-symbol-list-1.d: New.
|
|
|
|
|
* testsuite/ld-dynamic/export-dynamic-symbol-list-2.d: New.
|
|
|
|
|
* testsuite/ld-dynamic/export-dynamic-symbol-list-glob.d: New.
|
|
|
|
|
* testsuite/ld-dynamic/export-dynamic-symbol.exp: New.
|
|
|
|
|
* testsuite/ld-dynamic/export-dynamic-symbol.s: New.
|
|
|
|
|
* testsuite/ld-dynamic/foo-bar.list: New.
|
|
|
|
|
* testsuite/ld-dynamic/foo.list: New.
|
|
|
|
|
* testsuite/ld-dynamic/foo.s: New.
|
|
|
|
|
* testsuite/ld-dynamic/fstar.list: New.
|
|
|
|
|
* testsuite/ld-elf/dlempty.list: New.
|
|
|
|
|
* testsuite/ld-elf/shared.exp: Add tests for
|
|
|
|
|
--export-dynamic-symbol and --export-dynamic-symbol-list.
|
|
|
|
|
|
2020-06-03 17:54:11 +08:00
|
|
|
|
2020-06-03 Jan Beulich <jbeulich@suse.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/linux-x86.exp: Make copied source files
|
|
|
|
|
writeable.
|
|
|
|
|
|
2020-05-28 23:43:01 +08:00
|
|
|
|
2020-05-28 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR 26047
|
|
|
|
|
* ldelf.c (ldelf_after_open): Fail if attempting to link one
|
2020-05-29 00:43:21 +08:00
|
|
|
|
executable into another. Ensure that the test is made for all
|
|
|
|
|
forms of linking.
|
2020-05-28 23:43:01 +08:00
|
|
|
|
|
2020-05-28 19:27:08 +08:00
|
|
|
|
2020-05-28 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
2020-05-28 19:36:33 +08:00
|
|
|
|
* NEWS: Mention --enable-textrel-check=yes is default for
|
|
|
|
|
Linux/x86 targets.
|
|
|
|
|
* configure.tgt (ac_default_ld_textrel_check): Set to yes if
|
|
|
|
|
unset for Linux/x86 targets.
|
2020-05-28 19:27:08 +08:00
|
|
|
|
|
2020-05-28 19:21:04 +08:00
|
|
|
|
2020-05-28 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/20824
|
|
|
|
|
* NEWS: Mention --enable-textrel-check=[no|yes|warning|error].
|
|
|
|
|
* configure.ac: Add --enable-textrel-check=[no|yes|warning|error].
|
|
|
|
|
(DEFAULT_LD_TEXTREL_CHECK): New AC_DEFINE_UNQUOTED.
|
|
|
|
|
(DEFAULT_LD_TEXTREL_CHECK_WARNING): Likewise.
|
|
|
|
|
* ldmain.c (main): Initialize link_info.textrel_check to
|
|
|
|
|
DEFAULT_LD_TEXTREL_CHECK.
|
|
|
|
|
* lexsup.c (ld_options): Check DEFAULT_LD_TEXTREL_CHECK_WARNING.
|
|
|
|
|
* config.in: Regenerated.
|
|
|
|
|
* configure: Likewise.
|
|
|
|
|
|
2020-05-28 17:51:29 +08:00
|
|
|
|
2020-05-28 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* lexsup.c (parse_args): Generate an error if a name is not
|
|
|
|
|
provided to the -Map option.
|
|
|
|
|
(ld_options): Mention that the -Map option supports a directory
|
|
|
|
|
name as an argument.
|
|
|
|
|
* NEWS: Remove mention of support for an empty string as an
|
|
|
|
|
argument to -Map.
|
|
|
|
|
* ld.texi: Likewise.
|
|
|
|
|
|
2020-05-28 05:14:45 +08:00
|
|
|
|
2020-05-27 Hans-Peter Nilsson <hp@axis.com>
|
|
|
|
|
|
|
|
|
|
PR ld/22909
|
|
|
|
|
* testsuite/ld-elf/pr19539.d: Don't xfail for cris*-*-*.
|
|
|
|
|
|
2020-05-28 00:49:17 +08:00
|
|
|
|
2020-05-27 Rasmus Villemoes <rv@rasmusvillemoes.dk>
|
|
|
|
|
Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* lexsup.c (parse_args): If the map filename is defined but empty
|
|
|
|
|
create a name based upon the output file name. If the name is
|
|
|
|
|
defined but refers to a directory create a file inside the
|
|
|
|
|
directory based on the output file name.
|
|
|
|
|
* ld.texi: Document the new feature.
|
|
|
|
|
* testsuite/ld-script/map-address.exp: Add test of new feature.
|
|
|
|
|
* NEWS: Mention the new feature.
|
|
|
|
|
|
2020-05-27 19:53:54 +08:00
|
|
|
|
2020-05-27 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/22909
|
|
|
|
|
* NEWS: Mention --warn-textrel.
|
|
|
|
|
* ld.texi: Update -z text/notext/textoff. Add --warn-textrel.
|
|
|
|
|
Remove --warn-shared-textrel.
|
|
|
|
|
* ldlex.h (option_values): Rename OPTION_WARN_SHARED_TEXTREL to
|
|
|
|
|
OPTION_WARN_TEXTREL.
|
|
|
|
|
* lexsup.c (ld_options): Add --warn-textrel. Obsolete
|
|
|
|
|
--warn-shared-textrel.
|
|
|
|
|
(parse_args): Updated.
|
|
|
|
|
(elf_shlib_list_options): Check link_info.textrel_check.
|
|
|
|
|
* emultempl/elf.em: Updated.
|
|
|
|
|
* testsuite/ld-elf/pr19539.d: Replace -z notext with
|
|
|
|
|
--warn-textrel. Expect a warning.
|
|
|
|
|
* testsuite/ld-i386/warn1.d: Update expected warning.
|
|
|
|
|
|
2020-05-27 05:25:19 +08:00
|
|
|
|
2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-23a-x86.d: Skip *-*-lynxos *-*-nto*.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
|
|
|
|
|
|
2020-05-25 21:45:13 +08:00
|
|
|
|
2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Pass -z notext to linker.
|
|
|
|
|
|
2020-05-25 19:54:31 +08:00
|
|
|
|
2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/eh6.d: Pass -z notext to linker.
|
|
|
|
|
* testsuite/ld-elf/ehdr_start-shared.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr19539.d: Likewise.
|
|
|
|
|
* testsuite/ld-elfvers/vers.exp: Likewise.
|
|
|
|
|
* testsuite/ld-elfvsb/elfvsb.exp: Likewise.
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Likewise.
|
|
|
|
|
* testsuite/ld-i386/nogot1.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19539.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-2a.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-2b.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-2c.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-2d.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-2e.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-3d.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19636-3e.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr19939b.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/undefweaka.d: Likewise.
|
|
|
|
|
* testsuite/ld-i386/undefweakb.d: Likewise.
|
|
|
|
|
* testsuite/ld-shared/shared.exp: Likewise.
|
|
|
|
|
* testsuite/ld-size/size.exp: Likewise.
|
|
|
|
|
* testsuite/ld-unique/unique.exp: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pie1.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19539a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19539b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-1d.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19636-1e.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19807-1a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19807-1b.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/pr19939b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Likewise.
|
|
|
|
|
|
2020-05-21 09:31:39 +08:00
|
|
|
|
2020-05-24 Fangrui Song <maskray@google.com>
|
|
|
|
|
|
|
|
|
|
PR ld/26018
|
|
|
|
|
* lexsup.c (parse_args): Simplify.
|
|
|
|
|
* testsuite/ld-elf/dl4e.out: New.
|
|
|
|
|
* testsuite/ld-elf/shared.exp: Updated for PR ld/26018 tests.
|
|
|
|
|
|
2020-05-24 11:49:16 +08:00
|
|
|
|
2020-05-23 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/26018
|
|
|
|
|
* testsuite/ld-i386/i386.exp: Add a -Bsymbolic-functions test.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Likewise.
|
|
|
|
|
* testsuite/ld-i386/pr26018.d: New file.
|
|
|
|
|
* testsuite/ld-x86-64/pr26018.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr26018.s: Likewise.
|
|
|
|
|
|
2020-05-20 21:20:49 +08:00
|
|
|
|
2020-05-21 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* deffilep.y: Replace "if (x) free (x)" with "free (x)" thoughout.
|
|
|
|
|
* emultempl/elf.em: Likewise.
|
|
|
|
|
* emultempl/msp430.em: Likewise.
|
|
|
|
|
* emultempl/pe.em: Likewise.
|
|
|
|
|
* emultempl/pep.em: Likewise.
|
|
|
|
|
* emultempl/ppc64elf.em: Likewise.
|
|
|
|
|
* emultempl/xtensaelf.em: Likewise.
|
|
|
|
|
* ldelf.c: Likewise.
|
|
|
|
|
* ldfile.c: Likewise.
|
|
|
|
|
* ldmain.c: Likewise.
|
|
|
|
|
* ldmisc.c: Likewise.
|
|
|
|
|
* lexsup.c: Likewise.
|
|
|
|
|
* pe-dll.c: Likewise.
|
|
|
|
|
|
[PATCH v2 0/9] RISC-V: Support version controling for ISA standard extensions and CSR
1. Remove the -mriscv-isa-version and --with-riscv-isa-version options.
We can still use -march to choose the version for each extensions, so there is
no need to add these.
2. Change the arguments of options from [1p9|1p9p1|...] to [1.9|1.9.1|...].
Unlike the architecture string has specified by spec, ther is no need to do
the same thing for options.
3. Spilt the patches to reduce the burdens of review.
[PATCH 3/7] RISC-V: Support new GAS options and configure options to set ISA versions
to
[PATCH v2 3/9] RISC-V: Support GAS option -misa-spec to set ISA versions
[PATCH v2 4/9] RISC-V: Support configure options to set ISA versions by default.
[PATCH 4/7] RISC-V: Support version checking for CSR according to privilege version.
to
[PATCH v2 5/9] RISC-V: Support version checking for CSR according to privilege spec version.
[PATCH v2 6/9] RISC-V: Support configure option to choose the privilege spec version.
4. Use enum class rather than string to compare the choosen ISA spec in opcodes/riscv-opc.c.
The behavior is same as comparing the choosen privilege spec.
include * opcode/riscv.h: Include "bfd.h" to support bfd_boolean.
(enum riscv_isa_spec_class): New enum class. All supported ISA spec
belong to one of the class
(struct riscv_ext_version): New structure holds version information
for the specific ISA.
* opcode/riscv-opc.h (DECLARE_CSR): There are two version information,
define_version and abort_version. The define_version means which
privilege spec is started to define the CSR, and the abort_version
means which privilege spec is started to abort the CSR. If the CSR is
valid for the newest spec, then the abort_version should be
PRIV_SPEC_CLASS_DRAFT.
(DECLARE_CSR_ALIAS): Same as DECLARE_CSR, but only for the obselete CSR.
* opcode/riscv.h (enum riscv_priv_spec_class): New enum class. Define
the current supported privilege spec versions.
(struct riscv_csr_extra): Add new fields to store more information
about the CSR. We use these information to find the suitable CSR
address when user choosing a specific privilege spec.
binutils * dwarf.c: Updated since DECLARE_CSR is changed.
opcodes * riscv-opc.c (riscv_ext_version_table): The table used to store
all information about the supported spec and the corresponding ISA
versions. Currently, only Zicsr is supported to verify the
correctness of Z sub extension settings. Others will be supported
in the future patches.
(struct isa_spec_t, isa_specs): List for all supported ISA spec
classes and the corresponding strings.
(riscv_get_isa_spec_class): New function. Get the corresponding ISA
spec class by giving a ISA spec string.
* riscv-opc.c (struct priv_spec_t): New structure.
(struct priv_spec_t priv_specs): List for all supported privilege spec
classes and the corresponding strings.
(riscv_get_priv_spec_class): New function. Get the corresponding
privilege spec class by giving a spec string.
(riscv_get_priv_spec_name): New function. Get the corresponding
privilege spec string by giving a CSR version class.
* riscv-dis.c: Updated since DECLARE_CSR is changed.
* riscv-dis.c: Add new disassembler option -Mpriv-spec to dump the CSR
according to the chosen version. Build a hash table riscv_csr_hash to
store the valid CSR for the chosen pirv verison. Dump the direct
CSR address rather than it's name if it is invalid.
(parse_riscv_dis_option_without_args): New function. Parse the options
without arguments.
(parse_riscv_dis_option): Call parse_riscv_dis_option_without_args to
parse the options without arguments first, and then handle the options
with arguments. Add the new option -Mpriv-spec, which has argument.
* riscv-dis.c (print_riscv_disassembler_options): Add description
about the new OBJDUMP option.
ld * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Updated
priv attributes according to the -mpriv-spec option.
* testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
* testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
* testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise.
* testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
* testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
* testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
* testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
* testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
* testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
bfd * elfxx-riscv.h (riscv_parse_subset_t): Add new callback function
get_default_version. It is used to find the default version for
the specific extension.
* elfxx-riscv.c (riscv_parsing_subset_version): Remove the parameters
default_major_version and default_minor_version. Add new bfd_boolean
parameter *use_default_version. Set it to TRUE if we need to call
the callback rps->get_default_version to find the default version.
(riscv_parse_std_ext): Call rps->get_default_version if we fail to find
the default version in riscv_parsing_subset_version, and then call
riscv_add_subset to add the subset into subset list.
(riscv_parse_prefixed_ext): Likewise.
(riscv_std_z_ext_strtab): Support Zicsr extensions.
* elfnn-riscv.c (riscv_merge_std_ext): Use strcasecmp to compare the
strings rather than characters.
riscv_merge_arch_attr_info): The callback function get_default_version
is only needed for assembler, so set it to NULL int the linker.
* elfxx-riscv.c (riscv_estimate_digit): Remove the static.
* elfxx-riscv.h: Updated.
gas * testsuite/gas/riscv/priv-reg-fail-read-only-01.s: Updated.
* config/tc-riscv.c (default_arch_with_ext, default_isa_spec):
Static variables which are used to set the ISA extensions. You can
use -march (or ELF build attributes) and -misa-spec to set them,
respectively.
(ext_version_hash): The hash table used to handle the extensions
with versions.
(init_ext_version_hash): Initialize the ext_version_hash according
to riscv_ext_version_table.
(riscv_get_default_ext_version): The callback function of
riscv_parse_subset_t. According to the choosed ISA spec,
get the default version for the specific extension.
(riscv_set_arch): Set the callback function.
(enum options, struct option md_longopts): Add new option -misa-spec.
(md_parse_option): Do not call riscv_set_arch for -march. We will
call it later in riscv_after_parse_args. Call riscv_get_isa_spec_class
to set default_isa_spec class.
(riscv_after_parse_args): Call init_ext_version_hash to initialize the
ext_version_hash, and then call riscv_set_arch to set the architecture
with versions according to default_arch_with_ext.
* testsuite/gas/riscv/attribute-02.d: Set 0p0 as default version for
x extensions.
* testsuite/gas/riscv/attribute-03.d: Likewise.
* testsuite/gas/riscv/attribute-09.d: New testcase. For i-ext, we
already set it's version to 2p1 by march, so no need to use the default
2p2 version. For m-ext, we do not set the version by -march and ELF arch
attribute, so set the default 2p0 to it. For zicsr, it is not defined in
ISA spec 2p2, so set 0p0 to it.
* testsuite/gas/riscv/attribute-10.d: New testcase. The version of
zicsr is 2p0 according to ISA spec 20191213.
* config/tc-riscv.c (DEFAULT_RISCV_ARCH_WITH_EXT)
(DEFAULT_RISCV_ISA_SPEC): Default configure option settings.
You can set them by configure options --with-arch and
--with-isa-spec, respectively.
(riscv_set_default_isa_spec): New function used to set the
default ISA spec.
(md_parse_option): Call riscv_set_default_isa_spec rather than
call riscv_get_isa_spec_class directly.
(riscv_after_parse_args): If the -isa-spec is not set, then we
set the default ISA spec according to DEFAULT_RISCV_ISA_SPEC by
calling riscv_set_default_isa_spec.
* testsuite/gas/riscv/attribute-01.d: Add -misa-spec=2.2, since
the --with-isa-spec may be set to different ISA spec.
* testsuite/gas/riscv/attribute-02.d: Likewise.
* testsuite/gas/riscv/attribute-03.d: Likewise.
* testsuite/gas/riscv/attribute-04.d: Likewise.
* testsuite/gas/riscv/attribute-05.d: Likewise.
* testsuite/gas/riscv/attribute-06.d: Likewise.
* testsuite/gas/riscv/attribute-07.d: Likewise.
* configure.ac: Add configure options, --with-arch and
--with-isa-spec.
* configure: Regenerated.
* config.in: Regenerated.
* config/tc-riscv.c (default_priv_spec): Static variable which is
used to check if the CSR is valid for the chosen privilege spec. You
can use -mpriv-spec to set it.
(enum reg_class): We now get the CSR address from csr_extra_hash rather
than reg_names_hash. Therefore, move RCLASS_CSR behind RCLASS_MAX.
(riscv_init_csr_hashes): Only need to initialize one hash table
csr_extra_hash.
(riscv_csr_class_check): Change the return type to void. Don't check
the ISA dependency if -mcsr-check isn't set.
(riscv_csr_version_check): New function. Check and find the CSR address
from csr_extra_hash, according to default_priv_spec. Report warning
for the invalid CSR if -mcsr-check is set.
(reg_csr_lookup_internal): Updated.
(reg_lookup_internal): Likewise.
(md_begin): Updated since DECLARE_CSR and DECLARE_CSR_ALIAS are changed.
(enum options, struct option md_longopts): Add new GAS option -mpriv-spec.
(md_parse_option): Call riscv_set_default_priv_version to set
default_priv_spec.
(riscv_after_parse_args): If -mpriv-spec isn't set, then set the default
privilege spec to the newest one.
(enum riscv_csr_class, struct riscv_csr_extra): Move them to
include/opcode/riscv.h.
* testsuite/gas/riscv/priv-reg-fail-fext.d: This test case just want
to check the ISA dependency for CSR, so fix the spec version by adding
-mpriv-spec=1.11.
* testsuite/gas/riscv/priv-reg-fail-fext.l: Likewise. There are some
version warnings for the test case.
* gas/testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
* gas/testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
* gas/testsuite/gas/riscv/priv-reg-fail-read-only-02.d: Likewise.
* gas/testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
* gas/testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
* gas/testsuite/gas/riscv/priv-reg-fail-version-1p9.d: New test case.
Check whether the CSR is valid when privilege version 1.9 is choosed.
* gas/testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Likewise.
* gas/testsuite/gas/riscv/priv-reg-fail-version-1p9p1.d: New test case.
Check whether the CSR is valid when privilege version 1.9.1 is choosed.
* gas/testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
* gas/testsuite/gas/riscv/priv-reg-fail-version-1p10.d: New test case.
Check whether the CSR is valid when privilege version 1.10 is choosed.
* gas/testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
* gas/testsuite/gas/riscv/priv-reg-fail-version-1p11.d: New test case.
Check whether the CSR is valid when privilege version 1.11 is choosed.
* gas/testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
* config/tc-riscv.c (DEFAULT_RISCV_ISA_SPEC): Default configure option
setting. You can set it by configure option --with-priv-spec.
(riscv_set_default_priv_spec): New function used to set the default
privilege spec.
(md_parse_option): Call riscv_set_default_priv_spec rather than
call riscv_get_priv_spec_class directly.
(riscv_after_parse_args): If -mpriv-spec isn't set, then we set the
default privilege spec according to DEFAULT_RISCV_PRIV_SPEC by
calling riscv_set_default_priv_spec.
* testsuite/gas/riscv/csr-dw-regnums.d: Add -mpriv-spec=1.11, since
the --with-priv-spec may be set to different privilege spec.
* testsuite/gas/riscv/priv-reg.d: Likewise.
* configure.ac: Add configure option --with-priv-spec.
* configure: Regenerated.
* config.in: Regenerated.
* config/tc-riscv.c (explicit_attr): Rename explicit_arch_attr to
explicit_attr. Set it to TRUE if any ELF attribute is found.
(riscv_set_default_priv_spec): Try to set the default_priv_spec if
the priv attributes are set.
(md_assemble): Set the default_priv_spec according to the priv
attributes when we start to assemble instruction.
(riscv_write_out_attrs): Rename riscv_write_out_arch_attr to
riscv_write_out_attrs. Update the arch and priv attributes. If we
don't set the corresponding ELF attributes, then try to output the
default ones.
(riscv_set_public_attributes): If any ELF attribute or -march-attr
options is set (explicit_attr is TRUE), then call riscv_write_out_attrs
to update the arch and priv attributes.
(s_riscv_attribute): Make sure all arch and priv attributes are set
before any instruction.
* testsuite/gas/riscv/attribute-01.d: Update the priv attributes if any
ELF attribute or -march-attr is set. If the priv attributes are not
set, then try to update them by the default setting (-mpriv-spec or
--with-priv-spec).
* testsuite/gas/riscv/attribute-02.d: Likewise.
* testsuite/gas/riscv/attribute-03.d: Likewise.
* testsuite/gas/riscv/attribute-04.d: Likewise.
* testsuite/gas/riscv/attribute-06.d: Likewise.
* testsuite/gas/riscv/attribute-07.d: Likewise.
* testsuite/gas/riscv/attribute-08.d: Likewise.
* testsuite/gas/riscv/attribute-09.d: Likewise.
* testsuite/gas/riscv/attribute-10.d: Likewise.
* testsuite/gas/riscv/attribute-unknown.d: Likewise.
* testsuite/gas/riscv/attribute-05.d: Likewise. Also, the priv spec
set by priv attributes must be supported.
* testsuite/gas/riscv/attribute-05.s: Likewise.
* testsuite/gas/riscv/priv-reg-fail-version-1p9.d: Likewise. Updated
priv attributes according to the -mpriv-spec option.
* testsuite/gas/riscv/priv-reg-fail-version-1p9p1.d: Likewise.
* testsuite/gas/riscv/priv-reg-fail-version-1p10.d: Likewise.
* testsuite/gas/riscv/priv-reg-fail-version-1p11.d: Likewise.
* testsuite/gas/riscv/priv-reg.d: Removed.
* testsuite/gas/riscv/priv-reg-version-1p9.d: New test case. Dump the
CSR according to the priv spec 1.9.
* testsuite/gas/riscv/priv-reg-version-1p9p1.d: New test case. Dump the
CSR according to the priv spec 1.9.1.
* testsuite/gas/riscv/priv-reg-version-1p10.d: New test case. Dump the
CSR according to the priv spec 1.10.
* testsuite/gas/riscv/priv-reg-version-1p11.d: New test case. Dump the
CSR according to the priv spec 1.11.
* config/tc-riscv.c (md_show_usage): Add descriptions about
the new GAS options.
* doc/c-riscv.texi: Likewise.
2020-05-21 00:22:48 +08:00
|
|
|
|
2020-05-20 Nelson Chu <nelson.chu@sifive.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-arch-01.d: Updated
|
|
|
|
|
priv attributes according to the -mpriv-spec option.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
|
|
|
|
|
* testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
|
|
|
|
|
|
PR25993, read of freed memory
ldmain.c:add_archive_element copies file name pointers from the bfd to
a lang_input_statement_type.
input->filename = abfd->filename;
input->local_sym_name = abfd->filename;
This results in stale pointers when twiddling the bfd filename in
places like the pe ld after_open. So don't free the bfd filename,
and make copies using bfd_alloc memory that won't result in small
memory leaks that annoy memory checkers.
PR 25993
bfd/
* archive.c (_bfd_get_elt_at_filepos): Don't strdup filename,
use bfd_set_filename.
* elfcode.h (_bfd_elf_bfd_from_remote_memory): Likewise.
* mach-o.c (bfd_mach_o_fat_member_init): Likewise.
* opncls.c (bfd_fopen, bfd_openstreamr, bfd_openr_iovec, bfd_openw),
(bfd_create): Likewise.
(_bfd_delete_bfd): Don't free filename.
(bfd_set_filename): Copy filename param to bfd_alloc'd memory,
return pointer to the copy or NULL on alloc fail.
* vms-lib.c (_bfd_vms_lib_get_module): Free newname and test
result of bfd_set_filename.
* bfd-in2.h: Regenerate.
gdb/
* solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
bfd_set_filename.
* solib-aix.c (solib_aix_bfd_open): Use std::string for name
passed to bfd_set_filename.
* symfile-mem.c (add_vsyscall_page): Likewise for string
passed to symbol_file_add_from_memory.
(symbol_file_add_from_memory): Make name param a const char* and
don't strdup.
ld/
* emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't copy
other_bfd_filename for bfd_set_filename, and test result of
bfd_set_filename call. Don't create a new is->filename, simply
copy from bfd filename. Free new_name after bfd_set_filename.
* emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
2020-05-19 11:28:59 +08:00
|
|
|
|
2020-05-20 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 25993
|
|
|
|
|
* emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't copy
|
|
|
|
|
other_bfd_filename for bfd_set_filename, and test result of
|
|
|
|
|
bfd_set_filename call. Don't create a new is->filename, simply
|
|
|
|
|
copy from bfd filename. Free new_name after bfd_set_filename.
|
|
|
|
|
* emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
|
|
|
|
|
|
2020-05-19 18:07:52 +08:00
|
|
|
|
2020-05-19 Siddhesh Poyarekar <siddesh.poyarekar@arm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-aarch64/aarch64-elf.exp: New test
|
|
|
|
|
emit-relocs-560.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-560.d: New file.
|
|
|
|
|
* testsuite/ld-aarch64/emit-relocs-560.s: New file.
|
|
|
|
|
|
2020-05-19 11:27:15 +08:00
|
|
|
|
2020-05-19 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/beos.em (sort_by_file_name): Use bfd_get_filename
|
|
|
|
|
rather than accessing bfd->filename directly.
|
|
|
|
|
* emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
|
|
|
|
|
* emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
|
|
|
|
|
* emultempl/spuelf.em (embedded_spu_file): Likewise.
|
|
|
|
|
* ldlang.c (input_statement_is_archive_path, wild_sort),
|
|
|
|
|
(check_excluded_libs): Likewise.
|
|
|
|
|
* ldmain.c (add_archive_element): Likewise.
|
|
|
|
|
* ldmisc.c (vfinfo): Likewise.
|
|
|
|
|
* pe-dll.c (auto_export, generate_edata, pe_create_import_fixup),
|
|
|
|
|
(pe_dll_generate_implib, pe_process_import_defs): Likewise.
|
|
|
|
|
* plugin.c (plugin_object_p): Likewise.
|
|
|
|
|
|
2020-05-18 19:59:53 +08:00
|
|
|
|
2020-05-18 Douglas B Rupp <rupp@adacore.com>
|
|
|
|
|
|
|
|
|
|
* ldemul.h (ldemul_print_symbol): New.
|
|
|
|
|
(ld_emulation_xfer_type) <print_symbol): Likewise.
|
|
|
|
|
* ldemul.c (ldemul_print_symbol): New.
|
|
|
|
|
* ldlang.c (SECTION_NAME_MAP_LANGTH): Move to ...
|
|
|
|
|
(print_one_symbol): Make global and move declaration to ...
|
|
|
|
|
(print_all_symbols): Rename print_one_symbol to ldemul_print_symbol
|
|
|
|
|
(print_input_section): Likewise
|
|
|
|
|
* ldlang.h: ... here.
|
|
|
|
|
* emultempl/aix.em (gld${EMULATION_NAME}_print_symbol): New.
|
|
|
|
|
(ld_emulation_xfer_struct): Use it.
|
|
|
|
|
* emultempl/armcoff.em (ld_emulation_xfer_struct): Add print_symbol
|
|
|
|
|
and default to NULL.
|
|
|
|
|
* emultempl/beos.em (ld_emulation_xfer_struct): Likewise
|
|
|
|
|
* emultempl/elf.em (ld_emulation_xfer_struct): Likewise
|
|
|
|
|
* emultempl/generic.em (ld_emulation_xfer_struct): Likewise
|
|
|
|
|
* emultempl/linux.em (ld_emulation_xfer_struct): Likewise
|
|
|
|
|
* emultempl/msp430.em (ld_emulation_xfer_struct): Likewise
|
|
|
|
|
* emultempl/pe.em (ld_emulation_xfer_struct): Likewise
|
|
|
|
|
* emultempl/pep.em (ld_emulation_xfer_struct): Likewise
|
|
|
|
|
* emultempl/ticoff.em (ld_emulation_xfer_struct): Likewise
|
|
|
|
|
* emultempl/vanilla.em (ld_emulation_xfer_struct): Likewise
|
|
|
|
|
|
2020-05-18 20:51:23 +08:00
|
|
|
|
2020-05-18 Sergei Trofimovich <siarheit@google.com>
|
|
|
|
|
|
|
|
|
|
* ldmain.c (add_archive_element): Fix s/claimi/claim/ typo
|
|
|
|
|
in info message.
|
|
|
|
|
|
2020-05-18 20:47:11 +08:00
|
|
|
|
2020-05-18 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* po/sv.po: Update Swedish translation.
|
|
|
|
|
|
2020-05-18 17:28:52 +08:00
|
|
|
|
2020-05-18 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR 25993
|
|
|
|
|
* emultempl/pe.em (_after_open): Check for duplicate filename
|
|
|
|
|
pointers before renaming the dll.
|
|
|
|
|
* emultempl/pep.em (_after_open): Likewise.
|
|
|
|
|
|
2020-05-13 17:59:02 +08:00
|
|
|
|
2020-05-13 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR 25979
|
|
|
|
|
* lexsup.c (elf_shlib_list_options): Include the default value for
|
|
|
|
|
the hash style in the output text.
|
|
|
|
|
|
2020-05-11 08:04:49 +08:00
|
|
|
|
2020-05-11 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-powerpc/pcrelopt.s: Add lxvp and stxvp.
|
|
|
|
|
* testsuite/ld-powerpc/pcrelopt.d: Update.
|
|
|
|
|
|
2020-05-11 07:54:14 +08:00
|
|
|
|
2020-05-11 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-powerpc/callstub-1.d: Use -mpower10/-Mpower10 in
|
|
|
|
|
place of -mfuture/-Mfuture.
|
|
|
|
|
* testsuite/ld-powerpc/notoc2.d: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/powerpc.exp: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/tlsgd.d: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/tlsie.d: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/tlsld.d: Likewise.
|
|
|
|
|
|
2020-05-11 19:02:26 +08:00
|
|
|
|
2020-05-11 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* po/es.po: Updated Spanish translation.
|
|
|
|
|
|
2020-05-04 22:51:56 +08:00
|
|
|
|
2020-05-01 Wilco Dijkstra <wdijkstr@arm.com>
|
|
|
|
|
|
|
|
|
|
PR ld/25665
|
|
|
|
|
* testsuite/ld-aarch64/farcall-group.s: New large group test.
|
|
|
|
|
* testsuite/ld-aarch64/farcall-group.d: New test driver.
|
|
|
|
|
* testsuite/ld-aarch64/aarch64-elf.exp: Run the new test.
|
|
|
|
|
|
2020-05-01 13:53:17 +08:00
|
|
|
|
2020-05-01 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 25882
|
|
|
|
|
* ldlang.c (lang_check): Call bfd_merge_private_bfd_data for
|
|
|
|
|
shared libraries.
|
|
|
|
|
|
2020-05-01 10:19:25 +08:00
|
|
|
|
2020-05-01 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* po/BLD-POTFILES.in: Regenerate.
|
|
|
|
|
|
2020-04-30 22:47:30 +08:00
|
|
|
|
2020-04-30 Alex Coplan <alex.coplan@arm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-aarch64/erratum843419_tls_ie.d: Use udf in disassembly.
|
|
|
|
|
* testsuite/ld-aarch64/farcall-b-section.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/farcall-back.d: Likewise.
|
|
|
|
|
* testsuite/ld-aarch64/farcall-bl-section.d: Likewise.
|
|
|
|
|
|
2020-04-30 20:49:30 +08:00
|
|
|
|
2020-04-30 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/compress1c.d: XFAIL if thet target linker does
|
|
|
|
|
not support the -shared command line option.
|
|
|
|
|
* /ld-elf/compressed1c.d: Likewise.
|
|
|
|
|
* /ld-elf/compressed1e.d: Likewise.
|
|
|
|
|
* /ld-elf/dynamic1.d: Likewise.
|
|
|
|
|
* /ld-elf/dynsym1.d: Likewise.
|
|
|
|
|
* /ld-elf/ehdr_start-shared.d: Likewise.
|
|
|
|
|
* /ld-elf/exclude3b.d: Likewise.
|
|
|
|
|
* /ld-elf/global1.d: Likewise.
|
|
|
|
|
* /ld-elf/hash.d: Likewise.
|
|
|
|
|
* /ld-elf/local1.d: Likewise.
|
|
|
|
|
* /ld-elf/mbind1b.d: Likewise.
|
|
|
|
|
* /ld-elf/now-1.d: Likewise.
|
|
|
|
|
* /ld-elf/now-2.d: Likewise.
|
|
|
|
|
* /ld-elf/now-3.d: Likewise.
|
|
|
|
|
* /ld-elf/now-4.d: Likewise.
|
|
|
|
|
* /ld-elf/pr12975.d: Likewise.
|
|
|
|
|
* /ld-elf/pr13177.d: Likewise.
|
|
|
|
|
* /ld-elf/pr13195.d: Likewise.
|
|
|
|
|
* /ld-elf/pr16322.d: Likewise.
|
|
|
|
|
* /ld-elf/pr16498a.d: Likewise.
|
|
|
|
|
* /ld-elf/pr16498b.d: Likewise.
|
|
|
|
|
* /ld-elf/pr17615.d: Likewise.
|
|
|
|
|
* /ld-elf/pr19162.d: Likewise.
|
|
|
|
|
* /ld-elf/pr19698.d: Likewise.
|
|
|
|
|
* /ld-elf/pr20513c.d: Likewise.
|
|
|
|
|
* /ld-elf/pr20513d.d: Likewise.
|
|
|
|
|
* /ld-elf/pr21389a.d: Likewise.
|
|
|
|
|
* /ld-elf/pr21389b.d: Likewise.
|
|
|
|
|
* /ld-elf/pr21389c.d: Likewise.
|
|
|
|
|
* /ld-elf/pr21562a.d: Likewise.
|
|
|
|
|
* /ld-elf/pr21562b.d: Likewise.
|
|
|
|
|
* /ld-elf/pr21562c.d: Likewise.
|
|
|
|
|
* /ld-elf/pr21562d.d: Likewise.
|
|
|
|
|
* /ld-elf/pr21562e.d: Likewise.
|
|
|
|
|
* /ld-elf/pr21562f.d: Likewise.
|
|
|
|
|
* /ld-elf/pr21562g.d: Likewise.
|
|
|
|
|
* /ld-elf/pr21562h.d: Likewise.
|
|
|
|
|
* /ld-elf/pr21562i.d: Likewise.
|
|
|
|
|
* /ld-elf/pr21562j.d: Likewise.
|
|
|
|
|
* /ld-elf/pr21562k.d: Likewise.
|
|
|
|
|
* /ld-elf/pr21562l.d: Likewise.
|
|
|
|
|
* /ld-elf/pr21562m.d: Likewise.
|
|
|
|
|
* /ld-elf/pr21562n.d: Likewise.
|
|
|
|
|
* /ld-elf/pr21903a.d: Likewise.
|
|
|
|
|
* /ld-elf/pr21903b.d: Likewise.
|
|
|
|
|
* /ld-elf/pr22269b.d: Likewise.
|
|
|
|
|
* /ld-elf/pr22393-1a.d: Likewise.
|
|
|
|
|
* /ld-elf/pr22393-1b.d: Likewise.
|
|
|
|
|
* /ld-elf/pr23658-1c.d: Likewise.
|
|
|
|
|
* /ld-elf/pr25708.d: Likewise.
|
|
|
|
|
* /ld-elf/rpath-1.d: Likewise.
|
|
|
|
|
* /ld-elf/rpath-2.d: Likewise.
|
|
|
|
|
* /ld-elf/runpath-1.d: Likewise.
|
|
|
|
|
* /ld-elf/runpath-2.d: Likewise.
|
|
|
|
|
* /ld-elf/sizeofb.d: Likewise.
|
|
|
|
|
* /ld-elf/startofb.d: Likewise.
|
|
|
|
|
* /ld-elf/strtab.d: Likewise.
|
|
|
|
|
* /ld-elf/textaddr2.d: Likewise.
|
|
|
|
|
* /ld-elf/textaddr5.d: Likewise.
|
|
|
|
|
* /ld-elf/textaddr6.d: Likewise.
|
|
|
|
|
* /ld-elf/unknown2.d: Likewise.
|
|
|
|
|
* /ld-undefined/entry-3.d: Likewise.
|
|
|
|
|
* /ld-undefined/entry-4.d: Likewise.
|
|
|
|
|
* /ld-elf/mbind1c.d: XFAIL if the target linker does not support
|
|
|
|
|
the -pie option.
|
|
|
|
|
* /ld-elf/pie.d: Likewise.
|
|
|
|
|
* /ld-elf/pr19539.d: Likewise.
|
|
|
|
|
* /ld-elf/pr21903d.d: Likewise.
|
|
|
|
|
* /ld-elf/pr22269a.d: Likewise.
|
|
|
|
|
* /ld-elf/pr22393-1c.d: Likewise.
|
|
|
|
|
* /ld-elf/pr22393-1d.d: Likewise.
|
|
|
|
|
* /ld-elf/pr22423.d: Likewise.
|
|
|
|
|
* /ld-elf/loadaddr1.d: Expect to fail on the rx-linux target.
|
|
|
|
|
* /ld-elf/loadaddr2.d: Likewise.
|
|
|
|
|
* /ld-elf/pr22393-1e.d: Likewise.
|
|
|
|
|
* /ld-elf/pr22393-1f.d: Likewise.
|
|
|
|
|
* /ld-elf/textaddr1.d: Likewise.
|
|
|
|
|
* /ld-elf/textaddr4.d: Likewise.
|
|
|
|
|
|
2020-04-30 20:35:37 +08:00
|
|
|
|
2020-04-30 Yoshinori Sato <ysato@users.sourceforge.jp>
|
|
|
|
|
|
|
|
|
|
* emulparams/elf32rx_linux.sh: New rx-linux emulation.
|
|
|
|
|
* emultempl/rxlinux.em: New.
|
|
|
|
|
* configure.tgt: Add rx-linux.
|
|
|
|
|
* Makefile.am: Add eelf32rx_linux.c
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2020-04-25 15:40:25 +08:00
|
|
|
|
2020-04-29 Max Filippov <jcmvbkbc@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-xtensa/relax-diff1.d: New test definition.
|
|
|
|
|
* testsuite/ld-xtensa/relax-diff1.s: New test source.
|
|
|
|
|
* testsuite/ld-xtensa/relax-ndiff.d: New test definition.
|
|
|
|
|
* testsuite/ld-xtensa/relax-ndiff.s: New test source.
|
|
|
|
|
* testsuite/ld-xtensa/xtensa.exp: (relax-diff1)
|
|
|
|
|
(relax-ndiff): New tests.
|
|
|
|
|
|
2020-04-29 19:24:37 +08:00
|
|
|
|
2020-04-29 Stephen Casner <casner@acm.org>
|
|
|
|
|
|
|
|
|
|
PR 25829
|
|
|
|
|
* testsuite/ld-scripts/default-script.exp: Add --image-base=0 to
|
|
|
|
|
LDFLAGS for targets *-*-mingw64 x86_64-*-cygwin.
|
|
|
|
|
* testsuite/ld-scripts/default-script1.d: No longer have to skip
|
|
|
|
|
test for those targets.
|
|
|
|
|
* testsuite/ld-scripts/default-script2.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/default-script3.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/default-script4.d: Likewise.
|
|
|
|
|
|
2020-04-28 00:39:31 +08:00
|
|
|
|
2020-04-27 Tamar Christina <tamar.christina@arm.com>
|
|
|
|
|
|
|
|
|
|
* pe-dll.c (pe_detail_list): Add pe-bigobj-i386.
|
|
|
|
|
|
xtensa: fix PR ld/25861
Introduce new relaxations XTENSA_PDIFF{8,16,32} for positive differences
(subtracted symbol precedes diminished symbol) and XTENSA_NDIFF{8,16,32}
for negative differences (subtracted symbol follows diminished symbol).
Don't generate XTENSA_DIFF relocations in the assembler, generate
XTENSA_PDIFF or XTENSA_NDIFF based on relative symbol position.
Handle XTENSA_DIFF in BFD for compatibility with old object files.
Handle XTENSA_PDIFF and XTENSA_NDIFF in BFD, treating difference value
as unsigned.
2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
bfd/
* bfd-in2.h: Regenerated.
* elf32-xtensa.c (elf_howto_table): New entries for
R_XTENSA_PDIFF{8,16,32} and R_XTENSA_NDIFF{8,16,32}.
(elf_xtensa_reloc_type_lookup, elf_xtensa_do_reloc)
(relax_section): Add cases for R_XTENSA_PDIFF{8,16,32} and
R_XTENSA_NDIFF{8,16,32}.
* libbfd.h (bfd_reloc_code_real_names): Add names for
BFD_RELOC_XTENSA_PDIFF{8,16,32} and
BFD_RELOC_XTENSA_NDIFF{8,16,32}.
* reloc.c: Add documentation for BFD_RELOC_XTENSA_PDIFF{8,16,32}
and BFD_RELOC_XTENSA_NDIFF{8,16,32}.
binutils/
* readelf.c (is_none_reloc): Recognize
BFD_RELOC_XTENSA_PDIFF{8,16,32} and
BFD_RELOC_XTENSA_NDIFF{8,16,32}.
gas/
* config/tc-xtensa.c (md_apply_fix): Replace
BFD_RELOC_XTENSA_DIFF{8,16,32} generation with
BFD_RELOC_XTENSA_PDIFF{8,16,32} and
BFD_RELOC_XTENSA_NDIFF{8,16,32} generation.
* testsuite/gas/xtensa/loc.d: Replace BFD_RELOC_XTENSA_DIFF16
with BFD_RELOC_XTENSA_PDIFF16 in the expected output.
include/
* elf/xtensa.h (elf_xtensa_reloc_type): New entries for
R_XTENSA_PDIFF{8,16,32} and R_XTENSA_NDIFF{8,16,32}.
ld/
* testsuite/ld-xtensa/relax-loc.d: New test definition.
* testsuite/ld-xtensa/relax-loc.s: New test source.
* testsuite/ld-xtensa/xtensa.exp (relax-loc): New test.
2020-04-20 10:04:41 +08:00
|
|
|
|
2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR ld/25861
|
|
|
|
|
* testsuite/ld-xtensa/relax-loc.d: New test definition.
|
|
|
|
|
* testsuite/ld-xtensa/relax-loc.s: New test source.
|
|
|
|
|
* testsuite/ld-xtensa/xtensa.exp (relax-loc): New test.
|
|
|
|
|
|
2020-04-22 23:20:02 +08:00
|
|
|
|
2020-04-22 Fangrui Song <maskray@google.com>
|
|
|
|
|
|
|
|
|
|
PR ld/25806
|
|
|
|
|
* ldlang.h (struct lang_input_statement_struct): Add extra_search_path.
|
|
|
|
|
* ldlang.c (current_input_file): New.
|
|
|
|
|
(ldirname): New.
|
|
|
|
|
(new_afile): Add from_filename parameter. Set extra_search_path.
|
|
|
|
|
(lang_add_input_file): Pass current_input_file to new_afile.
|
|
|
|
|
(load_symbols): Set current_input_file.
|
|
|
|
|
* ldfile.c (ldfile_open_file): If extra_search_path has been set
|
|
|
|
|
then scan it for the file that needs to be opened.
|
|
|
|
|
* ld.texi: Document the new behaviour.
|
|
|
|
|
* NEWS: Mention the new feature.
|
|
|
|
|
|
2020-04-22 19:39:31 +08:00
|
|
|
|
2020-04-22 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-scripts/default-script1.d: Correct mingw skip.
|
|
|
|
|
* testsuite/ld-scripts/default-script2.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/default-script3.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/default-script4.d: Likewise.
|
|
|
|
|
|
2020-04-21 22:10:52 +08:00
|
|
|
|
2020-04-21 Stephen Casner <casner@acm.org>
|
|
|
|
|
|
|
|
|
|
PR 25829
|
|
|
|
|
* testsuite/ld-scripts/script.exp (check_script)
|
|
|
|
|
(extract_symbol_test): Make test addresses fit in 16 bits.
|
|
|
|
|
* testsuite/ld-scripts/memory.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/memory_sym.t (TXT_LENGTH): Likewise.
|
|
|
|
|
* testsuite/ld-scripts/default-script.t (_START): Likewise.
|
|
|
|
|
* testsuite/ld-scripts/default-script1.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/default-script2.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/default-script3.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/default-script4.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/empty-address-1.t: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/empty-address-1.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/empty-address-2a.d: Likewise.
|
|
|
|
|
* testsuite/ld-scripts/empty-address-2b.d: Likewise.
|
|
|
|
|
* testsuite/ld-misc/start.s: .long -> .dc.a to allow relocation to
|
|
|
|
|
fit target address size.
|
2020-04-22 19:39:31 +08:00
|
|
|
|
* testsuite/ld-scripts/empty-address-1.s: Likewise.
|
2020-04-21 22:10:52 +08:00
|
|
|
|
* testsuite/ld-scripts/empty-address-2.s: Likewise.
|
|
|
|
|
|
2020-04-21 20:23:51 +08:00
|
|
|
|
2020-04-21 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/25849
|
|
|
|
|
* ldelfgen.c (ldelf_map_segments): Call
|
|
|
|
|
elf_backend_strip_zero_sized_dynamic_sections.
|
|
|
|
|
* testsuite/ld-alpha/tlsbinr.rd: Updated.
|
|
|
|
|
|
2020-04-18 14:27:07 +08:00
|
|
|
|
2020-04-20 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-powerpc/tlsopt5.s: Rename foo to aaaaa.
|
|
|
|
|
* testsuite/ld-powerpc/tlsopt5.d: Adjust to suit.
|
|
|
|
|
* testsuite/ld-powerpc/tlsopt6.d: Likewise.
|
|
|
|
|
|
2020-04-19 04:17:24 +08:00
|
|
|
|
2020-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/warn1.d: Don't xfail on 64-bit Solaris/SPARC.
|
|
|
|
|
* testsuite/ld-elf/warn2.d: Likewise.
|
|
|
|
|
|
2020-04-19 02:23:09 +08:00
|
|
|
|
2020-04-18 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/elf.exp (ASFLAGS): Add "--defsym NO_SET=1" for
|
|
|
|
|
alpha target.
|
|
|
|
|
* testsuite/ld-elf/pr19789.s: Use "=" if NO_SET is defined.
|
|
|
|
|
|
2020-04-17 21:16:27 +08:00
|
|
|
|
2020-04-16 Stephen Casner <casner@acm.org>
|
|
|
|
|
|
|
|
|
|
PR 18963
|
|
|
|
|
* testsuite/ld-scripts/pr18963.t: Reduce section sizes to fit in
|
|
|
|
|
16-bit address space.
|
|
|
|
|
* testsuite/ld-scripts/pr18963.d: Likewise.
|
|
|
|
|
|
2020-04-17 20:12:31 +08:00
|
|
|
|
2020-04-17 Juan Manuel Guerrero <juan.guerrero@gmx.de>
|
|
|
|
|
Jan W. Jagersma <jwjagersma@gmail.com>
|
|
|
|
|
|
|
|
|
|
* scripttempl/i386go32.sc: Provide symbol _environ. Link in
|
|
|
|
|
.ctors and .dtors. Discard LTO sections.
|
|
|
|
|
|
2020-04-17 20:03:53 +08:00
|
|
|
|
2020-04-17 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/config/default.exp: If not already set then create the
|
|
|
|
|
CCC_OVERRIDE_OPTIONS environment variable to help when running the
|
|
|
|
|
testsuite with clang.
|
|
|
|
|
* testsuite/ld-elf/pr22269-1.c: Add a missing return statement.
|
|
|
|
|
* testsuite/ld-elfvers/vers.exp: Add checks to detect if files
|
|
|
|
|
were built before attempting to copy them.
|
|
|
|
|
|
2020-04-15 21:25:08 +08:00
|
|
|
|
2020-04-15 Fangrui Song <maskray@google.com>
|
|
|
|
|
|
|
|
|
|
PR binutils/24613
|
|
|
|
|
* lexsup.c (parse_args): Change RM_GENERATE_WARNING and
|
|
|
|
|
RM_GENERATE_ERROR to RM_DIAGNOSE.
|
|
|
|
|
* emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Change
|
|
|
|
|
RM_GENERATE_ERROR to RM_DIAGNOSE.
|
|
|
|
|
* emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Likewise.
|
|
|
|
|
|
Fixes for the magic number used in PDP11 AOUT binaries.
PR ld/25677
include * aout/aout64.h (N_DATADDR): Add IMAGIC case.
bfd * pdp11.c: Add implementation of --imagic option.
(adjust_o_magic): Fix objcopy --extract-symbol test.
* libaout.h (enum aout_magic): Add i_magic.
ld * emulparams/pdp11.sh (SCRIPT_NAME): Change to pdp11.
(EXTRA_EM_FILE): New, add emulation file pdp11.
* scripttempl/pdp11.sc: New, derived from aout.sc without
irrelevant input sections.
* emultempl/pdp11.em (_add_options, _handle_option)
(_list_options): New. Add options -z, --imagic for pdp11-aout.
(_before_parse): Make --omagic be default instead of --nmagic.
(_get_script): Modify special-case linker script for --imagic.
* lexsup.c (parse_args): Explictly set config.text_read_only for -n.
* ld.texi (Options): Add documentation of PDP11-specific options.
(Options): Fix unrelated typo to --no-compact-branches.
* gen-doc.texi: @set PDP11.
* testsuite/ld-pdp11/pdp11.exp: New, start pdp11 testing.
* testsuite/ld-pdp11/sections.s: New, source for options tests.
* testsuite/ld-pdp11/imagic.d: New, test --imagic format.
* testsuite/ld-pdp11/imagicz.d: New, test -z (imagic) format.
* testsuite/ld-pdp11/nmagic.d: New, test --nmagic format.
* testsuite/ld-pdp11/omagic.d: New, test --omagic format.
2020-04-14 21:41:27 +08:00
|
|
|
|
2020-04-14 Stephen Casner <casner@acm.org>
|
|
|
|
|
|
|
|
|
|
PR ld/25677
|
|
|
|
|
* emulparams/pdp11.sh (SCRIPT_NAME): Change to pdp11.
|
|
|
|
|
(EXTRA_EM_FILE): New, add emulation file pdp11.
|
|
|
|
|
* scripttempl/pdp11.sc: New, derived from aout.sc without
|
|
|
|
|
irrelevant input sections.
|
|
|
|
|
* emultempl/pdp11.em (_add_options, _handle_option)
|
|
|
|
|
(_list_options): New. Add options -z, --imagic for pdp11-aout.
|
|
|
|
|
(_before_parse): Make --omagic be default instead of --nmagic.
|
|
|
|
|
(_get_script): Modify special-case linker script for --imagic.
|
|
|
|
|
* lexsup.c (parse_args): Explictly set config.text_read_only for -n.
|
|
|
|
|
* ld.texi (Options): Add documentation of PDP11-specific options.
|
|
|
|
|
(Options): Fix unrelated typo to --no-compact-branches.
|
|
|
|
|
* gen-doc.texi: @set PDP11.
|
|
|
|
|
* testsuite/ld-pdp11/pdp11.exp: New, start pdp11 testing.
|
|
|
|
|
* testsuite/ld-pdp11/sections.s: New, source for options tests.
|
|
|
|
|
* testsuite/ld-pdp11/imagic.d: New, test --imagic format.
|
|
|
|
|
* testsuite/ld-pdp11/imagicz.d: New, test -z (imagic) format.
|
|
|
|
|
* testsuite/ld-pdp11/nmagic.d: New, test --nmagic format.
|
|
|
|
|
* testsuite/ld-pdp11/omagic.d: New, test --omagic format.
|
|
|
|
|
|
2020-04-14 20:00:22 +08:00
|
|
|
|
2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR binutils/25707
|
|
|
|
|
* testsuite/ld-arm/armthumb-lib.sym: Updated.
|
|
|
|
|
* testsuite/ld-arm/farcall-mixed-app.sym: Likewise.
|
|
|
|
|
* testsuite/ld-arm/farcall-mixed-app2.sym: Likewise.
|
|
|
|
|
* testsuite/ld-arm/fdpic-main-m.sym: Likewise.
|
|
|
|
|
* testsuite/ld-arm/fdpic-main.sym: Likewise.
|
|
|
|
|
* testsuite/ld-arm/fdpic-shared-m.sym: Likewise.
|
|
|
|
|
* testsuite/ld-arm/fdpic-shared.sym: Likewise.
|
|
|
|
|
* testsuite/ld-arm/mixed-app.sym: Likewise.
|
|
|
|
|
* testsuite/ld-arm/mixed-lib.sym: Likewise.
|
|
|
|
|
* testsuite/ld-arm/preempt-app.sym: Likewise.
|
|
|
|
|
* testsuite/ld-elf/hash.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr13195.d: Likewise.
|
|
|
|
|
* testsuite/ld-elfvsb/hidden2.d: Likewise.
|
|
|
|
|
* testsuite/ld-mips-elf/hash2.d: Likewise.
|
|
|
|
|
|
2020-04-10 17:18:10 +08:00
|
|
|
|
2020-04-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-shared/shared.exp: Remove dangling comments.
|
|
|
|
|
xfail shared non PIC tests on Solaris.
|
|
|
|
|
|
ld: Fix pr22269-1 on 32-bit Solaris/SPARC
pr22269-1.s currently FAILs to assemble on 32-bit Solaris/SPARC:
ERROR: -K PIC tmpdir/pr22269-1.s: assembly failed
UNRESOLVED: pr22269-1 (static pie undefined weak)
tmpdir/pr22269-1.s: Assembler messages:
tmpdir/pr22269-1.s:27: Error: Architecture mismatch on "be,pn %icc,.LL4 ,pn %icc,.LL4".
tmpdir/pr22269-1.s:27: (Requires v9|v9a|v9b|v9c|v9d|v9e|v9v|v9m|m8; requested architecture is sparclite.)
tmpdir/pr22269-1.s:32: Error: Architecture mismatch on "return %i7+8".
tmpdir/pr22269-1.s:32: (Requires v9|v9a|v9b|v9c|v9d|v9e|v9v|v9m|m8; requested architecture is sparclite.)
tmpdir/pr22269-1.s:36: Error: Architecture mismatch on "return %i7+8".
tmpdir/pr22269-1.s:36: (Requires v9|v9a|v9b|v9c|v9d|v9e|v9v|v9m|m8; requested architecture is sparclite.)
I could trace this to the fact that gcc on sparc-sun-solaris2.* defaults
to --with-cpu=v9. So the gcc -S step of compiling the testcase is run
with -mcpu=v9, while the manual invocation of as-new lacks the
corresponding -Av9, creating a mismatch.
Solaris seems to be the only affected target, otherwise only
64-bit-default configurations default to --with-cpu=v9 or
--with-cpu=ultrasparc: sparcv9-*-*, sparc64-*-*,
sparc64-*-freebsd*, ultrasparc-*-freebsd*, and sparc64-*-openbsd*.
This patch just adds -Av9 to AFLAGS_PIC in ld-elf/shared.exp. It has a
precedent in ld-elfvers/vers.exp where -Av9a is added to as_options on
sparc-*-*. It lets the test pass and causes no other changes in
sparc-sun-solaris2.11 test results.
* testsuite/ld-elf/shared.exp: Add -Av9 to AFLAGS_PIC on sparc*-*-*.
2020-04-09 19:10:40 +08:00
|
|
|
|
2020-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/shared.exp: Add -Av9 to AFLAGS_PIC on sparc*-*-*.
|
|
|
|
|
|
2020-04-02 22:39:55 +08:00
|
|
|
|
2020-04-02 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/config/default.exp (NOCF_PROTECTION_CFLAGS): Replace
|
|
|
|
|
nopie with available.
|
|
|
|
|
|
2020-04-02 22:03:08 +08:00
|
|
|
|
2020-04-02 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/config/default.exp (NOCF_PROTECTION_CFLAGS): New.
|
|
|
|
|
Set to "-fcf-protection=none" if target compiler supports it.
|
|
|
|
|
* testsuite/ld-srec/srec.exp: Add $NOCF_PROTECTION_CFLAGS to
|
|
|
|
|
CC and CXX.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Add $NOCF_PROTECTION_CFLAGS
|
|
|
|
|
to PLT BND tests.
|
|
|
|
|
|
2020-04-02 19:44:01 +08:00
|
|
|
|
2020-04-02 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/linux-x86.exp (check_pr25749a): Compile with
|
|
|
|
|
-I../bfd.
|
|
|
|
|
(check_pr25749b): Likewise.
|
|
|
|
|
|
ld: Disable ifunc tests on Solaris
A couple of ld ifunc tests currently FAIL on 64-bit Solaris/x86:
FAIL: ld-ifunc/ifunc-10-x86-64
FAIL: ld-ifunc/ifunc-11-x86-64
FAIL: ld-ifunc/ifunc-12-x86-64
FAIL: ld-ifunc/ifunc-13-x86-64
FAIL: ld-ifunc/ifunc-14a-x86-64
FAIL: ld-ifunc/ifunc-14b-x86-64
FAIL: ld-ifunc/ifunc-14c-x86-64
FAIL: ld-ifunc/ifunc-14d-x86-64
FAIL: ld-ifunc/ifunc-14e-x86-64
FAIL: ld-ifunc/ifunc-14f-x86-64
FAIL: ld-ifunc/ifunc-15-x86-64
FAIL: ld-ifunc/ifunc-17a-x86-64
FAIL: ld-ifunc/ifunc-17b-x86-64
FAIL: ld-ifunc/ifunc-2-local-x86-64-now
FAIL: ld-ifunc/ifunc-2-local-x86-64
FAIL: ld-ifunc/ifunc-2-x86-64-now
FAIL: ld-ifunc/ifunc-2-x86-64
FAIL: ld-ifunc/ifunc-20-x86-64
FAIL: ld-ifunc/pr17154-x86-64-now
FAIL: ld-ifunc/pr17154-x86-64
For one, the actual error is weird:
./ld-new: target elf64-x86-64 not found
failed with: <./ld-new: target elf64-x86-64 not found>, no expected output
FAIL: ld-ifunc/ifunc-10-x86-64
although ld -V does report the elf_x86_64 emulation as supported:
$ ./ld/ld-new -V
GNU ld (GNU Binutils) 2.34.50.20200328
Supported emulations:
elf_x86_64_sol2
elf_x86_64
[...]
When using ld -m elf_x86_64_sol2 instead, one of the testcases links
successfully.
However, there's no point in pursuing this: Solaris does not support
ifunc, as can be seen in <sys/elf.h>:
/*
* GNU/Linux specific symbol type not used by Solaris
*/
#define STT_GNU_IFUNC 10
and never will, given that it has symbol capabilities as solution to
effectively the same problem:
http://www.linker-aliens.org/blogs/rie/entry/symbol_capabilitie/
Therefore this patch disables ifunc testing on Solaris completely by
removing Solaris from binutils/testsuite/lib/binutils-common.exp
(supports_gnu_osabi). The ifunc part is justified above. SHF_GNU_MBIND is
in the OS-specific range and conflicts with
#define SHF_SUNW_REALLOC 0x01000000 /* internal: krtld realloc */
While the comment suggests this might be relocatable without too much
problems, the description of mbind (no formal spec AFAICS, just the
comment in the binutils patch submission) strongly suggests that this
isn't relevant to Solaris at all.
Indirectly, clearing supports_gnu_osabi on Solaris disables
supports_gnu_unique. Again, Solaris <sys/elf.h> has
/*
* GNU/Linux specific binding not used by Solaris
*/
#define STB_GNU_UNIQUE 10
so this seems the right thing to do.
Afterwards, one can remove the explicit mentions of *-*-solaris2* in
quite a number of (but not all) the ld-ifunc dump file notarget lists.
There's one fallout, though: two gas tests now XPASS because they are
xfail'ed for !supports_gnu_osabi:
XPASS: mbind sections 12
XPASS: mbind section contents 16
XPASS: mbind sections 16
XPASS: mbind section contents 16
To fix that, I've changed
#xfail: ![supports_gnu_osabi]
to notarget.
Tested on x86_64-pc-solaris2.11, i386-pc-solaris2.11,
x86_64-pc-linux-gnu, and i686-pc-linux-gnu.
ld:
* testsuite/ld-ifunc/ifunc-10-i386.d: Remove *-*-solaris2* from
notarget.
* ifunc-11-i386.d: Likewise.
* ifunc-12-i386.d: Likewise.
* ifunc-13-i386.d: Likewise.
* ifunc-14a-i386.d: Likewise.
* ifunc-14b-i386.d: Likewise.
* ifunc-14c-i386.d: Likewise.
* ifunc-14d-i386.d: Likewise.
* ifunc-14e-i386.d: Likewise.
* ifunc-14f-i386.d: Likewise.
* ifunc-15-i386.d: Likewise.
* ifunc-16-i386-now.d: Likewise.
* ifunc-16-i386.d: Likewise.
* ifunc-17a-i386.d: Likewise.
* ifunc-17b-i386.d: Likewise.
* ifunc-18a-i386.d: Likewise.
* ifunc-18b-i386.d: Likewise.
* ifunc-19a-i386.d: Likewise.
* ifunc-19b-i386.d: Likewise.
* ifunc-2-i386-now.d: Likewise.
* ifunc-2-i386.d: Likewise.
* ifunc-2-local-i386-now.d: Likewise.
* ifunc-2-local-i386.d: Likewise.
* ifunc-20-i386.d: Likewise.
* ifunc-21-i386.d: Likewise.
* ifunc-22-i386.d: Likewise.
* ifunc-5a-i386.d: Likewise.
* ifunc-5a-local-i386.d: Likewise.
* ifunc-5b-i386.d: Likewise.
* ifunc-5b-local-i386.d: Likewise.
* ifunc-5r-local-i386.d: Likewise.
* ifunc-6a-i386.d: Likewise.
* ifunc-6b-i386.d: Likewise.
* ifunc-7a-i386.d: Likewise.
* ifunc-7b-i386.d: Likewise.
* ifunc-8-i386.d: Likewise.
* ifunc-9-i386.d: Likewise.
* pr17154-i386-now.d: Likewise.
* pr17154-i386.d: Likewise.
* ifunc-23a-x86.d: Remove notarget.
* ifunc-24a-x86.d: Likewise.
* ifunc-25a-x86.d: Likewise.
gas:
* testsuite/gas/elf/section12a.d: Use notarget instead of xfail.
* testsuite/gas/elf/section12b.d: Likewise.
* testsuite/gas/elf/section16a.d: Likewise.
* testsuite/gas/elf/section16b.d: Likewise.
binutils:
* testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
enable on *-*-solaris*.
2020-04-02 16:52:57 +08:00
|
|
|
|
2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-10-i386.d: Remove *-*-solaris2* from
|
|
|
|
|
notarget.
|
|
|
|
|
* ifunc-11-i386.d: Likewise.
|
|
|
|
|
* ifunc-12-i386.d: Likewise.
|
|
|
|
|
* ifunc-13-i386.d: Likewise.
|
|
|
|
|
* ifunc-14a-i386.d: Likewise.
|
|
|
|
|
* ifunc-14b-i386.d: Likewise.
|
|
|
|
|
* ifunc-14c-i386.d: Likewise.
|
|
|
|
|
* ifunc-14d-i386.d: Likewise.
|
|
|
|
|
* ifunc-14e-i386.d: Likewise.
|
|
|
|
|
* ifunc-14f-i386.d: Likewise.
|
|
|
|
|
* ifunc-15-i386.d: Likewise.
|
|
|
|
|
* ifunc-16-i386-now.d: Likewise.
|
|
|
|
|
* ifunc-16-i386.d: Likewise.
|
|
|
|
|
* ifunc-17a-i386.d: Likewise.
|
|
|
|
|
* ifunc-17b-i386.d: Likewise.
|
|
|
|
|
* ifunc-18a-i386.d: Likewise.
|
|
|
|
|
* ifunc-18b-i386.d: Likewise.
|
|
|
|
|
* ifunc-19a-i386.d: Likewise.
|
|
|
|
|
* ifunc-19b-i386.d: Likewise.
|
|
|
|
|
* ifunc-2-i386-now.d: Likewise.
|
|
|
|
|
* ifunc-2-i386.d: Likewise.
|
|
|
|
|
* ifunc-2-local-i386-now.d: Likewise.
|
|
|
|
|
* ifunc-2-local-i386.d: Likewise.
|
|
|
|
|
* ifunc-20-i386.d: Likewise.
|
|
|
|
|
* ifunc-21-i386.d: Likewise.
|
|
|
|
|
* ifunc-22-i386.d: Likewise.
|
|
|
|
|
* ifunc-5a-i386.d: Likewise.
|
|
|
|
|
* ifunc-5a-local-i386.d: Likewise.
|
|
|
|
|
* ifunc-5b-i386.d: Likewise.
|
|
|
|
|
* ifunc-5b-local-i386.d: Likewise.
|
|
|
|
|
* ifunc-5r-local-i386.d: Likewise.
|
|
|
|
|
* ifunc-6a-i386.d: Likewise.
|
|
|
|
|
* ifunc-6b-i386.d: Likewise.
|
|
|
|
|
* ifunc-7a-i386.d: Likewise.
|
|
|
|
|
* ifunc-7b-i386.d: Likewise.
|
|
|
|
|
* ifunc-8-i386.d: Likewise.
|
|
|
|
|
* ifunc-9-i386.d: Likewise.
|
|
|
|
|
* pr17154-i386-now.d: Likewise.
|
|
|
|
|
* pr17154-i386.d: Likewise.
|
|
|
|
|
|
|
|
|
|
* ifunc-23a-x86.d: Remove notarget.
|
|
|
|
|
* ifunc-24a-x86.d: Likewise.
|
|
|
|
|
* ifunc-25a-x86.d: Likewise.
|
|
|
|
|
|
2020-04-02 15:38:48 +08:00
|
|
|
|
2020-04-02 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR ld/25747
|
|
|
|
|
* ldfile.c (ldfile_open_file): Fix typo in warning message.
|
|
|
|
|
|
2020-04-02 05:31:47 +08:00
|
|
|
|
2020-04-01 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/25749
|
|
|
|
|
PR ld/25754
|
|
|
|
|
* testsuite/ld-elf/linux-x86.exp: Run ld/25749 tests.
|
|
|
|
|
* testsuite/ld-elf/pr25749-1.c: New file.
|
|
|
|
|
* testsuite/ld-elf/pr25749-1a.c: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25749-1b.c: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25749-1b.err: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25749-1c.c: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25749-1d.c: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25749-2.c: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25749-2a.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25749-2b.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25749.rd: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25754-1a.c: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25754-1b.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25754-2a.c: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25754-2b.err: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25754-2b.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25754-3a.c: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25754-3b.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25754-4a.c: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25754-4b.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25754-4c.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25754-5a.c: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25754-5b.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25754-5c.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25754-6a.c: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25754-6b.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr19609-6a.d: Don't expect linker error.
|
|
|
|
|
|
2020-04-02 01:31:22 +08:00
|
|
|
|
2020-04-01 Tamar Christina <tamar.christina@arm.com>
|
|
|
|
|
|
|
|
|
|
PR ld/16017
|
|
|
|
|
* testsuite/ld-arm/arm-elf.exp (thumb-plt, thumb-plt-got): Skip for NaCL.
|
|
|
|
|
|
2020-04-02 00:25:28 +08:00
|
|
|
|
2020-04-01 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR ld/25747
|
|
|
|
|
* ldfile.c (ldfile_open_file): If a search for a library fails,
|
|
|
|
|
but there is a file that would match if it had a "lib" prefix to
|
|
|
|
|
its name, then tell the user.
|
|
|
|
|
|
2020-04-01 17:47:18 +08:00
|
|
|
|
2020-04-01 Tamar Christina <tamar.christina@arm.com>
|
|
|
|
|
|
|
|
|
|
PR ld/16017
|
|
|
|
|
* testsuite/ld-arm/arm-elf.exp (thumb-plt-got): New.
|
|
|
|
|
* testsuite/ld-arm/thumb-plt-got.d: New test.
|
|
|
|
|
|
2020-04-01 17:40:07 +08:00
|
|
|
|
2020-04-01 Tamar Christina <tamar.christina@arm.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-arm/arm-elf.exp (thumb-plt): New.
|
|
|
|
|
* testsuite/ld-arm/thumb-plt.d: New test.
|
|
|
|
|
* testsuite/ld-arm/thumb-plt.s: New test.
|
|
|
|
|
|
2020-04-01 10:10:18 +08:00
|
|
|
|
2020-04-01 Hans-Peter Nilsson <hp@bitrange.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-scripts/defined4.d: Don't xfail mmix-*-*.
|
|
|
|
|
|
2020-03-30 23:30:02 +08:00
|
|
|
|
2020-03-30 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR binutils/25662
|
|
|
|
|
* emultempl/pe.em (after_open): Replace initialisation of the
|
|
|
|
|
insert_timestamp field in the pe_data structure with an
|
|
|
|
|
initialisation of the timestamp field.
|
|
|
|
|
* emultemp/pep.em: Likewise.
|
|
|
|
|
* pe-dll.c (fill_edata): Use the timestamp field in the pe_data
|
|
|
|
|
structure instead of the insert_timestamp field.
|
|
|
|
|
|
2020-03-28 20:06:58 +08:00
|
|
|
|
2020-03-28 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR 25732
|
|
|
|
|
* emulparams/elf_i386_ldso.sh (COMMONPAGESIZE): New.
|
|
|
|
|
* testsuite/ld-elf/shared.exp:Don't xfail pr20995-2 tests for
|
|
|
|
|
Solaris.
|
|
|
|
|
|
2020-03-27 22:31:35 +08:00
|
|
|
|
2020-03-27 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR 25732
|
|
|
|
|
* testsuite/ld-elf/shared.exp: Xfail pr20995-2 tests for Solaris.
|
|
|
|
|
|
2020-03-27 21:59:41 +08:00
|
|
|
|
2020-03-27 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR 25732
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-23a-x86.d: Add notarget for Solaris.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
|
|
|
|
|
|
2020-03-25 10:37:54 +08:00
|
|
|
|
2020-03-25 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/compress1c.d: xfail h8300.
|
|
|
|
|
* testsuite/ld-elf/compressed1c.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/compressed1e.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/dynamic1.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/dynsym1.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/ehdr_start-shared.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/exclude3b.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/export-class.exp: Don't run without -shared support.
|
|
|
|
|
* testsuite/ld-elf/global1.d: xfail h8300.
|
|
|
|
|
* testsuite/ld-elf/hash.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/loadaddr1.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/loadaddr2.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/local1.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/mbind1b.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/mbind1c.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/now-1.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/now-2.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/now-3.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/now-4.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pie.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr12975.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr13177.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr13195.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr16322.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr16498a.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr16498b.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr17615.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr19162.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr19539.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr19617a.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr19698.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr20513c.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr20513d.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr21389a.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr21389b.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr21389c.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr21562a.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr21562b.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr21562c.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr21562d.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr21562e.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr21562f.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr21562g.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr21562h.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr21562i.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr21562j.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr21562k.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr21562l.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr21562m.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr21562n.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr21903a.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr21903b.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr21903d.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr22269a.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr22269b.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr22393-1a.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr22393-1b.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr22393-1c.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr22393-1d.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr22393-1e.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr22393-1f.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr22423.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr22450.d: xfail avr, crx, h8300, ip2k, m68hc11,
|
|
|
|
|
and xc16x.
|
|
|
|
|
* testsuite/ld-elf/pr23658-1c.d: xfail h8300.
|
|
|
|
|
* testsuite/ld-elf/pr25708.d: xfail h8300 and hppa64.
|
|
|
|
|
* testsuite/ld-elf/rpath-1.d: xfail h8300.
|
|
|
|
|
* testsuite/ld-elf/rpath-2.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/runpath-1.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/runpath-2.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/sizeofb.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/startofb.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/strtab.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/textaddr1.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/textaddr2.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/textaddr4.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/textaddr5.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/textaddr6.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/unknown2.d: Likewise.
|
|
|
|
|
* testsuite/ld-undefined/entry-3.d: Likewise.
|
|
|
|
|
* testsuite/ld-undefined/entry-4.d: Likewise.
|
|
|
|
|
* testsuite/ld-h8300/h8300.exp: Pass appropriate ld -m option.
|
|
|
|
|
* testsuite/ld-h8300/gcsection.d: Remove ld -m option and relax
|
|
|
|
|
file format match.
|
|
|
|
|
* testsuite/ld-h8300/relax-2.d: Likewise.
|
|
|
|
|
* testsuite/ld-h8300/relax-3.d: Likewise.
|
|
|
|
|
* testsuite/ld-h8300/relax-4.d: Likewise.
|
|
|
|
|
* testsuite/ld-h8300/relax-5.d: Likewise.
|
|
|
|
|
* testsuite/ld-h8300/relax-6.d: Likewise.
|
|
|
|
|
* testsuite/ld-h8300/relax-7.d: Likewise.
|
|
|
|
|
* testsuite/ld-h8300/relax.d: Relax file format match.
|
|
|
|
|
|
2020-03-24 19:23:11 +08:00
|
|
|
|
2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR binutils/25708
|
|
|
|
|
* testsuite/ld-elf/pr25708.d: New file.
|
|
|
|
|
|
2020-03-23 18:50:54 +08:00
|
|
|
|
2020-03-23 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (ALL_EMULATION_SOURCES): Reinstate ei386aout.c.
|
|
|
|
|
Include ei386aout dep file.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* po/BLD-POTFILES.in: Regenerate.
|
|
|
|
|
|
plugin: Don't invoke LTO-wrapper
Don't invoke LTO-wrapper since the LTO wrapper approach is not only
slow but also unreliable. For GCC 10 or newer, LDPT_ADD_SYMBOLS_V2
will be used.
bfd/
* configure.ac (HAVE_EXECUTABLE_SUFFIX): Removed.
(EXECUTABLE_SUFFIX): Likewise.
* config.in: Regenerated.
* configure: Likewise.
* plugin.c (bfd_plugin_close_and_cleanup): Defined as
_bfd_generic_close_and_cleanup.
(plugin_list_entry): Remove resolution_file, resolution_option,
real_bfd, real_nsyms, real_syms, lto_nsyms, lto_syms, gcc,
lto_wrapper, gcc_env and initialized,
(need_lto_wrapper_p): Removed.
(get_lto_wrapper): Likewise.
(setup_lto_wrapper_env): Likewise.
(register_all_symbols_read): Likewise.
(egister_cleanup): Likewise.
(get_symbols): Likewise.
(add_input_file): Likewise.
(bfd_plugin_set_program_name): Remove need_lto_wrapper.
(add_symbols): Updated.
(try_claim): Likewise.
(try_load_plugin): Likewise.
(bfd_plugin_canonicalize_symtab): Likewise.
* plugin.h (bfd_plugin_set_program_name): Remove int argument.
(plugin_data_struct): Remove real_bfd, real_nsyms and real_syms.
binutils/
* ar.c (main): Update bfd_plugin_set_program_name call.
* nm.c (main): Likewise.
ld/
* testsuite/ld-plugin/lto.exp (lto_link_tests): Run PR ld/25355
test only for GCC 10 or newer.
2020-03-20 18:55:17 +08:00
|
|
|
|
2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-plugin/lto.exp (lto_link_tests): Run PR ld/25355
|
|
|
|
|
test only for GCC 10 or newer.
|
|
|
|
|
|
2020-03-20 10:27:42 +08:00
|
|
|
|
2020-03-20 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testplug.c (parse_symdefstr): Use %hhi to read sym->def, and
|
|
|
|
|
clear new fields.
|
|
|
|
|
* testplug2.c (parse_symdefstr): Likewise.
|
|
|
|
|
* testplug3.c (parse_symdefstr): Likewise.
|
|
|
|
|
* testplug4.c (parse_symdefstr): Likewise.
|
|
|
|
|
|
2020-03-18 20:36:53 +08:00
|
|
|
|
2020-03-18 Christophe Lyon <christophe.lyon@linaro.org>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-arm/non-contiguous-arm4.d: Fix expected output.
|
|
|
|
|
* testsuite/ld-powerpc/non-contiguous-powerpc.d: Likewise.
|
|
|
|
|
|
2020-03-17 23:59:01 +08:00
|
|
|
|
2020-03-18 Christophe Lyon <christophe.lyon@linaro.org>
|
|
|
|
|
|
|
|
|
|
* emultempl/xtensaelf.em: Emit a fatal error message
|
|
|
|
|
instead of calling abort.
|
|
|
|
|
* ldlang.c: Likewise.
|
|
|
|
|
|
2020-03-14 12:17:15 +08:00
|
|
|
|
2020-03-14 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/non-contiguous.d: Don't xfail generic ELF
|
|
|
|
|
targets. Don't skip xtensa, xfail instead.
|
|
|
|
|
|
2019-11-25 16:55:37 +08:00
|
|
|
|
2020-03-13 Christophe Lyon <christophe.lyon@linaro.org>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_add_section): Add support for
|
|
|
|
|
non_contiguous_regions.
|
|
|
|
|
(size_input_section): Likewise.
|
|
|
|
|
(lang_size_sections_1): Likewise.
|
|
|
|
|
(process_insert_statements): Likewise.
|
|
|
|
|
* ldlex.h (option_values): Add OPTION_NON_CONTIGUOUS_REGIONS and
|
|
|
|
|
OPTION_NON_CONTIGUOUS_REGIONS_WARNINGS.
|
|
|
|
|
* lexsup.c (ld_options): Add entries for
|
|
|
|
|
--enable-non-contiguous-regions and
|
|
|
|
|
--enable-non-contiguous-regions-warnings.
|
|
|
|
|
(parse_args): Handle it.
|
|
|
|
|
* NEWS: Add --enable-non-contiguous-regions and
|
|
|
|
|
--enable-non-contiguous-regions-warnings.
|
|
|
|
|
* ld.texi: Add --enable-non-contiguous-regions and
|
|
|
|
|
--enable-non-contiguous-regions-warnings documentation.
|
|
|
|
|
* emultempl/armelf.em (elf32_arm_add_stub_section): Add
|
|
|
|
|
SEC_LINKER_CREATED flag.
|
|
|
|
|
* emultempl/xtensaelf.em (ld_build_required_section_dependence):
|
|
|
|
|
Emit an error when --enable-non-contiguous-regions is used.
|
|
|
|
|
* testsuite/ld-elf/non-contiguous.d: New.
|
|
|
|
|
* testsuite/ld-elf/non-contiguous.ld: New.
|
|
|
|
|
* testsuite/ld-elf/non-contiguous.s: New.
|
|
|
|
|
* testsuite/ld-arm/arm-elf.exp: Run the new tests.
|
|
|
|
|
* testsuite/ld-arm/arm-elf/non-contiguous-arm.s: New.
|
|
|
|
|
* testsuite/ld-arm/arm-elf/non-contiguous-arm.d: New.
|
|
|
|
|
* testsuite/ld-arm/arm-elf/non-contiguous-arm.ld: New.
|
|
|
|
|
* testsuite/ld-arm/arm-elf/non-contiguous-arm2.d: New.
|
|
|
|
|
* testsuite/ld-arm/arm-elf/non-contiguous-arm3.ld: New.
|
|
|
|
|
* testsuite/ld-arm/arm-elf/non-contiguous-arm3.d: New.
|
|
|
|
|
* testsuite/ld-arm/arm-elf/non-contiguous-arm3.ld: New.
|
|
|
|
|
* testsuite/ld-arm/arm-elf/non-contiguous-arm4.d: New.
|
|
|
|
|
* testsuite/ld-arm/arm-elf/non-contiguous-arm4.ld: New.
|
|
|
|
|
* testsuite/ld-arm/arm-elf/non-contiguous-arm5.d: New.
|
|
|
|
|
* testsuite/ld-arm/arm-elf/non-contiguous-arm5.ld: New.
|
|
|
|
|
* testsuite/ld-arm/arm-elf/non-contiguous-arm6.d: New.
|
|
|
|
|
* testsuite/ld-arm/arm-elf/non-contiguous-arm6.ld: New.
|
|
|
|
|
* testsuite/ld-powerpc/powerpc.exp: Run new tests.
|
|
|
|
|
* testsuite/ld-powerpc/non-contiguous-powerpc.d: New.
|
|
|
|
|
* testsuite/ld-powerpc/non-contiguous-powerpc.ld: New.
|
|
|
|
|
* testsuite/ld-powerpc/non-contiguous-powerpc.sd: New.
|
|
|
|
|
* testsuite/ld-powerpc/non-contiguous-powerpc64.d: New.
|
|
|
|
|
|
2020-03-13 22:34:56 +08:00
|
|
|
|
2020-03-13 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/24920
|
|
|
|
|
* emulparams/elf32_x86_64.sh: Use static.sh.
|
|
|
|
|
* emulparams/elf_i386.sh: Likewise.
|
|
|
|
|
* emulparams/elf_x86_64.sh: Likewise.
|
|
|
|
|
* emulparams/static.sh: New file.
|
|
|
|
|
* emultempl/elf-x86.em: Include "ldlex.h".
|
|
|
|
|
* testsuite/ld-elf/pr24920.err: New file.
|
|
|
|
|
* testsuite/ld-elf/linux-x86.exp: Run ld/24920 tests.
|
|
|
|
|
|
2020-03-03 04:11:00 +08:00
|
|
|
|
2020-03-13 Christian Eggers <ceggers@gmx.de>
|
|
|
|
|
|
|
|
|
|
* ldexp.c (fold_name): Return SIZEOF_HEADERS in bytes.
|
|
|
|
|
|
2020-03-11 07:34:53 +08:00
|
|
|
|
2020-03-11 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ldelf.c (elf_orphan_compatible): Return false when two sections
|
|
|
|
|
have differing SHF_MASKPROC or SHF_MASKOS flags.
|
|
|
|
|
|
2020-03-05 19:04:23 +08:00
|
|
|
|
2020-03-05 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 25570
|
|
|
|
|
* ldlang.c (lang_size_sections_1): Don't report changes on
|
|
|
|
|
second and subsequent iterations that make no change in
|
|
|
|
|
alignment from that already reported.
|
|
|
|
|
|
2020-03-04 18:44:19 +08:00
|
|
|
|
2020-03-05 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 25570
|
|
|
|
|
* ldlang.c (lang_sizing_iteration): New static var.
|
|
|
|
|
(lang_size_sections_1): Warn about no memory region only on first
|
|
|
|
|
iteration. Warn about changing start address on first iteration
|
|
|
|
|
then any delta from that on subsequent iterations. Report a signed
|
|
|
|
|
delta.
|
|
|
|
|
(one_lang_size_sections_pass): Increment lang_sizing_iteration.
|
|
|
|
|
|
2020-03-03 20:53:00 +08:00
|
|
|
|
2020-03-03 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR 25588
|
|
|
|
|
* ld.texi (Options): Update the description of the --rpath-link
|
|
|
|
|
option.
|
|
|
|
|
|
bfd_cleanup for object_p
The object_p (and archive_p, core_file_p) functions are not supposed
to have any target specific malloc'd memory attached to the bfd on
their return. This should be obvious on a failure return, but it's
also true for a successful return. The reason is that even though the
object_p recognises the file, that particular target may not be used
and thus the bfd won't be closed calling close_and_cleanup for the
target that allocated the memory.
It turns out that the object_p bfd_target* return value isn't needed.
In all cases except ld/plugin.c the target is abfd->xvec and with
ld/plugin.c the target isn't used. So this patch returns a cleanup
function from object_p instead, called in bfd_check_format_matches to
tidy the bfd before trying a different target match. The only cleanup
that does anything at this stage is the alpha-vms one.
bfd/
* targets.c (bfd_cleanup): New typedef.
(struct bfd <_bfd_check_format>): Return a bfd_cleanup.
* libbfd-in.h (_bfd_no_cleanup): Define.
* format.c (bfd_reinit): Add cleanup parameter, call it.
(bfd_check_format_matches): Set cleanup from _bfd_check_format
call and pass to bfd_reinit. Delete temp, use abfd->xvec instead.
* aout-target.h (callback, object_p): Return bfd_cleanup.
* aout-tic30.c (tic30_aout_callback, tic30_aout_object_p): Likewise.
* archive.c (bfd_generic_archive_p): Likewise.
* binary.c (binary_object_p): Likewise.
* coff-alpha.c (alpha_ecoff_object_p): Likewise.
* coff-ia64.c (ia64coff_object_p): Likewise.
* coff-rs6000.c (_bfd_xcoff_archive_p, rs6000coff_core_p): Likewise.
* coff-sh.c (coff_small_object_p): Likewise.
* coff-stgo32.c (go32_check_format): Likewise.
* coff64-rs6000.c (xcoff64_archive_p, rs6000coff_core_p),
(xcoff64_core_p): Likewise.
* coffgen.c (coff_real_object_p, coff_object_p): Likewise.
* elf-bfd.h (bfd_elf32_object_p, bfd_elf32_core_file_p),
(bfd_elf64_object_p, bfd_elf64_core_file_p): Likewise.
* elfcode.h (elf_object_p): Likewise.
* elfcore.h (elf_core_file_p): Likewise.
* i386msdos.c (msdos_object_p): Likewise.
* ihex.c (ihex_object_p): Likewise.
* libaout.h (some_aout_object_p): Likewise.
* libbfd-in.h (bfd_generic_archive_p, _bfd_dummy_target),
(_bfd_vms_lib_alpha_archive_p, _bfd_vms_lib_ia64_archive_p): Likewise.
* libbfd.c (_bfd_dummy_target): Likewise.
* libcoff-in.h (coff_object_p): Likewise.
* mach-o-aarch64.c (bfd_mach_o_arm64_object_p),
(bfd_mach_o_arm64_core_p): Likewise.
* mach-o-arm.c (bfd_mach_o_arm_object_p),
(bfd_mach_o_arm_core_p): Likewise.
* mach-o-i386.c (bfd_mach_o_i386_object_p),
(bfd_mach_o_i386_core_p): Likewise.
* mach-o-x86-64.c (bfd_mach_o_x86_64_object_p),
(bfd_mach_o_x86_64_core_p): Likewise.
* mach-o.c (bfd_mach_o_header_p, bfd_mach_o_gen_object_p),
(bfd_mach_o_gen_core_p, bfd_mach_o_fat_archive_p): Likewise.
* mach-o.h (bfd_mach_o_object_p, bfd_mach_o_core_p),
(bfd_mach_o_fat_archive_p, bfd_mach_o_header_p): Likewise.
* mmo.c (mmo_object_p): Likewise.
* pef.c (bfd_pef_object_p, bfd_pef_xlib_object_p): Likewise.
* peicode.h (coff_real_object_p, pe_ILF_object_p),
(pe_bfd_object_p): Likewise.
* plugin.c (ld_plugin_object_p, bfd_plugin_object_p): Likewise.
* ppcboot.c (ppcboot_object_p): Likewise.
* rs6000-core.c (rs6000coff_core_p): Likewise.
* som.c (som_object_setup, som_object_p): Likewise.
* srec.c (srec_object_p, symbolsrec_object_p): Likewise.
* tekhex.c (tekhex_object_p): Likewise.
* vms-alpha.c (alpha_vms_object_p): Likewise.
* vms-lib.c (_bfd_vms_lib_archive_p, _bfd_vms_lib_alpha_archive_p),
(_bfd_vms_lib_ia64_archive_p, _bfd_vms_lib_txt_archive_p): Likewise.
* wasm-module.c (wasm_object_p): Likewise.
* xsym.c (bfd_sym_object_p): Likewise.
* xsym.h (bfd_sym_object_p): Likewise.
* aoutx.h (some_aout_object_p): Likewise, and callback parameter
return type.
* pdp11.c (some_aout_object_p): Likewise.
* plugin.c (register_ld_plugin_object_p): Update object_p
parameter type.
* plugin.h (register_ld_plugin_object_p): Likewise.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
* libcoff.h: Regenerate.
ld/
* plugin.c (plugin_object_p): Return a bfd_cleanup.
(plugin_cleanup): New function.
2020-03-02 12:51:09 +08:00
|
|
|
|
2020-03-02 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* plugin.c (plugin_object_p): Return a bfd_cleanup.
|
|
|
|
|
(plugin_cleanup): New function.
|
|
|
|
|
|
2020-03-02 09:07:12 +08:00
|
|
|
|
2020-03-01 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/25618
|
|
|
|
|
* plugin.c (plugin_object_p): Copy the no_export field to the IR
|
|
|
|
|
dummy object.
|
|
|
|
|
* testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Add
|
|
|
|
|
PR ld/25618 tests.
|
|
|
|
|
* testsuite/ld-plugin/pr25618.d: New file.
|
|
|
|
|
* testsuite/ld-plugin/pr25618a.cc: Likewise.
|
|
|
|
|
* testsuite/ld-plugin/pr25618a.h: Likewise.
|
|
|
|
|
* testsuite/ld-plugin/pr25618b.cc: Likewise.
|
|
|
|
|
* testsuite/ld-plugin/pr25618b.h: Likewise.
|
|
|
|
|
|
2020-02-27 13:56:19 +08:00
|
|
|
|
2020-02-27 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 24511
|
|
|
|
|
* testsuite/ld-mmix/b-fixo2.d: Adjust for .data change.
|
|
|
|
|
* testsuite/ld-mmix/sec-2.d: Likewise.
|
|
|
|
|
* testsuite/ld-mmix/sec-3.d: Likewise.
|
|
|
|
|
* testsuite/ld-mmix/sec-4.d: Likewise.
|
|
|
|
|
* testsuite/ld-mmix/spec802.d: Likewise.
|
|
|
|
|
* testsuite/ld-mmix/spec803.d: Likewise.
|
|
|
|
|
* testsuite/ld-mmix/spec804.d: Likewise.
|
|
|
|
|
* testsuite/ld-mmix/spec805.d: Likewise.
|
|
|
|
|
* testsuite/ld-mmix/spec806.d: Likewise.
|
|
|
|
|
* testsuite/ld-mmix/spec807.d: Likewise.
|
|
|
|
|
* testsuite/ld-mmix/spec808.d: Likewise.
|
|
|
|
|
|
2020-02-26 19:56:28 +08:00
|
|
|
|
2020-02-26 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/25593
|
|
|
|
|
* testsuite/ld-plugin/lto.exp: Run PR ld/25593 tests.
|
|
|
|
|
* testsuite/ld-plugin/pr25593.d: New file.
|
|
|
|
|
* testsuite/ld-plugin/pr25593a-1.c: Likewise.
|
|
|
|
|
* testsuite/ld-plugin/pr25593a-2.c: Likewise.
|
|
|
|
|
* testsuite/ld-plugin/pr25593b.c: Likewise.
|
|
|
|
|
* testsuite/ld-plugin/pr25593c.c: Likewise.
|
|
|
|
|
* testsuite/ld-plugin/pr25593d.c: Likewise.
|
|
|
|
|
* testsuite/ld-plugin/pr25593e.c: Likewise.
|
|
|
|
|
|
2020-02-25 13:04:46 +08:00
|
|
|
|
2020-02-26 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/cskyelf.em: Indent labels correctly.
|
|
|
|
|
* ldfile.c: Likewise.
|
|
|
|
|
* ldlang.c: Likewise.
|
|
|
|
|
* plugin.c: Likewise.
|
|
|
|
|
|
2020-02-25 10:20:10 +08:00
|
|
|
|
2020-02-26 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 25593
|
|
|
|
|
* ldelf.c (ldelf_try_needed): Add DT_NEEDED lib to input_bfds.
|
|
|
|
|
(ldelf_after_open): Save state of input_bfds list before loading
|
|
|
|
|
DT_NEEDED libs. Traverse input_bfds list adding DT_NEEDED tags.
|
|
|
|
|
Restore input_bfds list.
|
|
|
|
|
* testsuite/ld-cris/gotplt1.d: Adjust for changed .dynstr order.
|
|
|
|
|
|
2020-02-24 22:52:34 +08:00
|
|
|
|
2020-02-24 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* po/fr.po: Update French translation.
|
|
|
|
|
|
2020-02-22 10:16:33 +08:00
|
|
|
|
2020-02-22 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 25585
|
|
|
|
|
* NEWS: Mention better "PHDR segment not covered by LOAD segment"
|
|
|
|
|
checking.
|
|
|
|
|
|
2020-02-20 01:46:10 +08:00
|
|
|
|
2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 25537
|
|
|
|
|
* emultempl/z80.em: Remove machine compatability checking.
|
|
|
|
|
|
|
|
|
|
2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 25517
|
|
|
|
|
* testsuite/ld-z80/arch_ez80_adl.d: Update command line.
|
|
|
|
|
* testsuite/ld-z80/arch_ez80_z80.d: Likewise.
|
|
|
|
|
* testsuite/ld-z80/arch_r800.d: Likewise.
|
|
|
|
|
* testsuite/ld-z80/arch_z180.d: Likewise.
|
|
|
|
|
* testsuite/ld-z80/arch_z80n.d: Likewise.
|
|
|
|
|
* testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
|
|
|
|
|
* testsuite/ld-z80/comb_arch_z180_z80.d: Likewise.
|
|
|
|
|
* testsuite/ld-z80/comb_arch_z80_ez80.d: Likewise.
|
|
|
|
|
* testsuite/ld-z80/comb_arch_z80_z180.d: Likewise.
|
|
|
|
|
* testsuite/ld-z80/comb_arch_z80_z80n.d: Likewise.
|
|
|
|
|
* testsuite/ld-z80/relocs_b_ez80.d: Likewise.
|
|
|
|
|
* testsuite/ld-z80/relocs_b_z80.d: Likewise.
|
|
|
|
|
* testsuite/ld-z80/relocs_f_ez80.d: Likewise.
|
|
|
|
|
* testsuite/ld-z80/relocs_f_z80.d: Likewise.
|
|
|
|
|
* testsuite/ld-z80/relocs_f_z80n.d: Likewise.
|
|
|
|
|
|
2020-02-19 10:40:47 +08:00
|
|
|
|
2020-02-19 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-plugin/pr25355.d: Allow alpha-linux nm result.
|
|
|
|
|
|
Use GCC LTO wrapper to get real symbols from LTO IR objects
GCC LTO wrapper is needed to extract real symbols from LTO IR objects.
This patch does the following:
1. Set up GCC LTO wrapper for each LTO IR object.
2. Run GCC LTO wrapper to get the real object.
3. Extract symbol info from the real object.
4. Cleanup afterwards.
bfd/
PR binutils/25355
* configure.ac (HAVE_EXECUTABLE_SUFFIX): New AC_DEFINE.
(EXECUTABLE_SUFFIX): Likewise.
* config.in: Regenerated.
* configure: Likewise.
* plugin.c (bfd_plugin_close_and_cleanup): Removed.
(plugin_list_entry): Add all_symbols_read, cleanup_handler,
gcc, lto_wrapper, resolution_file, resolution_option, gcc_env,
real_bfd, real_nsyms, real_syms, lto_nsyms and lto_syms.
(get_lto_wrapper): New.
(setup_lto_wrapper_env): Likewise.
(current_plugin): Likewise.
(register_all_symbols_read): Likewise.
(register_cleanup): Likewise.
(get_symbols): Likewise.
(add_input_file): Likewise.
(bfd_plugin_close_and_cleanup): Likewise.
(claim_file): Removed.
(register_claim_file): Set current_plugin->claim_file.
(add_symbols): Make a copy of LTO symbols. Set lto_nsyms and
lto_syms in current_plugin.
(try_claim): Use current_plugin->claim_file. Call LTO plugin
all_symbols_read handler. Copy real symbols to plugin_data.
Call LTO plugin cleanup handler. Clean up for LTO wrapper.
(try_load_plugin): Don't reuse the previous plugin for LTO
wrapper. Set up GCC LTO wrapper if possible. Don't set
plugin_list_iter->claim_file.
(bfd_plugin_canonicalize_symtab): Use real LTO symbols if
possible.
* plugin.h (plugin_data_struct): Add real_bfd, real_nsyms and
real_syms.
ld/
PR binutils/25355
* testsuite/ld-plugin/lto.exp: Run PR binutils/25355 test.
* testsuite/ld-plugin/pr25355.c: New file.
* testsuite/ld-plugin/pr25355.d: Likewise.
* testsuite/lib/ld-lib.exp (run_cc_link_tests): Support compile
only dump.
2020-02-11 11:01:42 +08:00
|
|
|
|
2020-02-10 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR binutils/25355
|
|
|
|
|
* testsuite/ld-plugin/lto.exp: Run PR binutils/25355 test.
|
|
|
|
|
* testsuite/ld-plugin/pr25355.c: New file.
|
|
|
|
|
* testsuite/ld-plugin/pr25355.d: Likewise.
|
|
|
|
|
* testsuite/lib/ld-lib.exp (run_cc_link_tests): Support compile
|
|
|
|
|
only dump.
|
|
|
|
|
|
2020-02-08 04:01:58 +08:00
|
|
|
|
2020-02-07 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-unique/unique.exp (contains_unique_symbol): Updated.
|
|
|
|
|
|
2020-02-07 22:53:46 +08:00
|
|
|
|
2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 25469
|
|
|
|
|
* emulparams/elf32z80.sh: Use z80 emulation.
|
|
|
|
|
* emultempl/z80.em: Make generic to both COFF and ELF Z80 emulations.
|
|
|
|
|
* emultempl/z80elf.em: Delete.
|
|
|
|
|
* testsuite/ld-elf/pr22450.d: Expect to fail for the Z80.
|
|
|
|
|
* testsuite/ld-elf/sec64k.exp: Fix Z80 assembly.
|
|
|
|
|
* testsuite/ld-unique/pr21529.s: Avoid register name conflict.
|
|
|
|
|
* testsuite/ld-unique/unique.s: Likewise.
|
|
|
|
|
* testsuite/ld-unique/unique_empty.s: Likewise.
|
|
|
|
|
* testsuite/ld-unique/unique_shared.s: Likewise.
|
|
|
|
|
* testsuite/ld-unique/unique.d: Updated expected output.
|
|
|
|
|
* testsuite/ld-z80/arch_z80n.d: New file.
|
|
|
|
|
* testsuite/ld-z80/comb_arch_z80_z80n.d: New file.
|
|
|
|
|
* testsuite/ld-z80/labels.s: Add more labels.
|
|
|
|
|
* testsuite/ld-z80/relocs.s: Add more reloc tests.
|
|
|
|
|
* testsuite/ld-z80/relocs_f_z80n.d: New file
|
|
|
|
|
|
2020-02-07 21:08:16 +08:00
|
|
|
|
2020-02-07 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/25022
|
|
|
|
|
* testsuite/ld-elf/pr25022.d: Xfail more targets which don't use
|
|
|
|
|
ldelf_before_place_orphans.
|
|
|
|
|
|
2020-02-07 11:42:52 +08:00
|
|
|
|
2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/25022
|
|
|
|
|
* emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Add
|
|
|
|
|
before_place_orphans_default.
|
|
|
|
|
* emultempl/armcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
|
|
|
|
|
* emultempl/beos.em (ld_${EMULATION_NAME}_emulation): Likewise.
|
|
|
|
|
* emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Likewise.
|
|
|
|
|
* emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Likewise.
|
|
|
|
|
* emultempl/msp430.em (ld_${EMULATION_NAME}_emulation): Likewise.
|
|
|
|
|
* emultempl/pe.em (ld_${EMULATION_NAME}_emulation): Likewise.
|
|
|
|
|
* emultempl/pep.em (ld_${EMULATION_NAME}_emulation): Likewise.
|
|
|
|
|
* emultempl/ticoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
|
|
|
|
|
* emultempl/vanilla.em (ld_${EMULATION_NAME}_emulation): Likewise.
|
|
|
|
|
* emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Use
|
|
|
|
|
ldelf_before_place_orphans.
|
|
|
|
|
* ldelf.c (ldelf_before_place_orphans): New.
|
|
|
|
|
* ldelf.h (ldelf_before_place_orphans): Likewise.
|
|
|
|
|
* ldemul.c (ldemul_before_place_orphans): Likewise.
|
|
|
|
|
(before_place_orphans_default): Likewise.
|
|
|
|
|
* ldemul.h (ldemul_before_place_orphans): Likewise.
|
|
|
|
|
(before_place_orphans_default): Likewise.
|
|
|
|
|
(ld_emulation_xfer_struct): Add before_place_orphans.
|
|
|
|
|
* ldlang.c (lang_process): Call ldemul_before_place_orphans
|
|
|
|
|
before lang_place_orphans.
|
|
|
|
|
* testsuite/ld-elf/pr25022.d: New file.
|
|
|
|
|
* testsuite/ld-elf/pr25022.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25022.t: Likewise.
|
|
|
|
|
|
2020-02-07 11:37:54 +08:00
|
|
|
|
2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/25490
|
|
|
|
|
* testsuite/ld-elf/pr25490-1.d: New file.
|
|
|
|
|
* testsuite/ld-elf/pr25490-1.s: Likewise.
|
|
|
|
|
|
ELF: Support the section flag 'o' in .section directive
As shown in
https://sourceware.org/bugzilla/show_bug.cgi?id=25490
--gc-sections will silently remove __patchable_function_entries section
and generate corrupt result. This patch adds the section flag 'o' to
.section directive:
.section __patchable_function_entries,"awo",@progbits,foo
.section __patchable_function_entries,"awoG",@progbits,foo,foo,comdat
.section __patchable_function_entries,"awo",@progbits,bar,unique,4
.section __patchable_function_entries,"awoG",@progbits,foo,foo,comdat,unique,1
which specifies the symbol name which the section references. Assmebler
will set its elf_linked_to_section to a local section where the symbol
is defined.
Linker is updated to call mark_hook if gc_mark of any of its linked-to
sections is set after all sections, except for backend specific ones,
have been garbage collected.
bfd/
PR gas/25381
* bfd-in2.h: Regenerated.
* elflink.c (_bfd_elf_gc_mark_extra_sections): Call mark_hook
on section if gc_mark of any of its linked-to sections is set
and don't set gc_mark again.
* section.c (asection): Add linked_to_symbol_name to map_head
union.
gas/
PR gas/25381
* config/obj-elf.c (get_section): Also check
linked_to_symbol_name.
(obj_elf_change_section): Also set map_head.linked_to_symbol_name.
(obj_elf_parse_section_letters): Handle the 'o' flag.
(build_group_lists): Renamed to ...
(build_additional_section_info): This. Set elf_linked_to_section
from map_head.linked_to_symbol_name.
(elf_adjust_symtab): Updated.
* config/obj-elf.h (elf_section_match): Add linked_to_symbol_name.
* doc/as.texi: Document the 'o' flag.
* testsuite/gas/elf/elf.exp: Run PR gas/25381 tests.
* testsuite/gas/elf/section18.d: New file.
* testsuite/gas/elf/section18.s: Likewise.
* testsuite/gas/elf/section19.d: Likewise.
* testsuite/gas/elf/section19.s: Likewise.
* testsuite/gas/elf/section20.d: Likewise.
* testsuite/gas/elf/section20.s: Likewise.
* testsuite/gas/elf/section21.d: Likewise.
* testsuite/gas/elf/section21.l: Likewise.
* testsuite/gas/elf/section21.s: Likewise.
ld/
PR ld/24526
PR ld/25021
PR ld/25490
* testsuite/ld-elf/elf.exp: Run PR ld/25490 tests.
* testsuite/ld-elf/pr24526.d: New file.
* testsuite/ld-elf/pr24526.s: Likewise.
* testsuite/ld-elf/pr25021.d: Likewise.
* testsuite/ld-elf/pr25021.s: Likewise.
* testsuite/ld-elf/pr25490-2-16.rd: Likewise.
* testsuite/ld-elf/pr25490-2-32.rd: Likewise.
* testsuite/ld-elf/pr25490-2-64.rd: Likewise.
* testsuite/ld-elf/pr25490-2.s: Likewise.
* testsuite/ld-elf/pr25490-3-16.rd: Likewise.
* testsuite/ld-elf/pr25490-3-32.rd: Likewise.
* testsuite/ld-elf/pr25490-3-64.rd: Likewise.
* testsuite/ld-elf/pr25490-3.s: Likewise.
* testsuite/ld-elf/pr25490-4-16.rd: Likewise.
* testsuite/ld-elf/pr25490-4-32.rd: Likewise.
* testsuite/ld-elf/pr25490-4-64.rd: Likewise.
* testsuite/ld-elf/pr25490-4.s: Likewise.
* testsuite/ld-elf/pr25490-5-16.rd: Likewise.
* testsuite/ld-elf/pr25490-5-32.rd: Likewise.
* testsuite/ld-elf/pr25490-5-64.rd: Likewise.
* testsuite/ld-elf/pr25490-5.s: Likewise.
* testsuite/ld-elf/pr25490-6-16.rd: Likewise.
* testsuite/ld-elf/pr25490-6-32.rd: Likewise.
* testsuite/ld-elf/pr25490-6-64.rd: Likewise.
* testsuite/ld-elf/pr25490-6.s: Likewise.
2020-02-07 10:04:58 +08:00
|
|
|
|
2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/24526
|
|
|
|
|
PR ld/25021
|
|
|
|
|
PR ld/25490
|
|
|
|
|
* testsuite/ld-elf/elf.exp: Run PR ld/25490 tests.
|
|
|
|
|
* testsuite/ld-elf/pr24526.d: New file.
|
|
|
|
|
* testsuite/ld-elf/pr24526.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25021.d: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25021.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25490-2-16.rd: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25490-2-32.rd: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25490-2-64.rd: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25490-2.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25490-3-16.rd: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25490-3-32.rd: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25490-3-64.rd: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25490-3.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25490-4-16.rd: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25490-4-32.rd: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25490-4-64.rd: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25490-4.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25490-5-16.rd: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25490-5-32.rd: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25490-5-64.rd: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25490-5.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25490-6-16.rd: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25490-6-32.rd: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25490-6-64.rd: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25490-6.s: Likewise.
|
|
|
|
|
|
|
|
|
|
2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
|
2020-02-06 22:40:30 +08:00
|
|
|
|
|
|
|
|
|
* testsuite/lib/ld-lib.exp (check_gc_sections_available): Mark
|
|
|
|
|
z80 as not supported.
|
|
|
|
|
|
Enable ld-ifunc tests for more targets
Also fix some ix86 fails.
* testsuite/ld-ifunc/ifunc.exp: Enable for more targets, specifying
targets that don't support ifunc rather than ones that do.
(contains_irelative_reloc): Match R_PARISC_IPLT.
* testsuite/ld-ifunc/lib.c: Don't use .set in asm.
* testsuite/ld-ifunc/ifunc-23-x86.s,
* testsuite/ld-ifunc/ifunc-24-x86.s,
* testsuite/ld-ifunc/ifunc-25-x86.s,
* testsuite/ld-ifunc/ifunc-4-local-x86.s,
* testsuite/ld-ifunc/ifunc-4-x86.s: Define _main.
* testsuite/ld-ifunc/ifunc-10-i386.d,
* testsuite/ld-ifunc/ifunc-11-i386.d,
* testsuite/ld-ifunc/ifunc-12-i386.d,
* testsuite/ld-ifunc/ifunc-13-i386.d,
* testsuite/ld-ifunc/ifunc-14a-i386.d,
* testsuite/ld-ifunc/ifunc-14b-i386.d,
* testsuite/ld-ifunc/ifunc-14c-i386.d,
* testsuite/ld-ifunc/ifunc-14d-i386.d,
* testsuite/ld-ifunc/ifunc-14e-i386.d,
* testsuite/ld-ifunc/ifunc-14f-i386.d,
* testsuite/ld-ifunc/ifunc-15-i386.d,
* testsuite/ld-ifunc/ifunc-16-i386-now.d,
* testsuite/ld-ifunc/ifunc-16-i386.d,
* testsuite/ld-ifunc/ifunc-17a-i386.d,
* testsuite/ld-ifunc/ifunc-17b-i386.d,
* testsuite/ld-ifunc/ifunc-18a-i386.d,
* testsuite/ld-ifunc/ifunc-18b-i386.d,
* testsuite/ld-ifunc/ifunc-19a-i386.d,
* testsuite/ld-ifunc/ifunc-19b-i386.d,
* testsuite/ld-ifunc/ifunc-2-i386-now.d,
* testsuite/ld-ifunc/ifunc-2-i386.d,
* testsuite/ld-ifunc/ifunc-2-local-i386-now.d,
* testsuite/ld-ifunc/ifunc-2-local-i386.d,
* testsuite/ld-ifunc/ifunc-20-i386.d,
* testsuite/ld-ifunc/ifunc-21-i386.d,
* testsuite/ld-ifunc/ifunc-22-i386.d,
* testsuite/ld-ifunc/ifunc-26.d,
* testsuite/ld-ifunc/ifunc-5a-i386.d,
* testsuite/ld-ifunc/ifunc-5a-local-i386.d,
* testsuite/ld-ifunc/ifunc-5b-i386.d,
* testsuite/ld-ifunc/ifunc-5b-local-i386.d,
* testsuite/ld-ifunc/ifunc-5r-local-i386.d,
* testsuite/ld-ifunc/ifunc-6a-i386.d,
* testsuite/ld-ifunc/ifunc-6b-i386.d,
* testsuite/ld-ifunc/ifunc-7a-i386.d,
* testsuite/ld-ifunc/ifunc-7b-i386.d,
* testsuite/ld-ifunc/ifunc-8-i386.d,
* testsuite/ld-ifunc/ifunc-9-i386.d,
* testsuite/ld-ifunc/pr17154-i386-now.d,
* testsuite/ld-ifunc/pr17154-i386.d: xfail lynxos, nto, and solaris.
2020-02-06 08:53:43 +08:00
|
|
|
|
2020-02-06 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-ifunc/ifunc.exp: Enable for more targets, specifying
|
|
|
|
|
targets that don't support ifunc rather than ones that do.
|
|
|
|
|
(contains_irelative_reloc): Match R_PARISC_IPLT.
|
|
|
|
|
* testsuite/ld-ifunc/lib.c: Don't use .set in asm.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-23-x86.s,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-24-x86.s,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-25-x86.s,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-4-local-x86.s,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-4-x86.s: Define _main.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-10-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-11-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-12-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-13-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-14a-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-14b-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-14c-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-14d-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-14e-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-14f-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-15-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-16-i386-now.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-16-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-17a-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-17b-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-18a-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-18b-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-19a-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-19b-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-2-i386-now.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-2-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-2-local-i386-now.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-2-local-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-20-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-21-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-22-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-26.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-5a-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-5a-local-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-5b-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-5b-local-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-5r-local-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-6a-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-6b-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-7a-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-7b-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-8-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/ifunc-9-i386.d,
|
|
|
|
|
* testsuite/ld-ifunc/pr17154-i386-now.d,
|
|
|
|
|
* testsuite/ld-ifunc/pr17154-i386.d: xfail lynxos, nto, and solaris.
|
|
|
|
|
|
2020-02-05 13:49:17 +08:00
|
|
|
|
2020-02-06 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/lib/ld-lib.exp (is_generic): Delete.
|
|
|
|
|
* testsuite/ld-unique/unique.exp: Exclude tic6x.
|
|
|
|
|
|
2020-02-06 08:38:37 +08:00
|
|
|
|
2020-02-06 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* configure.tgt (i[3-7]86-*-moss*): Don't clear targ_extra_ofiles.
|
|
|
|
|
(i[3-7]86-*-openbsd*, x86_64-*-openbsd*): Add.
|
|
|
|
|
|
ELF: Add support for unique section ID to assembler
Clang's integrated assembler supports multiple section with the same
name:
.section .text,"ax",@progbits,unique,1
nop
.section .text,"ax",@progbits,unique,2
nop
"unique,N" assigns the number, N, as the section ID, to a section. The
valid values of the section ID are between 0 and 4294967295. It can be
used to distinguish different sections with the same section name.
This is useful with -fno-unique-section-names -ffunction-sections.
-ffunction-sections by default generates .text.foo, .text.bar, etc.
Using the same string can save lots of space in .strtab.
This patch adds section_id to bfd_section and reuses the linker
internal bit in BFD section flags, SEC_LINKER_CREATED, for assmebler
internal use to mark valid section_id. It also updates objdump to
compare section pointers if 2 sections comes from the same file since
2 different sections can have the same section name.
bfd/
PR gas/25380
* bfd-in2.h: Regenerated.
* ecoff.c (bfd_debug_section): Add section_id.
* section.c (bfd_section): Add section_id.
(SEC_ASSEMBLER_SECTION_ID): New.
(BFD_FAKE_SECTION): Add section_id.
binutils/
PR gas/25380
* objdump.c (sym_ok): Return FALSE if 2 sections are in the
same file with different section pointers.
gas/
PR gas/25380
* config/obj-elf.c (section_match): Removed.
(get_section): Also match SEC_ASSEMBLER_SECTION_ID and
section_id.
(obj_elf_change_section): Replace info and group_name arguments
with match_p. Also update the section ID and flags from match_p.
(obj_elf_section): Handle "unique,N". Update call to
obj_elf_change_section.
* config/obj-elf.h (elf_section_match): New.
(obj_elf_change_section): Updated.
* config/tc-arm.c (start_unwind_section): Update call 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.texi: Document "unique,N" in .section directive.
* testsuite/gas/elf/elf.exp: Run "unique,N" tests.
* testsuite/gas/elf/section15.d: New file.
* testsuite/gas/elf/section15.s: Likewise.
* testsuite/gas/elf/section16.s: Likewise.
* testsuite/gas/elf/section16a.d: Likewise.
* testsuite/gas/elf/section16b.d: Likewise.
* testsuite/gas/elf/section17.d: Likewise.
* testsuite/gas/elf/section17.l: Likewise.
* testsuite/gas/elf/section17.s: Likewise.
* testsuite/gas/i386/unique.d: Likewise.
* testsuite/gas/i386/unique.s: Likewise.
* testsuite/gas/i386/x86-64-unique.d: Likewise.
* testsuite/gas/i386/i386.exp: Run unique and x86-64-unique.
ld/
PR gas/25380
* testsuite/ld-i386/pr22001-1c.S: Use "unique,N" in .section
directives.
* testsuite/ld-i386/tls-gd1.S: Likewise.
* testsuite/ld-x86-64/pr21481b.S: Likewise.
2020-02-03 09:07:51 +08:00
|
|
|
|
2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR gas/25380
|
|
|
|
|
* testsuite/ld-i386/pr22001-1c.S: Use "unique,N" in .section
|
|
|
|
|
directives.
|
|
|
|
|
* testsuite/ld-i386/tls-gd1.S: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr21481b.S: Likewise.
|
|
|
|
|
|
2020-01-31 00:02:33 +08:00
|
|
|
|
2020-01-30 Jan Beulich <jbeulich@suse.com>
|
|
|
|
|
|
|
|
|
|
* ld.texi: Remove space between @option and brace.
|
|
|
|
|
|
2020-01-29 07:55:58 +08:00
|
|
|
|
2020-01-29 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 25477
|
|
|
|
|
* ldelf.c (ldelf_check_ld_so_conf): Add prefix parameter and
|
|
|
|
|
correct concat.
|
|
|
|
|
(ldelf_after_open): Add prefix parameter.
|
|
|
|
|
* ldelf.h (ldelf_after_open): Update prototype.
|
|
|
|
|
* emultempl/elf.em (gld${EMULATION_NAME}_after_open): Pass $prefix
|
|
|
|
|
to ldelf_after_open.
|
|
|
|
|
* Makefile.am: Correct z80 dependencies.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2020-01-28 07:37:46 +08:00
|
|
|
|
2020-01-28 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* ldexp.c (fold_name): Don't print bfd_link_hash_lookup failed
|
|
|
|
|
in first phase.
|
|
|
|
|
|
2020-01-27 08:21:52 +08:00
|
|
|
|
2020-01-27 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elfvers/vers.exp: Replace case statements with
|
|
|
|
|
switch statements.
|
|
|
|
|
* testsuite/ld-ifunc/ifunc.exp: Likewise.
|
|
|
|
|
* testsuite/ld-unique/unique.exp: Likewise.
|
|
|
|
|
|
2020-01-27 07:57:42 +08:00
|
|
|
|
2020-01-27 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR ld/25458
|
|
|
|
|
* testsuite/ld-elf/pr25458.map: New file.
|
|
|
|
|
* testsuite/ld-elf/pr25458.rd: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25458a.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/pr25458b.s: Likewise.
|
|
|
|
|
* testsuite/ld-elf/shared.exp: Run PR ld/25458 test.
|
|
|
|
|
|
2020-01-22 22:22:41 +08:00
|
|
|
|
2020-01-22 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/25416
|
|
|
|
|
* testsuite/ld-x86-64/tls.exp: Skip GNU2 TLS tests only without
|
|
|
|
|
compiler support.
|
|
|
|
|
|
2020-01-22 09:54:56 +08:00
|
|
|
|
2020-01-22 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-powerpc/tlsdesc3.d,
|
|
|
|
|
* testsuite/ld-powerpc/tlsdesc3.wf,
|
|
|
|
|
* testsuite/ld-powerpc/tlsdesc4.d,
|
|
|
|
|
* testsuite/ld-powerpc/tlsdesc4.s,
|
|
|
|
|
* testsuite/ld-powerpc/tlsdesc4.wf: New tests.
|
|
|
|
|
* testsuite/ld-powerpc/powerpc.exp: Run them.
|
|
|
|
|
|
PowerPC64 __tls_get_addr_desc
This implements register saving and restoring in the __tls_get_addr
call stub, so that when glibc supports the optimized tls call stub gcc
can generate code that assumes only r0, r12 and of course r3 are
changed on a __tls_get_addr call. When gcc expects __tls_get_addr
calls to preserve registers the call will be to __tls_get_addr_desc,
which will be translated by the linker to a call to __tls_get_addr_opt.
bfd/
* elf64-ppc.h (struct ppc64_elf_params): Add no_tls_get_addr_regsave.
* elf64-ppc.c (struct ppc_link_hash_table): Add tga_desc and
tga_desc_fd.
(is_tls_get_addr): Match tga_desc and tga_desc_df too.
(STDU_R1_0R1, ADDI_R1_R1): Define.
(tls_get_addr_prologue, tls_get_addr_epilogue): New functions.
(ppc64_elf_tls_setup): Set up tga_desc and tga_desc_fd. Indirect
tga_desc_fd to opt_fd, and tga_desc to opt. Set
no_tls_get_addr_regsave.
(branch_reloc_hash_match): Add hash3 and hash4.
(ppc64_elf_tls_optimize): Handle tga_desc_fd and tga_desc too.
(ppc64_elf_size_dynamic_sections): Likewise.
(ppc64_elf_relocate_section): Likewise.
(plt_stub_size, build_plt_stub): Likewise. Size regsave
__tls_get_addr stub.
(build_tls_get_addr_stub): Build regsave __tls_get_addr stub and
eh_frame.
(ppc_size_one_stub): Handle tga_desc_fd and tga_desc too. Size
eh_frame for regsave __tls_get_addr.
gas/
* config/tc-ppc.c (parse_tls_arg): Handle tls arg for
__tls_get_addr_desc and __tls_get_addr_opt.
ld/
* emultempl/ppc64elf.em (ppc64_opt, PARSE_AND_LIST_LONGOPTS),
(PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Support
--tls-get-addr-regsave and --no-tls-get-addr-regsave.
(params): Init new field.
* ld.texi (--tls-get-addr-regsave, --no-tls-get-addr-regsave):
Document.
* testsuite/ld-powerpc/tlsdesc.s,
* testsuite/ld-powerpc/tlsdesc.d,
* testsuite/ld-powerpc/tlsdesc.wf,
* testsuite/ld-powerpc/tlsdesc2.d,
* testsuite/ld-powerpc/tlsdesc2.wf,
* testsuite/ld-powerpc/tlsexenors.d,
* testsuite/ld-powerpc/tlsexenors.r,
* testsuite/ld-powerpc/tlsexers.d,
* testsuite/ld-powerpc/tlsexers.r,
* testsuite/ld-powerpc/tlsexetocnors.d,
* testsuite/ld-powerpc/tlsexetocrs.d,
* testsuite/ld-powerpc/tlsexetocrs.r,
* testsuite/ld-powerpc/tlsopt6.d,
* testsuite/ld-powerpc/tlsopt6.wf: New.
* testsuite/ld-powerpc/powerpc.exp: Run new tests.
2020-01-20 10:08:00 +08:00
|
|
|
|
2020-01-22 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/ppc64elf.em (ppc64_opt, PARSE_AND_LIST_LONGOPTS),
|
|
|
|
|
(PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Support
|
|
|
|
|
--tls-get-addr-regsave and --no-tls-get-addr-regsave.
|
|
|
|
|
(params): Init new field.
|
|
|
|
|
* ld.texi (--tls-get-addr-regsave, --no-tls-get-addr-regsave):
|
|
|
|
|
Document.
|
|
|
|
|
* testsuite/ld-powerpc/tlsdesc.s,
|
|
|
|
|
* testsuite/ld-powerpc/tlsdesc.d,
|
|
|
|
|
* testsuite/ld-powerpc/tlsdesc.wf,
|
|
|
|
|
* testsuite/ld-powerpc/tlsdesc2.d,
|
|
|
|
|
* testsuite/ld-powerpc/tlsdesc2.wf,
|
|
|
|
|
* testsuite/ld-powerpc/tlsexenors.d,
|
|
|
|
|
* testsuite/ld-powerpc/tlsexenors.r,
|
|
|
|
|
* testsuite/ld-powerpc/tlsexers.d,
|
|
|
|
|
* testsuite/ld-powerpc/tlsexers.r,
|
|
|
|
|
* testsuite/ld-powerpc/tlsexetocnors.d,
|
|
|
|
|
* testsuite/ld-powerpc/tlsexetocrs.d,
|
|
|
|
|
* testsuite/ld-powerpc/tlsexetocrs.r,
|
|
|
|
|
* testsuite/ld-powerpc/tlsopt6.d,
|
|
|
|
|
* testsuite/ld-powerpc/tlsopt6.wf: New.
|
|
|
|
|
* testsuite/ld-powerpc/powerpc.exp: Run new tests.
|
|
|
|
|
|
2020-01-19 22:24:06 +08:00
|
|
|
|
2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
|
|
|
|
|
|
|
|
|
|
PR 25417
|
|
|
|
|
* ldlang.c (ldlang_open_ctf): Fix error message typo.
|
|
|
|
|
* emultempl/z80elf.em (z80_elf_after_open): Likewise.
|
|
|
|
|
|
2020-01-22 08:20:38 +08:00
|
|
|
|
2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/pr23900-1.d: Adjusted.
|
|
|
|
|
|
2020-01-21 21:43:59 +08:00
|
|
|
|
2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-elf/pr23900-1.d: Also pass -l to readelf.
|
|
|
|
|
|
2020-01-20 23:10:23 +08:00
|
|
|
|
2020-01-20 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* po/pt_BR.po: Updated Brazilian Portuguese translation.
|
|
|
|
|
* po/uk.po: Updated Ukranian translation.
|
|
|
|
|
|
x86-64: Fix TLSDESC relaxation for x32
For x32, we must encode "lea x@TLSDESC(%rip), %reg" with a REX prefix
even if it isn't required. Otherwise linker can’t safely perform
GDesc -> IE/LE optimization. X32 TLSDESC sequences can be:
40 8d 05 00 00 00 00 rex lea x@TLSDESC(%rip), %reg
...
67 ff 10 call *x@TLSCALL(%eax)
or the same sequence as LP64:
48 8d 05 00 00 00 00 lea foo@TLSDESC(%rip), %reg
...
ff 10 call *foo@TLSCALL(%rax)
We need to support both sequences for x32. For both GDesc -> IE/LE
transitions,
67 ff 10 call *x@TLSCALL(%eax)
should relaxed to
0f 1f 00 nopl (%rax)
For GDesc -> LE transition,
40 8d 05 00 00 00 00 rex lea x@TLSDESC(%rip), %reg
should relaxed to
40 c7 c0 fc ff ff ff rex movl $x@tpoff, %reg
For GDesc -> IE transition,
40 8d 05 00 00 00 00 rex lea x@TLSDESC(%rip), %reg
should relaxed to
40 8b 05 00 00 00 00 rex movl x@gottpoff(%rip), %eax
bfd/
PR ld/25416
* elf64-x86-64.c (elf_x86_64_check_tls_transition): Support
"rex leal x@tlsdesc(%rip), %reg" and "call *x@tlsdesc(%eax)" in
X32 mode.
(elf_x86_64_relocate_section): In x32 mode, for GDesc -> LE
transition, relax "rex leal x@tlsdesc(%rip), %reg" to
"rex movl $x@tpoff, %reg", for GDesc -> IE transition, relax
"rex leal x@tlsdesc(%rip), %reg" to
"rex movl x@gottpoff(%rip), %eax". For both transitions, relax
"call *(%eax)" to "nopl (%rax)".
gas/
PR ld/25416
* config/tc-i386.c (output_insn): Add a dummy REX_OPCODE prefix
for lea with R_X86_64_GOTPC32_TLSDESC relocation when generating
x32 object.
* testsuite/gas/i386/ilp32/x32-tls.d: Updated.
* testsuite/gas/i386/ilp32/x32-tls.s: Add tests for lea with
R_X86_64_GOTPC32_TLSDESC relocation.
ld/
PR ld/25416
* testsuite/ld-x86-64/pr25416-1.s: New file
* testsuite/ld-x86-64/pr25416-1a.d: Likewise.
* testsuite/ld-x86-64/pr25416-1b.d: Likewise.
* testsuite/ld-x86-64/pr25416-1.s: Likewise.
* testsuite/ld-x86-64/pr25416-2.s: Likewise.
* testsuite/ld-x86-64/pr25416-2a.d: Likewise.
* testsuite/ld-x86-64/pr25416-2b.d: Likewise.
* testsuite/ld-x86-64/pr25416-3.d: Likewise.
* testsuite/ld-x86-64/pr25416-3.s: Likewise.
* testsuite/ld-x86-64/pr25416-4.d: Likewise.
* testsuite/ld-x86-64/pr25416-4.s: Likewise.
* testsuite/ld-x86-64/pr25416-5a.c: Likewise.
* testsuite/ld-x86-64/pr25416-5b.s: Likewise.
* testsuite/ld-x86-64/pr25416-5c.s: Likewise.
* testsuite/ld-x86-64/pr25416-5d.s: Likewise.
* testsuite/ld-x86-64/pr25416-5e.s: Likewise.
* testsuite/ld-x86-64/x86-64.exp: Run PR ld/25416 tests.
2020-01-20 22:58:51 +08:00
|
|
|
|
2020-01-20 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/25416
|
|
|
|
|
* testsuite/ld-x86-64/pr25416-1.s: New file
|
|
|
|
|
* testsuite/ld-x86-64/pr25416-1a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr25416-1b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr25416-1.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr25416-2.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr25416-2a.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr25416-2b.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr25416-3.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr25416-3.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr25416-4.d: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr25416-4.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr25416-5a.c: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr25416-5b.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr25416-5c.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr25416-5d.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/pr25416-5e.s: Likewise.
|
|
|
|
|
* testsuite/ld-x86-64/x86-64.exp: Run PR ld/25416 tests.
|
|
|
|
|
|
2020-01-20 10:03:29 +08:00
|
|
|
|
2020-01-20 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-powerpc/tlsexe.d: Match new __tls_get_addr stub.
|
|
|
|
|
* testsuite/ld-powerpc/tlsexeno.d: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/tlsexetoc.d: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/tlsexetocno.d: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/tlsopt5.d: Likewise.
|
|
|
|
|
|
2020-01-19 06:42:24 +08:00
|
|
|
|
2020-01-18 Roland McGrath <mcgrathr@google.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-x86-64/align-branch-1.d: Loosen instruction regexps
|
|
|
|
|
to admit whatever absolute address. The label-relative address is
|
|
|
|
|
what the test needs to verify.
|
|
|
|
|
|
2020-01-18 22:12:07 +08:00
|
|
|
|
2020-01-18 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
* po/ld.pot: Regenerate.
|
|
|
|
|
|
2020-01-18 21:50:25 +08:00
|
|
|
|
2020-01-18 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
Binutils 2.34 branch created.
|
|
|
|
|
|
2020-01-16 21:44:21 +08:00
|
|
|
|
2020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
|
|
|
|
|
|
|
|
|
|
* scripttempl/elf32msp430_3.sc: Remove.
|
|
|
|
|
|
2020-01-16 19:32:23 +08:00
|
|
|
|
2020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
|
|
|
|
|
|
|
|
|
|
* scripttempl/elf32msp430.sc: Add input section rules for
|
|
|
|
|
.upper.{text,data,rodata,bss}.
|
|
|
|
|
* testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
|
|
|
|
|
* testsuite/ld-msp430-elf/upper-input-sections.s: New test.
|
|
|
|
|
|
2020-01-15 22:18:54 +08:00
|
|
|
|
2020-01-15 Lars Brinkhoff <lars@nocrew.org>
|
|
|
|
|
|
|
|
|
|
PR 20694
|
|
|
|
|
* temulparams/pdp11.sh (TARGET_PAGE_SIZE): Set to 8192.
|
|
|
|
|
|
2020-01-15 21:17:27 +08:00
|
|
|
|
2020-01-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
|
|
|
|
|
* testsuite/ld-msp430-elf/reloc-lo-430x.s: New test.
|
|
|
|
|
|
2020-01-14 18:15:53 +08:00
|
|
|
|
2020-01-15 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-powerpc/ambiguousv1b.d: Adjust expected output.
|
|
|
|
|
* testsuite/ld-powerpc/funref.s: Align func_tab.
|
|
|
|
|
* testsuite/ld-powerpc/funref2.s: Likewise.
|
|
|
|
|
* testsuite/ld-powerpc/funv1.s: Add dot symbols.
|
|
|
|
|
|
2020-01-15 00:59:37 +08:00
|
|
|
|
2020-01-14 Lili Cui <lili.cui@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-i386/align-branch-1.d: Updated for i686-pc-elf.
|
|
|
|
|
|
2020-01-13 20:14:04 +08:00
|
|
|
|
2020-01-13 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* po/BLD-POTFILES.in: Regenerate.
|
|
|
|
|
|
2020-01-13 17:16:47 +08:00
|
|
|
|
2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-arc/relax-local-pic.d: Improve matching patterns.
|
|
|
|
|
|
2020-01-13 17:16:47 +08:00
|
|
|
|
2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am: Remove earcelf_prof.c and earclinux_prof.c
|
|
|
|
|
emulations.
|
|
|
|
|
* configure.tgt: Likewise.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* emulparams/arcelf_prof.sh: Remove file.
|
|
|
|
|
* emulparams/arclinux_prof.sh: Likewise.
|
|
|
|
|
|
2020-01-13 17:16:47 +08:00
|
|
|
|
2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
|
|
|
|
|
|
|
|
|
|
* scripttempl/elfarcv2.sc : Allow interrupt vector table to be
|
|
|
|
|
located at an arbitrary address. Use DWARF.sc file.
|
|
|
|
|
* scripttempl/elfarc.sc: Use DWARF.sc file.
|
|
|
|
|
|
Re: Prefer object over notype symbols when disassembling
Reverts unnecessary mips testsuite changes made by commit 660df28acf.
* testsuite/ld-mips-elf/eh-frame5.s,
* testsuite/ld-mips-elf/ehdr_start-new.s,
* testsuite/ld-mips-elf/ehdr_start-o32.s,
* testsuite/ld-mips-elf/mips16-call-global-1.s,
* testsuite/ld-mips-elf/mips16-intermix-1.s,
* testsuite/ld-mips-elf/mips16-pic-1b.s,
* testsuite/ld-mips-elf/mips16-pic-4c.s,
* testsuite/ld-mips-elf/no-shared-1-n64.s,
* testsuite/ld-mips-elf/no-shared-1-o32.s,
* testsuite/ld-mips-elf/pic-and-nonpic-1b-micromips.s,
* testsuite/ld-mips-elf/pic-and-nonpic-1b.s,
* testsuite/ld-mips-elf/pic-and-nonpic-2a.s,
* testsuite/ld-mips-elf/pic-and-nonpic-3b.s,
* testsuite/ld-mips-elf/pic-and-nonpic-4b.s,
* testsuite/ld-mips-elf/pic-and-nonpic-5a.s,
* testsuite/ld-mips-elf/pic-and-nonpic-6-n32c.s,
* testsuite/ld-mips-elf/pic-and-nonpic-6-n64c.s,
* testsuite/ld-mips-elf/pic-and-nonpic-6-o32c.s,
* testsuite/ld-mips-elf/pie.s,
* testsuite/ld-mips-elf/relax-jalr.s: Revert 2019-12-17 change.
2020-01-07 06:59:54 +08:00
|
|
|
|
2020-01-07 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/ld-mips-elf/eh-frame5.s,
|
|
|
|
|
* testsuite/ld-mips-elf/ehdr_start-new.s,
|
|
|
|
|
* testsuite/ld-mips-elf/ehdr_start-o32.s,
|
|
|
|
|
* testsuite/ld-mips-elf/mips16-call-global-1.s,
|
|
|
|
|
* testsuite/ld-mips-elf/mips16-intermix-1.s,
|
|
|
|
|
* testsuite/ld-mips-elf/mips16-pic-1b.s,
|
|
|
|
|
* testsuite/ld-mips-elf/mips16-pic-4c.s,
|
|
|
|
|
* testsuite/ld-mips-elf/no-shared-1-n64.s,
|
|
|
|
|
* testsuite/ld-mips-elf/no-shared-1-o32.s,
|
|
|
|
|
* testsuite/ld-mips-elf/pic-and-nonpic-1b-micromips.s,
|
|
|
|
|
* testsuite/ld-mips-elf/pic-and-nonpic-1b.s,
|
|
|
|
|
* testsuite/ld-mips-elf/pic-and-nonpic-2a.s,
|
|
|
|
|
* testsuite/ld-mips-elf/pic-and-nonpic-3b.s,
|
|
|
|
|
* testsuite/ld-mips-elf/pic-and-nonpic-4b.s,
|
|
|
|
|
* testsuite/ld-mips-elf/pic-and-nonpic-5a.s,
|
|
|
|
|
* testsuite/ld-mips-elf/pic-and-nonpic-6-n32c.s,
|
|
|
|
|
* testsuite/ld-mips-elf/pic-and-nonpic-6-n64c.s,
|
|
|
|
|
* testsuite/ld-mips-elf/pic-and-nonpic-6-o32c.s,
|
|
|
|
|
* testsuite/ld-mips-elf/pie.s,
|
|
|
|
|
* testsuite/ld-mips-elf/relax-jalr.s: Revert 2019-12-17 change.
|
|
|
|
|
|
2020-01-07 00:24:23 +08:00
|
|
|
|
2020-01-06 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR 25327
|
|
|
|
|
* testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
|
|
|
|
|
command line when building libcomm1.o and pr13250 tests.
|
|
|
|
|
* testsuite/ld-plugin/lto.exp: Likewise for pr20267 tests.
|
|
|
|
|
|
2020-01-06 22:00:34 +08:00
|
|
|
|
2020-01-06 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR 25326
|
|
|
|
|
* testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
|
|
|
|
|
command line when building pr19579 binaries.
|
|
|
|
|
|
2020-01-03 20:55:12 +08:00
|
|
|
|
2020-01-03 Hannes Domani <ssbssa@yahoo.de>
|
|
|
|
|
|
|
|
|
|
* emultempl/pe.em: Add new option --enable-reloc-section.
|
|
|
|
|
* emultempl/pep.em: Likewise.
|
|
|
|
|
* ld.texi: Document --enable-reloc-section.
|
|
|
|
|
* pe-dll.c (pe_dll_build_sections): Use pe_dll_enable_reloc_section.
|
|
|
|
|
(pe_dll_fill_sections): Simplify by calling pe_exe_fill_sections.
|
|
|
|
|
* pe-dll.h: Add extern declaration of option flag.
|
|
|
|
|
* pep-dll.c (pe_dll_enable_reloc_section):
|
|
|
|
|
Add alias define for pep_dll_enable_reloc_section.
|
|
|
|
|
* pep-dll.h: Add extern declaration of option flag.
|
|
|
|
|
|
2020-01-02 22:10:40 +08:00
|
|
|
|
2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am: Add new target z80-elf
|
|
|
|
|
* configure.tgt: Likewise.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* emultempl/z80.em: Add support for eZ80 and Z180 architectures.
|
|
|
|
|
* emulparams/elf32z80.sh: New file.
|
|
|
|
|
* emultempl/z80elf.em: Likewise.
|
|
|
|
|
* testsuite/ld-elf/comm-data4.s: Fix for Z80.
|
|
|
|
|
* testsuite/ld-elf/comm-data5.s: Fix for Z80.
|
|
|
|
|
* testsuite/ld-scripts/fill16.d: Fix for Z80.
|
|
|
|
|
* testsuite/ld-z80/arch_ez80_adl.d: Likewise.
|
|
|
|
|
* testsuite/ld-z80/arch_ez80_z80.d: Likewise.
|
|
|
|
|
* testsuite/ld-z80/arch_r800.d: Likewise.
|
|
|
|
|
* testsuite/ld-z80/arch_z180.d: Likewise.
|
|
|
|
|
* testsuite/ld-z80/arch_z80.d: Likewise.
|
|
|
|
|
* testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
|
|
|
|
|
* testsuite/ld-z80/comb_arch_z180.d: Likewise.
|
|
|
|
|
* testsuite/ld-z80/labels.s: Likewise.
|
|
|
|
|
* testsuite/ld-z80/relocs.s: Likewise.
|
|
|
|
|
* testsuite/ld-z80/relocs_b_ez80.d: Likewise.
|
|
|
|
|
* testsuite/ld-z80/relocs_b_z80.d: Likewise.
|
|
|
|
|
* testsuite/ld-z80/relocs_f_z80.d: Likewise.
|
|
|
|
|
* testsuite/ld-z80/z80.exp: Likewise.
|
|
|
|
|
* NEWS: Mention the new support.
|
|
|
|
|
|
2020-01-02 22:06:01 +08:00
|
|
|
|
2020-01-02 Tamar Christina <tamar.christina@arm.com>
|
|
|
|
|
|
|
|
|
|
PR 25210
|
|
|
|
|
PR 24753
|
|
|
|
|
* emultempl/aarch64elf.em (elf${ELFSIZE}_aarch64_add_stub_section):
|
|
|
|
|
Remove SEC_LINKER_CREATED.
|
|
|
|
|
* testsuite/ld-aarch64/aarch64-elf.exp: Add erratum835769-843419.
|
|
|
|
|
* testsuite/ld-aarch64/erratum835769-843419.d: New test.
|
|
|
|
|
|
2020-01-01 16:22:19 +08:00
|
|
|
|
2020-01-01 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
Update year range in copyright notice of all files.
|
|
|
|
|
|
2020-01-01 15:37:11 +08:00
|
|
|
|
For older changes see ChangeLog-2019
|
2016-01-01 18:44:31 +08:00
|
|
|
|
|
2020-01-01 15:37:11 +08:00
|
|
|
|
Copyright (C) 2020 Free Software Foundation, Inc.
|
2016-01-01 18:44:31 +08: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:
|