GOAL: Given a section of machine code, which conatins RISC-V extended instructions, I want to wrap it as a function and create an .o object file.
The function is something like void foo(), there s no arguments with void return type. and it call no other external functions and needs no relocation. How do I achieve that?