mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
a51acc7631
Prevent the early elimination of sections in the object writer. There may be references to the section itself by other symbols, which may potentially not be possible to resolve. ML (Visual Studio's Macro Assembler) also seems to retain empty sections. The elimination of symbols and sections which are unused should really occur at the link phase. This will not cause any change in the resulting binary, simply in the generated object files. The adjustments to the other unit tests account for the fluctuating section index caused by the appearance of sections which were previously discarded. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210373 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
255 B
ArmAsm
17 lines
255 B
ArmAsm
# RUN: llvm-mc -triple i686-windows -g -filetype obj -o - %s \
|
|
# RUN: | llvm-readobj -s -t | FileCheck %s
|
|
|
|
.section .rdata
|
|
|
|
.align 8
|
|
.global data
|
|
data:
|
|
.quad 0
|
|
|
|
# CHECK: Sections [
|
|
# CHECK: Section {
|
|
# CHECK: Name: .text
|
|
# CHECK: }
|
|
# CHECK: ]
|
|
|