diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-03-19 03:05:24 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-03-19 03:05:24 +0100 |
commit | da9b38c75c11cc7f18415849b5bf14579ef8317c (patch) | |
tree | 427a69021fef7444f35b9880677c6bdce63e68d9 /sys/src/cmd/6l/l.h | |
parent | bd178b6dc6a6d6a81be05c0a1f7c03b352f833c1 (diff) |
5l,6l,8l,kl,ql,vl: allow duplicate GLOBAL symbols (from Ori Bernstein)
The plan 9 assemblers support the DUPOK flag on text symbols. They parse and
ignore it on GLOBL symbols. This patch makes it work in the linkers.
The reason I ran into this is because my programming language (Myrddin) uses
data symbols to generate type information, and it's useful to avoid
duplicating all of the type info in every file that gets generated.
Diffstat (limited to 'sys/src/cmd/6l/l.h')
-rw-r--r-- | sys/src/cmd/6l/l.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/cmd/6l/l.h b/sys/src/cmd/6l/l.h index 39037c5a2..42dba0d17 100644 --- a/sys/src/cmd/6l/l.h +++ b/sys/src/cmd/6l/l.h @@ -79,6 +79,7 @@ struct Sym short version; short become; short frame; + char dupok; uchar subtype; ushort file; vlong value; |