From fa3929634a177c2532cd8947d4986343fcc231cc Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Mon, 16 Aug 2010 13:04:53 +0000 Subject: Add a dummy elf64.c, effectively removing support for loading 64-bit kernels from cdboot to slim it down below the 32k limit. --- sys/arch/hppa/stand/cdboot/elf64.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 sys/arch/hppa/stand/cdboot/elf64.c (limited to 'sys/arch') diff --git a/sys/arch/hppa/stand/cdboot/elf64.c b/sys/arch/hppa/stand/cdboot/elf64.c new file mode 100644 index 00000000000..006d7f03b9a --- /dev/null +++ b/sys/arch/hppa/stand/cdboot/elf64.c @@ -0,0 +1,36 @@ +/* $OpenBSD: elf64.c,v 1.1 2010/08/16 13:04:52 kettenis Exp $ */ + +/* + * Copyright (c) 2010 Mark Kettenis + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#include +#include + +#include +#include + +#include "../../../../lib/libsa/loadfile.h" + +#undef ELFSIZE +#define ELFSIZE 64 + +#include + +int +ELFNAME(exec)(int fd, Elf_Ehdr *elf, u_long *marks, int flags) +{ + return 1; +} -- cgit v1.2.3