This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: Seeking from the end of the file in the bfd library
- To: David Welch <david dot welch at st-edmund-hall dot oxford dot ac dot uk>
- Subject: Re: Seeking from the end of the file in the bfd library
- From: Alan Modra <alan at SPRI dot Levels dot UniSA dot Edu dot Au>
- Date: Wed, 23 Feb 2000 22:49:43 +1030 (CST)
- cc: binutils at sourceware dot cygnus dot com
On Wed, 23 Feb 2000, David Welch wrote:
> compiler has the header at the end of the file. But in the version of the
> bfd library included with gdb 4.18, seeking from the end of the file isn't
> supported. Is this restriction relaxed in later versions or are there any
> workarounds?
Current CVS has
/* For the time being, a BFD may not seek to it's end. The problem
is that we don't easily have a way to recognize the end of an
element in an archive. */
BFD_ASSERT (direction == SEEK_SET || direction == SEEK_CUR);