From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Youngdale" To: hjl@nynexst.com (H.J. Lu) Cc: gas2@cygnus.com, raeburn@cygnus.com (Ken Raeburn), ian@cygnus.com (Ian Lance Taylor), linux-gcc@vger.rutgers.edu (linuxgcc), bonn@eskimo.com (David Bonn), kjahds@kjahds.com (Kenneth Albanowski), lmfken@lmf.ericsson.se (Kenneth Osterberg), ian@lasermoon.co.uk, mat@ardi.com (Mat Hostetter), ecn@clark.net (Eric C. Newton), doughera@lafcol.lafayette.edu (Andy Dougherty), brian@mathworks.com (Brian Bourgault), jchristy@bga.com (John W. Christy), craig@metrolink.com (Craig Groeschel), imp@village.org (Warner Losh), robf@www.willows.com (Rob Farnum), Huw.Rogers@ska.com (Huw Rogers), meissner@cygnus.com (Michael Meissner) Subject: Re: DT_SYMBOLIC and -Bsymbolic Date: Mon, 19 Jun 1995 14:54:00 -0000 Message-id: <9506191708.ZM25348@aib.com> References: <9506191453.AA04291@titanic.nynexst.com> X-SW-Source: 1995/msg00115.html On Jun 19, 10:58am, H.J. Lu wrote: > Subject: Re: DT_SYMBOLIC and -Bsymbolic > > > > On Jun 19, 9:58am, H.J. Lu wrote: > > > Subject: DT_SYMBOLIC and -Bsymbolic > > > Hi, > > > > > > Do the current binutils snapshots and the Linux ELF dynamic > > > linker support DT_SYMBOLIC? It should be easy to add -Bsymbolic > > > to ld. The Linux ELF dynamic linker just needs to check the > > > presence of DT_SYMBOLIC in the shared library to control the > > > symbol binding. It is specified in the ELF doc, ELF.doc.tar.gz, > > > on tsx-11 and sunsite in the linux gcc directory OK, I have patches to add this. I basically assumed that all that we needed to do was to translate -Bsymbolic on the link line into DT_SYBMOLIC in the .dynamic section, and nothing more than that. I tested it with a small example, and it seemed to work. -Eric -- "The woods are lovely, dark and deep. But I have promises to keep, And lines to code before I sleep, And lines to code before I sleep."