LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-25-2005, 12:22 AM   #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, 08:04 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,522

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
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-26-2005, 12:49 AM   #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 08:11 PM
Which file systems does Solaris 10 support? Eerath Solaris / OpenSolaris 4 07-25-2005 08:19 AM
Support for Suspend, Hibernate or other quick shutdown/startup options DavidIanWarren Linux - Laptop and Netbook 2 06-23-2004 08:20 AM
stopping support for Redhat 9 - any other options? amberball2004 Red Hat 4 06-02-2004 10:31 AM
Linux+Solaris : How can linux login to Solaris alnizam Linux - Software 2 05-28-2003 11:39 PM


All times are GMT -5. The time now is 11:41 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration