Skip to content
This repository was archived by the owner on Aug 17, 2022. It is now read-only.

Commit 49d8e10

Browse files
committed
Set TC_ADDRESS_BYTES properly, so .dc.a directive works
This resolves riscvarchive/riscv-gcc#19 and riscv-collab/riscv-gnu-toolchain#192
1 parent 2dfac04 commit 49d8e10

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gas/config/tc-riscv.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -603,8 +603,9 @@ void
603603
md_begin (void)
604604
{
605605
int i = 0;
606+
unsigned long mach = xlen == 64 ? bfd_mach_riscv64 : bfd_mach_riscv32;
606607

607-
if (! bfd_set_arch_mach (stdoutput, bfd_arch_riscv, 0))
608+
if (! bfd_set_arch_mach (stdoutput, bfd_arch_riscv, mach))
608609
as_warn (_("Could not set architecture and machine"));
609610

610611
op_hash = hash_new ();

0 commit comments

Comments
 (0)