summaryrefslogtreecommitdiffstats
path: root/lld/test/elf/x86-64-dynamic-relocs.test
blob: 325693e3f71422c45d76a9b3571be2bbb407b382 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
RUN: lld -flavor 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:       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
OpenPOWER on IntegriCloud