Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161022740
D21862.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
974 B
Referenced Files
None
Subscribers
None
D21862.diff
View Options
Index: head/sys/kern/link_elf.c
===================================================================
--- head/sys/kern/link_elf.c
+++ head/sys/kern/link_elf.c
@@ -991,7 +991,7 @@
ef = (elf_file_t) lf;
#ifdef SPARSE_MAPPING
- ef->object = vm_object_allocate(OBJT_DEFAULT, mapsize >> PAGE_SHIFT);
+ ef->object = vm_object_allocate(OBJT_PHYS, atop(mapsize));
if (ef->object == NULL) {
error = ENOMEM;
goto out;
Index: head/sys/kern/link_elf_obj.c
===================================================================
--- head/sys/kern/link_elf_obj.c
+++ head/sys/kern/link_elf_obj.c
@@ -774,8 +774,7 @@
* This stuff needs to be in a single chunk so that profiling etc
* can get the bounds and gdb can associate offsets with modules
*/
- ef->object = vm_object_allocate(OBJT_DEFAULT,
- round_page(mapsize) >> PAGE_SHIFT);
+ ef->object = vm_object_allocate(OBJT_PHYS, atop(round_page(mapsize)));
if (ef->object == NULL) {
error = ENOMEM;
goto out;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jun 30, 10:27 PM (13 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34526967
Default Alt Text
D21862.diff (974 B)
Attached To
Mode
D21862: Use OBJT_PHYS objects for linker files.
Attached
Detach File
Event Timeline
Log In to Comment