From a99369fdb5137862cf12469afcd96a47852916b2 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 28 Jan 2015 22:39:57 -0500 Subject: [PATCH] liblink: fix error message on linux for unknown TLS base headstr(Hlinux) was reporting "android", making for some confusing error messages. Change-Id: I437095bee7cb2143aa37c91cf786f3a3581ae7b9 Reviewed-on: https://go-review.googlesource.com/3513 Reviewed-by: Austin Clements --- src/liblink/sym.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/liblink/sym.c b/src/liblink/sym.c index 35b88f44a2..079f600aa9 100644 --- a/src/liblink/sym.c +++ b/src/liblink/sym.c @@ -44,12 +44,12 @@ static struct { char *name; int val; } headers[] = { - {"android", Hlinux}, {"darwin", Hdarwin}, {"dragonfly", Hdragonfly}, {"elf", Helf}, {"freebsd", Hfreebsd}, {"linux", Hlinux}, + {"android", Hlinux}, // must be after "linux" entry or else headstr(Hlinux) == "android" {"nacl", Hnacl}, {"netbsd", Hnetbsd}, {"openbsd", Hopenbsd}, -- 2.50.0