Skip to content

Conversation

@angrq
Copy link

@angrq angrq commented Dec 1, 2025

Basically copy-pasted powerpc.c, some minor edits. Found a small issue in kallsym lookup during testing.

Anders Grahn added 2 commits November 28, 2025 15:20
Signed-off-by: Anders Grahn <anders.grahn@westermo.com>
Fixup the kallsym sort-compare function.

Sorting the kallsyms breaks when comparing addresses that are more than
INT_MAX bytes apart. The could break e.g. the stack or caller output.

Seen on a ppc64 Linux kernel where kernel memory is divided into
different address regions. Kernel modules are placed at
0xc0000100xxxxxxx and the core kernel at 0xc000000xxxxxxx.

Signed-off-by: Anders Grahn <anders.grahn@westermo.com>
Copy link
Owner

@wkz wkz left a comment

Choose a reason for hiding this comment

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

Good catch on the sort bug! Thanks! 🥇

@wkz wkz merged commit 49c1398 into wkz:master Dec 2, 2025
3 checks passed
@Gelbpunkt
Copy link

Hi, this is super cool, thanks for adding support! I assume that this code would also work fine on powerpc64le? Currently, when building for ppc64le, I see *** No rule to make target 'arch/powerpc64le.c'

@wkz
Copy link
Owner

wkz commented Dec 11, 2025

Hi, this is super cool, thanks for adding support! I assume that this code would also work fine on powerpc64le? Currently, when building for ppc64le, I see *** No rule to make target 'arch/powerpc64le.c'

I think that's a reasonable assumption. If you want, try to add a powerpc64le.c -> powerpc64.c symlink in src/libply/arch and try it out.

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.

3 participants