]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
powerpc: Remove relocation cache flush code for power64
authorFlorian Weimer <fweimer@redhat.com>
Thu, 10 Apr 2025 04:52:18 +0000 (06:52 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 10 Apr 2025 04:52:18 +0000 (06:52 +0200)
This is only needed for -mno-secure-plt, and this linkage mode
is not supported with powerpc64 and powerp64le.

Reviewed-by: Peter Bergner <bergner@linux.ibm.com>
sysdeps/powerpc/powerpc64/dl-machine.h

index d8d7c8b763d54ed8f95289ade29117476a70f7b8..89e26bbd2e00b34091d7da3e785fbd712ff0f3a1 100644 (file)
@@ -363,7 +363,6 @@ elf_machine_runtime_setup (struct link_map *map, struct r_scope_elem *scope[],
                                    / sizeof (Elf64_Rela));
       Elf64_Addr l_addr = map->l_addr;
       Elf64_Dyn **info = map->l_info;
-      char *p;
 
       extern void _dl_runtime_resolve (void);
       extern void _dl_profile_resolve (void);
@@ -435,20 +434,6 @@ elf_machine_runtime_setup (struct link_map *map, struct r_scope_elem *scope[],
              offset += PLT_ENTRY_WORDS;
              glink_offset += GLINK_ENTRY_WORDS (i);
            }
-
-         /* Now, we've modified data.  We need to write the changes from
-            the data cache to a second-level unified cache, then make
-            sure that stale data in the instruction cache is removed.
-            (In a multiprocessor system, the effect is more complex.)
-            Most of the PLT shouldn't be in the instruction cache, but
-            there may be a little overlap at the start and the end.
-
-            Assumes that dcbst and icbi apply to lines of 16 bytes or
-            more.  Current known line sizes are 16, 32, and 128 bytes.  */
-
-         for (p = (char *) plt; p < (char *) &plt[offset]; p += 16)
-           PPC_DCBST (p);
-         PPC_SYNC;
        }
     }
   return lazy;