Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Archives
Today
Total
관리 메뉴

수호의 메모장

plt & got 본문

카테고리 없음

plt & got

수호-_- 2024. 7. 10. 00:24

 

최초 호출

 

puts("blah");

->

call puts@plt

 

puts@plt:

1) jmp [puts@got]

2) puts@got -> 동적 링커로 넘어감

3) 동적 링커가 puts@got에 실제 함수 주소를 쓰게 됨

4) 이후 jmp to real func address

 

2번째 이후 호출

call puts@plt -> jmp [puts@got] -> real func

3번 과정으로 인해 [puts@got]에는 real func address가 써있음.