compiler-explorer / compiler-explorer/compiler-explorer
[BUG]: riscv64 binutils assembly: Invalid architecture
- Dominant language
- TypeScript
- Stars
- 19.1k
- Forks
- 2.1k
- Avg merge
- 3d 15h
- Merged PRs (30d)
- 67
Description
### Describe the bug
with `Assembly Source #1`:
```asm
infiniteLoop:
j main
main:
j infiniteLoop
```
RISC-V (64) binutils 2.38.0 produces:
```
Could not execute the program
Executable not found
Compiler returned: 0
Compiler stderr
Invalid architecture for linking and execution
Compiler did not produce an executable
```
### Steps to reproduce
see above
### Expected behavior
program executes
### Reproduction link
https://godbolt.org/#g:!((g:!((g:!((h:codeEditor,i:(filename:'1',fontScale:14,fontUsePx:'0',j:1,lang:assembly,selection:(endColumn:1,endLineNumber:5,positionColumn:1,positionLineNumber:5,selectionStartColumn:1,selectionStartLineNumber:5,startColumn:1,startLineNumber:5),source:'infiniteLoop:%0A++++j+main%0Amain:%0A++++j+infiniteLoop%0A'),l:'5',n:'0',o:'Assembly+source+%231',t:'0')),k:100,l:'4',m:46.787148594377506,n:'0',o:'',s:0,t:'0'),(g:!((h:executor,i:(argsPanelShown:'1',compilationPanelShown:'0',compiler:gnuasriscv64g1320,compilerName:'',compilerOutShown:'0',execArgs:'',execStdin:'',fontScale:14,fontUsePx:'0',j:1,lang:assembly,libs:!(),options:'',overrides:!(),runtimeTools:!(),source:1,stdinPanelShown:'1',wrap:'1'),l:'5',n:'0',o:'Executor+RISC-V+binutils+2.38.0+(Assembly,+Editor+%231)',t:'0')),header:(),l:'4',m:53.21285140562249,n:'0',o:'',s:0,t:'0')),l:'3',n:'0',o:'',t:'0')),version:4
### Screenshots

### Operating System
_No response_
### Browser version
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.