Problem solved, sort of
Posted: Tue Oct 28, 2003 12:00 am
By adding a --whole-archive flag to the ld command, I made it include everything, but this is a kludge. I know now why it did this "optimization": The drivers are never called into by name. The function pointer gives the initilization routine the address, but ld has no way to assocate this to the symbol, so it thinks they're all unused. It's too smart for its own good
I'd like to have a better solution than what I did, maybe something to let it associate the pointer to the symbol?
Thanks anyways
I'd like to have a better solution than what I did, maybe something to let it associate the pointer to the symbol?
Thanks anyways