Merge tag 'modules-for-v5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu...
[linux-2.6-microblaze.git] / arch / x86 / tools / relocs.c
index b9c577a..04c5a44 100644 (file)
@@ -867,9 +867,11 @@ static int do_reloc32(struct section *sec, Elf_Rel *rel, Elf_Sym *sym,
        case R_386_PC32:
        case R_386_PC16:
        case R_386_PC8:
+       case R_386_PLT32:
                /*
-                * NONE can be ignored and PC relative relocations don't
-                * need to be adjusted.
+                * NONE can be ignored and PC relative relocations don't need
+                * to be adjusted. Because sym must be defined, R_386_PLT32 can
+                * be treated the same way as R_386_PC32.
                 */
                break;
 
@@ -910,9 +912,11 @@ static int do_reloc_real(struct section *sec, Elf_Rel *rel, Elf_Sym *sym,
        case R_386_PC32:
        case R_386_PC16:
        case R_386_PC8:
+       case R_386_PLT32:
                /*
-                * NONE can be ignored and PC relative relocations don't
-                * need to be adjusted.
+                * NONE can be ignored and PC relative relocations don't need
+                * to be adjusted. Because sym must be defined, R_386_PLT32 can
+                * be treated the same way as R_386_PC32.
                 */
                break;