--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+unsubscribe@groups.riscv.org.
To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/18a7c6d4.512b.15cfcc9fbf7.Coremail.leishangwen%40163.com.
1: auipc a0, %pcrel_hi(sym)lw a1, %pcrel_lo(1b)(a0)
lw a1, %gprel(sym)(gp)
--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+un...@groups.riscv.org.
On 1 Jul 2017, at 8:31 PM, Michael Clark <michae...@mac.com> wrote:.option push saves the current options so that they can be later restored (there are other options such as .option rvc for compressed code)
.option norelax tells the linker to not relax AUIPC+ADDI to a gp relative reference (constant pool). Obviously the load of gp needs to be fully qualified and can’t be relaxed.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/4194BFD6-C0E8-4CE7-B54F-A07C070845FA%40mac.com.

To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/91AE4A36-2BBF-4201-8AB7-1B59D5D85604%40mac.com.