Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 12-19-2012, 06:15 AM   #1
Registered: Apr 2012
Posts: 43

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

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?

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

Rep: Reputation: 139Reputation: 139
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).


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 / openSUSE 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 > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:40 AM.

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