LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-24-2005, 11:22 PM   #1
phani@tcs
LQ Newbie
 
Registered: Oct 2005
Posts: 7

Rep: Reputation: 0
Linker options in portind from solaris to linux for mapfile support


Linking in solaris with the options given below is working fine.


"ld -Xlinker -M -Xlinker mapfile"

sample code for mapfile
-----------------------------


{

local:

func1();
}

In linux we found the option --verison-script for mapfile support.
But we didnot get the scope of objects as local.

what is the relevant linker options for linux and mapfile format?

Can anyone help me out from this problem.

Thanks and Regards
Phani
 
Old 10-25-2005, 07:04 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
This looks to me not about porting Solaris code to Linux, but more to convert code designed to be compiled by the Sun C compiler to code suitable to the Gnu C compiler.

As gcc can be used on both Solaris and Linux, and Sun compiler (Studio 10) is also available on both platforms, may be staying with the original compiler would be an easier way of handling your need.
 
Old 10-25-2005, 11:49 PM   #3
phani@tcs
LQ Newbie
 
Registered: Oct 2005
Posts: 7

Original Poster
Rep: Reputation: 0
problem with the Xlinker options for creating a mapfile

Linking in solaris with the options given below is working fine.


"ld -Xlinker -M -Xlinker mapfile"

sample code for mapfile
-----------------------------


{

local:

func1();
}

In linux we found the option --verison-script for mapfile support.
But we didnot get the scope of objects as local.

what is the relevant linker options for linux and mapfile format?

The problem is not with the compiler but with the linker(Xlinker).

Can anyone help me out from this problem.


Thanks and Regards
Phani
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux dynamic linker thedevilsjester Programming 4 09-20-2005 07:11 PM
Which file systems does Solaris 10 support? Eerath Solaris / OpenSolaris 4 07-25-2005 07:19 AM
Support for Suspend, Hibernate or other quick shutdown/startup options DavidIanWarren Linux - Laptop and Netbook 2 06-23-2004 07:20 AM
stopping support for Redhat 9 - any other options? amberball2004 Red Hat 4 06-02-2004 09:31 AM
Linux+Solaris : How can linux login to Solaris alnizam Linux - Software 2 05-28-2003 10:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration