diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2023-10-05 18:17:29 +0200 |
---|---|---|
committer | Thomas Weißschuh <linux@weissschuh.net> | 2023-10-12 21:14:16 +0200 |
commit | 63aa531716268f22f0a60fbb65c005494dcde387 (patch) | |
tree | ea27f9c9b7df0f3c361a291b9bd902ea7c499e43 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
parent | eddfc3c74214a7e6f4a3e56ad0cf5dab5d23f287 (diff) |
tools/nolibc: add support for constructors and destructors
With the startup code moved to C, implementing support for
constructors and deconstructors is fairly easy to implement.
Examples for code size impact:
text data bss dec hex filename
21837 104 88 22029 560d nolibc-test.before
22135 120 88 22343 5747 nolibc-test.after
21970 104 88 22162 5692 nolibc-test.after-only-crt.h-changes
The sections are defined by [0].
[0] https://refspecs.linuxfoundation.org/elf/gabi4+/ch5.dynamic.html
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://lore.kernel.org/lkml/20231007-nolibc-constructors-v2-1-ef84693efbc1@weissschuh.net/
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions