]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - scripts/kallsyms.c
knfsd: exportfs: add procedural interface for NFSD
[linux-2.6-omap-h63xx.git] / scripts / kallsyms.c
index f359b730c2c57572b46f47f7c344137c7b5f9c55..10b006694e5de8751d68341ae0eb58fa37e0b196 100644 (file)
@@ -31,7 +31,7 @@
 #include <string.h>
 #include <ctype.h>
 
-#define KSYM_NAME_LEN          127
+#define KSYM_NAME_LEN          128
 
 
 struct sym_entry {
@@ -254,7 +254,7 @@ static void write_src(void)
        unsigned int i, k, off;
        unsigned int best_idx[256];
        unsigned int *markers;
-       char buf[KSYM_NAME_LEN+1];
+       char buf[KSYM_NAME_LEN];
 
        printf("#include <asm/types.h>\n");
        printf("#if BITS_PER_LONG == 64\n");
@@ -265,7 +265,7 @@ static void write_src(void)
        printf("#define ALGN .align 4\n");
        printf("#endif\n");
 
-       printf(".data\n");
+       printf("\t.section .rodata, \"a\"\n");
 
        /* Provide proper symbols relocatability by their '_text'
         * relativeness.  The symbol names cannot be used to construct