mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 01:16:05 +00:00

The symbols _end, end, _etext, etext, _edata, edata and __ehdr_start refer to positions in the file and are therefore not absolute. Making them absolute was on unfortunate cargo cult of what bfd was doing. Changing the symbols allows for pc relocations to them to be resolved, which should fix the wine build. llvm-svn: 293385
12 lines
235 B
ArmAsm
12 lines
235 B
ArmAsm
# REQUIRES: x86
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
|
# RUN: ld.lld %t.o -o %t -pie
|
|
# RUN: llvm-readobj -r %t | FileCheck %s
|
|
|
|
# CHECK: Relocations [
|
|
# CHECK-NEXT: ]
|
|
|
|
.global _start
|
|
_start:
|
|
.long _end - .
|