Project

General

Profile

Bug #5270

ld(1) cannot handle CIE version 3 in .eh_frame

Added by Alexander Eremin almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Start date:
2014-10-28
Due date:
2014-11-06
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

clang++ -o /tmp/hello /tmp/hello.cpp
ld: fatal: unwind table: file /var/tmp/hello-53a3b5.o: section .eh_frame: bad cie version 0: offset 0xfffffd7fffdff908

clang: error: linker command failed with exit code 1 (use -v to see invocation)

History

#1

Updated by Alexander Eremin almost 6 years ago

  • Subject changed from ld to ld(1) cannot handle CIE version 3 in .eh_frame
#2

Updated by Alexander Eremin almost 6 years ago

  • Assignee set to Alexander Eremin
#3

Updated by Alexander Eremin almost 6 years ago

Dwarf 3 and 2 has one difference for CIE: return address field is unassigned leb128 in version 3, instead of byte in version 2: http://src.illumos.org/source/xref/illumos-gate/usr/src/cmd/sgs/libld/common/unwind.c#170

CIE version in dwarf 2 is 1, in dwarf 3 is 3.

#4

Updated by Alexander Eremin almost 6 years ago

  • Due date set to 2014-11-06
  • Status changed from New to Pending RTI
  • % Done changed from 0 to 100
#5

Updated by Electric Monk almost 6 years ago

  • Status changed from Pending RTI to Closed

git commit cffcfaee1e6b29ef9ceb7d80e4e053ffd029906b

commit  cffcfaee1e6b29ef9ceb7d80e4e053ffd029906b
Author: Alexander Eremin <a.eremin@nexenta.com>
Date:   2014-11-06T16:18:33.000Z

    5270 ld(1) cannot handle CIE version 3 in .eh_frame
    Reviewed by: Richard Lowe <richlowe@richlowe.net>
    Reviewed by: Richard PALO <richard@netbsd.org>
    Approved by: Dan McDonald <danmcd@omniti.com>

Also available in: Atom PDF