aboutsummaryrefslogtreecommitdiff
path: root/bfd/xcofflink.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/xcofflink.c')
-rw-r--r--bfd/xcofflink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/xcofflink.c b/bfd/xcofflink.c
index a76a537..8c38dd6 100644
--- a/bfd/xcofflink.c
+++ b/bfd/xcofflink.c
@@ -5172,7 +5172,8 @@ _bfd_ppc_xcoff_relocate_section (output_bfd, info, input_bfd,
/* Every symbol in a shared object is defined somewhere. */
val = 0;
}
- else if (! info->relocateable)
+ else if (! info->relocateable
+ && ! info->shared)
{
if (! ((*info->callbacks->undefined_symbol)
(info, h->root.root.string, input_bfd, input_section,