Bug 153676 - libbfd.a has bugs, libbfd.so works
libbfd.a has bugs, libbfd.so works
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: binutils (Show other bugs)
2
i686 Linux
medium Severity high
: ---
: ---
Assigned To: Jakub Jelinek
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-04 17:37 EDT by aaron scamehorn
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-04-05 06:43:27 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Test program (1.76 KB, text/plain)
2005-04-04 17:37 EDT, aaron scamehorn
no flags Details

  None (edit)
Description aaron scamehorn 2005-04-04 17:37:57 EDT
Description of problem:  Static version of libbfd is broken (libbfd.so is good
however).


Version-Release number of selected component (if applicable): Part of
binutils-2.15.90.0.3-5


How reproducible:
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
3.
  
Actual results:
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. 

Expected results:
bfd->name should point to the first section of the FILE as reported by objdump
-h FILE.
bfd->sections should not be null.
bfd->flags should not be zero


Additional info:
-OR- Statically link objdump w/ libbfd.a; it should break.
Comment 1 aaron scamehorn 2005-04-04 17:37:57 EDT
Created attachment 112688 [details]
Test program
Comment 2 Jakub Jelinek 2005-04-05 06:43:27 EDT
Can't reproduce with binutils-2.15.92.0.2-5.

Note You need to log in before you can comment on or make changes to this bug.