Wentao Guan
a12fcf90ed
loongarch: Add support for ELF psABI v1.00 relocations
...
This patch adds support of the stack-based LoongArch relocations
throughout GRUB, including tools, dynamic linkage, and support for
conversion of ELF relocations into PE ones. A stack machine is required
to handle these per the spec [1] (see the R_LARCH_SOP types), of which
a simple implementation is included.
These relocations are produced by binutils 2.38 and 2.39, while the newer
v2.00 relocs require more recent toolchain (binutils 2.40+ & gcc 13+, or
LLVM 16+). GCC 13 has not been officially released as of early 2023, so
support for v1.00 relocs are expected to stay relevant for a while.
[1] https://loongson.github.io/LoongArch-Documentation/LoongArch-ELF-ABI-EN.html#_relocations
Signed-off-by: Zhou Yang <zhouyang@loongson.cn>
Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
2024-08-26 11:25:29 +08:00
Wentao Guan
19c95139b9
copy grub 2.04 grub-core/kern/dl.c to MOD
...
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
2024-08-26 11:25:29 +08:00
Wentao Guan
e2359cc68f
loongarch: Add early startup code
...
On entry, we need to save the system table pointer as well as our image
handle. Add an early startup file that saves them and then brings us
into our main function.
Signed-off-by: Zhou Yang <zhouyang@loongson.cn>
Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
2024-08-26 11:25:29 +08:00
Wentao Guan
fd9d0b6daa
loongarch: Add setjmp implementation
...
This patch adds a setjmp implementation for LoongArch.
Signed-off-by: Zhou Yang <zhouyang@loongson.cn>
Signed-off-by: Sun Haiyong <sunhaiyong@loongson.cn>
Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
2024-08-26 11:25:29 +08:00
Wentao Guan
1b467695d9
elf: Add LoongArch definitions
...
Add ELF e_machine ID [1] and relocations types [2] for LoongArch to
the current in-repo definitions.
[1] https://loongson.github.io/LoongArch-Documentation/LoongArch-ELF-ABI-EN.html#_e_machine_identifies_the_machine
[2] https://loongson.github.io/LoongArch-Documentation/LoongArch-ELF-ABI-EN.html#_relocations
Signed-off-by: Zhou Yang <zhouyang@loongson.cn>
Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
2024-08-26 11:25:29 +08:00
Wentao Guan
c6bef1ddad
copy grub 2.04 elf.h to MOD
...
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
2024-08-26 11:25:29 +08:00
Wentao Guan
cee98dbb8b
pe: Add LoongArch definitions
...
Add PE machine types [1] and relocation types [2] for LoongArch to
the current in-repo definitions.
[1] https://learn.microsoft.com/en-us/windows/win32/debug/pe-format#machine-types
[2] https://learn.microsoft.com/en-us/windows/win32/debug/pe-format#base-relocation-types
Signed-off-by: Zhou Yang <zhouyang@loongson.cn>
Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
2024-08-26 11:25:29 +08:00
gcf
75cf728fa9
The gpt pointer is not initialized, and when offset < 0, it may result in freeing unallocated memory. ( #2499 )
...
Signed-off-by: yuxiaojun <yuxiaojun1011@outlook.com>
Co-authored-by: yuxiaojun <yuxiaojun1011@outlook.com>
2024-05-19 16:27:19 +08:00
longpanda
1b2483ec14
Skip trash directory by default. ( #2831 )
2024-05-19 16:00:46 +08:00
longpanda
d672af4819
Support ext4 fs with checksum seed feature.
2024-05-19 12:14:02 +08:00
longpanda
c8dc36a5c3
1.0.95 release
2023-08-23 09:26:53 +08:00
Jianfeng Liu
529541f218
fix Synchronous Exception on some arm cpus ( #2488 )
2023-07-20 10:56:55 +08:00
longpanda
feea11e2bb
Support unattended auto install for Deepin/UOS
2023-05-29 00:11:21 +08:00
A1ive
35c952d891
Correct EFI chainloader image device path ( #2397 )
2023-05-19 23:23:14 +08:00
longpanda
07574f0379
Improve grub2 mode process for legacy BIOS mode.
2023-04-05 20:16:36 +08:00
longpanda
cff3a01289
Support NTFS with large cluster size (greater than 64KB).
2023-03-28 11:38:46 +08:00
longpanda
b47aa1abc7
Support LibreELEC 11.0+ ( #2281 )
2023-03-09 23:59:12 +08:00
longpanda
7fa4724743
Fix the menu missing issue when there exist an invalid vlnk file. ( #2228 )
2023-03-07 18:05:33 +08:00
longpanda
5067020a61
Add tip message when theme file contains non-enclosed literal values. ( #2166 )
2023-01-14 23:07:08 +08:00
longpanda
e0132ac4b5
switch to en_US when use text mode.
2023-01-10 16:17:08 +08:00
longpanda
c308892db0
Show file checksum menu title according to the existence of checksum value.
2023-01-10 12:23:35 +08:00
longpanda
1300f7f4f1
Fix the VHD(x) boot issue introduced in 1.0.87.
2023-01-10 09:37:05 +08:00
longpanda
315cabb945
Fix the file path when file checksum in F2 browse mode.
2023-01-07 11:33:04 +08:00
longpanda
eac1c35f76
Fix the bug when F2 browse and boot VHD/VHDX files in an extend logic partition.
2023-01-04 19:22:02 +08:00
longpanda
c7dcaa5734
1. Fix the blank item in the last of Language select menu
...
2. Fix the menu display VTLANG_NO_PERSISTENCE issue when use persistence
2023-01-04 19:19:32 +08:00
longpanda
4b17ee30c4
Add "return to previous menu" in secondary boot menu for convenience.
2023-01-04 15:55:32 +08:00
longpanda
afb3340ce7
Disable Fn/L/Ctrl hotkeys when selecting auto install script or perssitence file.
2023-01-03 19:11:36 +08:00
longpanda
287d77224c
Disable Fn/L/Ctrl hotkeys on select WIM menu.
2023-01-03 11:29:50 +08:00
longpanda
c6bd857cbe
Support BSD style for .md5/.sha1/.sh256/.sha512 checksum file.
...
Support VENTOY_CHECKSUM file for checksum file.
(#2112 )
2023-01-01 00:31:08 +08:00
longpanda
12b51bcf09
Change the prompt format when check device failed. ( #2094 )
2022-12-24 09:39:27 +08:00
longpanda
f597497da6
1. Add VTOY_WIN11_BYPASS_NRO option in Global Control Plugin.
...
2. Change the default value of VTOY_WIN11_BYPASS_CHECK and VTOY_WIN11_BYPASS_NRO options to 1.
2022-12-23 23:17:39 +08:00
longpanda
a377dd6172
Support config ventoy_left/ventoy_top/ventoy_color in theme.txt.
...
The configuration must be the first line in theme.txt and must be in the following format.
ventoy_left_top_color: "@5%@95%@#0000ff@"
The format is very strict:
1. ventoy_left_top_color must start with no space in front of.
2. left/top/color options must be around with 4 @
2022-12-23 15:52:43 +08:00
longpanda
4707022ef9
Add prompt and wait for key when Ventoy check device failed. ( #2094 )
2022-12-23 11:42:22 +08:00
longpanda
f434d1f5d0
Add Temporary Control Settings menu.
...
Refer https://www.ventoy.net/en/doc_ctrl_settings.html for details.
2022-12-22 22:14:51 +08:00
longpanda
23f8bc8aeb
Add resolution_fit option in theme plugin.
2022-12-22 18:26:01 +08:00
longpanda
44a3e23740
Optimization for the implement of menu languages.
2022-12-19 23:49:25 +08:00
longpanda
83f22173a5
menu language update
2022-12-18 17:30:29 +08:00
longpanda
6203366040
grub2 mode support KNOPPIX
2022-12-10 19:27:38 +08:00
longpanda
f222f8cac9
Auto memdisk plugin support some IMA/IMG files.
2022-12-05 10:51:15 +08:00
longpanda
fd7e34b632
1.0.84 release
2022-12-04 15:33:16 +08:00
longpanda
e85c02756b
1.0.83 release
2022-12-04 13:15:18 +08:00
longpanda
33b958e112
Update language json files
2022-12-03 21:37:09 +08:00
longpanda
194e948cb6
Remove VTOY_HELP_TXT_LANGUAGE option from Global Control Plugin.
2022-12-03 14:33:52 +08:00
longpanda
25b055bb0f
Hotkey change:
...
1. Change F1 from Memdisk to help
2. Add d/Ctrl+d for Memdisk
3. Add L for Language selection
So update the help txt files and menu json files at the same time.
2022-12-03 13:44:46 +08:00
longpanda
511b8091eb
Add muli-languages support for Ventoy menu.
...
F5 ---> Menu Language Select
Language files are in INSTALL/grub/menu/ directory.
2022-12-02 20:35:59 +08:00
longpanda
7d90912a09
Add VTOY_SHOW_PASSWORD_ASTERISK option in global control plugon. ( #1931 )
2022-10-26 15:27:51 +08:00
longpanda
1ab1799b72
Code Optimization
2022-10-22 16:13:03 +08:00
longpanda
4a42bdfce7
Add support for easyOS easy-4.4.2-amd64.img. ( #1926 )
2022-10-22 15:28:16 +08:00
longpanda
09a6d33d62
Add _VTNORMAL identifier.
2022-10-07 17:28:31 +08:00
A1ive
ebe0b7d282
show asterisks ('*') when typing password ( #1868 )
...
* show asterisks ('*') when typing password
* add function ventoy_password_get
2022-09-25 12:31:32 +08:00