llvm-project/lld/test/COFF/arm-thumb-thunks-pdb.s
Martin Storsjo b2b0cab0c3 [COFF] Fix crashes when writing a PDB after adding thunks.
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
2019-02-01 22:08:03 +00:00

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