Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * realmode.lds.S
0004  *
0005  * Linker script for the real-mode code
0006  */
0007 
0008 #include <asm/page_types.h>
0009 
0010 #undef i386
0011 
0012 OUTPUT_FORMAT("elf32-i386")
0013 OUTPUT_ARCH(i386)
0014 ENTRY(pa_text_start)
0015 
0016 SECTIONS
0017 {
0018     real_mode_seg = 0;
0019 
0020     . = 0;
0021     .header : {
0022         pa_real_mode_base = .;
0023         *(.header)
0024     }
0025 
0026     . = ALIGN(4);
0027     .rodata : {
0028         *(.rodata)
0029         *(.rodata.*)
0030         . = ALIGN(16);
0031         video_cards = .;
0032         *(.videocards)
0033         video_cards_end = .;
0034     }
0035 
0036     . = ALIGN(PAGE_SIZE);
0037     pa_text_start = .;
0038     .text : {
0039         *(.text)
0040         *(.text.*)
0041     }
0042 
0043     .text32 : {
0044         *(.text32)
0045         *(.text32.*)
0046     }
0047 
0048     .text64 : {
0049         *(.text64)
0050         *(.text64.*)
0051     }
0052     pa_ro_end = .;
0053 
0054     . = ALIGN(PAGE_SIZE);
0055     .data : {
0056         *(.data)
0057         *(.data.*)
0058     }
0059 
0060     . = ALIGN(128);
0061     .bss : {
0062         *(.bss*)
0063     }
0064 
0065     /* End signature for integrity checking */
0066     . = ALIGN(4);
0067     .signature : {
0068         *(.signature)
0069     }
0070 
0071     /DISCARD/ : {
0072         *(.note*)
0073         *(.debug*)
0074     }
0075 
0076 #include "pasyms.h"
0077 }