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.
17 lines
548 B
17 lines
548 B
7 months ago
|
# REQUIRES: x86
|
||
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/merge-sections-reloc.s -o %t1.o
|
||
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t2.o
|
||
|
# RUN: echo "SECTIONS {}" > %t.script
|
||
|
# RUN: ld.lld -o %t --script %t.script %t1.o %t2.o
|
||
|
# RUN: llvm-objdump -s %t | FileCheck %s
|
||
|
|
||
|
## Check that sections content is not corrupted.
|
||
|
# CHECK: Contents of section .text:
|
||
|
# CHECK-NEXT: 44332211 00000000 44332211 00000000
|
||
|
# CHECK-NEXT: f0ffffff ffffffff
|
||
|
|
||
|
.globl _start
|
||
|
_foo:
|
||
|
.quad 0x11223344
|
||
|
.quad _start - .
|