Skip to content
  • Ben Gamari's avatar
    Dwarf: Ensure block length is encoded correctly · a0b1f414
    Ben Gamari authored and Ben Gamari's avatar Ben Gamari committed
    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
    a0b1f414