amdloader : initial implementation of amd loader generation