OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 2:42 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Weird linker behaviour
PostPosted: Wed Jan 17, 2018 7:33 am 
Offline

Joined: Wed Jan 17, 2018 7:20 am
Posts: 1
Hi, I'm writting my own kernel and I've encountered strange problem (my OS uses UEFI for boot). I'm linking all stuff with this script . Idk why, vaddr of LOAD section is correct, but paddr is always fixed to 0x0000000000000000. I've already tried everything but my linker always sets this value to 0. Can my bootloader assume that this value is 1MB or I should do something with it? Thanks for replies!


Top
 Profile  
 
 Post subject: Re: Weird linker behaviour
PostPosted: Wed Jan 17, 2018 7:45 am 
Offline
Member
Member
User avatar

Joined: Fri Feb 17, 2017 4:01 pm
Posts: 640
Location: Ukraine, Bachmut
Why are you using the AT statement at all? Are you planning to move these pieces from ROM or what? I guess you've complicated your task by yourself. Remove AT and forget about paddr fields. they are not needed for you.

_________________
ANT - NT-like OS for x64 and arm64.
efify - UEFI for a couple of boards (mips and arm). suspended due to lost of all the target park boards (russians destroyed our town).


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: 8infy, Bing [Bot], DotBot [Bot] and 72 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group