Hi Adam,
Adam Lackorzynski wrote:
The initcall must be placed in a special section, and is also prefixed, i.e. 'foo' gets to '__l4ddekit_initcall_foo'. There must be such a function in your lib, placed in a section '.l4dde_ctors'. Is that the case?
Yes, I read this. That is why I double checked it:
$ readelf -W -s libhellomod.a File: libhellomod.a(hello.o) There are 19 section headers, starting at offset 0x11da8:
Section Headers: [Nr] Name Type Addr Off Size ES Lk Inf Al Flags
..
[12] .l4dde_ctors."6" PROGBITS 00000000 011cd4 000004 00 0 0 4 [00000003]: WRITE, ALLOC
Symbol table '.symtab' contains 17 entries: Num: Value Size Type Bind Vis Ndx Name
..
9: 00000000 4 OBJECT LOCAL DEFAULT 12 __l4ddekit_initcall_hello_init
..
So, looks like __l4ddekit_initcall_hello_init belongs to section 12 which is indeed .l4dde_ctors.
Best regards, Andre