Skip to content

REL_TYPE undeclared on non-x86_64 architectures (aarch64) #142

@SamHerts

Description

@SamHerts

Building Spindle TestSuite on non-x86_64 architectures (aarch64) fails with a compile error

testsuite/symbind_test.c:139:2: error: #error Need rel type for architecture
139 | #error Need rel type for architecture
    |  ^~~~~

Root cause:

REL_TYPE is defined in the architecture guard block but not for other architectures:

#if defined(__x86_64)
#define REL_TYPE ElfW(Rela)
#else

Suggested fix

Add the appropriate architecture type constant for other architectures in the guard block.

#if defined(__x86_64) || || defined(__aarch64__)
#define REL_TYPE ElfW(Rela)
#else
#error Need rel type for architecture
#endif

Environment

  • Spindle: devel branch (commit 4174224)
  • OS: Rocky Linux 10.1 (Red Quartz)
  • Compiler: GCC 15 (gnu15 toolchain)
  • Affected file: testsuite/symbind_test.c

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions