- Oct 02, 2017
-
-
Simon McVittie authored
We use CAPSULE_VERSION in the stub library for the version of the library being encapsulated, so we can't use that variable name for the tool. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
This reverts commit 2909b18a. We should update the symbols file when we do a release, instead. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
- Sep 30, 2017
-
-
Vivek Das Mohapatra authored
-
Vivek Das Mohapatra authored
We need to intercept dlopen calls made by DSOs outside the capsule so that we can update the GOTs of new DSOs as they appear (for example when libSDL dlopen()s DSOs that use libGL's symbols but don't link against it directly. In order to do this we need to wrap dlopen(), but unlike dlsym() (which we already wrap) we cannot do so unconditionally: To support this we introduce a restricted relocate call which blacklists certain DSOs.
-
Vivek Das Mohapatra authored
-
Vivek Das Mohapatra authored
-
Vivek Das Mohapatra authored
Extra debug for success/failure/noop cases. Move some of the deeper detail into the ELF class rather than RELOC to reduce noise now that we're out of early alpha status.
-
Vivek Das Mohapatra authored
-
Vivek Das Mohapatra authored
-
Vivek Das Mohapatra authored
-
Vivek Das Mohapatra authored
-
Vivek Das Mohapatra authored
This will be used to do special-case dlopen wrapping outside the capsule
-
Vivek Das Mohapatra authored
Conflicts: data/capsule-shim.mk.in
-
Vivek Das Mohapatra authored
-
Vivek Das Mohapatra authored
-
Vivek Das Mohapatra authored
This can segfault, but depends on the exact artefacts that come out of the compiler. dlmopen(LM_ID_BASE…) should be safe enough though. In addition there's no point in walking the full code path again: It isn't possible for the elf class & machine to change at runtime so we might as well cache the results and return early for subsequent calls.
-
Vivek Das Mohapatra authored
This means less code needs to be parachuted into the library using libcapsule, and less state needs to be held there - which opens the way for more than one capsule to co-exist in the same link chain. Conflicts: capsule/capsule-dlmopen.c capsule/capsule-init.c Conflicts: tests/libtest.sh
-
- Sep 29, 2017
-
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
It doesn't exist on GNOME Wayland: XWayland relies on SO_PEERCRED for authentication. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Don't just rely on it being loaded as a side-effect of something else. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
This ensures that it works for tests in a deeper subdirectory. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
The toolchains on Debian jessie and SteamOS brewmaster produce RPATHs, not RUNPATHs, which are higher-precedence than LD_LIBRARY_PATH. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
- Sep 28, 2017
-
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
This doesn't actually use libcapsule yet, just a Frankenstein LD_LIBRARY_PATH involving both the GL provider (normally the host) and the container; but if you pass --gl-stack $dir where $dir contains a libcapsule shim at lib/x86_64-linux-gnu/libGL.so.1, it will be used. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Shell scripts are a terrible language to write more than a screenful of code in, and Vivek doesn't like Python, so Perl it is. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
We actually only need version 20160916 when doing a "make dist". When building against an older version, we'll use the macros bundled in the dist tarball whenever they are newer than what's in autoconf-archive. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Vivek Das Mohapatra authored
Some ElfW(Rel[a]) d_ptr items are pre-calculated form base, others not.
-
- Sep 25, 2017
-
-
Simon McVittie authored
This broke parallel builds, and the ability to distcheck without doing a gtk-doc-enabled build first. https://bugzilla.gnome.org/show_bug.cgi?id=786174 Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Detected by running build-snapshot on version repackaged as non-native. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
- Sep 21, 2017
-
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-