summaryrefslogtreecommitdiff
path: root/preload/Makefile
AgeCommit message (Collapse)AuthorFilesLines
2009-01-10Builds for OS X 10.4 with these changesLauri Leukkunen1-1/+1
A bit more ifdef __APPLE__ testing was needed. Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2008-12-30This version compiles on os xJoshua Pollak1-1/+1
2008-12-11Fixed /proc/self/exe (and /proc/<MY_PID>/exe)Lauri Aarnio1-1/+2
- Implemented a special mapping function for /proc, to be able to map the symlink at /proc/self/exe. - This can be described as a countermeasure to side-effects of mapping exec parameters: /proc/self/exe (as well as /proc/<MY_PID>/exe, which is the same thing) need special care if the binary was started by anything else than direct exec. Examples: a) if CPU transparency is used, the real /proc/self/exe points to e.g. Qemu. Now SB2 can make it look like the link points to the binary which is running under qemu. b) if "ld.so-start" was used, the real /proc/self/exe points to ld.so and not to the binary itself. Again, SB2 maps that to a symlink which points to the correct binary. Other related things: - all mapping modes use this feature now - Lua <=> C interface version had to be incremented - Lua mapping code <=> mapping rules version had to be incremented
2008-12-07Fixes for dirfd handling for openat(), faccessat(), etc *at() functionsLauri Aarnio1-1/+1
- Added a pathname cache/db, which keeps fd=>path mappings. Those are needed for correct operation of openat() and friends. - NOTE: This is an initial version; there are still features that missing! To be extended later..
2008-10-23Introduced basic support for exec_policy based localization.Mika Westerberg1-2/+2
With this commit it is possible to instruct sb2 to load localization files and message catalogs from specific path (for example under target_root). (Reviewed by Lauri T. Aarnio)
2008-06-17Replaced glob() and glob64()Lauri Aarnio1-1/+1
- The glob* functions used to be wrapped (the "pattern" parameter was mapped by SB2), but that is a less-than-perfect solution because mapping the pattern caused strange out-out-expectations results to be returned (which caused problems with GNU Make, which uses glob() quite extensively). The right thing to do is to include private implementations of the glob* functions to SB2, so that the mapping happens at lower levels (e.g. in the opendir() etc. functions used by glob). - The replacements for glob() and glob64() were copied from glibc2.7. Some minor modifications were needed to make them compile correctly in this context. - WARNING: Because the replacements were copied from glibc, and the interface to the glob functions includes flags etc., SB2 is now somewhat bound to glibc-based systems. The old less-than-perfect solution is still included in the sources and can be enabled by defining SB2_WRAP_GLOB macro when compiling, if SB2 needs to be used on a non-glibc host.
2008-03-14Important bugfix to libpthread interfaceLauri Aarnio1-2/+6
- Using libpthread unconditionally caused crashes (segfaults inside libstdc++, etc). This changes the preload library to use functions from the pthread library only if they are available, and removes automatic loading of that library (Full explanation can be found from luaif.c)
2008-01-11Introduce sb2-show, cleanup some warningsLauri Leukkunen1-3/+0
sb2-show allows you to inspect how path/argv/envp mangling would be done for a given binary. Patch by lauri.t.aarnio@nokia.com, somewhat cleaned up by lle@rahina.org. Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2007-12-18Generate source files to the object dirLauri Leukkunen1-3/+3
Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2007-12-18Change wrapper generation to support multilib compilationLauri Leukkunen1-6/+7
This is not tested properly on amd64 host, but does fix the obvious problems. Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2007-11-20Fix compilation on linuxLauri Leukkunen1-2/+2
Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2007-11-19Incomplete OS X supportLauri Leukkunen1-7/+18
Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2007-11-19Restructure lua infraLauri Leukkunen1-1/+1
Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2007-10-30Fix parallel buildLauri Leukkunen1-3/+5
Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2007-10-30Cleanup wrapper generation related build system stuffLauri Leukkunen1-17/+14
Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2007-10-30Interface to the preload library is now generated by an interface generator.Lauri Aarnio1-3/+19
Details: - preload/interface.master defines all symbols (functions) that will be exported from the library. That file is used to a) generate the C files that contain interface functions and b) generate a list of public symbols for ld. - about 80% of the wrapper functions are now completely generated by the generator (gen-interface.pl) based on interface.master. The rest are "gates" to hand-written code (see the interface generator source for instructions, and implementation of getcwd_gate() in libsb2.c can be used as an example) - lots of macros and definitions were moved from libsb2.c to libsb2.h (a new file) which is used by both hand-written and generated code - libsb2_init() was completely removed from libsb2.c. Function pointers are only resolved when needed (previously all were resolved at init) - the conditionally compiled strchrnul() was replaced by a simpler version (and that is now used unconditionally!) - Fixed coding style in exec*-functions (in libsb2.c) to be more consistent with everything else
2007-08-16Switch back to using our own luaLauri Leukkunen1-2/+2
Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2007-07-28Change to use system liblua5.1Lauri Leukkunen1-1/+1
Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2007-07-25Pass SONAME properly to preload/Makefile1.99.0.11Lauri Leukkunen1-1/+1
Also pump the version Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2007-07-25Remove unused env manipulation functionsLauri Leukkunen1-1/+1
Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2007-06-20More work on the llbuild systemLauri Leukkunen1-6/+6
Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2007-06-17Build system updatesLauri Leukkunen1-7/+6
Also puts back host-gcc link creation, it seems to be needed. Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2007-05-25Produce libsb2.so with SONAME in place1.99.0.5Lauri Leukkunen1-7/+7
Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2007-01-04* renaming:Lauri Leukkunen1-3/+3
lua/ -> mapping/ lua/lua_bindings.c -> mapping/mapping.c preload/sb_alien.c -> preload/sb_exec.c
2007-01-04* update build system, againLauri Leukkunen1-2/+3
2007-01-03* update llbuild build system to new non-recursive versionLauri Leukkunen1-6/+10
2006-12-23* now we're able to build glibLauri Leukkunen1-1/+1
2006-09-03* minor llbuild shlib building cleanupLauri Leukkunen1-4/+2
2006-09-03* lots of work on the llbuild multi-target and c++ supportLauri Leukkunen1-1/+1
2006-08-24* ll-build change from using subdirs variable to listingLauri Leukkunen1-2/+1
sub-directories in obj-default
2006-08-24* fix up built-in.o handlingLauri Leukkunen1-1/+1
2006-08-15* change some pretty print naming conventions to use ll_ prefixLauri Leukkunen1-1/+1
* cleanup top level Makefile by moving some stuff to Makefile.include
2006-08-15* improve pretty printing a lotLauri Leukkunen1-3/+2
2006-08-15fix the build system to really build in parallel safelyLauri Leukkunen1-1/+2
2006-08-05first helloworld binary compiled!Lauri Leukkunen1-1/+1
2006-08-05fix linking and remove SConscript filesLauri Leukkunen1-1/+2
2006-08-05hack together a non-scons build systemLauri Leukkunen1-0/+11