File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,6 @@ $source = "$PSScriptRoot/asm.S"
2
2
$o_file = " $PSScriptRoot /bin/riscv32imac-unknown-none-elf.o"
3
3
$a_file = " $PSScriptRoot /bin/riscv32imac-unknown-none-elf.a"
4
4
5
- riscv64- unknown- elf- gcc $source - o $o_file - march= rv32imac - mabi= ilp32 - c - g
5
+ riscv64- unknown- elf- gcc $source - o $o_file - march= rv32imac - mabi= ilp32 - mno - relax - Wa , - mno - relax - c - g
6
6
riscv64- unknown- elf- ar rcs $a_file $o_file
7
7
Remove-Item $o_file
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
1
3
cur_path=$( cd ` dirname $0 ` ; pwd)
2
4
o_file=$cur_path /bin/riscv32imac-unknown-none-elf.o
3
5
a_file=$cur_path /bin/riscv32imac-unknown-none-elf.a
@@ -19,7 +21,7 @@ You may install riscv32-unknown-elf-gcc with: ./configure --prefix=/opt/riscv32
19
21
exit
20
22
fi
21
23
22
- $compiler $src_file -o $o_file -march=rv32imac -mabi=ilp32 -c -g
24
+ $compiler $src_file -o $o_file -march=rv32imac -mabi=ilp32 -mno-relax -Wa,-mno-relax - c -g
23
25
if [ " $? " != 0 ]; then
24
26
exit
25
27
fi
You can’t perform that action at this time.
0 commit comments