passing argument to __attribute__((constructor))

Yubin Ruan ablacktshirt@gmail.com
Tue Aug 1 08:05:00 GMT 2017


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



More information about the Binutils mailing list