mirror of
https://github.com/golang/go
synced 2024-11-17 18:54:42 -07:00
cmd/link/internal/riscv64: add support for freebsd/riscv64
Updates #53466 Change-Id: Ifa1b8fe79f952a08dbdf91ae5ab23e4431e66134 Reviewed-on: https://go-review.googlesource.com/c/go/+/431660 Reviewed-by: Dmitri Goutnik <dgoutnik@gmail.com> Run-TryBot: Joel Sing <joel@sing.id.au> Reviewed-by: Joel Sing <joel@sing.id.au> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Than McIntosh <thanm@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com>
This commit is contained in:
parent
2cbcf36ede
commit
9faf6b7929
@ -41,7 +41,7 @@ func Init() (*sys.Arch, ld.Arch) {
|
|||||||
|
|
||||||
Linuxdynld: "/lib/ld.so.1",
|
Linuxdynld: "/lib/ld.so.1",
|
||||||
|
|
||||||
Freebsddynld: "XXX",
|
Freebsddynld: "/usr/libexec/ld-elf.so.1",
|
||||||
Netbsddynld: "XXX",
|
Netbsddynld: "XXX",
|
||||||
Openbsddynld: "XXX",
|
Openbsddynld: "XXX",
|
||||||
Dragonflydynld: "XXX",
|
Dragonflydynld: "XXX",
|
||||||
@ -53,7 +53,7 @@ func Init() (*sys.Arch, ld.Arch) {
|
|||||||
|
|
||||||
func archinit(ctxt *ld.Link) {
|
func archinit(ctxt *ld.Link) {
|
||||||
switch ctxt.HeadType {
|
switch ctxt.HeadType {
|
||||||
case objabi.Hlinux:
|
case objabi.Hlinux, objabi.Hfreebsd:
|
||||||
ld.Elfinit(ctxt)
|
ld.Elfinit(ctxt)
|
||||||
ld.HEADR = ld.ELFRESERVE
|
ld.HEADR = ld.ELFRESERVE
|
||||||
if *ld.FlagTextAddr == -1 {
|
if *ld.FlagTextAddr == -1 {
|
||||||
|
Loading…
Reference in New Issue
Block a user