mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/link: added support for mips64{,le}
Only internal linking without cgo is supported for now. Change-Id: Ie6074a8ff3ec13605b72028f2d60758034f87185 Reviewed-on: https://go-review.googlesource.com/14444 Reviewed-by: Minux Ma <minux@golang.org>
This commit is contained in:
parent
43ea305435
commit
053c75411f
10 changed files with 529 additions and 16 deletions
|
|
@ -2309,7 +2309,7 @@ func dwarfaddshstrings(shstrtab *LSym) {
|
|||
elfstrdbg[ElfStrGDBScripts] = Addstring(shstrtab, ".debug_gdb_scripts")
|
||||
if Linkmode == LinkExternal {
|
||||
switch Thearch.Thechar {
|
||||
case '6', '7', '9':
|
||||
case '0', '6', '7', '9':
|
||||
elfstrdbg[ElfStrRelDebugInfo] = Addstring(shstrtab, ".rela.debug_info")
|
||||
elfstrdbg[ElfStrRelDebugAranges] = Addstring(shstrtab, ".rela.debug_aranges")
|
||||
elfstrdbg[ElfStrRelDebugLine] = Addstring(shstrtab, ".rela.debug_line")
|
||||
|
|
@ -2362,7 +2362,7 @@ func dwarfaddelfsectionsyms() {
|
|||
func dwarfaddelfrelocheader(elfstr int, shdata *ElfShdr, off int64, size int64) {
|
||||
sh := newElfShdr(elfstrdbg[elfstr])
|
||||
switch Thearch.Thechar {
|
||||
case '6', '7', '9':
|
||||
case '0', '6', '7', '9':
|
||||
sh.type_ = SHT_RELA
|
||||
default:
|
||||
sh.type_ = SHT_REL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue