remove dead code

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
Alex Goodman 2025-12-09 17:46:30 -05:00
parent 32946ec41f
commit 33c5e40431

View File

@ -24,18 +24,6 @@ const (
RelocationReadOnlyNone RelocationReadOnly = "none" // no RELRO protection RelocationReadOnlyNone RelocationReadOnly = "none" // no RELRO protection
RelocationReadOnlyPartial RelocationReadOnly = "partial" // partial RELRO protection RelocationReadOnlyPartial RelocationReadOnly = "partial" // partial RELRO protection
RelocationReadOnlyFull RelocationReadOnly = "full" // full 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. // 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"` Name string `json:"name" yaml:"name" mapstructure:"name"`
Version string `json:"version,omitempty" yaml:"version,omitempty" mapstructure:"version"` Version string `json:"version,omitempty" yaml:"version,omitempty" mapstructure:"version"`
Kind ToolchainKind `json:"kind" yaml:"kind" mapstructure:"kind"` 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. // ELFSecurityFeatures captures security hardening and protection mechanisms in ELF binaries.
type ELFSecurityFeatures struct { type ELFSecurityFeatures struct {
// SymbolTableStripped indicates whether debugging symbols have been removed. // SymbolTableStripped indicates whether debugging symbols have been removed.