We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb165bf commit 00b2425Copy full SHA for 00b2425
scripts/decodecode
@@ -93,6 +93,11 @@ disas() {
93
${CROSS_COMPILE}strip $t.o
94
fi
95
96
+ if [ "$ARCH" = "riscv" ]; then
97
+ OBJDUMPFLAGS="-M no-aliases --section=.text -D"
98
+ ${CROSS_COMPILE}strip $t.o
99
+ fi
100
+
101
if [ $pc_sub -ne 0 ]; then
102
if [ $PC ]; then
103
adj_vma=$(( $PC - $pc_sub ))
@@ -126,8 +131,13 @@ get_substr_opcode_bytes_num()
126
131
do
127
132
substr+="$opc"
128
133
134
+ opcode="$substr"
135
136
+ opcode=$(echo $opcode | tr ' ' '\n' | tac | tr -d '\n')
137
138
129
139
# return if opcode bytes do not match @opline anymore
130
- if ! echo $opline | grep -q "$substr";
140
+ if ! echo $opline | grep -q "$opcode";
141
then
142
break
143
0 commit comments