Thursday, September 3, 2009

Gold linker

Linker Part1
http://www.airs.com/blog/archives/38
妙的是 levine有留comment喔
可惜lan回 : I don’t actually have a copy to hand....

Linker Part2
http://www.airs.com/blog/archives/39
有點講歷史的感覺

Linker Part3
http://www.airs.com/blog/archives/40

Linker Part4
http://www.airs.com/blog/archives/41
講到了Procedure Linkage Table, Global Offset Table
ELF spec也有講到這東西
PLT:

GOT:
The program linker will create the dynamic relocations which the dynamic linker will use to initialize the GOT at runtime. Unlike the PLT, the dynamic linker always fully initializes the GOT when the program start


GOT會被存在%ebx裡

Linker Part5
http://www.airs.com/blog/archives/42
有介紹到 ELF symbol visibility
不過..... 在ELF spec 跟System V ABI都沒看到這個
原來 這是在System V ABI的update裡
http://www.sco.com/developers/gabi/2000-07-17/contents.html


Linker Part6
http://www.airs.com/blog/archives/43
講Relocation
in general a relocation has a type, a symbol, an offset into the contents, and an addend.
然後講linker怎麼把他轉成executable

Linker Part7
http://www.airs.com/blog/archives/44
Thread Local Storage
comment裡有提到幾個resource
http://dlc.sun.com/pdf/817-1984/817-1984.pdf
http://people.redhat.com/drepper/tls.pdf
http://www.lsd.ic.unicamp.br/~oliva/writeups/TLS/RFC-TLSDESC-x86.txt


Linker Part8
http://www.airs.com/blog/archives/45
ELF Segments

Linker Part9
http://www.airs.com/blog/archives/46
Symbol Versions

Linker Part10
http://www.airs.com/blog/archives/47
Parellel Linking

Linker Part11
http://www.airs.com/blog/archives/48
Archives

Linker Part12
http://www.airs.com/blog/archives/49
Symbol Resolution

Linker Part13
http://www.airs.com/blog/archives/50
Symbol Version Redux

Linker Part14
http://www.airs.com/blog/archives/51
Linking Time Optimization

Linker Part15
http://www.airs.com/blog/archives/52
COMDAT sections

Linker Part16
http://www.airs.com/blog/archives/53
C++ template instantiation

Linker Part17
http://www.airs.com/blog/archives/54
Warning Symbols

Linker Part18
http://www.airs.com/blog/archives/55
Incremental Linking

Linker Part19
http://www.airs.com/blog/archives/56
__start and __stop symbols

Linker Part20
http://www.airs.com/blog/archives/57
Gold linker update

No comments: