This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: calling function in .init and .fini gives problem


On Thu, 2004-05-20 at 10:40, mohanlal jangir wrote:
> I tried to run following program, but is giving "Illegal instruction" error
> after function premain is called. Can somebody correct me, what I am doing
> wrong?
> 
Try __attribute__((constructor)) and __attribute__((destructor))


Diego.


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