This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH to ld/pe-dll.c : Support PRIVATE keyword in pe dll .def files [1]


Hello,

The keyword PRIVATE in pe .def files is supposed to prevent entryname from
being placed in the import library, while having  no effect on the export
table in the dll or exe image.  The functionality for parsing and storing
this flag is already present in  ld/deffilep/y and pe-dll.c, but nothing
is done with it.

This patch makes ld honour the PRIVATE flag when building import lib.

ld/ChangeLog

2004-03-07  Danny Smith  <dannysmith@users.sourceforge.net>

	* pe-dll.c (pe_dll_generate_implib): Skip sections marked as
	private when building implib.


Index: src/ld/pe-dll.c
===================================================================
RCS file: /cvs/src/src/ld/pe-dll.c,v
retrieving revision 1.67
diff -c -3 -p -r1.67 pe-dll.c
*** src/ld/pe-dll.c	25 Feb 2004 21:00:32 -0000	1.67
--- src/ld/pe-dll.c	7 Mar 2004 19:40:53 -0000
*************** pe_dll_generate_implib (def_file *def, c
*** 2257,2262 ****
--- 2257,2265 ----
        char *internal = def->exports[i].internal_name;
        bfd *n;
  
+        /* Don't add PRIVATE entries to import lib.  */ 	
+       if (pe_def_file->exports[i].flag_private)
+ 	continue;
        def->exports[i].internal_name = def->exports[i].name;
        n = make_one (def->exports + i, outarch);
        n->next = head;

Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]