Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What generates custom section with type id == 1? #78

Closed
justinclift opened this issue May 22, 2019 · 2 comments
Closed

What generates custom section with type id == 1? #78

justinclift opened this issue May 22, 2019 · 2 comments

Comments

@justinclift
Copy link
Contributor

justinclift commented May 22, 2019

In compiler/module.go, there seems to be an initial decoder for custom sections, with the current code looking for a type of 1:

if err != nil || ty != 1 {

Any idea what generates these sections?

Asking because I'm adding code in my fork to decode the (LLVM 8 generated) custom section containing the function names (type = 4).

It looks like the existing code is meant to do the same thing (extract function names). Not sure what is being used to generate it though, so an curious if maybe it was from an older LLVM release or similar?

@justinclift
Copy link
Contributor Author

@mastersingh24 Any idea? 😄

Git blame points at your commit introducing it: 3f69e3d

@justinclift
Copy link
Contributor Author

Closing this after realising the 4 in LLVM generated name section is just the length of name (the word) in bytes. Not sure what generates the different info expected by the current life code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant