Explorar el Código

Surround use of absolute offset with "norelax"

This prevents an unsupported `R_RISCV_ALIGN` relocation from being
generated by disabling link-time relaxing for the appropriate part.

Fixes #55.
Wladimir J. van der Laan hace 4 años
padre
commit
7638761655
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      riscv-rt/asm.S

+ 3 - 0
riscv-rt/asm.S

@@ -30,6 +30,8 @@ _start:
 
     // for 64bit
     .if __riscv_xlen == 64
+.option push
+.option norelax // to prevent an unsupported R_RISCV_ALIGN relocation from being generated
 1:
     auipc ra, %pcrel_hi(1f)
     ld ra, %pcrel_lo(1b)(ra)
@@ -37,6 +39,7 @@ _start:
     .align  3
 1:
     .dword _abs_start
+.option pop
     .endif
 
 _abs_start: