This Error is observed for PowerPC target while Regression testing of WRL9 toolchain. ld: bss-plt forced due to /usr/lib/libc_nonshared.a(ppc-mcount.oS) Bugzilla link for the issue: https://sourceware.org/bugzilla/show_bug.cgi?id=20554
1. source powerpc toolchain 2. $CC gcc-6.2.0/gcc/testsuite/gcc.c-torture/compile/pr44686.c -m32 -mhard-float -mcpu=7400 -mno-spe -fno-diagnostics-show-caret -fdiagnostics-color=never -pg -DSTACK_SIZE=16384 -lm -o pr44686.exe /home/kpit/damodars/WRL9-8/install/POWERPC/sysroots/x86_64-oesdk-linux/usr/libexec/powerpc-oe-linux/gcc/powerpc-oe-linux/6.2.0/real-ld: bss-plt forced due to /home/kpit/damodars/WRL9-8/install/POWERPC/sysroots/ppc7400-oe-linux/usr/lib/libc_nonshared.a(ppc-mcount.oS) /home/kpit/damodars/WRL9-8/install/POWERPC/sysroots/ppc7400-oe-linux/usr/lib/gcrt1.o:(.data+0x4): undefined reference to `main' collect2: error: ld returned 1 exit status