[Git][ghc/ghc][wip/andreask/linker_fix] 54 commits: Check that shift values are valid