-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d1a2573
commit 5c3a4d7
Showing
15 changed files
with
39 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 53b576f7062ddd9ec9f21e0aacee2503d04b349d Mon Sep 17 00:00:00 2001 | ||
From 0e9cdfdfc8916c9672ecef98ec1b430171a518bd Mon Sep 17 00:00:00 2001 | ||
From: Miao Wang <[email protected]> | ||
Date: Sat, 13 Jan 2024 03:23:48 +0800 | ||
Subject: [PATCH 01/12] add old world abi compatibility | ||
Subject: [PATCH 01/11] add old world abi compatibility | ||
|
||
--- | ||
login/Makefile | 8 +- | ||
|
@@ -18,10 +18,10 @@ Subject: [PATCH 01/12] add old world abi compatibility | |
create mode 100644 sysdeps/unix/sysv/linux/loongarch/statx_cp.c | ||
|
||
diff --git a/login/Makefile b/login/Makefile | ||
index 1e22008a..8700e0e4 100644 | ||
index 84563230..37ed7d54 100644 | ||
--- a/login/Makefile | ||
+++ b/login/Makefile | ||
@@ -49,7 +49,7 @@ tests := tst-utmp tst-utmpx tst-grantpt tst-ptsname tst-getlogin tst-updwtmpx \ | ||
@@ -53,7 +53,7 @@ CFLAGS-tst-utmp-unsigned-64.c += -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 | ||
# Empty compatibility library for old binaries. | ||
extra-libs := libutil | ||
extra-libs-others := $(extra-libs) | ||
|
@@ -30,7 +30,7 @@ index 1e22008a..8700e0e4 100644 | |
libutil-routines := libutil-compat | ||
libutil-shared-only-routines := libutil-compat | ||
|
||
@@ -57,9 +57,9 @@ libutil-shared-only-routines := libutil-compat | ||
@@ -61,9 +61,9 @@ libutil-shared-only-routines := libutil-compat | ||
# link is not installed. | ||
install-lib-ldscripts = libutil.so | ||
$(inst_libdir)/libutil.so: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 49559626d30610925a8c9cb10862830b4d068e10 Mon Sep 17 00:00:00 2001 | ||
From 21a31d92dbe61cf507772c1daea01f78f3c03c98 Mon Sep 17 00:00:00 2001 | ||
From: Miao Wang <[email protected]> | ||
Date: Sat, 13 Jan 2024 05:07:19 +0800 | ||
Subject: [PATCH 02/12] add sigset ops | ||
Subject: [PATCH 02/11] add sigset ops | ||
|
||
--- | ||
sysdeps/unix/sysv/linux/loongarch/Makefile | 13 +++++++++++++ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From c902ec3932bde393278eb6cfa1663ddae489d2de Mon Sep 17 00:00:00 2001 | ||
From be5bc6d0481fab886268d6b9169b1c821c0a5d35 Mon Sep 17 00:00:00 2001 | ||
From: Miao Wang <[email protected]> | ||
Date: Sat, 13 Jan 2024 06:35:35 +0800 | ||
Subject: [PATCH 03/12] add signal functions | ||
Subject: [PATCH 03/11] add signal functions | ||
|
||
--- | ||
sysdeps/loongarch/nptl/pthread_sigmask.c | 73 +++++++++++++++++++ | ||
|
4 changes: 2 additions & 2 deletions
4
autobuild/patches/glibc/0004-add-sigaction-ucontext-compat.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From db6c01f21fad3c1dc4a2ae678d9eac550b0b60a0 Mon Sep 17 00:00:00 2001 | ||
From dcd6e497af00dd929279d35297222f771d2e6c73 Mon Sep 17 00:00:00 2001 | ||
From: Miao Wang <[email protected]> | ||
Date: Sun, 14 Jan 2024 05:15:07 +0800 | ||
Subject: [PATCH 04/12] add sigaction & ucontext compat | ||
Subject: [PATCH 04/11] add sigaction & ucontext compat | ||
|
||
--- | ||
sysdeps/unix/sysv/linux/loongarch/Makefile | 8 +- | ||
|
4 changes: 2 additions & 2 deletions
4
autobuild/patches/glibc/0005-add-stubs-for-signal-related-io-funcs.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 3d49018212d0abb652d961d53972058bf62a5ede Mon Sep 17 00:00:00 2001 | ||
From eaf288ef4e374b5c382b392dc7187a6d7aced0f1 Mon Sep 17 00:00:00 2001 | ||
From: Miao Wang <[email protected]> | ||
Date: Sat, 13 Jan 2024 07:38:04 +0800 | ||
Subject: [PATCH 05/12] add stubs for signal related io funcs | ||
Subject: [PATCH 05/11] add stubs for signal related io funcs | ||
|
||
--- | ||
sysdeps/unix/sysv/linux/loongarch/epoll_pwait.c | 1 + | ||
|
4 changes: 2 additions & 2 deletions
4
autobuild/patches/glibc/0006-add-syscall-fallback-for-stat-at.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From d380fedf25fc5126942378839657aa19bebc2f1a Mon Sep 17 00:00:00 2001 | ||
From cbcb63ad1303fd9659afe949b71f979f78c1f7fd Mon Sep 17 00:00:00 2001 | ||
From: Miao Wang <[email protected]> | ||
Date: Sun, 14 Jan 2024 15:51:49 +0800 | ||
Subject: [PATCH 06/12] add syscall fallback for *stat(at)? | ||
Subject: [PATCH 06/11] add syscall fallback for *stat(at)? | ||
|
||
--- | ||
sysdeps/unix/sysv/linux/loongarch/fstat64.c | 5 ++ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From c8a09cf1ae065849fb6e20f399d5d4c3b0db76c1 Mon Sep 17 00:00:00 2001 | ||
From f74c451e4fb9d7ef418b8cd43851ffac5514fdb6 Mon Sep 17 00:00:00 2001 | ||
From: Miao Wang <[email protected]> | ||
Date: Sun, 14 Jan 2024 08:41:15 +0800 | ||
Subject: [PATCH 07/12] add more pthread symbols | ||
Subject: [PATCH 07/11] add more pthread symbols | ||
|
||
--- | ||
nptl/old_pthread_cond_destroy.c | 4 ++-- | ||
|
4 changes: 2 additions & 2 deletions
4
autobuild/patches/glibc/0008-remove-clone3-for-compatibility-with-qq.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From d432b01607d894686c5de20590b504452190ebbe Mon Sep 17 00:00:00 2001 | ||
From 7c98d8be6d041f2d2f54d3a1e7bdfc08cde3d395 Mon Sep 17 00:00:00 2001 | ||
From: Miao Wang <[email protected]> | ||
Date: Sun, 14 Jan 2024 16:51:44 +0800 | ||
Subject: [PATCH 08/12] remove clone3 for compatibility with qq | ||
Subject: [PATCH 08/11] remove clone3 for compatibility with qq | ||
|
||
--- | ||
sysdeps/unix/sysv/linux/loongarch/clone-internal.c | 8 ++++++++ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 46a6a56ce7546ed1a36bf447141eb60fdd85d730 Mon Sep 17 00:00:00 2001 | ||
From abef07d42f0fa8821e55a9267dc693c6170c165f Mon Sep 17 00:00:00 2001 | ||
From: Miao Wang <[email protected]> | ||
Date: Sun, 14 Jan 2024 13:28:41 +0800 | ||
Subject: [PATCH 09/12] prepend trusted-dirs | ||
Subject: [PATCH 09/11] prepend trusted-dirs | ||
|
||
and search prepended trusted-dirs before other pathes | ||
--- | ||
|
@@ -10,10 +10,10 @@ and search prepended trusted-dirs before other pathes | |
2 files changed, 26 insertions(+), 3 deletions(-) | ||
|
||
diff --git a/elf/Makefile b/elf/Makefile | ||
index 5d78b659..4f4ec8c2 100644 | ||
index a3475f3f..f945a68f 100644 | ||
--- a/elf/Makefile | ||
+++ b/elf/Makefile | ||
@@ -1359,9 +1359,10 @@ endif | ||
@@ -1407,9 +1407,10 @@ endif | ||
$(objpfx)trusted-dirs.h: $(objpfx)trusted-dirs.st; @: | ||
$(objpfx)trusted-dirs.st: Makefile $(..)Makeconfig | ||
$(make-target-directory) | ||
|
@@ -26,10 +26,10 @@ index 5d78b659..4f4ec8c2 100644 | |
touch $@ | ||
CPPFLAGS-dl-load.c += -I$(objpfx). -I$(csu-objpfx). | ||
diff --git a/elf/dl-load.c b/elf/dl-load.c | ||
index ce8fdea3..cdea31f2 100644 | ||
index 8a89b710..dd02ad2d 100644 | ||
--- a/elf/dl-load.c | ||
+++ b/elf/dl-load.c | ||
@@ -123,6 +123,9 @@ static const size_t system_dirs_len[] = | ||
@@ -112,6 +112,9 @@ static const size_t system_dirs_len[] = | ||
SYSTEM_DIRS_LEN | ||
}; | ||
#define nsystem_dirs_len array_length (system_dirs_len) | ||
|
@@ -39,7 +39,7 @@ index ce8fdea3..cdea31f2 100644 | |
|
||
static bool | ||
is_trusted_path_normalize (const char *path, size_t len) | ||
@@ -723,7 +726,7 @@ _dl_init_paths (const char *llp, const char *source, | ||
@@ -712,7 +715,7 @@ _dl_init_paths (const char *llp, const char *source, | ||
|
||
/* First set up the rest of the default search directory entries. */ | ||
aelem = __rtld_search_dirs.dirs = (struct r_search_path_elem **) | ||
|
@@ -48,7 +48,7 @@ index ce8fdea3..cdea31f2 100644 | |
if (__rtld_search_dirs.dirs == NULL) | ||
{ | ||
errstring = N_("cannot create search path array"); | ||
@@ -748,11 +751,17 @@ _dl_init_paths (const char *llp, const char *source, | ||
@@ -737,11 +740,17 @@ _dl_init_paths (const char *llp, const char *source, | ||
pelem = GL(dl_all_dirs) = __rtld_search_dirs.dirs[0]; | ||
strp = system_dirs; | ||
idx = 0; | ||
|
@@ -66,7 +66,7 @@ index ce8fdea3..cdea31f2 100644 | |
*aelem++ = pelem; | ||
|
||
pelem->what = "system search path"; | ||
@@ -2025,9 +2034,22 @@ _dl_map_object (struct link_map *loader, const char *name, | ||
@@ -1980,9 +1989,22 @@ _dl_map_object (struct link_map *loader, const char *name, | ||
|
||
fd = -1; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 8c93e0c920acff0ba3ca155954fe4afa8f5ccf49 Mon Sep 17 00:00:00 2001 | ||
From 0bfa47d45fc9d00546a9605ed93e109f24fcdea0 Mon Sep 17 00:00:00 2001 | ||
From: Miao Wang <[email protected]> | ||
Date: Mon, 15 Jan 2024 04:16:47 +0800 | ||
Subject: [PATCH 10/12] Add ___brk_addr symbol | ||
Subject: [PATCH 10/11] Add ___brk_addr symbol | ||
|
||
--- | ||
sysdeps/unix/sysv/linux/loongarch/brk.c | 9 +++++++++ | ||
|
23 changes: 0 additions & 23 deletions
23
autobuild/patches/glibc/0011-LoongArch-Correct-__ieee754-_-_scalb-__ieee754-_-_sc.patch
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...list-errlist-add-compact-statements.patch → ...list-errlist-add-compact-statements.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From f3550d3df435347248c5114fff23119e94fc904e Mon Sep 17 00:00:00 2001 | ||
From be2d1626f981e7a3cbb749af3463131bc5249f56 Mon Sep 17 00:00:00 2001 | ||
From: Miao Wang <[email protected]> | ||
Date: Sun, 10 Mar 2024 02:54:28 +0800 | ||
Subject: [PATCH 12/12] siglist/errlist: add compact statements | ||
Subject: [PATCH 11/11] siglist/errlist: add compact statements | ||
|
||
to make the length of symbols the same | ||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters