|
@@ -37,6 +37,16 @@ diff --git a/build/unix/elfhack/Makefile.in b/build/unix/elfhack/Makefile.in
|
|
|
@echo === provide the pre-elfhacked library as an attachment.
|
|
|
@echo === Use --disable-elf-hack until this is fixed.
|
|
|
@echo ===
|
|
|
+@@ -40,8 +41,9 @@ dummy: dummy.$(OBJ_SUFFIX)
|
|
|
+ libs:: dummy
|
|
|
+ # Will either crash or return exit code 1 if elfhack is broken
|
|
|
+ LD_PRELOAD=$(CURDIR)/test-array$(DLL_SUFFIX) $(CURDIR)/dummy
|
|
|
+ LD_PRELOAD=$(CURDIR)/test-ctors$(DLL_SUFFIX) $(CURDIR)/dummy
|
|
|
+
|
|
|
+ GARBAGE += dummy
|
|
|
+ endif
|
|
|
+ endif
|
|
|
++endif
|
|
|
diff --git a/build/unix/elfhack/inject.c b/build/unix/elfhack/inject.c
|
|
|
--- a/build/unix/elfhack/inject.c
|
|
|
+++ b/build/unix/elfhack/inject.c
|