This is a fix for https://bugs.llvm.org/show_bug.cgi?id=40007.
It is rebased on top of D59762.
Idea is to swap the order of stripping. So that we strip sections before
symbols what allows us to strip relocation sections without emitting
the error about relative symbols.
Probably worth renaming this test strip-all-relocations.test, since it's not specifically about stripping relocations.