diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2015-09-25 12:51:54 +0200 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2015-09-25 12:52:04 +0200 |
commit | a0b1f414a459e102f5c3d93bfbf53ebe0d81c467 (patch) | |
tree | 9b01e3cdbef68adcd790c40d45b34770152e86f8 /compiler/utils/StringBuffer.hs | |
parent | a98815a9f11ea467aa96033cb7839d2662a29efc (diff) | |
download | haskell-a0b1f414a459e102f5c3d93bfbf53ebe0d81c467.tar.gz |
Dwarf: Ensure block length is encoded correctly
This is supposed to be encoded with ULEB128 which the previous
implementation would only guarranty with short lengths. This likely
holds in nearly all cases, but I'd really rather not take changes.
I fix this using the `.uleb128` directive. I'm not certain that this is
portable across assemblers but it makes this quite straightforward and
at the moment I value correctness over portability.
Test Plan: Compare implementation to DWARF spec
Reviewers: scpmw, austin
Reviewed By: austin
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D1220
Diffstat (limited to 'compiler/utils/StringBuffer.hs')
0 files changed, 0 insertions, 0 deletions