Skip to content

Fix bounds check in ocResolve_PEi386 for relocation values.

Andreas Klebinger requested to merge AndreasK/ghc:linker_bounds into master

Replace bogus shift based bounds check by simple comparison.

The old test was wrong at least for gcc and the value -2287728808L.

It also relied on implementation defined behaviour, which might
or might not be ok. But a simple comparison will always work.
Edited by Andreas Klebinger

Merge request reports