From 3c27360bc40ea05cd20bda72617aff707a5b951e Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Thu, 25 Feb 2021 14:35:29 +0100 Subject: [PATCH] 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. --- ld/ChangeLog | 4 ++++ ld/ld.texi | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 2339a4014c..a94be7526b 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2021-02-25 Jan Beulich + + * ld.texi (PROVIDE): Downgrade "error" to "diagnostic". + 2021-02-21 Alan Modra * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol diff --git a/ld/ld.texi b/ld/ld.texi index bfe6c5994a..9643818e3e 100644 --- a/ld/ld.texi +++ b/ld/ld.texi @@ -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. -- 2.34.1