Same issue as https://bugzilla.redhat.com/show_bug.cgi?id=1688766. We'll need to apply this: https://src.fedoraproject.org/rpms/gcc/c/62b413d244caaf088f1d4a73b30a9e3b0ad4cbef?branch=f29
I verified g++ does not link against libgcc.a for gcc-8.3.1-4.1: g++ -O2 -fpic -shared reproducer.c eu-readelf -s a.out | grep cpu_model 3: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UNDEF __cpu_model 50: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UNDEF __cpu_model and g++ links against libgcc.a for gcc-8.3.1-4.2.el8: ++ -O2 -fpic -shared reproducer.c eu-readelf -s a.out | grep cpu_model 50: 0000000000202030 16 OBJECT LOCAL DEFAULT 22 __cpu_model
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:3565