summaryrefslogtreecommitdiffstats
path: root/src/arch/i386/scripts
diff options
context:
space:
mode:
authorMichael Brown2007-07-15 03:52:02 +0200
committerMichael Brown2007-07-15 03:52:02 +0200
commitab859a53557d4b92026894e5d55c015fff245ecb (patch)
tree1c8078d10131327419024df89ed20765cef51ae4 /src/arch/i386/scripts
parentReverting unintended change caused by merge of indolent/natsemi branch. (diff)
downloadipxe-ab859a53557d4b92026894e5d55c015fff245ecb.tar.gz
ipxe-ab859a53557d4b92026894e5d55c015fff245ecb.tar.xz
ipxe-ab859a53557d4b92026894e5d55c015fff245ecb.zip
Use a single _payload_offset linker-defined variable to locate the
start of the non-prefix blocks in the loaded image, and rely on the image ordering. This should make introducing compression much easier.
Diffstat (limited to 'src/arch/i386/scripts')
-rw-r--r--src/arch/i386/scripts/i386.lds2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arch/i386/scripts/i386.lds b/src/arch/i386/scripts/i386.lds
index 287c6bae1..7b7b95dae 100644
--- a/src/arch/i386/scripts/i386.lds
+++ b/src/arch/i386/scripts/i386.lds
@@ -215,6 +215,8 @@ SECTIONS {
_load_size = . - _load_addr;
+ _payload_offset = _text16_load_offset;
+
/*
* Alignment checks. ALIGN() can only operate on the location
* counter, so we set the location counter to each value we want