summaryrefslogtreecommitdiff
path: root/palcode.ld
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2013-07-08 11:48:03 -0700
committerRichard Henderson <rth@twiddle.net>2013-07-08 11:48:03 -0700
commite959a30a6a5a781606431f3c65e7ed6356940d6e (patch)
treeed8618c4b3f4b753356693d8c1e1f2b73836db31 /palcode.ld
parent7974e1e03fbad67e3d29f4b942b13b8d82891ba2 (diff)
downloadqemu-palcode-e959a30a6a5a781606431f3c65e7ed6356940d6e.zip
qemu-palcode-e959a30a6a5a781606431f3c65e7ed6356940d6e.tar.gz
qemu-palcode-e959a30a6a5a781606431f3c65e7ed6356940d6e.tar.bz2
Optimize memory layout.
Minimizing the amount of padding between page-aligned data structures.
Diffstat (limited to 'palcode.ld')
-rw-r--r--palcode.ld11
1 files changed, 8 insertions, 3 deletions
diff --git a/palcode.ld b/palcode.ld
index 59efb04..b525cbd 100644
--- a/palcode.ld
+++ b/palcode.ld
@@ -6,12 +6,17 @@ SECTIONS
. = 0xfffffc0000000000;
.text : { *(.text*) }
.rodata : { *(.rodata*) }
- .data ALIGN(8192) : { *(.data.hwrpb) *(.data*) }
+ .data ALIGN(8192) : { *(.data*) }
.got : { *(.got.plt) *(.got) }
.sdata : { *(.sdata*) }
.sbss : { *(.sbss) *(.scommon) }
- .bss : { *(.bss) *(COMMON) }
- PROVIDE (_end = .);
+ .bss : {
+ *(.bss.page_dir)
+ *(.bss.stack)
+ *(COMMON)
+ *(.bss)
+ PROVIDE (_end = .);
+ }
/* DWARF debug sections.
Symbols in the DWARF debugging sections are relative to the beginning