summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@collabora.co.uk>2012-01-16 16:24:46 (GMT)
committerVincent Sanders <vince@collabora.co.uk>2012-01-16 16:24:46 (GMT)
commitc72c66d69811607fb8d5fb288db69d243e7b7479 (patch)
treee84190c569cdbfe0710ba2738d84dadb20feb449
parentb277c43b562060a3dc68d7543d3ba6ca1f5a893f (diff)
downloadstack-test-c72c66d69811607fb8d5fb288db69d243e7b7479.tar.gz
stack-test-c72c66d69811607fb8d5fb288db69d243e7b7479.tar.xz
add collabora copyrightHEADmaster
-rw-r--r--Makefile4
-rw-r--r--stack-test.c13
2 files changed, 12 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index d334e42..775e115 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,8 @@
#!/usr/bin/make
+#
+# Test stack executability
+#
+# Copyright 2012 Collabora
.PHONY: stack-test
diff --git a/stack-test.c b/stack-test.c
index ea48663..45dbdc2 100644
--- a/stack-test.c
+++ b/stack-test.c
@@ -2,7 +2,10 @@
*
* Test stack executability
*
-* Compile with gcc -z execstack -Wall -g -O0 stack-test.c -o stack-test
+* Copyright 2012 Collabora
+*
+* Vincent Sanders <vince@collabora.co.uk>
+*
*/
/*
@@ -56,9 +59,9 @@ int main(int argc, char** argv)
/* dumpmap(); */
- printf("%s: calling function normally\n", __func__);
+ /*printf("%s: calling function normally\n", __func__);*/
result = test_function(7);
- printf("%s: Result %d\n", __func__, result);
+ /*printf("%s: Result %d\n", __func__, result);*/
/* force 16 byte alignment */
stack_function = (test_function_t *)((((unsigned long)&func_buffer) + 15) & ~15);
@@ -66,9 +69,9 @@ int main(int argc, char** argv)
__clear_cache(&func_buffer, &func_buffer + TEST_FUNC_SIZE);
- printf("%s: calling function in on stack at %p (%p)\n", __func__, stack_function, func_buffer);
+ /* printf("%s: calling function in on stack at %p (%p)\n", __func__, stack_function, func_buffer);*/
result = stack_function(11);
- printf("%s: Result %d\n", __func__, result);
+ /* printf("%s: Result %d\n", __func__, result);*/
return 0;
}