Bug 12321 - Useless `error in <object>; no .eh_frame_hdr table will be created' message
Summary: Useless `error in <object>; no .eh_frame_hdr table will be created' message
Status: NEW
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.21
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-14 19:08 UTC by Rainer Orth
Modified: 2010-12-14 19:08 UTC (History)
0 users

See Also:
Host: i386-pc-solaris2.*
Target: i386-pc-solaris2.*
Build: i386-pc-solaris2.*
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Orth 2010-12-14 19:08:32 UTC
When bootstrapping GCC mainline on Solaris 8 and 9/x86 with gas and gld, I came
across the error message

/usr/sfw/bin/gld: error in /var/tmp//cctJaGJm.o(.eh_frame); no .eh_frame_hdr table will be created.

Unfortunately, this message is completely useless as is since there is no
indication whatsoever where the error lies.  Unless you can figure this out
with the help of readelf or elfdump, you'll have to build binutils with
debugging information and run ld under a debugger to find what's wrong.

In this case, it turned out to be another instance of a known problem (EH data
after a ZERO terminator), but the message should be much more specific to ease
the investigation.