본문 바로가기
System programming

Linker2

by sarberos 2022. 4. 5.

Relocatable object file(.o file)

 

Executable object file(.a.out file)

 

Shared object file (.so file)

runtime에 symbol resoulution을 한다. 리눅스에서는 shared file, 윈도우에서는 dll이라고 부른다.

 

 

- Executable and linkable format(ELF)

오브젝트 파일의 표준 바이너리 포맷

bss : 굳이 메모리에 올라가기 전까지 space를 차지할 필요가 없는것.

 

-Linker Sysmbols

Global symbols

External symbols

접근 가능하지만 내가 define하지 않은것

Local symbols

나혼자만 쓰는 variable, static

 

'System programming' 카테고리의 다른 글

Linking 6 - Library interpositioning  (0) 2022.04.07
Linker 문제2  (0) 2022.04.06
Linker 문제1  (0) 2022.04.06
Linking1  (0) 2022.04.04
시스템프로그래밍1 - Overview  (0) 2022.04.04

댓글