[Top][All Lists]

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

Checking for ET_EXEC

From: Rayiner Hashem
Subject: Checking for ET_EXEC
Date: Thu, 13 Dec 2001 17:53:33 -0500

In ../stage2/i386-elf.h in GRUB 0.90, you define a macro that checks if an ELF 
file is bootable. In it you check to see if the filetype is equal to ET_EXEC. 
This isn't necessarily the best thing to do. It is sometimes appropriate to 
build a kernel as a shared library (.so, of type ET_DYN) as it makes kernel 
modules behave very similar to regular userspace modules. You might want to 
consider removing the test for ET_EXEC.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]