• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: yaml2obj %s -o %t.o
2# RUN: not ld.lld --icf=all %t.o -o /dev/null 2>&1 | FileCheck %s
3# CHECK: .eh_frame: relocation is not in any piece
4
5!ELF
6FileHeader:
7  Class:           ELFCLASS64
8  Data:            ELFDATA2LSB
9  OSABI:           ELFOSABI_FREEBSD
10  Type:            ET_REL
11  Machine:         EM_X86_64
12Sections:
13  - Name:            .eh_frame
14    Type:            SHT_PROGBITS
15    Flags:           [ SHF_ALLOC]
16    Content:         "1400000000000000017a5200017810011b0c070890010000140000001c00000000000000000000000000000000000000"
17  - Name:            .rela.eh_frame
18    Type:            SHT_RELA
19    Link:            .symtab
20    Info:            .eh_frame
21    Relocations:
22      - Offset:          0x99999999
23        Symbol:          zed
24        Type:            R_X86_64_64
25Symbols:
26  - Name:     zed
27    Type:     STT_FUNC
28    Section:  .eh_frame
29    Value:    0x0
30    Size:     8
31    Binding:  STB_GLOBAL
32