diff options
| author | Mark Rowe <mark@vector35.com> | 2025-10-22 12:18:09 -0700 |
|---|---|---|
| committer | Mark Rowe <mark@vector35.com> | 2025-10-22 12:24:38 -0700 |
| commit | adf70fe4bd7fd38884467f9f910867cdd918120b (patch) | |
| tree | 3e18f80629310a07ab65027d3ae9d4a49ed76ace /view | |
| parent | dd993ac110b3d098ac2388374b67e45eb4b9bf19 (diff) | |
[MachO] Fix GCC build
Clang, MSVC and GCC all have different opinions about what's permissible with initialization from a braced initializer list.
Diffstat (limited to 'view')
| -rw-r--r-- | view/macho/chained_fixups.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/view/macho/chained_fixups.cpp b/view/macho/chained_fixups.cpp index 1860255a..e4e6d160 100644 --- a/view/macho/chained_fixups.cpp +++ b/view/macho/chained_fixups.cpp @@ -39,18 +39,18 @@ namespace { FixupInfo BindFixup(uint32_t ordinal, int32_t addend, uint16_t next) { - return { .bind = { ordinal, addend }, .type = FixupType::Bind, .next = next }; + return FixupInfo{ .bind = { ordinal, addend }, .type = FixupType::Bind, .next = next }; } FixupInfo RebaseFixup(uint64_t target, uint16_t next) { - return { .rebase = { target }, .type = FixupType::Rebase, .next = next }; + return FixupInfo{ .rebase = { target }, .type = FixupType::Rebase, .next = next }; } FixupInfo AuthBindFixup(uint32_t ordinal, AuthKeyType keyType, bool usesAddressDiversity, uint16_t addressDiversity, uint16_t next) { - return { + return FixupInfo{ .bind = { ordinal, 0 }, .type = FixupType::Bind, .isAuthenticated = true, .authKeyType = keyType, .usesAddressDiversity = usesAddressDiversity, .addressDiversity = addressDiversity, .next = next @@ -60,7 +60,7 @@ FixupInfo AuthBindFixup(uint32_t ordinal, FixupInfo AuthRebaseFixup(uint64_t target, AuthKeyType keyType, bool usesAddressDiversity, uint16_t addressDiversity, uint16_t next) { - return { + return FixupInfo{ .rebase = { target }, .type = FixupType::Rebase, .isAuthenticated = true, .authKeyType = keyType, .usesAddressDiversity = usesAddressDiversity, .addressDiversity = addressDiversity, .next = next |
