Skip to content

Update struct definitions #134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jcmosc
Copy link

@jcmosc jcmosc commented Jul 12, 2025

No description provided.

@@ -10,7 +10,7 @@

#include "OGBase.h"

typedef OG_OPTIONS(uint32_t, OGAttributeFlags) {
typedef OG_OPTIONS(uint8_t, OGAttributeFlags) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This gets stored as an 8-bit field in AG::Node.

Comment on lines +36 to +39
struct {
OGTypeID type_id;
const void *witness_table;
} body_conformance;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Kyle-Ye This doesn't appear in the swift section dump you provided, but I can see it being set in Ghidra's disassembly. I'm not sure if there is a difference in behaviour depending on version.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we miss something in swift section? Maybe we can try to use Ghidra and align those logic. cc @Mx-Iris

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.

2 participants