mirror of
https://github.com/ipxe/ipxe
synced 2025-12-28 02:28:57 +03:00
[i386] Simplify linker script and standardise linker-defined symbol names
Reduce the number of sections within the linker script to match the number of practical sections within the output file. Define _section, _msection, _esection, _section_filesz, _section_memsz, and _section_lma for each section, replacing the mixture of symbols that previously existed. In particular, replace _text and _end with _textdata and _etextdata, to make it explicit within code that uses these symbols that the .text and .data sections are always treated as a single contiguous block.
This commit is contained in:
@@ -32,8 +32,8 @@ segment_header:
|
||||
.byte 0
|
||||
.byte 0x04 /* Last segment */
|
||||
.long 0x00007e00
|
||||
imglen: .long _load_size - 512
|
||||
memlen: .long _load_size - 512
|
||||
imglen: .long _filesz - 512
|
||||
memlen: .long _filesz - 512
|
||||
.size segment_header, . - segment_header
|
||||
|
||||
.section ".zinfo.fixup", "a" /* Compressor fixup information */
|
||||
|
||||
Reference in New Issue
Block a user