LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 03-16-2017, 05:36 AM   #1
akhilbaai
LQ Newbie
 
Registered: Aug 2015
Posts: 20

Rep: Reputation: Disabled
Question Why different linker scripts for vmlinux at different locations ?


Hi,

I'm a kernel newbie and started going through the code recently.
I came across two vmlinux.lds linker scripts under
[1] arch/x86/boot/compressed
[2] arch/x86/kernel
There is vmlinux binary present in each of the above directories.
In what way these both are different ?
In one of the linker script the location counter is set as below in the beginning.
. = 0xC0000000 + ((0x1000000 + (0x1000000 - 1)) & ~(0x1000000 - 1))
Is there a specific reason for this calculation to generate starting address as 0xC1000000 ?

Last edited by akhilbaai; 03-16-2017 at 05:37 AM.
 
Old 03-17-2017, 12:54 AM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
I'm a kernel newbie and started going through the code recently.
Start here
 
1 members found this post helpful.
  


Reply

Tags
kernel, linker, vmlinux



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] vmlinux qwerty4061 Linux - Embedded & Single-board computer 2 11-18-2011 01:11 AM
what are linker scripts vinvishwa Linux - Newbie 1 12-25-2009 02:32 PM
[SOLVED] cryptic linker error (i really dont like linker errors); smeezekitty Programming 2 09-19-2009 02:21 AM
Reboot after vmlinux bigneko Arch 1 01-06-2005 04:42 AM
vmlinux eastj1974 Linux - Newbie 1 04-19-2003 03:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration