mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 16:06:40 +00:00

When writing a PDB, the OutputSection of all chunks need to be set. The thunks are added directly to OutputSection after the normal machinery that sets it for all other chunks. This fixes part of PR40467. Differential Revision: https://reviews.llvm.org/D57574 llvm-svn: 352928
19 lines
471 B
ArmAsm
19 lines
471 B
ArmAsm
// REQUIRES: arm
|
|
// RUN: llvm-mc -filetype=obj -triple=thumbv7-windows %s -o %t.obj
|
|
// RUN: lld-link -entry:main -subsystem:console %t.obj -out:%t.exe -debug -pdb:%t.pdb -verbose 2>&1 | FileCheck %s --check-prefix=VERBOSE
|
|
|
|
// VERBOSE: Added 1 thunks with margin {{.*}} in {{.*}} passes
|
|
|
|
.syntax unified
|
|
.globl main
|
|
.globl func1
|
|
.text
|
|
main:
|
|
bne func1
|
|
bx lr
|
|
.section .text$a, "xr"
|
|
.space 0x100000
|
|
.section .text$b, "xr"
|
|
func1:
|
|
bx lr
|