We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a44733 commit bede883Copy full SHA for bede883
aarch64/translation/file.go
@@ -30,12 +30,16 @@ func FileToMachoObject(file *gen.FileInfo) ([]byte, core.ResultList) {
30
for _, function := range file.Functions {
31
symbol := nlist64_builders.SectionNlist64Builder{
32
Name: "_" + function.Name[1:],
33
- Type: nlist64.ExternalSymbol | nlist64.SectionSymbolType,
34
- Section: 1,
35
- Offset: fileCtx.FunctionOffsets[function],
+ Type: nlist64.ExternalSymbol,
36
Description: nlist64.ReferenceFlagUndefinedNonLazy,
37
}
38
+ if function.IsDefined() {
+ symbol.Type |= nlist64.SectionSymbolType
39
+ symbol.Section = 1
40
+ symbol.Offset = fileCtx.FunctionOffsets[function]
41
+ }
42
+
43
symbols = append(symbols, symbol)
44
45
0 commit comments