https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92637
John Dong <dongjianqiang2 at huawei dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #4 from John Dong <dongjianqiang2 at huawei dot com> --- (In reply to Wilco from comment #2) > (In reply to John Dong from comment #0) > > Created attachment 47338 [details] > > testsuite > > > > hi, I compiled the attached with aarch64-linux-gnu-gcc -c -O2 > > -march=armv8.1-a testsuite.c -o testsuite.o, it had runtime error, and I > > found x10 was overwriten ar row 214. > > This example doesn't show a problem. Do you have an example that can be run > and gives the runtime error? after checking the log, there is another option -mcmodel=large, and this .o file finally linked to a dynamic library. it is supposed to use -fPIC other than -mcmodel=large.