[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/996] Linking requires one open file per object file
From: |
mark at codesourcery dot com |
Subject: |
[Bug ld/996] Linking requires one open file per object file |
Date: |
8 Jun 2005 22:38:33 -0000 |
------- Additional Comments From mark at codesourcery dot com 2005-06-08 22:38
-------
Subject: Re: Linking requires one open file per object file
mark at codesourcery dot com wrote:
> ------- Additional Comments From mark at codesourcery dot com 2005-06-08
> 22:01 -------
> I'm not sure why you're seeing, but it is indeed very plausible that it's my
> fault.
The following patch should fix the problem.
Would you please confirm that it works for you?
Index: opncls.c
===================================================================
RCS file: /cvs/src/src/bfd/opncls.c,v
retrieving revision 1.37
diff -c -5 -p -r1.37 opncls.c
*** opncls.c 8 Jun 2005 03:51:32 -0000 1.37
--- opncls.c 8 Jun 2005 22:35:41 -0000
*************** DESCRIPTION
*** 222,232 ****
*/
bfd *
bfd_openr (const char *filename, const char *target)
{
! return bfd_fopen (filename, target, FOPEN_RB, -1);
}
/* Don't try to `optimize' this function:
o - We lock using stack space so that interrupting the locking
--- 222,236 ----
*/
bfd *
bfd_openr (const char *filename, const char *target)
{
! bfd *nbfd;
! nbfd = bfd_fopen (filename, target, FOPEN_RB, -1);
! if (nbfd)
! bfd_set_cacheable (nbfd, TRUE);
! return nbfd;
}
/* Don't try to `optimize' this function:
o - We lock using stack space so that interrupting the locking
--
http://sources.redhat.com/bugzilla/show_bug.cgi?id=996
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug ld/996] New: Linking requires one open file per object file, jepler at sds2 dot com, 2005/06/08
- [Bug ld/996] Linking requires one open file per object file, jepler at sds2 dot com, 2005/06/08
- [Bug ld/996] Linking requires one open file per object file, mark at codesourcery dot com, 2005/06/08
- [Bug ld/996] Linking requires one open file per object file, mark at codesourcery dot com, 2005/06/08
- [Bug ld/996] Linking requires one open file per object file,
mark at codesourcery dot com <=
- [Bug ld/996] Linking requires one open file per object file, mark at codesourcery dot com, 2005/06/09
- [Bug ld/996] Linking requires one open file per object file, jepler at sds2 dot com, 2005/06/09