git: 1801534a5c8a - stable/12 - libsa: Remove conflicting .global/.weak directive
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 08 Oct 2021 06:11:27 UTC
The branch stable/12 has been updated by kevans:
URL: https://cgit.FreeBSD.org/src/commit/?id=1801534a5c8a73b684176c67aa3eb7cfa5116a81
commit 1801534a5c8a73b684176c67aa3eb7cfa5116a81
Author: Alex Richardson <arichardson@FreeBSD.org>
AuthorDate: 2021-03-30 13:52:31 +0000
Commit: Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2021-10-08 05:24:28 +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. */