Skip to content

Conversation

@lhames
Copy link
Contributor

@lhames lhames commented Nov 17, 2025

When reading r_pcrel, r_length, r_extern and r_type fields of any_relocation_info we need to take endianness into account.

This is an alternative fix the issue described in
for #167902. This fix avoids external calls and further dependence on MachOObject file.

When reading r_pcrel, r_length, r_extern and r_type fields of
any_relocation_info we need to take endianness into account.

This is an alternative fix the issue described in
for llvm#167902. This fix avoids external
calls and further dependence on MachOObject file.
@lhames
Copy link
Contributor Author

lhames commented Nov 17, 2025

Nope, not needed: the "bitfields" here actually have the same layout in both endiannesses (due to https://github.com/apple-oss-distributions/cctools/blob/920a2b45080fb9badf31bf675f03b19973f0dd4f/include/mach-o/reloc.h#L140, I believe).

@lhames lhames closed this Nov 17, 2025
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