about summary refs log tree commit diff stats
path: root/src/elfs/elfparser.c
diff options
context:
space:
mode:
authorxctan <xctan@cirno.icu>2023-12-23 16:02:38 +0800
committerGitHub <noreply@github.com>2023-12-23 09:02:38 +0100
commit6163f98020239f10e26b69d4a53e01d29c7279ea (patch)
treed12f85712c087669a3c98ee03da2ef32afdfd4ef /src/elfs/elfparser.c
parent316b2fc98abe75bef52e366acd67bd8ae8981d1f (diff)
downloadbox64-6163f98020239f10e26b69d4a53e01d29c7279ea.tar.gz
box64-6163f98020239f10e26b69d4a53e01d29c7279ea.zip
Cleanup some code (#1157)
* Fix the size of random bytes in the auxiliary vector (AT_RANDOM) to 16 bytes

* [ELFLOADER] Remove an unused statement
Diffstat (limited to 'src/elfs/elfparser.c')
-rw-r--r--src/elfs/elfparser.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/elfs/elfparser.c b/src/elfs/elfparser.c
index 994581f6..f9a3e844 100644
--- a/src/elfs/elfparser.c
+++ b/src/elfs/elfparser.c
@@ -438,7 +438,6 @@ int GetNeededVersionCnt(elfheader_t* h, const char* libname)
         Elf64_Verneed *ver = (Elf64_Verneed*)((uintptr_t)h->VerNeed + h->delta);
         while(ver) {
             char *filename = h->DynStr + ver->vn_file;
-            Elf64_Vernaux *aux = (Elf64_Vernaux*)((uintptr_t)ver + ver->vn_aux);
             if(!strcmp(filename, libname))
                 return ver->vn_cnt;
             ver = ver->vn_next?((Elf64_Verneed*)((uintptr_t)ver + ver->vn_next)):NULL;