Skip to content

Commit d5b0f4f

Browse files
committed
Fix caching
1 parent 60e1cf4 commit d5b0f4f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

objfile/scanner.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ func findModuleInitPCHeader(data []byte, sectionBase uint64) []SignatureMatch {
9191
if err != nil {
9292
panic(err)
9393
}
94+
x64sig.compiledRegex = x64reg
9495
}
9596

9697
for _, match := range FindRegex(data, x64reg) {
@@ -115,6 +116,7 @@ func findModuleInitPCHeader(data []byte, sectionBase uint64) []SignatureMatch {
115116
if err != nil {
116117
panic(err)
117118
}
119+
x86sig.compiledRegex = x86reg
118120
}
119121

120122
for _, match := range FindRegex(data, x86reg) {
@@ -133,6 +135,7 @@ func findModuleInitPCHeader(data []byte, sectionBase uint64) []SignatureMatch {
133135
if err != nil {
134136
panic(err)
135137
}
138+
ARM64_sig.compiledRegex = arm64reg
136139
}
137140

138141
for _, match := range FindRegex(data, arm64reg) {
@@ -163,6 +166,7 @@ func findModuleInitPCHeader(data []byte, sectionBase uint64) []SignatureMatch {
163166
if err != nil {
164167
panic(err)
165168
}
169+
ARM32_sig.compiledRegex = arm32reg
166170
}
167171

168172
for _, match := range FindRegex(data, arm32reg) {
@@ -183,6 +187,7 @@ func findModuleInitPCHeader(data []byte, sectionBase uint64) []SignatureMatch {
183187
if err != nil {
184188
panic(err)
185189
}
190+
PPC_BE_sig.compiledRegex = ppcBEreg
186191
}
187192

188193
for _, match := range FindRegex(data, ppcBEreg) {

0 commit comments

Comments
 (0)