gcc -u symbol compiler option
<p>When do we use the gcc -u compiler option?
Can you please provide an example too?</p>

<p><a href="https://gcc.gnu.org/onlinedocs/gcc-2.95.2/gcc_2.html" rel="noreferrer">https://gcc.gnu.org/onlinedocs/gcc-2.95.2/gcc_2.html</a>
Says the following:</p>

<blockquote>
  <p>Pretend the symbol symbol is undefined, to force linking of library
  modules to define it. You can use `-u' multiple times with different
  symbols to force loading of additional library modules.</p>
</blockquote>