Skip to content

llvm-nm #10

Description

@ElvishJerricco

GHC uses nm to find the sizes of some things when building, but llvm-nm doesn't quite work for WebAssembly (or -flto for that matter). They tried fixing it once, but llvm-nm now shows the offset information, not the size information as expected.

We currently have a hacky fix that uses -flto to trick GHC into producing LLVM bitcode, which we then llvm-dis to get the necessary information out of. I find it rather amusing that this works, but it's obviously a terrible solution.

We have a ticket in with LLVM:
https://bugs.llvm.org/show_bug.cgi?id=34392

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions