[cfe-dev] Why clang creates ELF section group with only one section in it?

Dmitri Shubin sbn at tbricks.com
Wed May 16 02:06:26 PDT 2012

On 15.05.2012 23:00, Rafael EspĂ­ndola wrote:
> Good point. We can probably move it there (assuming gold and gnu ld 
> are OK with it). Would you mind opening a bug about just this bit? 

Created http://llvm.org/bugs/show_bug.cgi?id=12843

> OK, I understand this too now. It looks like the problem is coming
> from the relocations for "FDE initial location". They are easy to see
> with
> $ clang -S  a.cpp -fno-dwarf2-cfi-asm
> We have something like
> _Z3bazv:                                # @_Z3bazv
> .Ltmp2:
> 	.long	.Ltmp2                  # FDE initial location
> It would probably be OK to use the symbol directly. Would that fix the
> link for you?

Yes, after changing .LtmpXX label to function name in 'FDE initial 
location' I was able to link fine using both old and new Solaris linkers.
Should I open another case for this?

Thank you!

More information about the cfe-dev mailing list