a super skill to help you understand .init and .fini, just do “LD_DEBUG=libs ./a.out”, read detail http://www.bnikolic.co.uk/blog/linux-ld-debug.html One thing need to remind you, loader pass control to a.out *BEFORE* it calls the fini.
a super skill to help you understand .init and .fini, just do “LD_DEBUG=libs ./a.out”, read detail http://www.bnikolic.co.uk/blog/linux-ld-debug.html One thing need to remind you, loader pass control to a.out *BEFORE* it calls the fini.