2

I'm dealing with huge global lists in Ada. When building I'm getting the error during linking: relocation truncated to fit R_X86_64_PC32 and link of main.adb failed. I saw that GCC has the flag -mcmodel=medium, is there something similar for gprbuild or does anyone has a hint how to deal with huge global lists?

Thanks in advance.

Nessa3001
  • 91
  • 2
  • I tried adding `-mcmodel=medium` to the Ada switches - result, the clang assembler (I’m on macOS) executed an illegal instruction :-( – Simon Wright Dec 01 '22 at 11:48

0 Answers0