【Fundamental Tech】/Linux Kernel

main() 함수 실행 전의 여정

[一日一學, 一日一新] 2025. 10. 31.

이 글은 리눅스에서 `execve` 시스템 호출 후 프로그램의 `main` 함수가 실행되기까지의 내부 과정을

ELF 파일 구조, 커널 로딩 과정, 동적 링킹 등을 중심으로 설명합니다.

 

*원문: https://amit.prasad.me/blog/before-main

 

The Journey Before main() | Amit's Blog

A while back, I worked on a RISC-V-based userspace simulator for fun. In doing so, taught myself a lot more than I wanted to know about what happens in-between when the Kernel is asked to run a program, and when the first line of our program’s main funct

amit.prasad.me

 

반응형

댓글