Bug 477 - /ld: BFD 2.15.90.0.1.1 20040303 (SuSE Linux) internal error, aborting at ../../bfd/reloc.c line 4274 in bfd_generic_get_relocated_section_contents
Summary: /ld: BFD 2.15.90.0.1.1 20040303 (SuSE Linux) internal error, aborting at ../....
Status: RESOLVED WORKSFORME
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.15
: P2 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-26 21:30 UTC by Ivan Skytte Jørgensen
Modified: 2004-12-07 04:06 UTC (History)
1 user (show)

See Also:
Host: x86_64-unknown-linux-gnu
Target: x86_64-unknown-linux-gnu
Build: x86_64-unknown-linux-gnu
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Skytte Jørgensen 2004-10-26 21:30:15 UTC
When linking a x86_64 executable and accidentally linking in 32-bit x86 object
files ld encounters an internal error:

/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin/ld:
warning: i386 architecture of input file `../idh/idh.o' is incompatible with
i386:x86-64 output
...snip...
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin/ld:
BFD 2.15.90.0.1.1 20040303 (SuSE Linux) internal 
error, aborting at ../../bfd/reloc.c line 4274 in
bfd_generic_get_relocated_section_contents

/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin/ld:
Please report this bug.

The 32-bit object files were produced using bfd-2.11.90.0.8 / GCC 2.95.3
Comment 1 Ben Elliston 2004-12-06 05:06:56 UTC
Hi,

I've tried to reproduce the bug, but am unable to without the object files
you're trying to link.

Can you please try linking these objects using the binutils from CVS?  If that
fails, then we can look more closely -- in which case, it would be helpful if
you could upload into Bugzilla the object files you're trying to link.  Thanks!
Comment 2 Ivan Skytte Jørgensen 2004-12-06 21:39:58 UTC
The internal error does not occur with binutils from CVS 2004-12-06. I can
upload the object files if anyone is interested.
Comment 3 Ben Elliston 2004-12-07 04:06:12 UTC
Thanks, but if it's working with CVS binutils, I think we'll just close the PR.