Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Apr 2021 22:01:28 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: f548033818b8 - main - amd64 fabs(3): move signbit to .text
Message-ID:  <202104032201.133M1Sqc063163@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kib:

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

commit f548033818b8bbcee17ad3926103f2a9b2c975df
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-04-03 01:32:10 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-04-03 22:00:57 +0000

    amd64 fabs(3): move signbit to .text
    
    There is no reason for signbit quad to be writeable.
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
---
 lib/libc/amd64/gen/fabs.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/libc/amd64/gen/fabs.S b/lib/libc/amd64/gen/fabs.S
index 2ace0f9fb926..bb1ac3a81b96 100644
--- a/lib/libc/amd64/gen/fabs.S
+++ b/lib/libc/amd64/gen/fabs.S
@@ -39,7 +39,7 @@ ENTRY(fabs)
 	ret
 END(fabs)
 
-	.data
+	.p2align 3
 signbit:
 	.quad	0x8000000000000000
 



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