| ; RUN: llc -filetype=obj %p/Inputs/locals-duplicate1.ll -o %t1.o |
| ; RUN: llc -filetype=obj %p/Inputs/locals-duplicate2.ll -o %t2.o |
| ; RUN: wasm-ld --export-dynamic --no-entry -o %t.wasm %t1.o %t2.o |
| ; RUN: obj2yaml %t.wasm | FileCheck %s |
| |
| ; CHECK: --- !WASM |
| ; CHECK-NEXT: FileHeader: |
| ; CHECK-NEXT: Version: 0x1 |
| ; CHECK-NEXT: Sections: |
| ; CHECK-NEXT: - Type: TYPE |
| ; CHECK-NEXT: Signatures: |
| ; CHECK-NEXT: - Index: 0 |
| ; CHECK-NEXT: ParamTypes: [] |
| ; CHECK-NEXT: ReturnTypes: |
| ; CHECK-NEXT: - I32 |
| ; CHECK-NEXT: - Type: FUNCTION |
| ; CHECK-NEXT: FunctionTypes: [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| ; CHECK-NEXT: 0, 0 ] |
| ; CHECK-NEXT: - Type: TABLE |
| ; CHECK-NEXT: Tables: |
| ; CHECK-NEXT: - Index: 0 |
| ; CHECK-NEXT: ElemType: FUNCREF |
| ; CHECK-NEXT: Limits: |
| ; CHECK-NEXT: Flags: [ HAS_MAX ] |
| ; CHECK-NEXT: Minimum: 0x7 |
| ; CHECK-NEXT: Maximum: 0x7 |
| ; CHECK-NEXT: - Type: MEMORY |
| ; CHECK-NEXT: Memories: |
| ; CHECK-NEXT: - Minimum: 0x2 |
| ; CHECK-NEXT: - Type: GLOBAL |
| ; CHECK-NEXT: Globals: |
| ; CHECK-NEXT: - Index: 0 |
| ; CHECK-NEXT: Type: I32 |
| ; CHECK-NEXT: Mutable: true |
| ; CHECK-NEXT: InitExpr: |
| ; CHECK-NEXT: Opcode: I32_CONST |
| ; CHECK-NEXT: Value: 66592 |
| ; CHECK-NEXT: - Index: 1 |
| ; CHECK-NEXT: Type: I32 |
| ; CHECK-NEXT: Mutable: false |
| ; CHECK-NEXT: InitExpr: |
| ; CHECK-NEXT: Opcode: I32_CONST |
| ; CHECK-NEXT: Value: 1028 |
| ; CHECK-NEXT: - Index: 2 |
| ; CHECK-NEXT: Type: I32 |
| ; CHECK-NEXT: Mutable: false |
| ; CHECK-NEXT: InitExpr: |
| ; CHECK-NEXT: Opcode: I32_CONST |
| ; CHECK-NEXT: Value: 1036 |
| ; CHECK-NEXT: - Type: EXPORT |
| ; CHECK-NEXT: Exports: |
| ; CHECK-NEXT: - Name: memory |
| ; CHECK-NEXT: Kind: MEMORY |
| ; CHECK-NEXT: Index: 0 |
| ; CHECK-NEXT: - Name: colliding_func2 |
| ; CHECK-NEXT: Kind: FUNCTION |
| ; CHECK-NEXT: Index: 1 |
| ; CHECK-NEXT: - Name: get_global1A |
| ; CHECK-NEXT: Kind: FUNCTION |
| ; CHECK-NEXT: Index: 3 |
| ; CHECK-NEXT: - Name: get_global2A |
| ; CHECK-NEXT: Kind: FUNCTION |
| ; CHECK-NEXT: Index: 4 |
| ; CHECK-NEXT: - Name: colliding_global2 |
| ; CHECK-NEXT: Kind: GLOBAL |
| ; CHECK-NEXT: Index: 1 |
| ; CHECK-NEXT: - Name: get_global3A |
| ; CHECK-NEXT: Kind: FUNCTION |
| ; CHECK-NEXT: Index: 5 |
| ; CHECK-NEXT: - Name: get_func1A |
| ; CHECK-NEXT: Kind: FUNCTION |
| ; CHECK-NEXT: Index: 6 |
| ; CHECK-NEXT: - Name: get_func2A |
| ; CHECK-NEXT: Kind: FUNCTION |
| ; CHECK-NEXT: Index: 7 |
| ; CHECK-NEXT: - Name: get_func3A |
| ; CHECK-NEXT: Kind: FUNCTION |
| ; CHECK-NEXT: Index: 8 |
| ; CHECK-NEXT: - Name: colliding_func1 |
| ; CHECK-NEXT: Kind: FUNCTION |
| ; CHECK-NEXT: Index: 9 |
| ; CHECK-NEXT: - Name: get_global1B |
| ; CHECK-NEXT: Kind: FUNCTION |
| ; CHECK-NEXT: Index: 12 |
| ; CHECK-NEXT: - Name: colliding_global1 |
| ; CHECK-NEXT: Kind: GLOBAL |
| ; CHECK-NEXT: Index: 2 |
| ; CHECK-NEXT: - Name: get_global2B |
| ; CHECK-NEXT: Kind: FUNCTION |
| ; CHECK-NEXT: Index: 13 |
| ; CHECK-NEXT: - Name: get_global3B |
| ; CHECK-NEXT: Kind: FUNCTION |
| ; CHECK-NEXT: Index: 14 |
| ; CHECK-NEXT: - Name: get_func1B |
| ; CHECK-NEXT: Kind: FUNCTION |
| ; CHECK-NEXT: Index: 15 |
| ; CHECK-NEXT: - Name: get_func2B |
| ; CHECK-NEXT: Kind: FUNCTION |
| ; CHECK-NEXT: Index: 16 |
| ; CHECK-NEXT: - Name: get_func3B |
| ; CHECK-NEXT: Kind: FUNCTION |
| ; CHECK-NEXT: Index: 17 |
| ; CHECK-NEXT: - Type: ELEM |
| ; CHECK-NEXT: Segments: |
| ; CHECK-NEXT: - Offset: |
| ; CHECK-NEXT: Opcode: I32_CONST |
| ; CHECK-NEXT: Value: 1 |
| ; CHECK-NEXT: Functions: [ 0, 1, 2, 9, 10, 11 ] |
| ; CHECK-NEXT: - Type: CODE |
| ; CHECK-NEXT: Functions: |
| ; CHECK-NEXT: - Index: 0 |
| ; CHECK-NEXT: Locals: |
| ; CHECK-NEXT: Body: 41020B |
| ; CHECK-NEXT: - Index: 1 |
| ; CHECK-NEXT: Locals: |
| ; CHECK-NEXT: Body: 41020B |
| ; CHECK-NEXT: - Index: 2 |
| ; CHECK-NEXT: Locals: |
| ; CHECK-NEXT: Body: 41020B |
| ; CHECK-NEXT: - Index: 3 |
| ; CHECK-NEXT: Locals: |
| ; CHECK-NEXT: Body: 4180888080000B |
| ; CHECK-NEXT: - Index: 4 |
| ; CHECK-NEXT: Locals: |
| ; CHECK-NEXT: Body: 4184888080000B |
| ; CHECK-NEXT: - Index: 5 |
| ; CHECK-NEXT: Locals: |
| ; CHECK-NEXT: Body: 4188888080000B |
| ; CHECK-NEXT: - Index: 6 |
| ; CHECK-NEXT: Locals: |
| ; CHECK-NEXT: Body: 4181808080000B |
| ; CHECK-NEXT: - Index: 7 |
| ; CHECK-NEXT: Locals: |
| ; CHECK-NEXT: Body: 4182808080000B |
| ; CHECK-NEXT: - Index: 8 |
| ; CHECK-NEXT: Locals: |
| ; CHECK-NEXT: Body: 4183808080000B |
| ; CHECK-NEXT: - Index: 9 |
| ; CHECK-NEXT: Locals: |
| ; CHECK-NEXT: Body: 41020B |
| ; CHECK-NEXT: - Index: 10 |
| ; CHECK-NEXT: Locals: |
| ; CHECK-NEXT: Body: 41020B |
| ; CHECK-NEXT: - Index: 11 |
| ; CHECK-NEXT: Locals: |
| ; CHECK-NEXT: Body: 41020B |
| ; CHECK-NEXT: - Index: 12 |
| ; CHECK-NEXT: Locals: |
| ; CHECK-NEXT: Body: 418C888080000B |
| ; CHECK-NEXT: - Index: 13 |
| ; CHECK-NEXT: Locals: |
| ; CHECK-NEXT: Body: 4190888080000B |
| ; CHECK-NEXT: - Index: 14 |
| ; CHECK-NEXT: Locals: |
| ; CHECK-NEXT: Body: 4194888080000B |
| ; CHECK-NEXT: - Index: 15 |
| ; CHECK-NEXT: Locals: |
| ; CHECK-NEXT: Body: 4184808080000B |
| ; CHECK-NEXT: - Index: 16 |
| ; CHECK-NEXT: Locals: |
| ; CHECK-NEXT: Body: 4185808080000B |
| ; CHECK-NEXT: - Index: 17 |
| ; CHECK-NEXT: Locals: |
| ; CHECK-NEXT: Body: 4186808080000B |
| ; CHECK-NEXT: - Type: DATA |
| ; CHECK-NEXT: Segments: |
| ; CHECK-NEXT: - SectionOffset: 7 |
| ; CHECK-NEXT: InitFlags: 0 |
| ; CHECK-NEXT: Offset: |
| ; CHECK-NEXT: Opcode: I32_CONST |
| ; CHECK-NEXT: Value: 1024 |
| ; CHECK-NEXT: Content: '010000000100000001000000010000000100000001000000' |
| ; CHECK-NEXT: - Type: CUSTOM |
| ; CHECK-NEXT: Name: name |
| ; CHECK-NEXT: FunctionNames: |
| ; CHECK-NEXT: - Index: 0 |
| ; CHECK-NEXT: Name: colliding_func1 |
| ; CHECK-NEXT: - Index: 1 |
| ; CHECK-NEXT: Name: colliding_func2 |
| ; CHECK-NEXT: - Index: 2 |
| ; CHECK-NEXT: Name: colliding_func3 |
| ; CHECK-NEXT: - Index: 3 |
| ; CHECK-NEXT: Name: get_global1A |
| ; CHECK-NEXT: - Index: 4 |
| ; CHECK-NEXT: Name: get_global2A |
| ; CHECK-NEXT: - Index: 5 |
| ; CHECK-NEXT: Name: get_global3A |
| ; CHECK-NEXT: - Index: 6 |
| ; CHECK-NEXT: Name: get_func1A |
| ; CHECK-NEXT: - Index: 7 |
| ; CHECK-NEXT: Name: get_func2A |
| ; CHECK-NEXT: - Index: 8 |
| ; CHECK-NEXT: Name: get_func3A |
| ; CHECK-NEXT: - Index: 9 |
| ; CHECK-NEXT: Name: colliding_func1 |
| ; CHECK-NEXT: - Index: 10 |
| ; CHECK-NEXT: Name: colliding_func2 |
| ; CHECK-NEXT: - Index: 11 |
| ; CHECK-NEXT: Name: colliding_func3 |
| ; CHECK-NEXT: - Index: 12 |
| ; CHECK-NEXT: Name: get_global1B |
| ; CHECK-NEXT: - Index: 13 |
| ; CHECK-NEXT: Name: get_global2B |
| ; CHECK-NEXT: - Index: 14 |
| ; CHECK-NEXT: Name: get_global3B |
| ; CHECK-NEXT: - Index: 15 |
| ; CHECK-NEXT: Name: get_func1B |
| ; CHECK-NEXT: - Index: 16 |
| ; CHECK-NEXT: Name: get_func2B |
| ; CHECK-NEXT: - Index: 17 |
| ; CHECK-NEXT: Name: get_func3B |
| ; CHECK-NEXT: GlobalNames: |
| ; CHECK-NEXT: - Index: 0 |
| ; CHECK-NEXT: Name: __stack_pointer |
| ; CHECK-NEXT: DataSegmentNames: |
| ; CHECK-NEXT: - Index: 0 |
| ; CHECK-NEXT: Name: .data |
| ; CHECK-NEXT: ... |
| |
| |
| ; RUN: wasm-ld -r --no-entry -o %t.reloc.wasm %t1.o %t2.o |
| ; RUN: obj2yaml %t.reloc.wasm | FileCheck -check-prefix=RELOC %s |
| |
| ; RELOC: --- !WASM |
| ; RELOC-NEXT: FileHeader: |
| ; RELOC-NEXT: Version: 0x1 |
| ; RELOC-NEXT: Sections: |
| ; RELOC-NEXT: - Type: TYPE |
| ; RELOC-NEXT: Signatures: |
| ; RELOC-NEXT: - Index: 0 |
| ; RELOC-NEXT: ParamTypes: [] |
| ; RELOC-NEXT: ReturnTypes: |
| ; RELOC-NEXT: - I32 |
| ; RELOC-NEXT: - Type: IMPORT |
| ; RELOC-NEXT: Imports: |
| ; RELOC-NEXT: - Module: env |
| ; RELOC-NEXT: Field: __indirect_function_table |
| ; RELOC-NEXT: Kind: TABLE |
| ; RELOC-NEXT: Table: |
| ; RELOC-NEXT: Index: 0 |
| ; RELOC-NEXT: ElemType: FUNCREF |
| ; RELOC-NEXT: Limits: |
| ; RELOC-NEXT: Minimum: 0x7 |
| ; RELOC-NEXT: - Type: FUNCTION |
| ; RELOC-NEXT: FunctionTypes: [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| ; RELOC-NEXT: 0, 0 ] |
| ; RELOC-NEXT: - Type: MEMORY |
| ; RELOC-NEXT: Memories: |
| ; RELOC-NEXT: - Minimum: 0x1 |
| ; RELOC-NEXT: - Type: ELEM |
| ; RELOC-NEXT: Segments: |
| ; RELOC-NEXT: - Offset: |
| ; RELOC-NEXT: Opcode: I32_CONST |
| ; RELOC-NEXT: Value: 1 |
| ; RELOC-NEXT: Functions: [ 0, 1, 2, 9, 10, 11 ] |
| ; RELOC-NEXT: - Type: CODE |
| ; RELOC-NEXT: Relocations: |
| ; RELOC-NEXT: - Type: R_WASM_MEMORY_ADDR_SLEB |
| ; RELOC-NEXT: Index: 19 |
| ; RELOC-NEXT: Offset: 0x13 |
| ; RELOC-NEXT: - Type: R_WASM_MEMORY_ADDR_SLEB |
| ; RELOC-NEXT: Index: 3 |
| ; RELOC-NEXT: Offset: 0x1C |
| ; RELOC-NEXT: - Type: R_WASM_MEMORY_ADDR_SLEB |
| ; RELOC-NEXT: Index: 20 |
| ; RELOC-NEXT: Offset: 0x25 |
| ; RELOC-NEXT: - Type: R_WASM_TABLE_INDEX_SLEB |
| ; RELOC-NEXT: Index: 17 |
| ; RELOC-NEXT: Offset: 0x2E |
| ; RELOC-NEXT: - Type: R_WASM_TABLE_INDEX_SLEB |
| ; RELOC-NEXT: Index: 0 |
| ; RELOC-NEXT: Offset: 0x37 |
| ; RELOC-NEXT: - Type: R_WASM_TABLE_INDEX_SLEB |
| ; RELOC-NEXT: Index: 18 |
| ; RELOC-NEXT: Offset: 0x40 |
| ; RELOC-NEXT: - Type: R_WASM_MEMORY_ADDR_SLEB |
| ; RELOC-NEXT: Index: 11 |
| ; RELOC-NEXT: Offset: 0x58 |
| ; RELOC-NEXT: - Type: R_WASM_MEMORY_ADDR_SLEB |
| ; RELOC-NEXT: Index: 23 |
| ; RELOC-NEXT: Offset: 0x61 |
| ; RELOC-NEXT: - Type: R_WASM_MEMORY_ADDR_SLEB |
| ; RELOC-NEXT: Index: 24 |
| ; RELOC-NEXT: Offset: 0x6A |
| ; RELOC-NEXT: - Type: R_WASM_TABLE_INDEX_SLEB |
| ; RELOC-NEXT: Index: 9 |
| ; RELOC-NEXT: Offset: 0x73 |
| ; RELOC-NEXT: - Type: R_WASM_TABLE_INDEX_SLEB |
| ; RELOC-NEXT: Index: 21 |
| ; RELOC-NEXT: Offset: 0x7C |
| ; RELOC-NEXT: - Type: R_WASM_TABLE_INDEX_SLEB |
| ; RELOC-NEXT: Index: 22 |
| ; RELOC-NEXT: Offset: 0x85 |
| ; RELOC-NEXT: Functions: |
| ; RELOC-NEXT: - Index: 0 |
| ; RELOC-NEXT: Locals: |
| ; RELOC-NEXT: Body: 41020B |
| ; RELOC-NEXT: - Index: 1 |
| ; RELOC-NEXT: Locals: |
| ; RELOC-NEXT: Body: 41020B |
| ; RELOC-NEXT: - Index: 2 |
| ; RELOC-NEXT: Locals: |
| ; RELOC-NEXT: Body: 41020B |
| ; RELOC-NEXT: - Index: 3 |
| ; RELOC-NEXT: Locals: |
| ; RELOC-NEXT: Body: 4180808080000B |
| ; RELOC-NEXT: - Index: 4 |
| ; RELOC-NEXT: Locals: |
| ; RELOC-NEXT: Body: 4188808080000B |
| ; RELOC-NEXT: - Index: 5 |
| ; RELOC-NEXT: Locals: |
| ; RELOC-NEXT: Body: 4190808080000B |
| ; RELOC-NEXT: - Index: 6 |
| ; RELOC-NEXT: Locals: |
| ; RELOC-NEXT: Body: 4181808080000B |
| ; RELOC-NEXT: - Index: 7 |
| ; RELOC-NEXT: Locals: |
| ; RELOC-NEXT: Body: 4182808080000B |
| ; RELOC-NEXT: - Index: 8 |
| ; RELOC-NEXT: Locals: |
| ; RELOC-NEXT: Body: 4183808080000B |
| ; RELOC-NEXT: - Index: 9 |
| ; RELOC-NEXT: Locals: |
| ; RELOC-NEXT: Body: 41020B |
| ; RELOC-NEXT: - Index: 10 |
| ; RELOC-NEXT: Locals: |
| ; RELOC-NEXT: Body: 41020B |
| ; RELOC-NEXT: - Index: 11 |
| ; RELOC-NEXT: Locals: |
| ; RELOC-NEXT: Body: 41020B |
| ; RELOC-NEXT: - Index: 12 |
| ; RELOC-NEXT: Locals: |
| ; RELOC-NEXT: Body: 4184808080000B |
| ; RELOC-NEXT: - Index: 13 |
| ; RELOC-NEXT: Locals: |
| ; RELOC-NEXT: Body: 418C808080000B |
| ; RELOC-NEXT: - Index: 14 |
| ; RELOC-NEXT: Locals: |
| ; RELOC-NEXT: Body: 4194808080000B |
| ; RELOC-NEXT: - Index: 15 |
| ; RELOC-NEXT: Locals: |
| ; RELOC-NEXT: Body: 4184808080000B |
| ; RELOC-NEXT: - Index: 16 |
| ; RELOC-NEXT: Locals: |
| ; RELOC-NEXT: Body: 4185808080000B |
| ; RELOC-NEXT: - Index: 17 |
| ; RELOC-NEXT: Locals: |
| ; RELOC-NEXT: Body: 4186808080000B |
| ; RELOC-NEXT: - Type: DATA |
| ; RELOC-NEXT: Segments: |
| ; RELOC-NEXT: - SectionOffset: 6 |
| ; RELOC-NEXT: InitFlags: 0 |
| ; RELOC-NEXT: Offset: |
| ; RELOC-NEXT: Opcode: I32_CONST |
| ; RELOC-NEXT: Value: 0 |
| ; RELOC-NEXT: Content: '0100000001000000' |
| ; RELOC-NEXT: - SectionOffset: 19 |
| ; RELOC-NEXT: InitFlags: 0 |
| ; RELOC-NEXT: Offset: |
| ; RELOC-NEXT: Opcode: I32_CONST |
| ; RELOC-NEXT: Value: 8 |
| ; RELOC-NEXT: Content: '0100000001000000' |
| ; RELOC-NEXT: - SectionOffset: 32 |
| ; RELOC-NEXT: InitFlags: 0 |
| ; RELOC-NEXT: Offset: |
| ; RELOC-NEXT: Opcode: I32_CONST |
| ; RELOC-NEXT: Value: 16 |
| ; RELOC-NEXT: Content: '0100000001000000' |
| ; RELOC-NEXT: - Type: CUSTOM |
| ; RELOC-NEXT: Name: linking |
| ; RELOC-NEXT: Version: 2 |
| ; RELOC-NEXT: SymbolTable: |
| ; RELOC-NEXT: - Index: 0 |
| ; RELOC-NEXT: Kind: FUNCTION |
| ; RELOC-NEXT: Name: colliding_func2 |
| ; RELOC-NEXT: Flags: [ ] |
| ; RELOC-NEXT: Function: 1 |
| ; RELOC-NEXT: - Index: 1 |
| ; RELOC-NEXT: Kind: FUNCTION |
| ; RELOC-NEXT: Name: get_global1A |
| ; RELOC-NEXT: Flags: [ ] |
| ; RELOC-NEXT: Function: 3 |
| ; RELOC-NEXT: - Index: 2 |
| ; RELOC-NEXT: Kind: FUNCTION |
| ; RELOC-NEXT: Name: get_global2A |
| ; RELOC-NEXT: Flags: [ ] |
| ; RELOC-NEXT: Function: 4 |
| ; RELOC-NEXT: - Index: 3 |
| ; RELOC-NEXT: Kind: DATA |
| ; RELOC-NEXT: Name: colliding_global2 |
| ; RELOC-NEXT: Flags: [ ] |
| ; RELOC-NEXT: Segment: 1 |
| ; RELOC-NEXT: Size: 4 |
| ; RELOC-NEXT: - Index: 4 |
| ; RELOC-NEXT: Kind: FUNCTION |
| ; RELOC-NEXT: Name: get_global3A |
| ; RELOC-NEXT: Flags: [ ] |
| ; RELOC-NEXT: Function: 5 |
| ; RELOC-NEXT: - Index: 5 |
| ; RELOC-NEXT: Kind: FUNCTION |
| ; RELOC-NEXT: Name: get_func1A |
| ; RELOC-NEXT: Flags: [ ] |
| ; RELOC-NEXT: Function: 6 |
| ; RELOC-NEXT: - Index: 6 |
| ; RELOC-NEXT: Kind: FUNCTION |
| ; RELOC-NEXT: Name: get_func2A |
| ; RELOC-NEXT: Flags: [ ] |
| ; RELOC-NEXT: Function: 7 |
| ; RELOC-NEXT: - Index: 7 |
| ; RELOC-NEXT: Kind: FUNCTION |
| ; RELOC-NEXT: Name: get_func3A |
| ; RELOC-NEXT: Flags: [ ] |
| ; RELOC-NEXT: Function: 8 |
| ; RELOC-NEXT: - Index: 8 |
| ; RELOC-NEXT: Kind: TABLE |
| ; RELOC-NEXT: Name: __indirect_function_table |
| ; RELOC-NEXT: Flags: [ UNDEFINED, NO_STRIP ] |
| ; RELOC-NEXT: Table: 0 |
| ; RELOC-NEXT: - Index: 9 |
| ; RELOC-NEXT: Kind: FUNCTION |
| ; RELOC-NEXT: Name: colliding_func1 |
| ; RELOC-NEXT: Flags: [ ] |
| ; RELOC-NEXT: Function: 9 |
| ; RELOC-NEXT: - Index: 10 |
| ; RELOC-NEXT: Kind: FUNCTION |
| ; RELOC-NEXT: Name: get_global1B |
| ; RELOC-NEXT: Flags: [ ] |
| ; RELOC-NEXT: Function: 12 |
| ; RELOC-NEXT: - Index: 11 |
| ; RELOC-NEXT: Kind: DATA |
| ; RELOC-NEXT: Name: colliding_global1 |
| ; RELOC-NEXT: Flags: [ ] |
| ; RELOC-NEXT: Segment: 0 |
| ; RELOC-NEXT: Offset: 4 |
| ; RELOC-NEXT: Size: 4 |
| ; RELOC-NEXT: - Index: 12 |
| ; RELOC-NEXT: Kind: FUNCTION |
| ; RELOC-NEXT: Name: get_global2B |
| ; RELOC-NEXT: Flags: [ ] |
| ; RELOC-NEXT: Function: 13 |
| ; RELOC-NEXT: - Index: 13 |
| ; RELOC-NEXT: Kind: FUNCTION |
| ; RELOC-NEXT: Name: get_global3B |
| ; RELOC-NEXT: Flags: [ ] |
| ; RELOC-NEXT: Function: 14 |
| ; RELOC-NEXT: - Index: 14 |
| ; RELOC-NEXT: Kind: FUNCTION |
| ; RELOC-NEXT: Name: get_func1B |
| ; RELOC-NEXT: Flags: [ ] |
| ; RELOC-NEXT: Function: 15 |
| ; RELOC-NEXT: - Index: 15 |
| ; RELOC-NEXT: Kind: FUNCTION |
| ; RELOC-NEXT: Name: get_func2B |
| ; RELOC-NEXT: Flags: [ ] |
| ; RELOC-NEXT: Function: 16 |
| ; RELOC-NEXT: - Index: 16 |
| ; RELOC-NEXT: Kind: FUNCTION |
| ; RELOC-NEXT: Name: get_func3B |
| ; RELOC-NEXT: Flags: [ ] |
| ; RELOC-NEXT: Function: 17 |
| ; RELOC-NEXT: - Index: 17 |
| ; RELOC-NEXT: Kind: FUNCTION |
| ; RELOC-NEXT: Name: colliding_func1 |
| ; RELOC-NEXT: Flags: [ BINDING_LOCAL ] |
| ; RELOC-NEXT: Function: 0 |
| ; RELOC-NEXT: - Index: 18 |
| ; RELOC-NEXT: Kind: FUNCTION |
| ; RELOC-NEXT: Name: colliding_func3 |
| ; RELOC-NEXT: Flags: [ BINDING_LOCAL ] |
| ; RELOC-NEXT: Function: 2 |
| ; RELOC-NEXT: - Index: 19 |
| ; RELOC-NEXT: Kind: DATA |
| ; RELOC-NEXT: Name: colliding_global1 |
| ; RELOC-NEXT: Flags: [ BINDING_LOCAL ] |
| ; RELOC-NEXT: Segment: 0 |
| ; RELOC-NEXT: Size: 4 |
| ; RELOC-NEXT: - Index: 20 |
| ; RELOC-NEXT: Kind: DATA |
| ; RELOC-NEXT: Name: colliding_global3 |
| ; RELOC-NEXT: Flags: [ BINDING_LOCAL ] |
| ; RELOC-NEXT: Segment: 2 |
| ; RELOC-NEXT: Size: 4 |
| ; RELOC-NEXT: - Index: 21 |
| ; RELOC-NEXT: Kind: FUNCTION |
| ; RELOC-NEXT: Name: colliding_func2 |
| ; RELOC-NEXT: Flags: [ BINDING_LOCAL ] |
| ; RELOC-NEXT: Function: 10 |
| ; RELOC-NEXT: - Index: 22 |
| ; RELOC-NEXT: Kind: FUNCTION |
| ; RELOC-NEXT: Name: colliding_func3 |
| ; RELOC-NEXT: Flags: [ BINDING_LOCAL ] |
| ; RELOC-NEXT: Function: 11 |
| ; RELOC-NEXT: - Index: 23 |
| ; RELOC-NEXT: Kind: DATA |
| ; RELOC-NEXT: Name: colliding_global2 |
| ; RELOC-NEXT: Flags: [ BINDING_LOCAL ] |
| ; RELOC-NEXT: Segment: 1 |
| ; RELOC-NEXT: Offset: 4 |
| ; RELOC-NEXT: Size: 4 |
| ; RELOC-NEXT: - Index: 24 |
| ; RELOC-NEXT: Kind: DATA |
| ; RELOC-NEXT: Name: colliding_global3 |
| ; RELOC-NEXT: Flags: [ BINDING_LOCAL ] |
| ; RELOC-NEXT: Segment: 2 |
| ; RELOC-NEXT: Offset: 4 |
| ; RELOC-NEXT: Size: 4 |
| ; RELOC-NEXT: SegmentInfo: |
| ; RELOC-NEXT: - Index: 0 |
| ; RELOC-NEXT: Name: .data.colliding_global1 |
| ; RELOC-NEXT: Alignment: 2 |
| ; RELOC-NEXT: Flags: [ ] |
| ; RELOC-NEXT: - Index: 1 |
| ; RELOC-NEXT: Name: .data.colliding_global2 |
| ; RELOC-NEXT: Alignment: 2 |
| ; RELOC-NEXT: Flags: [ ] |
| ; RELOC-NEXT: - Index: 2 |
| ; RELOC-NEXT: Name: .data.colliding_global3 |
| ; RELOC-NEXT: Alignment: 2 |
| ; RELOC-NEXT: Flags: [ ] |
| ; RELOC-NEXT: - Type: CUSTOM |
| ; RELOC-NEXT: Name: name |
| ; RELOC-NEXT: FunctionNames: |
| ; RELOC-NEXT: - Index: 0 |
| ; RELOC-NEXT: Name: colliding_func1 |
| ; RELOC-NEXT: - Index: 1 |
| ; RELOC-NEXT: Name: colliding_func2 |
| ; RELOC-NEXT: - Index: 2 |
| ; RELOC-NEXT: Name: colliding_func3 |
| ; RELOC-NEXT: - Index: 3 |
| ; RELOC-NEXT: Name: get_global1A |
| ; RELOC-NEXT: - Index: 4 |
| ; RELOC-NEXT: Name: get_global2A |
| ; RELOC-NEXT: - Index: 5 |
| ; RELOC-NEXT: Name: get_global3A |
| ; RELOC-NEXT: - Index: 6 |
| ; RELOC-NEXT: Name: get_func1A |
| ; RELOC-NEXT: - Index: 7 |
| ; RELOC-NEXT: Name: get_func2A |
| ; RELOC-NEXT: - Index: 8 |
| ; RELOC-NEXT: Name: get_func3A |
| ; RELOC-NEXT: - Index: 9 |
| ; RELOC-NEXT: Name: colliding_func1 |
| ; RELOC-NEXT: - Index: 10 |
| ; RELOC-NEXT: Name: colliding_func2 |
| ; RELOC-NEXT: - Index: 11 |
| ; RELOC-NEXT: Name: colliding_func3 |
| ; RELOC-NEXT: - Index: 12 |
| ; RELOC-NEXT: Name: get_global1B |
| ; RELOC-NEXT: - Index: 13 |
| ; RELOC-NEXT: Name: get_global2B |
| ; RELOC-NEXT: - Index: 14 |
| ; RELOC-NEXT: Name: get_global3B |
| ; RELOC-NEXT: - Index: 15 |
| ; RELOC-NEXT: Name: get_func1B |
| ; RELOC-NEXT: - Index: 16 |
| ; RELOC-NEXT: Name: get_func2B |
| ; RELOC-NEXT: - Index: 17 |
| ; RELOC-NEXT: Name: get_func3B |
| ; RELOC-NEXT: DataSegmentNames: |
| ; RELOC-NEXT: - Index: 0 |
| ; RELOC-NEXT: Name: .data.colliding_global1 |
| ; RELOC-NEXT: - Index: 1 |
| ; RELOC-NEXT: Name: .data.colliding_global2 |
| ; RELOC-NEXT: - Index: 2 |
| ; RELOC-NEXT: Name: .data.colliding_global3 |
| ; RELOC-NEXT: ... |