Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106155101
D16385.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D16385.diff
View Options
Index: head/contrib/llvm/tools/lld/ELF/Arch/AArch64.cpp
===================================================================
--- head/contrib/llvm/tools/lld/ELF/Arch/AArch64.cpp
+++ head/contrib/llvm/tools/lld/ELF/Arch/AArch64.cpp
@@ -66,6 +66,10 @@
PltHeaderSize = 32;
DefaultMaxPageSize = 65536;
+ // Align to the 2 MiB page size (known as a superpage or huge page).
+ // FreeBSD automatically promotes 2 MiB-aligned allocations.
+ DefaultImageBase = 0x200000;
+
// It doesn't seem to be documented anywhere, but tls on aarch64 uses variant
// 1 of the tls structures and the tcb size is 16.
TcbSize = 16;
Index: head/contrib/llvm/tools/lld/ELF/Arch/X86.cpp
===================================================================
--- head/contrib/llvm/tools/lld/ELF/Arch/X86.cpp
+++ head/contrib/llvm/tools/lld/ELF/Arch/X86.cpp
@@ -61,6 +61,10 @@
PltHeaderSize = 16;
TlsGdRelaxSkip = 2;
TrapInstr = 0xcccccccc; // 0xcc = INT3
+
+ // Align to the non-PAE large page size (known as a superpage or huge page).
+ // FreeBSD automatically promotes large, superpage-aligned allocations.
+ DefaultImageBase = 0x400000;
}
static bool hasBaseReg(uint8_t ModRM) { return (ModRM & 0xc7) != 0x5; }
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 27, 7:24 AM (10 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15612185
Default Alt Text
D16385.diff (1 KB)
Attached To
Mode
D16385: Make the default image base on AArch64 and i386 superpage-aligned
Attached
Detach File
Event Timeline
Log In to Comment