aboutsummaryrefslogtreecommitdiff
path: root/cmd/splitdwarf/splitdwarf.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/splitdwarf/splitdwarf.go')
-rw-r--r--cmd/splitdwarf/splitdwarf.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/cmd/splitdwarf/splitdwarf.go b/cmd/splitdwarf/splitdwarf.go
index a13b9f316..9729b0b7a 100644
--- a/cmd/splitdwarf/splitdwarf.go
+++ b/cmd/splitdwarf/splitdwarf.go
@@ -6,7 +6,6 @@
// +build !js,!nacl,!plan9,!solaris,!windows
/*
-
Splitdwarf uncompresses and copies the DWARF segment of a Mach-O
executable into the "dSYM" file expected by lldb and ports of gdb
on OSX.
@@ -17,7 +16,6 @@ Unless a dSYM file name is provided on the command line,
splitdwarf will place it where the OSX tools expect it, in
"<osxMachoFile>.dSYM/Contents/Resources/DWARF/<osxMachoFile>",
creating directories as necessary.
-
*/
package main // import "golang.org/x/tools/cmd/splitdwarf"
@@ -94,7 +92,7 @@ for input_exe need to allow writing.
// IndSym Offset = file offset (within link edit section) of 4-byte indices within symtab.
//
// Section __TEXT.__symbol_stub1.
- // Offset and size (Reserved2) locate and describe a table for thios section.
+ // Offset and size (Reserved2) locate and describe a table for this section.
// Symbols beginning at IndirectSymIndex (Reserved1) (see LC_DYSYMTAB.IndSymOffset) refer to this table.
// (These table entries are apparently PLTs [Procedure Linkage Table/Trampoline])
//
@@ -184,7 +182,7 @@ for input_exe need to allow writing.
oldsym := symtab.Syms[ii]
newsymtab.Syms = append(newsymtab.Syms, oldsym)
- linkeditsyms = append(linkeditsyms, macho.Nlist64{Name: uint32(linkeditstringcur),
+ linkeditsyms = append(linkeditsyms, macho.Nlist64{Name: linkeditstringcur,
Type: oldsym.Type, Sect: oldsym.Sect, Desc: oldsym.Desc, Value: oldsym.Value})
linkeditstringcur += uint32(len(oldsym.Name)) + 1
linkeditstrings = append(linkeditstrings, oldsym.Name)