Skip to content

Commit

Permalink
Disable linker relaxation for scrub.s
Browse files Browse the repository at this point in the history
  • Loading branch information
NandkumarJoshi committed Apr 30, 2020
1 parent 4c221ae commit 5d51e4c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/scrub.S
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
/*
* Scrub memory with zero
*/

/* Disable linker relaxation */
.option push
.option norelax

.type _metal_memory_scrub, @function
_metal_memory_scrub:
/* Zero out memory */
Expand Down Expand Up @@ -115,3 +120,5 @@ skip_scrub:
/* Restore caller ra */
mv ra, s0
ret

.option pop

0 comments on commit 5d51e4c

Please sign in to comment.