mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2004-01-13, 16:04   #1
LoKI.GuZ
 
LoKI.GuZ's Avatar
 
Sep 2003
Brazil

2×7 Posts
Default HELP: how to link coff obj files in linux

Hi there

I am writing a simple c++ program that makes use of some assembly written functions (bit rotation specially). i have compiled the asm files under windows using masm, with the syntax:

ml /c /coff bitrotation.asm

The problem is that when i try to compile and link those under linux it doesn't work, i guess because of the coff format of the files. how do i get it to work?? i know i have to use objcopy, but i don't know which syntax to use...

Thanks
LoKI.GuZ is offline   Reply With Quote
Old 2004-01-13, 16:41   #2
aaronl
 
aaronl's Avatar
 
Aug 2003

24·3 Posts
Default

I'm dodging the question, but have you tried assembling the file on Linux with NASM? That's the cleaner way to do it. You'll get an object file in the native ELF format that will link easily.
aaronl is offline   Reply With Quote
Old 2004-01-13, 19:32   #3
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

2×43×83 Posts
Default

You need to use objcopy to convert from COFF to ELF format. The bad news is most distros do not include COFF support by default, so you'll need to download the sources and rebuild objcopy with COFF support.
Prime95 is online now   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Posting log files or other text files Xyzzy Forum Feedback 3 2018-12-30 19:37
What are the differences of the Linux prime files? nekketsu Information & Answers 1 2007-12-16 09:13
link to new beta not working (linux) crash893 Software 1 2005-06-15 07:31
ECMNET Link R.D. Silverman Factoring 2 2005-04-20 09:29
Interesting link... Xyzzy Hardware 0 2003-08-21 00:06

All times are UTC. The time now is 10:05.

Sat Oct 24 10:05:09 UTC 2020 up 44 days, 7:16, 0 users, load averages: 1.28, 1.46, 1.43

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.