De-staticize enough to make all the LKMs work again. Add comments where
deemed relevant.
This commit is contained in:
parent
e9fe146bb4
commit
d131a704ed
@ -25,7 +25,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: linux_sysvec.c,v 1.23 1998/02/06 12:13:19 eivind Exp $
|
||||
* $Id: linux_sysvec.c,v 1.24 1998/02/09 06:09:17 eivind Exp $
|
||||
*/
|
||||
|
||||
/* XXX we use functions that might not exist. */
|
||||
@ -401,7 +401,7 @@ struct sysentvec elf_linux_sysvec = {
|
||||
/*
|
||||
* Installed either via SYSINIT() or via LKM stubs.
|
||||
*/
|
||||
static Elf32_Brandinfo linux_brand = {
|
||||
Elf32_Brandinfo linux_brand = {
|
||||
"Linux",
|
||||
"/compat/linux",
|
||||
"/lib/ld-linux.so.1",
|
||||
|
@ -26,7 +26,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: imgact_coff.c,v 1.28 1997/12/27 02:56:18 bde Exp $
|
||||
* $Id: imgact_coff.c,v 1.29 1998/02/09 06:08:20 eivind Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -473,7 +473,7 @@ exec_coff_imgact(imgp)
|
||||
/*
|
||||
* Tell kern_execve.c about it, with a little help from the linker.
|
||||
* Since `const' objects end up in the text segment, TEXT_SET is the
|
||||
* correct directive to use.
|
||||
* correct directive to use. Do not staticize; used by coff LKM.
|
||||
*/
|
||||
static const struct execsw coff_execsw = { exec_coff_imgact, "coff" };
|
||||
const struct execsw coff_execsw = { exec_coff_imgact, "coff" };
|
||||
TEXT_SET(execsw_set, coff_execsw);
|
||||
|
@ -28,7 +28,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: imgact_linux.c,v 1.25 1997/12/05 19:55:37 bde Exp $
|
||||
* $Id: imgact_linux.c,v 1.26 1998/02/09 06:09:16 eivind Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -230,8 +230,8 @@ exec_linux_imgact(imgp)
|
||||
/*
|
||||
* Tell kern_execve.c about it, with a little help from the linker.
|
||||
* Since `const' objects end up in the text segment, TEXT_SET is the
|
||||
* correct directive to use.
|
||||
* correct directive to use. Do not staticize; used by Linux LKM.
|
||||
*/
|
||||
static const struct execsw linux_execsw = { exec_linux_imgact, "linux a.out" };
|
||||
const struct execsw linux_execsw = { exec_linux_imgact, "linux a.out" };
|
||||
TEXT_SET(execsw_set, linux_execsw);
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: linux_sysvec.c,v 1.23 1998/02/06 12:13:19 eivind Exp $
|
||||
* $Id: linux_sysvec.c,v 1.24 1998/02/09 06:09:17 eivind Exp $
|
||||
*/
|
||||
|
||||
/* XXX we use functions that might not exist. */
|
||||
@ -401,7 +401,7 @@ struct sysentvec elf_linux_sysvec = {
|
||||
/*
|
||||
* Installed either via SYSINIT() or via LKM stubs.
|
||||
*/
|
||||
static Elf32_Brandinfo linux_brand = {
|
||||
Elf32_Brandinfo linux_brand = {
|
||||
"Linux",
|
||||
"/compat/linux",
|
||||
"/lib/ld-linux.so.1",
|
||||
|
Loading…
x
Reference in New Issue
Block a user