This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
passing argument to __attribute__((constructor))
- From: Yubin Ruan <ablacktshirt at gmail dot com>
- To: binutils at sourceware dot org
- Date: Tue, 1 Aug 2017 16:05:37 +0800
- Subject: passing argument to __attribute__((constructor))
- Authentication-results: sourceware.org; auth=none
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