git: f548033818b8 - main - amd64 fabs(3): move signbit to .text

Konstantin Belousov kib at FreeBSD.org
Sat Apr 3 22:01:29 UTC 2021


The branch main has been updated by kib:

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

commit f548033818b8bbcee17ad3926103f2a9b2c975df
Author:     Konstantin Belousov <kib at FreeBSD.org>
AuthorDate: 2021-04-03 01:32:10 +0000
Commit:     Konstantin Belousov <kib at 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
 


More information about the dev-commits-src-all mailing list