Page 2 of 2

Re: Linking with an odd setup via a linker script assistance

Posted: Wed Nov 17, 2021 10:32 am
by amyipdev
@Octocontrabass

This still seems to be an issue. I can't get it to link properly for whatever reason, it's highly bizarre.

Re: Linking with an odd setup via a linker script assistance

Posted: Thu Nov 18, 2021 4:20 pm
by neon
Hi,

Can't really address the LD side just wanted to comment that it doesnt make sense to attempt to link a boot sector given it lacks any symbolic information (has nothing that can be linked). Our boot loader core is also at 64k however we keep things separate as they are all separate programs.

Re: Linking with an odd setup via a linker script assistance

Posted: Thu Nov 18, 2021 10:49 pm
by Octocontrabass
amyipdev wrote:@Octocontrabass

This still seems to be an issue. I can't get it to link properly for whatever reason, it's highly bizarre.
Unfortunately, I wasn't able to reproduce the issue with the information you've posted so far. Can you upload the files you're currently using and the exact commands you run to get the broken binary?
neon wrote:it doesnt make sense to attempt to link a boot sector given it lacks any symbolic information
You just have to tell your compiler or assembler to produce an object file that contains symbols so the linker will have something to work with.

Re: Linking with an odd setup via a linker script assistance

Posted: Fri Nov 19, 2021 10:33 am
by amyipdev
@Octocontrabass

I've reuploaded the files for you here.

Re: Linking with an odd setup via a linker script assistance

Posted: Fri Nov 19, 2021 3:45 pm
by Octocontrabass
What commands are you running to get a binary out of those files?