diff options
author | Shankar Easwaran <shankare@codeaurora.org> | 2014-01-27 03:09:26 +0000 |
---|---|---|
committer | Shankar Easwaran <shankare@codeaurora.org> | 2014-01-27 03:09:26 +0000 |
commit | 3d8de47f76529dba40fc34d497576d9cb51330bc (patch) | |
tree | 143515f3acdefd2c6c53e2553af9b34ff120a13d /lld/test | |
parent | a64ba010f040003685c507c82237dae9fd4e6f59 (diff) | |
download | bcm5719-llvm-3d8de47f76529dba40fc34d497576d9cb51330bc.tar.gz bcm5719-llvm-3d8de47f76529dba40fc34d497576d9cb51330bc.zip |
Fix trailing whitespace.
llvm-svn: 200182
Diffstat (limited to 'lld/test')
74 files changed, 216 insertions, 216 deletions
diff --git a/lld/test/Driver/undef-basic.objtxt b/lld/test/Driver/undef-basic.objtxt index 381195ada17..f942d5c8e90 100644 --- a/lld/test/Driver/undef-basic.objtxt +++ b/lld/test/Driver/undef-basic.objtxt @@ -9,7 +9,7 @@ absolute-atoms: - name: putchar value: 0xFFFF0040 - + - name: reset value: 0xFFFF0080 diff --git a/lld/test/core/absolute-basic.objtxt b/lld/test/core/absolute-basic.objtxt index b13e2ac1d0a..af64794514a 100644 --- a/lld/test/core/absolute-basic.objtxt +++ b/lld/test/core/absolute-basic.objtxt @@ -8,14 +8,14 @@ absolute-atoms: - name: putchar value: 0xFFFF0040 - + - name: reset value: 0xFFFF0080 ... -# CHECK: absolute-atoms: +# CHECK: absolute-atoms: # CHECK: name: putchar # CHECK: value: 0x00000000FFFF0040 # CHECK: name: reset diff --git a/lld/test/core/archive-chain.objtxt b/lld/test/core/archive-chain.objtxt index 0651dadd71c..0f80985ec11 100644 --- a/lld/test/core/archive-chain.objtxt +++ b/lld/test/core/archive-chain.objtxt @@ -45,7 +45,7 @@ members: - name: baz1 scope: global type: code - + - name: baz1b type: code diff --git a/lld/test/core/auto-hide-coalesce.objtxt b/lld/test/core/auto-hide-coalesce.objtxt index 24b2e1c4e65..ad82d5afc57 100644 --- a/lld/test/core/auto-hide-coalesce.objtxt +++ b/lld/test/core/auto-hide-coalesce.objtxt @@ -10,17 +10,17 @@ defined-atoms: scope: global type: code merge: as-weak - + - name: _inlineFunc2 scope: global type: code merge: as-weak - + - name: _inlineFunc3 scope: global type: code merge: as-addressed-weak - + - name: _inlineFunc4 scope: global type: code @@ -31,17 +31,17 @@ defined-atoms: scope: global type: code merge: as-weak - + - name: _inlineFunc2 scope: global type: code merge: as-addressed-weak - + - name: _inlineFunc3 scope: global type: code merge: as-weak - + - name: _inlineFunc4 scope: global type: code diff --git a/lld/test/core/constants-coalesce.objtxt b/lld/test/core/constants-coalesce.objtxt index e64783720a7..a82f6800908 100644 --- a/lld/test/core/constants-coalesce.objtxt +++ b/lld/test/core/constants-coalesce.objtxt @@ -11,7 +11,7 @@ defined-atoms: type: constant merge: by-content content: [ 01, 02, 03, 04 ] - + - ref-name: L8-byte type: constant merge: by-content diff --git a/lld/test/core/cstring-coalesce.objtxt b/lld/test/core/cstring-coalesce.objtxt index 914740933ff..78986a08c64 100644 --- a/lld/test/core/cstring-coalesce.objtxt +++ b/lld/test/core/cstring-coalesce.objtxt @@ -10,7 +10,7 @@ defined-atoms: type: c-string merge: by-content content: [ 68, 65, 6c, 6c, 6f, 00 ] - + - ref-name: L1 type: c-string merge: by-content diff --git a/lld/test/core/custom-section.objtxt b/lld/test/core/custom-section.objtxt index faf4f4310d1..ce305e9af38 100644 --- a/lld/test/core/custom-section.objtxt +++ b/lld/test/core/custom-section.objtxt @@ -24,7 +24,7 @@ defined-atoms: # CHECK: name: _foo1 -# CHECK-NOT: section-name: +# CHECK-NOT: section-name: # CHECK: name: _foo2 # CHECK: section-choice: custom # CHECK: section-name: __foozle diff --git a/lld/test/core/dead-strip-basic.objtxt b/lld/test/core/dead-strip-basic.objtxt index 94af8e2b1df..64cd2291c76 100644 --- a/lld/test/core/dead-strip-basic.objtxt +++ b/lld/test/core/dead-strip-basic.objtxt @@ -17,7 +17,7 @@ defined-atoms: - offset: 6 kind: pcrel32 target: baz - + - name: mydead1 scope: global diff --git a/lld/test/core/dead-strip-globals.objtxt b/lld/test/core/dead-strip-globals.objtxt index 568eb71511d..8feb235d07c 100644 --- a/lld/test/core/dead-strip-globals.objtxt +++ b/lld/test/core/dead-strip-globals.objtxt @@ -16,7 +16,7 @@ defined-atoms: - offset: 6 kind: pcrel32 target: baz - + - name: myglobal1 scope: global diff --git a/lld/test/core/error-atom-attribute.objtxt b/lld/test/core/error-atom-attribute.objtxt index f3098e52a8e..6643aba29ee 100644 --- a/lld/test/core/error-atom-attribute.objtxt +++ b/lld/test/core/error-atom-attribute.objtxt @@ -11,7 +11,7 @@ defined-atoms: scope: hidden foobar: true dead-strip: never - + ... diff --git a/lld/test/core/error-atom-content-byte-value.objtxt b/lld/test/core/error-atom-content-byte-value.objtxt index e2447caeb52..6e675576461 100644 --- a/lld/test/core/error-atom-content-byte-value.objtxt +++ b/lld/test/core/error-atom-content-byte-value.objtxt @@ -10,7 +10,7 @@ defined-atoms: - name: entry scope: hidden content: [ A5, 00, 4G, 1F ] - + ... diff --git a/lld/test/core/error-atom-content-bytes.objtxt b/lld/test/core/error-atom-content-bytes.objtxt index e18a3bcb1a5..a8a82b2b45e 100644 --- a/lld/test/core/error-atom-content-bytes.objtxt +++ b/lld/test/core/error-atom-content-bytes.objtxt @@ -10,7 +10,7 @@ defined-atoms: - name: entry scope: hidden content: [ A5, 1234, 00, 4F ] - + ... diff --git a/lld/test/core/error-atom-type.objtxt b/lld/test/core/error-atom-type.objtxt index 80dd9a05b33..b0943f8e274 100644 --- a/lld/test/core/error-atom-type.objtxt +++ b/lld/test/core/error-atom-type.objtxt @@ -11,7 +11,7 @@ defined-atoms: scope: hidden type: superluminal dead-strip: never - + ... diff --git a/lld/test/core/error-atom-undefined-wrong-attribue.objtxt b/lld/test/core/error-atom-undefined-wrong-attribue.objtxt index 0ee1d275183..5cdd8519c80 100644 --- a/lld/test/core/error-atom-undefined-wrong-attribue.objtxt +++ b/lld/test/core/error-atom-undefined-wrong-attribue.objtxt @@ -9,7 +9,7 @@ undefined-atoms: - name: foo type: code - + ... diff --git a/lld/test/core/error-file-attribute.objtxt b/lld/test/core/error-file-attribute.objtxt index 6897dc91e5a..d8393dc5e40 100644 --- a/lld/test/core/error-file-attribute.objtxt +++ b/lld/test/core/error-file-attribute.objtxt @@ -10,7 +10,7 @@ aardvark: true defined-atoms: - name: entry scope: hidden - + ... diff --git a/lld/test/core/fixups-addend.objtxt b/lld/test/core/fixups-addend.objtxt index 24af91ffa7c..d976150459c 100644 --- a/lld/test/core/fixups-addend.objtxt +++ b/lld/test/core/fixups-addend.objtxt @@ -8,7 +8,7 @@ defined-atoms: - name: foo type: code - content: [ 48, 8D, 3D, 00, 00, 00, 00, + content: [ 48, 8D, 3D, 00, 00, 00, 00, 48, 8D, 3D, 00, 00, 00, 00 ] references: - offset: 3 @@ -19,10 +19,10 @@ defined-atoms: kind: pcrel32 target: bar addend: -50 - + - name: func type: code - content: [ 48, 8D, 3D, 00, 00, 00, 00, + content: [ 48, 8D, 3D, 00, 00, 00, 00, 48, 8D, 3D, 00, 00, 00, 00 ] references: - offset: 3 @@ -33,11 +33,11 @@ defined-atoms: kind: pcrel32 target: bar addend: -50 - + undefined-atoms: - name: bar - + ... # CHECK: name: foo diff --git a/lld/test/core/fixups-dup-named.objtxt b/lld/test/core/fixups-dup-named.objtxt index 38ca56ebca5..1c57cd73bf0 100644 --- a/lld/test/core/fixups-dup-named.objtxt +++ b/lld/test/core/fixups-dup-named.objtxt @@ -16,7 +16,7 @@ defined-atoms: - offset: 6 kind: pcrel32 target: bar_2 - + - name: bar ref-name: bar_1 scope: static @@ -24,7 +24,7 @@ defined-atoms: - name: bar ref-name: bar_2 scope: static - + ... diff --git a/lld/test/core/fixups-named.objtxt b/lld/test/core/fixups-named.objtxt index 7eebb06e372..1427a9b705d 100644 --- a/lld/test/core/fixups-named.objtxt +++ b/lld/test/core/fixups-named.objtxt @@ -8,7 +8,7 @@ defined-atoms: - name: foo type: code - content: [ E8, 00, 00, 00, 00, + content: [ E8, 00, 00, 00, 00, E8, 00, 00, 00, 00 ] references: - offset: 1 @@ -17,14 +17,14 @@ defined-atoms: - offset: 6 kind: pcrel32 target: baz - + - name: baz scope: static type: code undefined-atoms: - name: bar - + ... diff --git a/lld/test/core/fixups-unnamed.objtxt b/lld/test/core/fixups-unnamed.objtxt index 3ca0b30fdcd..88afb6a447a 100644 --- a/lld/test/core/fixups-unnamed.objtxt +++ b/lld/test/core/fixups-unnamed.objtxt @@ -8,7 +8,7 @@ defined-atoms: - name: foo type: code - content: [ 48, 8D, 3D, 00, 00, 00, 00, + content: [ 48, 8D, 3D, 00, 00, 00, 00, 48, 8D, 3D, 00, 00, 00, 00 ] references: - offset: 3 @@ -17,7 +17,7 @@ defined-atoms: - offset: 10 kind: pcrel32 target: LC2 - + - ref-name: LC1 type: c-string @@ -28,7 +28,7 @@ defined-atoms: type: c-string merge: by-content content: [ 74, 68, 65, 72, 65, 00 ] - + ... diff --git a/lld/test/core/ingroup-test-big.objtxt b/lld/test/core/ingroup-test-big.objtxt index d0b2c46d770..f666328bb4c 100644 --- a/lld/test/core/ingroup-test-big.objtxt +++ b/lld/test/core/ingroup-test-big.objtxt @@ -1,16 +1,16 @@ # RUN: lld -core --add-pass layout %s | FileCheck %s -check-prefix=CHKORDER --- -defined-atoms: +defined-atoms: - name: A scope: global - references: + references: - kind: layout-after offset: 0 target: B - name: B scope: global - references: + references: - kind: in-group offset: 0 target: A @@ -19,13 +19,13 @@ defined-atoms: target: C - name: C scope: global - references: + references: - kind: in-group offset: 0 target: A - name: E scope: global - references: + references: - kind: in-group offset: 0 target: E @@ -34,13 +34,13 @@ defined-atoms: target: F - name: F scope: global - references: + references: - kind: in-group offset: 0 target: E - name: D scope: global - references: + references: - kind: in-group offset: 0 target: A diff --git a/lld/test/core/ingroup-test-loop.objtxt b/lld/test/core/ingroup-test-loop.objtxt index 7bed173f35b..b22dcb8b589 100644 --- a/lld/test/core/ingroup-test-loop.objtxt +++ b/lld/test/core/ingroup-test-loop.objtxt @@ -1,16 +1,16 @@ # RUN: lld -core --add-pass layout %s | FileCheck %s -check-prefix=CHKORDER --- -defined-atoms: +defined-atoms: - name: A scope: global - references: + references: - kind: layout-after offset: 0 target: E - name: E scope: global - references: + references: - kind: in-group offset: 0 target: A diff --git a/lld/test/core/ingroup-test-with-layout-after.objtxt b/lld/test/core/ingroup-test-with-layout-after.objtxt index 6a8bac28a6c..d93e194446d 100644 --- a/lld/test/core/ingroup-test-with-layout-after.objtxt +++ b/lld/test/core/ingroup-test-with-layout-after.objtxt @@ -1,16 +1,16 @@ # RUN: lld -core --add-pass layout %s | FileCheck %s -check-prefix=CHKORDER --- -defined-atoms: +defined-atoms: - name: A scope: global - references: + references: - kind: layout-after offset: 0 target: B - name: B scope: global - references: + references: - kind: in-group offset: 0 target: A @@ -19,7 +19,7 @@ defined-atoms: target: E - name: F scope: global - references: + references: - kind: in-group offset: 0 target: E @@ -28,13 +28,13 @@ defined-atoms: target: G - name: G scope: global - references: + references: - kind: in-group offset: 0 target: E - name: E scope: global - references: + references: - kind: in-group offset: 0 target: A diff --git a/lld/test/core/ingroup-test.objtxt b/lld/test/core/ingroup-test.objtxt index 6ebbb815485..b5eeebe73c7 100644 --- a/lld/test/core/ingroup-test.objtxt +++ b/lld/test/core/ingroup-test.objtxt @@ -1,31 +1,31 @@ # RUN: lld -core --add-pass layout %s | FileCheck %s -check-prefix=CHKORDER --- -defined-atoms: +defined-atoms: - name: A scope: global - name: B scope: global - references: + references: - kind: in-group offset: 0 target: A - name: F scope: global - references: + references: - kind: in-group offset: 0 target: E - name: G scope: global - references: + references: - kind: in-group offset: 0 target: E - name: E scope: global - references: + references: - kind: in-group offset: 0 target: A diff --git a/lld/test/core/layoutafter-test.objtxt b/lld/test/core/layoutafter-test.objtxt index 58c7d0a9674..757e52cd187 100644 --- a/lld/test/core/layoutafter-test.objtxt +++ b/lld/test/core/layoutafter-test.objtxt @@ -1,24 +1,24 @@ # RUN: lld -core --add-pass layout %s | FileCheck %s -check-prefix=CHKORDER --- -defined-atoms: +defined-atoms: - name: fn3 scope: global - name: fn2 scope: global - references: + references: - kind: layout-after offset: 0 target: fn3 - name: fn scope: global - references: + references: - kind: layout-after offset: 0 target: fn1 - name: fn1 scope: global - references: + references: - kind: layout-after offset: 0 target: fn2 diff --git a/lld/test/core/layoutbefore-test.objtxt b/lld/test/core/layoutbefore-test.objtxt index ed1afe76119..038c14dc0fd 100644 --- a/lld/test/core/layoutbefore-test.objtxt +++ b/lld/test/core/layoutbefore-test.objtxt @@ -1,19 +1,19 @@ # RUN: lld -core --add-pass layout %s | FileCheck %s -check-prefix=CHKORDER --- -defined-atoms: +defined-atoms: - name: fn scope: global - name: fn1 scope: global - references: + references: - kind: layout-before offset: 0 target: fn - name: fn2 scope: global - references: + references: - kind: layout-before offset: 0 target: fn1 diff --git a/lld/test/core/pass-got-basic.objtxt b/lld/test/core/pass-got-basic.objtxt index 6f0d4f2bcec..4b66f703f4f 100644 --- a/lld/test/core/pass-got-basic.objtxt +++ b/lld/test/core/pass-got-basic.objtxt @@ -8,11 +8,11 @@ defined-atoms: - name: foo type: code - content: [ 48, 8B, 0D, 00, 00, 00, 00, - 48, 8B, 0D, 00, 00, 00, 00, - 48, 8B, 0D, 00, 00, 00, 00, + content: [ 48, 8B, 0D, 00, 00, 00, 00, + 48, 8B, 0D, 00, 00, 00, 00, + 48, 8B, 0D, 00, 00, 00, 00, + 48, 83, 3D, 00, 00, 00, 00, 00, 48, 83, 3D, 00, 00, 00, 00, 00, - 48, 83, 3D, 00, 00, 00, 00, 00, 48, 83, 3D, 00, 00, 00, 00, 00, 48, 83, 3D, 00, 00, 00, 00, 00 ] references: @@ -46,12 +46,12 @@ defined-atoms: shared-library-atoms: - name: malloc load-name: libc.so - + ... # CHECK: defined-atoms: # CHECK: name: foo -# CHECK: references: +# CHECK: references: # CHECK: kind: pcrel32 # CHECK: offset: 3 # CHECK: target: L diff --git a/lld/test/core/pass-stubs-basic.objtxt b/lld/test/core/pass-stubs-basic.objtxt index 8203755fc85..bcc1ca333a2 100644 --- a/lld/test/core/pass-stubs-basic.objtxt +++ b/lld/test/core/pass-stubs-basic.objtxt @@ -8,7 +8,7 @@ defined-atoms: - name: foo type: code - content: [ E8, 00, 00, 00, 00, E8, 00, 00, 00, + content: [ E8, 00, 00, 00, 00, E8, 00, 00, 00, 00, 48 ,8B, 05, 00, 00, 00, 00 ] references: - offset: 1 @@ -24,14 +24,14 @@ defined-atoms: shared-library-atoms: - name: malloc load-name: libc.so - + - name: free load-name: libc.so ... # CHECK: name: foo -# CHECK: references: +# CHECK: references: # CHECK: kind: call32 # CHECK: target: L # CHECK: kind: call32 diff --git a/lld/test/core/permissions.objtxt b/lld/test/core/permissions.objtxt index fd07f29a6ff..af33ea65c45 100644 --- a/lld/test/core/permissions.objtxt +++ b/lld/test/core/permissions.objtxt @@ -11,13 +11,13 @@ defined-atoms: - name: two type: data permissions: rw- - + - name: three type: const-data - + - name: four type: unknown - + - name: oddCode type: code permissions: rwx @@ -25,15 +25,15 @@ defined-atoms: - name: oddData type: data permissions: rwx - + - name: oddConstData type: const-data permissions: rw- - + - name: oddUnknown type: unknown permissions: rw- - + ... # CHECK: --- diff --git a/lld/test/core/section-position.objtxt b/lld/test/core/section-position.objtxt index 675c1edc0d5..f34367eb319 100644 --- a/lld/test/core/section-position.objtxt +++ b/lld/test/core/section-position.objtxt @@ -23,7 +23,7 @@ defined-atoms: - name: data_start type: data section-position: start - + --- defined-atoms: - name: data_end_too @@ -33,7 +33,7 @@ defined-atoms: - name: some_more_data type: data content: [ 03, 04 ] - + --- defined-atoms: - name: early_data_too @@ -44,7 +44,7 @@ defined-atoms: ... -# CHKUNORD: defined-atoms: +# CHKUNORD: defined-atoms: # CHKUNORD: - name: data_end # CHKUNORD: section-position: end # CHKUNORD: - name: some_data @@ -63,7 +63,7 @@ defined-atoms: # CHKUNORD: section-position: early # CHKUNORD: ... -# CHKORDER: defined-atoms: +# CHKORDER: defined-atoms: # CHKORDER: - name: data_start # CHKORDER: section-position: start # CHKORDER: - name: early_data diff --git a/lld/test/core/shared-library-basic.objtxt b/lld/test/core/shared-library-basic.objtxt index fb0b65feecb..61445e7431f 100644 --- a/lld/test/core/shared-library-basic.objtxt +++ b/lld/test/core/shared-library-basic.objtxt @@ -10,14 +10,14 @@ shared-library-atoms: load-name: libc.so type: code size: 0 - + - name: free load-name: libc.so - name: fast_malloc load-name: libc.so can-be-null: at-runtime - + - name: stdout load-name: libc.so type: data diff --git a/lld/test/core/shared-library-coalesce.objtxt b/lld/test/core/shared-library-coalesce.objtxt index 5c860ccc043..51ff93e87a8 100644 --- a/lld/test/core/shared-library-coalesce.objtxt +++ b/lld/test/core/shared-library-coalesce.objtxt @@ -8,14 +8,14 @@ shared-library-atoms: - name: foo1 load-name: libc.so - + - name: foo2 load-name: libc.so - name: bar1 load-name: libc.so can-be-null: at-runtime - + - name: bar2 load-name: libc.so can-be-null: at-runtime @@ -23,13 +23,13 @@ shared-library-atoms: - name: mismatchNull1 load-name: libc.so can-be-null: at-runtime - + - name: mismatchNull2 load-name: libc.so - + - name: mismatchload1 load-name: liba.so - + - name: mismatchload2 load-name: libb.so @@ -37,7 +37,7 @@ shared-library-atoms: shared-library-atoms: - name: foo2 load-name: libc.so - + - name: foo3 load-name: libc.so @@ -51,14 +51,14 @@ shared-library-atoms: - name: mismatchNull1 load-name: libc.so - + - name: mismatchNull2 load-name: libc.so can-be-null: at-runtime - + - name: mismatchload1 load-name: libb.so - + - name: mismatchload2 load-name: liba.so diff --git a/lld/test/core/undef-coalesce-error.objtxt b/lld/test/core/undef-coalesce-error.objtxt index adf13a24409..a0485befd28 100644 --- a/lld/test/core/undef-coalesce-error.objtxt +++ b/lld/test/core/undef-coalesce-error.objtxt @@ -3,7 +3,7 @@ # RUN: lld -core %s | FileCheck %s # -# Test that -undefines-are-errors triggers and error +# Test that -undefines-are-errors triggers and error # and that not using that option results in undefined atoms. # @@ -11,7 +11,7 @@ defined-atoms: - name: foo type: code - + undefined-atoms: - name: malloc - name: free @@ -19,7 +19,7 @@ undefined-atoms: defined-atoms: - name: bar type: code - + undefined-atoms: - name: malloc - name: myfunc @@ -28,7 +28,7 @@ defined-atoms: - name: myfunc scope: global type: code - + undefined-atoms: - name: free ... diff --git a/lld/test/core/undef-coalesce.objtxt b/lld/test/core/undef-coalesce.objtxt index 8a9f502ab1a..822ed5acf19 100644 --- a/lld/test/core/undef-coalesce.objtxt +++ b/lld/test/core/undef-coalesce.objtxt @@ -9,7 +9,7 @@ defined-atoms: - name: foo type: code - + undefined-atoms: - name: malloc - name: free @@ -17,7 +17,7 @@ undefined-atoms: defined-atoms: - name: bar type: code - + undefined-atoms: - name: malloc - name: myfunc @@ -26,7 +26,7 @@ defined-atoms: - name: myfunc scope: global type: code - + undefined-atoms: - name: free ... diff --git a/lld/test/darwin/hello-world.objtxt b/lld/test/darwin/hello-world.objtxt index d5e88a28165..29f26b78589 100644 --- a/lld/test/darwin/hello-world.objtxt +++ b/lld/test/darwin/hello-world.objtxt @@ -9,8 +9,8 @@ defined-atoms: - name: _main type: code scope: global - content: [ 55, 48, 89, E5, 48, 8D, 3D, 00, - 00, 00, 00, E8, 00, 00, 00, 00, + content: [ 55, 48, 89, E5, 48, 8D, 3D, 00, + 00, 00, 00, E8, 00, 00, 00, 00, 31, C0, 5D, C3 ] references: - offset: 7 @@ -25,7 +25,7 @@ defined-atoms: merge: by-content content: [ 68, 65, 6C, 6C, 6F, 0A, 00 ] -shared-library-atoms: +shared-library-atoms: - name: _printf load-name: /usr/lib/libSystem.B.dylib diff --git a/lld/test/darwin/native-and-mach-o.objtxt b/lld/test/darwin/native-and-mach-o.objtxt index 3f356f5d859..b94bf85ee30 100644 --- a/lld/test/darwin/native-and-mach-o.objtxt +++ b/lld/test/darwin/native-and-mach-o.objtxt @@ -9,13 +9,13 @@ defined-atoms: - name: _main type: code scope: global - content: [ 55, 48, 89, E5, 30, C0, E8, 00, + content: [ 55, 48, 89, E5, 30, C0, E8, 00, 00, 00, 00, 31, C0, 5D, C3 ] references: - offset: 7 kind: X86_64_RELOC_BRANCH target: _foo - + undefined-atoms: - name: _foo diff --git a/lld/test/elf/Hexagon/Inputs/dynobj.c b/lld/test/elf/Hexagon/Inputs/dynobj.c index fa025ad43c6..f17fdadd694 100644 --- a/lld/test/elf/Hexagon/Inputs/dynobj.c +++ b/lld/test/elf/Hexagon/Inputs/dynobj.c @@ -1,5 +1,5 @@ extern int shankar; -static int a; +static int a; static int b; int c; int fn2() { diff --git a/lld/test/elf/Hexagon/dynlib-gotoff.test b/lld/test/elf/Hexagon/dynlib-gotoff.test index 2c20a3e47e9..33324212968 100644 --- a/lld/test/elf/Hexagon/dynlib-gotoff.test +++ b/lld/test/elf/Hexagon/dynlib-gotoff.test @@ -5,7 +5,7 @@ RUN: FileCheck -check-prefix=CHECKGOTPLT %s < %t - name: __got0 CHECKGOTPLT: type: got -CHECKGOTPLT: content: [ 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, +CHECKGOTPLT: content: [ 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, CHECKGOTPLT: 00, 00, 00, 00 ] CHECKGOTPLT: alignment: 2^3 CHECKGOTPLT: section-name: .got.plt @@ -16,7 +16,7 @@ CHECKGOTPLT: content: [ 00, 00, 00, 00 ] CHECKGOTPLT: alignment: 2^2 CHECKGOTPLT: section-name: .got CHECKGOTPLT: permissions: rw- -CHECKGOTPLT: references: +CHECKGOTPLT: references: CHECKGOTPLT: - kind: R_HEX_GLOB_DAT CHECKGOTPLT: offset: 0 CHECKGOTPLT: target: c @@ -26,7 +26,7 @@ CHECKGOTPLT: content: [ 00, 00, 00, 00 ] CHECKGOTPLT: alignment: 2^2 CHECKGOTPLT: section-name: .got CHECKGOTPLT: permissions: rw- -CHECKGOTPLT: references: +CHECKGOTPLT: references: CHECKGOTPLT: - kind: R_HEX_GLOB_DAT CHECKGOTPLT: offset: 0 CHECKGOTPLT: target: shankar @@ -36,7 +36,7 @@ CHECKGOTPLT: content: [ 00, 00, 00, 00 ] CHECKGOTPLT: alignment: 2^2 CHECKGOTPLT: section-name: .got.plt CHECKGOTPLT: permissions: rw- -CHECKGOTPLT: references: +CHECKGOTPLT: references: CHECKGOTPLT: - kind: R_HEX_JMP_SLOT CHECKGOTPLT: offset: 0 CHECKGOTPLT: target: fn @@ -49,7 +49,7 @@ CHECKGOTPLT: content: [ 00, 00, 00, 00 ] CHECKGOTPLT: alignment: 2^2 CHECKGOTPLT: section-name: .got.plt CHECKGOTPLT: permissions: rw- -CHECKGOTPLT: references: +CHECKGOTPLT: references: CHECKGOTPLT: - kind: R_HEX_JMP_SLOT CHECKGOTPLT: offset: 0 CHECKGOTPLT: target: fn1 @@ -62,7 +62,7 @@ CHECKGOTPLT: content: [ 00, 00, 00, 00 ] CHECKGOTPLT: alignment: 2^2 CHECKGOTPLT: section-name: .got.plt CHECKGOTPLT: permissions: rw- -CHECKGOTPLT: references: +CHECKGOTPLT: references: CHECKGOTPLT: - kind: R_HEX_JMP_SLOT CHECKGOTPLT: offset: 0 CHECKGOTPLT: target: fn2 @@ -71,12 +71,12 @@ CHECKGOTPLT: offset: 0 target: .PLT0 - name: .PLT0 CHECKGOTPLT: type: stub -CHECKGOTPLT: content: [ 00, 40, 00, 00, 1C, C0, 49, 6A, 0E, 42, 9C, E2, -CHECKGOTPLT: 4F, 40, 9C, 91, 3C, C0, 9C, 91, 0E, 42, 0E, 8C, +CHECKGOTPLT: content: [ 00, 40, 00, 00, 1C, C0, 49, 6A, 0E, 42, 9C, E2, +CHECKGOTPLT: 4F, 40, 9C, 91, 3C, C0, 9C, 91, 0E, 42, 0E, 8C, CHECKGOTPLT: 00, C0, 9C, 52 ] CHECKGOTPLT: alignment: 2^4 CHECKGOTPLT: section-name: .plt -CHECKGOTPLT: references: +CHECKGOTPLT: references: CHECKGOTPLT: - kind: R_HEX_B32_PCREL_X CHECKGOTPLT: offset: 0 target: __got0 @@ -86,11 +86,11 @@ CHECKGOTPLT: offset: 4 CHECKGOTPLT: addend: 4 - name: __plt_fn CHECKGOTPLT: type: stub -CHECKGOTPLT: content: [ 00, 40, 00, 00, 0E, C0, 49, 6A, 1C, C0, 8E, 91, +CHECKGOTPLT: content: [ 00, 40, 00, 00, 0E, C0, 49, 6A, 1C, C0, 8E, 91, CHECKGOTPLT: 00, C0, 9C, 52 ] CHECKGOTPLT: alignment: 2^4 CHECKGOTPLT: section-name: .plt -CHECKGOTPLT: references: +CHECKGOTPLT: references: CHECKGOTPLT: - kind: R_HEX_B32_PCREL_X CHECKGOTPLT: offset: 0 target: __got_fn @@ -100,11 +100,11 @@ CHECKGOTPLT: offset: 4 CHECKGOTPLT: addend: 4 - name: __plt_fn1 CHECKGOTPLT: type: stub -CHECKGOTPLT: content: [ 00, 40, 00, 00, 0E, C0, 49, 6A, 1C, C0, 8E, 91, +CHECKGOTPLT: content: [ 00, 40, 00, 00, 0E, C0, 49, 6A, 1C, C0, 8E, 91, CHECKGOTPLT: 00, C0, 9C, 52 ] CHECKGOTPLT: alignment: 2^4 CHECKGOTPLT: section-name: .plt -CHECKGOTPLT: references: +CHECKGOTPLT: references: CHECKGOTPLT: - kind: R_HEX_B32_PCREL_X CHECKGOTPLT: offset: 0 target: __got_fn1 @@ -114,11 +114,11 @@ CHECKGOTPLT: offset: 4 CHECKGOTPLT: addend: 4 - name: __plt_fn2 CHECKGOTPLT: type: stub -CHECKGOTPLT: content: [ 00, 40, 00, 00, 0E, C0, 49, 6A, 1C, C0, 8E, 91, +CHECKGOTPLT: content: [ 00, 40, 00, 00, 0E, C0, 49, 6A, 1C, C0, 8E, 91, CHECKGOTPLT: 00, C0, 9C, 52 ] CHECKGOTPLT: alignment: 2^4 CHECKGOTPLT: section-name: .plt -CHECKGOTPLT: references: +CHECKGOTPLT: references: CHECKGOTPLT: - kind: R_HEX_B32_PCREL_X CHECKGOTPLT: offset: 0 target: __got_fn2 diff --git a/lld/test/elf/Hexagon/dynlib.test b/lld/test/elf/Hexagon/dynlib.test index 53d72d51d46..1cf3560c5c5 100644 --- a/lld/test/elf/Hexagon/dynlib.test +++ b/lld/test/elf/Hexagon/dynlib.test @@ -1,4 +1,4 @@ -RUN: lld -flavor gnu -target hexagon %p/Inputs/use-shared.hexagon -shared -o %t1 +RUN: lld -flavor gnu -target hexagon %p/Inputs/use-shared.hexagon -shared -o %t1 RUN: llvm-readobj -dyn-symbols %t1 > %t2 RUN: FileCheck -check-prefix=DYNSYMS %s < %t2 diff --git a/lld/test/elf/Hexagon/hexagon-plt-setup.test b/lld/test/elf/Hexagon/hexagon-plt-setup.test index 537afa4f6a2..bc2723db773 100644 --- a/lld/test/elf/Hexagon/hexagon-plt-setup.test +++ b/lld/test/elf/Hexagon/hexagon-plt-setup.test @@ -1,15 +1,15 @@ RUN: lld -flavor gnu -target hexagon %p/Inputs/use-shared.hexagon \ -RUN: --output-filetype=yaml --noinhibit-exec -o %t2 +RUN: --output-filetype=yaml --noinhibit-exec -o %t2 RUN: FileCheck %s < %t2 CHECK: - name: fn3 -CHECK: references: +CHECK: references: CHECK: - kind: R_HEX_B22_PCREL CHECK: offset: 4 - target: + target: CHECK: - kind: R_HEX_B22_PCREL CHECK: offset: 8 - target: + target: CHECK: - kind: layout-before CHECK: offset: 0 CHECK: target: fn1 diff --git a/lld/test/elf/Hexagon/initfini-option.test b/lld/test/elf/Hexagon/initfini-option.test index 5c3395162a6..c9eeb574312 100644 --- a/lld/test/elf/Hexagon/initfini-option.test +++ b/lld/test/elf/Hexagon/initfini-option.test @@ -1,7 +1,7 @@ # This tests the functionality that lld is able to create # init_array/fini_array sections in the output ELF. This # corresponds to the the .init_array/.fini_array sections -# in the output ELF. +# in the output ELF. RUN: lld -flavor gnu -target hexagon %p/Inputs/initfini-option.o \ RUN: -init init -fini fini --noinhibit-exec --output-filetype=yaml -static -o %t @@ -9,13 +9,13 @@ RUN: FileCheck %s < %t CHECK: content: [ 00, 00, 00, 00 ] CHECK: section-name: .init_array -CHECK: references: +CHECK: references: CHECK: - kind: R_HEX_32 CHECK: offset: 0 CHECK: target: init CHECK: content: [ 00, 00, 00, 00 ] CHECK: section-name: .fini_array -CHECK: references: +CHECK: references: CHECK: - kind: R_HEX_32 CHECK: offset: 0 CHECK: target: fini diff --git a/lld/test/elf/Hexagon/rela-order.test b/lld/test/elf/Hexagon/rela-order.test index 2f3814add0c..925a82c2929 100644 --- a/lld/test/elf/Hexagon/rela-order.test +++ b/lld/test/elf/Hexagon/rela-order.test @@ -1,5 +1,5 @@ RUN: lld -flavor gnu -target hexagon %p/Inputs/dynobj.o -shared \ -RUN: --noinhibit-exec -o %t +RUN: --noinhibit-exec -o %t RUN: llvm-objdump -section-headers %t | FileCheck %s CHECK: .dynsym diff --git a/lld/test/elf/Mips/dynlib-dynamic.test b/lld/test/elf/Mips/dynlib-dynamic.test index 9d27400f8eb..3f52e072deb 100644 --- a/lld/test/elf/Mips/dynlib-dynamic.test +++ b/lld/test/elf/Mips/dynlib-dynamic.test @@ -8,7 +8,7 @@ # CHECK: Format: ELF32-mips # CHECK: Arch: mipsel # CHECK: AddressSize: 32bit -# CHECK: LoadName: +# CHECK: LoadName: # CHECK: DynamicSection [ (15 entries) # CHECK: Tag Type Name/Value # CHECK: 0x00000004 HASH 0xD4 diff --git a/lld/test/elf/Mips/dynlib-dynsym.test b/lld/test/elf/Mips/dynlib-dynsym.test index 8f750e68f6d..cd36471c071 100644 --- a/lld/test/elf/Mips/dynlib-dynsym.test +++ b/lld/test/elf/Mips/dynlib-dynsym.test @@ -14,7 +14,7 @@ # CHECK-DYN: Format: ELF32-mips # CHECK-DYN: Arch: mipsel # CHECK-DYN: AddressSize: 32bit -# CHECK-DYN: LoadName: +# CHECK-DYN: LoadName: # CHECK-DYN: DynamicSymbols [ # CHECK-DYN: Symbol { # CHECK-DYN: Name: @ (0) diff --git a/lld/test/elf/Mips/dynlib-fileheader.test b/lld/test/elf/Mips/dynlib-fileheader.test index 088cf71f4f3..b531457c44f 100644 --- a/lld/test/elf/Mips/dynlib-fileheader.test +++ b/lld/test/elf/Mips/dynlib-fileheader.test @@ -8,7 +8,7 @@ # CHECK: Format: ELF32-mips # CHECK: Arch: mipsel # CHECK: AddressSize: 32bit -# CHECK: LoadName: +# CHECK: LoadName: # CHECK: ElfHeader { # CHECK: Ident { # CHECK: Magic: (7F 45 4C 46) diff --git a/lld/test/elf/Mips/got16.test b/lld/test/elf/Mips/got16.test index ddc9c8eae1c..e872e70858a 100644 --- a/lld/test/elf/Mips/got16.test +++ b/lld/test/elf/Mips/got16.test @@ -94,7 +94,7 @@ # RAW: 178: 24 80 84 8f lw $4, -32732($gp) # RAW: SYMBOL TABLE: -# RAW: 00000000 *UND* 00000000 +# RAW: 00000000 *UND* 00000000 # RAW: 00002000 l .data 00000000 local .global glob diff --git a/lld/test/elf/Mips/gotsym.test b/lld/test/elf/Mips/gotsym.test index 9e7a41133d7..8a6a3e2e5ab 100644 --- a/lld/test/elf/Mips/gotsym.test +++ b/lld/test/elf/Mips/gotsym.test @@ -6,7 +6,7 @@ # SHARED: Sections: # SHARED: Idx Name Size Address Type -# SHARED: 6 .got 00000008 0000000000001000 DATA +# SHARED: 6 .got 00000008 0000000000001000 DATA # SHARED: SYMBOL TABLE: # SHARED: 00001000 g *ABS* 00000000 _GLOBAL_OFFSET_TABLE_ # SHARED: 00008ff0 g *ABS* 00000000 _gp diff --git a/lld/test/elf/Mips/hilo16-1.test b/lld/test/elf/Mips/hilo16-1.test index 87484927181..87efa517527 100644 --- a/lld/test/elf/Mips/hilo16-1.test +++ b/lld/test/elf/Mips/hilo16-1.test @@ -14,8 +14,8 @@ # CHECK: Sections: # CHECK: Idx Name Size Address Type -# CHECK: 4 .text 00000018 0000000000000134 TEXT DATA -# CHECK: 6 .got 00000008 0000000000001000 DATA +# CHECK: 4 .text 00000018 0000000000000134 TEXT DATA +# CHECK: 6 .got 00000008 0000000000001000 DATA # CHECK: SYMBOL TABLE: # CHECK: 00000134 g F .text 0000000c glob1 diff --git a/lld/test/elf/X86_64/dontignorezerosize-sections.test b/lld/test/elf/X86_64/dontignorezerosize-sections.test index 7123661a445..101e6cb55b2 100644 --- a/lld/test/elf/X86_64/dontignorezerosize-sections.test +++ b/lld/test/elf/X86_64/dontignorezerosize-sections.test @@ -3,7 +3,7 @@ RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/zerosizedsection.o \ RUN: --noinhibit-exec --output-filetype=yaml -o %t RUN: FileCheck %s < %t -CHECK: references: +CHECK: references: CHECK: - kind: R_X86_64_16 CHECK: offset: 0 CHECK: target: L000 diff --git a/lld/test/elf/X86_64/extern-tls.test b/lld/test/elf/X86_64/extern-tls.test index d0ed9ef2452..c8e7580e5f3 100644 --- a/lld/test/elf/X86_64/extern-tls.test +++ b/lld/test/elf/X86_64/extern-tls.test @@ -10,7 +10,7 @@ CHECKGOT: alignment: 2^3 CHECKGOT: section-choice: custom-required CHECKGOT: section-name: .got CHECKGOT: permissions: rw- -CHECKGOT: references: +CHECKGOT: references: CHECKGOT: - kind: R_X86_64_TPOFF64 CHECKGOT: offset: 0 CHECKGOT: target: extern_tls diff --git a/lld/test/elf/X86_64/initfini-option.test b/lld/test/elf/X86_64/initfini-option.test index 7a535d3f8b3..a86f370889f 100644 --- a/lld/test/elf/X86_64/initfini-option.test +++ b/lld/test/elf/X86_64/initfini-option.test @@ -1,7 +1,7 @@ # This tests the functionality that lld is able to create # init_array/fini_array sections in the output ELF. This # corresponds to the the .init_array/.fini_array sections -# in the output ELF. +# in the output ELF. RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/initfini-option.o \ RUN: -init init -fini fini --noinhibit-exec --output-filetype=yaml -o %t @@ -9,13 +9,13 @@ RUN: FileCheck %s < %t CHECK: content: [ 00, 00, 00, 00, 00, 00, 00, 00 ] CHECK: section-name: .init_array -CHECK: references: +CHECK: references: CHECK: - kind: R_X86_64_64 CHECK: offset: 0 CHECK: target: init CHECK: content: [ 00, 00, 00, 00, 00, 00, 00, 00 ] CHECK: section-name: .fini_array -CHECK: references: +CHECK: references: CHECK: - kind: R_X86_64_64 CHECK: offset: 0 CHECK: target: fini diff --git a/lld/test/elf/X86_64/initfini.test b/lld/test/elf/X86_64/initfini.test index 642ee22293b..d882352a1c3 100644 --- a/lld/test/elf/X86_64/initfini.test +++ b/lld/test/elf/X86_64/initfini.test @@ -1,7 +1,7 @@ # This tests the functionality that lld is able to read # init_array/fini_array sections in the input ELF. This # corresponds to the the .init_array/.fini_array sections -# in the output ELF. +# in the output ELF. RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/initfini.o \ RUN: --noinhibit-exec --output-filetype=yaml -o %t @@ -10,14 +10,14 @@ RUN: FileCheck %s < %t CHECK: - type: data CHECK: content: [ 00, 00, 00, 00, 00, 00, 00, 00 ] CHECK: section-name: .init_array -CHECK: references: +CHECK: references: CHECK: - kind: R_X86_64_64 CHECK: offset: 0 CHECK: target: constructor CHECK: - type: data CHECK: content: [ 00, 00, 00, 00, 00, 00, 00, 00 ] CHECK: section-name: .fini_array -CHECK: references: +CHECK: references: CHECK: - kind: R_X86_64_64 CHECK: offset: 0 CHECK: target: destructor diff --git a/lld/test/elf/X86_64/layoutpass-order.test b/lld/test/elf/X86_64/layoutpass-order.test index b5123eb2612..e4ebef1d52d 100644 --- a/lld/test/elf/X86_64/layoutpass-order.test +++ b/lld/test/elf/X86_64/layoutpass-order.test @@ -1,5 +1,5 @@ # This test checks that we follow the command line order of layouting -# symbols in the output file +# symbols in the output file RUN: lld -flavor gnu -target x86_64 %p/Inputs/layoutpass/1.o \ RUN: %p/Inputs/layoutpass/lib2.a %p/Inputs/layoutpass/3.o -o %t \ diff --git a/lld/test/elf/X86_64/multi-weak-layout.test b/lld/test/elf/X86_64/multi-weak-layout.test index 6e158654316..37a051cf6d3 100644 --- a/lld/test/elf/X86_64/multi-weak-layout.test +++ b/lld/test/elf/X86_64/multi-weak-layout.test @@ -7,21 +7,21 @@ RUN: FileCheck %s -check-prefix=WEAKSYMS < %t WEAKSYMS: - ref-name: [[SYMA:[-a-zA-Z0-9_]+]] WEAKSYMS: type: data -WEAKSYMS: references: +WEAKSYMS: references: WEAKSYMS: - kind: layout-after WEAKSYMS: target: [[SYMB:[-a-zA-Z0-9_]+]] WEAKSYMS: - name: myfn2 WEAKSYMS: scope: global WEAKSYMS: type: data WEAKSYMS: merge: as-weak -WEAKSYMS: references: +WEAKSYMS: references: WEAKSYMS: - kind: layout-after WEAKSYMS: target: [[SYMB]] WEAKSYMS: - ref-name: [[SYMB]] WEAKSYMS: scope: global WEAKSYMS: type: data WEAKSYMS: content: [ 00, 00, 00, 00, 00, 00, 00, 00 ] -WEAKSYMS: references: +WEAKSYMS: references: WEAKSYMS: - kind: R_X86_64_64 WEAKSYMS: target: test WEAKSYMS: - kind: layout-before @@ -32,14 +32,14 @@ WEAKSYMS: - name: myfn1 WEAKSYMS: scope: global WEAKSYMS: type: data WEAKSYMS: merge: as-weak -WEAKSYMS: references: +WEAKSYMS: references: WEAKSYMS: - kind: layout-after WEAKSYMS: target: [[SYMC]] WEAKSYMS: - ref-name: [[SYMC]] WEAKSYMS: scope: global WEAKSYMS: type: data WEAKSYMS: content: [ 00, 00, 00, 00, 00, 00, 00, 00 ] -WEAKSYMS: references: +WEAKSYMS: references: WEAKSYMS: - kind: R_X86_64_64 WEAKSYMS: target: test WEAKSYMS: - kind: layout-before diff --git a/lld/test/elf/X86_64/rodata.test b/lld/test/elf/X86_64/rodata.test index 787cd7047ce..61af99f65cf 100644 --- a/lld/test/elf/X86_64/rodata.test +++ b/lld/test/elf/X86_64/rodata.test @@ -1,9 +1,9 @@ -# This tests that the ordinals for all merge atoms and defined atoms have been +# This tests that the ordinals for all merge atoms and defined atoms have been # set properly RUN: lld -flavor gnu -target x86_64 %p/Inputs/rodata.o --noinhibit-exec \ RUN: --merge-strings -static -o %t1 -RUN: llvm-nm -n %t1 | FileCheck %s +RUN: llvm-nm -n %t1 | FileCheck %s CHECK: {{[0-9a-f]+}} R _nl_default_default_domain CHECK: {{[0-9a-f]+}} R _nl_default_default_dirname diff --git a/lld/test/elf/X86_64/sectionmap.test b/lld/test/elf/X86_64/sectionmap.test index ed681899b9e..a38f23e32b9 100644 --- a/lld/test/elf/X86_64/sectionmap.test +++ b/lld/test/elf/X86_64/sectionmap.test @@ -1,5 +1,5 @@ # This tests that we are able to merge the section .gcc_except_table, -# .data.rel.local, .data.rel.ro, any other sections that belong to .data +# .data.rel.local, .data.rel.ro, any other sections that belong to .data # into appropriate output sections RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/sectionmap.o \ RUN: --noinhibit-exec -o %t diff --git a/lld/test/elf/X86_64/startGroupEndGroupWithDynlib.test b/lld/test/elf/X86_64/startGroupEndGroupWithDynlib.test index 9707d5d80bf..3e40997db38 100644 --- a/lld/test/elf/X86_64/startGroupEndGroupWithDynlib.test +++ b/lld/test/elf/X86_64/startGroupEndGroupWithDynlib.test @@ -1,4 +1,4 @@ -# This tests functionality of --start-group, --end-group with a dynamic library +# This tests functionality of --start-group, --end-group with a dynamic library # Mix dynamic libraries/object files in group RUN: lld -flavor gnu -target x86_64 %p/Inputs/group/1.o --start-group \ diff --git a/lld/test/elf/X86_64/weak-override.test b/lld/test/elf/X86_64/weak-override.test index da64edf8a04..9f5225b9ece 100644 --- a/lld/test/elf/X86_64/weak-override.test +++ b/lld/test/elf/X86_64/weak-override.test @@ -8,20 +8,20 @@ RUN: FileCheck -check-prefix=WEAKATOMSORDER %s < %t2 WEAKORDER: {{[0-9a-c]+}} T f -WEAKATOMSORDER: references: +WEAKATOMSORDER: references: WEAKATOMSORDER: - kind: layout-after WEAKATOMSORDER: offset: 0 WEAKATOMSORDER: target: fn WEAKATOMSORDER: - name: fn -WEAKATOMSORDER: references: +WEAKATOMSORDER: references: WEAKATOMSORDER: - kind: layout-after WEAKATOMSORDER: offset: 0 WEAKATOMSORDER: target: [[CONSTSTRA:[-a-zA-Z0-9_]+]] WEAKATOMSORDER: - ref-name: [[CONSTSTRA]] WEAKATOMSORDER: scope: global -WEAKATOMSORDER: content: [ 55, 48, 89, E5, BF, 00, 00, 00, 00, E8, 00, 00, +WEAKATOMSORDER: content: [ 55, 48, 89, E5, BF, 00, 00, 00, 00, E8, 00, 00, WEAKATOMSORDER: 00, 00, 5D, C3 ] -WEAKATOMSORDER: references: +WEAKATOMSORDER: references: WEAKATOMSORDER: - kind: layout-before WEAKATOMSORDER: offset: 0 WEAKATOMSORDER: target: fn @@ -30,9 +30,9 @@ WEAKATOMSORDER: offset: 0 WEAKATOMSORDER: target: main WEAKATOMSORDER: - name: main WEAKATOMSORDER: scope: global -WEAKATOMSORDER: content: [ 55, 48, 89, E5, B8, 00, 00, 00, 00, E8, 00, 00, +WEAKATOMSORDER: content: [ 55, 48, 89, E5, B8, 00, 00, 00, 00, E8, 00, 00, WEAKATOMSORDER: 00, 00, B8, 00, 00, 00, 00, 5D, C3 ] -WEAKATOMSORDER: references: +WEAKATOMSORDER: references: WEAKATOMSORDER: - kind: R_X86_64_PC32 WEAKATOMSORDER: offset: 10 WEAKATOMSORDER: target: f @@ -41,14 +41,14 @@ WEAKATOMSORDER: - kind: layout-before WEAKATOMSORDER: offset: 0 WEAKATOMSORDER: target: [[CONSTSTRA]] WEAKATOMSORDER: - ref-name: {{[0-9A-Z]+}} -WEAKATOMSORDER: references: +WEAKATOMSORDER: references: WEAKATOMSORDER: - kind: layout-after WEAKATOMSORDER: offset: 0 WEAKATOMSORDER: target: f WEAKATOMSORDER: - name: f WEAKATOMSORDER: scope: global -WEAKATOMSORDER: content: [ 55, 48, 89, E5, BF, 00, 00, 00, 00, E8, 00, 00, +WEAKATOMSORDER: content: [ 55, 48, 89, E5, BF, 00, 00, 00, 00, E8, 00, 00, WEAKATOMSORDER: 00, 00, 5D, C3 ] -WEAKATOMSORDER: references: +WEAKATOMSORDER: references: WEAKATOMSORDER: - kind: layout-before WEAKATOMSORDER: offset: 0 diff --git a/lld/test/elf/X86_64/weak-zero-sized.test b/lld/test/elf/X86_64/weak-zero-sized.test index 496b01717e1..360a5878daf 100644 --- a/lld/test/elf/X86_64/weak-zero-sized.test +++ b/lld/test/elf/X86_64/weak-zero-sized.test @@ -17,7 +17,7 @@ WEAKATOMSORDER: - name: _start WEAKATOMSORDER: scope: global WEAKATOMSORDER: merge: as-weak WEAKATOMSORDER: alignment: 2^2 -WEAKATOMSORDER: references: +WEAKATOMSORDER: references: WEAKATOMSORDER: - kind: layout-after WEAKATOMSORDER: offset: 0 WEAKATOMSORDER: target: [[TARGETB]] @@ -25,7 +25,7 @@ WEAKATOMSORDER: - ref-name: [[TARGETB]] WEAKATOMSORDER: scope: global WEAKATOMSORDER: content: [ C3 ] WEAKATOMSORDER: alignment: 2^2 -WEAKATOMSORDER: references: +WEAKATOMSORDER: references: WEAKATOMSORDER: - kind: layout-before WEAKATOMSORDER: offset: 0 WEAKATOMSORDER: target: [[TARGETA]] diff --git a/lld/test/elf/abs.test b/lld/test/elf/abs.test index 317f87503ec..a48d6db62c0 100644 --- a/lld/test/elf/abs.test +++ b/lld/test/elf/abs.test @@ -11,7 +11,7 @@ # RUN: lld -flavor gnu --output-filetype=yaml -r %p/Inputs/abs-test.i386 | FileCheck -check-prefix=YAML %s -YAML: absolute-atoms: +YAML: absolute-atoms: YAML: - name: absLocalSymbol YAML: value: {{0x[0]+C0000}} YAML: - name: absGlobalSymbol diff --git a/lld/test/elf/archive-elf-forceload.test b/lld/test/elf/archive-elf-forceload.test index a06ef939aaa..a0d11509481 100644 --- a/lld/test/elf/archive-elf-forceload.test +++ b/lld/test/elf/archive-elf-forceload.test @@ -1,5 +1,5 @@ -# Tests the functionality of archive libraries reading -# and resolution +# Tests the functionality of archive libraries reading +# and resolution # Note: The binary files would not be required once we have support to generate # binary archives from textual(yaml) input # @@ -10,13 +10,13 @@ # fn(); # return 0; # } -# +# # archive file # int fn() # { # return 0; # } -# +# # int fn1() # { # return 0; @@ -27,14 +27,14 @@ RUN: lld -flavor gnu -target x86_64-linux -e main %p/Inputs/mainobj.x86_64 \ RUN: --whole-archive %p/Inputs/libfnarchive.a --no-whole-archive --output-filetype=yaml \ RUN: | FileCheck -check-prefix FORCELOAD %s -FORCELOAD: defined-atoms: +FORCELOAD: defined-atoms: FORCELOAD: - name: fn1 FORCELOAD: scope: global FORCELOAD: content: [ 55, 48, 89, E5, B8, 00, 00, 00, 00, 5D, C3 ] FORCELOAD: - name: fn FORCELOAD: scope: global FORCELOAD: content: [ 55, 48, 89, E5, B8, 00, 00, 00, 00, 5D, C3 ] -FORCELOAD: absolute-atoms: +FORCELOAD: absolute-atoms: FORCELOAD: - name: main.c FORCELOAD: value: 0x0 FORCELOAD: - name: fn1.c diff --git a/lld/test/elf/branch.test b/lld/test/elf/branch.test index 961efd71658..5e0b4a5aabf 100644 --- a/lld/test/elf/branch.test +++ b/lld/test/elf/branch.test @@ -6,10 +6,10 @@ RUN: llvm-readobj -h %t1 | FileCheck -check-prefix=hexagon-readobj %s hexagon-yaml: - name: back hexagon-yaml: scope: global -hexagon-yaml: content: [ 00, C0, 00, 7F, 00, C0, 00, 5A, 00, 00, 00, 00, +hexagon-yaml: content: [ 00, C0, 00, 7F, 00, C0, 00, 5A, 00, 00, 00, 00, hexagon-yaml: 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 ] hexagon-yaml: references: -hexagon-yaml: - kind: +hexagon-yaml: - kind: hexagon-yaml: offset: 4 hexagon-yaml: target: target @@ -17,7 +17,7 @@ hexagon-yaml: - name: target hexagon-yaml: scope: global hexagon-yaml: content: [ 00, C0, 00, 5A ] hexagon-yaml: references: -hexagon-yaml: - kind: +hexagon-yaml: - kind: hexagon-yaml: offset: 0 hexagon-yaml: target: back diff --git a/lld/test/elf/check.test b/lld/test/elf/check.test index dfed51e2d5a..50df23fd778 100644 --- a/lld/test/elf/check.test +++ b/lld/test/elf/check.test @@ -1,13 +1,13 @@ -# This tests the basic functionality of ordering data and functions as they +# This tests the basic functionality of ordering data and functions as they # appear in the inputs RUN: lld -flavor gnu -target i386 -e global_func --noinhibit-exec --output-filetype=yaml \ -RUN: %p/Inputs/object-test.elf-i386 -o %t +RUN: %p/Inputs/object-test.elf-i386 -o %t RUN: FileCheck %s -check-prefix ELF-i386 < %t RUN: lld -flavor gnu -target hexagon -e global_func --noinhibit-exec --output-filetype=yaml \ -RUN: %p/Inputs/object-test.elf-hexagon -o %t1 +RUN: %p/Inputs/object-test.elf-hexagon -o %t1 RUN: FileCheck %s -check-prefix ELF-hexagon < %t1 -ELF-i386: defined-atoms: +ELF-i386: defined-atoms: ELF-i386: - name: global_variable ELF-i386: - name: uninitialized_static_variable ELF-i386: - name: global_func @@ -17,9 +17,9 @@ ELF-i386: - name: hidden_func ELF-i386: - name: no_dead_strip ELF-i386: - name: no_special_section_func ELF-i386: - name: special_section_func -ELF-i386: undefined-atoms: +ELF-i386: undefined-atoms: ELF-i386: - name: puts -ELF-i386: absolute-atoms: +ELF-i386: absolute-atoms: ELF-i386: - name: sample.c ELF-hexagon: - name: global_variable @@ -31,9 +31,9 @@ ELF-hexagon: - name: hidden_func ELF-hexagon: - name: no_dead_strip ELF-hexagon: - name: no_special_section_func ELF-hexagon: - name: special_section_func -ELF-hexagon: undefined-atoms: +ELF-hexagon: undefined-atoms: ELF-hexagon: - name: puts -ELF-hexagon: absolute-atoms: +ELF-hexagon: absolute-atoms: ELF-hexagon: - name: sample.c ELF-hexagon: scope: static ELF-hexagon: value: 0x0000000000000000 diff --git a/lld/test/elf/dynamic-undef.test b/lld/test/elf/dynamic-undef.test index afbb0015cfc..01da7e93f12 100644 --- a/lld/test/elf/dynamic-undef.test +++ b/lld/test/elf/dynamic-undef.test @@ -1,5 +1,5 @@ # -# This test creates a executable and tests the options that are used to +# This test creates a executable and tests the options that are used to # to create an executable and a shared library # # This test will fail because there are unresolved symbols from the shared @@ -10,14 +10,14 @@ RUN: FileCheck -check-prefix=EXEC %s < %t1 # This test will pass because of --allow-shlib-undefined RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/tls.x86-64 \ RUN: %p/Inputs/shared.so-x86-64 -o %t -e main --allow-shlib-undefined -# Test creation of shared library, this should pass because we are using +# Test creation of shared library, this should pass because we are using # shared option and by default, dynamic library wouldnot create undefined atoms # from the input shared library RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/tls.x86-64 \ RUN: %p/Inputs/shared.so-x86-64 -o %t -e main -shared -# Test creation of shared library, this should fail because we are using +# Test creation of shared library, this should fail because we are using # shared option setting the options to use the shared library undefines to -# create undefined atoms from the input shared library +# create undefined atoms from the input shared library RUN: not lld -flavor gnu -target x86_64-linux %p/Inputs/tls.x86-64 \ RUN: %p/Inputs/shared.so-x86-64 -o %t -e main -shared \ RUN: --use-shlib-undefines --no-allow-shlib-undefined 2> %t2 diff --git a/lld/test/elf/entry.objtxt b/lld/test/elf/entry.objtxt index 2172cc1cd94..34fcea9c490 100644 --- a/lld/test/elf/entry.objtxt +++ b/lld/test/elf/entry.objtxt @@ -10,21 +10,21 @@ # RUN: lld -flavor gnu -target x86_64 %s -e _entrypoint --noinhibit-exec -o %t1 # RUN: llvm-nm -n %t1 | FileCheck %s -# +# # CHECK: 004001e0 T main # CHECK: 00401080 D _DYNAMIC # CHECK: 00401080 A _end # CHECK: 00401080 A end # CHECK: U _entrypoint -defined-atoms: +defined-atoms: - name: .text alignment: 2^4 section-choice: custom-required section-name: .text - name: main scope: global - content: [ B8, 00, 00, 00, 00, C7, 44, 24, FC, 00, 00, 00, + content: [ B8, 00, 00, 00, 00, C7, 44, 24, FC, 00, 00, 00, 00, C3 ] alignment: 2^4 section-choice: custom-required @@ -44,15 +44,15 @@ defined-atoms: section-name: .note.GNU-stack permissions: r-- - name: .eh_frame - content: [ 14, 00, 00, 00, 00, 00, 00, 00, 01, 7A, 52, 00, - 01, 78, 10, 01, 1B, 0C, 07, 08, 90, 01, 00, 00, - 14, 00, 00, 00, 1C, 00, 00, 00, 00, 00, 00, 00, + content: [ 14, 00, 00, 00, 00, 00, 00, 00, 01, 7A, 52, 00, + 01, 78, 10, 01, 1B, 0C, 07, 08, 90, 01, 00, 00, + 14, 00, 00, 00, 1C, 00, 00, 00, 00, 00, 00, 00, 0E, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 ] alignment: 2^3 section-choice: custom-required section-name: .eh_frame permissions: r-- - references: + references: - kind: R_X86_64_PC32 offset: 32 target: .text diff --git a/lld/test/elf/gotpcrel.test b/lld/test/elf/gotpcrel.test index aa682c32705..ae9cb7ec5ef 100644 --- a/lld/test/elf/gotpcrel.test +++ b/lld/test/elf/gotpcrel.test @@ -12,7 +12,7 @@ YAML: kind: R_X86_64_64 YAML: target: main YAML: name: main -YAML: references: +YAML: references: YAML: kind: R_X86_64_GOTPCREL YAML: offset: 3 YAML: target: [[NULLGOT]] diff --git a/lld/test/elf/hexagon-quickdata-sort.test b/lld/test/elf/hexagon-quickdata-sort.test index 129c0b27956..9880bedab0f 100644 --- a/lld/test/elf/hexagon-quickdata-sort.test +++ b/lld/test/elf/hexagon-quickdata-sort.test @@ -1,5 +1,5 @@ RUN: lld -flavor gnu -target hexagon %p/Inputs/quickdata-sort-test.o.elf-hexagon -o %t1 --noinhibit-exec -RUN: llvm-nm -n %t1 | FileCheck %s -check-prefix=quickdataSort +RUN: llvm-nm -n %t1 | FileCheck %s -check-prefix=quickdataSort quickdataSort: 00002000 D AA1 quickdataSort: 00002001 D A1 diff --git a/lld/test/elf/hexagon-quickdata-sortcommon.test b/lld/test/elf/hexagon-quickdata-sortcommon.test index 6495e135a69..455ba2cfb4b 100644 --- a/lld/test/elf/hexagon-quickdata-sortcommon.test +++ b/lld/test/elf/hexagon-quickdata-sortcommon.test @@ -1,5 +1,5 @@ RUN: lld -flavor gnu -target hexagon -o %t1 --noinhibit-exec \ -RUN: %p/Inputs/quickdata-sortcommon-test.o.elf-hexagon +RUN: %p/Inputs/quickdata-sortcommon-test.o.elf-hexagon RUN: llvm-nm -n %t1 | FileCheck %s -check-prefix=quickdataSortCommon quickdataSortCommon: 00002000 D AA1 diff --git a/lld/test/elf/ifunc.test b/lld/test/elf/ifunc.test index 280388cb5b3..18ecd94828d 100644 --- a/lld/test/elf/ifunc.test +++ b/lld/test/elf/ifunc.test @@ -1,5 +1,5 @@ -# This test checks that IRELATIVE relocations are created for symbols that -# need relocation even for static links. +# This test checks that IRELATIVE relocations are created for symbols that +# need relocation even for static links. RUN: lld -flavor gnu -target x86_64-linux --output-filetype=yaml -r \ RUN: %p/Inputs/ifunc.x86-64 | FileCheck %s @@ -42,7 +42,7 @@ PLT: target: [[PLTNAME]] // Make sure the target of main's relocation is a stub with a PC32 relocation. // This relocation is to the got atom, but you can't really write that check in // FileCheck. -PLT: name: +PLT: name: PLT: type: stub PLT: references PLT: kind: R_X86_64_PC32 diff --git a/lld/test/elf/mergeconstants.test b/lld/test/elf/mergeconstants.test index a8f3ef5d1bf..91bc5daa80f 100644 --- a/lld/test/elf/mergeconstants.test +++ b/lld/test/elf/mergeconstants.test @@ -14,7 +14,7 @@ mergeAtoms: scope: global mergeAtoms: type: data mergeAtoms: content: [ 00, 00, 00, 00, 00, 00, 00, 00 ] mergeAtoms: alignment: 2^3 -mergeAtoms: references: +mergeAtoms: references: mergeAtoms: - kind: R_X86_64_64 mergeAtoms: offset: 3 mergeAtoms: target: [[CONSTANT]] diff --git a/lld/test/elf/options/dynamic-linker.test b/lld/test/elf/options/dynamic-linker.test index fbd2261c110..3d8feeb6e30 100644 --- a/lld/test/elf/options/dynamic-linker.test +++ b/lld/test/elf/options/dynamic-linker.test @@ -1,5 +1,5 @@ # This tests the functionality of specifying dynamic-linker argument in the -# command line +# command line RUN: lld -flavor gnu -target x86_64 --dynamic-linker="/xyz.so" \ RUN: %p/../Inputs/foo.o.x86-64 --noinhibit-exec -o %t RUN: llvm-objdump -s %t | FileCheck -check-prefix=DYNAMICINTERP1 %s diff --git a/lld/test/elf/reloc.test b/lld/test/elf/reloc.test index ed6a2d0d925..e20aa4090f7 100644 --- a/lld/test/elf/reloc.test +++ b/lld/test/elf/reloc.test @@ -1,7 +1,7 @@ RUN: lld -flavor gnu -target i386 --merge-strings -r --output-filetype=yaml \ RUN: %p/Inputs/reloc-test.elf-i386 | FileCheck %s -check-prefix ELF-i386 -ELF-i386: defined-atoms: +ELF-i386: defined-atoms: ELF-i386: - ref-name: [[STRNAMEA:[-a-zA-Z0-9_]+]] ELF-i386: type: constant ELF-i386: content: [ 68, 65, 6C, 6C, 6F, 20, 77, 6F, 72, 6C, 64, 00 ] @@ -10,19 +10,19 @@ ELF-i386: - ref-name: [[STRNAMEB:[-a-zA-Z0-9_]+]] ELF-i386: alignment: 2^4 ELF-i386: section-choice: custom-required ELF-i386: section-name: .text.startup -ELF-i386: references: +ELF-i386: references: ELF-i386: - kind: layout-after ELF-i386: offset: 0 ELF-i386: target: main ELF-i386: - name: main ELF-i386: scope: global -ELF-i386: content: [ 55, 89, E5, 83, E4, F0, 83, EC, 10, C7, 04, 24, -ELF-i386: 00, 00, 00, 00, E8, FC, FF, FF, FF, 31, C0, C9, +ELF-i386: content: [ 55, 89, E5, 83, E4, F0, 83, EC, 10, C7, 04, 24, +ELF-i386: 00, 00, 00, 00, E8, FC, FF, FF, FF, 31, C0, C9, ELF-i386: C3 ] ELF-i386: alignment: 2^4 ELF-i386: section-choice: custom-required ELF-i386: section-name: .text.startup -ELF-i386: references: +ELF-i386: references: ELF-i386: - kind: R_386_32 ELF-i386: offset: 12 ELF-i386: target: [[STRNAMEA]] @@ -33,9 +33,9 @@ ELF-i386: addend: 252 ELF-i386: - kind: layout-before ELF-i386: offset: 0 ELF-i386: target: [[STRNAMEB]] -ELF-i386: undefined-atoms: +ELF-i386: undefined-atoms: ELF-i386: - name: puts -ELF-i386: absolute-atoms: +ELF-i386: absolute-atoms: ELF-i386: - name: test.c ELF-i386: scope: static ELF-i386: value: 0x0000000000000000 diff --git a/lld/test/elf/symbols.test b/lld/test/elf/symbols.test index 15d014232b1..6b2e506b760 100644 --- a/lld/test/elf/symbols.test +++ b/lld/test/elf/symbols.test @@ -1,5 +1,5 @@ -# Tests the functionality of archive libraries reading -# and resolution +# Tests the functionality of archive libraries reading +# and resolution # Note: The binary files would not be required once we have support to generate # binary archives from textual(yaml) input # @@ -8,8 +8,8 @@ # #extern int __bss_start __attribute__ ((weak)); #int a; -#int main() -#{ +#int main() +#{ # return 0; #} # diff --git a/lld/test/elf/tls.test b/lld/test/elf/tls.test index c05fbf6053d..0eb6393fe9d 100644 --- a/lld/test/elf/tls.test +++ b/lld/test/elf/tls.test @@ -8,12 +8,12 @@ RUN: --noinhibit-exec -e main -static && llvm-objdump -d %t | FileCheck %s // Verify that the TLS accesses have the correct offsets. YAML: type: got -YAML: references: +YAML: references: YAML: kind: R_X86_64_TPOFF64 YAML: target: tls2 YAML: name: main -YAML: references: +YAML: references: YAML: kind: R_X86_64_TPOFF32 YAML: offset: 9 YAML: target: tls1 diff --git a/lld/test/elf/tlsAddr.test b/lld/test/elf/tlsAddr.test index e8c97357b61..6bc5e3e9bf7 100644 --- a/lld/test/elf/tlsAddr.test +++ b/lld/test/elf/tlsAddr.test @@ -4,4 +4,4 @@ RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/tlsAddr.x86-64 -static \ RUN: -o %t --noinhibit-exec RUN: llvm-objdump -section-headers %t | FileCheck -check-prefix=CHECKADDR %s -CHECKADDR: {{[0-9]+}} .data 00000000 0000000000401008 DATA +CHECKADDR: {{[0-9]+}} .data 00000000 0000000000401008 DATA |