Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
[linux-2.6-microblaze.git] / arch / powerpc / kernel / module_64.c
index 183368e..bb18071 100644 (file)
@@ -652,6 +652,11 @@ int apply_relocate_add(Elf64_Shdr *sechdrs,
                        *location = value - (unsigned long)location;
                        break;
 
+               case R_PPC64_REL32:
+                       /* 32 bits relative (used by relative exception tables) */
+                       *(u32 *)location = value - (unsigned long)location;
+                       break;
+
                case R_PPC64_TOCSAVE:
                        /*
                         * Marker reloc indicates we don't have to save r2.