LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 12-19-2012, 06:15 AM   #1
saeedsssss
Member
 
Registered: Apr 2012
Posts: 32

Rep: Reputation: Disabled
What's ". = _start + 4" on MBR(BOOT.S) of grub2


HI
I try read boot.s of grub2
then i receive to ". = _start + 4" from line 61.
(place of boot.S on source code is "grub-2.00\grub-core\boot\i386\pc\boot.S " )
what do that do?
What's meaning of that?
Tank-you

Last edited by saeedsssss; 12-19-2012 at 06:51 AM.
 
Old 12-19-2012, 07:26 AM   #2
JohnGraham
Member
 
Registered: Oct 2009
Posts: 467

Rep: Reputation: 138Reputation: 138
This is an assembler directive to set the current location, so code after that will start from 4 bytes after the _start symbol.

See the GNU assembler documentation (the specific page you want is this one).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] Need to install grub2 on "empty" drive, needs to only boot from a iso. brubizu Linux - Software 2 07-01-2010 08:17 AM
first line on disp during boot "doing fast boot", then "FATAL: mbcache not found" rangerpresto Suse/Novell 2 02-13-2010 10:18 PM
Stuck on "GRUB_" Screen - Will boot from Live CD "Boot from first hard disk" option Snowman11 Linux - Newbie 10 02-01-2009 06:52 PM
"Disk boot failure..." after lilo writes to the MBR alexko Linux - Hardware 6 11-16-2004 09:43 AM
"LI" from boot floppy? Can't load XP or Linux. Damaged MBR or boot sector or ...? SparceMatrix Linux - General 10 09-27-2002 01:20 PM


All times are GMT -5. The time now is 05:21 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration