summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2024-10-02 12:31:34 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2024-10-02 12:31:34 +0000
commit5dd1cbcd1690e4d0d4fb93890f470f56f5bb9342 (patch)
tree8a572f696aa9a72410aeabf4a3e419a3d381a487 /usr.bin
parent2eafe04fff0d67a78b258b3f2eb6757eb97d89c7 (diff)
On i386 long double is 80bit expanded to 96bits or 12 bytes. This is the
size that the ctftools ctfconvert uses and I think we should do as well. Fixes regress/usr.bin/ctfdump on i386. OK miod@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ctfconv/generate.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/ctfconv/generate.c b/usr.bin/ctfconv/generate.c
index 3306edcb624..e31a06ef9ea 100644
--- a/usr.bin/ctfconv/generate.c
+++ b/usr.bin/ctfconv/generate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: generate.c,v 1.7 2024/02/27 06:58:19 anton Exp $ */
+/* $OpenBSD: generate.c,v 1.8 2024/10/02 12:31:33 claudio Exp $ */
/*
* Copyright (c) 2017 Martin Pieuchot
@@ -208,6 +208,8 @@ imcs_add_type(struct imcs *imcs, struct itype *it)
ctt.ctt_size = 4;
else if (size <= 64)
ctt.ctt_size = 8;
+ else if (size <= 96)
+ ctt.ctt_size = 12;
else
ctt.ctt_size = 16;
} else