Additional fixes for the relocation reworking.

Change for handling relocations to sections that have been discarded.
Some other additional debugging.

A random fix for an assembler test, I don't think this is broken due to
my work, this is just a random breakage that I've found & fixed.