https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120772
Simon Sobisch <simonsobisch at gnu dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- --- Comment #6 from Simon Sobisch <simonsobisch at gnu dot org> --- rechecked: for some reason this does not work: /usr/bin/ld: /tmp/cc2tI1N8.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Nonrepresentable section on output collect2: error: ld returned 1 exit status Here's the execution with -echo /opt/gcobol_dbg/bin/gcobc --debug -echo -g -o /tmp/WX735.so.3416941/WX735.so /home/so/src/WX735.cob /opt/gcobol_dbg/bin/gcobol -shared -I/home/so/src -include /opt/gcobol_dbg/bin/../share/cobol/udf/stored-char-length.cbl -fcobol-exceptions=EC-ALL -g -o/tmp/WX735.so.3416941/WX735.so /home/so/src/WX735.cob -fno-static-call --> so -shared is set, but -fPIC not