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.
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.