err = asprintf(&command,
                 "%s %s%s --start-address=0x%016" PRIx64
                 " --stop-address=0x%016" PRIx64
-                " -l -d %s %s -C \"$1\" 2>/dev/null|grep -v \"$1:\"|expand",
+                " -l -d %s %s -C \"$1\" 2>/dev/null|expand",
                 opts->objdump_path ?: "objdump",
                 opts->disassembler_style ? "-M " : "",
                 opts->disassembler_style ?: "",
 
        nline = 0;
        while (!feof(file)) {
+               const char *match;
+
                if (getline(&line, &line_len, file) < 0 || !line)
                        break;
 
+               /* Skip lines containing "filename:" */
+               match = strstr(line, symfs_filename);
+               if (match && match[strlen(symfs_filename)] == ':')
+                       continue;
+
                /*
                 * The source code line number (lineno) needs to be kept in
                 * across calls to symbol__parse_objdump_line(), so that it