public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c36704
)
Properly export symbols.
author
David Given
<dg@cowlark.com>
Sat, 29 Oct 2016 21:52:17 +0000
(23:52 +0200)
committer
David Given
<dg@cowlark.com>
Sat, 29 Oct 2016 21:52:17 +0000
(23:52 +0200)
mach/proto/mcg/symbol.c
patch
|
blob
|
history
diff --git
a/mach/proto/mcg/symbol.c
b/mach/proto/mcg/symbol.c
index
26e01e0
..
ac5e78c
100644
(file)
--- a/
mach/proto/mcg/symbol.c
+++ b/
mach/proto/mcg/symbol.c
@@
-37,6
+37,9
@@
void symbol_declare(const char* name, bool is_exported, bool is_proc)
else if (s->section != SECTION_TEXT)
fatal("section mismatch for '%s'", name);
}
+
+ if (is_exported)
+ fprintf(outputfile, ".extern %s\n", platform_label(name));
}
struct symbol* symbol_walk(symbol_walker_t* cb, void* user)