I am using a linker script, allready. I have tried to change to other object formats, but then either nasm is complaining about something, or thelinker says: "PE operations on non-PE file".
According to objdump -i, the linker currently does NOT support the aout format. but there has to be a way to make it support it, as it relies on the BFD library, that do support a.out. How can I make ld support the a.out format?
Yes I have! The problem is the following: I have an aout object file generated from nasm. I need to link it together with som othre object files, generated by gcc in order to create a binary (NOT an executable). The problem is that ld says it doesn't recognize the file format of the inputfile...
I am using the NASM assembler in order to write a small portion of assembly code I need for my OS. I need the object file in a.out format, and that is no problem for NASM. The problem is the linker (ld), that sais it doesn't recognize the file format! Are there some other linker that support a.out?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.