On Thu, 2022-08-18 at 19:49 +0800, Lulu Cheng wrote: > > I think we can ignore the effect of -fplt if code model is extreme, > > instead of forcing everyone to explicitly add -fno-plt. The "large" > > code model of x86_64 also does not limit the address range and it always > > avoids PLT (even if someone adds "-fplt" explicitly).
> Do you mean that if cmodel=extreme, > then add -fno-plt by default? Yes, we should use -fno-plt as the default for cmodel=extreme. x86_64 silently ignores -fplt for cmodel=large (their "large" is like our "extreme"), but perhaps it's better for us to just report an error if someone uses "-mcmodel=extreme -fplt" explicitly (if possible, I'm not sure if we can determine whether -fplt is explicitly given in the backend code). -- Xi Ruoyao <xry...@xry111.site> School of Aerospace Science and Technology, Xidian University