diff --git a/syft/file/executable.go b/syft/file/executable.go index d99448d5f..bab2f0dec 100644 --- a/syft/file/executable.go +++ b/syft/file/executable.go @@ -24,18 +24,6 @@ const ( RelocationReadOnlyNone RelocationReadOnly = "none" // no RELRO protection RelocationReadOnlyPartial RelocationReadOnly = "partial" // partial RELRO protection RelocationReadOnlyFull RelocationReadOnly = "full" // full RELRO protection - - //// from https://pkg.go.dev/cmd/nm - // SymbolTypeText SymbolType = "T" // text (code) segment symbol - // SymbolTypeTextStatic SymbolType = "t" // static text segment symbol - // SymbolTypeReadOnly SymbolType = "R" // read-only data segment symbol - // SymbolTypeReadOnlyStatic SymbolType = "r" // static read-only data segment symbol - // SymbolTypeData SymbolType = "D" // data segment symbol - //SymbolTypeDataStatic SymbolType = "d" // static data segment symbol - //SymbolTypeBSS SymbolType = "B" // bss segment symbol - //SymbolTypeBSSStatic SymbolType = "b" // static bss segment symbol - //SymbolTypeConstant SymbolType = "C" // constant address - //SymbolTypeUndefined SymbolType = "U" // referenced but undefined symbol ) // Executable contains metadata about binary files and their security features. @@ -67,16 +55,8 @@ type Toolchain struct { Name string `json:"name" yaml:"name" mapstructure:"name"` Version string `json:"version,omitempty" yaml:"version,omitempty" mapstructure:"version"` Kind ToolchainKind `json:"kind" yaml:"kind" mapstructure:"kind"` - - // TODO: should we allow for aux information here? free form? } -// type Symbol struct { -// //Type SymbolType `json:"type" yaml:"type" mapstructure:"type"` -// Type string `json:"type" yaml:"type" mapstructure:"type"` -// Name string `json:"name" yaml:"name" mapstructure:"name"` -//} - // ELFSecurityFeatures captures security hardening and protection mechanisms in ELF binaries. type ELFSecurityFeatures struct { // SymbolTableStripped indicates whether debugging symbols have been removed.