Hi, Now gcc 16 has made medium as their default mcmodel since v16.2.0:
https://github.com/gcc-mirror/gcc/commit/cc3ade6da5c4b7d55425a15f25325ae84ef945a2 The commiter Xi Ruoyao said in the commit msg: I also had some concern about a potential performance regression caused by the conservative nature of the relaxation process, but when I tested this patch it turned out the relaxation is powerful enough to eliminate all the pcaddu18i instructions in cc1plus and libstdc++.so. So I think building dynamic libraries with medium mcmodel should be fine now. Best regards, Jianfeng

