public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Re: binutils-20000625 ld.exe --shared broken
@ 2000-07-07 10:16 Nick Clifton
  2000-07-07 10:31 ` DJ Delorie
  0 siblings, 1 reply; 8+ messages in thread
From: Nick Clifton @ 2000-07-07 10:16 UTC (permalink / raw)
  To: dj; +Cc: cwilson, binutils

Hi Guys,

: No, I think that code is right.  Normally, when an archive is created,
: the member BFDs are read from disk, and written to the archive's disk
: file.  Thus, they must be in read mode to be read from the disk.  I
: don't think this test is testing the writability of the archive
: members, because it hasn't created them yet.  So, I think the right
: thing to do is make sure that pe_dll_generate_implib switches all the
: member bfds it creates from write mode (when it creates them) to read
: mode (so it can store them in the archive).

I agree with DJ, although I must confess I had to read the explanation
and look through the code a couple of times before understanding what
is going on.

I belive that the [not writable] test in _bfd_write_archive_contents()
is there because up until this point none of the archive contents
should have been written out, so there should be no reason for the
archive memeber to have the writeable attribute.  (Adding a comment to
this effect in the code would be a good idea).

Cheers
	Nick

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2000-07-12 11:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <396547F2.333FBD51@ece.gatech.edu>
     [not found] ` <200007070300.XAA08402@envy.delorie.com>
     [not found]   ` <396574C7.924FADB6@ece.gatech.edu>
2000-07-07  6:39     ` binutils-20000625 ld.exe --shared broken DJ Delorie
2000-07-07  8:55       ` Charles Wilson
2000-07-07 10:16 Nick Clifton
2000-07-07 10:31 ` DJ Delorie
2000-07-07 11:24   ` Charles Wilson
2000-07-07 12:00     ` DJ Delorie
2000-07-07 21:06       ` Charles Wilson
2000-07-12 11:30         ` DJ Delorie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).