Closed a0u closed 7 years ago
Note the minor changes to the linker command. Without -nostdlib, g++ removes -lc from the --start-group/--end-group sequence with core.a, which results in _init/_fini not being resolved since core.a is not searched again.
-nostdlib
g++
-lc
--start-group
--end-group
core.a
_init
_fini
Note the minor changes to the linker command. Without
-nostdlib
,g++
removes-lc
from the--start-group
/--end-group
sequence withcore.a
, which results in_init
/_fini
not being resolved sincecore.a
is not searched again.