mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-06 05:33:28 +00:00
[obj2yaml][ELF] Print relocation's offset as a hex number. Use a proper
types to hold relocation's offset and addend. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208906 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
650c53fe2a
commit
1564bf7dbe
@ -89,8 +89,8 @@ struct RawContentSection : Section {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
struct Relocation {
|
struct Relocation {
|
||||||
uint32_t Offset;
|
llvm::yaml::Hex64 Offset;
|
||||||
uint32_t Addend;
|
int64_t Addend;
|
||||||
ELF_REL Type;
|
ELF_REL Type;
|
||||||
StringRef Symbol;
|
StringRef Symbol;
|
||||||
};
|
};
|
||||||
|
@ -208,23 +208,23 @@ ELF-MIPSEL-NEXT: - Offset: 0
|
|||||||
ELF-MIPSEL-NEXT: Symbol: _gp_disp
|
ELF-MIPSEL-NEXT: Symbol: _gp_disp
|
||||||
ELF-MIPSEL-NEXT: Type: R_MIPS_HI16
|
ELF-MIPSEL-NEXT: Type: R_MIPS_HI16
|
||||||
ELF-MIPSEL-NEXT: Addend: 0
|
ELF-MIPSEL-NEXT: Addend: 0
|
||||||
ELF-MIPSEL-NEXT: - Offset: 4
|
ELF-MIPSEL-NEXT: - Offset: 0x0000000000000004
|
||||||
ELF-MIPSEL-NEXT: Symbol: _gp_disp
|
ELF-MIPSEL-NEXT: Symbol: _gp_disp
|
||||||
ELF-MIPSEL-NEXT: Type: R_MIPS_LO16
|
ELF-MIPSEL-NEXT: Type: R_MIPS_LO16
|
||||||
ELF-MIPSEL-NEXT: Addend: 0
|
ELF-MIPSEL-NEXT: Addend: 0
|
||||||
ELF-MIPSEL-NEXT: - Offset: 24
|
ELF-MIPSEL-NEXT: - Offset: 0x0000000000000018
|
||||||
ELF-MIPSEL-NEXT: Symbol: '$.str'
|
ELF-MIPSEL-NEXT: Symbol: '$.str'
|
||||||
ELF-MIPSEL-NEXT: Type: R_MIPS_GOT16
|
ELF-MIPSEL-NEXT: Type: R_MIPS_GOT16
|
||||||
ELF-MIPSEL-NEXT: Addend: 0
|
ELF-MIPSEL-NEXT: Addend: 0
|
||||||
ELF-MIPSEL-NEXT: - Offset: 28
|
ELF-MIPSEL-NEXT: - Offset: 0x000000000000001C
|
||||||
ELF-MIPSEL-NEXT: Symbol: '$.str'
|
ELF-MIPSEL-NEXT: Symbol: '$.str'
|
||||||
ELF-MIPSEL-NEXT: Type: R_MIPS_LO16
|
ELF-MIPSEL-NEXT: Type: R_MIPS_LO16
|
||||||
ELF-MIPSEL-NEXT: Addend: 0
|
ELF-MIPSEL-NEXT: Addend: 0
|
||||||
ELF-MIPSEL-NEXT: - Offset: 32
|
ELF-MIPSEL-NEXT: - Offset: 0x0000000000000020
|
||||||
ELF-MIPSEL-NEXT: Symbol: puts
|
ELF-MIPSEL-NEXT: Symbol: puts
|
||||||
ELF-MIPSEL-NEXT: Type: R_MIPS_CALL16
|
ELF-MIPSEL-NEXT: Type: R_MIPS_CALL16
|
||||||
ELF-MIPSEL-NEXT: Addend: 0
|
ELF-MIPSEL-NEXT: Addend: 0
|
||||||
ELF-MIPSEL-NEXT: - Offset: 44
|
ELF-MIPSEL-NEXT: - Offset: 0x000000000000002C
|
||||||
ELF-MIPSEL-NEXT: Symbol: SomeOtherFunction
|
ELF-MIPSEL-NEXT: Symbol: SomeOtherFunction
|
||||||
ELF-MIPSEL-NEXT: Type: R_MIPS_CALL16
|
ELF-MIPSEL-NEXT: Type: R_MIPS_CALL16
|
||||||
ELF-MIPSEL-NEXT: Addend: 0
|
ELF-MIPSEL-NEXT: Addend: 0
|
||||||
@ -373,18 +373,18 @@ ELF-X86-64-NEXT: Link: .symtab
|
|||||||
ELF-X86-64-NEXT: Info: .text
|
ELF-X86-64-NEXT: Info: .text
|
||||||
ELF-X86-64-NEXT: AddressAlign: 0x0000000000000008
|
ELF-X86-64-NEXT: AddressAlign: 0x0000000000000008
|
||||||
ELF-X86-64-NEXT: Relocations:
|
ELF-X86-64-NEXT: Relocations:
|
||||||
ELF-X86-64-NEXT: - Offset: 13
|
ELF-X86-64-NEXT: - Offset: 0x000000000000000D
|
||||||
ELF-X86-64-NEXT: Symbol: .rodata.str1.1
|
ELF-X86-64-NEXT: Symbol: .rodata.str1.1
|
||||||
ELF-X86-64-NEXT: Type: R_X86_64_32S
|
ELF-X86-64-NEXT: Type: R_X86_64_32S
|
||||||
ELF-X86-64-NEXT: Addend: 0
|
ELF-X86-64-NEXT: Addend: 0
|
||||||
ELF-X86-64-NEXT: - Offset: 18
|
ELF-X86-64-NEXT: - Offset: 0x0000000000000012
|
||||||
ELF-X86-64-NEXT: Symbol: puts
|
ELF-X86-64-NEXT: Symbol: puts
|
||||||
ELF-X86-64-NEXT: Type: R_X86_64_PC32
|
ELF-X86-64-NEXT: Type: R_X86_64_PC32
|
||||||
ELF-X86-64-NEXT: Addend: 4294967292
|
ELF-X86-64-NEXT: Addend: -4
|
||||||
ELF-X86-64-NEXT: - Offset: 25
|
ELF-X86-64-NEXT: - Offset: 0x0000000000000019
|
||||||
ELF-X86-64-NEXT: Symbol: SomeOtherFunction
|
ELF-X86-64-NEXT: Symbol: SomeOtherFunction
|
||||||
ELF-X86-64-NEXT: Type: R_X86_64_PC32
|
ELF-X86-64-NEXT: Type: R_X86_64_PC32
|
||||||
ELF-X86-64-NEXT: Addend: 4294967292
|
ELF-X86-64-NEXT: Addend: -4
|
||||||
ELF-X86-64-NEXT: Symbols:
|
ELF-X86-64-NEXT: Symbols:
|
||||||
ELF-X86-64-NEXT: Local:
|
ELF-X86-64-NEXT: Local:
|
||||||
ELF-X86-64-NEXT: - Name: trivial-object-test.s
|
ELF-X86-64-NEXT: - Name: trivial-object-test.s
|
||||||
|
Loading…
x
Reference in New Issue
Block a user