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 11# Mocks a vtable object weak def in the C++ stdlib.
2- .data .rel.ro
2+ .section . data .rel.ro, "aw"
33 .weak bar
44 .type bar, %object
55bar:
Original file line number Diff line number Diff line change 11# 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; \
33# RUN: .data; .balign 32; .byte 0; .bss; .byte 0' | \
44# RUN: llvm-mc -filetype=obj -triple=x86_64 - -o %t.o
55# 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 22## Test ALIGN when specifying the output section address.
33
44# 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; \
66# RUN: .data; .byte 0; \
77# RUN: .bss; .balign 32; .byte 0' | \
88# RUN: llvm-mc -filetype=obj -triple=x86_64 - -o %t.o
Original file line number Diff line number Diff line change 11# REQUIRES: aarch64
22## Test ALIGN and its interaction with explicit output section addresses.
33
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; \
55# RUN: .section .data2,"aw"; .balign 8; .byte 0; \
66# RUN: .section .data3,"aw"; .balign 32; .byte 0; \
77# RUN: .bss; .balign 32; .byte 0' | \
You can’t perform that action at this time.
0 commit comments