File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
lld/test/ELF/linkerscript Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Mocks a vtable object weak def in the C++ stdlib.
2
- .data .rel.ro
2
+ .section . data .rel.ro, "aw"
3
3
.weak bar
4
4
.type bar, %object
5
5
bar:
Original file line number Diff line number Diff line change 1
1
# REQUIRES: x86
2
- # RUN: echo '.globl _start; _start: ret; .data.rel.ro; .balign 16; .byte 0; \
2
+ # RUN: echo '.globl _start; _start: ret; .section . data.rel.ro,"aw" ; .balign 16; .byte 0; \
3
3
# RUN: .data; .balign 32; .byte 0; .bss; .byte 0' | \
4
4
# RUN: llvm-mc -filetype=obj -triple=x86_64 - -o %t.o
5
5
# RUN: ld.lld -T %s %t.o -o %t 2>&1 | FileCheck --check-prefix=WARN %s --implicit-check-not=warning:
Original file line number Diff line number Diff line change 2
2
## Test ALIGN when specifying the output section address.
3
3
4
4
# RUN: echo '.globl _start; _start: ret; \
5
- # RUN: .data.rel.ro; .balign 8; .byte 0; \
5
+ # RUN: .section . data.rel.ro,"aw" ; .balign 8; .byte 0; \
6
6
# RUN: .data; .byte 0; \
7
7
# RUN: .bss; .balign 32; .byte 0' | \
8
8
# RUN: llvm-mc -filetype=obj -triple=x86_64 - -o %t.o
Original file line number Diff line number Diff line change 1
1
# REQUIRES: aarch64
2
2
## Test ALIGN and its interaction with explicit output section addresses.
3
3
4
- # RUN: echo '.globl _start; _start: ret; .data.rel.ro; .balign 8; .byte 0; .data; .byte 0; \
4
+ # RUN: echo '.globl _start; _start: ret; .section . data.rel.ro,"aw" ; .balign 8; .byte 0; .data; .byte 0; \
5
5
# RUN: .section .data2,"aw"; .balign 8; .byte 0; \
6
6
# RUN: .section .data3,"aw"; .balign 32; .byte 0; \
7
7
# RUN: .bss; .balign 32; .byte 0' | \
You can’t perform that action at this time.
0 commit comments