Hi All,

I am trying to add ldso functionality in my kernel. I am loading the dynamic linker "ld-musl-arm.so.1" into memory and passing the other application as command line which requires the dynamic libraries but the linker is generating fault during stage 2 "__dls2" at some random location 0x464cc57f.

I am fairly new to dynamic linking code and trying to understand _dlstart_c code functionality. Can any one explain what are the command line arguments dynamic linker expects at this entry point ? I am giving numArgs = 1 and argv = app.elf after loading "ld-musl-arm.so.1" into memory ? Is this approach correct ? Do I have to also load app.elf into memory or the dynamic linker will take care of loading it ?

Thanks,
NJ