brintos

brintos / llvm-project-archived public Read only

0
0
Text · 528 B · 0e7c908 Raw
19 lines · plain
1# REQUIRES: x862# RUN: echo 'nop; .data; nop' | llvm-mc -filetype=obj -triple=x86_64 - -o %t.o3# RUN: ld.lld -o %t.so --script %s %t.o4# RUN: llvm-readelf -S %t.so | FileCheck %s5 6# CHECK:      [ 1] .text PROGBITS 0000000000042000 001000 0000017# CHECK-NEXT: [ 2] .data PROGBITS 0000000000042001 001001 0000018 9## Test that assigning to Dot does not change the position in a memory region.10 11MEMORY {12  ram (wxa) : ORIGIN = 0x42000, LENGTH = 0x10000013}14SECTIONS {15  .text : { *(.text*) }16  . += 0x2000;17  .data : { *(.data*) }18}19