PERFORCE change 100878 for review
Oleksandr Tymoshenko
gonzo at FreeBSD.org
Fri Jul 7 13:25:38 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=100878
Change 100878 by gonzo at gonzo_hq on 2006/07/07 13:25:22
Stubs for machine-dependent elf functions.
Integrated from juli@ tree.
Affected files ...
.. //depot/projects/mips2/src/sys/mips/mips/elf_machdep.c#2 edit
Differences ...
==== //depot/projects/mips2/src/sys/mips/mips/elf_machdep.c#2 (text+ko) ====
@@ -1,21 +1,20 @@
/*-
- * Copyright (c) 2006 Fill this file and put your name here
- * All rights reserved.
+ * Copyright (c) 2003-2004 Juli Mallett. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions, and the following disclaimer,
- * without modification, immediately at the beginning of the file.
- * 2. The name of the author may not be used to endorse or promote products
- * derived from this software without specific prior written permission.
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
@@ -23,7 +22,45 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
+ * $FreeBSD$
*/
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
+#include <sys/param.h>
+#include <sys/systm.h>
+#include <sys/linker.h>
+#include <sys/imgact.h>
+#include <sys/imgact_elf.h>
+
+void
+elf32_dump_thread(struct thread *td, void *dst, size_t *off)
+{
+ printf("%s unimplemented at %s:%d.\n", __func__, __FILE__, __LINE__);
+}
+
+int
+elf_cpu_load_file(linker_file_t fil)
+{
+ printf("%s unimplemented at %s:%d, returning error.\n", __func__, __FILE__, __LINE__);
+ return (ENXIO);
+}
+
+int
+elf_cpu_unload_file(linker_file_t fil)
+{
+ printf("%s unimplemented at %s:%d, returning error.\n", __func__, __FILE__, __LINE__);
+ return (ENXIO);
+}
+
+int
+elf_reloc(linker_file_t fil, Elf_Addr relocbase, const void *data, int type, elf_lookup_fn lookup)
+{
+ printf("%s unimplemented at %s:%d, returning error.\n", __func__, __FILE__, __LINE__);
+ return (ENXIO);
+}
+
+int
+elf_reloc_local(linker_file_t fil, Elf_Addr relocbase, const void *data, int type, elf_lookup_fn lookup)
+{
+ printf("%s unimplemented at %s:%d, returning error.\n", __func__, __FILE__, __LINE__);
+ return (ENXIO);
+}
More information about the p4-projects
mailing list