2018-02-17 05:16:57 +08:00
|
|
|
# RUN: not ld64.lld -arch x86_64 -r -print_atoms %s -o %t 2> %t.err
|
2014-05-23 04:05:43 +08:00
|
|
|
# RUN: FileCheck %s < %t.err
|
|
|
|
#
|
2020-04-02 00:21:08 +08:00
|
|
|
# Test for error if literal section is not correct size multiple.
|
2014-05-23 04:05:43 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
--- !mach-o
|
|
|
|
arch: x86_64
|
|
|
|
file-type: MH_OBJECT
|
|
|
|
flags: [ MH_SUBSECTIONS_VIA_SYMBOLS ]
|
|
|
|
has-UUID: false
|
|
|
|
OS: unknown
|
|
|
|
sections:
|
|
|
|
- segment: __TEXT
|
|
|
|
section: __literal8
|
|
|
|
type: S_8BYTE_LITERALS
|
|
|
|
attributes: [ ]
|
|
|
|
alignment: 0
|
|
|
|
address: 0x0000000000000120
|
|
|
|
content: [ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
|
|
|
|
0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D ]
|
|
|
|
...
|
|
|
|
|
2015-04-28 01:18:04 +08:00
|
|
|
# CHECK: error:
|
2014-05-23 04:05:43 +08:00
|
|
|
|