search for: writerelocationsfragment

Displaying 7 results from an estimated 7 matches for "writerelocationsfragment".

2012 Mar 19
2
[LLVMdev] Sorting relocation entries
What would be the best way to sort relocation entries before they are written out in ELFObjectWriter::WriteRelocationsFragment? According to the Mips ABI documents I have, there are certain restrictions on the order relocations appear in the table (e.g. R_MIPS_HI16 and R_MIPS_GOT16 must be followed immediately by a R_MIPS_LO16). When I enable post RA scheduling, some of the restrictions are violated in the generated objec...
2012 Mar 22
2
[LLVMdev] Sorting relocation entries
...; > - ELFRelocationEntry ERE(RelocOffset, Index, Type, RelocSymbol, Addend); > + ELFRelocationEntry ERE(RelocOffset, Index, Type, RelocSymbol, Addend, &Fixup); > Relocations[Fragment->getParent()].push_back(ERE); > } > > @@ -1072,8 +1048,7 @@ void ELFObjectWriter::WriteRelocationsFragment(const MCAssembler &Asm, > MCDataFragment *F, > const MCSectionData *SD) { > std::vector<ELFRelocationEntry> &Relocs = Relocations[SD]; > - // sort by the r_offset just like...
2012 Mar 22
2
[LLVMdev] Sorting relocation entries
...eeds to. A hook on MCELFObjectTargetWriter should do the trick. > > -Jim > > > On Mar 19, 2012, at 1:39 PM, Akira Hatanaka <ahatanak at gmail.com> wrote: > >> What would be the best way to sort relocation entries before they are >> written out in ELFObjectWriter::WriteRelocationsFragment? >> >> According to the Mips ABI documents I have, there are certain >> restrictions on the order relocations appear in the table (e.g. >> R_MIPS_HI16 and R_MIPS_GOT16 must be followed immediately by a >> R_MIPS_LO16). When I enable post RA scheduling, some of the >...
2012 Mar 21
0
[LLVMdev] Sorting relocation entries
...e the list in whatever manner it needs to. A hook on MCELFObjectTargetWriter should do the trick. -Jim On Mar 19, 2012, at 1:39 PM, Akira Hatanaka <ahatanak at gmail.com> wrote: > What would be the best way to sort relocation entries before they are > written out in ELFObjectWriter::WriteRelocationsFragment? > > According to the Mips ABI documents I have, there are certain > restrictions on the order relocations appear in the table (e.g. > R_MIPS_HI16 and R_MIPS_GOT16 must be followed immediately by a > R_MIPS_LO16). When I enable post RA scheduling, some of the > restrictions are v...
2012 Mar 23
0
[LLVMdev] Sorting relocation entries
...ocationEntry ERE(RelocOffset, Index, Type, RelocSymbol, Addend); >> +  ELFRelocationEntry ERE(RelocOffset, Index, Type, RelocSymbol, Addend, &Fixup); >>    Relocations[Fragment->getParent()].push_back(ERE); >>  } >> >> @@ -1072,8 +1048,7 @@ void ELFObjectWriter::WriteRelocationsFragment(const MCAssembler &Asm, >>                                                 MCDataFragment *F, >>                                                 const MCSectionData *SD) { >>    std::vector<ELFRelocationEntry> &Relocs = Relocations[SD]; >> -  // sort by the r_o...
2012 Mar 22
0
[LLVMdev] Sorting relocation entries
...rgetWriter should do the trick. >> >> -Jim >> >> >> On Mar 19, 2012, at 1:39 PM, Akira Hatanaka <ahatanak at gmail.com> wrote: >> >>> What would be the best way to sort relocation entries before they are >>> written out in ELFObjectWriter::WriteRelocationsFragment? >>> >>> According to the Mips ABI documents I have, there are certain >>> restrictions on the order relocations appear in the table (e.g. >>> R_MIPS_HI16 and R_MIPS_GOT16 must be followed immediately by a >>> R_MIPS_LO16). When I enable post RA scheduli...
2012 Mar 23
1
[LLVMdev] Sorting relocation entries
...cOffset, Index, Type, RelocSymbol, Addend); >>> + ELFRelocationEntry ERE(RelocOffset, Index, Type, RelocSymbol, Addend, &Fixup); >>> Relocations[Fragment->getParent()].push_back(ERE); >>> } >>> >>> @@ -1072,8 +1048,7 @@ void ELFObjectWriter::WriteRelocationsFragment(const MCAssembler &Asm, >>> MCDataFragment *F, >>> const MCSectionData *SD) { >>> std::vector<ELFRelocationEntry> &Relocs = Relocations[SD]; >>> - //...