static link with relocations

H.J. Lu hjl.tools@gmail.com
Fri Apr 16 20:24:00 GMT 2010
2010/4/16  <b95705030@ntu.edu.tw>:
> Hello all,
>
> I want to port binutils to a platform(EFI Binary Code Virtual Machine). The
> image of that platform is static link, but they contain relocations.
>
> Does binutils have build in assumption that static image don't contain
> relocations??(ie. Does binutils support the model that static image contain
> relocations??)
>

Do they use the same format as native EFI codes? If yes,
you need to link as PIE. I fixed an PIE bug recently for EFI:

http://www.sourceware.org/bugzilla/show_bug.cgi?id=11396


-- 
H.J.



More information about the Binutils mailing list