aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/symbols-dummy.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-07-13 16:49:50 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-07-13 16:49:50 +0100
commit700ac7a490b46d5ddc1e730c971bc6f7ec9d70ca (patch)
treead615e88a92df6b57a99eaaf83b53fe7f619f4cd /xen/common/symbols-dummy.c
parentb37d30c8fc5226203f5bb71fe79789cd8545f09b (diff)
downloadxen-700ac7a490b46d5ddc1e730c971bc6f7ec9d70ca.tar.gz
xen-700ac7a490b46d5ddc1e730c971bc6f7ec9d70ca.tar.bz2
xen-700ac7a490b46d5ddc1e730c971bc6f7ec9d70ca.zip
x86-64: reduce symbol table size
With all of Xen's symbols sitting within a 2Gb range on x86-64, they can be referred to by the kallsyms-like offset table using 4- instead of 8-byte slots. The marker table can use 4-byte slots in all cases, just like the table entry counts can (though that's only a minor improvement). If ia64's PERCPU_ADDR got moved down to (KERNEL_START + 2Gb - PERCPU_PAGE_SIZE), it could also utilize the more compact form. Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/common/symbols-dummy.c')
-rw-r--r--xen/common/symbols-dummy.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/xen/common/symbols-dummy.c b/xen/common/symbols-dummy.c
index 562264f4e7..5090c3b4d7 100644
--- a/xen/common/symbols-dummy.c
+++ b/xen/common/symbols-dummy.c
@@ -6,11 +6,15 @@
#include <xen/config.h>
#include <xen/types.h>
-unsigned long symbols_addresses[1];
-unsigned long symbols_num_syms;
-u8 symbols_names[1];
+#ifdef SYMBOLS_ORIGIN
+const unsigned int symbols_offsets[1];
+#else
+const unsigned long symbols_addresses[1];
+#endif
+const unsigned int symbols_num_syms;
+const u8 symbols_names[1];
-u8 symbols_token_table[1];
-u16 symbols_token_index[1];
+const u8 symbols_token_table[1];
+const u16 symbols_token_index[1];
-unsigned long symbols_markers[1];
+const unsigned int symbols_markers[1];