在 2022/8/18 下午7:37, Xi Ruoyao 写道:
+ if (opts->x_flag_plt) + error ("code model %qs and %qs not support %s mode", + "tiny-static", "extreme", "plt");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?