diff options
Diffstat (limited to 'util/sconfig')
-rw-r--r-- | util/sconfig/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sconfig/main.c b/util/sconfig/main.c index 43b083e92b..f5e6ac137f 100644 --- a/util/sconfig/main.c +++ b/util/sconfig/main.c @@ -641,7 +641,7 @@ int main(int argc, char** argv) { while (h->next) { h = h->next; char *name_underscore = translate_name(h->name, UNSLASH); - fprintf(autogen, "extern struct chip_operations %s_ops;\n", name_underscore); + fprintf(autogen, "__attribute__((weak)) struct chip_operations %s_ops = {};\n", name_underscore); free(name_underscore); } fprintf(autogen, "#endif\n"); |