From 69f10b8ad3e2cd417c7a567d64217c86e2699f4d Mon Sep 17 00:00:00 2001 From: claudio Date: Wed, 2 Oct 2024 12:31:33 +0000 Subject: [PATCH] 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@ --- usr.bin/ctfconv/generate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.20.1