Series · 6 posts
DWARF and ELF Internals
dwarf-elf 6
1
ELF 포맷 분해 — Section·Segment·Symbol Table 구조 추적
ELF 헤더, Program Header / Section Header, dynamic linking, build-id.
2
DWARF 디버그 정보 분해 — DIE 트리와 .debug_abbrev
DWARF의 정체. DIE/abbrev 인코딩, 컴파일 유닛, TAG/AT/FORM 카탈로그.
3
DWARF .debug_line 분석 — Source-to-PC 매핑 바이트코드 VM
DWARF 줄 정보의 정체. 상태 머신, 표준/확장 opcode, file table, addr2line의 내부.
4
DWARF .debug_loc 분석 — Variable Location Expression VM
변수가 어디 있는지의 표현. 스택 머신 opcode, location list, DW_OP_entry_value.
5
DWARF Call Frame Information — .debug_frame과 .eh_frame 분해
콜스택 풀기의 정체. CIE/FDE, CFA, register rule, .eh_frame_hdr 이진 탐색.
6
DWARF 도구 생태계 — split-DWARF·dwz·debuginfod·pyelftools
큰 디버그 정보 다루기. 분리·압축·네트워크 다운로드·자체 도구 작성.