diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-04-21 13:39:34 +0700 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-04-22 16:45:07 +0700 |
commit | 58175e72768f0697e83b91f752c9be533f613c25 (patch) | |
tree | 0d202ba32d6720769a836166134aa783cec61d73 /emcc | |
parent | 41e2d50e93ce7c2e33e969583ea409c7532859ed (diff) |
Let libc.symbols use same symbol format as libcxx.
This is just the output of 'llvm-nm -extern-only -defined-only'.
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1150,7 +1150,8 @@ try: # so all is well anyhow too. # XXX We also need to add libc symbols that use malloc, for example strdup. It's very rare to use just them and not # a normal malloc symbol (like free, after calling strdup), so we haven't hit this yet, but it is possible. - libc_symbols = open(shared.path_from_root('system', 'lib', 'libc.symbols')).read().split('\n') + libc_symbols = map(lambda line: line.strip().split(' ')[1], open(shared.path_from_root('system', 'lib', 'libc.symbols')).readlines()) + libc_symbols = set(libc_symbols) # libcxx def create_libcxx(): |