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
|
2018-04-21 05:24:08 +08:00
|
|
|
|
2018-11-27 17:48:17 +08:00
|
|
|
# RUN: ld.lld -z global -z initfirst -z interpose -z now -z nodefaultlib \
|
|
|
|
# RUN: -z nodelete -z nodlopen -z origin -Bsymbolic %t %t.so -o %t1
|
2019-05-01 13:49:01 +08:00
|
|
|
# RUN: llvm-readobj --dynamic-table %t1 | FileCheck -check-prefix=FLAGS %s
|
2018-04-21 05:24:08 +08:00
|
|
|
|
|
|
|
# RUN: ld.lld %t %t.so -o %t2
|
2019-05-01 13:49:01 +08:00
|
|
|
# RUN: llvm-readobj --dynamic-table %t2 | FileCheck %s
|
2018-04-21 05:24:08 +08:00
|
|
|
|
|
|
|
# RUN: ld.lld -z lazy %t %t.so -o %t2
|
2019-05-01 13:49:01 +08:00
|
|
|
# RUN: llvm-readobj --dynamic-table %t2 | FileCheck %s
|
2015-10-07 23:00:21 +08:00
|
|
|
|
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
|
2018-11-27 17:48:17 +08:00
|
|
|
# FLAGS: 0x000000006FFFFFFB FLAGS_1 NOW GLOBAL NODELETE INITFIRST NOOPEN ORIGIN INTERPOSE NODEFLIB
|
2015-10-14 05:02:34 +08:00
|
|
|
# FLAGS: ]
|
2015-10-07 23:00:21 +08:00
|
|
|
|
|
|
|
# CHECK: DynamicSection [
|
2018-06-20 10:06:01 +08:00
|
|
|
# CHECK-NOT: FLAGS
|
|
|
|
# CHECK-NOT: FLAGS_1
|
2015-10-07 23:00:21 +08:00
|
|
|
# CHECK: ]
|
|
|
|
|
|
|
|
.globl _start
|
|
|
|
_start:
|