aboutsummaryrefslogtreecommitdiff
path: root/src/scripts/efi.lds
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/efi.lds')
-rw-r--r--src/scripts/efi.lds18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/scripts/efi.lds b/src/scripts/efi.lds
index 3602254..dd7b3f0 100644
--- a/src/scripts/efi.lds
+++ b/src/scripts/efi.lds
@@ -8,22 +8,22 @@
SECTIONS {
/* The file starts at a virtual address of zero, and sections are
- * contiguous. Each section is aligned to at least _max_align,
- * which defaults to 32. Load addresses are equal to virtual
+ * contiguous. Each section is aligned to at least _page_align,
+ * which defaults to 4096. Load addresses are equal to virtual
* addresses.
*/
- _max_align = 32;
+ _page_align = 4096;
- /* Allow plenty of space for file headers */
- . = 0x1000;
+ /* Allow one page of space for file headers, common PE/COFF layout */
+ . = _page_align;
/*
* The text section
*
*/
- . = ALIGN ( _max_align );
+ . = ALIGN ( _page_align );
.text : {
_text = .;
*(.text)
@@ -36,7 +36,7 @@ SECTIONS {
*
*/
- . = ALIGN ( _max_align );
+ . = ALIGN ( _page_align );
.rodata : {
_rodata = .;
*(.rodata)
@@ -49,7 +49,7 @@ SECTIONS {
*
*/
- . = ALIGN ( _max_align );
+ . = ALIGN ( _page_align );
.data : {
_data = .;
*(.data)
@@ -65,7 +65,7 @@ SECTIONS {
*
*/
- . = ALIGN ( _max_align );
+ . = ALIGN ( _page_align );
.bss : {
_bss = .;
*(.bss)