Skip to content

crash with --gc-sections #28949

@llvmbot

Description

@llvmbot
Bugzilla Link 28575
Resolution FIXED
Resolved on Jan 24, 2017 10:14
Version unspecified
OS Linux
Reporter LLVM Bugzilla Contributor
CC @compnerd,@emaste

Extended Description

lld crashes trying to link the following test when --gc-sections is used

.globl	_start

_start:
.cfi_startproc
.cfi_personality 3, foobar
.cfi_endproc
.section .foobar,"ax"
foobar:

The problem is that we fail to mark .foobar live. When looking at .eh_frame section we don't want to mark live the section whose address range is being described, but we do have to mark like sections that are used for the exception handling personality of any cie we keep.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions