utsname: fix reporting strings
authorAlan Cox <alan@linux.intel.com>
Fri, 22 May 2015 23:11:46 +0000 (00:11 +0100)
committerAlan Cox <alan@linux.intel.com>
Fri, 22 May 2015 23:11:46 +0000 (00:11 +0100)
They were not getting packed as we wanted due to being const

Kernel/include/version.h
Kernel/makeversion

index 2937135..93a7deb 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef __VERSION_DOT_H__
 #define __VERSION_DOT_H__
 
-extern const char uname_str[];
+extern char uname_str[];
 extern const uint8_t uname_len;
 
 #endif
index 356753f..8fc7817 100755 (executable)
@@ -20,7 +20,8 @@ struct sysinfoblk sysinfo = {
 };
 /* Must follow immediately afterwards */
 /* Quoting to work around cc65 bug */
-const char uname_str[] = "$1\0""Fuzix\0""$2\0""$3";
+/* Must not be const .. or gets packed elsewhere not after sysinfo */
+char uname_str[] = "$1\0""Fuzix\0""$2\0""$3";
 EOF
 X=$(echo "$1XFuzix$2X$3X"|wc -c)
 echo "const uint8_t uname_len = "$X";" >>version.c