hanchenye-llvm-project/lld/test/elf/x86-64-dynamic-relocs.test

27 lines
795 B
Plaintext

RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/relocs-dynamic.x86-64 \
RUN: -emit-yaml --noinhibit-exec | FileCheck %s
path: <linker-internal>
defined-atoms:
- name: main
scope: global
content: [ E8, 00, 00, 00, 00, C3 ]
alignment: 2^4
section-choice: custom-required
section-name: .text
references:
- kind: R_X86_64_PLT32
offset: 1
target: foo
addend: -4
- name: foo
scope: global
content: [ C3 ]
alignment: 6 mod 2^4
section-choice: custom-required
section-name: .text
# Don't generate a PLT/GOT entry for a PLT32 relocation to a non-shared symbol.
CHECK-NOT: got
CHECK-NOT: stub