]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
Trying automagic version stuff
authorhenryk@ploetzli.ch <henryk@ploetzli.ch@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Fri, 28 Aug 2009 02:40:22 +0000 (02:40 +0000)
committerhenryk@ploetzli.ch <henryk@ploetzli.ch@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Fri, 28 Aug 2009 02:40:22 +0000 (02:40 +0000)
common/version.c [new file with mode: 0644]

diff --git a/common/version.c b/common/version.c
new file mode 100644 (file)
index 0000000..cd78272
--- /dev/null
@@ -0,0 +1,10 @@
+#define VERSION "$Id $"
+static const struct __attribute__((packed)) {
+    const char string[48];
+    unsigned int length;
+    unsigned int magic;
+} version __attribute__((unused,section("versioninformation"))) = {
+    VERSION,
+    sizeof(VERSION),
+    0x48151623,
+};
Impressum, Datenschutz