PATCH: allow PE executables to have an export table

Charles Wilson cwilson@ece.gatech.edu
Thu Feb 20 02:41:00 GMT 2003


Charles Wilson wrote:
> Tested on cygwin, works as advertised.  Updated patch attached (to apply 
> cleanly to current CVS, and hopefully address the formatting issues).

I've RE-updated this patch to apply to current CVS.  I know that we're 
still waiting on Fabrizio's copyright release -- but I can't remember if 
that was pre-flood, post-flood, during the four month period when FSF 
had no copyright administrator, etc.

Can one of the maintainers find out if Fabrizio's release has made it in 
to FSF or not?  Or if it's lying, waterlogged, behind an old filing cabinet?

--Chuck

2002-12-10  Fabrizio Gennari  <fabrizio.ge@tiscalinet.it>

	* ld/pe-dll.c (process_def_file): don't create an export
	section if there are no exports and we're building an exe
	(pe_dll_build_sections): ditto
	(pe_dll_fill_sections): since this now gets called
	even when we're building an exe, conditionalize setting
	abfd->dll true on info->shared
	* ld/emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
	if i386pe or armpe, call pe_dll_build_section()
	for both exe's and dll's, not just dll's.
	(gld_${EMULATION_NAME}_finish): for all targets except
	shpe and mipspe, call pe_dll_fill_sections() for both
	exe's and dll's, not just dll's.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: exe-exports.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20030220/c812c4c6/attachment.ksh>


More information about the Binutils mailing list