You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mikioh
changed the title
Invalid index reference in macho file Dysyms.IndirectSyms
debug/macho: Invalid index reference in macho file Dysyms.IndirectSyms
Mar 16, 2015
I don't think there is anything wrong.
run "otool -Iv a.out" and note that there is an absolute symbol.
$ otool -Iv a.out
a.out:
Indirect symbols for (__TEXT,__stubs) 1 entries
address index name
0x0000000100000f44 2 _puts
Indirect symbols for (__DATA,__nl_symbol_ptr) 2 entries
address index name
0x0000000100001000 3 dyld_stub_binder
0x0000000100001008 ABSOLUTE
Indirect symbols for (__DATA,__la_symbol_ptr) 1 entries
address index name
0x0000000100001010 2 _puts
$ go run issue10178.go a.out
Dysymtab for a.out
_puts
dyld_stub_binder
wtf? >>>>>> 1073741824, max = 4
_puts
I may be misunderstanding the expected usage of debug/macho but I'm encountering the following and it doesn't seem correct to me.
The godoc for the macho package has this definition:
So I would expect given the c program:
And reading the symbols using the following go code:
To not see this in the output:
This looks suspect to me. Although I may be using the library incorrectly.
The text was updated successfully, but these errors were encountered: