Seeking from the end of the file in the bfd library

Ian Lance Taylor
Wed Feb 23 08:21:00 GMT 2000

   Date: Wed, 23 Feb 2000 12:12:35 +0000 (GMT)
   From: David Welch <>

   I'm working on adding support to gdb for debugging executables produced by
   the Oxford Oberon compiler. The executable format generated by this
   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? I'm not interested in supporting this executable format
   embedded in archives.

The workaround is to use bfd_stat to determine the size of the file,
and compute from there.

bfd_stat doesn't work for archive elements either.  But I think we
could make it work if we wanted too.


More information about the Binutils mailing list