This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tools-gcc] problem with the linker


On Wed, Oct 26, 2005 at 03:55:48PM +0530, phanikumar.ankireddy@tcs.com wrote:

> We are facing problems when trying to define the scope of some functions as
> "local".
> We didnt find any eqivalent option in the GNU ld version 2.13.90.0.18.

This has nothing to do with gcc.

Look at GNU ld's --version-script option.  The GNU ld texinfo docs
include a section on versioning and visibility; it's very similar to
Solaris ld's mapfiles.  I don't know when this was added, so your RH9
linker may or may not include it; GNU ld version 2.15 in Solaris 10+
does have the required support.

obgcc: You can use -Wl,-M,mapfile instead of the more verbose
-Xlinker.

-- 
Keith M Wesolowski		"Sir, we're surrounded!" 
Solaris Kernel Team		"Excellent; we can attack in any direction!" 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]