Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Apr 2021 13:30:06 GMT
From:      Alex Richardson <arichardson@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 52b6501bd7de - stable/13 - libsa: Remove conflicting .global/.weak directive
Message-ID:  <202104101330.13ADU6Na004708@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by arichardson:

URL: https://cgit.FreeBSD.org/src/commit/?id=52b6501bd7de28af8cfdfc62b8763dd580ba8ca3

commit 52b6501bd7de28af8cfdfc62b8763dd580ba8ca3
Author:     Alex Richardson <arichardson@FreeBSD.org>
AuthorDate: 2021-03-30 13:52:31 +0000
Commit:     Alex Richardson <arichardson@FreeBSD.org>
CommitDate: 2021-04-10 13:01:05 +0000

    libsa: Remove conflicting .global/.weak directive
    
    LLVM12 complains if you change the symbol binding:
    `error: _longjmp changed binding to STB_GLOBAL`
    In this case LLVM actually ignored the weak directive and used the
    later .global, but GNU as would mark the symbol as weak.
    None of the other architectures mark the libsa _setjmp as weak so
    just drop this directive.
    
    (cherry picked from commit 59b2caef0537661397caf2ce1398cf802cb864b4)
---
 stand/libsa/amd64/_setjmp.S | 1 -
 1 file changed, 1 deletion(-)

diff --git a/stand/libsa/amd64/_setjmp.S b/stand/libsa/amd64/_setjmp.S
index 6d9a5fa13f8d..53ea6e9b5d52 100644
--- a/stand/libsa/amd64/_setjmp.S
+++ b/stand/libsa/amd64/_setjmp.S
@@ -63,7 +63,6 @@ ENTRY(_setjmp)
 	ret
 END(_setjmp)
 
-	.weak	CNAME(_longjmp)
 ENTRY(_longjmp)
 	movq	%rdi,%rdx
 	/* Restore the mxcsr, but leave exception flags intact. */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202104101330.13ADU6Na004708>