Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion unprefixed global symbols
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jeff Clites  
View profile  
 More options Mar 16 2004, 1:48 am
Newsgroups: perl.perl6.internals
From: jcli...@mac.com (Jeff Clites)
Date: Mon, 15 Mar 2004 22:30:54 -0800
Local: Tues, Mar 16 2004 1:30 am
Subject: Re: unprefixed global symbols
On Mar 15, 2004, at 9:22 AM, Arthur Bergman wrote:

> On 15 Mar 2004, at 17:20, Jeff Clites wrote:

>> We should be able to get the linker to only expose our external entry
>> points from libparrot. That way, we don't have to worry about the
>> naming of API which isn't supposed to be called from outside. (If it
>> works, it's simpler and safer than relying on a prefix.)

> And how would this be done across platforms, if this works I am happy
> with it, but I don't know how.

On Mac OS X and Linux at least, as I understand it this can be done
with either 'ld' or 'strip'. (The 'ld' argument for this on Mac OS X is
-exported_symbols_list, and on Linux it's --retain-symbols-file, each
taking the name of a file containing the list of symbols to retain.)
I'd imagine that other Unices have similar linker options, and I'd
think that Windows would have an equivalent also.

I haven't actually tried this, but the tools seem to be there.

JEff


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.