x86 memory access segmentation fault

前端 未结 2 763
再見小時候
再見小時候 2020-12-18 06:53

I am learning x86 assembly out of curiosity. I\'m currently using a Linux based OS with the NASM assembler. I am having a difficult time understanding why

SE         


        
2条回答
  •  伪装坚强ぢ
    2020-12-18 07:30

    You don't have unrestricted RAM. Furthermore, you don't have unrestricted access to the part of your address space which is backed by RAM. Code pages are mapped read-only. And as a ring-3 program, you can't change that yourself.

提交回复
热议问题