Skip to content
Snippets Groups Projects
Commit 434078e9 authored by Raymond Toy's avatar Raymond Toy
Browse files

On sparc, use EXTERN_ALIEN_NAME too when printing out the error message.

parent a1946b35
No related branches found
No related tags found
No related merge requests found
...@@ -223,8 +223,9 @@ os_foreign_linkage_init(void) ...@@ -223,8 +223,9 @@ os_foreign_linkage_init(void)
if (i == 0) { if (i == 0) {
#if defined(sparc) #if defined(sparc)
if (type != LINKAGE_CODE_TYPE || strcmp(c_symbol_name, EXTERN_ALIEN_NAME("call_into_c"))) { if (type != LINKAGE_CODE_TYPE || strcmp(c_symbol_name, EXTERN_ALIEN_NAME("call_into_c"))) {
fprintf(stderr, "linkage_data is %s but expected call_into_c\n", fprintf(stderr, "linkage_data is %s but expected %s\n",
c_symbol_name); c_symbol_name,
EXTERN_ALIEN_NAME("call_into_c"));
lose("First element of linkage_data is bogus.\n"); lose("First element of linkage_data is bogus.\n");
} }
arch_make_linkage_entry(i, (void*) call_into_c, 1); arch_make_linkage_entry(i, (void*) call_into_c, 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment