Re: Help- selective symbol exposure after link

whsieh@cs.washington.edu
29 Jan 1997 11:17:30 -0500

          From comp.compilers

Related articles
Help- selective symbol exposure after link jason@interval.net (Jason Spielman) (1997-01-22)
Re: Help- selective symbol exposure after link kaz@nt.com (1997-01-25)
Re: Help- selective symbol exposure after link maslen@best.com (Thomas M. Maslen) (1997-01-25)
Re: Help- selective symbol exposure after link mac@coos.dartmouth.edu (1997-01-25)
Re: Help- selective symbol exposure after link dlmoore@ix.netcom.com (David L Moore) (1997-01-26)
Re: Help- selective symbol exposure after link whsieh@cs.washington.edu (1997-01-29)
Re: Help- selective symbol exposure after link maslen@best.com (Thomas M. Maslen) (1997-01-29)
Re: Help- selective symbol exposure after link aeb@saltfarm.bt.co.uk (1997-01-29)
Re: Help- selective symbol exposure after link albaugh@agames.com (1997-01-30)
Re: Help- selective symbol exposure after link leichter@smarts.com (Jerry Leichter) (1997-01-30)
Re: Help- selective symbol exposure after link root@jacob.remcomp.fr (1997-02-02)
Re: Help- selective symbol exposure after link Dave@occl-cam.demon.co.uk (Dave Lloyd) (1997-02-07)
[7 later articles]
| List of all articles for this month |

From: whsieh@cs.washington.edu
Newsgroups: comp.compilers
Date: 29 Jan 1997 11:17:30 -0500
Organization: Compilers Central
References: 97-01-183
Summary: selective symbol exposure during link
Keywords: linker, modula, comment

SRC Modula-3 supports the notion of packages, which can be used to
limit the visibility of interfaces.


http://www.research.digital.com/SRC/modula-3/html/srcm3.html


  - Wilson


      Q: How does one link several object files into a single object file
            or library, where symbols are resolved locally as much as possible,
            and where only selected symbols are exported/exposed/made public?


      Here is an example:
      File b.c contains a function named b1() which does something simple.
      File a.c contains a function named a1() which calls b1();
      File main.c include main() which calls a1().
      I'd like to create an object (or library) ab.o, composed of
      a.o and b.o, which only exposes a1(). With this ab.o, I then
      should be able to compile main.c and create an executable.
[Does it need linker support? -John]
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.