Go Back > Great Internet Mersenne Prime Search > Software

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

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...

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

24×3 Posts

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
P90 years forever!
Prime95's Avatar
Aug 2002
Yeehaw, FL

23·947 Posts

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

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 21:35.

Mon Sep 27 21:35:23 UTC 2021 up 66 days, 16:04, 3 users, load averages: 2.20, 2.15, 2.19

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, 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.