Remember me

Lost Password?

Register now!
Who's Online
53 user(s) are online (42 user(s) are browsing Forums)

Members: 1
Guests: 52

BSzili, more...
Support us!
Recent OS4 Files
Report message:*

Re: library auto init code

Subject: Re: library auto init code
by Hans on 2019/4/12 0:17:33


It's my own code, and I'm only using __USE_INLINE__. It's definitely linking the static library, because objdump lists the lib's .ctors and .dtors. Added to that, it won't build if I don't link to the autoinit stub library, and it'll complain about the missing interface pointer.

However, I get a NULL pointer crash at the first function call for the library, which means that the code is never run.

EDIT: Of course, I am using the standard startup code, yet it's simply not being run.

EDIT2: As an experiment, I tried using a graphics library function, and the official libauto's code *does* get called. Objdump shows the graphics library's entries in .ctors and .dtors, along with those for my library. So why are only the graphics library's ones called?


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project