summaryrefslogtreecommitdiffstats
path: root/src/build/tools/gensyms
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2012-01-10 18:22:18 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-01-12 07:45:38 -0600
commitb93f3dc742c0fa8d16f130938b56feb48e5bd7d7 (patch)
treec02e7bee18c20b43bafb56fbba98a6a6e0e97f38 /src/build/tools/gensyms
parent6c35a90ca33cec85519dc3e1b7f2d7bd591f1312 (diff)
downloadtalos-hostboot-b93f3dc742c0fa8d16f130938b56feb48e5bd7d7.tar.gz
talos-hostboot-b93f3dc742c0fa8d16f130938b56feb48e5bd7d7.zip
Clean up objdump error messages.
Change-Id: I8f1022826a5a8c89aad0d3ffa97257f54804c711 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/608 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/build/tools/gensyms')
-rwxr-xr-xsrc/build/tools/gensyms8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/build/tools/gensyms b/src/build/tools/gensyms
index f6f3911d0..69cdde622 100755
--- a/src/build/tools/gensyms
+++ b/src/build/tools/gensyms
@@ -85,6 +85,14 @@ while (my $modline = <MODINFO>)
my @output = ();
foreach my $module (@modules)
{
+ # Only search modules that are likely to be ELF files.
+ if (not (($module =~ m/\.o/) or
+ ($module =~ m/\.elf/) or
+ ($module =~ m/\.so/)))
+ {
+ next;
+ }
+
open OBJDUMP, ("ppc64-mcp6-objdump --syms -C ".add_image_subdir($module)."|");
while (my $line = <OBJDUMP>)
{
OpenPOWER on IntegriCloud