Prohibit relaxing the initial gp generation
[riscv-tests.git] / benchmarks / common / crt.S
index 3e6cee44a3330bcd2b616158df0f2af5434bf566..d75e81e06548df82100a010c21a6310927cadc7c 100644 (file)
@@ -111,7 +111,10 @@ _start:
   csrw mtvec, t0
 
   # initialize global pointer
+.option push
+.option norelax
   la gp, __global_pointer$
+.option pop
 
   la  tp, _end + 63
   and tp, tp, -64