[Issue 19044] New: Linking error: reloc 0: symbol index out of range

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 30 16:39:14 UTC 2018


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

          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 at puremagic.com
          Reporter: luis at 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.

--


More information about the Digitalmars-d-bugs mailing list