https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81993

            Bug ID: 81993
           Summary: gcc 7.X -gsplit-dwarf removes some symbols, causing
                    some undefined references
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sylvestre at debian dot org
  Target Milestone: ---

Reported https://bugs.llvm.org/show_bug.cgi?id=34140 & discussed
https://gcc.gnu.org/ml/gcc/2017-08/msg00287.html

Adding  __attribute__((used)) fixed the issue for the clang build.

sorry I don't have a test case.

Reply via email to