After I run the cmd $gcc source.S -o source, the error appears like Error: invalid instruction suffix for `push'
then I add .code32 on source.S, the executable file was produced successfully.
However, when I ran $ ./source, following error happens:
Segmentation fault (core dumped)
How can I solve it?
After I run the cmd $gcc source.S -o source, the error appears like Error: invalid instruction suffix for `push'
then I add .code32 on source.S, the executable file was produced successfully.
However, when I ran $ ./source, following error happens:
Segmentation fault (core dumped)
How can I solve it?