A framework to test ld script