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

PoC Generate OmniBOR input manifest from gc #11

Open
5 tasks
rygrange opened this issue Mar 11, 2024 · 0 comments
Open
5 tasks

PoC Generate OmniBOR input manifest from gc #11

rygrange opened this issue Mar 11, 2024 · 0 comments

Comments

@rygrange
Copy link

Is your feature request related to a problem? Please describe.
We need to be able to have the Go toolchain output input manifests for go compilations. The first step is to make a proof of concept of this working with the tools that we have created so far.

Describe the solution you'd like
We should use the omnibor-go module to generate an input manifest from the go toolchain during the go compilation. This means vendoring the omnibor-go module, finding a spot in gc (Go compiler), and adding code to generate an input manifest using the vendored module. Once done, we can manually check that the input manifest generated is correct. Lastly in order to continue onto the next step of the linker we need to embed the manifest ID so that calls to link the generated go object files can access the manifests that were generated for them.

Definition of Done

  • Vendor this (omnibor-go) module into the go toolchain code (fork of golang/go)
  • Determine correct location in the go code to add omnibor-go module calls
  • Add calls to generate input manifest and embed manifest ID
  • Check that generated input manifest is correct
  • Check that correct manifest ID is embedded
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