Only print filename and entry address for the kernel itself. The rest

have a meaningless entry as they are relocatable.
This commit is contained in:
Peter Wemm 1998-10-12 09:05:12 +00:00
parent 2da2eeacee
commit 55820fca35
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=40253

View File

@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: load_aout.c,v 1.8 1998/10/02 16:22:26 msmith Exp $
* $Id: load_aout.c,v 1.9 1998/10/09 23:15:39 peter Exp $
*/
#include <sys/param.h>
@ -149,7 +149,8 @@ aout_loadmodule(char *filename, vm_offset_t dest, struct loaded_module **result)
addr += pad;
}
mp->m_addr = addr; /* save the aligned load address */
printf("%s at %p\n", filename, (void *) addr);
if (kernel)
printf("%s at %p\n", filename, (void *) addr);
mp->m_size = aout_loadimage(mp, fd, addr, &ehdr, kernel);
if (mp->m_size == 0)