Skip to content

Add big-endian ARM fixtures, BE8 and BE32 - #192

Closed
zardus wants to merge 1 commit into
masterfrom
feature/armeb-be8-fixtures
Closed

Add big-endian ARM fixtures, BE8 and BE32#192
zardus wants to merge 1 commit into
masterfrom
feature/armeb-be8-fixtures

Conversation

@zardus

@zardus zardus commented Aug 25, 2026

Copy link
Copy Markdown
Member

THIS MESSAGE WAS GENERATED BY AN AUTOMATED PROCESS

There is no big-endian ARM ELF in the repository — I scanned all 823 and found zero ELFDATA2MSB EM_ARM files, so nothing can currently test that path.

These are a matched pair, built from the same object file and differing only in whether the linker was given --be8: tests/armeb/be8_loop has e_flags 0x05800400 and tests/armeb/be32_loop has 0x05000400. Having both matters more than having either, because the interesting property is the one bit that separates them, and a test that cannot compare against the other layout cannot show it is reading that bit rather than something else about the file.

Freestanding, 996 bytes each, no libc and no imports. The source and the exact clang and ld.lld invocations are in tests_src/armeb, so they rebuild anywhere clang runs.

armeb as a directory name follows the existing mips/mipsel and ppc/ppc64el split.

Consumed by angr/cle's BE8 detection.

The repository has no big-endian ARM ELF at all. These are a matched pair built
from one object file, differing only in whether the linker was given --be8, so a
test can tell the two layouts apart. Freestanding, 996 bytes each; the source and
the build line are in tests_src/armeb.
@zardus

zardus commented Aug 27, 2026

Copy link
Copy Markdown
Member Author

THIS MESSAGE WAS GENERATED BY AN AUTOMATED PROCESS

Closing this as superseded by #202, which covers the same change against the same files and goes further: it rebuilds both objects from the committed tests_src/armeb recipe so the source and the artifacts agree.

Nothing here is lost — please review #202 instead.

session: pr-review

@zardus zardus closed this Aug 27, 2026
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