2013-05-02 03:36:38 +08:00
|
|
|
# The test checks for mergeable strings that appear in the object file
|
2013-11-02 09:55:42 +08:00
|
|
|
RUN: lld -flavor gnu --merge-strings --output-filetype=yaml -target x86_64 \
|
|
|
|
RUN: %p/Inputs/constants-merge.x86-64 --noinhibit-exec \
|
|
|
|
RUN: | FileCheck -check-prefix=mergeAtoms %s
|
2013-02-13 02:46:53 +08:00
|
|
|
|
2013-05-02 03:36:38 +08:00
|
|
|
mergeAtoms: - ref-name: [[CONSTANT:[-a-zA-Z0-9_]+]]
|
|
|
|
mergeAtoms: type: constant
|
|
|
|
mergeAtoms: content: [ 62, 61, 72, 66, 6F, 6F, 00 ]
|
|
|
|
mergeAtoms: merge: by-content
|
|
|
|
mergeAtoms: section-choice: custom-required
|
|
|
|
mergeAtoms: section-name: .rodata.str1.1
|
2013-02-13 02:46:53 +08:00
|
|
|
mergeAtoms: - name: foo
|
|
|
|
mergeAtoms: scope: global
|
|
|
|
mergeAtoms: type: data
|
|
|
|
mergeAtoms: content: [ 00, 00, 00, 00, 00, 00, 00, 00 ]
|
|
|
|
mergeAtoms: alignment: 2^3
|
2014-01-27 11:09:26 +08:00
|
|
|
mergeAtoms: references:
|
2013-04-05 02:59:24 +08:00
|
|
|
mergeAtoms: - kind: R_X86_64_64
|
2013-02-13 02:46:53 +08:00
|
|
|
mergeAtoms: offset: 3
|
2013-05-02 03:36:38 +08:00
|
|
|
mergeAtoms: target: [[CONSTANT]]
|