diff options
author | Sami Tolvanen <samitolvanen@google.com> | 2025-01-03 20:45:38 +0000 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2025-01-11 01:25:26 +0900 |
commit | d7476f24c9aa93d02ef3fd8d587a6114387b7667 (patch) | |
tree | e70c9bc0b6778e50bb547731afc16b068b90a407 /kernel/signal.c | |
parent | fa624569b70d8015775592ae7e2c514009367541 (diff) |
export: Add __gendwarfksyms_ptr_ references to exported symbols
With gendwarfksyms, we need each TU where the EXPORT_SYMBOL() macro
is used to also contain DWARF type information for the symbols it
exports. However, as a TU can also export external symbols and
compilers may choose not to emit debugging information for symbols not
defined in the current TU, the missing types will result in missing
symbol versions. Stand-alone assembly code also doesn't contain type
information for exported symbols, so we need to compile a temporary
object file with asm-prototypes.h instead, and similarly need to
ensure the DWARF in the temporary object file contains the necessary
types.
To always emit type information for external exports, add explicit
__gendwarfksyms_ptr_<symbol> references to them in EXPORT_SYMBOL().
gendwarfksyms will use the type information for __gendwarfksyms_ptr_*
if needed. Discard the pointers from the final binary to avoid further
bloat.
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'kernel/signal.c')
0 files changed, 0 insertions, 0 deletions