hi, Andrew:

Thanks for your explaination!

 

best wishes,

 

发件人: Andrew Fish [mailto:af...@apple.com]
发送时间:2012年9月1日 1:14
收件人: edk2-devel@lists.sourceforge.net
主题: Re: [edk2] Static Link/Dynamic link question

 

Nicolas,

 

I think the terminology in the build spec. is confusing. Using the classic 
definition of static linking, like your example, all EFI modules are statically 
linked. 

 

Libraries are linked as objects, that can be linked into Modules. Modules are 
linked into relocatable PE/COFF images. 

 

Andrew Fish

 

 





 

On Aug 30, 2012, at 8:04 PM, nicolas wrote:





hi, experts:

i am studying edkii build spec.

It talked about static link/dynamic link in chapter 9.4 .

It said:

1. for lib modules, it used static link as the last step.

2. for non-lib modules, such as drivers/app, static link step is optional.

 

so, it made me confused!

based on my understanding, uefi drivers/applications are all static linked.

 

take an example:

1. App1 and App2 used a same lib "BasePrintLib".

    so, if App1/App2 are not static linked, there should be only one instance 
"BasePrintLib".

 

best wishes



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. 
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

 
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to