Refactor to make the .bss, .data and .text sections available for other uses.

No functionality change.