From 1f2d7bf44fd20d06c21d16df485fa17137fe79f6 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 29 Jan 2015 23:35:14 -0500 Subject: liblink: require use of TYPE_ADDR, not TYPE_CONST Add Addr-checking for all Progs on input to liblink, in liblink/pass.c, including requiring use of TYPE_ADDR, not TYPE_CONST. Update compilers and assemblers to satisfy checks. Change-Id: Idac36b9f6805f0451cb541d2338992ca5eaf3963 Reviewed-on: https://go-review.googlesource.com/3801 Reviewed-by: Austin Clements --- include/link.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include') diff --git a/include/link.h b/include/link.h index d210e06e55..91993986b3 100644 --- a/include/link.h +++ b/include/link.h @@ -62,13 +62,11 @@ typedef struct Pciter Pciter; // // $ // Effective address of memory reference , defined above. -// NOTE: Today, on arm and ppc64, type = TYPE_CONST instead. // Encoding: same as memory reference, but type = TYPE_ADDR. // // $<±integer value> // This is a special case of $, in which only ±offset is present. // It has a separate type for easy recognition. -// NOTE: Today, on arm and ppc64, TYPE_CONST and TYPE_ADDR are merged into just TYPE_CONST. // Encoding: // type = TYPE_CONST // offset = ±integer value @@ -157,6 +155,7 @@ struct Addr float64 dval; Prog* branch; int32 argsize; // for 5l, 8l + uint64 bits; // raw union bits, for testing if anything has been written to any field } u; // gotype is the name of the Go type descriptor for sym. -- cgit v1.3-5-g9baa