aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-07-07 10:17:21 +0930
committerAlan Modra <amodra@gmail.com>2020-07-07 18:26:33 +0930
commitfb3dc2133648119386c9262892f782c29683f920 (patch)
tree2653c4e0601a82bfc8b289aa5e5441b2f45cd074 /ld
parent23f5e55ed170c58c66437cc234887cecd5a11866 (diff)
downloadfsf-binutils-gdb-fb3dc2133648119386c9262892f782c29683f920.zip
fsf-binutils-gdb-fb3dc2133648119386c9262892f782c29683f920.tar.gz
fsf-binutils-gdb-fb3dc2133648119386c9262892f782c29683f920.tar.bz2
XCOFF linker script PROVIDE support
Fixes bit rot from git commit b46a87b1606. * emultempl/aix.em (gld${EMULATION_NAME}_find_exp_assignment): Handle etree_provided.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/emultempl/aix.em1
2 files changed, 6 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index e659884..762d5a0 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,10 @@
2020-07-07 Alan Modra <amodra@gmail.com>
+ * emultempl/aix.em (gld${EMULATION_NAME}_find_exp_assignment): Handle
+ etree_provided.
+
+2020-07-07 Alan Modra <amodra@gmail.com>
+
* testsuite/ld-sh/vxworks1-lib.rd: Update expected output.
* testsuite/ld-sh/vxworks4.d: Likewise.
diff --git a/ld/emultempl/aix.em b/ld/emultempl/aix.em
index de313e1..c1fe705 100644
--- a/ld/emultempl/aix.em
+++ b/ld/emultempl/aix.em
@@ -1364,6 +1364,7 @@ gld${EMULATION_NAME}_find_exp_assignment (etree_type *exp)
switch (exp->type.node_class)
{
case etree_provide:
+ case etree_provided:
h = bfd_link_hash_lookup (link_info.hash, exp->assign.dst,
FALSE, FALSE, FALSE);
if (h == NULL)