SystemZ adds EXRL target instructions in the end of each file. They need to be added to the text section and just like with constant pools this needs to happen before debug info emission since that may end the text section.
In order to facilitate this a new virtual method emitSectionEndings() has been added that is called at the same point as emitConstantPools().
clang-format: please reformat the code