Hey Guys
What linkers are people using? I have been using the DJGPP verison of LD.exe and that was working fine but when i switched to trying to use the Linker with MinGW i get
cannot perform PE operations on non PE file.
Does anyone know how to get it to stop these operations ?
cheers
Peter
Linker
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:Linker
It has been answered tons of time on this forum ... i think the workaround is to link to a PE and then use OBJCOPY to binary rather than using -fbinary ...pskyboy wrote: Hey Guys
What linkers are people using? I have been using the DJGPP verison of LD.exe and that was working fine but when i switched to trying to use the Linker with MinGW i get
cannot perform PE operations on non PE file.
Does anyone know how to get it to stop these operations ?
cheers
Peter
but i can't be 100% sure as i don't use cygwin myself.
May the Search Button be with you
Re:Linker
Wait a minute. Are you using the MinGW linker with DJGPP? This is not a good idea, to put it mildly. DJGPP COFF .o files and Win32 PE COFF .o files appear to be identical, but they are not. In particular, the relocations work differently. MinGW ld may accept DJGPP .o files without complaint, and DJGPP ld may accept MinGW .o files, but the resulting executable file won't work.pskyboy wrote: What linkers are people using? I have been using the DJGPP verison of LD.exe and that was working fine but when i switched to trying to use the Linker with MinGW i get
Re:Linker
Anyone else using JLOC. I have found it to be extreamly easy to use. My hats off to J. Fine for this peice of freeware. The nice thing about it, it does exactly what you tell it to. There is no guessing as to what it does behind your back. I just wish the source was available for it.
_mark()
_mark()