When link-time garbage collection is in use (`--gc-sections
'),
it is often useful to mark sections that should not be eliminated.
This is accomplished by surrounding an input section's wildcard entry
with KEEP()
, as in KEEP(*(.init))
or
KEEP(SORT(*)(.ctors))
.
Packaging copyright © 1988-2000 OAR Corporation Context copyright by each document's author. See Free Software Foundation for information.