I just committed a cleaned up version of my current work. This now has .edata and .idata sections hidden in .rdata, and can generate working DLL and EXEs but with the SizeOfImage <= 10000 limit.
Danny 2009-12-28 Danny Backx <dannyba...@users.sourceforge.net> * ld/emultempl/pe.em: Change default to pseudo-relocation v2. * ld/scripttempl/pe.sc: Move edata and idata section contents into the rdata section, and remove the edata and idata sections. * ld/pe-dll.c (ERVA): Change macro definition to take edata section offset into account. * bfd/cofflink.c: Remove commented out old command. * bfd/peXXigen.c (_bfd_XXi_swap_aouthdr_out): Save and restore the PE_EXPORT_TABLE field of DataDirectory too. * ld/scripttempl/pe.sc: Add symbols __idata_start__, __idata_end__, __edata_start__, __edata_end__ that _bfd_XXi_swap_aouthdr_out will look for. * bfd/peXXigen.c (_bfd_XXi_swap_aouthdr_out): Get the newly defined symbols like __edata_start__ and use them to initialize the DataDirectory entries for PE_EXPORT_TABLE and PE_IMPORT_TABLE. -- Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel