Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
objdump --start-address has bug
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Peter  
View profile  
 More options Jan 11, 2:12 am
Newsgroups: gnu.gcc.help
From: Peter <cmk...@hotmail.com>
Date: Tue, 10 Jan 2012 23:12:41 -0800 (PST)
Local: Wed, Jan 11 2012 2:12 am
Subject: objdump --start-address has bug
Hi all
    I want to dump the main function only, so I type:

/root>objdump -S /root/workspace/PeterI/bochs/../kernel/kernel.o --start-address=8046 --stop-address=8056

/root/workspace/PeterI/bochs/../kernel/kernel.o:     file format elf32-i386

Disassembly of section .text:

00001f6e <main>:                <----------------- but this line shouldn't be here, and the offset is wrong, it is no 1f64 too
        }
        printf("\n--------------------------------------------------------\n");
        /////////////////////////// END VESA ///////////////////////////

}

int main() {
    1f6e:       55                      push   %ebp
    1f6f:       89 e5                   mov    %esp,%ebp
        return 0;
    1f71:       b8 00 00 00 00          mov    $0x0,%eax
}

    1f76:       5d                      pop    %ebp
    1f77:       c3                      ret    
/root>

Take a look the full dump:
    1f56:       0f 8f 6f ff ff ff       jg     1ecb <detectVesa+0x1bb>
                modeNumberInfo++;
                printf("%x, %ux%u (%u) \n", modeinfo->PhysBasePtr, modeinfo->XRes,
                                modeinfo->YRes, modeinfo->BitsPerPixel);
                modeinfo++;
        }
        printf("\n--------------------------------------------------------\n");
    1f5c:       c7 04 24 18 06 00 00    movl   $0x618,(%esp)
    1f63:       e8 fc ff ff ff          call   1f64 <detectVesa+0x254>
        /////////////////////////// END VESA ///////////////////////////

}

    1f68:       83 c4 44                add    $0x44,%esp
    1f6b:       5b                      pop    %ebx
    1f6c:       5d                      pop    %ebp
    1f6d:       c3                      ret    

00001f6e <main>:

int main() {
    1f6e:       55                      push   %ebp
    1f6f:       89 e5                   mov    %esp,%ebp
        return 0;
    1f71:       b8 00 00 00 00          mov    $0x0,%eax

}

    1f76:       5d                      pop    %ebp
    1f77:       c3                      ret    

thanks
from Peter (cmk...@hotmail.com)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »