Re: ld: error no .eh_frame_hdr table will be created.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ian,

Thanks for the explanation of the error. Now just want understand the
debugging process on how I can fix this issue. Following is some more
information:

- libx.o is compiled by the current version of gcc (4.3.2) 
- If the above object is removed from the build, I no longer see the
eh_frame error.
- Is there any C++ implementation problem, that would cause an issue in the
object?
- Note that all objects use the same compiler but only inclusion of certain
objects cause this error.

Please let me know if there is any other information I can provide to better
help diagnose the cause of this error.

Thanks again



Ian Lance Taylor-3 wrote:
> 
> LinuxUser9 <bvrit_abc@xxxxxxxxx> writes:
> 
>> Following is the error I am getting at the end of my build/compilation
>> and in
>> general the functionality is ok but I am not sure the cause of this
>> error.
>> Following is my compilation env:
>>
>> GNU Binary Utilities 	 2.18.50-sg++
>> GNU C & C++ Compilers  4.3.2-sg++
>> GNU C Library 	         2.8-sg++ 
>>
>> /mips-linux-gnu-g++ -o <App> <SeveralObject> -L<Path to Library>
>> -l<libraries>
>> mips-4.3/bin/../lib/gcc/mips-linux-gnu/4.3.2/../../../../mips-linux-gnu/bin/ld:
>> error in bin/libx.o(.eh_frame); no .eh_frame_hdr table will be created.
>>
>> There are several objects and they are partially linked
>> (mips-linux-gnu-ld
>> -r -o FinalObject <IndvidualObjects>). 
>> This only happens if there are C++ objects. Can you please comment on why
>> I
>> am getting the above indicated error? Any pointers are appreciated!
> 
> Presumably bin/libx.o was not compiled by a current version of gcc.
> This error means that the linker did not understanding something in the
> exception frame information.  gcc has asked the linker to create an
> exception frame header, but, because there is something wrong, the
> exception frame header will not be created.
> 
> I think everything will still work more or less correctly.  The effect
> is that throwing an exception will take longer at runtime.
> 
> You can dump the exception frame information using readelf
> --debug=frames.
> 
> Ian
> 
> 

-- 
View this message in context: http://www.nabble.com/ld%3A-error-no-.eh_frame_hdr-table-will-be-created.-tp23105607p23106711.html
Sent from the gcc - Help mailing list archive at Nabble.com.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux