[llvmlinux] Functions marked with __weak directives are linked in after the _etext symbol

Jason Gionta jjgionta at ncsu.edu
Tue Nov 18 21:25:01 UTC 2014


Hi,

I was wondering if anyone could tell me why functions with __weak
directives are linked into the vmlinux image after the _etext symbol. Is
this by design? In a gcc compiled vmlinux, these symbols are dispersed
throughout the code. As a result, _etext is no longer the end of code, but
some weak symbol assumes that role.

Thanks,

-- 
Jason Gionta
Cyber Defense Lab
North Carolina State University
jjgionta at ncsu.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/llvmlinux/attachments/20141118/785e0bd9/attachment.html>


More information about the LLVMLinux mailing list