Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-78948

clang removes symbols in static builds that printers may want to use

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Build

      from https://github.com/10gen/mongo/pull/14049#discussion_r1261783964, it was discovered that static clang builds were removing symbols that were unused in the binary. These symbols linked to functions that were intended to be called by the pretty printer in a gdb session to execute code which would shed more light (like a native built pretty printer). However it seems that because the executed code when built had no calls to the symbol, most likely it was optimized out.

      There should be some flag we can pass to leave these symbols in and we should explore if its valuable to keep them in clang non release builds.

            Assignee:
            Unassigned Unassigned
            Reporter:
            daniel.moody@mongodb.com Daniel Moody
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: