I came across this typo and also added a similar ld invocation for illustration purposes as mentioned by Jakub on irc.
From 2df4903f04fbe68e9e6a1ae0eea460e7592a8512 Mon Sep 17 00:00:00 2001 From: Michael Ploujnikov <michael.ploujni...@oracle.com> Date: Fri, 2 Nov 2018 13:40:50 -0400 Subject: [PATCH] Fix weakref description.
gcc/ChangeLog: 2018-11-02 Michael Ploujnikov <michael.ploujni...@oracle.com> * doc/extend.texi: Fix typo in the weakref description. --- gcc/doc/extend.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git gcc/doc/extend.texi gcc/doc/extend.texi index 4dbb2da39e..027e0f75a1 100644 --- gcc/doc/extend.texi +++ gcc/doc/extend.texi @@ -3603,7 +3603,7 @@ symbol, not necessarily in the same translation unit. The effect is equivalent to moving all references to the alias to a separate translation unit, renaming the alias to the aliased symbol, declaring it as weak, compiling the two separate translation units and -performing a reloadable link on them. +performing a incremental link (like @code{ld -r}) on them. At present, a declaration to which @code{weakref} is attached can only be @code{static}. -- 2.19.1
signature.asc
Description: OpenPGP digital signature