|
|
|
@ -83,7 +83,7 @@ def apply_static(main, *reloc):
@@ -83,7 +83,7 @@ def apply_static(main, *reloc):
|
|
|
|
|
def write_export_list(name, in_node, out_node): |
|
|
|
|
"generate exports list for library" |
|
|
|
|
|
|
|
|
|
exports = in_node.read().split('\n') |
|
|
|
|
exports = in_node.read().splitlines() |
|
|
|
|
externs = '\n'.join(['extern void %s(void);' % e for e in exports]) |
|
|
|
|
table = '\n'.join(['{ "%s", &%s },' % (e, e) for e in exports]) |
|
|
|
|
out_node.write('%s\nstruct {const char *name;void *func;} lib_%s_exports[] = {\n%s\n{0,0}\n};\n' % (externs, name, table )) |
|
|
|
|