Build malloc_chunk tests with libpthread (#1265)

pull/1267/head
CptGibbon 3 years ago committed by GitHub
parent d79dbb672c
commit ec8addd602
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,6 +4,7 @@
*/
#include <stdlib.h>
#include <pthread.h>
#define INTERNAL_SIZE_T size_t
#define SIZE_SZ (sizeof (INTERNAL_SIZE_T))
@ -68,4 +69,10 @@ int main(void)
unsorted_chunk = mem2chunk(unsorted);
break_here();
// Required for CI build to retrieve TLS variables.
// See:
// - https://github.com/pwndbg/pwndbg/pull/1086
// - https://sourceware.org/bugzilla/show_bug.cgi?id=24548
pthread_create(0,0,0,0);
}

@ -86,6 +86,10 @@ heap_vis.out: heap_vis.c
@echo "[+] Building heap_vis.out"
${CC} -g -O0 -Wno-nonnull -o heap_vis.out heap_vis.c -pthread -lpthread
heap_malloc_chunk.out: heap_malloc_chunk.c
@echo "[+] Building heap_malloc_chunk.out"
${CC} -g -O0 -Wno-nonnull -o heap_malloc_chunk.out heap_malloc_chunk.c -pthread -lpthread
clean :
@echo "[+] Cleaning stuff"
@rm -f $(COMPILED) $(LINKED) $(COMPILED_ASM) $(LINKED_ASM) $(COMPILED_GO)

Loading…
Cancel
Save