[llvm-commits] [lld] r160737 - in /lld/trunk/test/elf: ./ Inputs/ Inputs/object-test.elf-hexagon Inputs/object-test.elf-i386 check.objtxt

Sid Manning sidneym at codeaurora.org
Wed Jul 25 10:14:55 PDT 2012


Author: sidneym
Date: Wed Jul 25 12:14:55 2012
New Revision: 160737

URL: http://llvm.org/viewvc/llvm-project?rev=160737&view=rev
Log:
Add test cases for ReaderELF.

Added:
    lld/trunk/test/elf/
    lld/trunk/test/elf/Inputs/
    lld/trunk/test/elf/Inputs/object-test.elf-hexagon   (with props)
    lld/trunk/test/elf/Inputs/object-test.elf-i386   (with props)
    lld/trunk/test/elf/check.objtxt

Added: lld/trunk/test/elf/Inputs/object-test.elf-hexagon
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/Inputs/object-test.elf-hexagon?rev=160737&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lld/trunk/test/elf/Inputs/object-test.elf-hexagon
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lld/trunk/test/elf/Inputs/object-test.elf-i386
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/Inputs/object-test.elf-i386?rev=160737&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lld/trunk/test/elf/Inputs/object-test.elf-i386
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lld/trunk/test/elf/check.objtxt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/check.objtxt?rev=160737&view=auto
==============================================================================
--- lld/trunk/test/elf/check.objtxt (added)
+++ lld/trunk/test/elf/check.objtxt Wed Jul 25 12:14:55 2012
@@ -0,0 +1,144 @@
+RUN: lld-core -reader ELF %p/Inputs/object-test.elf-i386 | FileCheck %s -check-prefix ELF-i386
+RUN: lld-core -reader ELF %p/Inputs/object-test.elf-hexagon | FileCheck %s -check-prefix ELF-hexagon
+
+ELF-i386:atoms:
+ELF-i386:    - name:              global_func
+ELF-i386:      scope:             global
+ELF-i386:      type:              code
+ELF-i386:      section-choice:    custom-required
+ELF-i386:      section-name:      .text
+ELF-i386:      content:           [ 55, 89, E5, 83, EC, 18, C7, 04, 24, 00, 00, 00, 
+ELF-i386:                           00, E8, FC, FF, FF, FF, C9, C3 ]
+
+ELF-i386:    - name:              static_func
+ELF-i386:      type:              code
+ELF-i386:      section-choice:    custom-required
+ELF-i386:      section-name:      .text
+ELF-i386:      content:           [ 55, 89, E5, 83, EC, 18, C7, 04, 24, 07, 00, 00, 
+ELF-i386:                           00, E8, FC, FF, FF, FF, C9, C3 ]
+
+ELF-i386:    - name:              weak_func
+ELF-i386:      scope:             global
+ELF-i386:      merge:             asWeak
+ELF-i386:      type:              code
+ELF-i386:      section-choice:    custom-required
+ELF-i386:      section-name:      .text
+ELF-i386:      content:           [ 55, 89, E5, 83, EC, 18, C7, 04, 24, 0E, 00, 00, 
+ELF-i386:                           00, E8, FC, FF, FF, FF, C9, C3 ]
+
+ELF-i386:    - name:              hidden_func
+ELF-i386:      scope:             hidden
+ELF-i386:      type:              code
+ELF-i386:      section-choice:    custom-required
+ELF-i386:      section-name:      .text
+ELF-i386:      content:           [ 55, 89, E5, 83, EC, 18, C7, 04, 24, 13, 00, 00, 
+ELF-i386:                           00, E8, FC, FF, FF, FF, C9, C3 ]
+
+ELF-i386:    - name:              no_dead_strip
+ELF-i386:      scope:             global
+ELF-i386:      type:              code
+ELF-i386:      section-choice:    custom-required
+ELF-i386:      section-name:      .text
+ELF-i386:      content:           [ 55, 89, E5, 5D, C3 ]
+
+ELF-i386:    - name:              no_special_section_func
+ELF-i386:      scope:             global
+ELF-i386:      type:              code
+ELF-i386:      section-choice:    custom-required
+ELF-i386:      section-name:      .text
+ELF-i386:      content:           [ 55, 89, E5, 5D, C3 ]
+
+ELF-i386:    - name:              special_section_func
+ELF-i386:      scope:             global
+ELF-i386:      type:              code
+ELF-i386:      section-choice:    custom-required
+ELF-i386:      section-name:      special_section
+ELF-i386:      content:           [ 55, 89, E5, 5D, C3 ]
+
+ELF-i386:    - name:              tentative
+ELF-i386:      scope:             global
+ELF-i386:      merge:             asTentative
+ELF-i386:      type:              zero-fill
+
+ELF-i386:    - name:              common_symbol
+ELF-i386:      scope:             global
+ELF-i386:      merge:             asTentative
+ELF-i386:      type:              zero-fill
+
+ELF-i386:    - name:              puts
+ELF-i386:      definition:        undefined
+
+ELF-i386:    - name:              sample.c
+ELF-i386:      definition:        absolute
+ELF-i386:      value:             0x0
+
+ELF-hexagon:atoms:
+ELF-hexagon:    - name:              global_func
+ELF-hexagon:      scope:             global
+ELF-hexagon:      type:              code
+ELF-hexagon:      section-choice:    custom-required
+ELF-hexagon:      section-name:      .text
+ELF-hexagon:      content:           [ 00, C0, 9D, A0, 00, 40, 00, 00, 00, C0, 00, 78, 
+ELF-hexagon:                           00, C0, 00, 5A, 1E, C0, 1E, 96 ]
+
+ELF-hexagon:    - name:              static_func
+ELF-hexagon:      type:              code
+ELF-hexagon:      section-choice:    custom-required
+ELF-hexagon:      section-name:      .text
+ELF-hexagon:      content:           [ 00, C0, 9D, A0, 00, 40, 00, 00, 00, C0, 00, 78, 
+ELF-hexagon:                           00, C0, 00, 5A, 1E, C0, 1E, 96 ]
+
+ELF-hexagon:    - name:              weak_func
+ELF-hexagon:      scope:             global
+ELF-hexagon:      merge:             asWeak
+ELF-hexagon:      type:              code
+ELF-hexagon:      section-choice:    custom-required
+ELF-hexagon:      section-name:      .text
+ELF-hexagon:      content:           [ 00, C0, 9D, A0, 00, 40, 00, 00, 00, C0, 00, 78, 
+ELF-hexagon:                           00, C0, 00, 5A, 1E, C0, 1E, 96 ]
+
+ELF-hexagon:    - name:              hidden_func
+ELF-hexagon:      scope:             hidden
+ELF-hexagon:      type:              code
+ELF-hexagon:      section-choice:    custom-required
+ELF-hexagon:      section-name:      .text
+ELF-hexagon:      content:           [ 00, C0, 9D, A0, 00, 40, 00, 00, 00, C0, 00, 78, 
+ELF-hexagon:                           00, C0, 00, 5A, 1E, C0, 1E, 96 ]
+
+ELF-hexagon:    - name:              no_dead_strip
+ELF-hexagon:      scope:             global
+ELF-hexagon:      type:              code
+ELF-hexagon:      section-choice:    custom-required
+ELF-hexagon:      section-name:      .text
+ELF-hexagon:      content:           [ 00, C0, 9D, A0, 1E, C0, 1E, 96 ]
+
+ELF-hexagon:    - name:              no_special_section_func
+ELF-hexagon:      scope:             global
+ELF-hexagon:      type:              code
+ELF-hexagon:      section-choice:    custom-required
+ELF-hexagon:      section-name:      .text
+ELF-hexagon:      content:           [ 00, C0, 9D, A0, 1E, C0, 1E, 96 ]
+
+ELF-hexagon:    - name:              special_section_func
+ELF-hexagon:      scope:             global
+ELF-hexagon:      type:              code
+ELF-hexagon:      section-choice:    custom-required
+ELF-hexagon:      section-name:      special_section
+ELF-hexagon:      content:           [ 00, C0, 9D, A0, 1E, C0, 1E, 96 ]
+
+ELF-hexagon:    - name:              tentative
+ELF-hexagon:      scope:             global
+ELF-hexagon:      merge:             asTentative
+ELF-hexagon:      type:              zero-fill
+
+ELF-hexagon:    - name:              common_symbol
+ELF-hexagon:      scope:             global
+ELF-hexagon:      merge:             asTentative
+ELF-hexagon:      type:              zero-fill
+
+ELF-hexagon:    - name:              puts
+ELF-hexagon:      definition:        undefined
+
+ELF-hexagon:    - name:              sample.c
+ELF-hexagon:      definition:        absolute
+ELF-hexagon:      value:             0x0





More information about the llvm-commits mailing list