1
0
mirror of https://github.com/golang/go synced 2024-11-12 07:50:23 -07:00

6l, 8l: fix build for ELF systems

R=rsc
CC=golang-dev
https://golang.org/cl/5677095
This commit is contained in:
Shenghou Ma 2012-02-19 13:16:47 -05:00 committed by Russ Cox
parent 8a4c2b3cc4
commit cf52e39ee0
2 changed files with 4 additions and 0 deletions

View File

@ -95,6 +95,7 @@ enum {
ElfStrGnuVersion, ElfStrGnuVersion,
ElfStrGnuVersionR, ElfStrGnuVersionR,
ElfStrNoteNetbsdIdent, ElfStrNoteNetbsdIdent,
ElfStrNoPtrData,
NElfStr NElfStr
}; };
@ -569,6 +570,7 @@ doelf(void)
elfstr[ElfStrEmpty] = addstring(shstrtab, ""); elfstr[ElfStrEmpty] = addstring(shstrtab, "");
elfstr[ElfStrText] = addstring(shstrtab, ".text"); elfstr[ElfStrText] = addstring(shstrtab, ".text");
elfstr[ElfStrNoPtrData] = addstring(shstrtab, ".noptrdata");
elfstr[ElfStrData] = addstring(shstrtab, ".data"); elfstr[ElfStrData] = addstring(shstrtab, ".data");
elfstr[ElfStrBss] = addstring(shstrtab, ".bss"); elfstr[ElfStrBss] = addstring(shstrtab, ".bss");
if(HEADTYPE == Hnetbsd) if(HEADTYPE == Hnetbsd)

View File

@ -91,6 +91,7 @@ enum {
ElfStrGnuVersion, ElfStrGnuVersion,
ElfStrGnuVersionR, ElfStrGnuVersionR,
ElfStrNoteNetbsdIdent, ElfStrNoteNetbsdIdent,
ElfStrNoPtrData,
NElfStr NElfStr
}; };
@ -526,6 +527,7 @@ doelf(void)
elfstr[ElfStrEmpty] = addstring(shstrtab, ""); elfstr[ElfStrEmpty] = addstring(shstrtab, "");
elfstr[ElfStrText] = addstring(shstrtab, ".text"); elfstr[ElfStrText] = addstring(shstrtab, ".text");
elfstr[ElfStrNoPtrData] = addstring(shstrtab, ".noptrdata");
elfstr[ElfStrData] = addstring(shstrtab, ".data"); elfstr[ElfStrData] = addstring(shstrtab, ".data");
elfstr[ElfStrBss] = addstring(shstrtab, ".bss"); elfstr[ElfStrBss] = addstring(shstrtab, ".bss");
if(HEADTYPE == Hnetbsd) if(HEADTYPE == Hnetbsd)