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

Commit

Permalink
Set TC_ADDRESS_BYTES properly, so .dc.a directive works
Browse files Browse the repository at this point in the history
  • Loading branch information
aswaterman committed Nov 12, 2016
1 parent 2dfac04 commit 49d8e10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gas/config/tc-riscv.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,8 +603,9 @@ void
md_begin (void)
{
int i = 0;
unsigned long mach = xlen == 64 ? bfd_mach_riscv64 : bfd_mach_riscv32;

if (! bfd_set_arch_mach (stdoutput, bfd_arch_riscv, 0))
if (! bfd_set_arch_mach (stdoutput, bfd_arch_riscv, mach))
as_warn (_("Could not set architecture and machine"));

op_hash = hash_new ();
Expand Down

0 comments on commit 49d8e10

Please sign in to comment.