• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3
4# RUN: ld.lld --hash-style both -shared -o %t1 %t
5# RUN: llvm-objdump --section-headers %t1 | FileCheck %s
6# CHECK: .gnu.hash
7# CHECK: .hash
8
9# RUN: echo "SECTIONS { /DISCARD/ : { *(.hash) } }" > %t.script
10# RUN: ld.lld --hash-style both -shared -o %t1 --script %t.script %t
11# RUN: llvm-objdump --section-headers %t1 \
12# RUN:   | FileCheck %s --check-prefix=HASH
13# HASH-NOT: .hash
14# HASH:     .gnu.hash
15# HASH-NOT: .hash
16
17# RUN: echo "SECTIONS { /DISCARD/ : { *(.gnu.hash) } }" > %t.script
18# RUN: ld.lld --hash-style both -shared -o %t1 --script %t.script %t
19# RUN: llvm-objdump --section-headers %t1 \
20# RUN:   | FileCheck %s --check-prefix=GNUHASH
21# GNUHASH-NOT: .gnu.hash
22# GNUHASH:     .hash
23# GNUHASH-NOT: .gnu.hash
24