\listfiles

\documentclass{article}
\usepackage{hyperref}
\usepackage{glossaries}
%
\makeglossaries
%
\newglossaryentry{foo}{name=name of foo,description=description of foo}
%
\begin{document}
\section{\glsentrytext{foo}}
\section{\glsentrytext{foo}}
\section{\glsentryplural{foo}}
\section{\Glsentrytext{foo}}
\section{\Glsentrytext{foo}}
\section{\Glsentryplural{foo}}
\printglossary
\end{document}
