Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102832539
D32950.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
875 B
Referenced Files
None
Subscribers
None
D32950.diff
View Options
diff --git a/lib/librtld_db/rtld_db.c b/lib/librtld_db/rtld_db.c
--- a/lib/librtld_db/rtld_db.c
+++ b/lib/librtld_db/rtld_db.c
@@ -165,6 +165,7 @@
rd_loadobj_t rdl;
rd_err_e ret;
uintptr_t base;
+ uint32_t offset;
int cnt, i;
DPRINTF("%s\n", __func__);
@@ -190,11 +191,12 @@
if (kve->kve_vn_fileid != fileid) {
base = kve->kve_start;
fileid = kve->kve_vn_fileid;
- path = kve->kve_path;
}
+ path = kve->kve_path;
+ offset = kve->kve_start - base;
} else {
- base = 0;
path = NULL;
+ offset = 0;
}
memset(&rdl, 0, sizeof(rdl));
/*
@@ -202,7 +204,7 @@
*/
rdl.rdl_saddr = kve->kve_start;
rdl.rdl_eaddr = kve->kve_end;
- rdl.rdl_offset = kve->kve_start - base;
+ rdl.rdl_offset = offset;
if (kve->kve_protection & KVME_PROT_READ)
rdl.rdl_prot |= RD_RDL_R;
if (kve->kve_protection & KVME_PROT_WRITE)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 6:24 PM (20 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14702578
Default Alt Text
D32950.diff (875 B)
Attached To
Mode
D32950: librtld_db: Handle shlibs with discontiguous mappings.
Attached
Detach File
Event Timeline
Log In to Comment