Skip to content

Add fallback macros for missing Mach-O constants - #508

Open
jriv01 wants to merge 1 commit into
google:mainfrom
jriv01:mach-o-macros
Open

Add fallback macros for missing Mach-O constants#508
jriv01 wants to merge 1 commit into
google:mainfrom
jriv01:mach-o-macros

Conversation

@jriv01

@jriv01 jriv01 commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Fixes compilation failures on platforms that lack some Mach-O definitions:

src/macho.cc:79:30: error: use of undeclared identifier 'CPU_SUBTYPE_ARM64E'
  return subtype_proper == CPU_SUBTYPE_ARM64E;
                           ^
src/macho.cc:483:10: error: use of undeclared identifier 'LC_DYLD_CHAINED_FIXUPS'
    case LC_DYLD_CHAINED_FIXUPS:
         ^
src/macho.cc:486:10: error: use of undeclared identifier 'LC_DYLD_EXPORTS_TRIE'
    case LC_DYLD_EXPORTS_TRIE:
         ^
3 errors generated.

This change adds fallbacks at the top of macho.cc to ensure Bloaty can independently compile.

@jriv01
jriv01 requested a review from haberman September 1, 2026 21:27
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

Successfully merging this pull request may close these issues.

1 participant