> I need to create a bfd at linking time and this bfd conatins several > of its own sections (also created on-the-fly). This is what I did: Look in ld/pe-dll.c near the bottom. I do this for dlls.