Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

154
Visualizações
__gmon_start is executed before _start

When I analyze /usr/bin/diff with gdb, I see that __gmon_start__ is being called before _start for some reason. Every document I have found so far has been claiming that _start is the entry point of a program; and the entry point field in the ELF header also points to the address of _start.

Why does diff not start executing with _start; and where is that information held?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Every document I have found so far has been claiming that _start is the entry point of a program

For fully-static executable, this is true.

For a dynamically linked executable, the user-space executions starts at the _start symbol of the loader (ld.so), and there are usually 10s of thousands of instructions and many system calls executed before the loader calls _start in the a.out.

In the process of getting to _start in a.out, functions from the main executable could be called (and that's what you are observing).

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda