Skip to content

Commit b7bc6d8

Browse files
committed
Delta update to 7-Zip 24.08
1 parent 3f52442 commit b7bc6d8

43 files changed

Lines changed: 1566 additions & 796 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

7z-Src/C/7zVersion.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#define MY_VER_MAJOR 24
2-
#define MY_VER_MINOR 07
2+
#define MY_VER_MINOR 8
33
#define MY_VER_BUILD 0
4-
#define MY_VERSION_NUMBERS "24.07"
4+
#define MY_VERSION_NUMBERS "24.08"
55
#define MY_VERSION MY_VERSION_NUMBERS
66

77
#ifdef MY_CPU_NAME
@@ -10,7 +10,7 @@
1010
#define MY_VERSION_CPU MY_VERSION
1111
#endif
1212

13-
#define MY_DATE "2024-06-19"
13+
#define MY_DATE "2024-08-11"
1414
#undef MY_COPYRIGHT
1515
#undef MY_VERSION_COPYRIGHT_DATE
1616
#define MY_AUTHOR_NAME "Igor Pavlov"

7z-Src/C/CpuArch.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* CpuArch.c -- CPU specific code
2-
2024-05-18 : Igor Pavlov : Public domain */
2+
2024-07-04 : Igor Pavlov : Public domain */
33

44
#include "Precomp.h"
55

@@ -848,7 +848,11 @@ static unsigned long MY_getauxval(int aux)
848848

849849
#define MY_HWCAP_CHECK_FUNC(name) \
850850
BoolInt CPU_IsSupported_ ## name(void) { return 0; }
851+
#if defined(__ARM_NEON)
852+
BoolInt CPU_IsSupported_NEON(void) { return True; }
853+
#else
851854
MY_HWCAP_CHECK_FUNC(NEON)
855+
#endif
852856

853857
#endif // USE_HWCAP
854858

7z-Src/CPP/7zip/Archive/ElfHandler.cpp

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,7 @@ static const char * const g_Machines[] =
628628
static const CUInt32PCharPair g_MachinePairs[] =
629629
{
630630
{ 243, "RISC-V" },
631+
{ 258, "LoongArch" },
631632
{ 0x9026, "Alpha" }, // EM_ALPHA_EXP, obsolete, (used by NetBSD/alpha) (written in the absence of an ABI)
632633
{ 0xbaab, "Xilinx MicroBlaze" }
633634
};
@@ -853,18 +854,16 @@ Z7_COM7F_IMF(CHandler::GetArchiveProperty(PROPID propID, PROPVARIANT *value))
853854
else if (_header.Machine == k_Machine_MIPS)
854855
{
855856
const UInt32 ver = flags >> 28;
856-
s += "v";
857+
s.Add_Char('v');
857858
s.Add_UInt32(ver);
858859
flags &= ((UInt32)1 << 28) - 1;
859-
860860
const UInt32 abi = (flags >> 12) & 7;
861861
if (abi)
862862
{
863863
s += " ABI:";
864864
s.Add_UInt32(abi);
865865
}
866866
flags &= ~((UInt32)7 << 12);
867-
868867
s.Add_Space();
869868
s += FlagsToString(g_MIPS_Flags, Z7_ARRAY_SIZE(g_MIPS_Flags), flags);
870869
}
@@ -885,6 +884,31 @@ Z7_COM7F_IMF(CHandler::GetArchiveProperty(PROPID propID, PROPVARIANT *value))
885884
flags &= ~(UInt32)6;
886885
s += FlagsToString(g_RISCV_Flags, Z7_ARRAY_SIZE(g_RISCV_Flags), flags);
887886
}
887+
#if 0
888+
#define k_Machine_LOONGARCH 258
889+
else if (_header.Machine == k_Machine_LOONGARCH)
890+
{
891+
s += "ABI:";
892+
s.Add_UInt32((flags >> 6) & 3);
893+
s.Add_Dot();
894+
s.Add_UInt32((flags >> 3) & 7);
895+
s.Add_Dot();
896+
#if 1
897+
s.Add_UInt32(flags & 7);
898+
#else
899+
static const char k_LoongArch_Float_Type[8] = { '0', 's', 'f', 'd', '4' ,'5', '6', '7' };
900+
s.Add_Char(k_LoongArch_Float_Type[flags & 7]);
901+
#endif
902+
flags &= ~(UInt32)0xff;
903+
if (flags)
904+
{
905+
s.Add_Colon();
906+
char sz[16];
907+
ConvertUInt32ToHex(flags, sz);
908+
s += sz;
909+
}
910+
}
911+
#endif
888912
else
889913
{
890914
char sz[16];

7z-Src/CPP/7zip/Archive/GptHandler.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ static const CPartType kPartTypes[] =
111111

112112
{ 0x0FC63DAF, NULL, "Linux Data" },
113113
{ 0x0657FD6D, NULL, "Linux Swap" },
114+
{ 0x44479540, NULL, "Linux root (x86)" },
115+
{ 0x4F68BCE3, NULL, "Linux root (x86-64)" },
116+
{ 0x69DAD710, NULL, "Linux root (ARM)" },
117+
{ 0xB921B045, NULL, "Linux root (ARM64)" },
118+
{ 0x993D8D3D, NULL, "Linux root (IA-64)" },
119+
114120

115121
{ 0x83BD6B9D, NULL, "FreeBSD Boot" },
116122
{ 0x516E7CB4, NULL, "FreeBSD Data" },

0 commit comments

Comments
 (0)