[lld] r193662 - [ELF] Implement minimal support for .eh_frame_hdr.

Shankar Easwaran shankare at codeaurora.org
Wed Oct 30 09:10:21 PDT 2013


On 10/30/2013 7:07 AM, Joerg Sonnenberger wrote:
> On Tue, Oct 29, 2013 at 07:50:03PM -0500, Shankar Easwaran wrote:
>> I think generation of the eh_frame_hdr is decided by --eh-frame-hdr
>> flag isnt it ?
>>
>> And GNU_EH_FRAME segment is only relevant when you are only using
>> GNU tools ?
> I think it should be enabled for all ELF platforms by default.
Solaris ELF doesnot have it :(

C++
------
$CC 1.cpp
$file a.out
a.out:          ELF 32-bit LSB executable 80386 Version 1 [FPU], 
dynamically linked, not stripped
$elfdump -c a.out | grep eh

C
---
$cc 1.c
"1.c", line 2: warning: implicit function declaration: printf
$file a.out
a.out:          ELF 32-bit LSB executable 80386 Version 1 [FPU], 
dynamically linked, not stripped
$elfdump -c a.out | grep eh

Thanks

Shankar Easwaran

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation




More information about the llvm-commits mailing list