Unable to use .bss section memory

前端 未结 1 1852
甜味超标
甜味超标 2021-01-25 14:43

I\'m trying to store a file descriptor in .bss memory for a basic Linux program that reads from one file and writes to another. I\'ve been unable to get it to work.

The

1条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-25 15:17

    After working on this further, the problem was the incorrect use of immediate addressing mentioned by Peter in the comments. I'm still unsure why this prevented me from running the program at all, and can only assume that this was caused by some sort of OS memory protection.

    0 讨论(0)
提交回复
热议问题