From 0c509fd201eeaaf08bee6d343a17ebea2bc1facf Mon Sep 17 00:00:00 2001 From: Amand Tihon Date: Thu, 28 Jan 2010 19:03:44 +0100 Subject: [PATCH] Don't remove symbolds that weren't generated. Duh. --- Bold/linker.py | 9 ++++++--- doc/changelog | 2 ++ 2 files changed, 8 insertions(+), 3 deletions(-) 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 (?) diff --git a/doc/changelog b/doc/changelog index 3abadfa..8b91eb7 100644 --- a/doc/changelog +++ b/doc/changelog @@ -1,6 +1,8 @@ bold 0.2.2 [ Amand Tihon ] * Reduce symbol resolution code size. + * Don't try to remove internal symbols from the list if they weren't + generated in the first place. bold 0.2.1 [ Amand Tihon ] -- 2.39.2