[binutils-gdb] Invoke the linker's error handling script with the keyword "undefined-symbol" when using it to help
Nick Clifton
nickc@sourceware.org
Mon Oct 26 12:40:47 GMT 2020
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=93cf38c095afbee84ed580c431d001f20442f73e
commit 93cf38c095afbee84ed580c431d001f20442f73e
Author: Nick Clifton <nickc@redhat.com>
Date: Mon Oct 26 12:39:50 2020 +0000
Invoke the linker's error handling script with the keyword "undefined-symbol" when using it to help with undefined symbol errors.
PR 26626
* ldmain.c (undefined_symbol): Use the keyword undefined-symbol
when invoking the error handling script for undefined symbols.
* ld.texi: Update documentation.
Diff:
---
ld/ChangeLog | 7 +++++++
ld/ld.texi | 6 +++---
ld/ldmain.c | 2 +-
3 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 247564cf551..c19a2877cff 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,10 @@
+2020-10-26 Nick Clifton <nickc@redhat.com>
+
+ PR 26626
+ * ldmain.c (undefined_symbol): Use the keyword undefined-symbol
+ when invoking the error handling script for undefined symbols.
+ * ld.texi: Update documentation.
+
2020-10-26 Cooper Qu <cooper.qu@linux.alibaba.com>
* emulparams/cskyelf.sh (TEXT_START_ADDR): Change to 0x60000000.
diff --git a/ld/ld.texi b/ld/ld.texi
index 763f07e1ae3..48e78aecdb7 100644
--- a/ld/ld.texi
+++ b/ld/ld.texi
@@ -1938,9 +1938,9 @@ If this option is provided then the linker will invoke
@var{scriptname} whenever an error is encountered. Currently however
only two kinds of error are supported: missing symbols and missing
libraries. Two arguments will be passed to script: the keyword
-``missing-symbol'' or `missing-lib'' and the @var{name} of the
-missing symbol or library. The intention is that the script will
-provide suggestions to the user as to where the symbol or library
+``undefined-symbol'' or `missing-lib'' and the @var{name} of the
+undefined symbol or missing library. The intention is that the script
+will provide suggestions to the user as to where the symbol or library
might be found. After the script has finished then the normal linker
error message will be displayed.
diff --git a/ld/ldmain.c b/ld/ldmain.c
index cdb4fe58d91..cc3df76654a 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -1432,7 +1432,7 @@ undefined_symbol (struct bfd_link_info *info,
int status, err;
argv[0] = error_handling_script;
- argv[1] = "missing-symbol";
+ argv[1] = "undefined-symbol";
argv[2] = (char *) name;
argv[3] = NULL;
More information about the Binutils-cvs
mailing list