Skip to content

Commit e602ac7

Browse files
committed
Enable bit-manipulation extensions to RISC-V
1 parent 3eb690b commit e602ac7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pwnlib/asm.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@ def _assembler():
274274
'ia64': [gas, '-m%ce' % context.endianness[0]],
275275

276276
# riscv64-unknown-elf-as supports riscv32 as well as riscv64
277-
'riscv32': [gas, '-march=rv32gc', '-mabi=ilp32'],
278-
'riscv64': [gas, '-march=rv64gc', '-mabi=lp64'],
277+
'riscv32': [gas, '-march=rv32gc_zba_zbb_zbc_zbs', '-mabi=ilp32'],
278+
'riscv64': [gas, '-march=rv64gc_zba_zbb_zbc_zbs', '-mabi=lp64'],
279279

280280
# loongarch64 supports none of -64, -EB, -EL or -march
281281
'loongarch64' : [gas],

0 commit comments

Comments
 (0)