(In reply to Tom de Vries from comment #0) > However, when we install gcc-PIE: > ... > $ sudo zypper install gcc-PIE > ... > > we get a gnatlink error instead: > ... > $ rm -f hello.ali hello.o hello ; gnatmake -v hello.adb -largs -v ... > /usr/lib64/gcc/x86_64-suse-linux/8/adalib/libgnat.a(a-contai.o): relocation > R_X86_64_32 against symbol `ada__containers__capacity_error' can not be used > when making a PIE object; recompile with -fPIC > ... > > The compilation fails because gnatlink uses > /usr/lib64/gcc/x86_64-suse-linux/8/adalib/libgnat.a instead of > /usr/lib64/gcc/x86_64-suse-linux/8/adalib/libgnat_pic.a. I've checked in ubuntu 18.04, which has PIE as default. There we still got libgnat.a and libgnat_pic.a, but libgnat.a was compiled with the default (i.e., -fPIE). So, gnatmake still selects libgnat.a, but that's not a problem.