Re: port-amiga/60617: elf2bb crashes

"Jan-Benedict Glaw via gnats" <[email protected]>
Newsgroups gmane.os.netbsd.bugs
Message-ID <[email protected]>
The following reply was made to PR port-amiga/60617; it has been noted by GNATS.

From: Jan-Benedict Glaw <[email protected]>
To: [email protected]
Cc: [email protected], [email protected],
	[email protected]
Subject: Re: port-amiga/60617: elf2bb crashes
Date: Thu, 20 Aug 2026 10:55:55 +0200

 --HvekwG3FPb3nxl8w
 Content-Type: text/plain; charset=utf-8
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Tue, 2026-08-18 04:15:02 +0000, Michael van Elst via gnats <gnats-admin@=
 NetBSD.org> wrote:
 >  This looks like a miscalculation of the bootblock size.
 > =20
 >  Index: elf2bb.c
 >  =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 >  RCS file: /cvsroot/src/sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c,v
 >  retrieving revision 1.30
 >  diff -p -u -r1.30 elf2bb.c
 >  --- elf2bb.c    29 Apr 2022 07:12:42 -0000      1.30
 >  +++ elf2bb.c    18 Aug 2026 04:07:10 -0000
 >  @@ -226,7 +226,7 @@ main(int argc, char *argv[])
 >                   * But if it is not the case in the future, format for
 >                   * relocation table should be modified.
 >                   */
 >  -               bbsize =3D roundup(tsz + dsz, 512);
 >  +               bbsize =3D roundup(tsz + dsz + bsz, 512);
 >                  sumsize =3D bbsize / 512;
 >          } else {
 >                  /*
 
 That is probably right and results in a proper build on a Linux host.
 However, I don't have an Amiga available right now and I haven't
 tested it with fs-uae. (I'd probably extend my test setup to make it
 available.)
 
 MfG, JBG
 
 --HvekwG3FPb3nxl8w
 Content-Type: application/pgp-signature; name="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 
 iF0EABECAB0WIQQlDTvPcScNjKREqWEdvV51g5nhuwUCaobBFQAKCRAdvV51g5nh
 uwe8AJ9WTo6LdKOIQnxlZMuqINoxjGLU2QCdFgDLquMtP+MWnwng32aGXS0g93w=
 =KB1S
 -----END PGP SIGNATURE-----
 
 --HvekwG3FPb3nxl8w--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.