reactos/boot/freeldr/freeldr/arch
Hermès Bélusca-Maïto ed83552229
[FREELDR] Introduce a MSVC "linker script" file that centralizes the commands for defining section-limit symbols, and the ordering and merging of PE sections, and the necessary CMake code to use it. (#1224)
As the MSVC linker alone doesn't permit such control, the file uses
ASM language (C can alternatively be used), together with extra linker
command-line switches.

It is pre-processed 3 times: first for generating the ASM code, second
for the C code and the third time for generating the linker response
file.

In our case, the ASM code defines the __bss_start__ and __bss_end__
symbols that allow us to find the limits of the .bss section (which is
by the way automatically appended to the .data section by the MSVC linker).
The C code is used to specify the list of linker switches that can be
passed through the `#pragma comment(linker, ...)' directive (the can be
alternatively specified in the linker response section).
Finally the linker response section contains all the linker switches
that cannot be specified with the `#pragma comment(linker, ...)'
directive.

Using all this we can recycle the BSS initialization code, that has been
written originally for GCC only, also for the MSVC builds.

Also, remove the outdated .text16 section merging.
2019-01-27 00:51:25 +01:00
..
amd64 [FREELDR] Introduce a MSVC "linker script" file that centralizes the commands for defining section-limit symbols, and the ordering and merging of PE sections, and the necessary CMake code to use it. (#1224) 2019-01-27 00:51:25 +01:00
arm [FREELDR] Simplify code by using a AddReactOSArcDiskInfo() helper, and few extra additions. 2019-01-05 19:39:32 +01:00
i386 [FREELDR] Introduce a MSVC "linker script" file that centralizes the commands for defining section-limit symbols, and the ordering and merging of PE sections, and the necessary CMake code to use it. (#1224) 2019-01-27 00:51:25 +01:00
powerpc [FREELDR] Minor code formatting; constify some non-mutable data. 2019-01-06 18:42:01 +01:00
realmode [FREELDR] Minor code formatting; constify some non-mutable data. 2019-01-06 18:42:01 +01:00
archwsup.c [FREELDR] Simplify code by using a AddReactOSArcDiskInfo() helper, and few extra additions. 2019-01-05 19:39:32 +01:00