* [PATCH] ld: correct description of behavior for symbols redefined by script
@ 2021-02-24 11:05 Jan Beulich
2021-02-25 9:51 ` Alan Modra
0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2021-02-24 11:05 UTC (permalink / raw)
To: Binutils
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/
2021-02-XX Jan Beulich <jbeulich@suse.com>
* ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
--- 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ld: correct description of behavior for symbols redefined by script
2021-02-24 11:05 [PATCH] ld: correct description of behavior for symbols redefined by script Jan Beulich
@ 2021-02-25 9:51 ` Alan Modra
0 siblings, 0 replies; 2+ messages in thread
From: Alan Modra @ 2021-02-25 9:51 UTC (permalink / raw)
To: Jan Beulich; +Cc: Binutils
On Wed, Feb 24, 2021 at 12:05:29PM +0100, Jan Beulich via Binutils wrote:
> 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/
> 2021-02-XX Jan Beulich <jbeulich@suse.com>
>
> * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
Thanks, please commit.
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-25 9:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-24 11:05 [PATCH] ld: correct description of behavior for symbols redefined by script Jan Beulich
2021-02-25 9:51 ` Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).