aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAnthony G. Basile <basile@opensource.dyc.edu>2011-04-13 17:53:46 -0400
committerAnthony G. Basile <basile@opensource.dyc.edu>2011-04-13 17:53:46 -0400
commit718e9dd2242be19aa342ec1e0db71a3b0fc9f1e0 (patch)
tree7d5d21f35c816cc7148646250d23863042cf72fd /tests
parentfix-gnustack.c: added needed gelf_update_phdr() (diff)
downloadelfix-718e9dd2242be19aa342ec1e0db71a3b0fc9f1e0.tar.gz
elfix-718e9dd2242be19aa342ec1e0db71a3b0fc9f1e0.tar.bz2
elfix-718e9dd2242be19aa342ec1e0db71a3b0fc9f1e0.zip
fix-gnustack.c: removed unnecessary and harmful elf_update()
Diffstat (limited to 'tests')
-rw-r--r--tests/bad.c2
-rw-r--r--tests/test-bad.asm13
2 files changed, 6 insertions, 9 deletions
diff --git a/tests/bad.c b/tests/bad.c
index ea8cb2b..7999e35 100644
--- a/tests/bad.c
+++ b/tests/bad.c
@@ -1,7 +1,7 @@
#include <stdlib.h>
-extern int badness();
+//extern int badness();
int main()
{
diff --git a/tests/test-bad.asm b/tests/test-bad.asm
index 265fdb6..8468062 100644
--- a/tests/test-bad.asm
+++ b/tests/test-bad.asm
@@ -4,12 +4,9 @@ SECTION .text
align 16
badness:
+ push rbp
+ mov rbp,rsp
- push RBX
- push RBP
-
- pop RBP
- pop RBX
- ret
-
-end
+ mov rsp,rbp
+ pop rbp
+ ret