google / bloaty

Bloaty: a size profiler for binaries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Overflow in vm range" in a haskell binary, linked with `--gc-sections`

jberryman opened this issue · comments

$ bloaty test-pandoc -d compileunits
bloaty: Overflow in vm range, vmaddr=26239607, vmsize=18446744073683312009
$ bloaty --version
Bloaty McBloatface 1.1

This is from the pandoc test suite, compiled with cabal build -w ghc-9.2.5, and with DWARF symbols added (-g1), and linked with ---gc-sections

The issue could very well be something with ghc, as DWARF isn't used much, maybe it's interacting badly with -gc-sections. But I figured I'd open a ticket

here's an example. it's bzip2 compressed, but I had to change the filename to please github
test-pandoc.g1.gc-sections.broken.zip