SPECIALIST FOR COMPILING C

SPECIALIST FOR COMPILING C

Cancelled

Job Description

We need to compile programs using a C compiler, where the executable produced is larger than 2GB.

We are using Debian Linux 6 on Intel x64. Currently we have 16GB of RAM.

With the latest versions of gcc, using "-mcmodel=large", we get an error about "crtstuff", for example:

crtstuff.c:(.text+0x20): relocation truncated to fit:
R_X86_64_32S against `.dtors'

We can supply a set of *.c files which, when run with "gcc -mcmodel=large" on the command line, result in such errors. The task is to get them to compile and run. The C files, the gcc command line, the version of gcc, or even if gcc is used at all, are not set in stone; any of them can be changed, if that's the solution.

PLEASE APPLY ONLY IF YOU REALLY HAVE EXPERIENCE WITH THIS TASK!

Further information:
http://stackoverflow.com/a/11531841/220627
http://gcc.gnu.org/ml/gcc-help/2012-02/msg00207.html

---
Skills: linux