Skip to content

PoC Generate OmniBOR input manifest from gc #11

@rygrange

Description

@rygrange

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

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