Kaydet (Commit) 7b101fc5 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

UBSan apparently still needs --dynamic-list-cpp-typeinfo

...(presumably due to it using -fvisibility-ms-compat, cf.
solenv/gbuild/platform/com_GCC_defs.mk), or else things start to fail like
<https://ci.libreoffice.org/job/lo_ubsan/962/console>'s
CustomTarget_testtools/uno_test:

> /cpputools/source/unoexe/unoexe.cxx:502:24: runtime error: member call on address 0x60600000c288 which does not point to an object of type 'com::sun::star::lang::XMain'
> 0x60600000c260: note: object is base class subobject at offset 40 within object of type 'bridge_test::TestBridgeImpl'
>     #0 0x50dc0b in sal_main() /cpputools/source/unoexe/unoexe.cxx:502:24
>     #1 0x507762 in main /cpputools/source/unoexe/unoexe.cxx:348:1
>     #2 0x2b2ede591444 in __libc_start_main (/lib64/libc.so.6+0x22444)
>     #3 0x429425 in _start (/instdir/program/uno.bin+0x429425)

Change-Id: I7f2c38ef2f3cedae07d71246980ad1f21220db72
üst 44c0d38a
...@@ -76,6 +76,11 @@ endif ...@@ -76,6 +76,11 @@ endif
ifneq ($(HAVE_LD_BSYMBOLIC_FUNCTIONS),) ifneq ($(HAVE_LD_BSYMBOLIC_FUNCTIONS),)
gb_LinkTarget_LDFLAGS += -Wl,-Bsymbolic-functions gb_LinkTarget_LDFLAGS += -Wl,-Bsymbolic-functions
ifeq ($(COM_IS_CLANG),TRUE)
ifneq ($(filter -fsanitize=%,$(CC)),)
gb_LinkTarget_LDFLAGS += -Wl,--dynamic-list-cpp-typeinfo
endif
endif
endif endif
ifneq ($(gb_DEBUGLEVEL),0) ifneq ($(gb_DEBUGLEVEL),0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment