@Octocontrabass
This still seems to be an issue. I can't get it to link properly for whatever reason, it's highly bizarre.
Linking with an odd setup via a linker script assistance
Re: Linking with an odd setup via a linker script assistance
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.
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.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
-
- Member
- Posts: 5563
- Joined: Mon Mar 25, 2013 7:01 pm
Re: Linking with an odd setup via a linker script assistance
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?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.
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.neon wrote:it doesnt make sense to attempt to link a boot sector given it lacks any symbolic information
Re: Linking with an odd setup via a linker script assistance
@Octocontrabass
I've reuploaded the files for you here.
I've reuploaded the files for you here.
- Attachments
-
- linker.ld
- (155 Bytes) Downloaded 36 times
-
[The extension s has been deactivated and can no longer be displayed.]
-
[The extension s has been deactivated and can no longer be displayed.]
-
- Member
- Posts: 5563
- Joined: Mon Mar 25, 2013 7:01 pm
Re: Linking with an odd setup via a linker script assistance
What commands are you running to get a binary out of those files?