driver: use PROGBITS type for .debug-ghc-link-info section
authorSylvain HENRY <hsyl20@gmail.com>
Fri, 30 Oct 2015 18:55:24 +0000 (19:55 +0100)
committerBen Gamari <ben@smart-cactus.org>
Fri, 30 Oct 2015 18:55:34 +0000 (19:55 +0100)
commitf78b477bd0ba1f85089c515259c9e3145abd1f7b
tree6df29427f2028cb7f7d67869cbe0fd5fac1ef7a7
parentaa289d2a1bea3c30719710530c5a4409230f90d4
driver: use PROGBITS type for .debug-ghc-link-info section

Previously the `.debug-ghc-link-info` section was of type `SHT_NOTE` but
this is not compliant with the ELF specification, which requires that
`NOTE` sections are in a particular record-based format. We mark this
section as `PROGBITS` instead, which is defined as implying no
particular format.

Fixes #11022.

Reviewers: bgamari, austin

Reviewed By: bgamari, austin

Subscribers: thomie, hsyl20

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

GHC Trac Issues: #11022
compiler/main/DriverPipeline.hs