aboutsummaryrefslogtreecommitdiff
path: root/backends/plugins/elf/version.h
diff options
context:
space:
mode:
authorAndre Heider2010-09-15 07:44:08 +0000
committerAndre Heider2010-09-15 07:44:08 +0000
commit2596143e2bc42f5958e446ba6c156402ee1a8d53 (patch)
tree27838a251050826a5a59574f2064f70365900c1f /backends/plugins/elf/version.h
parent76ca653972f5513d46c00889b57c7a13e41859a9 (diff)
downloadscummvm-rg350-2596143e2bc42f5958e446ba6c156402ee1a8d53.tar.gz
scummvm-rg350-2596143e2bc42f5958e446ba6c156402ee1a8d53.tar.bz2
scummvm-rg350-2596143e2bc42f5958e446ba6c156402ee1a8d53.zip
PLUGINS: Additional plugin check for the ELF loader.
The ELF loader does not have access to the symbols of the main executable, it just relocates symbols to it via fixed offsets. We need to make sure that loaded plugins are from the same link process to prevent crashes. An embedded build date is used for that. svn-id: r52730
Diffstat (limited to 'backends/plugins/elf/version.h')
-rw-r--r--backends/plugins/elf/version.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/backends/plugins/elf/version.h b/backends/plugins/elf/version.h
new file mode 100644
index 0000000000..726204aeb7
--- /dev/null
+++ b/backends/plugins/elf/version.h
@@ -0,0 +1,35 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * $URL$
+ * $Id$
+ */
+
+#ifndef BACKENDS_PLUGINS_ELF_VERSION_H
+#define BACKENDS_PLUGINS_ELF_VERSION_H
+
+#include "common/scummsys.h"
+
+#ifdef USE_ELF_LOADER
+extern const char *gScummVMPluginBuildDate;
+#endif
+
+#endif
+