aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-04-04 14:38:01 +0000
committerAlan Modra <amodra@gmail.com>2013-04-04 14:38:01 +0000
commitff5ac77bf52737eb247737fcf0f213eaf148cbf8 (patch)
treeb2fe20a62a080d48da691218cde9b4cadfec4e03 /bfd/elflink.c
parent86d27af662b1e20c4322b5aa6801ac34b60b054c (diff)
downloadgdb-ff5ac77bf52737eb247737fcf0f213eaf148cbf8.zip
gdb-ff5ac77bf52737eb247737fcf0f213eaf148cbf8.tar.gz
gdb-ff5ac77bf52737eb247737fcf0f213eaf148cbf8.tar.bz2
* bfd.c (bfd_error_type, bfd_errmsgs): Add bfd_error_missing_dso.
* bfd-in2.h: Regenerate. * elflink.c (elf_link_add_object_symbols): Use new error.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 38add1a..8a2bf3f 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -4443,11 +4443,7 @@ error_free_dyn:
(*_bfd_error_handler)
(_("%B: undefined reference to symbol '%s'"),
old_bfd, name);
- (*_bfd_error_handler)
- (_("note: '%s' is defined in DSO %B"
- " so try adding it to the linker command line"),
- abfd, name);
- bfd_set_error (bfd_error_invalid_operation);
+ bfd_set_error (bfd_error_missing_dso);
goto error_free_vers;
}