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

Binary format of attribute section is not specified #342

Open
Shadlock0133 opened this issue Aug 27, 2022 · 3 comments
Open

Binary format of attribute section is not specified #342

Shadlock0133 opened this issue Aug 27, 2022 · 3 comments
Milestone

Comments

@Shadlock0133
Copy link

Documentation lists individual attributes, but doesn't specify overall format of the section.

For example, LLVM starts the section with "Format_Version" tag (0x41), followed by section length (as fixed-size 32-bit int (u32)), vendor string ("riscv"), "File" attribute type (0x01), content length (u32), then finally actual attributes; which doesn't seem to be documented anywhere.

@kito-cheng kito-cheng added this to the Post 1.0 milestone Sep 2, 2022
@hehaoqian
Copy link

What is the type of the attribute tag?
Is it uleb128? But this is not in the document

@hehaoqian
Copy link

Sorry, I mean the type of the tag in the key value pairs.
Look like it is ULEB128.
https://github.com/llvm/llvm-project/blob/11c1d8b7fd82b32b37db47bcd8eac813b9667b5c/llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp#L126

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

No branches or pull requests

3 participants