http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55354



             Bug #: 55354

           Summary: [asan] by default, the asan run-time should be linked

                    statically, not dynamically

    Classification: Unclassified

           Product: gcc

           Version: unknown

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: other

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: konstantin.s.serebry...@gmail.com

                CC: dseke...@redhat.com, dvyu...@google.com,

                    ja...@redhat.com





Today, -faddress-sanitizer (to be changed to -fsanitize=address) causes the 

asan run-time library to be linked dynamically. 

It needs to be changed to static linkage because 

  - it matches clang behavior 

  - causes less confusion for users (where is my libasan.so???)

  - better for tsan performance (we'll need to link tsan statically too)





Note that on MacOS we probably want to keep using dynamic linkage

since the future library-interposition-based run-time will require it.

Reply via email to