From mboxrd@z Thu Jan 1 00:00:00 1970 From: Latchesar Ionkov To: 9fans@cse.psu.edu Subject: Re: [9fans] 8a: getting the address of a label Message-ID: <20031229230325.GA18194@ionkov.net> References: <20031229144245.GA16735@ionkov.net> <002f01c3ce3d$28079ba0$8201a8c0@cc77109e> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002f01c3ce3d$28079ba0$8201a8c0@cc77109e> User-Agent: Mutt/1.4.1i Date: Mon, 29 Dec 2003 18:03:25 -0500 Topicbox-Message-UUID: b0893174-eacc-11e9-9e20-41e7f4b1d025 On Tue, Dec 30, 2003 at 05:54:10AM +1100, Bruce Ellis said: > you can do this with the current ?a and ?l. > just go crazy working out what the TEXT > directive actually does. there is no need > for it to be only used at the beginning of > a function. Is there any guarantee that the TEXT symbols will be laid out in the order they appear in the file? Also, if I remember correctly there are some checks if PUSH/POP instructions are balanced (which I currently disabled). I am sure that making some labels TEXT directives will break it even further ... Thanks, Lucho > > brucee > ----- Original Message ----- > From: "Latchesar Ionkov" > To: <9fans@cse.psu.edu> > Sent: Tuesday, December 30, 2003 1:42 AM > Subject: [9fans] 8a: getting the address of a label > > > > Hi, > > > > I am still playing with the gcc port ... > > > > It would be very helpful, if Plan9 assembler and loader allow getting the > > addresses of the labels. The exception handling code is messy enough even > > without me trying to avoid using label addresses :( Also it would be useful > > for better implementation of the switch statement, as well as some gcc > > specific features like __label__ variables. > > > > Is there a chance that a patch that implements that will be accepted? > > > > Thanks, > > Lucho