From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Camm Maguire Newsgroups: gmane.linux.debian.devel.glibc,gmane.linux.debian.ports.ia64,gmane.lisp.gcl.devel,gmane.emacs.devel Subject: Bug#204789: [Gcl-devel] Re: ia64 function descriptors and unexec Date: 31 Oct 2003 17:47:52 -0500 Message-ID: <54r80t2fdz.fsf@intech19.enhanced.com> References: <20031025183937.GB21046@nevyn.them.org> <543cddb93x.fsf@intech19.enhanced.com> <20031028165700.GA1308@nevyn.them.org> <54vfq8t6ij.fsf_-_@intech19.enhanced.com> <54d6cgvtcl.fsf@intech19.enhanced.com> <54ekwtcryp.fsf@intech19.enhanced.com> Reply-To: Camm Maguire , 204789@bugs.debian.org NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1067640657 26191 80.91.224.253 (31 Oct 2003 22:50:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 31 Oct 2003 22:50:57 +0000 (UTC) Cc: 204789@bugs.debian.org, Daniel Jacobowitz , debian-ia64@lists.debian.org, 217484@bugs.debian.org, gcl-devel@gnu.org, emacs-devel@gnu.org Original-X-From: bounce-debian-glibc=debian-glibc=m.gmane.org@lists.debian.org Fri Oct 31 23:50:54 2003 Return-path: Original-Received: from murphy.debian.org ([146.82.138.6]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AFi6Y-0005mN-00 for ; Fri, 31 Oct 2003 23:50:54 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by murphy.debian.org (Postfix) with QMQP id 30DCB1F6A2; Fri, 31 Oct 2003 16:50:30 -0600 (CST) Old-Return-Path: Original-Received: from master.debian.org (master.debian.org [146.82.138.7]) by murphy.debian.org (Postfix) with ESMTP id B8D6D1F561; Fri, 31 Oct 2003 16:50:27 -0600 (CST) Original-Received: from debbugs by master.debian.org with local (Exim 3.35 1 (Debian)) id 1AFi3u-0000UM-00; Fri, 31 Oct 2003 16:48:10 -0600 X-Loop: owner@bugs.debian.org Resent-From: Camm Maguire Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: GNU Libc Maintainers Resent-Date: Fri, 31 Oct 2003 22:48:09 UTC Resent-Message-ID: X-Debian-PR-Message: report 204789 X-Debian-PR-Package: libc6 X-Debian-PR-Keywords: Original-Received: via spool by 204789-submit@bugs.debian.org id=B204789.106764047732557 (code B ref 204789); Fri, 31 Oct 2003 22:48:09 UTC Original-Received: (at 204789) by bugs.debian.org; 31 Oct 2003 22:47:57 +0000 Original-Received: from h-66-134-96-17.phlapafg.covad.net (intech19.enhanced.com) [66.134.96.17] by master.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1AFi3f-0008Rt-00; Fri, 31 Oct 2003 16:47:55 -0600 Original-Received: from camm by intech19.enhanced.com with local (Exim 3.35 #1 (Debian)) id 1AFi3c-0006jL-00; Fri, 31 Oct 2003 17:47:52 -0500 Original-To: Andreas Schwab In-Reply-To: Original-Lines: 54 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 X-Mailing-List: archive/latest/9835 X-Loop: debian-glibc@lists.debian.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Archive: Precedence: list Resent-Sender: debian-glibc-request@lists.debian.org Xref: main.gmane.org gmane.linux.debian.devel.glibc:7535 gmane.linux.debian.ports.ia64:790 gmane.lisp.gcl.devel:2478 gmane.emacs.devel:17640 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17640 Greetings! Andreas Schwab writes: > Camm Maguire writes: >=20 > > Greetings! > > > > Andreas Schwab writes: > > > >> > Was there ever a GNU emacs obstacle on ia64 linux, or am I confusing > >> > the situation with xemacs? > >>=20 > >> Since GNU Emacs does not assign function pointers at runtime there was > >> never such a problem. > >>=20 > > > > Could you please sketch how this is accomplished in emacs, given its > > lisp base? > [...] > > Or are all lisp function objects statically defined in C source files as > > explicitly initialized structures? >=20 > Yes. >=20 These three very helpful little letters have given me the idea which I hope will be a stable once and for all solution to this problem and any future others like it. Far better than trying to probe ld.so's function descriptor table, I should rather ammend the lisp compiler to write a static function structure into each produced C source file before compilation, with the structure's pointer element statically initialized to the static function in the same file. I then use the address for this structure at runtime in setting the lisp symbol's function definition. This should work, right? Take care, > Andreas. >=20 > --=20 > Andreas Schwab, SuSE Labs, schwab@suse.de > SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 N=FCrnberg > Key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 > "And now for something completely different." >=20 >=20 >=20 --=20 Camm Maguire camm@enhanced.com =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D "The earth is but one country, and mankind its citizens." -- Baha'u'llah