This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to redefine _start ?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]