summaryrefslogtreecommitdiffstats
path: root/libdwfl/linux-kernel-modules.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdwfl/linux-kernel-modules.c')
-rw-r--r--libdwfl/linux-kernel-modules.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdwfl/linux-kernel-modules.c b/libdwfl/linux-kernel-modules.c
index a3986386..4ea391c0 100644
--- a/libdwfl/linux-kernel-modules.c
+++ b/libdwfl/linux-kernel-modules.c
@@ -431,14 +431,14 @@ dwfl_linux_kernel_module_section_address
CONFIG_MODULE_UNLOAD, the .exit.* sections are not
actually loaded at all.
- Just relocate these bogusly to zero. This part of the
- debug information will not be of any use. */
+ Setting *ADDR to -1 tells the caller this section is
+ actually absent from memory. */
if (!strcmp (secname, ".modinfo")
|| !strcmp (secname, ".data.percpu")
|| !strncmp (secname, ".exit", 5))
{
- *addr = 0;
+ *addr = (Dwarf_Addr) -1l;
return DWARF_CB_OK;
}