Commit 074adc01 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Minumum stack is 16384 as per pthread's #define

parent c70d3acb
......@@ -13,7 +13,9 @@ def report_partition_@_LOWER:Name_@():
shift_offset = 0
shift_offset = 10000 # Linux tasks start at 10K that are 'hidden'
# On Linux, a constant named PTHREAD_STACK_MIN gives the minimum stack size for a thread
# in addition to the user space stack. We have to add this offest to the computed value:
shift_offset = 16384
if not os.path.exists(elf_binary):
print("[x] Failed to locate ELF binary:", elf_binary)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment