Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-9233

Go: unregistered Go functions fail when using -buildmode=pie -ldflags=-w

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • Not applicable
    • sdk-go
    • None
    • GNU/Linux

    Description

      If a Go program is built with -buildmode=pie -ldflags=-w, the code that transfers an unregistered function fails. It tries to look up the symbol in the DWARF debug info, but that info has been stripped because of the -w flag. This causes a program crash when calling the function.

      I have a patch for this problem that I will send shortly.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ianlancetaylor Ian Lance Taylor
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m