summaryrefslogtreecommitdiffstats
path: root/sys/kern/imgact_elf.c
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1998-09-14 05:36:51 +0000
committerjdp <jdp@FreeBSD.org>1998-09-14 05:36:51 +0000
commit70bb8503aada512ec1237d4fe781e53761791b6a (patch)
treebcbd3e1c4a1caadaba5890cec117aefdfb8c0612 /sys/kern/imgact_elf.c
parentf69ac0c38654fe24e1fb1f743a634e62b4518e1a (diff)
downloadFreeBSD-src-70bb8503aada512ec1237d4fe781e53761791b6a.zip
FreeBSD-src-70bb8503aada512ec1237d4fe781e53761791b6a.tar.gz
Add provisions for variant core dump file formats, depending on the
object format of the executable being dumped. This is the first step toward producing ELF core dumps in the proper format. I will commit the code to generate the ELF core dumps Real Soon Now. In the meantime, ELF executables won't dump core at all. That is probably no less useful than dumping a.out-style core dumps as they have done until now. Submitted by: Alex <garbanzo@hooked.net> (with very minor changes by me)
Diffstat (limited to 'sys/kern/imgact_elf.c')
-rw-r--r--sys/kern/imgact_elf.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c
index 96c0a5e..e6dc3cf 100644
--- a/sys/kern/imgact_elf.c
+++ b/sys/kern/imgact_elf.c
@@ -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_elf.c,v 1.28 1998/07/15 05:00:26 bde Exp $
+ * $Id: imgact_elf.c,v 1.29 1998/07/29 18:39:35 dfr Exp $
*/
#include "opt_rlimit.h"
@@ -101,7 +101,8 @@ static struct sysentvec elf_freebsd_sysvec = {
sigcode,
&szsigcode,
0,
- "FreeBSD ELF"
+ "FreeBSD ELF",
+ elf_coredump
};
static Elf_Brandinfo freebsd_brand_info = {
@@ -638,6 +639,14 @@ fail:
return error;
}
+int
+elf_coredump (p)
+ register struct proc *p;
+{
+ /* Not implemented yet. */
+ return EFAULT;
+}
+
static int
elf_freebsd_fixup(long **stack_base, struct image_params *imgp)
{
OpenPOWER on IntegriCloud