wafa_ath
wafa_ath
DIIDevHeads IoT Integration Server
Created by Marvee Amasi on 9/11/2024 in #firmware-and-baremetal
How to Safely Modify .byte Values in x86_64 Assembly Without Segmentation Faults
You're getting a SIGSEGV because .byte values are in the code section, which is read-only. You cannot modify them directly with inc. store them in a writable data section like .data or .bss, then modify them using the correct addressing mode.
5 replies