- Sep 19, 2017
-
-
Simon McVittie authored
While there, drop unused $(shim_files) and $(shim_srcs) variables. 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
Using a file in the ${builddir} doesn't work too well in a builddir != srcdir build. 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
The --capsule-symbols option takes precedence over the CAPSULE_SYMBOLS environment variable, which takes precedence over the default. 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
capsule-mkstublib can use this to find the just-built libcapsule during testing. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
This avoids accidentally exporting it, and fixes the build of generated code with -Wmissing-declarations. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Making backtrace_shim_call static avoids failure to build under -Wmissing-declarations, and also avoids accidentally exporting it from a library. Declaring the stubs avoids failure to build under -Wmissing-declarations. Marking the stubs as noreturn avoids failure to build under -Wsuggest-attribute=noreturn. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Vivek Das Mohapatra authored
The removal of the addr() address/base fixup logic aldo turns out to have been premature, so restored for the find_ptr() helper.
-
- Sep 18, 2017
-
-
Vivek Das Mohapatra authored
We only care about loop protection in an actual capsule, not in the helper tools which extract DSO names and symbols for us.
-
Vivek Das Mohapatra authored
-
Vivek Das Mohapatra 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
This just checks that we can link and initialize the library, and not that we can actually do anything interesting. 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
We'll add some actual symbols to it when we have a release. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
They are undesired in binary distributions that use the standard search paths. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Vivek Das Mohapatra authored
Yubin Ruan <ablacktshirt@gmail.com> spotted that I was conflating the base-relative address offset in ElfW(Rel) and ElfW(Rela) addresses from DT_REL and DT_RELA sections with the absolute addresses from ElfW(Dyn) pointer entries. This fixes a long-standing TODO about removing the hack in addr() where there was guesswork about whether the address being was base-relative or absolute.
-
- Sep 16, 2017
-
-
Vivek Das Mohapatra authored
Not that we're emitting the aithor info for some reason, but might as well keep it up to date.
-
Vivek Das Mohapatra authored
The Types and Values section now gets written by the gtk-doc generator, and devhelp2man.xslt needs to know not to slurp parameters from it into the function signature.
-
- Sep 15, 2017
-
-
Simon McVittie authored
Nobody is ever going to use this library via gobject-introspection (we hope), but its annotations are as good a pattern as any other and gtk-doc presents them nicely, so we might as well use them for documentation. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
This is a char *-based version of the usual GError pattern. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
*error is to be freed by the caller, but the result of dlerror() is in static or thread-local storage, so we need to copy it. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Vivek Das Mohapatra authored
The dlsym wrapper allows the program or a non-encapsulated DSO to get symbols from within the capsule with dlsym: capsule shims which use the provided dlsym tooling now do this correctly automatically.
-
Simon McVittie authored
This avoids things like safe_strncpy() accidentally becoming ABI. Unlike portable code, this implementation blindly assumes gcc or a compatible compiler, because life's too short to worry about non-gcc-compatible compilers on Linux. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
With clang: error: comparison of integers of different signs: 'long' and 'unsigned long' [-Werror,-Wsign-compare] Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
With clang: error: address of stack memory associated with local variable 'flags' returned [-Werror,-Wreturn-stack-address] Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
This means new symbols actually get picked up. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Vivek Das Mohapatra authored
-