NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/13435: libsa loadfile() loads binary or kernel at wrong address



The following reply was made to PR kern/13435; it has been noted by GNATS.

From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: kern/13435: libsa loadfile() loads binary or kernel at wrong
 address
Date: Sat, 22 May 2021 01:03:49 +0000

 The issue still remains (the code in libsa/loadfile_aout.c assumes
 that the entry point is at the beginning of the image text) but the
 enclosed patch isn't the right answer; among other things, it doesn't
 initialize "minp".
 
 I'm not sure what the right thing to do is, because while my memory of
 how a.out bins is very rusty I'm pretty sure that at least for some
 variants assuming the image begins at address 0 is also incorrect.
 
 however, I'm also wondering why we still have code for loading a.out
 kernel images; maybe the right thing to do is remove it and close the
 PR :-)
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index