]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - scripts/sorttable.c
Compiler Attributes: add __alloc_size() for better bounds checking
[mirror_ubuntu-jammy-kernel.git] / scripts / sorttable.c
index f355869c65cd10ef77c2faff6c90b3ca09692c21..278bb53b325c1469b3a6a08a69b52111ce6c4246 100644 (file)
 #define EM_ARCV2       195
 #endif
 
+#ifndef EM_RISCV
+#define EM_RISCV       243
+#endif
+
 static uint32_t (*r)(const uint32_t *);
 static uint16_t (*r2)(const uint16_t *);
 static uint64_t (*r8)(const uint64_t *);
@@ -236,7 +240,7 @@ static void x86_sort_relative_table(char *extab_image, int image_size)
 
                w(r(loc) + i, loc);
                w(r(loc + 1) + i + 4, loc + 1);
-               w(r(loc + 2) + i + 8, loc + 2);
+               /* Don't touch the fixup type */
 
                i += sizeof(uint32_t) * 3;
        }
@@ -249,7 +253,7 @@ static void x86_sort_relative_table(char *extab_image, int image_size)
 
                w(r(loc) - i, loc);
                w(r(loc + 1) - (i + 4), loc + 1);
-               w(r(loc + 2) - (i + 8), loc + 2);
+               /* Don't touch the fixup type */
 
                i += sizeof(uint32_t) * 3;
        }