[llvm] 6827934 - [Precommit][RISCV] Test for unsupported extensions in llvm-objdump

Anton Afanasyev via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 9 01:23:04 PST 2022


Author: Elena Lepilkina
Date: 2022-12-09T12:22:09+03:00
New Revision: 6827934ee0afcf9478f36291b3b5e947fe6d0036

URL: https://github.com/llvm/llvm-project/commit/6827934ee0afcf9478f36291b3b5e947fe6d0036
DIFF: https://github.com/llvm/llvm-project/commit/6827934ee0afcf9478f36291b3b5e947fe6d0036.diff

LOG: [Precommit][RISCV] Test for unsupported extensions in llvm-objdump

Precommit for https://reviews.llvm.org/D139553

Added: 
    llvm/test/tools/llvm-objdump/ELF/RISCV/extensions.test

Modified: 
    

Removed: 
    


################################################################################
diff  --git a/llvm/test/tools/llvm-objdump/ELF/RISCV/extensions.test b/llvm/test/tools/llvm-objdump/ELF/RISCV/extensions.test
new file mode 100644
index 0000000000000..1a19138d97b5d
--- /dev/null
+++ b/llvm/test/tools/llvm-objdump/ELF/RISCV/extensions.test
@@ -0,0 +1,788 @@
+## Handle RISCV extensions.
+## Encode an zbc arch feature into an object file and try to decode it.
+##
+## The object file was created with -march=rv32imafdc_zbc
+
+# Fail as unsupported extension is provided
+# RUN: yaml2obj %s -D BITS=32 -o %t.32.o
+# RUN: llvm-objdump -d --no-show-raw-insn %t.32.o \
+# RUN:   | FileCheck %s --check-prefixes=DISASM
+
+# DISASM-LABEL: <clmul>
+# DISASM: <unknown>
+
+# DISASM-LABEL: <clmulh>
+# DISASM: <unknown>
+
+# DISASM-LABEL: <clmulr>
+# DISASM: <unknown>
+
+--- !ELF
+FileHeader:
+  Class:           ELFCLASS32
+  Data:            ELFDATA2LSB
+  Type:            ET_DYN
+  Machine:         EM_RISCV
+  Flags:           [ EF_RISCV_RVC, EF_RISCV_FLOAT_ABI_DOUBLE ]
+  Entry:           0x380
+ProgramHeaders:
+  - Type:            PT_PHDR
+    Flags:           [ PF_R ]
+    VAddr:           0x34
+    Align:           0x4
+  - Type:            PT_INTERP
+    Flags:           [ PF_R ]
+    FirstSec:        .interp
+    LastSec:         .interp
+    VAddr:           0x174
+  - Type:            0x70000003
+    Flags:           [ PF_R ]
+    FirstSec:        .riscv.attributes
+    LastSec:         .riscv.attributes
+  - Type:            PT_LOAD
+    Flags:           [ PF_X, PF_R ]
+    FirstSec:        .interp
+    LastSec:         .eh_frame
+    Align:           0x1000
+  - Type:            PT_LOAD
+    Flags:           [ PF_W, PF_R ]
+    FirstSec:        .preinit_array
+    LastSec:         .bss
+    VAddr:           0x1F04
+    Align:           0x1000
+  - Type:            PT_DYNAMIC
+    Flags:           [ PF_W, PF_R ]
+    FirstSec:        .dynamic
+    LastSec:         .dynamic
+    VAddr:           0x1F10
+    Align:           0x4
+  - Type:            PT_NOTE
+    Flags:           [ PF_R ]
+    FirstSec:        .note.ABI-tag
+    LastSec:         .note.ABI-tag
+    VAddr:           0x198
+    Align:           0x4
+  - Type:            PT_GNU_EH_FRAME
+    Flags:           [ PF_R ]
+    FirstSec:        .eh_frame_hdr
+    LastSec:         .eh_frame_hdr
+    VAddr:           0x560
+    Align:           0x4
+  - Type:            PT_GNU_STACK
+    Flags:           [ PF_W, PF_R ]
+    Align:           0x10
+  - Type:            PT_GNU_RELRO
+    Flags:           [ PF_R ]
+    FirstSec:        .preinit_array
+    LastSec:         .dynamic
+    VAddr:           0x1F04
+Sections:
+  - Name:            .interp
+    Type:            SHT_PROGBITS
+    Flags:           [ SHF_ALLOC ]
+    Address:         0x174
+    AddressAlign:    0x1
+    Content:         2F6C69622F6C642D6C696E75782D726973637633322D696C703332642E736F2E3100
+  - Name:            .note.ABI-tag
+    Type:            SHT_NOTE
+    Flags:           [ SHF_ALLOC ]
+    Address:         0x198
+    AddressAlign:    0x4
+    Notes:
+      - Name:            GNU
+        Desc:            '00000000050000000400000000000000'
+        Type:            NT_VERSION
+  - Name:            .gnu.hash
+    Type:            SHT_GNU_HASH
+    Flags:           [ SHF_ALLOC ]
+    Address:         0x1B8
+    Link:            .dynsym
+    AddressAlign:    0x4
+    EntSize:         0x4
+    Header:
+      SymNdx:          0x6
+      Shift2:          0x5
+    BloomFilter:     [ 0x8000400 ]
+    HashBuckets:     [ 0x6, 0x0 ]
+    HashValues:      [ 0x7C9A7F6B ]
+  - Name:            .dynsym
+    Type:            SHT_DYNSYM
+    Flags:           [ SHF_ALLOC ]
+    Address:         0x1D8
+    Link:            .dynstr
+    AddressAlign:    0x4
+  - Name:            .dynstr
+    Type:            SHT_STRTAB
+    Flags:           [ SHF_ALLOC ]
+    Address:         0x248
+    AddressAlign:    0x1
+  - Name:            .gnu.version
+    Type:            SHT_GNU_versym
+    Flags:           [ SHF_ALLOC ]
+    Address:         0x2B6
+    Link:            .dynsym
+    AddressAlign:    0x2
+    Entries:         [ 0, 0, 1, 2, 2, 1, 1 ]
+  - Name:            .gnu.version_r
+    Type:            SHT_GNU_verneed
+    Flags:           [ SHF_ALLOC ]
+    Address:         0x2C4
+    Link:            .dynstr
+    AddressAlign:    0x4
+    Dependencies:
+      - Version:         1
+        File:            libc.so.6
+        Entries:
+          - Name:            GLIBC_2.33
+            Hash:            110530995
+            Flags:           0
+            Other:           2
+  - Name:            .rela.dyn
+    Type:            SHT_RELA
+    Flags:           [ SHF_ALLOC ]
+    Address:         0x2E4
+    Link:            .dynsym
+    AddressAlign:    0x4
+    Relocations:
+      - Offset:          0x1F04
+        Type:            R_RISCV_RELATIVE
+        Addend:          938
+      - Offset:          0x1F08
+        Type:            R_RISCV_RELATIVE
+        Addend:          1132
+      - Offset:          0x1F0C
+        Type:            R_RISCV_RELATIVE
+        Addend:          1052
+      - Offset:          0x2000
+        Type:            R_RISCV_RELATIVE
+        Addend:          8192
+      - Offset:          0x201C
+        Type:            R_RISCV_RELATIVE
+        Addend:          1244
+      - Offset:          0x2014
+        Symbol:          _ITM_deregisterTMCloneTable
+        Type:            R_RISCV_32
+      - Offset:          0x2018
+        Symbol:          __cxa_finalize
+        Type:            R_RISCV_32
+      - Offset:          0x2020
+        Symbol:          _ITM_registerTMCloneTable
+        Type:            R_RISCV_32
+  - Name:            .rela.plt
+    Type:            SHT_RELA
+    Flags:           [ SHF_ALLOC, SHF_INFO_LINK ]
+    Address:         0x344
+    Link:            .dynsym
+    AddressAlign:    0x4
+    Info:            .got
+    Relocations:
+      - Offset:          0x200C
+        Symbol:          __libc_start_main
+        Type:            R_RISCV_JUMP_SLOT
+  - Name:            .plt
+    Type:            SHT_PROGBITS
+    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
+    Address:         0x350
+    AddressAlign:    0x10
+    EntSize:         0x10
+    Content:         972300003303C34103AE43CB130343FD938243CB1353230083A2420067000E00172E0000032ECEC967030E0013000000
+  - Name:            .text
+    Type:            SHT_PROGBITS
+    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
+    Address:         0x380
+    AddressAlign:    0x4
+    Content:         2D20AA8717250000032585C982455000137101FF9706000093862617170700001307271C0A88E93702909721000093816145828000000000172500001305C5C497270000938747C4638AA7009727000083A787C463840700678007006780000017250000130545C2972500009385C5C1B385A54093D7254093D5F501B385F50093D51540638A05009727000083A787C1638407006780070067800000130101FF2324810017240000130444C08347040023261100639407029727000083A707BE63880700172500000325C5BBE7800700EFF09FF6930710002300F4008320C1000324810013010101678000006FF05FF7411106C622C40008232AA4FE2328B4FE032544FF832504FF3315B50AB240224441018280411106C622C40008232AA4FE2328B4FE032544FF832504FF3335B50AB240224441018280411106C622C40008232AA4FE2328B4FE032544FF832504FF3325B50AB240224441018280011106CE22CC001001452326A4FE232AA4FE05458945BD3FAA850325C4FE2328B4FEF240624405618280011122CC4AC8172400001304C49F172900001309899F3309894006CE26CA4EC652C456C213592940630F0900AA892E8AB28A81441C405686D2854E85850482971104E31999FEF2406244D2444249B249224A924A056182808280
+  - Name:            .eh_frame_hdr
+    Type:            SHT_PROGBITS
+    Flags:           [ SHF_ALLOC ]
+    Address:         0x560
+    AddressAlign:    0x4
+    Content:         011B033B100000000100000020FEFFFF28000000
+  - Name:            .eh_frame
+    Type:            SHT_PROGBITS
+    Flags:           [ SHF_ALLOC ]
+    Address:         0x574
+    AddressAlign:    0x4
+    Content:         1000000000000000037A5200017C01011B0D02001000000018000000F0FDFFFF2A0000000007010000000000
+  - Name:            .preinit_array
+    Type:            SHT_PREINIT_ARRAY
+    Flags:           [ SHF_WRITE, SHF_ALLOC ]
+    Address:         0x1F04
+    AddressAlign:    0x1
+    EntSize:         0x4
+    Offset:          0xF04
+    Content:         '00000000'
+  - Name:            .init_array
+    Type:            SHT_INIT_ARRAY
+    Flags:           [ SHF_WRITE, SHF_ALLOC ]
+    Address:         0x1F08
+    AddressAlign:    0x4
+    EntSize:         0x4
+    Content:         '00000000'
+  - Name:            .fini_array
+    Type:            SHT_FINI_ARRAY
+    Flags:           [ SHF_WRITE, SHF_ALLOC ]
+    Address:         0x1F0C
+    AddressAlign:    0x4
+    EntSize:         0x4
+    Content:         '00000000'
+  - Name:            .dynamic
+    Type:            SHT_DYNAMIC
+    Flags:           [ SHF_WRITE, SHF_ALLOC ]
+    Address:         0x1F10
+    Link:            .dynstr
+    AddressAlign:    0x4
+    Entries:
+      - Tag:             DT_NEEDED
+        Value:           0x22
+      - Tag:             DT_PREINIT_ARRAY
+        Value:           0x1F04
+      - Tag:             DT_PREINIT_ARRAYSZ
+        Value:           0x4
+      - Tag:             DT_INIT_ARRAY
+        Value:           0x1F08
+      - Tag:             DT_INIT_ARRAYSZ
+        Value:           0x4
+      - Tag:             DT_FINI_ARRAY
+        Value:           0x1F0C
+      - Tag:             DT_FINI_ARRAYSZ
+        Value:           0x4
+      - Tag:             DT_GNU_HASH
+        Value:           0x1B8
+      - Tag:             DT_STRTAB
+        Value:           0x248
+      - Tag:             DT_SYMTAB
+        Value:           0x1D8
+      - Tag:             DT_STRSZ
+        Value:           0x6D
+      - Tag:             DT_SYMENT
+        Value:           0x10
+      - Tag:             DT_DEBUG
+        Value:           0x0
+      - Tag:             DT_PLTGOT
+        Value:           0x2004
+      - Tag:             DT_PLTRELSZ
+        Value:           0xC
+      - Tag:             DT_PLTREL
+        Value:           0x7
+      - Tag:             DT_JMPREL
+        Value:           0x344
+      - Tag:             DT_RELA
+        Value:           0x2E4
+      - Tag:             DT_RELASZ
+        Value:           0x6C
+      - Tag:             DT_RELAENT
+        Value:           0xC
+      - Tag:             DT_FLAGS_1
+        Value:           0x8000000
+      - Tag:             DT_VERNEED
+        Value:           0x2C4
+      - Tag:             DT_VERNEEDNUM
+        Value:           0x1
+      - Tag:             DT_VERSYM
+        Value:           0x2B6
+      - Tag:             DT_RELACOUNT
+        Value:           0x5
+      - Tag:             DT_NULL
+        Value:           0x0
+      - Tag:             DT_NULL
+        Value:           0x0
+      - Tag:             DT_NULL
+        Value:           0x0
+      - Tag:             DT_NULL
+        Value:           0x0
+      - Tag:             DT_NULL
+        Value:           0x0
+  - Name:            .data
+    Type:            SHT_PROGBITS
+    Flags:           [ SHF_WRITE, SHF_ALLOC ]
+    Address:         0x2000
+    AddressAlign:    0x4
+    Content:         '00000000'
+  - Name:            .got
+    Type:            SHT_PROGBITS
+    Flags:           [ SHF_WRITE, SHF_ALLOC ]
+    Address:         0x2004
+    AddressAlign:    0x4
+    EntSize:         0x4
+    Content:         FFFFFFFF0000000050030000101F000000000000000000000000000000000000
+  - Name:            .sdata
+    Type:            SHT_PROGBITS
+    Flags:           [ SHF_WRITE, SHF_ALLOC ]
+    Address:         0x2024
+    AddressAlign:    0x4
+    Content:         '01000200'
+  - Name:            .bss
+    Type:            SHT_NOBITS
+    Flags:           [ SHF_WRITE, SHF_ALLOC ]
+    Address:         0x2028
+    AddressAlign:    0x1
+    Size:            0x4
+  - Name:            .comment
+    Type:            SHT_PROGBITS
+    Flags:           [ SHF_MERGE, SHF_STRINGS ]
+    AddressAlign:    0x1
+    EntSize:         0x1
+    Content:         4743433A2028474E55292031312E312E3000636C616E672076657273696F6E2031362E302E302028687474703A2F2F6769746C61622E6465762E73796E7461636F72652E636F6D2F746F6F6C732F6C6C766D2F6C6C766D2D70726F6A6563742E67697420396233353161663039623966333866393266376334343862643631663531336166663363306135322900
+  - Name:            .riscv.attributes
+    Type:            SHT_RISCV_ATTRIBUTES
+    AddressAlign:    0x1
+    Content:         413B000000726973637600013100000004100572763332693270305F6D3270305F613270305F663270305F643270305F633270305F7A626331703000
+  - Name:            .debug_aranges
+    Type:            SHT_PROGBITS
+    AddressAlign:    0x8
+  - Name:            .debug_info
+    Type:            SHT_PROGBITS
+    AddressAlign:    0x1
+    Content:         200000000500010400000000010000000080030000420000000008000000410000000180A904000005000104140000000D350100001D52000000000000009200000004010863020000040207BE020000040407120100000404070D01000004010665020000052B0100000126171E000000040205A7000000059C00000001281C25000000053A0300000129146C0000000E0405696E74000577000000012A162C000000040805FA00000004080708010000040405FF0000000F040401086C020000053C030000021A1360000000052D01000003181341000000059E000000031914540000000579000000031A14730000000550000000041F12C1000000100C04D304090E010000087A02000004D5040ECD00000000089002000004D6040ECD00000004081403000004D7040ECD0000000800115803000004D80403D900000009960000002B0100000A2C0000000300040804500200000410044B0200001206030000091E10940000000557020000051C1C250000000B900300001006B278010000064E03000006B405450100000006B602000006B50A7D0100000200035101000009960000008D0100000A2C0000000D000151010000028D01000007FA0200000397010000019701000002A1010000079903000003AB01000001AB01000002B501000007D102000003BF01000001BF01000002C901000007ED02000003D301000001D301000002DD0100000B840300001007F22802000006CC00000007F4054501000000062803000007F50FBB03000002063103000007F614A103000004067102000007F9133C040000080003E701000001E7010000022D02000013830200001C070101088C02000008A002000007030105450100000008DC0000000704010FBB0300000208820000000705010EC10000000408AC02000007060115220400000808BE0000000707010EC100000018000337020000013702000002910200000768000000039B020000019B02000002A502000007B100000003AF02000001AF02000002B9020000075B00000003C302000001C302000002CD02000007EE00000003D702000001D702000002E1020000079000000003EB02000001EB02000002F5020000071B03000003FF02000001FF020000020903000001780100000213030000019C010000021D03000001B0010000022703000001C4010000023103000001D8010000023B03000001280200000245030000018C020000024F03000001A0020000025903000001B4020000026303000001C8020000026D03000001DC020000027703000001F002000002810300000104030000028B03000005E3020000071E12C10000000B3203000004071FBB030000069902000007210F9503000000000544030000077B12B5000000141007DA05F20300000C6F030000DC0AF20300000C1F010000DD0B020400000C63030000DE0B120400000009A9000000020400000A2C0000000F0009B5000000120400000A2C000000070009C1000000220400000A2C00000003000BAD0200001007D83C04000006E600000007DF09C70300000000091E0000004C0400000A2C0000000700040102DD020000152008420E8404000006D700000008440E0E0100000006460200000845081B0100000C06A703000008460B8904000010000353040000099D000000990400000A2C0000000300167A03000008470384040000040503980100000039000000050001043901000001350100001D0E010000000000000801000002AC03000001170B37000000050324200000030405696E740004300000000029010000050001046E01000007CE0300001D0A01000000000000060500005A0000003E010000080405696E740009E504000002D1173E0000000A2D00000001040712010000010805FA0000000110044B0200000B5E0000005E0000000C0002630000000D7800000003260000000378000000037800000000027D00000002820000000101086C02000006BB0300002D5300000006200500002F530000000EEC0400000160015E05000002000000019C0F0B0500000144010605000058000000019C040105000016260000000C000000041B05000023780000003100000004FC0400003078000000560000001006050000015710390000007B000000112E0500001E00000012690001580F2D00000087000000134605000005015A02830005015B02840005015C02850000000000
+  - Name:            .debug_abbrev
+    Type:            SHT_PROGBITS
+    AddressAlign:    0x1
+    Content:         01110010171101120F030E1B0E250E1305000000010F000B21044913000002370049130000032600491300000424000B0B3E0B030E0000051600030E3A0B3B0B390B49130000060D00030E3A0B3B0B390B4913380B0000071300030E3C190000080D00030E3A0B3B05390B4913380B00000901014913011300000A210049132F0B00000B1301030E0B0B3A0B3B0B392108011300000C0D00030E3A21073B0B390B491300000D1101250E130B031F1B1F101700000E24000B0B3E0B030800000F0F000B0B00001013010B0B3A0B3B05390B01130000111600030E3A0B3B05390B49130000123400030E3A0B3B0B390B49133F190000131301030E0B0B3A0B3B05390B011300001417010B0B3A0B3B0B390B011300001513010B0B3A0B3B0B390B01130000163400030E3A0B3B0B390B491388010B0218000000011101250E130B031F1B1F10170000023400030E3A0B3B0B390B49133F19021800000324000B0B3E0B0308000004260049130000000124000B0B3E0B030E0000020F000B21044913000003050049130000040500030E3A21013B21C400390B49130217000005490002187E180000063400030E3A21013B0B39210F49133F193C190000071101250E130B031F1B1F11011206101700000824000B0B3E0B03080000091600030E3A0B3B0B390B491300000A2600491300000B01014913011300000C210000000D15012719011300000E2E003F19030E3A0B3B0B390B27191101120640187A1900000F2E013F19030E3A0B3B0B390B27191101120640187A190000103400030E3A0B3B0B390B491302170000110B0111011206000012340003083A0B3B0B390B4913021700001348017D01000000
+  - Name:            .debug_line
+    Type:            SHT_PROGBITS
+    AddressAlign:    0x1
+    Content:         8E000000050004002E000000010101FB0E0D00010101010000000100000101011F02000000003900000002011F020F024A000000004A0000000100050280030000033101030109020001030209020001030109080001030109020001030109020001030109040001030109080001030109080001030209020001030109020001030C0902000103020908000109020000010172000000050004006A000000010101FB0E0D00010101010000000100000101011F07000000005D0000006B000000730000007A0000009A000000AA00000002011F020F0A5200000000C000000001C800000002D600000002E500000003EB00000002F600000004FF000000055200000000040100000632000000050004002A000000010101FB0E0D00010101010000000100000101011F010000000002011F020F020E010000000E01000000FA0000000500040033000000010101FB0E0D00010101010000000100000101011F02000000001501000002011F020F030A010000000A01000000850100000105010005020605000003C400010503031209000001050106036E0900000105280312090600010501036E0914000105280312090A000105030603010904000105080300090000010518030009000001050F060300090A00010507000204030603010902000105080002040306030009000001052100020403037F0908000105080002040303010902000105210002040306037F0902000105180002040303000900000105010603020906000106030709120001030A09000001090200000101
+  - Name:            .debug_frame
+    Type:            SHT_PROGBITS
+    AddressAlign:    0x4
+    Content:         0C000000FFFFFFFF0300017C010D020030000000000000000605000058000000420E2044880292045E8101890393059406950764C142C842C942D242D342D442D5420E000C000000000000005E05000002000000
+  - Name:            .debug_line_str
+    Type:            SHT_PROGBITS
+    Flags:           [ SHF_MERGE, SHF_STRINGS ]
+    AddressAlign:    0x1
+    EntSize:         0x1
+    Content:         2F686F6D652F6275696C6465722F73632D6964652F72697363762D676E752D746F6F6C636861696E2F72697363762D676C6962632F637375002E2E2F737973646570732F72697363760073746172742E53006162692D6E6F74652E63002E2E2F706F7369782F62697473002E2E2F62697473002E2E2F656C66002E2E2F737973646570732F756E69782F737973762F6C696E75782F62697473002E2E2F696E65742F6E6574696E6574002E2E2F737973646570732F72697363762F6E70746C0074797065732E6800737464696E742D696E746E2E6800737464696E742D75696E746E2E6800656C662E6800736F636B616464722E6800736F636B65742E6800696E2E6800746C732E6800656C662D696E69742E63002F686F6D652F6275696C6465722F73632D6964652F6F75742F72697363762D6763632D31312E312E302D67343737343433652D32313132333054313035362F6C69622F6763632F726973637636342D756E6B6E6F776E2D6C696E75782D676E752F31312E312E302F696E636C756465007374646465662E6800
+  - Name:            .debug_loclists
+    Type:            SHT_PROGBITS
+    AddressAlign:    0x1
+    Content:         B3000000050004000000000007060500003A050000015A073A0500004C0500000163074C0500005E05000004A3015A9F0007060500003A050000015B073A0500004C0500000164074C0500005E05000004A3015B9F0007060500003A050000015C073A0500004C0500000165074C0500005E05000004A3015C9F00072E05000054050000016200072E0500003A05000002309F073A05000044050000015907440500004605000003797F9F07460500004C050000015900
+Symbols:
+  - Name:            .interp
+    Type:            STT_SECTION
+    Section:         .interp
+    Value:           0x174
+  - Name:            .note.ABI-tag
+    Type:            STT_SECTION
+    Section:         .note.ABI-tag
+    Value:           0x198
+  - Name:            .gnu.hash
+    Type:            STT_SECTION
+    Section:         .gnu.hash
+    Value:           0x1B8
+  - Name:            .dynsym
+    Type:            STT_SECTION
+    Section:         .dynsym
+    Value:           0x1D8
+  - Name:            .dynstr
+    Type:            STT_SECTION
+    Section:         .dynstr
+    Value:           0x248
+  - Name:            .gnu.version
+    Type:            STT_SECTION
+    Section:         .gnu.version
+    Value:           0x2B6
+  - Name:            .gnu.version_r
+    Type:            STT_SECTION
+    Section:         .gnu.version_r
+    Value:           0x2C4
+  - Name:            .rela.dyn
+    Type:            STT_SECTION
+    Section:         .rela.dyn
+    Value:           0x2E4
+  - Name:            .rela.plt
+    Type:            STT_SECTION
+    Section:         .rela.plt
+    Value:           0x344
+  - Name:            .plt
+    Type:            STT_SECTION
+    Section:         .plt
+    Value:           0x350
+  - Name:            .text
+    Type:            STT_SECTION
+    Section:         .text
+    Value:           0x380
+  - Name:            .eh_frame_hdr
+    Type:            STT_SECTION
+    Section:         .eh_frame_hdr
+    Value:           0x560
+  - Name:            .eh_frame
+    Type:            STT_SECTION
+    Section:         .eh_frame
+    Value:           0x574
+  - Name:            .preinit_array
+    Type:            STT_SECTION
+    Section:         .preinit_array
+    Value:           0x1F04
+  - Name:            .init_array
+    Type:            STT_SECTION
+    Section:         .init_array
+    Value:           0x1F08
+  - Name:            .fini_array
+    Type:            STT_SECTION
+    Section:         .fini_array
+    Value:           0x1F0C
+  - Name:            .dynamic
+    Type:            STT_SECTION
+    Section:         .dynamic
+    Value:           0x1F10
+  - Name:            .data
+    Type:            STT_SECTION
+    Section:         .data
+    Value:           0x2000
+  - Name:            .got
+    Type:            STT_SECTION
+    Section:         .got
+    Value:           0x2004
+  - Name:            .sdata
+    Type:            STT_SECTION
+    Section:         .sdata
+    Value:           0x2024
+  - Name:            .bss
+    Type:            STT_SECTION
+    Section:         .bss
+    Value:           0x2028
+  - Name:            .comment
+    Type:            STT_SECTION
+    Section:         .comment
+  - Name:            .riscv.attributes
+    Type:            STT_SECTION
+    Section:         .riscv.attributes
+  - Name:            .debug_aranges
+    Type:            STT_SECTION
+    Section:         .debug_aranges
+  - Name:            .debug_info
+    Type:            STT_SECTION
+    Section:         .debug_info
+  - Name:            .debug_abbrev
+    Type:            STT_SECTION
+    Section:         .debug_abbrev
+  - Name:            .debug_line
+    Type:            STT_SECTION
+    Section:         .debug_line
+  - Name:            .debug_frame
+    Type:            STT_SECTION
+    Section:         .debug_frame
+  - Name:            .debug_str
+    Type:            STT_SECTION
+    Section:         .debug_str
+  - Name:            .debug_line_str
+    Type:            STT_SECTION
+    Section:         .debug_line_str
+  - Name:            .debug_loclists
+    Type:            STT_SECTION
+    Section:         .debug_loclists
+  - Name:            abi-note.c
+    Type:            STT_FILE
+    Index:           SHN_ABS
+  - Name:            __abi_tag
+    Type:            STT_OBJECT
+    Section:         .note.ABI-tag
+    Value:           0x198
+    Size:            0x20
+  - Name:            start.os
+    Type:            STT_FILE
+    Index:           SHN_ABS
+  - Name:            '$x'
+    Section:         .text
+    Value:           0x380
+  - Name:            load_gp
+    Section:         .text
+    Value:           0x3AA
+  - Name:            init.c
+    Type:            STT_FILE
+    Index:           SHN_ABS
+  - Name:            crtstuff.c
+    Type:            STT_FILE
+    Index:           SHN_ABS
+  - Name:            deregister_tm_clones
+    Type:            STT_FUNC
+    Section:         .text
+    Value:           0x3B8
+  - Name:            '$x (1)'
+    Section:         .text
+    Value:           0x3B8
+  - Name:            register_tm_clones
+    Type:            STT_FUNC
+    Section:         .text
+    Value:           0x3E0
+  - Name:            __do_global_dtors_aux
+    Type:            STT_FUNC
+    Section:         .text
+    Value:           0x41C
+  - Name:            completed.0
+    Type:            STT_OBJECT
+    Section:         .bss
+    Value:           0x2028
+    Size:            0x1
+  - Name:            __do_global_dtors_aux_fini_array_entry
+    Type:            STT_OBJECT
+    Section:         .fini_array
+    Value:           0x1F0C
+  - Name:            frame_dummy
+    Type:            STT_FUNC
+    Section:         .text
+    Value:           0x46C
+  - Name:            __frame_dummy_init_array_entry
+    Type:            STT_OBJECT
+    Section:         .init_array
+    Value:           0x1F08
+  - Name:            riscv32-zbc.c
+    Type:            STT_FILE
+    Index:           SHN_ABS
+  - Name:            elf-init.c
+    Type:            STT_FILE
+    Index:           SHN_ABS
+  - Name:            '$x (2)'
+    Section:         .text
+    Value:           0x506
+  - Name:            'crtstuff.c (1)'
+    Type:            STT_FILE
+    Index:           SHN_ABS
+  - Name:            __FRAME_END__
+    Type:            STT_OBJECT
+    Section:         .eh_frame
+    Value:           0x59C
+  - Type:            STT_FILE
+    Index:           SHN_ABS
+  - Name:            _PROCEDURE_LINKAGE_TABLE_
+    Type:            STT_OBJECT
+    Index:           SHN_ABS
+    Value:           0x350
+  - Name:            __init_array_end
+    Section:         .init_array
+    Value:           0x1F0C
+  - Name:            _DYNAMIC
+    Type:            STT_OBJECT
+    Index:           SHN_ABS
+    Value:           0x1F10
+  - Name:            __init_array_start
+    Section:         .init_array
+    Value:           0x1F08
+  - Name:            __GNU_EH_FRAME_HDR
+    Section:         .eh_frame_hdr
+    Value:           0x560
+  - Name:            _GLOBAL_OFFSET_TABLE_
+    Type:            STT_OBJECT
+    Index:           SHN_ABS
+    Value:           0x2010
+  - Name:            clmulh
+    Type:            STT_FUNC
+    Section:         .text
+    Binding:         STB_GLOBAL
+    Value:           0x494
+    Size:            0x24
+  - Name:            __libc_csu_fini
+    Type:            STT_FUNC
+    Section:         .text
+    Binding:         STB_GLOBAL
+    Value:           0x55E
+    Size:            0x2
+  - Name:            _ITM_deregisterTMCloneTable
+    Binding:         STB_WEAK
+  - Name:            data_start
+    Section:         .data
+    Binding:         STB_WEAK
+    Value:           0x2000
+  - Name:            __BSS_END__
+    Section:         .bss
+    Binding:         STB_GLOBAL
+    Value:           0x202C
+  - Name:            _edata
+    Section:         .sdata
+    Binding:         STB_GLOBAL
+    Value:           0x2028
+  - Name:            __SDATA_BEGIN__
+    Section:         .sdata
+    Binding:         STB_GLOBAL
+    Value:           0x2024
+  - Name:            __DATA_BEGIN__
+    Section:         .data
+    Binding:         STB_GLOBAL
+    Value:           0x2000
+  - Name:            clmul
+    Type:            STT_FUNC
+    Section:         .text
+    Binding:         STB_GLOBAL
+    Value:           0x470
+    Size:            0x24
+  - Name:            clmulr
+    Type:            STT_FUNC
+    Section:         .text
+    Binding:         STB_GLOBAL
+    Value:           0x4B8
+    Size:            0x24
+  - Name:            __data_start
+    Section:         .data
+    Binding:         STB_GLOBAL
+    Value:           0x2000
+  - Name:            '__cxa_finalize at GLIBC_2.33'
+    Type:            STT_FUNC
+    Binding:         STB_WEAK
+  - Name:            __dso_handle
+    Type:            STT_OBJECT
+    Section:         .data
+    Binding:         STB_GLOBAL
+    Value:           0x2000
+    Other:           [ STV_HIDDEN ]
+  - Name:            _IO_stdin_used
+    Type:            STT_OBJECT
+    Section:         .sdata
+    Binding:         STB_GLOBAL
+    Value:           0x2024
+    Size:            0x4
+  - Name:            '__libc_start_main at GLIBC_2.33'
+    Type:            STT_FUNC
+    Binding:         STB_GLOBAL
+  - Name:            __libc_csu_init
+    Type:            STT_FUNC
+    Section:         .text
+    Binding:         STB_GLOBAL
+    Value:           0x506
+    Size:            0x58
+  - Name:            _end
+    Section:         .bss
+    Binding:         STB_GLOBAL
+    Value:           0x202C
+  - Name:            _start
+    Type:            STT_FUNC
+    Section:         .text
+    Binding:         STB_GLOBAL
+    Value:           0x380
+    Size:            0x2A
+  - Name:            '__global_pointer$'
+    Index:           SHN_ABS
+    Binding:         STB_GLOBAL
+    Value:           0x2800
+  - Name:            __bss_start
+    Section:         .bss
+    Binding:         STB_GLOBAL
+    Value:           0x2028
+  - Name:            main
+    Type:            STT_FUNC
+    Section:         .text
+    Binding:         STB_GLOBAL
+    Value:           0x4DC
+    Size:            0x2A
+  - Name:            __TMC_END__
+    Type:            STT_OBJECT
+    Section:         .got
+    Binding:         STB_GLOBAL
+    Value:           0x2004
+    Other:           [ STV_HIDDEN ]
+  - Name:            _ITM_registerTMCloneTable
+    Binding:         STB_WEAK
+DynamicSymbols:
+  - Name:            .text
+    Type:            STT_SECTION
+    Section:         .text
+    Value:           0x380
+  - Name:            _ITM_deregisterTMCloneTable
+    Binding:         STB_WEAK
+  - Name:            __cxa_finalize
+    Type:            STT_FUNC
+    Binding:         STB_WEAK
+  - Name:            __libc_start_main
+    Type:            STT_FUNC
+    Binding:         STB_GLOBAL
+  - Name:            _ITM_registerTMCloneTable
+    Binding:         STB_WEAK
+  - Name:            main
+    Type:            STT_FUNC
+    Section:         .text
+    Binding:         STB_GLOBAL
+    Value:           0x4DC
+    Size:            0x2A
+DWARF:
+  debug_str:
+    - start.S
+    - '/home/builder/sc-ide/riscv-gnu-toolchain/riscv-glibc/csu'
+    - GNU AS 2.37.50
+    - Elf32_Word
+    - sockaddr_iso
+    - sockaddr_inarp
+    - __uint32_t
+    - sin6_flowinfo
+    - sockaddr_un
+    - __uint16_t
+    - short int
+    - sockaddr_ipx
+    - sin6_scope_id
+    - sin_family
+    - nhdr
+    - sin6_port
+    - __in6_u
+    - sockaddr_ns
+    - long long int
+    - long long unsigned int
+    - __u6_addr16
+    - __uint8_t
+    - 'GNU C11 11.1.0 -march=rv32imafdc -mabi=ilp32d -mcmodel=medany -march=rv32imafdc -mabi=ilp32d -mtune=rocket -march=rv32imafdc -march=rv32imafdc -g -O2 -std=gnu11 -fgnu89-inline -fmerge-all-constants -frounding-math -fmath-errno -fno-stack-protector -ftls-model=initial-exec'
+    - name
+    - long double
+    - sa_family_t
+    - unsigned char
+    - sin_zero
+    - n_namesz
+    - sockaddr_in6
+    - n_descsz
+    - s_addr
+    - sin6_family
+    - sin6_addr
+    - sa_data
+    - short unsigned int
+    - sockaddr_dl
+    - _Bool
+    - in_addr_t
+    - sockaddr_eon
+    - sockaddr_at
+    - __thread_self
+    - n_type
+    - sockaddr_x25
+    - sin_port
+    - sin_addr
+    - __int32_t
+    - in_port_t
+    - sa_family
+    - Elf32_Nhdr
+    - __u6_addr32
+    - __u6_addr8
+    - __abi_tag
+    - sockaddr_in
+    - sockaddr
+    - sockaddr_ax25
+    - desc
+    - _IO_stdin_used
+    - __init_array_start
+    - 'GNU C11 11.1.0 -march=rv32imafdc -mabi=ilp32d -mcmodel=medany -march=rv32imafdc -mabi=ilp32d -mtune=rocket -march=rv32imafdc -march=rv32imafdc -g -O2 -std=gnu11 -fgnu89-inline -fmerge-all-constants -frounding-math -fmath-errno -fPIC -fno-stack-protector -ftls-model=initial-exec'
+    - size_t
+    - __libc_csu_fini
+    - envp
+    - argc
+    - size
+    - __libc_csu_init
+    - argv
+    - __init_array_end
+  debug_aranges:
+    - Length:          0x1C
+      Version:         2
+      CuOffset:        0x0
+      AddressSize:     0x4
+      Descriptors:
+        - Address:         0x380
+          Length:          0x34
+    - Length:          0x14
+      Version:         2
+      CuOffset:        0x24
+      AddressSize:     0x4
+    - Length:          0x14
+      Version:         2
+      CuOffset:        0x4D1
+      AddressSize:     0x4
+    - Length:          0x1C
+      Version:         2
+      CuOffset:        0x50E
+      AddressSize:     0x4
+      Descriptors:
+        - Address:         0x506
+          Length:          0x5A
\ No newline at end of file


        


More information about the llvm-commits mailing list