Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(806)

Unified Diff: src/cmd/5l/l.h

Issue 6926049: code review 6926049: 6c/6g/6l/go: PIC and shared library support. (Closed)
Patch Set: diff -r 9dacae220eca https://go.googlecode.com/hg/ Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/cmd/5l/asm.c ('k') | src/cmd/5l/list.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cmd/5l/l.h
===================================================================
--- a/src/cmd/5l/l.h
+++ b/src/cmd/5l/l.h
@@ -108,6 +108,7 @@
} u0;
Prog* cond;
Prog* link;
+ Prog* pcrel;
int32 pc;
int32 line;
int32 spadj;
@@ -172,6 +173,7 @@
Reloc* r;
int32 nr;
int32 maxr;
+ int rel_ro;
};
#define SIGNINTERN (1729*325*1729)
@@ -194,6 +196,7 @@
char size;
char param;
char flag;
+ uchar pcrelsiz;
};
struct Oprang
{
@@ -211,6 +214,7 @@
LFROM = 1<<0,
LTO = 1<<1,
LPOOL = 1<<2,
+ LPCREL = 1<<3,
C_NONE = 0,
C_REG,
@@ -225,6 +229,7 @@
C_NCON, /* ~RCON */
C_SCON, /* 0xffff */
C_LCON,
+ C_LCONADDR,
C_ZFCON,
C_SFCON,
C_LFCON,
@@ -278,6 +283,7 @@
EXTERN int32 INITRND; /* data round above text location */
EXTERN int32 INITTEXT; /* text location */
EXTERN char* INITENTRY; /* entry point */
+EXTERN char* LIBINITENTRY; /* shared library entry point */
EXTERN int32 autosize;
EXTERN Auto* curauto;
EXTERN Auto* curhist;
« no previous file with comments | « src/cmd/5l/asm.c ('k') | src/cmd/5l/list.c » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b