Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6544679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:29:39+00:00 2026-05-25T11:29:39+00:00

I objdump -d an executable, e.g, /bin/ls, and I found there’s not any main

  • 0

I “objdump -d” an executable, e.g, /bin/ls, and I found there’s not any main function in the assembly code. Why?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:29:40+00:00Added an answer on May 25, 2026 at 11:29 am

    There are several possible explanations:

    1. The program in question may not be written in C. Just because C requires a main doesn’t mean the world requires one.
    2. The main function may have been inlined or eliminated by the compiler in general. The operating system just calls an entry point; it doesn’t care if that’s actually the start of a function called main.
    3. (I’m not sure about objdump) Objdump might not expose all possible symbols in a program; given that you’re pointing it at linked executable and not object files, there’s not really a contract for objdump to tell you every possible function in the executable; just those which might be called externally.

    Symbolic information are only mnemonics; the processor isn’t looking at these things at all.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been using objdump to look at assembly code in Linux ELF binaries. Sometimes
In the following assembly code that I dumped out using objdump : lea 0x0(%esi,%eiz,1),%esi
I'm trying to do a relative jump in x86 assembly, however I can not
Using objdump to understand a binary and I realize I'm not fluent enough in
Is there any substantial optimization when omitting the frame pointer? If I have understood
Is there anyway this can be done? I've used objdump but that doesn't produce
Everytime I do an objdump -d I always see the asm code with batches
I'm trying to build binutils 2.21 source code with debugging on. My main aim
Kcachegrind will use the default one objdump by default (to get asm code from
Are there any Linux programs that can disassemble an OSX universal x86/x86_64 fat Mach-O

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.