Skip to content

Commit 74638f1

Browse files
committed
[test] Replace .data.rel.ro with .section .data.rel.ro,"aw"
to avoid using the extension unsupported by gas.
1 parent 1b1dc50 commit 74638f1

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

bolt/test/X86/Inputs/define_bar.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
55
bar:

lld/test/ELF/linkerscript/lma-align.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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:

lld/test/ELF/linkerscript/section-address-align.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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

lld/test/ELF/linkerscript/section-align2.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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' | \

0 commit comments

Comments
 (0)