www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19044] New: Linking error: reloc 0: symbol index out of range


          Issue ID: 19044
           Summary: Linking error: reloc 0: symbol index out of range
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: luis luismarques.eu

Created attachment 1707
  --> https://issues.dlang.org/attachment.cgi?id=1707&action=edit
code that exhibits the bug; type make to build

On macOS (tested on 10.13.5), unzip the attached file and run:

$ make
dmd -lib -ofbug.a source/openmethods.d source/bug.d
dmd -c source/test.d
dmd bug.a test.o
ld: in bug.a(bug_2f9_1af.o), in section __TEXT,__textcoal_nt reloc 0: symbol
index out of range for architecture x86_64

Some other buggy behaviors were observed in the source code before it was
reduced that might be related to the same underlying bug. For instance, there
was one behavior where an append to an array would throw an out of memory
error, suggesting that an absurd allocation amount was request, even though in
the corresponding source code that should not have been possible.

Jun 30 2018