quick_dump: Don't allow undefined symbols in _chipset.so
PATCH 1/2 quick_dump: Don't allow undefined symbols in _chipset.so
From: Ville Syrjälä <[email protected]>
Every time _chipset.so has undefined symbols we fail to notice it at build time and then get to wonder why quick_dump fails to actually work. Pass -Wl,--no-undefined to the linker to get a build time error instead of the current runtime error.
--- tools/quick_dump/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
tools/quick_dump/Makefile.am +2 -1
@@ -4,7 +4,8 @@ dist_bin_SCRIPTS = quick_dump.py reg_access.py bin_SCRIPTS = chipset.py lib_LTLIBRARIES = I915ChipsetPython.la -I915ChipsetPython_la_LDFLAGS = -module -avoid-version $(PYTHON_LDFLAGS) +I915ChipsetPython_la_LDFLAGS = -module -avoid-version $(PYTHON_LDFLAGS) \ + -Wl,--no-undefined I915ChipsetPython_la_SOURCES = chipset_macro_wrap.c nodist_I915ChipsetPython_la_SOURCES = chipset_wrap_python.c I915ChipsetPython_la_LIBADD = \
Signature · 6 lines
2.0.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/2 quick_dump: Fix undefined symbols from libunwind
From: Ville Syrjälä <[email protected]>
../../lib/.libs/libintel_tools.a(igt_core.o): In function `print_backtrace':intel-gpu-tools/lib/igt_core.c:981: undefined reference to _Ux86_64_getcontext' intel-gpu-tools/lib/igt_core.c:982: undefined reference to _ULx86_64_init_local' intel-gpu-tools/lib/igt_core.c:983: undefined reference to _ULx86_64_step' intel-gpu-tools/lib/igt_core.c:987: undefined reference to _ULx86_64_get_proc_name'
--- tools/quick_dump/Makefile.am | 1 + 1 file changed, 1 insertion(+)
tools/quick_dump/Makefile.am +1 -0
@@ -13,6 +13,7 @@ I915ChipsetPython_la_LIBADD = \ $(PCIACCESS_LIBS) \ $(DRM_LIBS) \ $(CAIRO_LIBS) \ + $(LIBUNWIND_LIBS) \ $(NULL) chipset.py: chipset_wrap_python.c
Signature · 6 lines
2.0.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx