aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ld
diff options
context:
space:
mode:
authorShenghou Ma <minux.ma@gmail.com>2013-06-09 21:50:24 +0800
committerShenghou Ma <minux.ma@gmail.com>2013-06-09 21:50:24 +0800
commitfaef52c214c3f0cb610aff18f45bfc3e620be63a (patch)
treee81bab8c4cdd4870e4827cef39c6ad5c63b59193 /src/cmd/ld
parent822da408147e4cf74b38013cbc8b1090b31da738 (diff)
downloadgo-faef52c214c3f0cb610aff18f45bfc3e620be63a.tar.xz
all: fix typos
R=golang-dev, bradfitz, khr, r CC=golang-dev https://golang.org/cl/7461046
Diffstat (limited to 'src/cmd/ld')
-rw-r--r--src/cmd/ld/data.c2
-rw-r--r--src/cmd/ld/dwarf.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/ld/data.c b/src/cmd/ld/data.c
index 93718ad1d1..547494866e 100644
--- a/src/cmd/ld/data.c
+++ b/src/cmd/ld/data.c
@@ -367,7 +367,7 @@ dynreloc(void)
{
Sym *s;
- // -d supresses dynamic loader format, so we may as well not
+ // -d suppresses dynamic loader format, so we may as well not
// compute these sections or mark their symbols as reachable.
if(debug['d'] && HEADTYPE != Hwindows)
return;
diff --git a/src/cmd/ld/dwarf.c b/src/cmd/ld/dwarf.c
index 98b03f1c38..32967d5f6b 100644
--- a/src/cmd/ld/dwarf.c
+++ b/src/cmd/ld/dwarf.c
@@ -133,7 +133,7 @@ sleb128put(vlong v)
/*
* Defining Abbrevs. This is hardcoded, and there will be
* only a handful of them. The DWARF spec places no restriction on
- * the ordering of atributes in the Abbrevs and DIEs, and we will
+ * the ordering of attributes in the Abbrevs and DIEs, and we will
* always write them out in the order of declaration in the abbrev.
* This implementation relies on tag, attr < 127, so they serialize as
* a char. Higher numbered user-defined tags or attributes can be used
@@ -1646,7 +1646,7 @@ guesslang(char *s)
}
/*
- * Generate short opcodes when possible, long ones when neccesary.
+ * Generate short opcodes when possible, long ones when necessary.
* See section 6.2.5
*/
@@ -1938,7 +1938,7 @@ enum
{
CIERESERVE = 16,
DATAALIGNMENTFACTOR = -4, // TODO -PtrSize?
- FAKERETURNCOLUMN = 16 // TODO gdb6 doesnt like > 15?
+ FAKERETURNCOLUMN = 16 // TODO gdb6 doesn't like > 15?
};
static void