You copied the Doc URL to your clipboard.

--undefined=symbol linker option

Prevents the removal of a specified symbol if it is undefined.

--undefined= symbol


Causes the linker to:

  1. Create a symbol reference to the specified symbol name.

  2. Issue an implicit --keep(symbol) to prevent any sections brought in to define that symbol from being removed.