We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b63810d commit cc37feaCopy full SHA for cc37fea
qiling/loader/elf.py
@@ -335,6 +335,7 @@ def __push_str(top: int, s: str) -> int:
335
336
new_stack = randstraddr = __push_str(new_stack, 'a' * 16)
337
new_stack = cpustraddr = __push_str(new_stack, 'i686')
338
+ new_stack = execfn = __push_str(new_stack, argv[0])
339
340
# store aux vector data for gdb use
341
elf_phdr = load_address + elffile['e_phoff']
@@ -369,6 +370,8 @@ def __push_str(top: int, s: str) -> int:
369
370
(AUX.AT_HWCAP, elf_hwcap),
371
(AUX.AT_CLKTCK, 100),
372
(AUX.AT_RANDOM, randstraddr),
373
+ (AUX.AT_HWCAP2, 0),
374
+ (AUX.AT_EXECFN, execfn),
375
(AUX.AT_PLATFORM, cpustraddr),
376
(AUX.AT_SECURE, 0),
377
(AUX.AT_NULL, 0)
0 commit comments