scripts/symbolize.py: ignore undefined symbols

With the introduction of dynamically linked TAs, symbolize.py may
encounter undefined (external) symbols when it parses the output of the nm
command looking for a symbol's address. The current code is not prepared
for that and will raise an exception. Fix the issue by ignoring lines that
have an unexpected format.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
diff --git a/scripts/symbolize.py b/scripts/symbolize.py
index bbdd9b2..abed7ba 100755
--- a/scripts/symbolize.py
+++ b/scripts/symbolize.py
@@ -200,8 +200,12 @@
                 addr, size, _, name = line.split()
             except:
                 # Size is missing
-                addr, _, name = line.split()
-                size = '0'
+                try:
+                    addr, _, name = line.split()
+                    size = '0'
+                except:
+                    # E.g., undefined (external) symbols (line = "U symbol")
+                    continue
             iaddr = int(addr, 16)
             isize = int(size, 16)
             if iaddr == ireladdr: