summaryrefslogtreecommitdiff
path: root/libdwfl/linux-kernel-modules.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-02-05 07:25:33 +0000
committerUlrich Drepper <drepper@redhat.com>2007-02-05 07:25:33 +0000
commitaa915fd3d70b4cbe4581f9ec170d986c6ba35063 (patch)
tree7345e23df9aa4cfcab4eb9afafa0dac6ed16e182 /libdwfl/linux-kernel-modules.c
parentce0bdb6ee5f977af9e565f2871ba2b1b37d162a5 (diff)
downloadelfutils-aa915fd3d70b4cbe4581f9ec170d986c6ba35063.tar.gz
propagate from branch 'com.redhat.elfutils.roland.pending' (head c44dcfac5b545aecb173fede31f34cb003be0173)
to branch 'com.redhat.elfutils' (head 4196d4e01486bdeb0c0632291881d1c6d7163fab)
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;
}