Skip to content

Commit 387ccce

Browse files
author
Luca Toniolo
committed
hal: Add empty rtapi_app_exit to enum component
rtapi_app.h unconditionally declares EXPORT_SYMBOL for both rtapi_app_main and rtapi_app_exit, so every module is expected to provide both entry points. enum.c only implemented rtapi_app_main, which slipped past GNU ld but trips lld 17+'s default --no-undefined-version (LLVM D135402) when the generated version script references the missing symbol: ld.lld: error: version script assignment of 'global' to symbol 'rtapi_app_exit' failed: symbol not defined Provide an empty rtapi_app_exit so enum.c satisfies the contract. Builds clean with clang 19 / ld.lld 19 for a uspace configuration. Fixes #3191.
1 parent 568354c commit 387ccce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/hal/components/enum.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ int rtapi_app_main(void){
184184

185185
}
186186

187+
void rtapi_app_exit(void) {}
188+
187189
static void decode(void *v_inst, long period){
188190
(void)period;
189191
int i;

0 commit comments

Comments
 (0)