Dynamically allocated. I actually allocated a huge buffer, then calculated the amount of it to use for data and the part to use for the bytecode that would manipulate said data. Insane laughter ensued.
Could have been DEP. I've upgraded my OS since then, so I can't check to see what the setting was.