Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/binutils/binutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func isLLVMObjdump(output string) bool {
// and returns a boolean indicating if the given binary is a GNU
// binutils objdump binary. No version check is performed.
func isBuObjdump(output string) bool {
return strings.Contains(output, "GNU objdump") && strings.Contains(output, "Binutils")
return strings.Contains(output, "GNU objdump")
}

// findExe looks for an executable command on a set of paths.
Expand Down
2 changes: 1 addition & 1 deletion internal/binutils/binutils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ func TestObjdumpVersionChecks(t *testing.T) {
},
{
desc: "Invalid GNU objdump version string",
ver: "GNU objdump (GNU Banutils) 2.34\nCopyright (C) 2020 Free Software Foundation, Inc.",
ver: "GNU nm (GNU Binutils) 2.34\nCopyright (C) 2020 Free Software Foundation, Inc.",
want: false,
},
} {
Expand Down