diff options
author | Jan Beulich <jbeulich@suse.com> | 2021-02-25 14:35:29 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2021-02-25 14:35:29 +0100 |
commit | 3c27360bc40ea05cd20bda72617aff707a5b951e (patch) | |
tree | a9e69458849a31a88cfdfb161fbe16133a18ed9b /ld | |
parent | 68337b8be308cd309727bbe022ce9ce5d38f426a (diff) | |
download | binutils-3c27360bc40ea05cd20bda72617aff707a5b951e.zip binutils-3c27360bc40ea05cd20bda72617aff707a5b951e.tar.gz binutils-3c27360bc40ea05cd20bda72617aff707a5b951e.tar.bz2 |
ld: correct description of behavior for symbols redefined by script
Prior to 89753bbf8102 ("Warn when a script redefines a symbol") there
was no diagnostic at all. As of that commit, it's a warning, not an
error.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 4 | ||||
-rw-r--r-- | ld/ld.texi | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 2339a40..a94be75 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2021-02-25 Jan Beulich <jbeulich@suse.com> + + * ld.texi (PROVIDE): Downgrade "error" to "diagnostic". + 2021-02-21 Alan Modra <amodra@gmail.com> * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol @@ -4447,8 +4447,8 @@ SECTIONS @end smallexample In this example, if the program defines @samp{_etext} (with a leading -underscore), the linker will give a multiple definition error. If, on -the other hand, the program defines @samp{etext} (with no leading +underscore), the linker will give a multiple definition diagnostic. If, +on the other hand, the program defines @samp{etext} (with no leading underscore), the linker will silently use the definition in the program. If the program references @samp{etext} but does not define it, the linker will use the definition in the linker script. |