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:
parent
8a4c2b3cc4
commit
cf52e39ee0
@ -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)
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user