This is the mail archive of the binutils@sourceware.org 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]

passing argument to __attribute__((constructor))


I am wondering whether one can pass arguments to
__attribute__((constructor)). I know what __attribute__((constructor))
do and currently I define it like this:

__attribute__((construtor))
void __theconstructor(void) {
    ...
}

But I am wondering whether we can pass in a argument to the __theconstructor ?

Thanks,
Yubin


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