aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2023-11-10 23:42:54 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-11-10 23:42:54 +0000
commit5407652695388ef2e7925643f406b744d7c5995a (patch)
tree891626c9b56c99274ef824d223cbab8ef1cb4920
parent711b511cfa33a17a8d4411a236ee3c6d3e823f5e (diff)
parent2723242c4c4cc15cd8a0294eeb017dce3842ae00 (diff)
downloadtoybox-5407652695388ef2e7925643f406b744d7c5995a.tar.gz
Upgrade toybox to cf63277fc064c4b566fa27869dadb3540a04f756 am: 2723242c4c
Original change: https://android-review.googlesource.com/c/platform/external/toybox/+/2826633 Change-Id: Ia3d771cc52b0f26f7d7cb5a5708cc8e330a8ad40 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--METADATA2
-rw-r--r--toys/posix/file.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/METADATA b/METADATA
index 674e9f93..500af60a 100644
--- a/METADATA
+++ b/METADATA
@@ -13,7 +13,7 @@ third_party {
type: GIT
value: "https://github.com/landley/toybox"
}
- version: "d2bada0e42e668ec65e1a853d32ac021feed4952"
+ version: "cf63277fc064c4b566fa27869dadb3540a04f756"
license_type: UNENCUMBERED
last_upgrade_date {
year: 2023
diff --git a/toys/posix/file.c b/toys/posix/file.c
index cada80e1..1fdbefde 100644
--- a/toys/posix/file.c
+++ b/toys/posix/file.c
@@ -445,6 +445,10 @@ static void do_regular_file(int fd, char *name)
} else if (len>4 && !smemcmp(s, "ABX", 3)) {
xprintf("Android Binary XML v%d\n", s[3]);
+ // https://webassembly.github.io/spec/core/binary/modules.html#binary-module
+ } else if (len>8 && !smemcmp(s, "\0asm", 4)) {
+ xprintf("wasm binary module version %d\n", (int)peek_le(s+4, 4));
+
// Text files, including shell scripts.
} else {
char *what = 0;