Skip to content

Commit e7021ea

Browse files
committed
feat: Add support for function variants and fixups in Mach-O file parsing
- Introduced FunctionVariants and FunctionVariantFixups load commands. - Implemented methods to retrieve and parse function variants and fixups data. - Enhanced symbol resolution for function variants based on CPU features. - Added new types and constants for ARM64 and x86_64 CPU feature flags. - Updated stringer generation for new types and commands. - Modified the Enrich method to include function variants and fixups parsing. - Improved error handling for missing load commands.
1 parent 8a30045 commit e7021ea

File tree

7 files changed

+852
-76
lines changed

7 files changed

+852
-76
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ destroy: ## Remove release from the VERSION
4646
git tag -d ${VERSION}
4747
git push origin :refs/tags/${VERSION}
4848

49+
.PHONY: fmt
50+
fmt: ## Format code
51+
@echo " > Formatting code"
52+
@gofmt -w -r 'interface{} -> any' .
53+
@goimports -w .
54+
@gofmt -w -s .
55+
@go mod tidy
56+
4957
# Absolutely awesome: http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
5058
help:
5159
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

0 commit comments

Comments
 (0)