2015-10-07 23:00:21 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
|
2015-11-18 14:11:01 +08:00
|
|
|
# RUN: ld.lld -shared %t -o %t.so
|
2017-03-23 08:54:16 +08:00
|
|
|
# RUN: ld.lld -z now -z nodelete -z nodlopen -z origin -Bsymbolic %t %t.so -o %t1
|
2015-11-18 14:11:01 +08:00
|
|
|
# RUN: ld.lld %t %t.so -o %t2
|
2015-10-14 05:02:34 +08:00
|
|
|
# RUN: llvm-readobj -dynamic-table %t1 | FileCheck -check-prefix=FLAGS %s
|
2015-10-07 23:00:21 +08:00
|
|
|
# RUN: llvm-readobj -dynamic-table %t2 | FileCheck %s
|
|
|
|
|
2015-10-14 05:02:34 +08:00
|
|
|
# FLAGS: DynamicSection [
|
2015-10-22 01:09:47 +08:00
|
|
|
# FLAGS: 0x000000000000001E FLAGS ORIGIN SYMBOLIC BIND_NOW
|
2017-03-23 08:54:16 +08:00
|
|
|
# FLAGS: 0x000000006FFFFFFB FLAGS_1 NOW NODELETE NOOPEN ORIGIN
|
2015-10-14 05:02:34 +08:00
|
|
|
# FLAGS: ]
|
2015-10-07 23:00:21 +08:00
|
|
|
|
|
|
|
# CHECK: DynamicSection [
|
2015-10-22 01:09:47 +08:00
|
|
|
# CHECK-NOT: 0x000000000000001E FLAGS ORIGIN SYMBOLIC BIND_NOW
|
2017-03-23 08:54:16 +08:00
|
|
|
# CHECK-NOT: 0x000000006FFFFFFB FLAGS_1 NOW NODELETE NOOPEN ORIGIN
|
2015-10-07 23:00:21 +08:00
|
|
|
# CHECK: ]
|
|
|
|
|
|
|
|
.globl _start
|
|
|
|
_start:
|