how to redefine _start ?
Hans-Peter Nilsson
hp@bitrange.com
Tue Jan 8 15:00:00 GMT 2002
On Tue, 8 Jan 2002, Yannick PERRET wrote:
> Is it possible to write _start and stuff in C properly ?
Short answer: no.
> If yes, where to find some documentation/exemples ?
> If no, anybody got an idea to perform "before-main" treatments
> (and of course "after-main") ?
See docs on the linker option --wrap, as in "--wrap main".
You will also want "--wrap exit".
brgds, H-P
More information about the Binutils
mailing list