[llvm] r227044 - [ELFYAML] Support mips64 relocation record format in yaml2obj/obj2yaml
Simon Atanasyan
simon at atanasyan.com
Wed Jan 28 08:28:57 PST 2015
Hi Michael,
Thanks for pointing out the problem. I hope it has been fixed by r227318.
On Wed, Jan 28, 2015 at 4:12 PM, Kuperstein, Michael M
<michael.m.kuperstein at intel.com> wrote:
> This fails on MSVC Debug builds.
> The problem seems to be that the Addend field is uninitialized when it's supposed to be 0, and the result I get is:
>
> Relocations [
> Section (2) .rela.text {
> 0x14 R_MIPS_GPREL16/R_MIPS_SUB/R_MIPS_HI16 main 0x4
> 0x1C R_MIPS_GPREL16/R_MIPS_SUB/R_MIPS_LO16 main 0x8
> 0x20 R_MIPS_GOT_PAGE/R_MIPS_NONE/R_MIPS_NONE .rodata 0xCDCDCDCDCDCDCDCD
> 0x24 R_MIPS_GOT_OFST/R_MIPS_NONE/R_MIPS_NONE .rodata 0xCDCDCDCDCDCDCDCD
> 0x28 R_MIPS_CALL16/R_MIPS_NONE/R_MIPS_NONE printf 0xCDCDCDCDCDCDCDCD
> 0x30 R_MIPS_GPREL16/R_MIPS_LO16/R_MIPS_NONE printf 0xCDCDCDCDCDCDCDCD
> }
> ]
>
> Don't know enough about how yaml2obj works to fix it.
> Can you fix or revert?
--
Simon Atanasyan
More information about the llvm-commits
mailing list