X-Git-Url: https://git.alrj.org/?p=bold.git;a=blobdiff_plain;f=Bold%2Flinker.py;h=935b462f5d50c8c5bfefebe7c8b6e06adf7937a4;hp=d80c110ad0f8e71a39bee8e4563bd9411741d81c;hb=0c509fd201eeaaf08bee6d343a17ebea2bc1facf;hpb=a3430a011a7056a49a11608211d07a0a8e3e8408 diff --git a/Bold/linker.py b/Bold/linker.py index d80c110..935b462 100644 --- a/Bold/linker.py +++ b/Bold/linker.py @@ -108,9 +108,12 @@ class BoldLinker(object): symbols = sorted(list(self.undefined_symbols)) # Those three will soon be known... - symbols.remove('_bold__functions_count') - symbols.remove('_bold__functions_hash') - symbols.remove('_bold__functions_pointers') + if '_bold__functions_count' in symbols: + symbols.remove('_bold__functions_count') + if '_bold__functions_hash' in symbols: + symbols.remove('_bold__functions_hash') + if '_bold__functions_pointers' in symbols: + symbols.remove('_bold__functions_pointers') # Create the fake ELF object. fo = Elf64() # Don't care about most parts of ELF header (?)