brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 02ef238 Raw
35 lines · plain
1# REQUIRES: x862 3# RUN: yaml2obj %s -o %t.o4# RUN: ld.lld %t.o -o /dev/null --entry 0 2>&1 | FileCheck %s5# CHECK: warning: {{.*}}:(.debug_info+0x41f): has non-ABS relocation R_386_GOTPC against symbol '_GLOBAL_OFFSET_TABLE_'6 7## This is for https://bugs.llvm.org//show_bug.cgi?id=34852. GCC 8.0 or8## earlier have a bug which creates non-absolute R_386_GOTPC relocations9## in non-allocated sections. It is illegal, but we want to make sure that10## lld skips them instead of reporting errors.11 12--- !ELF13FileHeader:14  Class:           ELFCLASS3215  Data:            ELFDATA2LSB16  Type:            ET_REL17  Machine:         EM_38618Sections:19  - Name:            .debug_info20    Type:            SHT_PROGBITS21    AddressAlign:    0x000000000000000122    Content:         000000000000000023  - Name:            .rel.debug_info24    Type:            SHT_REL25    Link:            .symtab26    AddressAlign:    0x000000000000000427    Info:            .debug_info28    Relocations:29      - Offset:          0x000000000000041F30        Symbol:          _GLOBAL_OFFSET_TABLE_31        Type:            R_386_GOTPC32Symbols:33  - Name:            _GLOBAL_OFFSET_TABLE_34    Binding:         STB_GLOBAL35