| 1 | This patch is from the upstream repo, from between the tags libcap-2.75
|
| 2 | and libcap-2.76, and can be removed after the update to 2.76.
|
| 3 |
|
| 4 | From 04b285680bfb45117af685eabf1675917118bdb5 Mon Sep 17 00:00:00 2001
|
| 5 | Message-ID: <04b285680bfb45117af685eabf1675917118bdb5.1764517342.git.efraim@flashner.co.il>
|
| 6 | From: "Andrew G. Morgan" <[email protected]>
|
| 7 | Date: Sat, 22 Mar 2025 09:49:50 -0700
|
| 8 | Subject: [PATCH] Glibc needs a constant to be defined for puts() to work.
|
| 9 |
|
| 10 | See https://bugzilla.kernel.org/show_bug.cgi?id=219880
|
| 11 |
|
| 12 | Signed-off-by: Andrew G. Morgan <[email protected]>
|
| 13 | ---
|
| 14 | libcap/execable.h | 11 +++++++++++
|
| 15 | 1 file changed, 11 insertions(+)
|
| 16 |
|
| 17 | diff --git a/libcap/execable.h b/libcap/execable.h
|
| 18 | index 89e61a3..a68ea24 100644
|
| 19 | |
| 20 | |
| 21 | @@ -23,6 +23,17 @@
|
| 22 | #endif
|
| 23 | #define __EXECABLE_H
|
| 24 |
|
| 25 | +#ifdef __GLIBC__
|
| 26 | +/*
|
| 27 | + * https://bugzilla.kernel.org/show_bug.cgi?id=219880 So far as I can
|
| 28 | + * tell this value is some legacy magic meaning, but is a detail no
|
| 29 | + * longer important to glibc. Only the existence of this constant in
|
| 30 | + * the linkage is needed.
|
| 31 | + */
|
| 32 | +extern const int _IO_stdin_used;
|
| 33 | +const int _IO_stdin_used __attribute__((weak)) = 131073;
|
| 34 | +#endif /* def __GLIBC__ */
|
| 35 | +
|
| 36 | const char __execable_dl_loader[] __attribute((section(".interp"))) =
|
| 37 | SHARED_LOADER ;
|
| 38 |
|
| 39 | --
|
| 40 | Efraim Flashner <[email protected]> אפרים פלשנר
|
| 41 | GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
|
| 42 | Confidentiality cannot be guaranteed on emails sent or received unencrypted
|
| 43 |
|