This is the mail archive of the binutils@sourceware.cygnus.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]

dlltool import library build optimization


When building large DLLs, especially C++ ones, dlltool can take
inordinately long time to and take the file system to its knees
while it's creating those thousands of small files, one per
symbol. For those who actually have to use a native windows
machine, this can make it almost impossible to use dlltool to
create import libraries with say 10k symbols thanks to all the
files it needs to create first.

I know zilch about bfd backend, so perhaps someone can help me
here. Is there anyway we can bunch up say 100 symbols, create
the archive, and move to the next? The current scheme uses
the following technique:

  
  open a new bfd for writing (output_bfd)
  
  make head bfd
  make tail bfd

  for each exports
    make a new bfd and add it to the chain
  done

  Reorganize the chain of bfd's

  set the output_bfd archive head to the created chain

  close output_bfd


Is there a way for creating the output bfd a few at a time? Would
bfd_openw kill the current contents and start from scratch?

Regards,
Mumit



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