Skip to content

Commit

Permalink
Merge pull request #3 from RajUmadas/master
Browse files Browse the repository at this point in the history
Patch for noexecstack and file extension rename
  • Loading branch information
simonjhall committed Aug 3, 2012
2 parents bf34dde + 5076cd6 commit 7313fbe
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
@@ -1,6 +1,6 @@
libcofi_rpi.so: memcpy.o memset.o
$(CC) -o libcofi_rpi.so -shared memcpy.o memset.o -g
memset.o: memset.s
$(AS) memset.s -o memset.o -g
$(AS) memset.S -o memset.o -g
memcpy.o: memcpy.s
$(AS) memcpy.s -o memcpy.o -g
$(AS) memcpy.S -o memcpy.o -g
5 changes: 5 additions & 0 deletions memcpy.s → memcpy.S
Expand Up @@ -330,3 +330,8 @@ post_misalignment_3_loop:

b full_out
.endfunc

/* Raj: Added this to enable no exec stack */
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
5 changes: 5 additions & 0 deletions memset.s → memset.S
Expand Up @@ -98,3 +98,8 @@ stray_bytes:

pop {r0, pc}
.endfunc
/* Raj: Added this to enable no exec stack */
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

0 comments on commit 7313fbe

Please sign in to comment.