SlideShare a Scribd company logo
1 of 22
Download to read offline
ó      ì?Ø

      […
Gdutor@gmail.com


     TAIR
    2012.02.05
ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K


V‡

1   ƒ'¯K

2   8I©‡

3   ó   L§

4   §S¥

5   ¢S¯K


                        […    Linkers
ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K   ó   ì‰Ÿo NX(   §S´N   )¤


I‡'%       ¯K

¹ ó 쉟o
¹ NX(
¹ §S´N )¤




                     […    Linkers
ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K   ó   ì‰Ÿo NX(   §S´N   )¤


ó    쉟o

¹    ¬z
¹   ÎÒ+n//Œ”½
¹   •;ÙÛ
¹   -½
¹   §S¥




                        […    Linkers
ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K   ó   ì‰Ÿo NX(   §S´N   )¤


NX(

¹    ?› •£ABI¤
¹   S•/Œ
¹   •-‚ª
¹   ÏŒ•ª
¹   L§N^




                        […    Linkers
ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K   ó   ì‰Ÿo NX(   §S´N   )¤


§S´N       )¤
¹ ?È
  ¸ c{!Š{©Û
  ¸ ®?!)¤8I©‡
¹ ó
  ¸ 8I©‡
  ¸ ·!Ä ¥




                     […    Linkers
ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K   •¹ &E ~„‚ª ELF©Û


8I©‡

¹ •¹= &E
¹ ~„‚ªIO
¹ a.out/ELF‚ª©Û




                     […    Linkers
ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K   •¹ &E ~„‚ª ELF©Û


•¹=        &E
¹ ©‡Þ
     ¸ ©‡ N&E
     ¸ Ù¦&E  &E
     ¸ §S•
¹ 8I“è
     ¸ •-
     ¸ êâ
¹   -½ &E
¹   ÎÒ
¹   NÁ&E
¹   Ù¦
                        […    Linkers
ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K   •¹ &E ~„‚ª ELF©Û


~„‚ªIO

¹   COFF, Common Object File Format
¹   COM!PE, Portable Executable
¹   a.out
¹   ELF, Executable Linkable Format




                        […    Linkers
ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K   •¹ &E ~„‚ª ELF©Û


©‡ÞÜ

¹   Žê!©‡a.
¹   e !i!S!éàâÝ
¹   •/Œ
¹   §SÞ ˜!Œ !‡ê
¹   «ãÞ ˜!Œ !‡ê

Section vs. Segment
Section§«ãµÜ6 §¡•ó ì
Segment§ãµÔn §¡•1ì


                        […    Linkers
ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K   •¹ &E ~„‚ª ELF©Û


«ãÞÜ

¹   «ã¶¡!a.
¹   «ãIP
¹   «ãŒ !3©‡¥   £þ
¹   L‘Œ
¹   §SÞ ˜!Œ !‡ê
¹   éàâÝ




                        […    Linkers
ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K   •¹ &E ~„‚ª ELF©Û


«ãa.

¹   PROGBITS: .text, .data, .rodata
¹   NOBITS: .bss
¹   SYSTAB, DYNSYM: .symtab, .dynsym
¹   STRTAB: .strtab
¹   REL: .rel.txt, .rel.data, .rel.rodata
¹   DYNAMIC, HASH: .dynamic, .hash
¹   AÏ«ã: .got, .plt, .init, .fini, .interp, .line




                         […   Linkers
ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K   •¹ &E ~„‚ª ELF©Û


-½    ‘!ÎÒL
¹ -½ ‘
  ¸   I‡-½  ÎÒ
  ¸   I‡-½  /Œ
  ¸   /Œ°Ý
  ¸   ÎÒa.µSÜ/ Ü
¹ ÎÒL‘
  ¸   ÎÒ3iÎGL¥ ¢Ú
  ¸   ÎÒa.: ÛÜ/ Û/fÎÒ
  ¸   ´Ä½Â
  ¸   ÎÒŠ: ƒé/ýé/Œ




                     […    Linkers
ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K   ˜m©       ÎÒ)Û -½


ó    L§

¹   üH×£
¹   ˜m©
¹   ÎÒ)Û
¹   -½
¹   Ú^§S¥ž




                        […    Linkers
ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K   ˜m©       ÎÒ)Û -½


˜m©

¹   ãÚ/Œ˜m
¹   •;ÙÛ
¹   •¡éà
¹   “èžØ




                        […    Linkers
ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K        ˜m©       ÎÒ)Û -½


ÎÒ)Û
¹ ó ìÎÒL
     ¸ hashL
     ¸ õ«ÎÒL
¹     ¬L
     ¸ ^r ¬
     ¸ ¥ ¬
¹ AÏÎÒ
     ¸ .etext, .edata, .end
     ¸ fÎÒ




                              […   Linkers
ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K   ˜m©       ÎÒ)Û -½


-½
¹ -½ a.
  ¸ M‡/^‡-½
  ¸ •-/êâ-½
¹ -½ žÅ
  ¸ ó ž-½
  ¸ 1ž-½




                     […    Linkers
ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K   ·   ¥/Ä ¥ Ä ó


§S¥
¹ •Ÿo¦^§S¥
  ¸ “èE^
  ¸ !Ž˜m
¹ ¥ «a
  ¸ · ¥
  ¸ Ä ¥
  ¸  •¥




                     […    Linkers
ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K   ·   ¥/Ä ¥ Ä ó


·    ¥/Ä       ¥

¹ ó •ª
¹ ©‡‚ª




                        […    Linkers
ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K   ·   ¥/Ä ¥ Ä ó


Ä    ó        n

¹ ˜Ã'“è: PIC
¹ Û £þL: GOT
¹ L§ó L: PLT




                        […    Linkers
ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K


ó    ìƒ'         ˜     ¢S¯K

¹   ¥ |¢´»
¹   ¥ ‡ Ò
¹   Óž¦^Ä/· ó
¹   CX¥¥ ÎÒ
¹   ~^óä




                        […    Linkers
√
Thanks !
           ♥

More Related Content

Viewers also liked

Sortida colliure estiu 2011
Sortida colliure estiu 2011Sortida colliure estiu 2011
Sortida colliure estiu 2011Natzaret
 
Shannon elari
Shannon elariShannon elari
Shannon elariselari
 
Alcatel-Lucent 849001573
Alcatel-Lucent 849001573Alcatel-Lucent 849001573
Alcatel-Lucent 849001573savomir
 
Increasing the rigor and efficiency of research through the use of qualitati...
Increasing the rigor and efficiency of research through the use of  qualitati...Increasing the rigor and efficiency of research through the use of  qualitati...
Increasing the rigor and efficiency of research through the use of qualitati...Merlien Institute
 
通識小組報告 青森
通識小組報告 青森通識小組報告 青森
通識小組報告 青森Tziyu Yang
 
Different performance appraisal methods
Different performance appraisal methodsDifferent performance appraisal methods
Different performance appraisal methodsjuniecarter5
 

Viewers also liked (9)

Sortida colliure estiu 2011
Sortida colliure estiu 2011Sortida colliure estiu 2011
Sortida colliure estiu 2011
 
Shannon elari
Shannon elariShannon elari
Shannon elari
 
Fdl may scene_v2
Fdl may scene_v2Fdl may scene_v2
Fdl may scene_v2
 
AS Evaluation
AS EvaluationAS Evaluation
AS Evaluation
 
Alcatel-Lucent 849001573
Alcatel-Lucent 849001573Alcatel-Lucent 849001573
Alcatel-Lucent 849001573
 
Increasing the rigor and efficiency of research through the use of qualitati...
Increasing the rigor and efficiency of research through the use of  qualitati...Increasing the rigor and efficiency of research through the use of  qualitati...
Increasing the rigor and efficiency of research through the use of qualitati...
 
通識小組報告 青森
通識小組報告 青森通識小組報告 青森
通識小組報告 青森
 
Application System導入価値を取り戻す“測る化”とは
Application System導入価値を取り戻す“測る化”とはApplication System導入価値を取り戻す“測る化”とは
Application System導入価値を取り戻す“測る化”とは
 
Different performance appraisal methods
Different performance appraisal methodsDifferent performance appraisal methods
Different performance appraisal methods
 

Similar to Linkers note

UGC Net June 2009 Paper 1 Solved , Paper 1, Research and Teaching Aptitude, ...
UGC Net June 2009 Paper 1 Solved ,  Paper 1, Research and Teaching Aptitude, ...UGC Net June 2009 Paper 1 Solved ,  Paper 1, Research and Teaching Aptitude, ...
UGC Net June 2009 Paper 1 Solved , Paper 1, Research and Teaching Aptitude, ...mcrashidkhan
 
AI&medical imaging in japan 2018
AI&medical imaging in japan 2018AI&medical imaging in japan 2018
AI&medical imaging in japan 2018yoshihiro todoroki
 
Lesson Plan
Lesson PlanLesson Plan
Lesson PlanDr22s
 
Speed matters, So why is your site so slow?
Speed matters, So why is your site so slow?Speed matters, So why is your site so slow?
Speed matters, So why is your site so slow?Andy Davies
 
俄罗斯进出口标准,技术规格,法律,法规,中英文,目录编号RG 4397
俄罗斯进出口标准,技术规格,法律,法规,中英文,目录编号RG 4397俄罗斯进出口标准,技术规格,法律,法规,中英文,目录编号RG 4397
俄罗斯进出口标准,技术规格,法律,法规,中英文,目录编号RG 4397Russian Gost
 
Tarjuma kanzul eman ma tafseer khazain ul irfan By Ahsan Qadri
Tarjuma kanzul eman ma tafseer khazain ul irfan By Ahsan QadriTarjuma kanzul eman ma tafseer khazain ul irfan By Ahsan Qadri
Tarjuma kanzul eman ma tafseer khazain ul irfan By Ahsan QadriHaadi11
 
IIT-JEE Mains 2016 Offline Previous Question Paper Set G
IIT-JEE Mains 2016 Offline Previous Question Paper Set GIIT-JEE Mains 2016 Offline Previous Question Paper Set G
IIT-JEE Mains 2016 Offline Previous Question Paper Set GEneutron
 
Search Engines Chapter 1 Summary
Search Engines Chapter 1 SummarySearch Engines Chapter 1 Summary
Search Engines Chapter 1 Summarysleepy_yoshi
 
スケールするiPhone/Smart Phoneビジネス
スケールするiPhone/Smart PhoneビジネススケールするiPhone/Smart Phoneビジネス
スケールするiPhone/Smart PhoneビジネスShinichi Takamiya
 
Udyog times - Laghu udyog Bharati - January 2021
Udyog times  - Laghu udyog Bharati - January 2021Udyog times  - Laghu udyog Bharati - January 2021
Udyog times - Laghu udyog Bharati - January 2021Creativity Please
 
081210 Idcon 04 Itoh Peopleservice
081210 Idcon 04 Itoh Peopleservice081210 Idcon 04 Itoh Peopleservice
081210 Idcon 04 Itoh PeopleserviceHiroki Itoh
 
Misc Commands
Misc CommandsMisc Commands
Misc CommandsMija Nam
 
كلنا بنكمل بعض
كلنا بنكمل بعض كلنا بنكمل بعض
كلنا بنكمل بعض guest58aeee
 
كلنا بنكمل بعض
كلنا بنكمل بعضكلنا بنكمل بعض
كلنا بنكمل بعضguest58aeee
 
مقدمة عن أندرويد
مقدمة عن أندرويدمقدمة عن أندرويد
مقدمة عن أندرويدahmed_hassan
 
Udyog Times - January 2022 - Laghu Udyog Bharati
Udyog Times - January 2022 - Laghu Udyog BharatiUdyog Times - January 2022 - Laghu Udyog Bharati
Udyog Times - January 2022 - Laghu Udyog BharatiCreativity Please
 
IIT-JEE Mains 2017 Offline Previous Question Paper Set C
IIT-JEE Mains 2017 Offline Previous Question Paper Set CIIT-JEE Mains 2017 Offline Previous Question Paper Set C
IIT-JEE Mains 2017 Offline Previous Question Paper Set CEneutron
 

Similar to Linkers note (20)

UGC Net June 2009 Paper 1 Solved , Paper 1, Research and Teaching Aptitude, ...
UGC Net June 2009 Paper 1 Solved ,  Paper 1, Research and Teaching Aptitude, ...UGC Net June 2009 Paper 1 Solved ,  Paper 1, Research and Teaching Aptitude, ...
UGC Net June 2009 Paper 1 Solved , Paper 1, Research and Teaching Aptitude, ...
 
AI&medical imaging in japan 2018
AI&medical imaging in japan 2018AI&medical imaging in japan 2018
AI&medical imaging in japan 2018
 
Lesson Plan
Lesson PlanLesson Plan
Lesson Plan
 
Speed matters, So why is your site so slow?
Speed matters, So why is your site so slow?Speed matters, So why is your site so slow?
Speed matters, So why is your site so slow?
 
俄罗斯进出口标准,技术规格,法律,法规,中英文,目录编号RG 4397
俄罗斯进出口标准,技术规格,法律,法规,中英文,目录编号RG 4397俄罗斯进出口标准,技术规格,法律,法规,中英文,目录编号RG 4397
俄罗斯进出口标准,技术规格,法律,法规,中英文,目录编号RG 4397
 
Reddiar mail pages low ress
Reddiar mail  pages  low ressReddiar mail  pages  low ress
Reddiar mail pages low ress
 
THE REDDIARS MAIL JOURNAL :
THE REDDIARS MAIL JOURNAL :THE REDDIARS MAIL JOURNAL :
THE REDDIARS MAIL JOURNAL :
 
Tarjuma kanzul eman ma tafseer khazain ul irfan By Ahsan Qadri
Tarjuma kanzul eman ma tafseer khazain ul irfan By Ahsan QadriTarjuma kanzul eman ma tafseer khazain ul irfan By Ahsan Qadri
Tarjuma kanzul eman ma tafseer khazain ul irfan By Ahsan Qadri
 
IIT-JEE Mains 2016 Offline Previous Question Paper Set G
IIT-JEE Mains 2016 Offline Previous Question Paper Set GIIT-JEE Mains 2016 Offline Previous Question Paper Set G
IIT-JEE Mains 2016 Offline Previous Question Paper Set G
 
Orthodox Church & Internet
Orthodox Church & InternetOrthodox Church & Internet
Orthodox Church & Internet
 
Search Engines Chapter 1 Summary
Search Engines Chapter 1 SummarySearch Engines Chapter 1 Summary
Search Engines Chapter 1 Summary
 
スケールするiPhone/Smart Phoneビジネス
スケールするiPhone/Smart PhoneビジネススケールするiPhone/Smart Phoneビジネス
スケールするiPhone/Smart Phoneビジネス
 
Udyog times - Laghu udyog Bharati - January 2021
Udyog times  - Laghu udyog Bharati - January 2021Udyog times  - Laghu udyog Bharati - January 2021
Udyog times - Laghu udyog Bharati - January 2021
 
081210 Idcon 04 Itoh Peopleservice
081210 Idcon 04 Itoh Peopleservice081210 Idcon 04 Itoh Peopleservice
081210 Idcon 04 Itoh Peopleservice
 
Misc Commands
Misc CommandsMisc Commands
Misc Commands
 
كلنا بنكمل بعض
كلنا بنكمل بعض كلنا بنكمل بعض
كلنا بنكمل بعض
 
كلنا بنكمل بعض
كلنا بنكمل بعضكلنا بنكمل بعض
كلنا بنكمل بعض
 
مقدمة عن أندرويد
مقدمة عن أندرويدمقدمة عن أندرويد
مقدمة عن أندرويد
 
Udyog Times - January 2022 - Laghu Udyog Bharati
Udyog Times - January 2022 - Laghu Udyog BharatiUdyog Times - January 2022 - Laghu Udyog Bharati
Udyog Times - January 2022 - Laghu Udyog Bharati
 
IIT-JEE Mains 2017 Offline Previous Question Paper Set C
IIT-JEE Mains 2017 Offline Previous Question Paper Set CIIT-JEE Mains 2017 Offline Previous Question Paper Set C
IIT-JEE Mains 2017 Offline Previous Question Paper Set C
 

Recently uploaded

"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 

Recently uploaded (20)

"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 

Linkers note

  • 1. ó ì?Ø [… Gdutor@gmail.com TAIR 2012.02.05
  • 2. ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K V‡ 1 ƒ'¯K 2 8I©‡ 3 ó L§ 4 §S¥ 5 ¢S¯K [… Linkers
  • 3. ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K ó 쉟o NX( §S´N )¤ I‡'% ¯K ¹ ó 쉟o ¹ NX( ¹ §S´N )¤ [… Linkers
  • 4. ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K ó 쉟o NX( §S´N )¤ ó 쉟o ¹ ¬z ¹ ÎÒ+n//Œ”½ ¹ •;ÙÛ ¹ -½ ¹ §S¥ [… Linkers
  • 5. ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K ó 쉟o NX( §S´N )¤ NX( ¹ ?› •£ABI¤ ¹ S•/Œ ¹ •-‚ª ¹ ÏŒ•ª ¹ L§N^ [… Linkers
  • 6. ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K ó 쉟o NX( §S´N )¤ §S´N )¤ ¹ ?È ¸ c{!Š{©Û ¸ ®?!)¤8I©‡ ¹ ó ¸ 8I©‡ ¸ ·!Ä ¥ [… Linkers
  • 7. ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K •¹ &E ~„‚ª ELF©Û 8I©‡ ¹ •¹= &E ¹ ~„‚ªIO ¹ a.out/ELF‚ª©Û [… Linkers
  • 8. ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K •¹ &E ~„‚ª ELF©Û •¹= &E ¹ ©‡Þ ¸ ©‡ N&E ¸ Ù¦&E &E ¸ §S• ¹ 8I“è ¸ •- ¸ êâ ¹ -½ &E ¹ ÎÒ ¹ NÁ&E ¹ Ù¦ [… Linkers
  • 9. ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K •¹ &E ~„‚ª ELF©Û ~„‚ªIO ¹ COFF, Common Object File Format ¹ COM!PE, Portable Executable ¹ a.out ¹ ELF, Executable Linkable Format [… Linkers
  • 10. ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K •¹ &E ~„‚ª ELF©Û ©‡ÞÜ ¹ Žê!©‡a. ¹ e !i!S!éàâÝ ¹ •/Œ ¹ §SÞ ˜!Œ !‡ê ¹ «ãÞ ˜!Œ !‡ê Section vs. Segment Section§«ãµÜ6 §¡•ó ì Segment§ãµÔn §¡•1ì [… Linkers
  • 11. ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K •¹ &E ~„‚ª ELF©Û «ãÞÜ ¹ «ã¶¡!a. ¹ «ãIP ¹ «ãŒ !3©‡¥ £þ ¹ L‘Œ ¹ §SÞ ˜!Œ !‡ê ¹ éàâÝ [… Linkers
  • 12. ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K •¹ &E ~„‚ª ELF©Û «ãa. ¹ PROGBITS: .text, .data, .rodata ¹ NOBITS: .bss ¹ SYSTAB, DYNSYM: .symtab, .dynsym ¹ STRTAB: .strtab ¹ REL: .rel.txt, .rel.data, .rel.rodata ¹ DYNAMIC, HASH: .dynamic, .hash ¹ AÏ«ã: .got, .plt, .init, .fini, .interp, .line [… Linkers
  • 13. ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K •¹ &E ~„‚ª ELF©Û -½ ‘!ÎÒL ¹ -½ ‘ ¸ I‡-½ ÎÒ ¸ I‡-½ /Œ ¸ /Œ°Ý ¸ ÎÒa.µSÜ/ Ü ¹ ÎÒL‘ ¸ ÎÒ3iÎGL¥ ¢Ú ¸ ÎÒa.: ÛÜ/ Û/fÎÒ ¸ ´Ä½Â ¸ ÎÒŠ: ƒé/ýé/Œ [… Linkers
  • 14. ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K ˜m© ÎÒ)Û -½ ó L§ ¹ üH×£ ¹ ˜m© ¹ ÎÒ)Û ¹ -½ ¹ Ú^§S¥ž [… Linkers
  • 15. ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K ˜m© ÎÒ)Û -½ ˜m© ¹ ãÚ/Œ˜m ¹ •;ÙÛ ¹ •¡éà ¹ “èžØ [… Linkers
  • 16. ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K ˜m© ÎÒ)Û -½ ÎÒ)Û ¹ ó ìÎÒL ¸ hashL ¸ õ«ÎÒL ¹ ¬L ¸ ^r ¬ ¸ ¥ ¬ ¹ AÏÎÒ ¸ .etext, .edata, .end ¸ fÎÒ [… Linkers
  • 17. ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K ˜m© ÎÒ)Û -½ -½ ¹ -½ a. ¸ M‡/^‡-½ ¸ •-/êâ-½ ¹ -½ žÅ ¸ ó ž-½ ¸ 1ž-½ [… Linkers
  • 18. ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K · ¥/Ä ¥ Ä ó §S¥ ¹ •Ÿo¦^§S¥ ¸ “èE^ ¸ !Ž˜m ¹ ¥ «a ¸ · ¥ ¸ Ä ¥ ¸ •¥ [… Linkers
  • 19. ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K · ¥/Ä ¥ Ä ó · ¥/Ä ¥ ¹ ó •ª ¹ ©‡‚ª [… Linkers
  • 20. ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K · ¥/Ä ¥ Ä ó Ä ó n ¹ ˜Ã'“è: PIC ¹ Û £þL: GOT ¹ L§ó L: PLT [… Linkers
  • 21. ƒ'¯K 8I©‡ ó L§ §S¥ ¢S¯K ó ìƒ' ˜ ¢S¯K ¹ ¥ |¢´» ¹ ¥ ‡ Ò ¹ Óž¦^Ä/· ó ¹ CX¥¥ ÎÒ ¹ ~^óä [… Linkers