Fix Ar crashing on odd-sized object files (Trac #15396)

Authored by monoidal on Jul 27 2018, 3:10 PM.

Description

Fix Ar crashing on odd-sized object files (Trac Trac #15396)

Summary: All the work was done by Moritz Angermann.

Test Plan: validate

Reviewers: angerman, RyanGlScott, bgamari

Reviewed By: angerman

Subscribers: rwbarton, thomie, carter

GHC Trac Issues: Trac #15396

Differential Revision: https://phabricator.haskell.org/D5013

(cherry picked from commit 754c3a55a603b155fa5d9a282de73d41a4694ffc)