Introduce Packer::bele.

This commit is contained in:
Markus F.X.J. Oberhumer
2006-11-20 12:01:59 +01:00
parent 03e891c0e8
commit 05d03f97fc
20 changed files with 62 additions and 31 deletions
+2 -1
View File
@@ -57,6 +57,7 @@
PackLinuxI386::PackLinuxI386(InputFile *f) : super(f),
ei_osabi(Elf32_Ehdr::ELFOSABI_LINUX), osabi_note(NULL)
{
bele = &N_BELE_RTP::le_policy;
}
PackBSDI386::PackBSDI386(InputFile *f) : super(f)
@@ -378,7 +379,7 @@ PackLinuxI386::buildLinuxLoader(
(res->lit_context_bits << 0) |
(res->lit_pos_bits << 8) |
(res->pos_bits << 16);
if (linker->bele_policy->isBE()) // big endian - bswap32
if (linker->bele->isBE()) // big endian - bswap32
acc_swab32s(&properties);
linker->defineSymbol("lzma_properties", properties);
// -2 for properties