2018-01-24 11:29:47 +08:00
|
|
|
; RUN: llc -filetype=obj -o %t.o %s
|
|
|
|
; RUN: llc -filetype=obj %S/Inputs/weak-alias.ll -o %t2.o
|
2018-02-17 06:58:02 +08:00
|
|
|
; RUN: wasm-ld --check-signatures %t.o %t2.o -o %t.wasm
|
2017-11-18 02:14:09 +08:00
|
|
|
; RUN: obj2yaml %t.wasm | FileCheck %s
|
|
|
|
|
2017-12-21 10:30:09 +08:00
|
|
|
; Test that weak aliases (alias_fn is a weak alias of direct_fn) are linked correctly
|
2017-11-18 02:14:09 +08:00
|
|
|
|
2018-01-24 11:29:47 +08:00
|
|
|
target triple = "wasm32-unknown-unknown-wasm"
|
|
|
|
|
2017-12-21 10:30:09 +08:00
|
|
|
declare i32 @alias_fn() local_unnamed_addr #1
|
2017-11-18 02:14:09 +08:00
|
|
|
|
|
|
|
; Function Attrs: nounwind uwtable
|
2018-02-02 08:30:03 +08:00
|
|
|
define void @_start() local_unnamed_addr #1 {
|
2017-11-18 02:14:09 +08:00
|
|
|
entry:
|
2017-12-21 10:30:09 +08:00
|
|
|
%call = tail call i32 @alias_fn() #2
|
2018-02-02 08:30:03 +08:00
|
|
|
ret void
|
2017-11-18 02:14:09 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
; CHECK: --- !WASM
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: FileHeader:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: Version: 0x00000001
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: Sections:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Type: TYPE
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: Signatures:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Index: 0
|
2018-02-02 08:30:03 +08:00
|
|
|
; CHECK-NEXT: ReturnType: NORESULT
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: ParamTypes:
|
2018-01-13 02:35:13 +08:00
|
|
|
; CHECK-NEXT: - Index: 1
|
2018-02-02 08:30:03 +08:00
|
|
|
; CHECK-NEXT: ReturnType: I32
|
2018-01-24 08:22:53 +08:00
|
|
|
; CHECK-NEXT: ParamTypes:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Type: FUNCTION
|
2018-02-02 08:30:03 +08:00
|
|
|
; CHECK-NEXT: FunctionTypes: [ 0, 1, 1, 1, 1, 1, 0 ]
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Type: TABLE
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: Tables:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - ElemType: ANYFUNC
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: Limits:
|
2017-12-14 08:34:25 +08:00
|
|
|
; CHECK-NEXT: Flags: [ HAS_MAX ]
|
2018-01-25 05:45:25 +08:00
|
|
|
; CHECK-NEXT: Initial: 0x00000002
|
|
|
|
; CHECK-NEXT: Maximum: 0x00000002
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Type: MEMORY
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: Memories:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Initial: 0x00000002
|
|
|
|
; CHECK-NEXT: - Type: GLOBAL
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: Globals:
|
2018-01-10 05:47:36 +08:00
|
|
|
; CHECK-NEXT: - Index: 0
|
|
|
|
; CHECK-NEXT: Type: I32
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: Mutable: true
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: InitExpr:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: Opcode: I32_CONST
|
|
|
|
; CHECK-NEXT: Value: 66560
|
2018-01-17 09:34:31 +08:00
|
|
|
; CHECK-NEXT: - Index: 1
|
|
|
|
; CHECK-NEXT: Type: I32
|
|
|
|
; CHECK-NEXT: Mutable: false
|
|
|
|
; CHECK-NEXT: InitExpr:
|
|
|
|
; CHECK-NEXT: Opcode: I32_CONST
|
|
|
|
; CHECK-NEXT: Value: 66560
|
2018-02-07 11:04:53 +08:00
|
|
|
; CHECK-NEXT: - Index: 2
|
|
|
|
; CHECK-NEXT: Type: I32
|
|
|
|
; CHECK-NEXT: Mutable: false
|
|
|
|
; CHECK-NEXT: InitExpr:
|
|
|
|
; CHECK-NEXT: Opcode: I32_CONST
|
|
|
|
; CHECK-NEXT: Value: 1024
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Type: EXPORT
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: Exports:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Name: memory
|
|
|
|
; CHECK-NEXT: Kind: MEMORY
|
|
|
|
; CHECK-NEXT: Index: 0
|
2017-12-02 10:05:50 +08:00
|
|
|
; CHECK-NEXT: - Name: _start
|
|
|
|
; CHECK-NEXT: Kind: FUNCTION
|
|
|
|
; CHECK-NEXT: Index: 0
|
2017-12-21 10:30:09 +08:00
|
|
|
; CHECK-NEXT: - Name: direct_fn
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: Kind: FUNCTION
|
|
|
|
; CHECK-NEXT: Index: 1
|
2017-12-21 10:30:09 +08:00
|
|
|
; CHECK-NEXT: - Name: call_direct
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: Kind: FUNCTION
|
|
|
|
; CHECK-NEXT: Index: 2
|
2017-12-21 10:30:09 +08:00
|
|
|
; CHECK-NEXT: - Name: call_alias
|
|
|
|
; CHECK-NEXT: Kind: FUNCTION
|
|
|
|
; CHECK-NEXT: Index: 3
|
2018-03-01 01:20:51 +08:00
|
|
|
; CHECK-NEXT: - Name: alias_fn
|
|
|
|
; CHECK-NEXT: Kind: FUNCTION
|
|
|
|
; CHECK-NEXT: Index: 1
|
2017-12-21 10:30:09 +08:00
|
|
|
; CHECK-NEXT: - Name: call_alias_ptr
|
|
|
|
; CHECK-NEXT: Kind: FUNCTION
|
|
|
|
; CHECK-NEXT: Index: 4
|
|
|
|
; CHECK-NEXT: - Name: call_direct_ptr
|
|
|
|
; CHECK-NEXT: Kind: FUNCTION
|
|
|
|
; CHECK-NEXT: Index: 5
|
2018-01-17 09:34:31 +08:00
|
|
|
; CHECK-NEXT: - Name: __heap_base
|
|
|
|
; CHECK-NEXT: Kind: GLOBAL
|
|
|
|
; CHECK-NEXT: Index: 1
|
2018-02-07 11:04:53 +08:00
|
|
|
; CHECK-NEXT: - Name: __data_end
|
|
|
|
; CHECK-NEXT: Kind: GLOBAL
|
|
|
|
; CHECK-NEXT: Index: 2
|
2017-12-21 10:30:09 +08:00
|
|
|
; CHECK-NEXT: - Type: ELEM
|
2018-01-24 08:22:53 +08:00
|
|
|
; CHECK-NEXT: Segments:
|
|
|
|
; CHECK-NEXT: - Offset:
|
2017-12-21 10:30:09 +08:00
|
|
|
; CHECK-NEXT: Opcode: I32_CONST
|
|
|
|
; CHECK-NEXT: Value: 1
|
2018-01-25 05:45:25 +08:00
|
|
|
; CHECK-NEXT: Functions: [ 1 ]
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Type: CODE
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: Functions:
|
2018-01-10 05:47:36 +08:00
|
|
|
; CHECK-NEXT: - Index: 0
|
|
|
|
; CHECK-NEXT: Locals:
|
2018-02-02 08:30:03 +08:00
|
|
|
; CHECK-NEXT: Body: 1081808080001A0B
|
2018-01-10 05:47:36 +08:00
|
|
|
; CHECK-NEXT: - Index: 1
|
|
|
|
; CHECK-NEXT: Locals:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: Body: 41000B
|
2018-01-10 05:47:36 +08:00
|
|
|
; CHECK-NEXT: - Index: 2
|
|
|
|
; CHECK-NEXT: Locals:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: Body: 1081808080000B
|
2018-01-10 05:47:36 +08:00
|
|
|
; CHECK-NEXT: - Index: 3
|
|
|
|
; CHECK-NEXT: Locals:
|
2017-12-21 10:30:09 +08:00
|
|
|
; CHECK-NEXT: Body: 1081808080000B
|
2018-01-10 05:47:36 +08:00
|
|
|
; CHECK-NEXT: - Index: 4
|
2018-01-24 08:22:53 +08:00
|
|
|
; CHECK-NEXT: Locals:
|
2017-12-21 10:30:09 +08:00
|
|
|
; CHECK-NEXT: - Type: I32
|
|
|
|
; CHECK-NEXT: Count: 2
|
|
|
|
; CHECK-NEXT: Body: 23808080800041106B220024808080800020004181808080003602081081808080002101200041106A24808080800020010B
|
2018-01-10 05:47:36 +08:00
|
|
|
; CHECK-NEXT: - Index: 5
|
2018-01-24 08:22:53 +08:00
|
|
|
; CHECK-NEXT: Locals:
|
2017-12-23 04:35:19 +08:00
|
|
|
; CHECK-NEXT: - Type: I32
|
|
|
|
; CHECK-NEXT: Count: 2
|
2018-01-25 05:45:25 +08:00
|
|
|
; CHECK-NEXT: Body: 23808080800041106B220024808080800020004181808080003602081081808080002101200041106A24808080800020010B
|
2018-01-13 02:35:13 +08:00
|
|
|
; CHECK-NEXT: - Index: 6
|
|
|
|
; CHECK-NEXT: Locals:
|
|
|
|
; CHECK-NEXT: Body: 0B
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Type: CUSTOM
|
|
|
|
; CHECK-NEXT: Name: name
|
2017-12-13 04:00:30 +08:00
|
|
|
; CHECK-NEXT: FunctionNames:
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Index: 0
|
|
|
|
; CHECK-NEXT: Name: _start
|
|
|
|
; CHECK-NEXT: - Index: 1
|
2017-12-21 10:30:09 +08:00
|
|
|
; CHECK-NEXT: Name: direct_fn
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: - Index: 2
|
2017-12-21 10:30:09 +08:00
|
|
|
; CHECK-NEXT: Name: call_direct
|
|
|
|
; CHECK-NEXT: - Index: 3
|
|
|
|
; CHECK-NEXT: Name: call_alias
|
|
|
|
; CHECK-NEXT: - Index: 4
|
|
|
|
; CHECK-NEXT: Name: call_alias_ptr
|
|
|
|
; CHECK-NEXT: - Index: 5
|
|
|
|
; CHECK-NEXT: Name: call_direct_ptr
|
2018-01-13 02:35:13 +08:00
|
|
|
; CHECK-NEXT: - Index: 6
|
|
|
|
; CHECK-NEXT: Name: __wasm_call_ctors
|
2017-11-18 02:14:09 +08:00
|
|
|
; CHECK-NEXT: ...
|
2018-01-24 07:36:10 +08:00
|
|
|
|
2018-02-17 06:58:02 +08:00
|
|
|
; RUN: wasm-ld --check-signatures --relocatable %t.o %t2.o -o %t.reloc.o
|
2018-01-24 07:36:10 +08:00
|
|
|
; RUN: obj2yaml %t.reloc.o | FileCheck %s -check-prefix=RELOC
|
|
|
|
|
|
|
|
; RELOC: --- !WASM
|
2018-01-24 08:22:53 +08:00
|
|
|
; RELOC-NEXT: FileHeader:
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: Version: 0x00000001
|
2018-01-24 08:22:53 +08:00
|
|
|
; RELOC-NEXT: Sections:
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Type: TYPE
|
2018-01-24 08:22:53 +08:00
|
|
|
; RELOC-NEXT: Signatures:
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Index: 0
|
2018-02-02 08:30:03 +08:00
|
|
|
; RELOC-NEXT: ReturnType: NORESULT
|
|
|
|
; RELOC-NEXT: ParamTypes:
|
|
|
|
; RELOC-NEXT: - Index: 1
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: ReturnType: I32
|
2018-01-24 08:22:53 +08:00
|
|
|
; RELOC-NEXT: ParamTypes:
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Type: IMPORT
|
2018-01-24 08:22:53 +08:00
|
|
|
; RELOC-NEXT: Imports:
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Module: env
|
|
|
|
; RELOC-NEXT: Field: __stack_pointer
|
|
|
|
; RELOC-NEXT: Kind: GLOBAL
|
|
|
|
; RELOC-NEXT: GlobalType: I32
|
2018-02-23 13:08:53 +08:00
|
|
|
; RELOC-NEXT: GlobalMutable: true
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Type: FUNCTION
|
2018-02-02 08:30:03 +08:00
|
|
|
; RELOC-NEXT: FunctionTypes: [ 0, 1, 1, 1, 1, 1 ]
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Type: TABLE
|
2018-01-24 08:22:53 +08:00
|
|
|
; RELOC-NEXT: Tables:
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - ElemType: ANYFUNC
|
2018-01-24 08:22:53 +08:00
|
|
|
; RELOC-NEXT: Limits:
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: Flags: [ HAS_MAX ]
|
2018-01-25 05:45:25 +08:00
|
|
|
; RELOC-NEXT: Initial: 0x00000002
|
|
|
|
; RELOC-NEXT: Maximum: 0x00000002
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Type: MEMORY
|
2018-01-24 08:22:53 +08:00
|
|
|
; RELOC-NEXT: Memories:
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Initial: 0x00000000
|
|
|
|
; RELOC-NEXT: - Type: ELEM
|
2018-01-24 08:22:53 +08:00
|
|
|
; RELOC-NEXT: Segments:
|
|
|
|
; RELOC-NEXT: - Offset:
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: Opcode: I32_CONST
|
2018-01-25 05:37:30 +08:00
|
|
|
; RELOC-NEXT: Value: 1
|
2018-01-25 05:45:25 +08:00
|
|
|
; RELOC-NEXT: Functions: [ 1 ]
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Type: CODE
|
2018-01-24 08:22:53 +08:00
|
|
|
; RELOC-NEXT: Relocations:
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Type: R_WEBASSEMBLY_FUNCTION_INDEX_LEB
|
2018-03-01 01:20:51 +08:00
|
|
|
; RELOC-NEXT: Index: 4
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: Offset: 0x00000004
|
|
|
|
; RELOC-NEXT: - Type: R_WEBASSEMBLY_FUNCTION_INDEX_LEB
|
2018-03-01 01:20:51 +08:00
|
|
|
; RELOC-NEXT: Index: 1
|
2018-02-02 08:30:03 +08:00
|
|
|
; RELOC-NEXT: Offset: 0x00000013
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Type: R_WEBASSEMBLY_FUNCTION_INDEX_LEB
|
2018-03-01 01:20:51 +08:00
|
|
|
; RELOC-NEXT: Index: 4
|
2018-02-02 08:30:03 +08:00
|
|
|
; RELOC-NEXT: Offset: 0x0000001C
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Type: R_WEBASSEMBLY_GLOBAL_INDEX_LEB
|
2018-03-01 01:20:51 +08:00
|
|
|
; RELOC-NEXT: Index: 6
|
2018-02-02 08:30:03 +08:00
|
|
|
; RELOC-NEXT: Offset: 0x00000027
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Type: R_WEBASSEMBLY_GLOBAL_INDEX_LEB
|
2018-03-01 01:20:51 +08:00
|
|
|
; RELOC-NEXT: Index: 6
|
2018-02-02 08:30:03 +08:00
|
|
|
; RELOC-NEXT: Offset: 0x00000032
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Type: R_WEBASSEMBLY_TABLE_INDEX_SLEB
|
2018-03-01 01:20:51 +08:00
|
|
|
; RELOC-NEXT: Index: 4
|
2018-02-02 08:30:03 +08:00
|
|
|
; RELOC-NEXT: Offset: 0x0000003A
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Type: R_WEBASSEMBLY_FUNCTION_INDEX_LEB
|
2018-03-01 01:20:51 +08:00
|
|
|
; RELOC-NEXT: Index: 4
|
2018-02-02 08:30:03 +08:00
|
|
|
; RELOC-NEXT: Offset: 0x00000043
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Type: R_WEBASSEMBLY_GLOBAL_INDEX_LEB
|
2018-03-01 01:20:51 +08:00
|
|
|
; RELOC-NEXT: Index: 6
|
2018-02-02 08:30:03 +08:00
|
|
|
; RELOC-NEXT: Offset: 0x00000050
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Type: R_WEBASSEMBLY_GLOBAL_INDEX_LEB
|
2018-03-01 01:20:51 +08:00
|
|
|
; RELOC-NEXT: Index: 6
|
2018-02-02 08:30:03 +08:00
|
|
|
; RELOC-NEXT: Offset: 0x0000005D
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Type: R_WEBASSEMBLY_GLOBAL_INDEX_LEB
|
2018-03-01 01:20:51 +08:00
|
|
|
; RELOC-NEXT: Index: 6
|
2018-02-02 08:30:03 +08:00
|
|
|
; RELOC-NEXT: Offset: 0x00000068
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Type: R_WEBASSEMBLY_TABLE_INDEX_SLEB
|
2018-03-01 01:20:51 +08:00
|
|
|
; RELOC-NEXT: Index: 1
|
2018-02-02 08:30:03 +08:00
|
|
|
; RELOC-NEXT: Offset: 0x00000070
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Type: R_WEBASSEMBLY_FUNCTION_INDEX_LEB
|
2018-03-01 01:20:51 +08:00
|
|
|
; RELOC-NEXT: Index: 1
|
2018-02-02 08:30:03 +08:00
|
|
|
; RELOC-NEXT: Offset: 0x00000079
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Type: R_WEBASSEMBLY_GLOBAL_INDEX_LEB
|
2018-03-01 01:20:51 +08:00
|
|
|
; RELOC-NEXT: Index: 6
|
2018-02-02 08:30:03 +08:00
|
|
|
; RELOC-NEXT: Offset: 0x00000086
|
2018-01-24 08:22:53 +08:00
|
|
|
; RELOC-NEXT: Functions:
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Index: 0
|
2018-01-24 08:22:53 +08:00
|
|
|
; RELOC-NEXT: Locals:
|
2018-02-02 08:30:03 +08:00
|
|
|
; RELOC-NEXT: Body: 1081808080001A0B
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Index: 1
|
2018-01-24 08:22:53 +08:00
|
|
|
; RELOC-NEXT: Locals:
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: Body: 41000B
|
|
|
|
; RELOC-NEXT: - Index: 2
|
2018-01-24 08:22:53 +08:00
|
|
|
; RELOC-NEXT: Locals:
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: Body: 1081808080000B
|
|
|
|
; RELOC-NEXT: - Index: 3
|
2018-01-24 08:22:53 +08:00
|
|
|
; RELOC-NEXT: Locals:
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: Body: 1081808080000B
|
|
|
|
; RELOC-NEXT: - Index: 4
|
2018-01-24 08:22:53 +08:00
|
|
|
; RELOC-NEXT: Locals:
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Type: I32
|
|
|
|
; RELOC-NEXT: Count: 2
|
2018-01-25 05:37:30 +08:00
|
|
|
; RELOC-NEXT: Body: 23808080800041106B220024808080800020004181808080003602081081808080002101200041106A24808080800020010B
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Index: 5
|
2018-01-24 08:22:53 +08:00
|
|
|
; RELOC-NEXT: Locals:
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Type: I32
|
|
|
|
; RELOC-NEXT: Count: 2
|
2018-01-25 05:45:25 +08:00
|
|
|
; RELOC-NEXT: Body: 23808080800041106B220024808080800020004181808080003602081081808080002101200041106A24808080800020010B
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Type: CUSTOM
|
|
|
|
; RELOC-NEXT: Name: linking
|
2018-02-23 13:08:53 +08:00
|
|
|
; RELOC-NEXT: SymbolTable:
|
|
|
|
; RELOC-NEXT: - Index: 0
|
|
|
|
; RELOC-NEXT: Kind: FUNCTION
|
|
|
|
; RELOC-NEXT: Name: _start
|
|
|
|
; RELOC-NEXT: Flags: [ ]
|
|
|
|
; RELOC-NEXT: Function: 0
|
|
|
|
; RELOC-NEXT: - Index: 1
|
|
|
|
; RELOC-NEXT: Kind: FUNCTION
|
|
|
|
; RELOC-NEXT: Name: direct_fn
|
|
|
|
; RELOC-NEXT: Flags: [ ]
|
|
|
|
; RELOC-NEXT: Function: 1
|
2018-03-01 01:20:51 +08:00
|
|
|
; RELOC-NEXT: - Index: 2
|
2018-02-23 13:08:53 +08:00
|
|
|
; RELOC-NEXT: Kind: FUNCTION
|
|
|
|
; RELOC-NEXT: Name: call_direct
|
|
|
|
; RELOC-NEXT: Flags: [ ]
|
|
|
|
; RELOC-NEXT: Function: 2
|
2018-03-01 01:20:51 +08:00
|
|
|
; RELOC-NEXT: - Index: 3
|
2018-02-23 13:08:53 +08:00
|
|
|
; RELOC-NEXT: Kind: FUNCTION
|
|
|
|
; RELOC-NEXT: Name: call_alias
|
|
|
|
; RELOC-NEXT: Flags: [ ]
|
|
|
|
; RELOC-NEXT: Function: 3
|
2018-03-01 01:20:51 +08:00
|
|
|
; RELOC-NEXT: - Index: 4
|
|
|
|
; RELOC-NEXT: Kind: FUNCTION
|
|
|
|
; RELOC-NEXT: Name: alias_fn
|
|
|
|
; RELOC-NEXT: Flags: [ BINDING_WEAK ]
|
|
|
|
; RELOC-NEXT: Function: 1
|
2018-02-23 13:08:53 +08:00
|
|
|
; RELOC-NEXT: - Index: 5
|
|
|
|
; RELOC-NEXT: Kind: FUNCTION
|
|
|
|
; RELOC-NEXT: Name: call_alias_ptr
|
|
|
|
; RELOC-NEXT: Flags: [ ]
|
|
|
|
; RELOC-NEXT: Function: 4
|
|
|
|
; RELOC-NEXT: - Index: 6
|
2018-03-01 01:20:51 +08:00
|
|
|
; RELOC-NEXT: Kind: GLOBAL
|
|
|
|
; RELOC-NEXT: Name: __stack_pointer
|
|
|
|
; RELOC-NEXT: Flags: [ UNDEFINED ]
|
|
|
|
; RELOC-NEXT: Global: 0
|
|
|
|
; RELOC-NEXT: - Index: 7
|
2018-02-23 13:08:53 +08:00
|
|
|
; RELOC-NEXT: Kind: FUNCTION
|
|
|
|
; RELOC-NEXT: Name: call_direct_ptr
|
|
|
|
; RELOC-NEXT: Flags: [ ]
|
|
|
|
; RELOC-NEXT: Function: 5
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Type: CUSTOM
|
|
|
|
; RELOC-NEXT: Name: name
|
2018-01-24 08:22:53 +08:00
|
|
|
; RELOC-NEXT: FunctionNames:
|
2018-01-24 07:36:10 +08:00
|
|
|
; RELOC-NEXT: - Index: 0
|
|
|
|
; RELOC-NEXT: Name: _start
|
|
|
|
; RELOC-NEXT: - Index: 1
|
|
|
|
; RELOC-NEXT: Name: direct_fn
|
|
|
|
; RELOC-NEXT: - Index: 2
|
|
|
|
; RELOC-NEXT: Name: call_direct
|
|
|
|
; RELOC-NEXT: - Index: 3
|
|
|
|
; RELOC-NEXT: Name: call_alias
|
|
|
|
; RELOC-NEXT: - Index: 4
|
|
|
|
; RELOC-NEXT: Name: call_alias_ptr
|
|
|
|
; RELOC-NEXT: - Index: 5
|
|
|
|
; RELOC-NEXT: Name: call_direct_ptr
|
|
|
|
; RELOC-NEXT: ...
|