File: assoc-private.s

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (26 lines) | stat: -rw-r--r-- 1,028 bytes parent folder | download | duplicates (25)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# RUN: llvm-mc -triple x86_64-pc-win32 -filetype=obj %s | llvm-objdump - -h -t | FileCheck %s

# PR38607: We assemble this, and make .CRT$XCU comdat with .rdata even though
# .rdata isn't comdat. It's not clear what the semantics are, but we assemble
# it anyway.

# CHECK: Sections:
# CHECK: Idx Name          Size     VMA              Type
# CHECK:   3 .rdata        00000004 0000000000000000 DATA
# CHECK:   4 .CRT$XCU      00000008 0000000000000000 DATA
# CHECK: SYMBOL TABLE:
# CHECK: [ 6](sec  4)(fl 0x00)(ty   0)(scl   3) (nx 1) 0x00000000 .rdata
# CHECK: AUX scnlen 0x4 nreloc 0 nlnno 0 checksum 0x0 assoc 4 comdat 0
# CHECK: [ 8](sec  5)(fl 0x00)(ty   0)(scl   3) (nx 1) 0x00000000 .CRT$XCU
# CHECK: AUX scnlen 0x8 nreloc 1 nlnno 0 checksum 0x0 assoc 4 comdat 5
# CHECK: [10](sec  0)(fl 0x00)(ty   0)(scl   2) (nx 0) 0x00000000 register_x

	.section	.rdata,"dr"
	.p2align	2               # @x
.Lprivate:
	.long	0                       # 0x0

	.section	.CRT$XCU,"dr",associative,.Lprivate
	.p2align	3
	.quad	register_x