Lassi Tuura <lat@xxxxxxx> writes: > We are using GCC 4.3.2 + binutils 2.19.1 on a RHEL4-derived system. > We're testing -fvisibility-inlines-hidden, and don't quite understand > what it does. We are seeing some but not all inline functions getting > emitted out-of-line as public weak symbols and calls to them going > via the PLT; the documentation seems to indicate this would not > happen. -fvisibility-inlines-hidden only affects inline methods. It does not affect inline functions which are not methods. E.g., your test cases uses std::sort, but std::sort is not an inline method of any class. In general -fvisibility-inlines-hidden does not apply to template instantiations, since that would break explicit instantiations. Ian