From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 8C6EF3857022; Mon, 12 Apr 2021 11:43:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8C6EF3857022 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/marxin/heads/symver-improve-doc)] docs: update symver attribute description X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/users/marxin/heads/symver-improve-doc X-Git-Oldrev: 598359f627dec765eb74e31d9e96901a68bbfb97 X-Git-Newrev: 2ead1f61e3567797a5e3fe59be749db9d9ba98e5 Message-Id: <20210412114330.8C6EF3857022@sourceware.org> Date: Mon, 12 Apr 2021 11:43:30 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2021 11:43:30 -0000 https://gcc.gnu.org/g:2ead1f61e3567797a5e3fe59be749db9d9ba98e5 commit 2ead1f61e3567797a5e3fe59be749db9d9ba98e5 Author: Martin Liska Date: Mon Apr 12 13:42:33 2021 +0200 docs: update symver attribute description gcc/ChangeLog: * doc/extend.texi: Be more precise in documentation of symver attribute. Diff: --- gcc/doc/extend.texi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index e28e1860990..61d9a684b24 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -3848,7 +3848,8 @@ foo_v1 (void) Will produce a @code{.symver foo_v1, foo@@VERS_1} directive in the assembler output. -One can also define multiple version for a given symbol. +One can also define multiple version for a given symbol +(starting from binutils 2.35). @smallexample __attribute__ ((__symver__ ("foo@@VERS_2"), __symver__ ("foo@@VERS_3"))) @@ -3863,8 +3864,8 @@ int symver_bar_v1 (void) @} @end smallexample -This example creates an alias of @code{foo_v1} with symbol name -@code{symver_foo_v1} which will be version @code{VERS_2} of @code{foo}. +This example creates a symbol name @code{symver_foo_v1} +which will be version @code{VERS_2} and @code{VERS_3} of @code{foo}. Finally if the parameter is @code{"@var{name2}@@@@@var{nodename}"} then in addition to creating a symbol version (as if