You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
480 B
22 lines
480 B
7 months ago
|
# REQUIRES: x86
|
||
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
||
|
|
||
|
# RUN: echo "SECTIONS { \
|
||
|
# RUN: . = SIZEOF_HEADERS; \
|
||
|
# RUN: .rodata : { *(.aaa) *(.bbb) A = .; *(.ccc) B = .; } \
|
||
|
# RUN: }" > %t.script
|
||
|
# RUN: ld.lld -o %t.so --script %t.script %t.o -shared
|
||
|
# RUN: llvm-nm -D %t.so | FileCheck %s
|
||
|
|
||
|
# CHECK: 000000000000025e R A
|
||
|
# CHECK: 000000000000025f R B
|
||
|
|
||
|
.section .aaa,"a"
|
||
|
.byte 11
|
||
|
|
||
|
.section .bbb,"aMS",@progbits,1
|
||
|
.asciz "foo"
|
||
|
|
||
|
.section .ccc,"a"
|
||
|
.byte 33
|