aboutsummaryrefslogtreecommitdiff
path: root/bfd/xcofflink.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-11-03 04:18:55 +0000
committerIan Lance Taylor <ian@airs.com>1995-11-03 04:18:55 +0000
commit18a9609c03513f4b73136b7c7ed76befbed8d23a (patch)
tree4858d26f7a1cb13d3fe28e2985035c8154c6ab52 /bfd/xcofflink.c
parent68aed7db3bdbfe5e3d186cde2a2471b3024df592 (diff)
downloadbinutils-18a9609c03513f4b73136b7c7ed76befbed8d23a.zip
binutils-18a9609c03513f4b73136b7c7ed76befbed8d23a.tar.gz
binutils-18a9609c03513f4b73136b7c7ed76befbed8d23a.tar.bz2
* xcofflink.c (_bfd_ppc_xcoff_relocate_section): Don't warn about
an undefined symbol in a shared link.
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,