LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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: 43

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: 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).
 
  


Reply



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:49 AM.

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