1*d64c9d94Stom /* $OpenBSD: elf32.c,v 1.1 2007/05/30 01:25:43 tom Exp $ */ 2*d64c9d94Stom 3*d64c9d94Stom /* 4*d64c9d94Stom * Copyright (c) 2007 Tom Cosgrove <tom@openbsd.org> 5*d64c9d94Stom * 6*d64c9d94Stom * Permission to use, copy, modify, and distribute this software for any 7*d64c9d94Stom * purpose with or without fee is hereby granted, provided that the above 8*d64c9d94Stom * copyright notice and this permission notice appear in all copies. 9*d64c9d94Stom * 10*d64c9d94Stom * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11*d64c9d94Stom * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12*d64c9d94Stom * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13*d64c9d94Stom * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14*d64c9d94Stom * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15*d64c9d94Stom * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16*d64c9d94Stom * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17*d64c9d94Stom */ 18*d64c9d94Stom 19*d64c9d94Stom #include <lib/libkern/libkern.h> 20*d64c9d94Stom #include <lib/libsa/stand.h> 21*d64c9d94Stom 22*d64c9d94Stom #include <sys/param.h> 23*d64c9d94Stom #include <sys/exec.h> 24*d64c9d94Stom 25*d64c9d94Stom #include "../../../../lib/libsa/loadfile.h" 26*d64c9d94Stom 27*d64c9d94Stom #undef ELFSIZE 28*d64c9d94Stom #define ELFSIZE 32 29*d64c9d94Stom 30*d64c9d94Stom #include <sys/exec_elf.h> 31*d64c9d94Stom 32*d64c9d94Stom #include "../../../../lib/libsa/loadfile_elf.c" 33