spitbol / x64

SPITBOL x64 provides raw power and speed for non-numeric computation on the x86_64 architecture
GNU General Public License v3.0
256 stars 23 forks source link

Fix the segfault when running under Linux 5.10 #12

Closed CheyenneWills closed 2 years ago

CheyenneWills commented 3 years ago

Something was changed "recently" on how Linux marks the memory permissions. The code at the start of int.asm is not in a memory segment that has executable permissions.

The fix is to simply add a 'segment .text' statement before the executable code.

Note that this is impacting not only the building spitbol on a Linux 5.10 system, but also the binary that gets installed into /usr/local/bin.

In addition, there is another commit in this PR that contains a small update to the makefile to add a target to copy the binary built in the 'spitbol' target into ./bin.

CheyenneWills commented 3 years ago

Note, I did not include a built sbl binary since I figured the upstream maintainers will want to do that.

CheyenneWills commented 2 years ago

Added the binary