Project

General

Profile

Actions

Bug #5270

closed

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

Added by Alexander Eremin over 8 years ago. Updated over 8 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:
External Bug:

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)

Actions #1

Updated by Alexander Eremin over 8 years ago

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

Updated by Alexander Eremin over 8 years ago

  • Assignee set to Alexander Eremin
Actions #3

Updated by Alexander Eremin over 8 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.

Actions #4

Updated by Alexander Eremin over 8 years ago

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

Updated by Electric Monk over 8 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>

Actions

Also available in: Atom PDF