FreeBSD Bugzilla – Attachment 188130 Details for
Bug 223752
clang __attribute__((constructor)) gets wrong input parameters
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
updated library code
attrconst2.c (text/x-csrc), 423 bytes, created by
dstaesse
on 2017-11-20 01:47:00 UTC
(
hide
)
Description:
updated library code
Filename:
MIME Type:
Creator:
dstaesse
Created:
2017-11-20 01:47:00 UTC
Size:
423 bytes
patch
obsolete
>#include <stdio.h> >#include <string.h> > >void init(int argc, char ** argv, char ** envp) >{ > printf("Initializing library.\n"); > printf("argc is %d.\n", argc); > printf("argv[0] is %s.\n", argv[0]); >} > >void fini(void) >{ > printf("Finalizing library.\n"); >} > > >__attribute__((section(".init_array"))) typeof(init) * __init = init; >__attribute__((section(".fini_array"))) typeof(fini) * __fini = fini;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 223752
:
188119
|
188120
| 188130