aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/debug/macho/file.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/debug/macho/file.go b/src/debug/macho/file.go
index 52ff81750c..8a40888284 100644
--- a/src/debug/macho/file.go
+++ b/src/debug/macho/file.go
@@ -735,9 +735,10 @@ func (f *File) ImportedSymbols() ([]string, error) {
const (
N_TYPE = 0x0e
N_UNDF = 0x0
+ N_EXT = 0x01
)
for _, s := range st.Syms {
- if s.Type&N_TYPE == N_UNDF && s.Sect == 0 {
+ if s.Type&N_TYPE == N_UNDF && s.Type&N_EXT != 0 {
all = append(all, s.Name)
}
}