[patch] RFC frameworks implementation

Matt Rice ratmice@gmail.com
Wed Jan 31 09:18:00 GMT 2007


The attached patches implement frameworks familiar to those who use 
darwin,
though for elf targets through a substitution sequence ${FRAMEWORK} as
an extension to elf..

though I suppose much of this code might be useful if one wanted
to implement frameworks for darwins Mach-O binary format in binutils

for those unfamiliar with frameworks, they are a way to create an 
autonomous package
as a directory with the extension .framework containing a dynamic 
library,
and all the header files, and sometimes other resources.
  they are linked relative to the search path.
so you easily make self contained packages while minimizing the number 
of places you need to add to
LD_LIBRARY_PATH/-L/-I etc

it adds 2 options -k and -K (synonymous with -l and -L) as -f -and -F 
were already taken

some more information as it relates to gcc can be found here...
info -f gcc --node "Darwin Options"

the current implementation does not support sub-frameworks or 
frameworks
containing multiple architectures yet
and the actual substutution sequence parsing is being implemented in a 
rtld audit library
so additional patches to implement DT_AUDIT/DT_DEPAUDIT creation are 
forthcoming

matt

<binutils-frameworks.diff>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: binutils-frameworks.diff
URL: <https://sourceware.org/pipermail/binutils/attachments/20070131/1ec02fe9/attachment.ksh>


More information about the Binutils mailing list