Red Hat Bugzilla – Bug 153676
libbfd.a has bugs, libbfd.so works
Last modified: 2007-11-30 17:11:03 EST
Description of problem: Static version of libbfd is broken (libbfd.so is good
Version-Release number of selected component (if applicable): Part of
Write a test program to call bfd_fdopenr() on a FILE (exe, lib, etc).
Steps to Reproduce:
1. Link test program w/ libbfd.a
2. Run program
Examine the bfd pointer returned from this call. Among many other things, the
bfd->name value is null, bfd->next is null, flags are null.
bfd->name should point to the first section of the FILE as reported by objdump
bfd->sections should not be null.
bfd->flags should not be zero
-OR- Statically link objdump w/ libbfd.a; it should break.
Created attachment 112688 [details]
Can't reproduce with binutils-188.8.131.52.2-5.