diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2024-04-11 12:53:13 +0100 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2024-04-25 10:21:06 +0100 |
| commit | a6819c1bd0b76d7fa0c8f4ae19e4e80dd61a1502 (patch) | |
| tree | baea8d718cb365b231cc98b83b4748c698eaf3d2 /linux-user/flat.h | |
| parent | c3a68dfd191682b140951e423b72866102097df9 (diff) | |
| download | focaccia-qemu-a6819c1bd0b76d7fa0c8f4ae19e4e80dd61a1502.tar.gz focaccia-qemu-a6819c1bd0b76d7fa0c8f4ae19e4e80dd61a1502.zip | |
linux-user/flatload.c: Remove unused bFLT shared-library and ZFLAT code
Ever since the bFLT format support was added in 2006, there has been a chunk of code in the file guarded by CONFIG_BINFMT_SHARED_FLAT which is supposedly for shared library support. This is not enabled and it's not possible to enable it, because if you do you'll run into the "#error needs checking" in the calc_reloc() function. Similarly, CONFIG_BINFMT_ZFLAT exists but can't be enabled because of an "#error code needs checking" in load_flat_file(). This code is obviously unfinished and has never been used; nobody in the intervening 18 years has complained about this or fixed it, so just delete the dead code. If anybody ever wants the feature they can always pull it out of git, or (perhaps better) write it from scratch based on the current Linux bFLT loader rather than the one of 18 years ago. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-id: 20240411115313.680433-1-peter.maydell@linaro.org
Diffstat (limited to 'linux-user/flat.h')
| -rw-r--r-- | linux-user/flat.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/linux-user/flat.h b/linux-user/flat.h index ed518e2013..e374b73e26 100644 --- a/linux-user/flat.h +++ b/linux-user/flat.h @@ -12,11 +12,8 @@ #define FLAT_VERSION 0x00000004L -#ifdef CONFIG_BINFMT_SHARED_FLAT -#define MAX_SHARED_LIBS (4) -#else +/* QEMU doesn't support bflt shared libraries */ #define MAX_SHARED_LIBS (1) -#endif /* * To make everything easier to port and manage cross platform |