flat assembler
Message board for the users of flat assembler.

Index > Linux > linking linux object under win32

Author
Thread Post new topic Reply to topic
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 24 May 2007, 18:42
is there any way to link linux ELF object(s) to linux ELF executable under windows?

mingw produces win32 executable

PS: no cygwin please Smile
Post 24 May 2007, 18:42
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
KRA



Joined: 14 Jun 2005
Posts: 24
KRA 24 May 2007, 18:56
I would suggest andLinux.
It's an Ubuntu edgy distro that runns paralell with windows..
You would run native linux programs and can even do apt-get

Read the documents and then you can share your directories between the two platforms using one single source base.
check this link:
http://wiki.gp2x.org/wiki/AndLinux

This is what I use when developping cross platform...
Good luck...
Post 24 May 2007, 18:56
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 24 May 2007, 19:03
that is very interesting, unfortunatelly i need some "quick solution".

i don't have time to install & learn new environment
Post 24 May 2007, 19:03
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Japheth



Joined: 26 Oct 2004
Posts: 151
Japheth 24 May 2007, 19:49
> mingw produces win32 executable

Yes, but LD coming with mingw can also link elf-386 binaries.

To use the full "power" of LD, you will have to understand how to write/modify LD scripts, however.
Post 24 May 2007, 19:49
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 24 May 2007, 19:57
japheth: can you give me some hints on how to link elf-386 binaries from command line?
Post 24 May 2007, 19:57
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Japheth



Joined: 26 Oct 2004
Posts: 151
Japheth 25 May 2007, 07:36
> japheth: can you give me some hints on how to link elf-386 binaries from command line?

No, sorry! I wasn't aware of the "supported emulations: i386pe" line the MinGW LD is displaying (and also the various other LD variants used on Win32). This means these LDs cannot be used to create ELF, even if you feed them with a full ELF-compatible linker script file.
Post 25 May 2007, 07:36
View user's profile Send private message Reply with quote
Japheth



Joined: 26 Oct 2004
Posts: 151
Japheth 25 May 2007, 14:14
attached is a win32 LD which creates ELF. I forgot where I did get it from, but this should be not that hard to find out.


Description:
Download
Filename: ldelf.ZIP
Filesize: 307 KB
Downloaded: 497 Time(s)

Post 25 May 2007, 14:14
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 26 May 2007, 09:44
thank you, i will try it
Post 26 May 2007, 09:44
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY 26 May 2007, 16:00
Run a Linux LiveCD such as Puppy which has NTFS support by default.
So, you compile the program on RAMDISK and then copy to the NTFS partition and reboot to Windows.
You can also use it in some virtualization program such as Qemu.
Post 26 May 2007, 16:00
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 27 May 2007, 00:48
you don't understand.

i am building batch "script" that recompiles entire FASMLIB, including linux examples. Some of them produce ELF object that needs to be linked to executable.

As my dev env is still windows, i need some "native" tool.

I haven't tested the tool from Japheth yet, i hope i will find some time soon
Post 27 May 2007, 00:48
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Raedwulf



Joined: 13 Jul 2005
Posts: 375
Location: United Kingdom
Raedwulf 07 Jun 2007, 07:23
I've tried doing this before, I gave up - i have a whole set of tools to crosscompile, but you still need to copy a set of libs from a linux-os.
Post 07 Jun 2007, 07:23
View user's profile Send private message MSN Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.