Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22233

-fsanitize=address ,-static-libasan, could not see asan libray linked to final .so file

$
0
0

As mentioned using -fsanitize=address during compilation or .so file creation will automatically link libasan.so library right ?

I am facing issue :-

==13640==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.xrun: *E,ELBERR: Error during elaboration (status 1), exiting.

I found the same issue and fix for the same here :- https://github.com/google/sanitizers/issues/796

Firstly i try to use -fsanitize=address -static-libasan flags to my gcc compiler and linker to created .so files. The created library file 'libsynsv.so' itself don't show the 'asan' library as its dependency with ldd libsynsv.so output.

/folder/san/client/src/main/cvip/asan/Release/verilog/../lib/libviputil.so: undefined symbol: __asan_option_detect_stack_use_after_return.

Is there any issue with my GCC command? Why my library was not linked to asan though i ran with -fsanitize-address.


Viewing all articles
Browse latest Browse all 22233

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>