2 -----------------------------------------------------------------------------
3 This code is licensed to you under the terms of the GNU GPL, version 2 or,
4 at your option, any later version. See the LICENSE.txt file for the text of
6 -----------------------------------------------------------------------------
8 -----------------------------------------------------------------------------
11 INCLUDE ../common/ldscript.common
22 /* It seems to be impossible to flush align a section at the
23 end of a memory segment. Instead, we'll put the version_information
24 wherever the linker wants it, and then put a pointer to the start
25 of the version information at the end of the section.
26 -- Henryk Plötz <henryk@ploetzli.ch> 2009-08-28 */
28 _version_information_start = ABSOLUTE(.);
29 *(.version_information);
31 /* Why doesn't this work even though _bootphase1_version_pointer = 0x1001fc?
32 . = _bootphase1_version_pointer - ORIGIN(bootphase1); */
33 /* This works, apparently it fools the linker into accepting an absolute address */
34 . = _bootphase1_version_pointer - ORIGIN(bootphase1) + ORIGIN(bootphase1);
35 LONG(_version_information_start)
38 __bootphase2_src_start__ = ORIGIN(bootphase2);
40 __bootphase2_start__ = .;
49 __bootphase2_end__ = .;
60 .commonarea (NOLOAD) : {