2 #as
: -march
=rv64i
-mabi
=lp64
-defsym __64_bit__
=1 -defsym __abs__
=1 -defsym __addr__
=1 -defsym __undef__
=1
3 #ld
: -m
[riscv_choose_lp64_emul
] -Ttext
0x8000 --defsym _start
=0x0 --defsym abs
=0x100 --defsym abs_local
=0x200 -shared -Bsymbolic
9 Disassembly of section
.text
:
13 8000: R_RISCV_RELATIVE \
*ABS\
*\
+0x8000
17 8008: R_RISCV_RELATIVE \
*ABS\
*\
+0x8008
18 8010: R_RISCV_RELATIVE \
*ABS\
*\
+0x100
19 8018: 00000200 .word
0x00000200
21 8020: R_RISCV_64 undef