]> git.alrj.org Git - bold.git/commitdiff
Don't remove symbolds that weren't generated. Duh.
authorAmand Tihon <amand.tihon@alrj.org>
Thu, 28 Jan 2010 18:03:44 +0000 (19:03 +0100)
committerAmand Tihon <amand.tihon@alrj.org>
Thu, 28 Jan 2010 18:03:44 +0000 (19:03 +0100)
Bold/linker.py
doc/changelog

index d80c110ad0f8e71a39bee8e4563bd9411741d81c..935b462f5d50c8c5bfefebe7c8b6e06adf7937a4 100644 (file)
@@ -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 (?)
index 3abadfa9b8d6f73a48421a7609283a1c952cb8fb..8b91eb784408a7f33e44a531f30044afcd4ea4c7 100644 (file)
@@ -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 ]