summaryrefslogtreecommitdiff
path: root/devel/chrpath/files/patch-chrpath.c
blob: ca4b9690f331504cade0ae32017d93a4702de4ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- chrpath.c.orig	2025-02-22 12:22:26 UTC
+++ chrpath.c
@@ -60,9 +60,9 @@
  * Reads the section names table from an ELF file into memory
  */
 char*
-read_section_names(int fd, Elf_Ehdr ehdr)
+read_section_names(int fd, absElf_Ehdr ehdr)
 {
-  Elf_Shdr shdr;
+  absElf_Shdr shdr;
 
   const size_t sz_shdr = is_e32() ? sizeof(Elf32_Shdr) : sizeof(Elf64_Shdr);
   const size_t sh_off = EHDRWU(e_shoff);
@@ -122,10 +122,10 @@
 chrpath(const char *filename, const char *newpath, int convert)
 {
   int fd;
-  Elf_Ehdr ehdr;
+  absElf_Ehdr ehdr;
   int i;
-  Elf_Phdr phdr;
-  Elf_Shdr shdr;
+  absElf_Phdr phdr;
+  absElf_Shdr shdr;
   void *dyns;
   int rpathoff;
   char * strtab;