]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/ld: fix incompatible type signatures on Plan 9
authorAnthony Martin <ality@pbrane.org>
Wed, 9 Jan 2013 23:05:22 +0000 (15:05 -0800)
committerAnthony Martin <ality@pbrane.org>
Wed, 9 Jan 2013 23:05:22 +0000 (15:05 -0800)
Changeset f483bfe81114 moved ELF generation to the architecture
independent code and in doing so added a Section* to the Sym
type and an Elf64_Shdr* to the Section type.

This caused the Plan 9 compilers to complain about incompatible
type signatures in the many files that reference the Sym type.

R=rsc, dave
CC=golang-dev
https://golang.org/cl/7057058

src/cmd/ld/lib.h

index 92d458a14c731c3a0d00d549369e7cbfef3b0ba8..05363fc14d6279775fe5cb7eb540774317fcc0a3 100644 (file)
@@ -97,6 +97,8 @@ struct Segment
        Section*        sect;
 };
 
+#pragma incomplete struct Elf64_Shdr
+
 struct Section
 {
        uchar   rwx;