Changeset 6da1013f in mainline for kernel/arch/ia32/_link.ld.in


Ignore:
Timestamp:
2009-02-12T20:09:19Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
84266669
Parents:
7004747
Message:

simplify configuration
introduce arch_construct_function and inb/outb (sometimes empty) on all platforms
various code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/_link.ld.in

    r7004747 r6da1013f  
    11/** IA-32 linker script
    2  * 
     2 *
    33 * umapped section:
    4  *      kernel text
    5  *      kernel data
     4 *  kernel text
     5 *  kernel data
    66 * mapped section:
    7  *      kernel text
    8  *      kernel data
     7 *  kernel text
     8 *  kernel data
    99 */
    1010
     
    2929               
    3030                kdata_start = .;
    31                 *(.data);                       /* initialized data */
    32                 *(.rodata*);                    /* string literals */
    33                 *(COMMON);                      /* global variables */
     31                *(.data);               /* initialized data */
     32                *(.rodata*);            /* string literals */
     33                *(COMMON);              /* global variables */
    3434                hardcoded_load_address = .;
    3535                LONG(PA2KA(BOOT_OFFSET));
     
    4343                LONG(unmapped_kdata_end - unmapped_kdata_start);
    4444                symbol_table = .;
    45                 *(symtab.*);                    /* Symbol table, must be LAST symbol! */
    46                 *(.bss);                        /* uninitialized static variables */
     45                *(symtab.*);            /* Symbol table, must be LAST symbol! */
     46                *(.bss);                /* uninitialized static variables */
    4747                kdata_end = .;
    4848        }
    49 
     49       
    5050        /DISCARD/ : {
    51                 *(.note.GNU-stack);             
     51                *(.note.GNU-stack);
    5252                *(.comment);
    5353        }
    5454       
    55 #ifdef CONFIG_SMP       
     55#ifdef CONFIG_SMP
    5656       
    5757        _hardcoded_unmapped_size = (unmapped_ktext_end - unmapped_ktext_start) + (unmapped_kdata_end - unmapped_kdata_start);
     
    5959        ap_gdtr = unmapped_ap_gdtr - BOOT_OFFSET + AP_BOOT_OFFSET;
    6060        protected_ap_gdtr = PA2KA(ap_gdtr);
    61 
     61       
    6262#endif /* CONFIG_SMP */
    63 
     63       
    6464}
Note: See TracChangeset for help on using the changeset viewer.