blob: c5572d0aa3a35797c2acf45b7ded9dfd832f5dc7 [file] [log] [blame]
RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/relocs-dynamic.x86-64 \
RUN: --output-filetype=yaml --noinhibit-exec | FileCheck %s
path: <linker-internal>
defined-atoms:
- name: main
scope: global
content: [ E8, 00, 00, 00, 00, C3 ]
alignment: 16
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 16
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