3 @@ -507,7 +507,6 @@ while 1:
6 library_symbols_used = {}
9 # WORKAROUND: Always add libgcc on old-abi arm
10 header = elf_header(find_lib(libraries.copy().pop()))
11 @@ -525,17 +524,13 @@ while 1:
12 library_symbols_used[library] = set()
13 for symbol in symbols:
14 for name in symbol.base_names():
15 - if name in symbol_provider:
16 - debug(DEBUG_SPAM, "duplicate symbol %s in %s and %s" % (symbol, symbol_provider[name], library))
18 - library_symbols[library][name] = symbol
19 - symbol_provider[name] = library
20 + library_symbols[library][name] = symbol
22 # which symbols are actually used from each lib
23 for name in needed_symbols:
24 - if name in symbol_provider:
25 - lib = symbol_provider[name]
26 - library_symbols_used[lib].add(library_symbols[lib][name])
27 + for lib in libraries:
28 + if name in library_symbols[lib]:
29 + library_symbols_used[lib].add(library_symbols[lib][name])
32 for library in libraries: