forked from OSchip/llvm-project
parent
56c917c57f
commit
b4fae7c3d0
|
@ -29,7 +29,7 @@ typedef struct {
|
|||
sizeof(insn_encodings_v4) / sizeof(Instruction))
|
||||
|
||||
/// \brief finds the scatter Bits that need to be used to apply relocations
|
||||
inline uint32_t
|
||||
inline uint32_t
|
||||
findBitMask(uint32_t insn, Instruction *encodings, int32_t numInsns) {
|
||||
for (int32_t i = 0; i < numInsns ; i++) {
|
||||
if (((insn & 0xc000) == 0) && !(encodings[i].isDuplex))
|
||||
|
|
|
@ -26,14 +26,14 @@ std::unique_ptr<Writer> createWriterELF(const ELFLinkingContext &info) {
|
|||
switch(info.getOutputType()) {
|
||||
case llvm::ELF::ET_EXEC:
|
||||
if (info.is64Bits()) {
|
||||
if (info.isLittleEndian())
|
||||
if (info.isLittleEndian())
|
||||
return std::unique_ptr<Writer>(new
|
||||
elf::ExecutableWriter<ELFType<support::little, 8, true>>(info));
|
||||
else
|
||||
return std::unique_ptr<Writer>(new
|
||||
elf::ExecutableWriter<ELFType<support::big, 8, true>>(info));
|
||||
} else {
|
||||
if (info.isLittleEndian())
|
||||
if (info.isLittleEndian())
|
||||
return std::unique_ptr<Writer>(new
|
||||
elf::ExecutableWriter<ELFType<support::little, 4, false>>(info));
|
||||
else
|
||||
|
@ -43,14 +43,14 @@ std::unique_ptr<Writer> createWriterELF(const ELFLinkingContext &info) {
|
|||
break;
|
||||
case llvm::ELF::ET_DYN:
|
||||
if (info.is64Bits()) {
|
||||
if (info.isLittleEndian())
|
||||
if (info.isLittleEndian())
|
||||
return std::unique_ptr<Writer>(new
|
||||
elf::DynamicLibraryWriter<ELFType<support::little, 8, true>>(info));
|
||||
else
|
||||
return std::unique_ptr<Writer>(new
|
||||
elf::DynamicLibraryWriter<ELFType<support::big, 8, true>>(info));
|
||||
} else {
|
||||
if (info.isLittleEndian())
|
||||
if (info.isLittleEndian())
|
||||
return std::unique_ptr<Writer>(new
|
||||
elf::DynamicLibraryWriter<ELFType<support::little, 4, false>>(info));
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue