Use a single _payload_offset linker-defined variable to locate the
[people/adir/gpxe.git] / src / arch / i386 / scripts / i386.lds
index 287c6ba..7b7b95d 100644 (file)
@@ -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