๐Ÿ“„ ELF ํŒŒ์ผ ๊ตฌ์กฐ์™€ ์ด์ค‘ ๋ทฐ (Dual Views: Linking vs Execution)

โš™๏ธ ELF ๋ฐ”์ด๋„ˆ๋ฆฌ ๊ตฌ์กฐ ๋ ˆ์ด์•„์›ƒ (ELF64)
ELF Header (Elf64_Ehdr, 64 Bytes) Magic: \x7fELF
Program Header Table (์„ธ๊ทธ๋จผํŠธ ์„ค๊ณ„๋„) Execution View
โ€ข PT_LOAD 1 (Code Segment) R-E (.text, .init, .plt)
โ€ข PT_LOAD 2 (Read-Only Data) R-- (.rodata, .eh_frame)
โ€ข PT_LOAD 3 (Data/BSS Segment) RW- (.data, .bss, .got)
โ€ข PT_INTERP (/lib64/ld-linux-x86-64.so.2) Interpreter
โ€ข PT_GNU_STACK (์Šคํƒ ์‹คํ–‰ ๊ถŒํ•œ ์ง€์ •) RW- (NX/DEP)
Section Header Table (์„น์…˜ ์„ค๊ณ„๋„) Linking View
๐Ÿ” ์•„ํ‚คํ…์ฒ˜ ์ƒ์„ธ ์ธ์ŠคํŽ™ํ„ฐ & ๋ณด์•ˆ ๋ถ„์„