https://issues.dlang.org/show_bug.cgi?id=12896

          Issue ID: 12896
           Summary: ld.gold complains about bad relocations when building
                    libphobos2.so
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P1
         Component: DMD
          Assignee: [email protected]
          Reporter: [email protected]

The error message looks like this.

generated/linux/release/64/libphobos2.so.0.66.o(.text.d_dso_init+0x38): error:
reloc has bad offset 56
generated/linux/release/64/libphobos2.so.0.66.o(.text.d_dso_init+0x38): error:
reloc has bad offset 56

This looks like a problem with the recently added R_ARCH_NONE relocations that
were emitted to .text.d_dso_init to fix bug 4758 (--gc-section).

--

Reply via email to