mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-06 09:44:39 +00:00
[ELFYAML] Provide default value 0 for YAML relocation addendum field
Follow up to r227318. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227422 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
da39e6dcf9
commit
9c31489f1e
@ -592,7 +592,7 @@ void MappingTraits<ELFYAML::Relocation>::mapping(IO &IO,
|
||||
} else
|
||||
IO.mapRequired("Type", Rel.Type);
|
||||
|
||||
IO.mapOptional("Addend", Rel.Addend);
|
||||
IO.mapOptional("Addend", Rel.Addend, (int64_t)0);
|
||||
}
|
||||
|
||||
void MappingTraits<ELFYAML::Object>::mapping(IO &IO, ELFYAML::Object &Object) {
|
||||
|
@ -10,11 +10,9 @@
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Symbol: main
|
||||
# CHECK-NEXT: Type: R_AARCH64_ABS64
|
||||
# CHECK-NEXT: Addend: 0
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000008
|
||||
# CHECK-NEXT: Symbol: main
|
||||
# CHECK-NEXT: Type: R_AARCH64_TLSGD_ADR_PREL21
|
||||
# CHECK-NEXT: Addend: 0
|
||||
|
||||
FileHeader:
|
||||
Class: ELFCLASS64
|
||||
|
@ -29,21 +29,17 @@
|
||||
# YAML-NEXT: - Offset: 0x0000000000000020
|
||||
# YAML-NEXT: Symbol: .rodata
|
||||
# YAML-NEXT: Type: R_MIPS_GOT_PAGE
|
||||
# YAML-NEXT: Addend: 0
|
||||
# YAML-NEXT: - Offset: 0x0000000000000024
|
||||
# YAML-NEXT: Symbol: .rodata
|
||||
# YAML-NEXT: Type: R_MIPS_GOT_OFST
|
||||
# YAML-NEXT: Addend: 0
|
||||
# YAML-NEXT: - Offset: 0x0000000000000028
|
||||
# YAML-NEXT: Symbol: printf
|
||||
# YAML-NEXT: Type: R_MIPS_CALL16
|
||||
# YAML-NEXT: Addend: 0
|
||||
# YAML-NEXT: - Offset: 0x0000000000000030
|
||||
# YAML-NEXT: Symbol: printf
|
||||
# YAML-NEXT: Type: R_MIPS_GPREL16
|
||||
# YAML-NEXT: Type2: R_MIPS_LO16
|
||||
# YAML-NEXT: SpecSym: RSS_GP0
|
||||
# YAML-NEXT: Addend: 0
|
||||
|
||||
---
|
||||
FileHeader:
|
||||
|
@ -210,27 +210,21 @@ ELF-MIPSEL-NEXT: Relocations:
|
||||
ELF-MIPSEL-NEXT: - Offset: 0x0000000000000000
|
||||
ELF-MIPSEL-NEXT: Symbol: _gp_disp
|
||||
ELF-MIPSEL-NEXT: Type: R_MIPS_HI16
|
||||
ELF-MIPSEL-NEXT: Addend: 0
|
||||
ELF-MIPSEL-NEXT: - Offset: 0x0000000000000004
|
||||
ELF-MIPSEL-NEXT: Symbol: _gp_disp
|
||||
ELF-MIPSEL-NEXT: Type: R_MIPS_LO16
|
||||
ELF-MIPSEL-NEXT: Addend: 0
|
||||
ELF-MIPSEL-NEXT: - Offset: 0x0000000000000018
|
||||
ELF-MIPSEL-NEXT: Symbol: '$.str'
|
||||
ELF-MIPSEL-NEXT: Type: R_MIPS_GOT16
|
||||
ELF-MIPSEL-NEXT: Addend: 0
|
||||
ELF-MIPSEL-NEXT: - Offset: 0x000000000000001C
|
||||
ELF-MIPSEL-NEXT: Symbol: '$.str'
|
||||
ELF-MIPSEL-NEXT: Type: R_MIPS_LO16
|
||||
ELF-MIPSEL-NEXT: Addend: 0
|
||||
ELF-MIPSEL-NEXT: - Offset: 0x0000000000000020
|
||||
ELF-MIPSEL-NEXT: Symbol: puts
|
||||
ELF-MIPSEL-NEXT: Type: R_MIPS_CALL16
|
||||
ELF-MIPSEL-NEXT: Addend: 0
|
||||
ELF-MIPSEL-NEXT: - Offset: 0x000000000000002C
|
||||
ELF-MIPSEL-NEXT: Symbol: SomeOtherFunction
|
||||
ELF-MIPSEL-NEXT: Type: R_MIPS_CALL16
|
||||
ELF-MIPSEL-NEXT: Addend: 0
|
||||
ELF-MIPSEL-NEXT: - Name: .data
|
||||
ELF-MIPSEL-NEXT: Type: SHT_PROGBITS
|
||||
ELF-MIPSEL-NEXT: Flags: [ SHF_WRITE, SHF_ALLOC ]
|
||||
@ -328,7 +322,6 @@ ELF-MIPS64EL-NEXT: Relocations:
|
||||
ELF-MIPS64EL-NEXT: - Offset: 0
|
||||
ELF-MIPS64EL-NEXT: Symbol: zed
|
||||
ELF-MIPS64EL-NEXT: Type: R_MIPS_64
|
||||
ELF-MIPS64EL-NEXT: Addend: 0
|
||||
ELF-MIPS64EL-NEXT: - Name: .bss
|
||||
ELF-MIPS64EL-NEXT: Type: SHT_NOBITS
|
||||
ELF-MIPS64EL-NEXT: Flags: [ SHF_WRITE, SHF_ALLOC ]
|
||||
@ -398,7 +391,6 @@ ELF-X86-64-NEXT: Relocations:
|
||||
ELF-X86-64-NEXT: - Offset: 0x000000000000000D
|
||||
ELF-X86-64-NEXT: Symbol: .rodata.str1.1
|
||||
ELF-X86-64-NEXT: Type: R_X86_64_32S
|
||||
ELF-X86-64-NEXT: Addend: 0
|
||||
ELF-X86-64-NEXT: - Offset: 0x0000000000000012
|
||||
ELF-X86-64-NEXT: Symbol: puts
|
||||
ELF-X86-64-NEXT: Type: R_X86_64_PC32
|
||||
|
Loading…
x
Reference in New Issue
Block a user