diff options
author | Nick Clifton <nickc@redhat.com> | 2020-10-16 11:37:26 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2020-10-16 11:37:26 +0100 |
commit | 23ae20f5e3afeeab9aa616c63ab3b357668476d5 (patch) | |
tree | 77fe952d842fc8b8f4a0efccbc006686a3b05e77 /ld/config.in | |
parent | 472d09c18a750f483ad974991f4f35ede3dfb10b (diff) | |
download | binutils-23ae20f5e3afeeab9aa616c63ab3b357668476d5.zip binutils-23ae20f5e3afeeab9aa616c63ab3b357668476d5.tar.gz binutils-23ae20f5e3afeeab9aa616c63ab3b357668476d5.tar.bz2 |
Add a new option to the linker: --error-handling-script=<NAME>. Run the script <NAME> if an undefined symbol or unfound library error is encountered.
PR 26626
* ldmain.c (undefined_symbol): If an error handlign script is
available, call it.
* ldfile.c (error_handling_script): Declare.
(ldfile_open_file): If a library cannot be found and an error
handling script is available, call it.
* ldmain.h (error_handling_script): Prototype.
* ldlex.h (OPTION_ERROR_HANDLING_SCRIPT): Define.
* lexsup.c (ld_options): Add --error-handling-script.
(parse_args): Add support for --errror-handling-script.
* ld.texi: Document the new feature.
* configure.ac: Add --error-handling-script option to disable
support for the new feature.
* NEWS: Mention the new feature.
* config.in: Regenerate.
* configure: Regenerate.
Diffstat (limited to 'ld/config.in')
-rw-r--r-- | ld/config.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/config.in b/ld/config.in index 2f4e5ea..7b60d77 100644 --- a/ld/config.in +++ b/ld/config.in @@ -215,6 +215,10 @@ /* Define if you can safely include both <string.h> and <strings.h>. */ #undef STRING_WITH_STRINGS +/* Define to 1 if you want to support the --error-handling-script command line + option. */ +#undef SUPPORT_ERROR_HANDLING_SCRIPT + /* Use b modifier when opening binary files? */ #undef USE_BINARY_FOPEN |