forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bot] AutoMerging: merge all upstream's changes:
* https://github.com/coolsnowwolf/lede: procd: ujail upgrade patch for latest version (coolsnowwolf#10384) procd: ujail static-linked binary (coolsnowwolf#10381) tools: update versions and sync with upstream (coolsnowwolf#10380)
- Loading branch information
Showing
16 changed files
with
1,605 additions
and
3,702 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
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
29 changes: 29 additions & 0 deletions
29
package/system/procd/patches/001-procd_ujail_static_binary_fix.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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- a/jail/elf.c | ||
+++ b/jail/elf.c | ||
@@ -236,18 +236,18 @@ int elf_load_deps(const char *path, cons | ||
unsigned long load_offset, load_vaddr; | ||
unsigned long interp_offset; | ||
|
||
- if (elf_find_section(map, PT_LOAD, &load_offset, NULL, &load_vaddr)) { | ||
- ERROR("failed to load the .load section from %s\n", path); | ||
- return -1; | ||
+ if (elf_find_section(map, PT_INTERP, &interp_offset, NULL, NULL) == 0) { | ||
+ add_path_and_deps(map+interp_offset, 1, -1, 0); | ||
} | ||
|
||
- if (elf_find_section(map, PT_DYNAMIC, &dyn_offset, &dyn_size, NULL)) { | ||
- ERROR("failed to load the .dynamic section from %s\n", path); | ||
- return -1; | ||
+ if (elf_find_section(map, PT_LOAD, &load_offset, NULL, &load_vaddr)) { | ||
+ DEBUG("failed to load the .load section from %s\n", path); | ||
+ return 0; | ||
} | ||
|
||
- if (elf_find_section(map, PT_INTERP, &interp_offset, NULL, NULL) == 0) { | ||
- add_path_and_deps(map+interp_offset, 1, -1, 0); | ||
+ if (elf_find_section(map, PT_DYNAMIC, &dyn_offset, &dyn_size, NULL)) { | ||
+ DEBUG("failed to load the .dynamic section from %s\n", path); | ||
+ return 0; | ||
} | ||
|
||
int clazz = map[EI_CLASS]; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
--- a/src/ccache.cpp | ||
+++ b/src/ccache.cpp | ||
@@ -1756,6 +1756,7 @@ calculate_result_and_manifest_key(Contex | ||
"CPLUS_INCLUDE_PATH", | ||
"OBJC_INCLUDE_PATH", | ||
"OBJCPLUS_INCLUDE_PATH", // clang | ||
+ "GCC_HONOUR_COPTS", | ||
nullptr}; | ||
for (const char** p = envvars; *p; ++p) { | ||
const char* v = getenv(*p); | ||
@@ -1762,6 +1762,7 @@ get_manifest_key(Context& ctx, Hash& hash) | ||
"CPLUS_INCLUDE_PATH", | ||
"OBJC_INCLUDE_PATH", | ||
"OBJCPLUS_INCLUDE_PATH", // clang | ||
+ "GCC_HONOUR_COPTS", | ||
nullptr}; | ||
for (const char** p = envvars; *p; ++p) { | ||
const char* v = getenv(*p); |
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
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
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
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
Oops, something went wrong.