Hi,
Thanks for all the help. My apologises about insufficient information.
Here's the details.
The helloworld program is written to be ran as a kernel program in a stripped down linux (Trinux).
In this stripped down linux, there is no libraries and lsmod shows no module loaded.
Therefore, in order to run the helloworld program that contains "printk" and netfilter commands, I have to load in the appropriate libraries.
Hence, the question on how to check which libraries does a program use.
Please advise.